@adapt-toolkit/sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/index.d.ts +7 -0
- package/dist/common/index.d.ts.map +1 -0
- package/dist/common/index.js +7 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/interfaces/adapt_environment.d.ts +21 -0
- package/dist/common/interfaces/adapt_environment.d.ts.map +1 -0
- package/dist/common/interfaces/adapt_environment.js +2 -0
- package/dist/common/interfaces/adapt_environment.js.map +1 -0
- package/dist/common/interfaces/adapt_evaluation_unit.d.ts +12 -0
- package/dist/common/interfaces/adapt_evaluation_unit.d.ts.map +1 -0
- package/dist/common/interfaces/adapt_evaluation_unit.js +2 -0
- package/dist/common/interfaces/adapt_evaluation_unit.js.map +1 -0
- package/dist/common/interfaces/adapt_packet_context.d.ts +29 -0
- package/dist/common/interfaces/adapt_packet_context.d.ts.map +1 -0
- package/dist/common/interfaces/adapt_packet_context.js +2 -0
- package/dist/common/interfaces/adapt_packet_context.js.map +1 -0
- package/dist/common/interfaces/adapt_value.d.ts +23 -0
- package/dist/common/interfaces/adapt_value.d.ts.map +1 -0
- package/dist/common/interfaces/adapt_value.js +2 -0
- package/dist/common/interfaces/adapt_value.js.map +1 -0
- package/dist/common/interfaces/common.d.ts +18 -0
- package/dist/common/interfaces/common.d.ts.map +1 -0
- package/dist/common/interfaces/common.js +4 -0
- package/dist/common/interfaces/common.js.map +1 -0
- package/dist/common/memory_management/adapt_object_lifetime.d.ts +114 -0
- package/dist/common/memory_management/adapt_object_lifetime.d.ts.map +1 -0
- package/dist/common/memory_management/adapt_object_lifetime.js +159 -0
- package/dist/common/memory_management/adapt_object_lifetime.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/loaders/browser.d.ts +5 -0
- package/dist/loaders/browser.d.ts.map +1 -0
- package/dist/loaders/browser.js +6 -0
- package/dist/loaders/browser.js.map +1 -0
- package/dist/loaders/node.d.ts +13 -0
- package/dist/loaders/node.d.ts.map +1 -0
- package/dist/loaders/node.js +29 -0
- package/dist/loaders/node.js.map +1 -0
- package/dist/loaders/react-native.d.ts +11 -0
- package/dist/loaders/react-native.d.ts.map +1 -0
- package/dist/loaders/react-native.js +19 -0
- package/dist/loaders/react-native.js.map +1 -0
- package/dist/loaders/shared.d.ts +17 -0
- package/dist/loaders/shared.d.ts.map +1 -0
- package/dist/loaders/shared.js +2 -0
- package/dist/loaders/shared.js.map +1 -0
- package/dist/utilities/broker/broker.d.ts +21 -0
- package/dist/utilities/broker/broker.d.ts.map +1 -0
- package/dist/utilities/broker/broker.js +267 -0
- package/dist/utilities/broker/broker.js.map +1 -0
- package/dist/utilities/broker/broker_client.d.ts +40 -0
- package/dist/utilities/broker/broker_client.d.ts.map +1 -0
- package/dist/utilities/broker/broker_client.js +111 -0
- package/dist/utilities/broker/broker_client.js.map +1 -0
- package/dist/utilities/broker/broker_configurator.d.ts +6 -0
- package/dist/utilities/broker/broker_configurator.d.ts.map +1 -0
- package/dist/utilities/broker/broker_configurator.js +8 -0
- package/dist/utilities/broker/broker_configurator.js.map +1 -0
- package/dist/utilities/broker/index.d.ts +4 -0
- package/dist/utilities/broker/index.d.ts.map +1 -0
- package/dist/utilities/broker/index.js +4 -0
- package/dist/utilities/broker/index.js.map +1 -0
- package/dist/utilities/common/adapt_waitlist.d.ts +5 -0
- package/dist/utilities/common/adapt_waitlist.d.ts.map +1 -0
- package/dist/utilities/common/adapt_waitlist.js +4 -0
- package/dist/utilities/common/adapt_waitlist.js.map +1 -0
- package/dist/utilities/common/async_queue_adapter.d.ts +40 -0
- package/dist/utilities/common/async_queue_adapter.d.ts.map +1 -0
- package/dist/utilities/common/async_queue_adapter.js +88 -0
- package/dist/utilities/common/async_queue_adapter.js.map +1 -0
- package/dist/utilities/common/command_line_configurator.d.ts +88 -0
- package/dist/utilities/common/command_line_configurator.d.ts.map +1 -0
- package/dist/utilities/common/command_line_configurator.js +217 -0
- package/dist/utilities/common/command_line_configurator.js.map +1 -0
- package/dist/utilities/common/decorators.d.ts +17 -0
- package/dist/utilities/common/decorators.d.ts.map +1 -0
- package/dist/utilities/common/decorators.js +84 -0
- package/dist/utilities/common/decorators.js.map +1 -0
- package/dist/utilities/common/errors/adapt_initialization_error.d.ts +4 -0
- package/dist/utilities/common/errors/adapt_initialization_error.d.ts.map +1 -0
- package/dist/utilities/common/errors/adapt_initialization_error.js +6 -0
- package/dist/utilities/common/errors/adapt_initialization_error.js.map +1 -0
- package/dist/utilities/common/errors/adapt_network_error.d.ts +8 -0
- package/dist/utilities/common/errors/adapt_network_error.d.ts.map +1 -0
- package/dist/utilities/common/errors/adapt_network_error.js +12 -0
- package/dist/utilities/common/errors/adapt_network_error.js.map +1 -0
- package/dist/utilities/common/errors/adapt_protocol_error.d.ts +12 -0
- package/dist/utilities/common/errors/adapt_protocol_error.d.ts.map +1 -0
- package/dist/utilities/common/errors/adapt_protocol_error.js +16 -0
- package/dist/utilities/common/errors/adapt_protocol_error.js.map +1 -0
- package/dist/utilities/common/errors/adapt_test_mode_error.d.ts +11 -0
- package/dist/utilities/common/errors/adapt_test_mode_error.d.ts.map +1 -0
- package/dist/utilities/common/errors/adapt_test_mode_error.js +22 -0
- package/dist/utilities/common/errors/adapt_test_mode_error.js.map +1 -0
- package/dist/utilities/common/http_server.d.ts +18 -0
- package/dist/utilities/common/http_server.d.ts.map +1 -0
- package/dist/utilities/common/http_server.js +41 -0
- package/dist/utilities/common/http_server.js.map +1 -0
- package/dist/utilities/common/index.d.ts +25 -0
- package/dist/utilities/common/index.d.ts.map +1 -0
- package/dist/utilities/common/index.js +36 -0
- package/dist/utilities/common/index.js.map +1 -0
- package/dist/utilities/common/logger/logger.d.ts +83 -0
- package/dist/utilities/common/logger/logger.d.ts.map +1 -0
- package/dist/utilities/common/logger/logger.js +272 -0
- package/dist/utilities/common/logger/logger.js.map +1 -0
- package/dist/utilities/common/logger/logging_level.d.ts +13 -0
- package/dist/utilities/common/logger/logging_level.d.ts.map +1 -0
- package/dist/utilities/common/logger/logging_level.js +36 -0
- package/dist/utilities/common/logger/logging_level.js.map +1 -0
- package/dist/utilities/common/logger/message.d.ts +65 -0
- package/dist/utilities/common/logger/message.d.ts.map +1 -0
- package/dist/utilities/common/logger/message.js +169 -0
- package/dist/utilities/common/logger/message.js.map +1 -0
- package/dist/utilities/common/logger/network_component.d.ts +3 -0
- package/dist/utilities/common/logger/network_component.d.ts.map +1 -0
- package/dist/utilities/common/logger/network_component.js +4 -0
- package/dist/utilities/common/logger/network_component.js.map +1 -0
- package/dist/utilities/common/totp_qr_code_generator.d.ts +12 -0
- package/dist/utilities/common/totp_qr_code_generator.d.ts.map +1 -0
- package/dist/utilities/common/totp_qr_code_generator.js +19 -0
- package/dist/utilities/common/totp_qr_code_generator.js.map +1 -0
- package/dist/utilities/common/waitlist/waitlist.d.ts +36 -0
- package/dist/utilities/common/waitlist/waitlist.d.ts.map +1 -0
- package/dist/utilities/common/waitlist/waitlist.js +116 -0
- package/dist/utilities/common/waitlist/waitlist.js.map +1 -0
- package/dist/utilities/common/web_socket_client.d.ts +50 -0
- package/dist/utilities/common/web_socket_client.d.ts.map +1 -0
- package/dist/utilities/common/web_socket_client.js +80 -0
- package/dist/utilities/common/web_socket_client.js.map +1 -0
- package/dist/utilities/common/web_socket_connection.d.ts +29 -0
- package/dist/utilities/common/web_socket_connection.d.ts.map +1 -0
- package/dist/utilities/common/web_socket_connection.js +94 -0
- package/dist/utilities/common/web_socket_connection.js.map +1 -0
- package/dist/utilities/evaluator/common.d.ts +10 -0
- package/dist/utilities/evaluator/common.d.ts.map +1 -0
- package/dist/utilities/evaluator/common.js +128 -0
- package/dist/utilities/evaluator/common.js.map +1 -0
- package/dist/utilities/evaluator/evaluator.d.ts +35 -0
- package/dist/utilities/evaluator/evaluator.d.ts.map +1 -0
- package/dist/utilities/evaluator/evaluator.js +141 -0
- package/dist/utilities/evaluator/evaluator.js.map +1 -0
- package/dist/utilities/evaluator/index.d.ts +3 -0
- package/dist/utilities/evaluator/index.d.ts.map +1 -0
- package/dist/utilities/evaluator/index.js +3 -0
- package/dist/utilities/evaluator/index.js.map +1 -0
- package/dist/utilities/executables/adapt_wrapper.d.ts +3 -0
- package/dist/utilities/executables/adapt_wrapper.d.ts.map +1 -0
- package/dist/utilities/executables/adapt_wrapper.js +25 -0
- package/dist/utilities/executables/adapt_wrapper.js.map +1 -0
- package/dist/utilities/executables/adapt_wrapper_mobile.d.ts +3 -0
- package/dist/utilities/executables/adapt_wrapper_mobile.d.ts.map +1 -0
- package/dist/utilities/executables/adapt_wrapper_mobile.js +20 -0
- package/dist/utilities/executables/adapt_wrapper_mobile.js.map +1 -0
- package/dist/utilities/executables/adapt_wrapper_script.d.ts +2 -0
- package/dist/utilities/executables/adapt_wrapper_script.d.ts.map +1 -0
- package/dist/utilities/executables/adapt_wrapper_script.js +6 -0
- package/dist/utilities/executables/adapt_wrapper_script.js.map +1 -0
- package/dist/utilities/executables/broker.d.ts +2 -0
- package/dist/utilities/executables/broker.d.ts.map +1 -0
- package/dist/utilities/executables/broker.js +23 -0
- package/dist/utilities/executables/broker.js.map +1 -0
- package/dist/utilities/executables/index.d.ts +2 -0
- package/dist/utilities/executables/index.d.ts.map +1 -0
- package/dist/utilities/executables/index.js +2 -0
- package/dist/utilities/executables/index.js.map +1 -0
- package/dist/utilities/executables/local_data_storage.d.ts +2 -0
- package/dist/utilities/executables/local_data_storage.d.ts.map +1 -0
- package/dist/utilities/executables/local_data_storage.js +20 -0
- package/dist/utilities/executables/local_data_storage.js.map +1 -0
- package/dist/utilities/executables/local_data_storage_cmd_helper.d.ts +2 -0
- package/dist/utilities/executables/local_data_storage_cmd_helper.d.ts.map +1 -0
- package/dist/utilities/executables/local_data_storage_cmd_helper.js +52 -0
- package/dist/utilities/executables/local_data_storage_cmd_helper.js.map +1 -0
- package/dist/utilities/storage/data_storage.d.ts +97 -0
- package/dist/utilities/storage/data_storage.d.ts.map +1 -0
- package/dist/utilities/storage/data_storage.js +440 -0
- package/dist/utilities/storage/data_storage.js.map +1 -0
- package/dist/utilities/storage/index.d.ts +6 -0
- package/dist/utilities/storage/index.d.ts.map +1 -0
- package/dist/utilities/storage/index.js +6 -0
- package/dist/utilities/storage/index.js.map +1 -0
- package/dist/utilities/storage/local_data_storage.d.ts +7 -0
- package/dist/utilities/storage/local_data_storage.d.ts.map +1 -0
- package/dist/utilities/storage/local_data_storage.js +18 -0
- package/dist/utilities/storage/local_data_storage.js.map +1 -0
- package/dist/utilities/storage/local_data_storage_base.d.ts +74 -0
- package/dist/utilities/storage/local_data_storage_base.d.ts.map +1 -0
- package/dist/utilities/storage/local_data_storage_base.js +163 -0
- package/dist/utilities/storage/local_data_storage_base.js.map +1 -0
- package/dist/utilities/storage/local_data_storage_configurator.d.ts +7 -0
- package/dist/utilities/storage/local_data_storage_configurator.d.ts.map +1 -0
- package/dist/utilities/storage/local_data_storage_configurator.js +13 -0
- package/dist/utilities/storage/local_data_storage_configurator.js.map +1 -0
- package/dist/utilities/storage/storage_client.d.ts +28 -0
- package/dist/utilities/storage/storage_client.d.ts.map +1 -0
- package/dist/utilities/storage/storage_client.js +79 -0
- package/dist/utilities/storage/storage_client.js.map +1 -0
- package/dist/utilities/wrappers/configurators/adapt_wrapper_configurator.d.ts +14 -0
- package/dist/utilities/wrappers/configurators/adapt_wrapper_configurator.d.ts.map +1 -0
- package/dist/utilities/wrappers/configurators/adapt_wrapper_configurator.js +57 -0
- package/dist/utilities/wrappers/configurators/adapt_wrapper_configurator.js.map +1 -0
- package/dist/utilities/wrappers/configurators/control_packet_configurator.d.ts +12 -0
- package/dist/utilities/wrappers/configurators/control_packet_configurator.d.ts.map +1 -0
- package/dist/utilities/wrappers/configurators/control_packet_configurator.js +52 -0
- package/dist/utilities/wrappers/configurators/control_packet_configurator.js.map +1 -0
- package/dist/utilities/wrappers/configurators/packet_wrapper_configurator.d.ts +32 -0
- package/dist/utilities/wrappers/configurators/packet_wrapper_configurator.d.ts.map +1 -0
- package/dist/utilities/wrappers/configurators/packet_wrapper_configurator.js +123 -0
- package/dist/utilities/wrappers/configurators/packet_wrapper_configurator.js.map +1 -0
- package/dist/utilities/wrappers/enclave/control_packet.d.ts +18 -0
- package/dist/utilities/wrappers/enclave/control_packet.d.ts.map +1 -0
- package/dist/utilities/wrappers/enclave/control_packet.js +213 -0
- package/dist/utilities/wrappers/enclave/control_packet.js.map +1 -0
- package/dist/utilities/wrappers/index.d.ts +5 -0
- package/dist/utilities/wrappers/index.d.ts.map +1 -0
- package/dist/utilities/wrappers/index.js +5 -0
- package/dist/utilities/wrappers/index.js.map +1 -0
- package/dist/utilities/wrappers/wrappers/adapt_packet_wrapper.d.ts +19 -0
- package/dist/utilities/wrappers/wrappers/adapt_packet_wrapper.d.ts.map +1 -0
- package/dist/utilities/wrappers/wrappers/adapt_packet_wrapper.js +55 -0
- package/dist/utilities/wrappers/wrappers/adapt_packet_wrapper.js.map +1 -0
- package/dist/utilities/wrappers/wrappers/adapt_wrapper.d.ts +131 -0
- package/dist/utilities/wrappers/wrappers/adapt_wrapper.d.ts.map +1 -0
- package/dist/utilities/wrappers/wrappers/adapt_wrapper.js +716 -0
- package/dist/utilities/wrappers/wrappers/adapt_wrapper.js.map +1 -0
- package/dist/utilities/wrappers/wrappers/impl/adapt_packet_wrapper_impl.d.ts +75 -0
- package/dist/utilities/wrappers/wrappers/impl/adapt_packet_wrapper_impl.d.ts.map +1 -0
- package/dist/utilities/wrappers/wrappers/impl/adapt_packet_wrapper_impl.js +550 -0
- package/dist/utilities/wrappers/wrappers/impl/adapt_packet_wrapper_impl.js.map +1 -0
- package/dist/wasm/adapt.d.ts +79 -0
- package/dist/wasm/adapt.d.ts.map +1 -0
- package/dist/wasm/adapt.js +430 -0
- package/dist/wasm/adapt.js.map +1 -0
- package/dist/wasm/backend-node.d.ts +1 -0
- package/dist/wasm/backend-node.d.ts.map +1 -0
- package/dist/wasm/backend-node.js +1 -0
- package/dist/wasm/backend-node.js.map +1 -0
- package/dist/wasm/index.d.ts +12 -0
- package/dist/wasm/index.d.ts.map +1 -0
- package/dist/wasm/index.js +15 -0
- package/dist/wasm/index.js.map +1 -0
- package/dist/wasm/mufl-bindings.d.ts +3 -0
- package/dist/wasm/mufl-bindings.d.ts.map +1 -0
- package/dist/wasm/mufl-bindings.js +3833 -0
- package/dist/wasm/mufl-bindings.js.map +1 -0
- package/dist/wasm/mufl-bindings.wasm +0 -0
- package/dist/wasm/wasm_types.d.ts +96 -0
- package/dist/wasm/wasm_types.d.ts.map +1 -0
- package/dist/wasm/wasm_types.js +2 -0
- package/dist/wasm/wasm_types.js.map +1 -0
- package/dist/wrapper/conversion.d.ts +9 -0
- package/dist/wrapper/conversion.d.ts.map +1 -0
- package/dist/wrapper/conversion.js +30 -0
- package/dist/wrapper/conversion.js.map +1 -0
- package/dist/wrapper/index.d.ts +11 -0
- package/dist/wrapper/index.d.ts.map +1 -0
- package/dist/wrapper/index.js +25 -0
- package/dist/wrapper/index.js.map +1 -0
- package/dist/wrapper/memory_management/adapt_builder.d.ts +36 -0
- package/dist/wrapper/memory_management/adapt_builder.d.ts.map +1 -0
- package/dist/wrapper/memory_management/adapt_builder.js +98 -0
- package/dist/wrapper/memory_management/adapt_builder.js.map +1 -0
- package/dist/wrapper/memory_management/exit_handler_registrar.d.ts +10 -0
- package/dist/wrapper/memory_management/exit_handler_registrar.d.ts.map +1 -0
- package/dist/wrapper/memory_management/exit_handler_registrar.js +38 -0
- package/dist/wrapper/memory_management/exit_handler_registrar.js.map +1 -0
- package/dist/wrapper/protocol/message_handler_interfaces.d.ts +32 -0
- package/dist/wrapper/protocol/message_handler_interfaces.d.ts.map +1 -0
- package/dist/wrapper/protocol/message_handler_interfaces.js +2 -0
- package/dist/wrapper/protocol/message_handler_interfaces.js.map +1 -0
- package/dist/wrapper/protocol/protocol.d.ts +171 -0
- package/dist/wrapper/protocol/protocol.d.ts.map +1 -0
- package/dist/wrapper/protocol/protocol.js +387 -0
- package/dist/wrapper/protocol/protocol.js.map +1 -0
- package/package.json +127 -0
|
@@ -0,0 +1,3833 @@
|
|
|
1
|
+
var createEMSCModule = (() => {
|
|
2
|
+
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
|
|
3
|
+
if (typeof __filename !== 'undefined')
|
|
4
|
+
_scriptDir = _scriptDir || __filename;
|
|
5
|
+
return (function (createEMSCModule) {
|
|
6
|
+
createEMSCModule = createEMSCModule || {};
|
|
7
|
+
var Module = typeof createEMSCModule !== "undefined" ? createEMSCModule : {};
|
|
8
|
+
var objAssign = Object.assign;
|
|
9
|
+
var readyPromiseResolve, readyPromiseReject;
|
|
10
|
+
Module["ready"] = new Promise(function (resolve, reject) { readyPromiseResolve = resolve; readyPromiseReject = reject; });
|
|
11
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_VoidPtr___destroy___0")) {
|
|
12
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_VoidPtr___destroy___0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_VoidPtr___destroy___0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
13
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_VoidPtr___destroy___0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_VoidPtr___destroy___0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
14
|
+
}
|
|
15
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_IteratorString_IteratorString_0")) {
|
|
16
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_IteratorString_IteratorString_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_IteratorString_IteratorString_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
17
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_IteratorString_IteratorString_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_IteratorString_IteratorString_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
18
|
+
}
|
|
19
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_IteratorString_value_0")) {
|
|
20
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_IteratorString_value_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_IteratorString_value_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
21
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_IteratorString_value_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_IteratorString_value_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
22
|
+
}
|
|
23
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_IteratorString_more_0")) {
|
|
24
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_IteratorString_more_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_IteratorString_more_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
25
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_IteratorString_more_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_IteratorString_more_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
26
|
+
}
|
|
27
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_IteratorString_next_0")) {
|
|
28
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_IteratorString_next_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_IteratorString_next_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
29
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_IteratorString_next_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_IteratorString_next_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
30
|
+
}
|
|
31
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_IteratorString___destroy___0")) {
|
|
32
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_IteratorString___destroy___0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_IteratorString___destroy___0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
33
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_IteratorString___destroy___0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_IteratorString___destroy___0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
34
|
+
}
|
|
35
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_IteratorAdaptValue_IteratorAdaptValue_0")) {
|
|
36
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_IteratorAdaptValue_IteratorAdaptValue_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_IteratorAdaptValue_IteratorAdaptValue_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
37
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_IteratorAdaptValue_IteratorAdaptValue_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_IteratorAdaptValue_IteratorAdaptValue_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
38
|
+
}
|
|
39
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_IteratorAdaptValue_value_0")) {
|
|
40
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_IteratorAdaptValue_value_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_IteratorAdaptValue_value_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
41
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_IteratorAdaptValue_value_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_IteratorAdaptValue_value_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
42
|
+
}
|
|
43
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_IteratorAdaptValue_more_0")) {
|
|
44
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_IteratorAdaptValue_more_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_IteratorAdaptValue_more_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
45
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_IteratorAdaptValue_more_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_IteratorAdaptValue_more_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
46
|
+
}
|
|
47
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_IteratorAdaptValue_next_0")) {
|
|
48
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_IteratorAdaptValue_next_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_IteratorAdaptValue_next_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
49
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_IteratorAdaptValue_next_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_IteratorAdaptValue_next_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
50
|
+
}
|
|
51
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_IteratorAdaptValue___destroy___0")) {
|
|
52
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_IteratorAdaptValue___destroy___0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_IteratorAdaptValue___destroy___0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
53
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_IteratorAdaptValue___destroy___0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_IteratorAdaptValue___destroy___0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
54
|
+
}
|
|
55
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_Binary_Binary_2")) {
|
|
56
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_Binary_Binary_2", { configurable: true, get: function () { abort("You are getting _emscripten_bind_Binary_Binary_2 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
57
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_Binary_Binary_2", { configurable: true, set: function () { abort("You are setting _emscripten_bind_Binary_Binary_2 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
58
|
+
}
|
|
59
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_Binary_Destroy_0")) {
|
|
60
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_Binary_Destroy_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_Binary_Destroy_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
61
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_Binary_Destroy_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_Binary_Destroy_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
62
|
+
}
|
|
63
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_Binary_Get_0")) {
|
|
64
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_Binary_Get_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_Binary_Get_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
65
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_Binary_Get_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_Binary_Get_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
66
|
+
}
|
|
67
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_Binary_Size_0")) {
|
|
68
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_Binary_Size_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_Binary_Size_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
69
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_Binary_Size_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_Binary_Size_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
70
|
+
}
|
|
71
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_Binary___destroy___0")) {
|
|
72
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_Binary___destroy___0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_Binary___destroy___0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
73
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_Binary___destroy___0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_Binary___destroy___0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
74
|
+
}
|
|
75
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptEvaluationUnit_LoadFromFile_1")) {
|
|
76
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEvaluationUnit_LoadFromFile_1", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptEvaluationUnit_LoadFromFile_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
77
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEvaluationUnit_LoadFromFile_1", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptEvaluationUnit_LoadFromFile_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
78
|
+
}
|
|
79
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptEvaluationUnit_LoadFromContents_1")) {
|
|
80
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEvaluationUnit_LoadFromContents_1", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptEvaluationUnit_LoadFromContents_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
81
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEvaluationUnit_LoadFromContents_1", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptEvaluationUnit_LoadFromContents_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
82
|
+
}
|
|
83
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptEvaluationUnit_Destroy_0")) {
|
|
84
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEvaluationUnit_Destroy_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptEvaluationUnit_Destroy_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
85
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEvaluationUnit_Destroy_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptEvaluationUnit_Destroy_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
86
|
+
}
|
|
87
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptEvaluationUnit_Check_0")) {
|
|
88
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEvaluationUnit_Check_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptEvaluationUnit_Check_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
89
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEvaluationUnit_Check_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptEvaluationUnit_Check_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
90
|
+
}
|
|
91
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptEvaluationUnit_Clone_0")) {
|
|
92
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEvaluationUnit_Clone_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptEvaluationUnit_Clone_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
93
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEvaluationUnit_Clone_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptEvaluationUnit_Clone_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
94
|
+
}
|
|
95
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptEvaluationUnit___destroy___0")) {
|
|
96
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEvaluationUnit___destroy___0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptEvaluationUnit___destroy___0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
97
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEvaluationUnit___destroy___0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptEvaluationUnit___destroy___0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
98
|
+
}
|
|
99
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptValue_FromString_1")) {
|
|
100
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_FromString_1", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptValue_FromString_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
101
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_FromString_1", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptValue_FromString_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
102
|
+
}
|
|
103
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptValue_FromNumber_1")) {
|
|
104
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_FromNumber_1", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptValue_FromNumber_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
105
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_FromNumber_1", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptValue_FromNumber_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
106
|
+
}
|
|
107
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptValue_FromBoolean_1")) {
|
|
108
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_FromBoolean_1", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptValue_FromBoolean_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
109
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_FromBoolean_1", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptValue_FromBoolean_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
110
|
+
}
|
|
111
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptValue_NilObject_0")) {
|
|
112
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_NilObject_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptValue_NilObject_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
113
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_NilObject_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptValue_NilObject_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
114
|
+
}
|
|
115
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptValue_Visualize_0")) {
|
|
116
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_Visualize_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptValue_Visualize_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
117
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_Visualize_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptValue_Visualize_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
118
|
+
}
|
|
119
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptValue_Serialize_0")) {
|
|
120
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_Serialize_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptValue_Serialize_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
121
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_Serialize_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptValue_Serialize_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
122
|
+
}
|
|
123
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptValue_GetHash_0")) {
|
|
124
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_GetHash_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptValue_GetHash_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
125
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_GetHash_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptValue_GetHash_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
126
|
+
}
|
|
127
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptValue_Reduce_1")) {
|
|
128
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_Reduce_1", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptValue_Reduce_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
129
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_Reduce_1", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptValue_Reduce_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
130
|
+
}
|
|
131
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptValue_Mutate_2")) {
|
|
132
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_Mutate_2", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptValue_Mutate_2 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
133
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_Mutate_2", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptValue_Mutate_2 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
134
|
+
}
|
|
135
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptValue_GetPacket_0")) {
|
|
136
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_GetPacket_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptValue_GetPacket_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
137
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_GetPacket_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptValue_GetPacket_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
138
|
+
}
|
|
139
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptValue_GetNumber_0")) {
|
|
140
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_GetNumber_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptValue_GetNumber_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
141
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_GetNumber_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptValue_GetNumber_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
142
|
+
}
|
|
143
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptValue_GetBoolean_0")) {
|
|
144
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_GetBoolean_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptValue_GetBoolean_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
145
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_GetBoolean_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptValue_GetBoolean_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
146
|
+
}
|
|
147
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptValue_GetBinary_0")) {
|
|
148
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_GetBinary_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptValue_GetBinary_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
149
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_GetBinary_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptValue_GetBinary_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
150
|
+
}
|
|
151
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptValue_IsNil_0")) {
|
|
152
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_IsNil_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptValue_IsNil_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
153
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_IsNil_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptValue_IsNil_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
154
|
+
}
|
|
155
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptValue_Equals_1")) {
|
|
156
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_Equals_1", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptValue_Equals_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
157
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_Equals_1", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptValue_Equals_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
158
|
+
}
|
|
159
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptValue_Less_1")) {
|
|
160
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_Less_1", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptValue_Less_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
161
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_Less_1", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptValue_Less_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
162
|
+
}
|
|
163
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptValue_GetKeys_0")) {
|
|
164
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_GetKeys_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptValue_GetKeys_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
165
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_GetKeys_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptValue_GetKeys_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
166
|
+
}
|
|
167
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptValue_Clone_0")) {
|
|
168
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_Clone_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptValue_Clone_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
169
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_Clone_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptValue_Clone_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
170
|
+
}
|
|
171
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptValue_Destroy_0")) {
|
|
172
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_Destroy_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptValue_Destroy_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
173
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_Destroy_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptValue_Destroy_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
174
|
+
}
|
|
175
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptValue_Check_0")) {
|
|
176
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_Check_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptValue_Check_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
177
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue_Check_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptValue_Check_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
178
|
+
}
|
|
179
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptValue___destroy___0")) {
|
|
180
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue___destroy___0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptValue___destroy___0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
181
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptValue___destroy___0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptValue___destroy___0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
182
|
+
}
|
|
183
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptPacketContext_LoadFromFile_1")) {
|
|
184
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_LoadFromFile_1", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptPacketContext_LoadFromFile_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
185
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_LoadFromFile_1", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptPacketContext_LoadFromFile_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
186
|
+
}
|
|
187
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptPacketContext_LoadFromContents_1")) {
|
|
188
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_LoadFromContents_1", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptPacketContext_LoadFromContents_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
189
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_LoadFromContents_1", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptPacketContext_LoadFromContents_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
190
|
+
}
|
|
191
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptPacketContext_ParseValue_1")) {
|
|
192
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_ParseValue_1", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptPacketContext_ParseValue_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
193
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_ParseValue_1", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptPacketContext_ParseValue_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
194
|
+
}
|
|
195
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptPacketContext_ParseValueFromJSON_1")) {
|
|
196
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_ParseValueFromJSON_1", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptPacketContext_ParseValueFromJSON_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
197
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_ParseValueFromJSON_1", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptPacketContext_ParseValueFromJSON_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
198
|
+
}
|
|
199
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptPacketContext_CreateDictionary_0")) {
|
|
200
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_CreateDictionary_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptPacketContext_CreateDictionary_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
201
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_CreateDictionary_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptPacketContext_CreateDictionary_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
202
|
+
}
|
|
203
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptPacketContext_NewBinaryFromHex_1")) {
|
|
204
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_NewBinaryFromHex_1", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptPacketContext_NewBinaryFromHex_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
205
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_NewBinaryFromHex_1", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptPacketContext_NewBinaryFromHex_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
206
|
+
}
|
|
207
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptPacketContext_NewBinaryFromBuffer_1")) {
|
|
208
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_NewBinaryFromBuffer_1", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptPacketContext_NewBinaryFromBuffer_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
209
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_NewBinaryFromBuffer_1", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptPacketContext_NewBinaryFromBuffer_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
210
|
+
}
|
|
211
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptPacketContext_ExecuteTransaction_3")) {
|
|
212
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_ExecuteTransaction_3", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptPacketContext_ExecuteTransaction_3 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
213
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_ExecuteTransaction_3", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptPacketContext_ExecuteTransaction_3 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
214
|
+
}
|
|
215
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptPacketContext_GetFunction_1")) {
|
|
216
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_GetFunction_1", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptPacketContext_GetFunction_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
217
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_GetFunction_1", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptPacketContext_GetFunction_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
218
|
+
}
|
|
219
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptPacketContext_GetHash_0")) {
|
|
220
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_GetHash_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptPacketContext_GetHash_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
221
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_GetHash_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptPacketContext_GetHash_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
222
|
+
}
|
|
223
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptPacketContext_GetContainerID_0")) {
|
|
224
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_GetContainerID_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptPacketContext_GetContainerID_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
225
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_GetContainerID_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptPacketContext_GetContainerID_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
226
|
+
}
|
|
227
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptPacketContext_GetCodeID_0")) {
|
|
228
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_GetCodeID_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptPacketContext_GetCodeID_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
229
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_GetCodeID_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptPacketContext_GetCodeID_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
230
|
+
}
|
|
231
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptPacketContext_Serialize_0")) {
|
|
232
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_Serialize_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptPacketContext_Serialize_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
233
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_Serialize_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptPacketContext_Serialize_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
234
|
+
}
|
|
235
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptPacketContext_Destroy_0")) {
|
|
236
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_Destroy_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptPacketContext_Destroy_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
237
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_Destroy_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptPacketContext_Destroy_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
238
|
+
}
|
|
239
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptPacketContext_Check_0")) {
|
|
240
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_Check_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptPacketContext_Check_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
241
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_Check_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptPacketContext_Check_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
242
|
+
}
|
|
243
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptPacketContext_Clone_0")) {
|
|
244
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_Clone_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptPacketContext_Clone_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
245
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_Clone_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptPacketContext_Clone_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
246
|
+
}
|
|
247
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptPacketContext_TransactionsList_0")) {
|
|
248
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_TransactionsList_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptPacketContext_TransactionsList_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
249
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_TransactionsList_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptPacketContext_TransactionsList_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
250
|
+
}
|
|
251
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptPacketContext_NilObject_0")) {
|
|
252
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_NilObject_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptPacketContext_NilObject_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
253
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext_NilObject_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptPacketContext_NilObject_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
254
|
+
}
|
|
255
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptPacketContext___destroy___0")) {
|
|
256
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext___destroy___0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptPacketContext___destroy___0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
257
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptPacketContext___destroy___0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptPacketContext___destroy___0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
258
|
+
}
|
|
259
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptFunctionInvocation_Reset_0")) {
|
|
260
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptFunctionInvocation_Reset_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptFunctionInvocation_Reset_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
261
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptFunctionInvocation_Reset_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptFunctionInvocation_Reset_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
262
|
+
}
|
|
263
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptFunctionInvocation_PushParameter_1")) {
|
|
264
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptFunctionInvocation_PushParameter_1", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptFunctionInvocation_PushParameter_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
265
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptFunctionInvocation_PushParameter_1", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptFunctionInvocation_PushParameter_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
266
|
+
}
|
|
267
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptFunctionInvocation_Execute_0")) {
|
|
268
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptFunctionInvocation_Execute_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptFunctionInvocation_Execute_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
269
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptFunctionInvocation_Execute_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptFunctionInvocation_Execute_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
270
|
+
}
|
|
271
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptFunctionInvocation_Destroy_0")) {
|
|
272
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptFunctionInvocation_Destroy_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptFunctionInvocation_Destroy_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
273
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptFunctionInvocation_Destroy_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptFunctionInvocation_Destroy_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
274
|
+
}
|
|
275
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptFunctionInvocation_Check_0")) {
|
|
276
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptFunctionInvocation_Check_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptFunctionInvocation_Check_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
277
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptFunctionInvocation_Check_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptFunctionInvocation_Check_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
278
|
+
}
|
|
279
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptFunctionInvocation___destroy___0")) {
|
|
280
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptFunctionInvocation___destroy___0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptFunctionInvocation___destroy___0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
281
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptFunctionInvocation___destroy___0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptFunctionInvocation___destroy___0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
282
|
+
}
|
|
283
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptEnvironment_AdaptEnvironment_0")) {
|
|
284
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_AdaptEnvironment_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptEnvironment_AdaptEnvironment_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
285
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_AdaptEnvironment_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptEnvironment_AdaptEnvironment_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
286
|
+
}
|
|
287
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptEnvironment_Initialize_1")) {
|
|
288
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_Initialize_1", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptEnvironment_Initialize_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
289
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_Initialize_1", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptEnvironment_Initialize_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
290
|
+
}
|
|
291
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptEnvironment_EmptyPacket_1")) {
|
|
292
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_EmptyPacket_1", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptEnvironment_EmptyPacket_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
293
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_EmptyPacket_1", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptEnvironment_EmptyPacket_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
294
|
+
}
|
|
295
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptEnvironment_CreatePacket_6")) {
|
|
296
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_CreatePacket_6", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptEnvironment_CreatePacket_6 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
297
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_CreatePacket_6", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptEnvironment_CreatePacket_6 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
298
|
+
}
|
|
299
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptEnvironment_SystemTime_0")) {
|
|
300
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_SystemTime_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptEnvironment_SystemTime_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
301
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_SystemTime_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptEnvironment_SystemTime_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
302
|
+
}
|
|
303
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptEnvironment_ParseTime_1")) {
|
|
304
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_ParseTime_1", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptEnvironment_ParseTime_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
305
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_ParseTime_1", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptEnvironment_ParseTime_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
306
|
+
}
|
|
307
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptEnvironment_GetRandomBytes_1")) {
|
|
308
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_GetRandomBytes_1", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptEnvironment_GetRandomBytes_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
309
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_GetRandomBytes_1", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptEnvironment_GetRandomBytes_1 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
310
|
+
}
|
|
311
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptEnvironment_hasError_0")) {
|
|
312
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_hasError_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptEnvironment_hasError_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
313
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_hasError_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptEnvironment_hasError_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
314
|
+
}
|
|
315
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptEnvironment_getError_0")) {
|
|
316
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_getError_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptEnvironment_getError_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
317
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_getError_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptEnvironment_getError_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
318
|
+
}
|
|
319
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptEnvironment_clearError_0")) {
|
|
320
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_clearError_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptEnvironment_clearError_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
321
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_clearError_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptEnvironment_clearError_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
322
|
+
}
|
|
323
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptEnvironment_countObjectsOutstanding_0")) {
|
|
324
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_countObjectsOutstanding_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptEnvironment_countObjectsOutstanding_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
325
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_countObjectsOutstanding_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptEnvironment_countObjectsOutstanding_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
326
|
+
}
|
|
327
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptEnvironment_getStderrContents_0")) {
|
|
328
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_getStderrContents_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptEnvironment_getStderrContents_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
329
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_getStderrContents_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptEnvironment_getStderrContents_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
330
|
+
}
|
|
331
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptEnvironment_getStdoutContents_0")) {
|
|
332
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_getStdoutContents_0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptEnvironment_getStdoutContents_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
333
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment_getStdoutContents_0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptEnvironment_getStdoutContents_0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
334
|
+
}
|
|
335
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "_emscripten_bind_AdaptEnvironment___destroy___0")) {
|
|
336
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment___destroy___0", { configurable: true, get: function () { abort("You are getting _emscripten_bind_AdaptEnvironment___destroy___0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
337
|
+
Object.defineProperty(Module["ready"], "_emscripten_bind_AdaptEnvironment___destroy___0", { configurable: true, set: function () { abort("You are setting _emscripten_bind_AdaptEnvironment___destroy___0 on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
338
|
+
}
|
|
339
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "___stdio_exit")) {
|
|
340
|
+
Object.defineProperty(Module["ready"], "___stdio_exit", { configurable: true, get: function () { abort("You are getting ___stdio_exit on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
341
|
+
Object.defineProperty(Module["ready"], "___stdio_exit", { configurable: true, set: function () { abort("You are setting ___stdio_exit on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
342
|
+
}
|
|
343
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "___set_stack_limits")) {
|
|
344
|
+
Object.defineProperty(Module["ready"], "___set_stack_limits", { configurable: true, get: function () { abort("You are getting ___set_stack_limits on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
345
|
+
Object.defineProperty(Module["ready"], "___set_stack_limits", { configurable: true, set: function () { abort("You are setting ___set_stack_limits on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
346
|
+
}
|
|
347
|
+
if (!Object.getOwnPropertyDescriptor(Module["ready"], "onRuntimeInitialized")) {
|
|
348
|
+
Object.defineProperty(Module["ready"], "onRuntimeInitialized", { configurable: true, get: function () { abort("You are getting onRuntimeInitialized on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
349
|
+
Object.defineProperty(Module["ready"], "onRuntimeInitialized", { configurable: true, set: function () { abort("You are setting onRuntimeInitialized on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"); } });
|
|
350
|
+
}
|
|
351
|
+
if (typeof window === "object") {
|
|
352
|
+
Module["arguments"] = window.location.search.substr(1).trim().split("&");
|
|
353
|
+
if (!Module["arguments"][0]) {
|
|
354
|
+
Module["arguments"] = [];
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
var moduleOverrides = objAssign({}, Module);
|
|
358
|
+
var arguments_ = [];
|
|
359
|
+
var thisProgram = "./this.program";
|
|
360
|
+
var quit_ = (status, toThrow) => { throw toThrow; };
|
|
361
|
+
var ENVIRONMENT_IS_WEB = typeof window === "object";
|
|
362
|
+
var ENVIRONMENT_IS_WORKER = typeof importScripts === "function";
|
|
363
|
+
var ENVIRONMENT_IS_NODE = typeof process === "object" && typeof process.versions === "object" && typeof process.versions.node === "string";
|
|
364
|
+
var ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIRONMENT_IS_WORKER;
|
|
365
|
+
if (Module["ENVIRONMENT"]) {
|
|
366
|
+
throw new Error("Module.ENVIRONMENT has been deprecated. To force the environment, use the ENVIRONMENT compile-time option (for example, -s ENVIRONMENT=web or -s ENVIRONMENT=node)");
|
|
367
|
+
}
|
|
368
|
+
var scriptDirectory = "";
|
|
369
|
+
function locateFile(path) { if (Module["locateFile"]) {
|
|
370
|
+
return Module["locateFile"](path, scriptDirectory);
|
|
371
|
+
} return scriptDirectory + path; }
|
|
372
|
+
var read_, readAsync, readBinary, setWindowTitle;
|
|
373
|
+
function logExceptionOnExit(e) { if (e instanceof ExitStatus)
|
|
374
|
+
return; let toLog = e; if (e && typeof e === "object" && e.stack) {
|
|
375
|
+
toLog = [e, e.stack];
|
|
376
|
+
} err("exiting due to exception: " + toLog); }
|
|
377
|
+
var fs;
|
|
378
|
+
var nodePath;
|
|
379
|
+
var requireNodeFS;
|
|
380
|
+
if (ENVIRONMENT_IS_NODE) {
|
|
381
|
+
if (!(typeof process === "object" && typeof require === "function"))
|
|
382
|
+
throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");
|
|
383
|
+
if (ENVIRONMENT_IS_WORKER) {
|
|
384
|
+
scriptDirectory = require("path").dirname(scriptDirectory) + "/";
|
|
385
|
+
}
|
|
386
|
+
else {
|
|
387
|
+
scriptDirectory = __dirname + "/";
|
|
388
|
+
}
|
|
389
|
+
requireNodeFS = (() => { if (!nodePath) {
|
|
390
|
+
fs = require("fs");
|
|
391
|
+
nodePath = require("path");
|
|
392
|
+
} });
|
|
393
|
+
read_ = function shell_read(filename, binary) { requireNodeFS(); filename = nodePath["normalize"](filename); return fs.readFileSync(filename, binary ? null : "utf8"); };
|
|
394
|
+
readBinary = (filename => { var ret = read_(filename, true); if (!ret.buffer) {
|
|
395
|
+
ret = new Uint8Array(ret);
|
|
396
|
+
} assert(ret.buffer); return ret; });
|
|
397
|
+
readAsync = ((filename, onload, onerror) => { requireNodeFS(); filename = nodePath["normalize"](filename); fs.readFile(filename, function (err, data) { if (err)
|
|
398
|
+
onerror(err);
|
|
399
|
+
else
|
|
400
|
+
onload(data.buffer); }); });
|
|
401
|
+
if (process["argv"].length > 1) {
|
|
402
|
+
thisProgram = process["argv"][1].replace(/\\/g, "/");
|
|
403
|
+
}
|
|
404
|
+
arguments_ = process["argv"].slice(2);
|
|
405
|
+
process["on"]("uncaughtException", function (ex) { if (!(ex instanceof ExitStatus)) {
|
|
406
|
+
throw ex;
|
|
407
|
+
} });
|
|
408
|
+
process["on"]("unhandledRejection", function (reason) { throw reason; });
|
|
409
|
+
quit_ = ((status, toThrow) => { if (keepRuntimeAlive()) {
|
|
410
|
+
process["exitCode"] = status;
|
|
411
|
+
throw toThrow;
|
|
412
|
+
} logExceptionOnExit(toThrow); process["exit"](status); });
|
|
413
|
+
Module["inspect"] = function () { return "[Emscripten Module object]"; };
|
|
414
|
+
}
|
|
415
|
+
else if (ENVIRONMENT_IS_SHELL) {
|
|
416
|
+
if (typeof process === "object" && typeof require === "function" || typeof window === "object" || typeof importScripts === "function")
|
|
417
|
+
throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");
|
|
418
|
+
if (typeof read != "undefined") {
|
|
419
|
+
read_ = function shell_read(f) { return read(f); };
|
|
420
|
+
}
|
|
421
|
+
readBinary = function readBinary(f) { let data; if (typeof readbuffer === "function") {
|
|
422
|
+
return new Uint8Array(readbuffer(f));
|
|
423
|
+
} data = read(f, "binary"); assert(typeof data === "object"); return data; };
|
|
424
|
+
readAsync = function readAsync(f, onload, onerror) { setTimeout(() => onload(readBinary(f)), 0); };
|
|
425
|
+
if (typeof scriptArgs != "undefined") {
|
|
426
|
+
arguments_ = scriptArgs;
|
|
427
|
+
}
|
|
428
|
+
else if (typeof arguments != "undefined") {
|
|
429
|
+
arguments_ = arguments;
|
|
430
|
+
}
|
|
431
|
+
if (typeof quit === "function") {
|
|
432
|
+
quit_ = ((status, toThrow) => { logExceptionOnExit(toThrow); quit(status); });
|
|
433
|
+
}
|
|
434
|
+
if (typeof print !== "undefined") {
|
|
435
|
+
if (typeof console === "undefined")
|
|
436
|
+
console = {};
|
|
437
|
+
console.log = print;
|
|
438
|
+
console.warn = console.error = typeof printErr !== "undefined" ? printErr : print;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
else if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) {
|
|
442
|
+
if (ENVIRONMENT_IS_WORKER) {
|
|
443
|
+
scriptDirectory = self.location.href;
|
|
444
|
+
}
|
|
445
|
+
else if (typeof document !== "undefined" && document.currentScript) {
|
|
446
|
+
scriptDirectory = document.currentScript.src;
|
|
447
|
+
}
|
|
448
|
+
if (_scriptDir) {
|
|
449
|
+
scriptDirectory = _scriptDir;
|
|
450
|
+
}
|
|
451
|
+
if (scriptDirectory.indexOf("blob:") !== 0) {
|
|
452
|
+
scriptDirectory = scriptDirectory.substr(0, scriptDirectory.replace(/[?#].*/, "").lastIndexOf("/") + 1);
|
|
453
|
+
}
|
|
454
|
+
else {
|
|
455
|
+
scriptDirectory = "";
|
|
456
|
+
}
|
|
457
|
+
if (!(typeof window === "object" || typeof importScripts === "function"))
|
|
458
|
+
throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");
|
|
459
|
+
{
|
|
460
|
+
read_ = (url => { var xhr = new XMLHttpRequest; xhr.open("GET", url, false); xhr.send(null); return xhr.responseText; });
|
|
461
|
+
if (ENVIRONMENT_IS_WORKER) {
|
|
462
|
+
readBinary = (url => { var xhr = new XMLHttpRequest; xhr.open("GET", url, false); xhr.responseType = "arraybuffer"; xhr.send(null); return new Uint8Array(xhr.response); });
|
|
463
|
+
}
|
|
464
|
+
readAsync = ((url, onload, onerror) => { var xhr = new XMLHttpRequest; xhr.open("GET", url, true); xhr.responseType = "arraybuffer"; xhr.onload = (() => { if (xhr.status == 200 || xhr.status == 0 && xhr.response) {
|
|
465
|
+
onload(xhr.response);
|
|
466
|
+
return;
|
|
467
|
+
} onerror(); }); xhr.onerror = onerror; xhr.send(null); });
|
|
468
|
+
}
|
|
469
|
+
setWindowTitle = (title => document.title = title);
|
|
470
|
+
}
|
|
471
|
+
else {
|
|
472
|
+
throw new Error("environment detection error");
|
|
473
|
+
}
|
|
474
|
+
var out = Module["print"] || console.log.bind(console);
|
|
475
|
+
var err = Module["printErr"] || console.warn.bind(console);
|
|
476
|
+
objAssign(Module, moduleOverrides);
|
|
477
|
+
moduleOverrides = null;
|
|
478
|
+
if (Module["arguments"])
|
|
479
|
+
arguments_ = Module["arguments"];
|
|
480
|
+
if (!Object.getOwnPropertyDescriptor(Module, "arguments")) {
|
|
481
|
+
Object.defineProperty(Module, "arguments", { configurable: true, get: function () { abort("Module.arguments has been replaced with plain arguments_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)"); } });
|
|
482
|
+
}
|
|
483
|
+
if (Module["thisProgram"])
|
|
484
|
+
thisProgram = Module["thisProgram"];
|
|
485
|
+
if (!Object.getOwnPropertyDescriptor(Module, "thisProgram")) {
|
|
486
|
+
Object.defineProperty(Module, "thisProgram", { configurable: true, get: function () { abort("Module.thisProgram has been replaced with plain thisProgram (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)"); } });
|
|
487
|
+
}
|
|
488
|
+
if (Module["quit"])
|
|
489
|
+
quit_ = Module["quit"];
|
|
490
|
+
if (!Object.getOwnPropertyDescriptor(Module, "quit")) {
|
|
491
|
+
Object.defineProperty(Module, "quit", { configurable: true, get: function () { abort("Module.quit has been replaced with plain quit_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)"); } });
|
|
492
|
+
}
|
|
493
|
+
assert(typeof Module["memoryInitializerPrefixURL"] === "undefined", "Module.memoryInitializerPrefixURL option was removed, use Module.locateFile instead");
|
|
494
|
+
assert(typeof Module["pthreadMainPrefixURL"] === "undefined", "Module.pthreadMainPrefixURL option was removed, use Module.locateFile instead");
|
|
495
|
+
assert(typeof Module["cdInitializerPrefixURL"] === "undefined", "Module.cdInitializerPrefixURL option was removed, use Module.locateFile instead");
|
|
496
|
+
assert(typeof Module["filePackagePrefixURL"] === "undefined", "Module.filePackagePrefixURL option was removed, use Module.locateFile instead");
|
|
497
|
+
assert(typeof Module["read"] === "undefined", "Module.read option was removed (modify read_ in JS)");
|
|
498
|
+
assert(typeof Module["readAsync"] === "undefined", "Module.readAsync option was removed (modify readAsync in JS)");
|
|
499
|
+
assert(typeof Module["readBinary"] === "undefined", "Module.readBinary option was removed (modify readBinary in JS)");
|
|
500
|
+
assert(typeof Module["setWindowTitle"] === "undefined", "Module.setWindowTitle option was removed (modify setWindowTitle in JS)");
|
|
501
|
+
assert(typeof Module["TOTAL_MEMORY"] === "undefined", "Module.TOTAL_MEMORY has been renamed Module.INITIAL_MEMORY");
|
|
502
|
+
if (!Object.getOwnPropertyDescriptor(Module, "read")) {
|
|
503
|
+
Object.defineProperty(Module, "read", { configurable: true, get: function () { abort("Module.read has been replaced with plain read_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)"); } });
|
|
504
|
+
}
|
|
505
|
+
if (!Object.getOwnPropertyDescriptor(Module, "readAsync")) {
|
|
506
|
+
Object.defineProperty(Module, "readAsync", { configurable: true, get: function () { abort("Module.readAsync has been replaced with plain readAsync (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)"); } });
|
|
507
|
+
}
|
|
508
|
+
if (!Object.getOwnPropertyDescriptor(Module, "readBinary")) {
|
|
509
|
+
Object.defineProperty(Module, "readBinary", { configurable: true, get: function () { abort("Module.readBinary has been replaced with plain readBinary (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)"); } });
|
|
510
|
+
}
|
|
511
|
+
if (!Object.getOwnPropertyDescriptor(Module, "setWindowTitle")) {
|
|
512
|
+
Object.defineProperty(Module, "setWindowTitle", { configurable: true, get: function () { abort("Module.setWindowTitle has been replaced with plain setWindowTitle (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)"); } });
|
|
513
|
+
}
|
|
514
|
+
assert(!ENVIRONMENT_IS_WORKER, "worker environment detected but not enabled at build time. Add 'worker' to `-s ENVIRONMENT` to enable.");
|
|
515
|
+
assert(!ENVIRONMENT_IS_SHELL, "shell environment detected but not enabled at build time. Add 'shell' to `-s ENVIRONMENT` to enable.");
|
|
516
|
+
var POINTER_SIZE = 4;
|
|
517
|
+
function warnOnce(text) { if (!warnOnce.shown)
|
|
518
|
+
warnOnce.shown = {}; if (!warnOnce.shown[text]) {
|
|
519
|
+
warnOnce.shown[text] = 1;
|
|
520
|
+
err(text);
|
|
521
|
+
} }
|
|
522
|
+
function convertJsFunctionToWasm(func, sig) { if (typeof WebAssembly.Function === "function") {
|
|
523
|
+
var typeNames = { "i": "i32", "j": "i64", "f": "f32", "d": "f64" };
|
|
524
|
+
var type = { parameters: [], results: sig[0] == "v" ? [] : [typeNames[sig[0]]] };
|
|
525
|
+
for (var i = 1; i < sig.length; ++i) {
|
|
526
|
+
type.parameters.push(typeNames[sig[i]]);
|
|
527
|
+
}
|
|
528
|
+
return new WebAssembly.Function(type, func);
|
|
529
|
+
} var typeSection = [1, 0, 1, 96]; var sigRet = sig.slice(0, 1); var sigParam = sig.slice(1); var typeCodes = { "i": 127, "j": 126, "f": 125, "d": 124 }; typeSection.push(sigParam.length); for (var i = 0; i < sigParam.length; ++i) {
|
|
530
|
+
typeSection.push(typeCodes[sigParam[i]]);
|
|
531
|
+
} if (sigRet == "v") {
|
|
532
|
+
typeSection.push(0);
|
|
533
|
+
}
|
|
534
|
+
else {
|
|
535
|
+
typeSection = typeSection.concat([1, typeCodes[sigRet]]);
|
|
536
|
+
} typeSection[1] = typeSection.length - 2; var bytes = new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0].concat(typeSection, [2, 7, 1, 1, 101, 1, 102, 0, 0, 7, 5, 1, 1, 102, 0, 0])); var module = new WebAssembly.Module(bytes); var instance = new WebAssembly.Instance(module, { "e": { "f": func } }); var wrappedFunc = instance.exports["f"]; return wrappedFunc; }
|
|
537
|
+
var freeTableIndexes = [];
|
|
538
|
+
var functionsInTableMap;
|
|
539
|
+
function getEmptyTableSlot() { if (freeTableIndexes.length) {
|
|
540
|
+
return freeTableIndexes.pop();
|
|
541
|
+
} try {
|
|
542
|
+
wasmTable.grow(1);
|
|
543
|
+
}
|
|
544
|
+
catch (err) {
|
|
545
|
+
if (!(err instanceof RangeError)) {
|
|
546
|
+
throw err;
|
|
547
|
+
}
|
|
548
|
+
throw "Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.";
|
|
549
|
+
} return wasmTable.length - 1; }
|
|
550
|
+
function updateTableMap(offset, count) { for (var i = offset; i < offset + count; i++) {
|
|
551
|
+
var item = getWasmTableEntry(i);
|
|
552
|
+
if (item) {
|
|
553
|
+
functionsInTableMap.set(item, i);
|
|
554
|
+
}
|
|
555
|
+
} }
|
|
556
|
+
var tempRet0 = 0;
|
|
557
|
+
var setTempRet0 = value => { tempRet0 = value; };
|
|
558
|
+
var getTempRet0 = () => tempRet0;
|
|
559
|
+
var wasmBinary;
|
|
560
|
+
if (Module["wasmBinary"])
|
|
561
|
+
wasmBinary = Module["wasmBinary"];
|
|
562
|
+
if (!Object.getOwnPropertyDescriptor(Module, "wasmBinary")) {
|
|
563
|
+
Object.defineProperty(Module, "wasmBinary", { configurable: true, get: function () { abort("Module.wasmBinary has been replaced with plain wasmBinary (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)"); } });
|
|
564
|
+
}
|
|
565
|
+
var noExitRuntime = Module["noExitRuntime"] || false;
|
|
566
|
+
if (!Object.getOwnPropertyDescriptor(Module, "noExitRuntime")) {
|
|
567
|
+
Object.defineProperty(Module, "noExitRuntime", { configurable: true, get: function () { abort("Module.noExitRuntime has been replaced with plain noExitRuntime (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)"); } });
|
|
568
|
+
}
|
|
569
|
+
if (typeof WebAssembly !== "object") {
|
|
570
|
+
abort("no native wasm support detected");
|
|
571
|
+
}
|
|
572
|
+
var wasmMemory;
|
|
573
|
+
var ABORT = false;
|
|
574
|
+
var EXITSTATUS;
|
|
575
|
+
function assert(condition, text) { if (!condition) {
|
|
576
|
+
abort("Assertion failed" + (text ? ": " + text : ""));
|
|
577
|
+
} }
|
|
578
|
+
function getCFunc(ident) { var func = Module["_" + ident]; assert(func, "Cannot call unknown function " + ident + ", make sure it is exported"); return func; }
|
|
579
|
+
function ccall(ident, returnType, argTypes, args, opts) { var toC = { "string": function (str) { var ret = 0; if (str !== null && str !== undefined && str !== 0) {
|
|
580
|
+
var len = (str.length << 2) + 1;
|
|
581
|
+
ret = stackAlloc(len);
|
|
582
|
+
stringToUTF8(str, ret, len);
|
|
583
|
+
} return ret; }, "array": function (arr) { var ret = stackAlloc(arr.length); writeArrayToMemory(arr, ret); return ret; } }; function convertReturnValue(ret) { if (returnType === "string")
|
|
584
|
+
return UTF8ToString(ret); if (returnType === "boolean")
|
|
585
|
+
return Boolean(ret); return ret; } var func = getCFunc(ident); var cArgs = []; var stack = 0; assert(returnType !== "array", 'Return type should not be "array".'); if (args) {
|
|
586
|
+
for (var i = 0; i < args.length; i++) {
|
|
587
|
+
var converter = toC[argTypes[i]];
|
|
588
|
+
if (converter) {
|
|
589
|
+
if (stack === 0)
|
|
590
|
+
stack = stackSave();
|
|
591
|
+
cArgs[i] = converter(args[i]);
|
|
592
|
+
}
|
|
593
|
+
else {
|
|
594
|
+
cArgs[i] = args[i];
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
} var ret = func.apply(null, cArgs); function onDone(ret) { if (stack !== 0)
|
|
598
|
+
stackRestore(stack); return convertReturnValue(ret); } ret = onDone(ret); return ret; }
|
|
599
|
+
var ALLOC_STACK = 1;
|
|
600
|
+
var UTF8Decoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf8") : undefined;
|
|
601
|
+
function UTF8ArrayToString(heap, idx, maxBytesToRead) { var endIdx = idx + maxBytesToRead; var endPtr = idx; while (heap[endPtr] && !(endPtr >= endIdx))
|
|
602
|
+
++endPtr; if (endPtr - idx > 16 && heap.subarray && UTF8Decoder) {
|
|
603
|
+
return UTF8Decoder.decode(heap.subarray(idx, endPtr));
|
|
604
|
+
}
|
|
605
|
+
else {
|
|
606
|
+
var str = "";
|
|
607
|
+
while (idx < endPtr) {
|
|
608
|
+
var u0 = heap[idx++];
|
|
609
|
+
if (!(u0 & 128)) {
|
|
610
|
+
str += String.fromCharCode(u0);
|
|
611
|
+
continue;
|
|
612
|
+
}
|
|
613
|
+
var u1 = heap[idx++] & 63;
|
|
614
|
+
if ((u0 & 224) == 192) {
|
|
615
|
+
str += String.fromCharCode((u0 & 31) << 6 | u1);
|
|
616
|
+
continue;
|
|
617
|
+
}
|
|
618
|
+
var u2 = heap[idx++] & 63;
|
|
619
|
+
if ((u0 & 240) == 224) {
|
|
620
|
+
u0 = (u0 & 15) << 12 | u1 << 6 | u2;
|
|
621
|
+
}
|
|
622
|
+
else {
|
|
623
|
+
if ((u0 & 248) != 240)
|
|
624
|
+
warnOnce("Invalid UTF-8 leading byte 0x" + u0.toString(16) + " encountered when deserializing a UTF-8 string in wasm memory to a JS string!");
|
|
625
|
+
u0 = (u0 & 7) << 18 | u1 << 12 | u2 << 6 | heap[idx++] & 63;
|
|
626
|
+
}
|
|
627
|
+
if (u0 < 65536) {
|
|
628
|
+
str += String.fromCharCode(u0);
|
|
629
|
+
}
|
|
630
|
+
else {
|
|
631
|
+
var ch = u0 - 65536;
|
|
632
|
+
str += String.fromCharCode(55296 | ch >> 10, 56320 | ch & 1023);
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
} return str; }
|
|
636
|
+
function UTF8ToString(ptr, maxBytesToRead) { return ptr ? UTF8ArrayToString(HEAPU8, ptr, maxBytesToRead) : ""; }
|
|
637
|
+
function stringToUTF8Array(str, heap, outIdx, maxBytesToWrite) { if (!(maxBytesToWrite > 0))
|
|
638
|
+
return 0; var startIdx = outIdx; var endIdx = outIdx + maxBytesToWrite - 1; for (var i = 0; i < str.length; ++i) {
|
|
639
|
+
var u = str.charCodeAt(i);
|
|
640
|
+
if (u >= 55296 && u <= 57343) {
|
|
641
|
+
var u1 = str.charCodeAt(++i);
|
|
642
|
+
u = 65536 + ((u & 1023) << 10) | u1 & 1023;
|
|
643
|
+
}
|
|
644
|
+
if (u <= 127) {
|
|
645
|
+
if (outIdx >= endIdx)
|
|
646
|
+
break;
|
|
647
|
+
heap[outIdx++] = u;
|
|
648
|
+
}
|
|
649
|
+
else if (u <= 2047) {
|
|
650
|
+
if (outIdx + 1 >= endIdx)
|
|
651
|
+
break;
|
|
652
|
+
heap[outIdx++] = 192 | u >> 6;
|
|
653
|
+
heap[outIdx++] = 128 | u & 63;
|
|
654
|
+
}
|
|
655
|
+
else if (u <= 65535) {
|
|
656
|
+
if (outIdx + 2 >= endIdx)
|
|
657
|
+
break;
|
|
658
|
+
heap[outIdx++] = 224 | u >> 12;
|
|
659
|
+
heap[outIdx++] = 128 | u >> 6 & 63;
|
|
660
|
+
heap[outIdx++] = 128 | u & 63;
|
|
661
|
+
}
|
|
662
|
+
else {
|
|
663
|
+
if (outIdx + 3 >= endIdx)
|
|
664
|
+
break;
|
|
665
|
+
if (u > 1114111)
|
|
666
|
+
warnOnce("Invalid Unicode code point 0x" + u.toString(16) + " encountered when serializing a JS string to a UTF-8 string in wasm memory! (Valid unicode code points should be in range 0-0x10FFFF).");
|
|
667
|
+
heap[outIdx++] = 240 | u >> 18;
|
|
668
|
+
heap[outIdx++] = 128 | u >> 12 & 63;
|
|
669
|
+
heap[outIdx++] = 128 | u >> 6 & 63;
|
|
670
|
+
heap[outIdx++] = 128 | u & 63;
|
|
671
|
+
}
|
|
672
|
+
} heap[outIdx] = 0; return outIdx - startIdx; }
|
|
673
|
+
function stringToUTF8(str, outPtr, maxBytesToWrite) { assert(typeof maxBytesToWrite == "number", "stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"); return stringToUTF8Array(str, HEAPU8, outPtr, maxBytesToWrite); }
|
|
674
|
+
function lengthBytesUTF8(str) { var len = 0; for (var i = 0; i < str.length; ++i) {
|
|
675
|
+
var u = str.charCodeAt(i);
|
|
676
|
+
if (u >= 55296 && u <= 57343)
|
|
677
|
+
u = 65536 + ((u & 1023) << 10) | str.charCodeAt(++i) & 1023;
|
|
678
|
+
if (u <= 127)
|
|
679
|
+
++len;
|
|
680
|
+
else if (u <= 2047)
|
|
681
|
+
len += 2;
|
|
682
|
+
else if (u <= 65535)
|
|
683
|
+
len += 3;
|
|
684
|
+
else
|
|
685
|
+
len += 4;
|
|
686
|
+
} return len; }
|
|
687
|
+
var UTF16Decoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-16le") : undefined;
|
|
688
|
+
function allocateUTF8(str) { var size = lengthBytesUTF8(str) + 1; var ret = _malloc(size); if (ret)
|
|
689
|
+
stringToUTF8Array(str, HEAP8, ret, size); return ret; }
|
|
690
|
+
function writeArrayToMemory(array, buffer) { assert(array.length >= 0, "writeArrayToMemory array must have a length (should be an array or typed array)"); HEAP8.set(array, buffer); }
|
|
691
|
+
function writeAsciiToMemory(str, buffer, dontAddNull) { for (var i = 0; i < str.length; ++i) {
|
|
692
|
+
assert(str.charCodeAt(i) === (str.charCodeAt(i) & 255));
|
|
693
|
+
HEAP8[buffer++ >> 0] = str.charCodeAt(i);
|
|
694
|
+
} if (!dontAddNull)
|
|
695
|
+
HEAP8[buffer >> 0] = 0; }
|
|
696
|
+
function alignUp(x, multiple) { if (x % multiple > 0) {
|
|
697
|
+
x += multiple - x % multiple;
|
|
698
|
+
} return x; }
|
|
699
|
+
var buffer, HEAP8, HEAPU8, HEAP16, HEAPU16, HEAP32, HEAPU32, HEAPF32, HEAPF64;
|
|
700
|
+
function updateGlobalBufferAndViews(buf) { buffer = buf; Module["HEAP8"] = HEAP8 = new Int8Array(buf); Module["HEAP16"] = HEAP16 = new Int16Array(buf); Module["HEAP32"] = HEAP32 = new Int32Array(buf); Module["HEAPU8"] = HEAPU8 = new Uint8Array(buf); Module["HEAPU16"] = HEAPU16 = new Uint16Array(buf); Module["HEAPU32"] = HEAPU32 = new Uint32Array(buf); Module["HEAPF32"] = HEAPF32 = new Float32Array(buf); Module["HEAPF64"] = HEAPF64 = new Float64Array(buf); }
|
|
701
|
+
var TOTAL_STACK = 5242880;
|
|
702
|
+
if (Module["TOTAL_STACK"])
|
|
703
|
+
assert(TOTAL_STACK === Module["TOTAL_STACK"], "the stack size can no longer be determined at runtime");
|
|
704
|
+
var INITIAL_MEMORY = Module["INITIAL_MEMORY"] || 16777216;
|
|
705
|
+
if (!Object.getOwnPropertyDescriptor(Module, "INITIAL_MEMORY")) {
|
|
706
|
+
Object.defineProperty(Module, "INITIAL_MEMORY", { configurable: true, get: function () { abort("Module.INITIAL_MEMORY has been replaced with plain INITIAL_MEMORY (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)"); } });
|
|
707
|
+
}
|
|
708
|
+
assert(INITIAL_MEMORY >= TOTAL_STACK, "INITIAL_MEMORY should be larger than TOTAL_STACK, was " + INITIAL_MEMORY + "! (TOTAL_STACK=" + TOTAL_STACK + ")");
|
|
709
|
+
assert(typeof Int32Array !== "undefined" && typeof Float64Array !== "undefined" && Int32Array.prototype.subarray !== undefined && Int32Array.prototype.set !== undefined, "JS engine does not provide full typed array support");
|
|
710
|
+
assert(!Module["wasmMemory"], "Use of `wasmMemory` detected. Use -s IMPORTED_MEMORY to define wasmMemory externally");
|
|
711
|
+
assert(INITIAL_MEMORY == 16777216, "Detected runtime INITIAL_MEMORY setting. Use -s IMPORTED_MEMORY to define wasmMemory dynamically");
|
|
712
|
+
var wasmTable;
|
|
713
|
+
function writeStackCookie() { var max = _emscripten_stack_get_end(); assert((max & 3) == 0); HEAP32[max + 4 >> 2] = 34821223; HEAP32[max + 8 >> 2] = 2310721022; HEAP32[0] = 1668509029; }
|
|
714
|
+
function checkStackCookie() { if (ABORT)
|
|
715
|
+
return; var max = _emscripten_stack_get_end(); var cookie1 = HEAPU32[max + 4 >> 2]; var cookie2 = HEAPU32[max + 8 >> 2]; if (cookie1 != 34821223 || cookie2 != 2310721022) {
|
|
716
|
+
abort("Stack overflow! Stack cookie has been overwritten, expected hex dwords 0x89BACDFE and 0x2135467, but received 0x" + cookie2.toString(16) + " 0x" + cookie1.toString(16));
|
|
717
|
+
} if (HEAP32[0] !== 1668509029)
|
|
718
|
+
abort("Runtime error: The application has corrupted its heap memory area (address zero)!"); }
|
|
719
|
+
(function () { var h16 = new Int16Array(1); var h8 = new Int8Array(h16.buffer); h16[0] = 25459; if (h8[0] !== 115 || h8[1] !== 99)
|
|
720
|
+
throw "Runtime error: expected the system to be little-endian! (Run with -s SUPPORT_BIG_ENDIAN=1 to bypass)"; })();
|
|
721
|
+
var __ATPRERUN__ = [];
|
|
722
|
+
var __ATINIT__ = [];
|
|
723
|
+
var __ATEXIT__ = [];
|
|
724
|
+
var __ATPOSTRUN__ = [];
|
|
725
|
+
var runtimeInitialized = false;
|
|
726
|
+
var runtimeExited = false;
|
|
727
|
+
var runtimeKeepaliveCounter = 0;
|
|
728
|
+
function keepRuntimeAlive() { return noExitRuntime || runtimeKeepaliveCounter > 0; }
|
|
729
|
+
function preRun() { if (Module["preRun"]) {
|
|
730
|
+
if (typeof Module["preRun"] == "function")
|
|
731
|
+
Module["preRun"] = [Module["preRun"]];
|
|
732
|
+
while (Module["preRun"].length) {
|
|
733
|
+
addOnPreRun(Module["preRun"].shift());
|
|
734
|
+
}
|
|
735
|
+
} callRuntimeCallbacks(__ATPRERUN__); }
|
|
736
|
+
function initRuntime() { checkStackCookie(); assert(!runtimeInitialized); runtimeInitialized = true; ___set_stack_limits(_emscripten_stack_get_base(), _emscripten_stack_get_end()); if (!Module["noFSInit"] && !FS.init.initialized)
|
|
737
|
+
FS.init(); FS.ignorePermissions = false; TTY.init(); callRuntimeCallbacks(__ATINIT__); }
|
|
738
|
+
function exitRuntime() { checkStackCookie(); ___funcs_on_exit(); callRuntimeCallbacks(__ATEXIT__); FS.quit(); TTY.shutdown(); runtimeExited = true; }
|
|
739
|
+
function postRun() { checkStackCookie(); if (Module["postRun"]) {
|
|
740
|
+
if (typeof Module["postRun"] == "function")
|
|
741
|
+
Module["postRun"] = [Module["postRun"]];
|
|
742
|
+
while (Module["postRun"].length) {
|
|
743
|
+
addOnPostRun(Module["postRun"].shift());
|
|
744
|
+
}
|
|
745
|
+
} callRuntimeCallbacks(__ATPOSTRUN__); }
|
|
746
|
+
function addOnPreRun(cb) { __ATPRERUN__.unshift(cb); }
|
|
747
|
+
function addOnInit(cb) { __ATINIT__.unshift(cb); }
|
|
748
|
+
function addOnExit(cb) { __ATEXIT__.unshift(cb); }
|
|
749
|
+
function addOnPostRun(cb) { __ATPOSTRUN__.unshift(cb); }
|
|
750
|
+
assert(Math.imul, "This browser does not support Math.imul(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill");
|
|
751
|
+
assert(Math.fround, "This browser does not support Math.fround(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill");
|
|
752
|
+
assert(Math.clz32, "This browser does not support Math.clz32(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill");
|
|
753
|
+
assert(Math.trunc, "This browser does not support Math.trunc(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill");
|
|
754
|
+
var runDependencies = 0;
|
|
755
|
+
var runDependencyWatcher = null;
|
|
756
|
+
var dependenciesFulfilled = null;
|
|
757
|
+
var runDependencyTracking = {};
|
|
758
|
+
function getUniqueRunDependency(id) { var orig = id; while (1) {
|
|
759
|
+
if (!runDependencyTracking[id])
|
|
760
|
+
return id;
|
|
761
|
+
id = orig + Math.random();
|
|
762
|
+
} }
|
|
763
|
+
function addRunDependency(id) { runDependencies++; if (Module["monitorRunDependencies"]) {
|
|
764
|
+
Module["monitorRunDependencies"](runDependencies);
|
|
765
|
+
} if (id) {
|
|
766
|
+
assert(!runDependencyTracking[id]);
|
|
767
|
+
runDependencyTracking[id] = 1;
|
|
768
|
+
if (runDependencyWatcher === null && typeof setInterval !== "undefined") {
|
|
769
|
+
runDependencyWatcher = setInterval(function () { if (ABORT) {
|
|
770
|
+
clearInterval(runDependencyWatcher);
|
|
771
|
+
runDependencyWatcher = null;
|
|
772
|
+
return;
|
|
773
|
+
} var shown = false; for (var dep in runDependencyTracking) {
|
|
774
|
+
if (!shown) {
|
|
775
|
+
shown = true;
|
|
776
|
+
err("still waiting on run dependencies:");
|
|
777
|
+
}
|
|
778
|
+
err("dependency: " + dep);
|
|
779
|
+
} if (shown) {
|
|
780
|
+
err("(end of list)");
|
|
781
|
+
} }, 1e4);
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
else {
|
|
785
|
+
err("warning: run dependency added without ID");
|
|
786
|
+
} }
|
|
787
|
+
function removeRunDependency(id) { runDependencies--; if (Module["monitorRunDependencies"]) {
|
|
788
|
+
Module["monitorRunDependencies"](runDependencies);
|
|
789
|
+
} if (id) {
|
|
790
|
+
assert(runDependencyTracking[id]);
|
|
791
|
+
delete runDependencyTracking[id];
|
|
792
|
+
}
|
|
793
|
+
else {
|
|
794
|
+
err("warning: run dependency removed without ID");
|
|
795
|
+
} if (runDependencies == 0) {
|
|
796
|
+
if (runDependencyWatcher !== null) {
|
|
797
|
+
clearInterval(runDependencyWatcher);
|
|
798
|
+
runDependencyWatcher = null;
|
|
799
|
+
}
|
|
800
|
+
if (dependenciesFulfilled) {
|
|
801
|
+
var callback = dependenciesFulfilled;
|
|
802
|
+
dependenciesFulfilled = null;
|
|
803
|
+
callback();
|
|
804
|
+
}
|
|
805
|
+
} }
|
|
806
|
+
Module["preloadedImages"] = {};
|
|
807
|
+
Module["preloadedAudios"] = {};
|
|
808
|
+
function abort(what) { {
|
|
809
|
+
if (Module["onAbort"]) {
|
|
810
|
+
Module["onAbort"](what);
|
|
811
|
+
}
|
|
812
|
+
} what = "Aborted(" + what + ")"; err(what); ABORT = true; EXITSTATUS = 1; var e = new WebAssembly.RuntimeError(what); readyPromiseReject(e); throw e; }
|
|
813
|
+
var dataURIPrefix = "data:application/octet-stream;base64,";
|
|
814
|
+
function isDataURI(filename) { return filename.startsWith(dataURIPrefix); }
|
|
815
|
+
function isFileURI(filename) { return filename.startsWith("file://"); }
|
|
816
|
+
function createExportWrapper(name, fixedasm) { return function () { var displayName = name; var asm = fixedasm; if (!fixedasm) {
|
|
817
|
+
asm = Module["asm"];
|
|
818
|
+
} assert(runtimeInitialized, "native function `" + displayName + "` called before runtime initialization"); assert(!runtimeExited, "native function `" + displayName + "` called after runtime exit (use NO_EXIT_RUNTIME to keep it alive after main() exits)"); if (!asm[name]) {
|
|
819
|
+
assert(asm[name], "exported native function `" + displayName + "` not found");
|
|
820
|
+
} return asm[name].apply(null, arguments); }; }
|
|
821
|
+
var wasmBinaryFile;
|
|
822
|
+
wasmBinaryFile = "mufl-bindings.wasm";
|
|
823
|
+
if (!isDataURI(wasmBinaryFile)) {
|
|
824
|
+
wasmBinaryFile = locateFile(wasmBinaryFile);
|
|
825
|
+
}
|
|
826
|
+
function getBinary(file) { try {
|
|
827
|
+
if (file == wasmBinaryFile && wasmBinary) {
|
|
828
|
+
return new Uint8Array(wasmBinary);
|
|
829
|
+
}
|
|
830
|
+
if (readBinary) {
|
|
831
|
+
return readBinary(file);
|
|
832
|
+
}
|
|
833
|
+
else {
|
|
834
|
+
throw "both async and sync fetching of the wasm failed";
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
catch (err) {
|
|
838
|
+
abort(err);
|
|
839
|
+
} }
|
|
840
|
+
function getBinaryPromise() { if (!wasmBinary && (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER)) {
|
|
841
|
+
if (typeof fetch === "function" && !isFileURI(wasmBinaryFile)) {
|
|
842
|
+
return fetch(wasmBinaryFile, { credentials: "same-origin" }).then(function (response) { if (!response["ok"]) {
|
|
843
|
+
throw "failed to load wasm binary file at '" + wasmBinaryFile + "'";
|
|
844
|
+
} return response["arrayBuffer"](); }).catch(function () { return getBinary(wasmBinaryFile); });
|
|
845
|
+
}
|
|
846
|
+
else {
|
|
847
|
+
if (readAsync) {
|
|
848
|
+
return new Promise(function (resolve, reject) { readAsync(wasmBinaryFile, function (response) { resolve(new Uint8Array(response)); }, reject); });
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
} return Promise.resolve().then(function () { return getBinary(wasmBinaryFile); }); }
|
|
852
|
+
function createWasm() { var info = { "env": asmLibraryArg, "wasi_snapshot_preview1": asmLibraryArg }; function receiveInstance(instance, module) { var exports = instance.exports; Module["asm"] = exports; wasmMemory = Module["asm"]["memory"]; assert(wasmMemory, "memory not found in wasm exports"); updateGlobalBufferAndViews(wasmMemory.buffer); wasmTable = Module["asm"]["__indirect_function_table"]; assert(wasmTable, "table not found in wasm exports"); addOnInit(Module["asm"]["__wasm_call_ctors"]); removeRunDependency("wasm-instantiate"); } addRunDependency("wasm-instantiate"); var trueModule = Module; function receiveInstantiationResult(result) { assert(Module === trueModule, "the Module object should not be replaced during async compilation - perhaps the order of HTML elements is wrong?"); trueModule = null; receiveInstance(result["instance"]); } function instantiateArrayBuffer(receiver) { return getBinaryPromise().then(function (binary) { return WebAssembly.instantiate(binary, info); }).then(function (instance) { return instance; }).then(receiver, function (reason) { err("failed to asynchronously prepare wasm: " + reason); if (isFileURI(wasmBinaryFile)) {
|
|
853
|
+
err("warning: Loading from a file URI (" + wasmBinaryFile + ") is not supported in most browsers. See https://emscripten.org/docs/getting_started/FAQ.html#how-do-i-run-a-local-webserver-for-testing-why-does-my-program-stall-in-downloading-or-preparing");
|
|
854
|
+
} abort(reason); }); } function instantiateAsync() { if (!wasmBinary && typeof WebAssembly.instantiateStreaming === "function" && !isDataURI(wasmBinaryFile) && !isFileURI(wasmBinaryFile) && typeof fetch === "function") {
|
|
855
|
+
return fetch(wasmBinaryFile, { credentials: "same-origin" }).then(function (response) { var result = WebAssembly.instantiateStreaming(response, info); return result.then(receiveInstantiationResult, function (reason) { err("wasm streaming compile failed: " + reason); err("falling back to ArrayBuffer instantiation"); return instantiateArrayBuffer(receiveInstantiationResult); }); });
|
|
856
|
+
}
|
|
857
|
+
else {
|
|
858
|
+
return instantiateArrayBuffer(receiveInstantiationResult);
|
|
859
|
+
} } if (Module["instantiateWasm"]) {
|
|
860
|
+
try {
|
|
861
|
+
var exports = Module["instantiateWasm"](info, receiveInstance);
|
|
862
|
+
return exports;
|
|
863
|
+
}
|
|
864
|
+
catch (e) {
|
|
865
|
+
err("Module.instantiateWasm callback failed with error: " + e);
|
|
866
|
+
return false;
|
|
867
|
+
}
|
|
868
|
+
} instantiateAsync().catch(readyPromiseReject); return {}; }
|
|
869
|
+
var tempDouble;
|
|
870
|
+
var tempI64;
|
|
871
|
+
var ASM_CONSTS = { 1011984: function () { return Module.getRandomValue(); }, 1012020: function () { if (Module.getRandomValue === undefined) {
|
|
872
|
+
try {
|
|
873
|
+
var window_ = "object" === typeof window ? window : self;
|
|
874
|
+
var crypto_ = typeof window_.crypto !== "undefined" ? window_.crypto : window_.msCrypto;
|
|
875
|
+
var randomValuesStandard = function () { var buf = new Uint32Array(1); crypto_.getRandomValues(buf); return buf[0] >>> 0; };
|
|
876
|
+
randomValuesStandard();
|
|
877
|
+
Module.getRandomValue = randomValuesStandard;
|
|
878
|
+
}
|
|
879
|
+
catch (e) {
|
|
880
|
+
try {
|
|
881
|
+
var crypto = require("crypto");
|
|
882
|
+
var randomValueNodeJS = function () { var buf = crypto["randomBytes"](4); return (buf[0] << 24 | buf[1] << 16 | buf[2] << 8 | buf[3]) >>> 0; };
|
|
883
|
+
randomValueNodeJS();
|
|
884
|
+
Module.getRandomValue = randomValueNodeJS;
|
|
885
|
+
}
|
|
886
|
+
catch (e) {
|
|
887
|
+
throw "No secure random number generator found";
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
} } };
|
|
891
|
+
function array_bounds_check_error(idx, size) { throw "Array index " + idx + " out of bounds: [0," + size + ")"; }
|
|
892
|
+
function callRuntimeCallbacks(callbacks) { while (callbacks.length > 0) {
|
|
893
|
+
var callback = callbacks.shift();
|
|
894
|
+
if (typeof callback == "function") {
|
|
895
|
+
callback(Module);
|
|
896
|
+
continue;
|
|
897
|
+
}
|
|
898
|
+
var func = callback.func;
|
|
899
|
+
if (typeof func === "number") {
|
|
900
|
+
if (callback.arg === undefined) {
|
|
901
|
+
getWasmTableEntry(func)();
|
|
902
|
+
}
|
|
903
|
+
else {
|
|
904
|
+
getWasmTableEntry(func)(callback.arg);
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
else {
|
|
908
|
+
func(callback.arg === undefined ? null : callback.arg);
|
|
909
|
+
}
|
|
910
|
+
} }
|
|
911
|
+
function withStackSave(f) { var stack = stackSave(); var ret = f(); stackRestore(stack); return ret; }
|
|
912
|
+
function demangle(func) { demangle.recursionGuard = (demangle.recursionGuard | 0) + 1; if (demangle.recursionGuard > 1)
|
|
913
|
+
return func; var __cxa_demangle_func = Module["___cxa_demangle"] || Module["__cxa_demangle"]; assert(__cxa_demangle_func); return withStackSave(function () { try {
|
|
914
|
+
var s = func;
|
|
915
|
+
if (s.startsWith("__Z"))
|
|
916
|
+
s = s.substr(1);
|
|
917
|
+
var len = lengthBytesUTF8(s) + 1;
|
|
918
|
+
var buf = stackAlloc(len);
|
|
919
|
+
stringToUTF8(s, buf, len);
|
|
920
|
+
var status = stackAlloc(4);
|
|
921
|
+
var ret = __cxa_demangle_func(buf, 0, 0, status);
|
|
922
|
+
if (HEAP32[status >> 2] === 0 && ret) {
|
|
923
|
+
return UTF8ToString(ret);
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
catch (e) { }
|
|
927
|
+
finally {
|
|
928
|
+
_free(ret);
|
|
929
|
+
if (demangle.recursionGuard < 2)
|
|
930
|
+
--demangle.recursionGuard;
|
|
931
|
+
} return func; }); }
|
|
932
|
+
function demangleAll(text) { var regex = /\b_Z[\w\d_]+/g; return text.replace(regex, function (x) { var y = demangle(x); return x === y ? x : y + " [" + x + "]"; }); }
|
|
933
|
+
function getWasmTableEntry(funcPtr) { return wasmTable.get(funcPtr); }
|
|
934
|
+
function jsStackTrace() { var error = new Error; if (!error.stack) {
|
|
935
|
+
try {
|
|
936
|
+
throw new Error;
|
|
937
|
+
}
|
|
938
|
+
catch (e) {
|
|
939
|
+
error = e;
|
|
940
|
+
}
|
|
941
|
+
if (!error.stack) {
|
|
942
|
+
return "(no stack trace available)";
|
|
943
|
+
}
|
|
944
|
+
} return error.stack.toString(); }
|
|
945
|
+
function setWasmTableEntry(idx, func) { wasmTable.set(idx, func); }
|
|
946
|
+
function ___assert_fail(condition, filename, line, func) { abort("Assertion failed: " + UTF8ToString(condition) + ", at: " + [filename ? UTF8ToString(filename) : "unknown filename", line, func ? UTF8ToString(func) : "unknown function"]); }
|
|
947
|
+
function ___call_sighandler(fp, sig) { getWasmTableEntry(fp)(sig); }
|
|
948
|
+
function ___cxa_allocate_exception(size) { return _malloc(size + 16) + 16; }
|
|
949
|
+
function ExceptionInfo(excPtr) { this.excPtr = excPtr; this.ptr = excPtr - 16; this.set_type = function (type) { HEAP32[this.ptr + 4 >> 2] = type; }; this.get_type = function () { return HEAP32[this.ptr + 4 >> 2]; }; this.set_destructor = function (destructor) { HEAP32[this.ptr + 8 >> 2] = destructor; }; this.get_destructor = function () { return HEAP32[this.ptr + 8 >> 2]; }; this.set_refcount = function (refcount) { HEAP32[this.ptr >> 2] = refcount; }; this.set_caught = function (caught) { caught = caught ? 1 : 0; HEAP8[this.ptr + 12 >> 0] = caught; }; this.get_caught = function () { return HEAP8[this.ptr + 12 >> 0] != 0; }; this.set_rethrown = function (rethrown) { rethrown = rethrown ? 1 : 0; HEAP8[this.ptr + 13 >> 0] = rethrown; }; this.get_rethrown = function () { return HEAP8[this.ptr + 13 >> 0] != 0; }; this.init = function (type, destructor) { this.set_type(type); this.set_destructor(destructor); this.set_refcount(0); this.set_caught(false); this.set_rethrown(false); }; this.add_ref = function () { var value = HEAP32[this.ptr >> 2]; HEAP32[this.ptr >> 2] = value + 1; }; this.release_ref = function () { var prev = HEAP32[this.ptr >> 2]; HEAP32[this.ptr >> 2] = prev - 1; assert(prev > 0); return prev === 1; }; }
|
|
950
|
+
function CatchInfo(ptr) { this.free = function () { _free(this.ptr); this.ptr = 0; }; this.set_base_ptr = function (basePtr) { HEAP32[this.ptr >> 2] = basePtr; }; this.get_base_ptr = function () { return HEAP32[this.ptr >> 2]; }; this.set_adjusted_ptr = function (adjustedPtr) { HEAP32[this.ptr + 4 >> 2] = adjustedPtr; }; this.get_adjusted_ptr_addr = function () { return this.ptr + 4; }; this.get_adjusted_ptr = function () { return HEAP32[this.ptr + 4 >> 2]; }; this.get_exception_ptr = function () { var isPointer = ___cxa_is_pointer_type(this.get_exception_info().get_type()); if (isPointer) {
|
|
951
|
+
return HEAP32[this.get_base_ptr() >> 2];
|
|
952
|
+
} var adjusted = this.get_adjusted_ptr(); if (adjusted !== 0)
|
|
953
|
+
return adjusted; return this.get_base_ptr(); }; this.get_exception_info = function () { return new ExceptionInfo(this.get_base_ptr()); }; if (ptr === undefined) {
|
|
954
|
+
this.ptr = _malloc(8);
|
|
955
|
+
this.set_adjusted_ptr(0);
|
|
956
|
+
}
|
|
957
|
+
else {
|
|
958
|
+
this.ptr = ptr;
|
|
959
|
+
} }
|
|
960
|
+
var exceptionCaught = [];
|
|
961
|
+
function exception_addRef(info) { info.add_ref(); }
|
|
962
|
+
var uncaughtExceptionCount = 0;
|
|
963
|
+
function ___cxa_begin_catch(ptr) { var catchInfo = new CatchInfo(ptr); var info = catchInfo.get_exception_info(); if (!info.get_caught()) {
|
|
964
|
+
info.set_caught(true);
|
|
965
|
+
uncaughtExceptionCount--;
|
|
966
|
+
} info.set_rethrown(false); exceptionCaught.push(catchInfo); exception_addRef(info); return catchInfo.get_exception_ptr(); }
|
|
967
|
+
var exceptionLast = 0;
|
|
968
|
+
function ___cxa_free_exception(ptr) { try {
|
|
969
|
+
return _free(new ExceptionInfo(ptr).ptr);
|
|
970
|
+
}
|
|
971
|
+
catch (e) {
|
|
972
|
+
err("exception during cxa_free_exception: " + e);
|
|
973
|
+
} }
|
|
974
|
+
function exception_decRef(info) { if (info.release_ref() && !info.get_rethrown()) {
|
|
975
|
+
var destructor = info.get_destructor();
|
|
976
|
+
if (destructor) {
|
|
977
|
+
getWasmTableEntry(destructor)(info.excPtr);
|
|
978
|
+
}
|
|
979
|
+
___cxa_free_exception(info.excPtr);
|
|
980
|
+
} }
|
|
981
|
+
function ___cxa_end_catch() { _setThrew(0); assert(exceptionCaught.length > 0); var catchInfo = exceptionCaught.pop(); exception_decRef(catchInfo.get_exception_info()); catchInfo.free(); exceptionLast = 0; }
|
|
982
|
+
function ___resumeException(catchInfoPtr) { var catchInfo = new CatchInfo(catchInfoPtr); var ptr = catchInfo.get_base_ptr(); if (!exceptionLast) {
|
|
983
|
+
exceptionLast = ptr;
|
|
984
|
+
} catchInfo.free(); throw ptr; }
|
|
985
|
+
function ___cxa_find_matching_catch_2() { var thrown = exceptionLast; if (!thrown) {
|
|
986
|
+
setTempRet0(0);
|
|
987
|
+
return 0 | 0;
|
|
988
|
+
} var info = new ExceptionInfo(thrown); var thrownType = info.get_type(); var catchInfo = new CatchInfo; catchInfo.set_base_ptr(thrown); catchInfo.set_adjusted_ptr(thrown); if (!thrownType) {
|
|
989
|
+
setTempRet0(0);
|
|
990
|
+
return catchInfo.ptr | 0;
|
|
991
|
+
} var typeArray = Array.prototype.slice.call(arguments); for (var i = 0; i < typeArray.length; i++) {
|
|
992
|
+
var caughtType = typeArray[i];
|
|
993
|
+
if (caughtType === 0 || caughtType === thrownType) {
|
|
994
|
+
break;
|
|
995
|
+
}
|
|
996
|
+
if (___cxa_can_catch(caughtType, thrownType, catchInfo.get_adjusted_ptr_addr())) {
|
|
997
|
+
setTempRet0(caughtType);
|
|
998
|
+
return catchInfo.ptr | 0;
|
|
999
|
+
}
|
|
1000
|
+
} setTempRet0(thrownType); return catchInfo.ptr | 0; }
|
|
1001
|
+
function ___cxa_find_matching_catch_3() { var thrown = exceptionLast; if (!thrown) {
|
|
1002
|
+
setTempRet0(0);
|
|
1003
|
+
return 0 | 0;
|
|
1004
|
+
} var info = new ExceptionInfo(thrown); var thrownType = info.get_type(); var catchInfo = new CatchInfo; catchInfo.set_base_ptr(thrown); catchInfo.set_adjusted_ptr(thrown); if (!thrownType) {
|
|
1005
|
+
setTempRet0(0);
|
|
1006
|
+
return catchInfo.ptr | 0;
|
|
1007
|
+
} var typeArray = Array.prototype.slice.call(arguments); for (var i = 0; i < typeArray.length; i++) {
|
|
1008
|
+
var caughtType = typeArray[i];
|
|
1009
|
+
if (caughtType === 0 || caughtType === thrownType) {
|
|
1010
|
+
break;
|
|
1011
|
+
}
|
|
1012
|
+
if (___cxa_can_catch(caughtType, thrownType, catchInfo.get_adjusted_ptr_addr())) {
|
|
1013
|
+
setTempRet0(caughtType);
|
|
1014
|
+
return catchInfo.ptr | 0;
|
|
1015
|
+
}
|
|
1016
|
+
} setTempRet0(thrownType); return catchInfo.ptr | 0; }
|
|
1017
|
+
function ___cxa_rethrow() { var catchInfo = exceptionCaught.pop(); if (!catchInfo) {
|
|
1018
|
+
abort("no exception to throw");
|
|
1019
|
+
} var info = catchInfo.get_exception_info(); var ptr = catchInfo.get_base_ptr(); if (!info.get_rethrown()) {
|
|
1020
|
+
exceptionCaught.push(catchInfo);
|
|
1021
|
+
info.set_rethrown(true);
|
|
1022
|
+
info.set_caught(false);
|
|
1023
|
+
uncaughtExceptionCount++;
|
|
1024
|
+
}
|
|
1025
|
+
else {
|
|
1026
|
+
catchInfo.free();
|
|
1027
|
+
} exceptionLast = ptr; throw ptr; }
|
|
1028
|
+
function ___cxa_throw(ptr, type, destructor) { var info = new ExceptionInfo(ptr); info.init(type, destructor); exceptionLast = ptr; uncaughtExceptionCount++; throw ptr; }
|
|
1029
|
+
function ___cxa_uncaught_exceptions() { return uncaughtExceptionCount; }
|
|
1030
|
+
function ___handle_stack_overflow() { abort("stack overflow"); }
|
|
1031
|
+
function setErrNo(value) { HEAP32[___errno_location() >> 2] = value; return value; }
|
|
1032
|
+
var PATH = { splitPath: function (filename) { var splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/; return splitPathRe.exec(filename).slice(1); }, normalizeArray: function (parts, allowAboveRoot) { var up = 0; for (var i = parts.length - 1; i >= 0; i--) {
|
|
1033
|
+
var last = parts[i];
|
|
1034
|
+
if (last === ".") {
|
|
1035
|
+
parts.splice(i, 1);
|
|
1036
|
+
}
|
|
1037
|
+
else if (last === "..") {
|
|
1038
|
+
parts.splice(i, 1);
|
|
1039
|
+
up++;
|
|
1040
|
+
}
|
|
1041
|
+
else if (up) {
|
|
1042
|
+
parts.splice(i, 1);
|
|
1043
|
+
up--;
|
|
1044
|
+
}
|
|
1045
|
+
} if (allowAboveRoot) {
|
|
1046
|
+
for (; up; up--) {
|
|
1047
|
+
parts.unshift("..");
|
|
1048
|
+
}
|
|
1049
|
+
} return parts; }, normalize: function (path) { var isAbsolute = path.charAt(0) === "/", trailingSlash = path.substr(-1) === "/"; path = PATH.normalizeArray(path.split("/").filter(function (p) { return !!p; }), !isAbsolute).join("/"); if (!path && !isAbsolute) {
|
|
1050
|
+
path = ".";
|
|
1051
|
+
} if (path && trailingSlash) {
|
|
1052
|
+
path += "/";
|
|
1053
|
+
} return (isAbsolute ? "/" : "") + path; }, dirname: function (path) { var result = PATH.splitPath(path), root = result[0], dir = result[1]; if (!root && !dir) {
|
|
1054
|
+
return ".";
|
|
1055
|
+
} if (dir) {
|
|
1056
|
+
dir = dir.substr(0, dir.length - 1);
|
|
1057
|
+
} return root + dir; }, basename: function (path) { if (path === "/")
|
|
1058
|
+
return "/"; path = PATH.normalize(path); path = path.replace(/\/$/, ""); var lastSlash = path.lastIndexOf("/"); if (lastSlash === -1)
|
|
1059
|
+
return path; return path.substr(lastSlash + 1); }, extname: function (path) { return PATH.splitPath(path)[3]; }, join: function () { var paths = Array.prototype.slice.call(arguments, 0); return PATH.normalize(paths.join("/")); }, join2: function (l, r) { return PATH.normalize(l + "/" + r); } };
|
|
1060
|
+
function getRandomDevice() { if (typeof crypto === "object" && typeof crypto["getRandomValues"] === "function") {
|
|
1061
|
+
var randomBuffer = new Uint8Array(1);
|
|
1062
|
+
return function () { crypto.getRandomValues(randomBuffer); return randomBuffer[0]; };
|
|
1063
|
+
}
|
|
1064
|
+
else if (ENVIRONMENT_IS_NODE) {
|
|
1065
|
+
try {
|
|
1066
|
+
var crypto_module = require("crypto");
|
|
1067
|
+
return function () { return crypto_module["randomBytes"](1)[0]; };
|
|
1068
|
+
}
|
|
1069
|
+
catch (e) { }
|
|
1070
|
+
} return function () { abort("no cryptographic support found for randomDevice. consider polyfilling it if you want to use something insecure like Math.random(), e.g. put this in a --pre-js: var crypto = { getRandomValues: function(array) { for (var i = 0; i < array.length; i++) array[i] = (Math.random()*256)|0 } };"); }; }
|
|
1071
|
+
var PATH_FS = { resolve: function () { var resolvedPath = "", resolvedAbsolute = false; for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
|
|
1072
|
+
var path = i >= 0 ? arguments[i] : FS.cwd();
|
|
1073
|
+
if (typeof path !== "string") {
|
|
1074
|
+
throw new TypeError("Arguments to path.resolve must be strings");
|
|
1075
|
+
}
|
|
1076
|
+
else if (!path) {
|
|
1077
|
+
return "";
|
|
1078
|
+
}
|
|
1079
|
+
resolvedPath = path + "/" + resolvedPath;
|
|
1080
|
+
resolvedAbsolute = path.charAt(0) === "/";
|
|
1081
|
+
} resolvedPath = PATH.normalizeArray(resolvedPath.split("/").filter(function (p) { return !!p; }), !resolvedAbsolute).join("/"); return (resolvedAbsolute ? "/" : "") + resolvedPath || "."; }, relative: function (from, to) { from = PATH_FS.resolve(from).substr(1); to = PATH_FS.resolve(to).substr(1); function trim(arr) { var start = 0; for (; start < arr.length; start++) {
|
|
1082
|
+
if (arr[start] !== "")
|
|
1083
|
+
break;
|
|
1084
|
+
} var end = arr.length - 1; for (; end >= 0; end--) {
|
|
1085
|
+
if (arr[end] !== "")
|
|
1086
|
+
break;
|
|
1087
|
+
} if (start > end)
|
|
1088
|
+
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++) {
|
|
1089
|
+
if (fromParts[i] !== toParts[i]) {
|
|
1090
|
+
samePartsLength = i;
|
|
1091
|
+
break;
|
|
1092
|
+
}
|
|
1093
|
+
} var outputParts = []; for (var i = samePartsLength; i < fromParts.length; i++) {
|
|
1094
|
+
outputParts.push("..");
|
|
1095
|
+
} outputParts = outputParts.concat(toParts.slice(samePartsLength)); return outputParts.join("/"); } };
|
|
1096
|
+
var TTY = { ttys: [], init: function () { }, shutdown: function () { }, register: function (dev, ops) { TTY.ttys[dev] = { input: [], output: [], ops: ops }; FS.registerDevice(dev, TTY.stream_ops); }, stream_ops: { open: function (stream) { var tty = TTY.ttys[stream.node.rdev]; if (!tty) {
|
|
1097
|
+
throw new FS.ErrnoError(43);
|
|
1098
|
+
} stream.tty = tty; stream.seekable = false; }, close: function (stream) { stream.tty.ops.flush(stream.tty); }, flush: function (stream) { stream.tty.ops.flush(stream.tty); }, read: function (stream, buffer, offset, length, pos) { if (!stream.tty || !stream.tty.ops.get_char) {
|
|
1099
|
+
throw new FS.ErrnoError(60);
|
|
1100
|
+
} var bytesRead = 0; for (var i = 0; i < length; i++) {
|
|
1101
|
+
var result;
|
|
1102
|
+
try {
|
|
1103
|
+
result = stream.tty.ops.get_char(stream.tty);
|
|
1104
|
+
}
|
|
1105
|
+
catch (e) {
|
|
1106
|
+
throw new FS.ErrnoError(29);
|
|
1107
|
+
}
|
|
1108
|
+
if (result === undefined && bytesRead === 0) {
|
|
1109
|
+
throw new FS.ErrnoError(6);
|
|
1110
|
+
}
|
|
1111
|
+
if (result === null || result === undefined)
|
|
1112
|
+
break;
|
|
1113
|
+
bytesRead++;
|
|
1114
|
+
buffer[offset + i] = result;
|
|
1115
|
+
} if (bytesRead) {
|
|
1116
|
+
stream.node.timestamp = Date.now();
|
|
1117
|
+
} return bytesRead; }, write: function (stream, buffer, offset, length, pos) { if (!stream.tty || !stream.tty.ops.put_char) {
|
|
1118
|
+
throw new FS.ErrnoError(60);
|
|
1119
|
+
} try {
|
|
1120
|
+
for (var i = 0; i < length; i++) {
|
|
1121
|
+
stream.tty.ops.put_char(stream.tty, buffer[offset + i]);
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
catch (e) {
|
|
1125
|
+
throw new FS.ErrnoError(29);
|
|
1126
|
+
} if (length) {
|
|
1127
|
+
stream.node.timestamp = Date.now();
|
|
1128
|
+
} return i; } }, default_tty_ops: { get_char: function (tty) { if (!tty.input.length) {
|
|
1129
|
+
var result = null;
|
|
1130
|
+
if (ENVIRONMENT_IS_NODE) {
|
|
1131
|
+
var BUFSIZE = 256;
|
|
1132
|
+
var buf = Buffer.alloc(BUFSIZE);
|
|
1133
|
+
var bytesRead = 0;
|
|
1134
|
+
try {
|
|
1135
|
+
bytesRead = fs.readSync(process.stdin.fd, buf, 0, BUFSIZE, null);
|
|
1136
|
+
}
|
|
1137
|
+
catch (e) {
|
|
1138
|
+
if (e.toString().includes("EOF"))
|
|
1139
|
+
bytesRead = 0;
|
|
1140
|
+
else
|
|
1141
|
+
throw e;
|
|
1142
|
+
}
|
|
1143
|
+
if (bytesRead > 0) {
|
|
1144
|
+
result = buf.slice(0, bytesRead).toString("utf-8");
|
|
1145
|
+
}
|
|
1146
|
+
else {
|
|
1147
|
+
result = null;
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
else if (typeof window != "undefined" && typeof window.prompt == "function") {
|
|
1151
|
+
result = window.prompt("Input: ");
|
|
1152
|
+
if (result !== null) {
|
|
1153
|
+
result += "\n";
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
else if (typeof readline == "function") {
|
|
1157
|
+
result = readline();
|
|
1158
|
+
if (result !== null) {
|
|
1159
|
+
result += "\n";
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
if (!result) {
|
|
1163
|
+
return null;
|
|
1164
|
+
}
|
|
1165
|
+
tty.input = intArrayFromString(result, true);
|
|
1166
|
+
} return tty.input.shift(); }, put_char: function (tty, val) { if (val === null || val === 10) {
|
|
1167
|
+
out(UTF8ArrayToString(tty.output, 0));
|
|
1168
|
+
tty.output = [];
|
|
1169
|
+
}
|
|
1170
|
+
else {
|
|
1171
|
+
if (val != 0)
|
|
1172
|
+
tty.output.push(val);
|
|
1173
|
+
} }, flush: function (tty) { if (tty.output && tty.output.length > 0) {
|
|
1174
|
+
out(UTF8ArrayToString(tty.output, 0));
|
|
1175
|
+
tty.output = [];
|
|
1176
|
+
} } }, default_tty1_ops: { put_char: function (tty, val) { if (val === null || val === 10) {
|
|
1177
|
+
err(UTF8ArrayToString(tty.output, 0));
|
|
1178
|
+
tty.output = [];
|
|
1179
|
+
}
|
|
1180
|
+
else {
|
|
1181
|
+
if (val != 0)
|
|
1182
|
+
tty.output.push(val);
|
|
1183
|
+
} }, flush: function (tty) { if (tty.output && tty.output.length > 0) {
|
|
1184
|
+
err(UTF8ArrayToString(tty.output, 0));
|
|
1185
|
+
tty.output = [];
|
|
1186
|
+
} } } };
|
|
1187
|
+
function zeroMemory(address, size) { HEAPU8.fill(0, address, address + size); }
|
|
1188
|
+
function alignMemory(size, alignment) { assert(alignment, "alignment argument is required"); return Math.ceil(size / alignment) * alignment; }
|
|
1189
|
+
function mmapAlloc(size) { size = alignMemory(size, 65536); var ptr = _memalign(65536, size); if (!ptr)
|
|
1190
|
+
return 0; zeroMemory(ptr, size); return ptr; }
|
|
1191
|
+
var MEMFS = { ops_table: null, mount: function (mount) { return MEMFS.createNode(null, "/", 16384 | 511, 0); }, createNode: function (parent, name, mode, dev) { if (FS.isBlkdev(mode) || FS.isFIFO(mode)) {
|
|
1192
|
+
throw new FS.ErrnoError(63);
|
|
1193
|
+
} if (!MEMFS.ops_table) {
|
|
1194
|
+
MEMFS.ops_table = { dir: { node: { getattr: MEMFS.node_ops.getattr, setattr: MEMFS.node_ops.setattr, lookup: MEMFS.node_ops.lookup, 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 }, stream: { llseek: MEMFS.stream_ops.llseek } }, file: { node: { getattr: MEMFS.node_ops.getattr, setattr: MEMFS.node_ops.setattr }, stream: { 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, msync: MEMFS.stream_ops.msync } }, link: { node: { getattr: MEMFS.node_ops.getattr, setattr: MEMFS.node_ops.setattr, readlink: MEMFS.node_ops.readlink }, stream: {} }, chrdev: { node: { getattr: MEMFS.node_ops.getattr, setattr: MEMFS.node_ops.setattr }, stream: FS.chrdev_stream_ops } };
|
|
1195
|
+
} var node = FS.createNode(parent, name, mode, dev); if (FS.isDir(node.mode)) {
|
|
1196
|
+
node.node_ops = MEMFS.ops_table.dir.node;
|
|
1197
|
+
node.stream_ops = MEMFS.ops_table.dir.stream;
|
|
1198
|
+
node.contents = {};
|
|
1199
|
+
}
|
|
1200
|
+
else if (FS.isFile(node.mode)) {
|
|
1201
|
+
node.node_ops = MEMFS.ops_table.file.node;
|
|
1202
|
+
node.stream_ops = MEMFS.ops_table.file.stream;
|
|
1203
|
+
node.usedBytes = 0;
|
|
1204
|
+
node.contents = null;
|
|
1205
|
+
}
|
|
1206
|
+
else if (FS.isLink(node.mode)) {
|
|
1207
|
+
node.node_ops = MEMFS.ops_table.link.node;
|
|
1208
|
+
node.stream_ops = MEMFS.ops_table.link.stream;
|
|
1209
|
+
}
|
|
1210
|
+
else if (FS.isChrdev(node.mode)) {
|
|
1211
|
+
node.node_ops = MEMFS.ops_table.chrdev.node;
|
|
1212
|
+
node.stream_ops = MEMFS.ops_table.chrdev.stream;
|
|
1213
|
+
} node.timestamp = Date.now(); if (parent) {
|
|
1214
|
+
parent.contents[name] = node;
|
|
1215
|
+
parent.timestamp = node.timestamp;
|
|
1216
|
+
} return node; }, getFileDataAsTypedArray: function (node) { if (!node.contents)
|
|
1217
|
+
return new Uint8Array(0); if (node.contents.subarray)
|
|
1218
|
+
return node.contents.subarray(0, node.usedBytes); return new Uint8Array(node.contents); }, expandFileStorage: function (node, newCapacity) { var prevCapacity = node.contents ? node.contents.length : 0; if (prevCapacity >= newCapacity)
|
|
1219
|
+
return; var CAPACITY_DOUBLING_MAX = 1024 * 1024; newCapacity = Math.max(newCapacity, prevCapacity * (prevCapacity < CAPACITY_DOUBLING_MAX ? 2 : 1.125) >>> 0); if (prevCapacity != 0)
|
|
1220
|
+
newCapacity = Math.max(newCapacity, 256); var oldContents = node.contents; node.contents = new Uint8Array(newCapacity); if (node.usedBytes > 0)
|
|
1221
|
+
node.contents.set(oldContents.subarray(0, node.usedBytes), 0); }, resizeFileStorage: function (node, newSize) { if (node.usedBytes == newSize)
|
|
1222
|
+
return; if (newSize == 0) {
|
|
1223
|
+
node.contents = null;
|
|
1224
|
+
node.usedBytes = 0;
|
|
1225
|
+
}
|
|
1226
|
+
else {
|
|
1227
|
+
var oldContents = node.contents;
|
|
1228
|
+
node.contents = new Uint8Array(newSize);
|
|
1229
|
+
if (oldContents) {
|
|
1230
|
+
node.contents.set(oldContents.subarray(0, Math.min(newSize, node.usedBytes)));
|
|
1231
|
+
}
|
|
1232
|
+
node.usedBytes = newSize;
|
|
1233
|
+
} }, node_ops: { getattr: function (node) { var attr = {}; 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)) {
|
|
1234
|
+
attr.size = 4096;
|
|
1235
|
+
}
|
|
1236
|
+
else if (FS.isFile(node.mode)) {
|
|
1237
|
+
attr.size = node.usedBytes;
|
|
1238
|
+
}
|
|
1239
|
+
else if (FS.isLink(node.mode)) {
|
|
1240
|
+
attr.size = node.link.length;
|
|
1241
|
+
}
|
|
1242
|
+
else {
|
|
1243
|
+
attr.size = 0;
|
|
1244
|
+
} attr.atime = new Date(node.timestamp); attr.mtime = new Date(node.timestamp); attr.ctime = new Date(node.timestamp); attr.blksize = 4096; attr.blocks = Math.ceil(attr.size / attr.blksize); return attr; }, setattr: function (node, attr) { if (attr.mode !== undefined) {
|
|
1245
|
+
node.mode = attr.mode;
|
|
1246
|
+
} if (attr.timestamp !== undefined) {
|
|
1247
|
+
node.timestamp = attr.timestamp;
|
|
1248
|
+
} if (attr.size !== undefined) {
|
|
1249
|
+
MEMFS.resizeFileStorage(node, attr.size);
|
|
1250
|
+
} }, lookup: function (parent, name) { throw FS.genericErrors[44]; }, mknod: function (parent, name, mode, dev) { return MEMFS.createNode(parent, name, mode, dev); }, rename: function (old_node, new_dir, new_name) { if (FS.isDir(old_node.mode)) {
|
|
1251
|
+
var new_node;
|
|
1252
|
+
try {
|
|
1253
|
+
new_node = FS.lookupNode(new_dir, new_name);
|
|
1254
|
+
}
|
|
1255
|
+
catch (e) { }
|
|
1256
|
+
if (new_node) {
|
|
1257
|
+
for (var i in new_node.contents) {
|
|
1258
|
+
throw new FS.ErrnoError(55);
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
} delete old_node.parent.contents[old_node.name]; old_node.parent.timestamp = Date.now(); old_node.name = new_name; new_dir.contents[new_name] = old_node; new_dir.timestamp = old_node.parent.timestamp; old_node.parent = new_dir; }, unlink: function (parent, name) { delete parent.contents[name]; parent.timestamp = Date.now(); }, rmdir: function (parent, name) { var node = FS.lookupNode(parent, name); for (var i in node.contents) {
|
|
1262
|
+
throw new FS.ErrnoError(55);
|
|
1263
|
+
} delete parent.contents[name]; parent.timestamp = Date.now(); }, readdir: function (node) { var entries = [".", ".."]; for (var key in node.contents) {
|
|
1264
|
+
if (!node.contents.hasOwnProperty(key)) {
|
|
1265
|
+
continue;
|
|
1266
|
+
}
|
|
1267
|
+
entries.push(key);
|
|
1268
|
+
} return entries; }, symlink: function (parent, newname, oldpath) { var node = MEMFS.createNode(parent, newname, 511 | 40960, 0); node.link = oldpath; return node; }, readlink: function (node) { if (!FS.isLink(node.mode)) {
|
|
1269
|
+
throw new FS.ErrnoError(28);
|
|
1270
|
+
} return node.link; } }, stream_ops: { read: function (stream, buffer, offset, length, position) { var contents = stream.node.contents; if (position >= stream.node.usedBytes)
|
|
1271
|
+
return 0; var size = Math.min(stream.node.usedBytes - position, length); assert(size >= 0); if (size > 8 && contents.subarray) {
|
|
1272
|
+
buffer.set(contents.subarray(position, position + size), offset);
|
|
1273
|
+
}
|
|
1274
|
+
else {
|
|
1275
|
+
for (var i = 0; i < size; i++)
|
|
1276
|
+
buffer[offset + i] = contents[position + i];
|
|
1277
|
+
} return size; }, write: function (stream, buffer, offset, length, position, canOwn) { assert(!(buffer instanceof ArrayBuffer)); if (buffer.buffer === HEAP8.buffer) {
|
|
1278
|
+
canOwn = false;
|
|
1279
|
+
} if (!length)
|
|
1280
|
+
return 0; var node = stream.node; node.timestamp = Date.now(); if (buffer.subarray && (!node.contents || node.contents.subarray)) {
|
|
1281
|
+
if (canOwn) {
|
|
1282
|
+
assert(position === 0, "canOwn must imply no weird position inside the file");
|
|
1283
|
+
node.contents = buffer.subarray(offset, offset + length);
|
|
1284
|
+
node.usedBytes = length;
|
|
1285
|
+
return length;
|
|
1286
|
+
}
|
|
1287
|
+
else if (node.usedBytes === 0 && position === 0) {
|
|
1288
|
+
node.contents = buffer.slice(offset, offset + length);
|
|
1289
|
+
node.usedBytes = length;
|
|
1290
|
+
return length;
|
|
1291
|
+
}
|
|
1292
|
+
else if (position + length <= node.usedBytes) {
|
|
1293
|
+
node.contents.set(buffer.subarray(offset, offset + length), position);
|
|
1294
|
+
return length;
|
|
1295
|
+
}
|
|
1296
|
+
} MEMFS.expandFileStorage(node, position + length); if (node.contents.subarray && buffer.subarray) {
|
|
1297
|
+
node.contents.set(buffer.subarray(offset, offset + length), position);
|
|
1298
|
+
}
|
|
1299
|
+
else {
|
|
1300
|
+
for (var i = 0; i < length; i++) {
|
|
1301
|
+
node.contents[position + i] = buffer[offset + i];
|
|
1302
|
+
}
|
|
1303
|
+
} node.usedBytes = Math.max(node.usedBytes, position + length); return length; }, llseek: function (stream, offset, whence) { var position = offset; if (whence === 1) {
|
|
1304
|
+
position += stream.position;
|
|
1305
|
+
}
|
|
1306
|
+
else if (whence === 2) {
|
|
1307
|
+
if (FS.isFile(stream.node.mode)) {
|
|
1308
|
+
position += stream.node.usedBytes;
|
|
1309
|
+
}
|
|
1310
|
+
} if (position < 0) {
|
|
1311
|
+
throw new FS.ErrnoError(28);
|
|
1312
|
+
} return position; }, allocate: function (stream, offset, length) { MEMFS.expandFileStorage(stream.node, offset + length); stream.node.usedBytes = Math.max(stream.node.usedBytes, offset + length); }, mmap: function (stream, address, length, position, prot, flags) { if (address !== 0) {
|
|
1313
|
+
throw new FS.ErrnoError(28);
|
|
1314
|
+
} if (!FS.isFile(stream.node.mode)) {
|
|
1315
|
+
throw new FS.ErrnoError(43);
|
|
1316
|
+
} var ptr; var allocated; var contents = stream.node.contents; if (!(flags & 2) && contents.buffer === buffer) {
|
|
1317
|
+
allocated = false;
|
|
1318
|
+
ptr = contents.byteOffset;
|
|
1319
|
+
}
|
|
1320
|
+
else {
|
|
1321
|
+
if (position > 0 || position + length < contents.length) {
|
|
1322
|
+
if (contents.subarray) {
|
|
1323
|
+
contents = contents.subarray(position, position + length);
|
|
1324
|
+
}
|
|
1325
|
+
else {
|
|
1326
|
+
contents = Array.prototype.slice.call(contents, position, position + length);
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
allocated = true;
|
|
1330
|
+
ptr = mmapAlloc(length);
|
|
1331
|
+
if (!ptr) {
|
|
1332
|
+
throw new FS.ErrnoError(48);
|
|
1333
|
+
}
|
|
1334
|
+
HEAP8.set(contents, ptr);
|
|
1335
|
+
} return { ptr: ptr, allocated: allocated }; }, msync: function (stream, buffer, offset, length, mmapFlags) { if (!FS.isFile(stream.node.mode)) {
|
|
1336
|
+
throw new FS.ErrnoError(43);
|
|
1337
|
+
} if (mmapFlags & 2) {
|
|
1338
|
+
return 0;
|
|
1339
|
+
} var bytesWritten = MEMFS.stream_ops.write(stream, buffer, 0, length, offset, false); return 0; } } };
|
|
1340
|
+
function asyncLoad(url, onload, onerror, noRunDep) { var dep = !noRunDep ? getUniqueRunDependency("al " + url) : ""; readAsync(url, function (arrayBuffer) { assert(arrayBuffer, 'Loading data file "' + url + '" failed (no arrayBuffer).'); onload(new Uint8Array(arrayBuffer)); if (dep)
|
|
1341
|
+
removeRunDependency(dep); }, function (event) { if (onerror) {
|
|
1342
|
+
onerror();
|
|
1343
|
+
}
|
|
1344
|
+
else {
|
|
1345
|
+
throw 'Loading data file "' + url + '" failed.';
|
|
1346
|
+
} }); if (dep)
|
|
1347
|
+
addRunDependency(dep); }
|
|
1348
|
+
var ERRNO_CODES = {};
|
|
1349
|
+
var NODEFS = { isWindows: false, staticInit: () => { NODEFS.isWindows = !!process.platform.match(/^win/); var flags = process["binding"]("constants"); if (flags["fs"]) {
|
|
1350
|
+
flags = flags["fs"];
|
|
1351
|
+
} NODEFS.flagsForNodeMap = { 1024: flags["O_APPEND"], 64: flags["O_CREAT"], 128: flags["O_EXCL"], 256: flags["O_NOCTTY"], 0: flags["O_RDONLY"], 2: flags["O_RDWR"], 4096: flags["O_SYNC"], 512: flags["O_TRUNC"], 1: flags["O_WRONLY"], 131072: flags["O_NOFOLLOW"] }; assert(NODEFS.flagsForNodeMap["0"] === 0); }, convertNodeCode: e => { var code = e.code; assert(code in ERRNO_CODES, "unexpected node error code: " + code + " (" + e + ")"); return ERRNO_CODES[code]; }, mount: mount => { assert(ENVIRONMENT_IS_NODE); return NODEFS.createNode(null, "/", NODEFS.getMode(mount.opts.root), 0); }, createNode: (parent, name, mode, dev) => { if (!FS.isDir(mode) && !FS.isFile(mode) && !FS.isLink(mode)) {
|
|
1352
|
+
throw new FS.ErrnoError(28);
|
|
1353
|
+
} var node = FS.createNode(parent, name, mode); node.node_ops = NODEFS.node_ops; node.stream_ops = NODEFS.stream_ops; return node; }, getMode: path => { var stat; try {
|
|
1354
|
+
stat = fs.lstatSync(path);
|
|
1355
|
+
if (NODEFS.isWindows) {
|
|
1356
|
+
stat.mode = stat.mode | (stat.mode & 292) >> 2;
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
catch (e) {
|
|
1360
|
+
if (!e.code)
|
|
1361
|
+
throw e;
|
|
1362
|
+
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|
1363
|
+
} return stat.mode; }, realPath: node => { var parts = []; while (node.parent !== node) {
|
|
1364
|
+
parts.push(node.name);
|
|
1365
|
+
node = node.parent;
|
|
1366
|
+
} parts.push(node.mount.opts.root); parts.reverse(); return PATH.join.apply(null, parts); }, flagsForNode: flags => { flags &= ~2097152; flags &= ~2048; flags &= ~32768; flags &= ~524288; flags &= ~65536; var newFlags = 0; for (var k in NODEFS.flagsForNodeMap) {
|
|
1367
|
+
if (flags & k) {
|
|
1368
|
+
newFlags |= NODEFS.flagsForNodeMap[k];
|
|
1369
|
+
flags ^= k;
|
|
1370
|
+
}
|
|
1371
|
+
} if (!flags) {
|
|
1372
|
+
return newFlags;
|
|
1373
|
+
}
|
|
1374
|
+
else {
|
|
1375
|
+
throw new FS.ErrnoError(28);
|
|
1376
|
+
} }, node_ops: { getattr: node => { var path = NODEFS.realPath(node); var stat; try {
|
|
1377
|
+
stat = fs.lstatSync(path);
|
|
1378
|
+
}
|
|
1379
|
+
catch (e) {
|
|
1380
|
+
if (!e.code)
|
|
1381
|
+
throw e;
|
|
1382
|
+
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|
1383
|
+
} if (NODEFS.isWindows && !stat.blksize) {
|
|
1384
|
+
stat.blksize = 4096;
|
|
1385
|
+
} if (NODEFS.isWindows && !stat.blocks) {
|
|
1386
|
+
stat.blocks = (stat.size + stat.blksize - 1) / stat.blksize | 0;
|
|
1387
|
+
} return { dev: stat.dev, ino: stat.ino, mode: stat.mode, nlink: stat.nlink, uid: stat.uid, gid: stat.gid, rdev: stat.rdev, size: stat.size, atime: stat.atime, mtime: stat.mtime, ctime: stat.ctime, blksize: stat.blksize, blocks: stat.blocks }; }, setattr: (node, attr) => { var path = NODEFS.realPath(node); try {
|
|
1388
|
+
if (attr.mode !== undefined) {
|
|
1389
|
+
fs.chmodSync(path, attr.mode);
|
|
1390
|
+
node.mode = attr.mode;
|
|
1391
|
+
}
|
|
1392
|
+
if (attr.timestamp !== undefined) {
|
|
1393
|
+
var date = new Date(attr.timestamp);
|
|
1394
|
+
fs.utimesSync(path, date, date);
|
|
1395
|
+
}
|
|
1396
|
+
if (attr.size !== undefined) {
|
|
1397
|
+
fs.truncateSync(path, attr.size);
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
catch (e) {
|
|
1401
|
+
if (!e.code)
|
|
1402
|
+
throw e;
|
|
1403
|
+
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|
1404
|
+
} }, lookup: (parent, name) => { var path = PATH.join2(NODEFS.realPath(parent), name); var mode = NODEFS.getMode(path); return NODEFS.createNode(parent, name, mode); }, mknod: (parent, name, mode, dev) => { var node = NODEFS.createNode(parent, name, mode, dev); var path = NODEFS.realPath(node); try {
|
|
1405
|
+
if (FS.isDir(node.mode)) {
|
|
1406
|
+
fs.mkdirSync(path, node.mode);
|
|
1407
|
+
}
|
|
1408
|
+
else {
|
|
1409
|
+
fs.writeFileSync(path, "", { mode: node.mode });
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
catch (e) {
|
|
1413
|
+
if (!e.code)
|
|
1414
|
+
throw e;
|
|
1415
|
+
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|
1416
|
+
} return node; }, rename: (oldNode, newDir, newName) => { var oldPath = NODEFS.realPath(oldNode); var newPath = PATH.join2(NODEFS.realPath(newDir), newName); try {
|
|
1417
|
+
fs.renameSync(oldPath, newPath);
|
|
1418
|
+
}
|
|
1419
|
+
catch (e) {
|
|
1420
|
+
if (!e.code)
|
|
1421
|
+
throw e;
|
|
1422
|
+
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|
1423
|
+
} oldNode.name = newName; }, unlink: (parent, name) => { var path = PATH.join2(NODEFS.realPath(parent), name); try {
|
|
1424
|
+
fs.unlinkSync(path);
|
|
1425
|
+
}
|
|
1426
|
+
catch (e) {
|
|
1427
|
+
if (!e.code)
|
|
1428
|
+
throw e;
|
|
1429
|
+
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|
1430
|
+
} }, rmdir: (parent, name) => { var path = PATH.join2(NODEFS.realPath(parent), name); try {
|
|
1431
|
+
fs.rmdirSync(path);
|
|
1432
|
+
}
|
|
1433
|
+
catch (e) {
|
|
1434
|
+
if (!e.code)
|
|
1435
|
+
throw e;
|
|
1436
|
+
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|
1437
|
+
} }, readdir: node => { var path = NODEFS.realPath(node); try {
|
|
1438
|
+
return fs.readdirSync(path);
|
|
1439
|
+
}
|
|
1440
|
+
catch (e) {
|
|
1441
|
+
if (!e.code)
|
|
1442
|
+
throw e;
|
|
1443
|
+
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|
1444
|
+
} }, symlink: (parent, newName, oldPath) => { var newPath = PATH.join2(NODEFS.realPath(parent), newName); try {
|
|
1445
|
+
fs.symlinkSync(oldPath, newPath);
|
|
1446
|
+
}
|
|
1447
|
+
catch (e) {
|
|
1448
|
+
if (!e.code)
|
|
1449
|
+
throw e;
|
|
1450
|
+
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|
1451
|
+
} }, readlink: node => { var path = NODEFS.realPath(node); try {
|
|
1452
|
+
path = fs.readlinkSync(path);
|
|
1453
|
+
path = nodePath.relative(nodePath.resolve(node.mount.opts.root), path);
|
|
1454
|
+
return path;
|
|
1455
|
+
}
|
|
1456
|
+
catch (e) {
|
|
1457
|
+
if (!e.code)
|
|
1458
|
+
throw e;
|
|
1459
|
+
if (e.code === "UNKNOWN")
|
|
1460
|
+
throw new FS.ErrnoError(28);
|
|
1461
|
+
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|
1462
|
+
} } }, stream_ops: { open: stream => { var path = NODEFS.realPath(stream.node); try {
|
|
1463
|
+
if (FS.isFile(stream.node.mode)) {
|
|
1464
|
+
stream.nfd = fs.openSync(path, NODEFS.flagsForNode(stream.flags));
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
catch (e) {
|
|
1468
|
+
if (!e.code)
|
|
1469
|
+
throw e;
|
|
1470
|
+
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|
1471
|
+
} }, close: stream => { try {
|
|
1472
|
+
if (FS.isFile(stream.node.mode) && stream.nfd) {
|
|
1473
|
+
fs.closeSync(stream.nfd);
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
catch (e) {
|
|
1477
|
+
if (!e.code)
|
|
1478
|
+
throw e;
|
|
1479
|
+
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|
1480
|
+
} }, read: (stream, buffer, offset, length, position) => { if (length === 0)
|
|
1481
|
+
return 0; try {
|
|
1482
|
+
return fs.readSync(stream.nfd, Buffer.from(buffer.buffer), offset, length, position);
|
|
1483
|
+
}
|
|
1484
|
+
catch (e) {
|
|
1485
|
+
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|
1486
|
+
} }, write: (stream, buffer, offset, length, position) => { try {
|
|
1487
|
+
return fs.writeSync(stream.nfd, Buffer.from(buffer.buffer), offset, length, position);
|
|
1488
|
+
}
|
|
1489
|
+
catch (e) {
|
|
1490
|
+
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|
1491
|
+
} }, llseek: (stream, offset, whence) => { var position = offset; if (whence === 1) {
|
|
1492
|
+
position += stream.position;
|
|
1493
|
+
}
|
|
1494
|
+
else if (whence === 2) {
|
|
1495
|
+
if (FS.isFile(stream.node.mode)) {
|
|
1496
|
+
try {
|
|
1497
|
+
var stat = fs.fstatSync(stream.nfd);
|
|
1498
|
+
position += stat.size;
|
|
1499
|
+
}
|
|
1500
|
+
catch (e) {
|
|
1501
|
+
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
} if (position < 0) {
|
|
1505
|
+
throw new FS.ErrnoError(28);
|
|
1506
|
+
} return position; }, mmap: (stream, address, length, position, prot, flags) => { if (address !== 0) {
|
|
1507
|
+
throw new FS.ErrnoError(28);
|
|
1508
|
+
} if (!FS.isFile(stream.node.mode)) {
|
|
1509
|
+
throw new FS.ErrnoError(43);
|
|
1510
|
+
} var ptr = mmapAlloc(length); NODEFS.stream_ops.read(stream, HEAP8, ptr, length, position); return { ptr: ptr, allocated: true }; }, msync: (stream, buffer, offset, length, mmapFlags) => { if (!FS.isFile(stream.node.mode)) {
|
|
1511
|
+
throw new FS.ErrnoError(43);
|
|
1512
|
+
} if (mmapFlags & 2) {
|
|
1513
|
+
return 0;
|
|
1514
|
+
} var bytesWritten = NODEFS.stream_ops.write(stream, buffer, 0, length, offset, false); return 0; } } };
|
|
1515
|
+
var ERRNO_MESSAGES = { 0: "Success", 1: "Arg list too long", 2: "Permission denied", 3: "Address already in use", 4: "Address not available", 5: "Address family not supported by protocol family", 6: "No more processes", 7: "Socket already connected", 8: "Bad file number", 9: "Trying to read unreadable message", 10: "Mount device busy", 11: "Operation canceled", 12: "No children", 13: "Connection aborted", 14: "Connection refused", 15: "Connection reset by peer", 16: "File locking deadlock error", 17: "Destination address required", 18: "Math arg out of domain of func", 19: "Quota exceeded", 20: "File exists", 21: "Bad address", 22: "File too large", 23: "Host is unreachable", 24: "Identifier removed", 25: "Illegal byte sequence", 26: "Connection already in progress", 27: "Interrupted system call", 28: "Invalid argument", 29: "I/O error", 30: "Socket is already connected", 31: "Is a directory", 32: "Too many symbolic links", 33: "Too many open files", 34: "Too many links", 35: "Message too long", 36: "Multihop attempted", 37: "File or path name too long", 38: "Network interface is not configured", 39: "Connection reset by network", 40: "Network is unreachable", 41: "Too many open files in system", 42: "No buffer space available", 43: "No such device", 44: "No such file or directory", 45: "Exec format error", 46: "No record locks available", 47: "The link has been severed", 48: "Not enough core", 49: "No message of desired type", 50: "Protocol not available", 51: "No space left on device", 52: "Function not implemented", 53: "Socket is not connected", 54: "Not a directory", 55: "Directory not empty", 56: "State not recoverable", 57: "Socket operation on non-socket", 59: "Not a typewriter", 60: "No such device or address", 61: "Value too large for defined data type", 62: "Previous owner died", 63: "Not super-user", 64: "Broken pipe", 65: "Protocol error", 66: "Unknown protocol", 67: "Protocol wrong type for socket", 68: "Math result not representable", 69: "Read only file system", 70: "Illegal seek", 71: "No such process", 72: "Stale file handle", 73: "Connection timed out", 74: "Text file busy", 75: "Cross-device link", 100: "Device not a stream", 101: "Bad font file fmt", 102: "Invalid slot", 103: "Invalid request code", 104: "No anode", 105: "Block device required", 106: "Channel number out of range", 107: "Level 3 halted", 108: "Level 3 reset", 109: "Link number out of range", 110: "Protocol driver not attached", 111: "No CSI structure available", 112: "Level 2 halted", 113: "Invalid exchange", 114: "Invalid request descriptor", 115: "Exchange full", 116: "No data (for no delay io)", 117: "Timer expired", 118: "Out of streams resources", 119: "Machine is not on the network", 120: "Package not installed", 121: "The object is remote", 122: "Advertise error", 123: "Srmount error", 124: "Communication error on send", 125: "Cross mount point (not really error)", 126: "Given log. name not unique", 127: "f.d. invalid for this operation", 128: "Remote address changed", 129: "Can access a needed shared lib", 130: "Accessing a corrupted shared lib", 131: ".lib section in a.out corrupted", 132: "Attempting to link in too many libs", 133: "Attempting to exec a shared library", 135: "Streams pipe error", 136: "Too many users", 137: "Socket type not supported", 138: "Not supported", 139: "Protocol family not supported", 140: "Can't send after socket shutdown", 141: "Too many references", 142: "Host is down", 148: "No medium (in tape drive)", 156: "Level 2 not synchronized" };
|
|
1516
|
+
var FS = { root: null, mounts: [], devices: {}, streams: [], nextInode: 1, nameTable: null, currentPath: "/", initialized: false, ignorePermissions: true, ErrnoError: null, genericErrors: {}, filesystems: null, syncFSRequests: 0, lookupPath: (path, opts = {}) => { path = PATH_FS.resolve(FS.cwd(), path); if (!path)
|
|
1517
|
+
return { path: "", node: null }; var defaults = { follow_mount: true, recurse_count: 0 }; for (var key in defaults) {
|
|
1518
|
+
if (opts[key] === undefined) {
|
|
1519
|
+
opts[key] = defaults[key];
|
|
1520
|
+
}
|
|
1521
|
+
} if (opts.recurse_count > 8) {
|
|
1522
|
+
throw new FS.ErrnoError(32);
|
|
1523
|
+
} var parts = PATH.normalizeArray(path.split("/").filter(p => !!p), false); var current = FS.root; var current_path = "/"; for (var i = 0; i < parts.length; i++) {
|
|
1524
|
+
var islast = i === parts.length - 1;
|
|
1525
|
+
if (islast && opts.parent) {
|
|
1526
|
+
break;
|
|
1527
|
+
}
|
|
1528
|
+
current = FS.lookupNode(current, parts[i]);
|
|
1529
|
+
current_path = PATH.join2(current_path, parts[i]);
|
|
1530
|
+
if (FS.isMountpoint(current)) {
|
|
1531
|
+
if (!islast || islast && opts.follow_mount) {
|
|
1532
|
+
current = current.mounted.root;
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
if (!islast || opts.follow) {
|
|
1536
|
+
var count = 0;
|
|
1537
|
+
while (FS.isLink(current.mode)) {
|
|
1538
|
+
var link = FS.readlink(current_path);
|
|
1539
|
+
current_path = PATH_FS.resolve(PATH.dirname(current_path), link);
|
|
1540
|
+
var lookup = FS.lookupPath(current_path, { recurse_count: opts.recurse_count });
|
|
1541
|
+
current = lookup.node;
|
|
1542
|
+
if (count++ > 40) {
|
|
1543
|
+
throw new FS.ErrnoError(32);
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
} return { path: current_path, node: current }; }, getPath: node => { var path; while (true) {
|
|
1548
|
+
if (FS.isRoot(node)) {
|
|
1549
|
+
var mount = node.mount.mountpoint;
|
|
1550
|
+
if (!path)
|
|
1551
|
+
return mount;
|
|
1552
|
+
return mount[mount.length - 1] !== "/" ? mount + "/" + path : mount + path;
|
|
1553
|
+
}
|
|
1554
|
+
path = path ? node.name + "/" + path : node.name;
|
|
1555
|
+
node = node.parent;
|
|
1556
|
+
} }, hashName: (parentid, name) => { var hash = 0; for (var i = 0; i < name.length; i++) {
|
|
1557
|
+
hash = (hash << 5) - hash + name.charCodeAt(i) | 0;
|
|
1558
|
+
} return (parentid + hash >>> 0) % FS.nameTable.length; }, hashAddNode: node => { var hash = FS.hashName(node.parent.id, node.name); node.name_next = FS.nameTable[hash]; FS.nameTable[hash] = node; }, hashRemoveNode: node => { var hash = FS.hashName(node.parent.id, node.name); if (FS.nameTable[hash] === node) {
|
|
1559
|
+
FS.nameTable[hash] = node.name_next;
|
|
1560
|
+
}
|
|
1561
|
+
else {
|
|
1562
|
+
var current = FS.nameTable[hash];
|
|
1563
|
+
while (current) {
|
|
1564
|
+
if (current.name_next === node) {
|
|
1565
|
+
current.name_next = node.name_next;
|
|
1566
|
+
break;
|
|
1567
|
+
}
|
|
1568
|
+
current = current.name_next;
|
|
1569
|
+
}
|
|
1570
|
+
} }, lookupNode: (parent, name) => { var errCode = FS.mayLookup(parent); if (errCode) {
|
|
1571
|
+
throw new FS.ErrnoError(errCode, parent);
|
|
1572
|
+
} var hash = FS.hashName(parent.id, name); for (var node = FS.nameTable[hash]; node; node = node.name_next) {
|
|
1573
|
+
var nodeName = node.name;
|
|
1574
|
+
if (node.parent.id === parent.id && nodeName === name) {
|
|
1575
|
+
return node;
|
|
1576
|
+
}
|
|
1577
|
+
} return FS.lookup(parent, name); }, createNode: (parent, name, mode, rdev) => { assert(typeof parent === "object"); var node = new FS.FSNode(parent, name, mode, rdev); FS.hashAddNode(node); return node; }, destroyNode: node => { FS.hashRemoveNode(node); }, isRoot: node => { return node === node.parent; }, isMountpoint: node => { return !!node.mounted; }, isFile: mode => { return (mode & 61440) === 32768; }, isDir: mode => { return (mode & 61440) === 16384; }, isLink: mode => { return (mode & 61440) === 40960; }, isChrdev: mode => { return (mode & 61440) === 8192; }, isBlkdev: mode => { return (mode & 61440) === 24576; }, isFIFO: mode => { return (mode & 61440) === 4096; }, isSocket: mode => { return (mode & 49152) === 49152; }, flagModes: { "r": 0, "r+": 2, "w": 577, "w+": 578, "a": 1089, "a+": 1090 }, modeStringToFlags: str => { var flags = FS.flagModes[str]; if (typeof flags === "undefined") {
|
|
1578
|
+
throw new Error("Unknown file open mode: " + str);
|
|
1579
|
+
} return flags; }, flagsToPermissionString: flag => { var perms = ["r", "w", "rw"][flag & 3]; if (flag & 512) {
|
|
1580
|
+
perms += "w";
|
|
1581
|
+
} return perms; }, nodePermissions: (node, perms) => { if (FS.ignorePermissions) {
|
|
1582
|
+
return 0;
|
|
1583
|
+
} if (perms.includes("r") && !(node.mode & 292)) {
|
|
1584
|
+
return 2;
|
|
1585
|
+
}
|
|
1586
|
+
else if (perms.includes("w") && !(node.mode & 146)) {
|
|
1587
|
+
return 2;
|
|
1588
|
+
}
|
|
1589
|
+
else if (perms.includes("x") && !(node.mode & 73)) {
|
|
1590
|
+
return 2;
|
|
1591
|
+
} return 0; }, mayLookup: dir => { var errCode = FS.nodePermissions(dir, "x"); if (errCode)
|
|
1592
|
+
return errCode; if (!dir.node_ops.lookup)
|
|
1593
|
+
return 2; return 0; }, mayCreate: (dir, name) => { try {
|
|
1594
|
+
var node = FS.lookupNode(dir, name);
|
|
1595
|
+
return 20;
|
|
1596
|
+
}
|
|
1597
|
+
catch (e) { } return FS.nodePermissions(dir, "wx"); }, mayDelete: (dir, name, isdir) => { var node; try {
|
|
1598
|
+
node = FS.lookupNode(dir, name);
|
|
1599
|
+
}
|
|
1600
|
+
catch (e) {
|
|
1601
|
+
return e.errno;
|
|
1602
|
+
} var errCode = FS.nodePermissions(dir, "wx"); if (errCode) {
|
|
1603
|
+
return errCode;
|
|
1604
|
+
} if (isdir) {
|
|
1605
|
+
if (!FS.isDir(node.mode)) {
|
|
1606
|
+
return 54;
|
|
1607
|
+
}
|
|
1608
|
+
if (FS.isRoot(node) || FS.getPath(node) === FS.cwd()) {
|
|
1609
|
+
return 10;
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
else {
|
|
1613
|
+
if (FS.isDir(node.mode)) {
|
|
1614
|
+
return 31;
|
|
1615
|
+
}
|
|
1616
|
+
} return 0; }, mayOpen: (node, flags) => { if (!node) {
|
|
1617
|
+
return 44;
|
|
1618
|
+
} if (FS.isLink(node.mode)) {
|
|
1619
|
+
return 32;
|
|
1620
|
+
}
|
|
1621
|
+
else if (FS.isDir(node.mode)) {
|
|
1622
|
+
if (FS.flagsToPermissionString(flags) !== "r" || flags & 512) {
|
|
1623
|
+
return 31;
|
|
1624
|
+
}
|
|
1625
|
+
} return FS.nodePermissions(node, FS.flagsToPermissionString(flags)); }, MAX_OPEN_FDS: 4096, nextfd: (fd_start = 0, fd_end = FS.MAX_OPEN_FDS) => { for (var fd = fd_start; fd <= fd_end; fd++) {
|
|
1626
|
+
if (!FS.streams[fd]) {
|
|
1627
|
+
return fd;
|
|
1628
|
+
}
|
|
1629
|
+
} throw new FS.ErrnoError(33); }, getStream: fd => FS.streams[fd], createStream: (stream, fd_start, fd_end) => { if (!FS.FSStream) {
|
|
1630
|
+
FS.FSStream = function () { };
|
|
1631
|
+
FS.FSStream.prototype = { object: { get: function () { return this.node; }, set: function (val) { this.node = val; } }, isRead: { get: function () { return (this.flags & 2097155) !== 1; } }, isWrite: { get: function () { return (this.flags & 2097155) !== 0; } }, isAppend: { get: function () { return this.flags & 1024; } } };
|
|
1632
|
+
} var newStream = new FS.FSStream; for (var p in stream) {
|
|
1633
|
+
newStream[p] = stream[p];
|
|
1634
|
+
} stream = newStream; var fd = FS.nextfd(fd_start, fd_end); stream.fd = fd; FS.streams[fd] = stream; return stream; }, closeStream: fd => { FS.streams[fd] = null; }, chrdev_stream_ops: { open: stream => { var device = FS.getDevice(stream.node.rdev); stream.stream_ops = device.stream_ops; if (stream.stream_ops.open) {
|
|
1635
|
+
stream.stream_ops.open(stream);
|
|
1636
|
+
} }, llseek: () => { throw new FS.ErrnoError(70); } }, major: dev => dev >> 8, minor: dev => dev & 255, makedev: (ma, mi) => ma << 8 | mi, registerDevice: (dev, ops) => { FS.devices[dev] = { stream_ops: ops }; }, getDevice: dev => FS.devices[dev], getMounts: mount => { var mounts = []; var check = [mount]; while (check.length) {
|
|
1637
|
+
var m = check.pop();
|
|
1638
|
+
mounts.push(m);
|
|
1639
|
+
check.push.apply(check, m.mounts);
|
|
1640
|
+
} return mounts; }, syncfs: (populate, callback) => { if (typeof populate === "function") {
|
|
1641
|
+
callback = populate;
|
|
1642
|
+
populate = false;
|
|
1643
|
+
} FS.syncFSRequests++; if (FS.syncFSRequests > 1) {
|
|
1644
|
+
err("warning: " + FS.syncFSRequests + " FS.syncfs operations in flight at once, probably just doing extra work");
|
|
1645
|
+
} var mounts = FS.getMounts(FS.root.mount); var completed = 0; function doCallback(errCode) { assert(FS.syncFSRequests > 0); FS.syncFSRequests--; return callback(errCode); } function done(errCode) { if (errCode) {
|
|
1646
|
+
if (!done.errored) {
|
|
1647
|
+
done.errored = true;
|
|
1648
|
+
return doCallback(errCode);
|
|
1649
|
+
}
|
|
1650
|
+
return;
|
|
1651
|
+
} if (++completed >= mounts.length) {
|
|
1652
|
+
doCallback(null);
|
|
1653
|
+
} } mounts.forEach(mount => { if (!mount.type.syncfs) {
|
|
1654
|
+
return done(null);
|
|
1655
|
+
} mount.type.syncfs(mount, populate, done); }); }, mount: (type, opts, mountpoint) => { if (typeof type === "string") {
|
|
1656
|
+
throw type;
|
|
1657
|
+
} var root = mountpoint === "/"; var pseudo = !mountpoint; var node; if (root && FS.root) {
|
|
1658
|
+
throw new FS.ErrnoError(10);
|
|
1659
|
+
}
|
|
1660
|
+
else if (!root && !pseudo) {
|
|
1661
|
+
var lookup = FS.lookupPath(mountpoint, { follow_mount: false });
|
|
1662
|
+
mountpoint = lookup.path;
|
|
1663
|
+
node = lookup.node;
|
|
1664
|
+
if (FS.isMountpoint(node)) {
|
|
1665
|
+
throw new FS.ErrnoError(10);
|
|
1666
|
+
}
|
|
1667
|
+
if (!FS.isDir(node.mode)) {
|
|
1668
|
+
throw new FS.ErrnoError(54);
|
|
1669
|
+
}
|
|
1670
|
+
} var mount = { type: type, opts: opts, mountpoint: mountpoint, mounts: [] }; var mountRoot = type.mount(mount); mountRoot.mount = mount; mount.root = mountRoot; if (root) {
|
|
1671
|
+
FS.root = mountRoot;
|
|
1672
|
+
}
|
|
1673
|
+
else if (node) {
|
|
1674
|
+
node.mounted = mount;
|
|
1675
|
+
if (node.mount) {
|
|
1676
|
+
node.mount.mounts.push(mount);
|
|
1677
|
+
}
|
|
1678
|
+
} return mountRoot; }, unmount: mountpoint => { var lookup = FS.lookupPath(mountpoint, { follow_mount: false }); if (!FS.isMountpoint(lookup.node)) {
|
|
1679
|
+
throw new FS.ErrnoError(28);
|
|
1680
|
+
} var node = lookup.node; var mount = node.mounted; var mounts = FS.getMounts(mount); Object.keys(FS.nameTable).forEach(hash => { var current = FS.nameTable[hash]; while (current) {
|
|
1681
|
+
var next = current.name_next;
|
|
1682
|
+
if (mounts.includes(current.mount)) {
|
|
1683
|
+
FS.destroyNode(current);
|
|
1684
|
+
}
|
|
1685
|
+
current = next;
|
|
1686
|
+
} }); node.mounted = null; var idx = node.mount.mounts.indexOf(mount); assert(idx !== -1); node.mount.mounts.splice(idx, 1); }, lookup: (parent, name) => { return parent.node_ops.lookup(parent, name); }, mknod: (path, mode, dev) => { var lookup = FS.lookupPath(path, { parent: true }); var parent = lookup.node; var name = PATH.basename(path); if (!name || name === "." || name === "..") {
|
|
1687
|
+
throw new FS.ErrnoError(28);
|
|
1688
|
+
} var errCode = FS.mayCreate(parent, name); if (errCode) {
|
|
1689
|
+
throw new FS.ErrnoError(errCode);
|
|
1690
|
+
} if (!parent.node_ops.mknod) {
|
|
1691
|
+
throw new FS.ErrnoError(63);
|
|
1692
|
+
} return parent.node_ops.mknod(parent, name, mode, dev); }, create: (path, mode) => { mode = mode !== undefined ? mode : 438; mode &= 4095; mode |= 32768; return FS.mknod(path, mode, 0); }, mkdir: (path, mode) => { mode = mode !== undefined ? mode : 511; mode &= 511 | 512; mode |= 16384; return FS.mknod(path, mode, 0); }, mkdirTree: (path, mode) => { var dirs = path.split("/"); var d = ""; for (var i = 0; i < dirs.length; ++i) {
|
|
1693
|
+
if (!dirs[i])
|
|
1694
|
+
continue;
|
|
1695
|
+
d += "/" + dirs[i];
|
|
1696
|
+
try {
|
|
1697
|
+
FS.mkdir(d, mode);
|
|
1698
|
+
}
|
|
1699
|
+
catch (e) {
|
|
1700
|
+
if (e.errno != 20)
|
|
1701
|
+
throw e;
|
|
1702
|
+
}
|
|
1703
|
+
} }, mkdev: (path, mode, dev) => { if (typeof dev === "undefined") {
|
|
1704
|
+
dev = mode;
|
|
1705
|
+
mode = 438;
|
|
1706
|
+
} mode |= 8192; return FS.mknod(path, mode, dev); }, symlink: (oldpath, newpath) => { if (!PATH_FS.resolve(oldpath)) {
|
|
1707
|
+
throw new FS.ErrnoError(44);
|
|
1708
|
+
} var lookup = FS.lookupPath(newpath, { parent: true }); var parent = lookup.node; if (!parent) {
|
|
1709
|
+
throw new FS.ErrnoError(44);
|
|
1710
|
+
} var newname = PATH.basename(newpath); var errCode = FS.mayCreate(parent, newname); if (errCode) {
|
|
1711
|
+
throw new FS.ErrnoError(errCode);
|
|
1712
|
+
} if (!parent.node_ops.symlink) {
|
|
1713
|
+
throw new FS.ErrnoError(63);
|
|
1714
|
+
} return parent.node_ops.symlink(parent, newname, oldpath); }, rename: (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); var lookup, old_dir, new_dir; lookup = FS.lookupPath(old_path, { parent: true }); old_dir = lookup.node; lookup = FS.lookupPath(new_path, { parent: true }); new_dir = lookup.node; if (!old_dir || !new_dir)
|
|
1715
|
+
throw new FS.ErrnoError(44); if (old_dir.mount !== new_dir.mount) {
|
|
1716
|
+
throw new FS.ErrnoError(75);
|
|
1717
|
+
} var old_node = FS.lookupNode(old_dir, old_name); var relative = PATH_FS.relative(old_path, new_dirname); if (relative.charAt(0) !== ".") {
|
|
1718
|
+
throw new FS.ErrnoError(28);
|
|
1719
|
+
} relative = PATH_FS.relative(new_path, old_dirname); if (relative.charAt(0) !== ".") {
|
|
1720
|
+
throw new FS.ErrnoError(55);
|
|
1721
|
+
} var new_node; try {
|
|
1722
|
+
new_node = FS.lookupNode(new_dir, new_name);
|
|
1723
|
+
}
|
|
1724
|
+
catch (e) { } if (old_node === new_node) {
|
|
1725
|
+
return;
|
|
1726
|
+
} var isdir = FS.isDir(old_node.mode); var errCode = FS.mayDelete(old_dir, old_name, isdir); if (errCode) {
|
|
1727
|
+
throw new FS.ErrnoError(errCode);
|
|
1728
|
+
} errCode = new_node ? FS.mayDelete(new_dir, new_name, isdir) : FS.mayCreate(new_dir, new_name); if (errCode) {
|
|
1729
|
+
throw new FS.ErrnoError(errCode);
|
|
1730
|
+
} if (!old_dir.node_ops.rename) {
|
|
1731
|
+
throw new FS.ErrnoError(63);
|
|
1732
|
+
} if (FS.isMountpoint(old_node) || new_node && FS.isMountpoint(new_node)) {
|
|
1733
|
+
throw new FS.ErrnoError(10);
|
|
1734
|
+
} if (new_dir !== old_dir) {
|
|
1735
|
+
errCode = FS.nodePermissions(old_dir, "w");
|
|
1736
|
+
if (errCode) {
|
|
1737
|
+
throw new FS.ErrnoError(errCode);
|
|
1738
|
+
}
|
|
1739
|
+
} FS.hashRemoveNode(old_node); try {
|
|
1740
|
+
old_dir.node_ops.rename(old_node, new_dir, new_name);
|
|
1741
|
+
}
|
|
1742
|
+
catch (e) {
|
|
1743
|
+
throw e;
|
|
1744
|
+
}
|
|
1745
|
+
finally {
|
|
1746
|
+
FS.hashAddNode(old_node);
|
|
1747
|
+
} }, rmdir: path => { var lookup = FS.lookupPath(path, { parent: true }); var parent = lookup.node; var name = PATH.basename(path); var node = FS.lookupNode(parent, name); var errCode = FS.mayDelete(parent, name, true); if (errCode) {
|
|
1748
|
+
throw new FS.ErrnoError(errCode);
|
|
1749
|
+
} if (!parent.node_ops.rmdir) {
|
|
1750
|
+
throw new FS.ErrnoError(63);
|
|
1751
|
+
} if (FS.isMountpoint(node)) {
|
|
1752
|
+
throw new FS.ErrnoError(10);
|
|
1753
|
+
} parent.node_ops.rmdir(parent, name); FS.destroyNode(node); }, readdir: path => { var lookup = FS.lookupPath(path, { follow: true }); var node = lookup.node; if (!node.node_ops.readdir) {
|
|
1754
|
+
throw new FS.ErrnoError(54);
|
|
1755
|
+
} return node.node_ops.readdir(node); }, unlink: path => { var lookup = FS.lookupPath(path, { parent: true }); var parent = lookup.node; if (!parent) {
|
|
1756
|
+
throw new FS.ErrnoError(44);
|
|
1757
|
+
} var name = PATH.basename(path); var node = FS.lookupNode(parent, name); var errCode = FS.mayDelete(parent, name, false); if (errCode) {
|
|
1758
|
+
throw new FS.ErrnoError(errCode);
|
|
1759
|
+
} if (!parent.node_ops.unlink) {
|
|
1760
|
+
throw new FS.ErrnoError(63);
|
|
1761
|
+
} if (FS.isMountpoint(node)) {
|
|
1762
|
+
throw new FS.ErrnoError(10);
|
|
1763
|
+
} parent.node_ops.unlink(parent, name); FS.destroyNode(node); }, readlink: path => { var lookup = FS.lookupPath(path); var link = lookup.node; if (!link) {
|
|
1764
|
+
throw new FS.ErrnoError(44);
|
|
1765
|
+
} if (!link.node_ops.readlink) {
|
|
1766
|
+
throw new FS.ErrnoError(28);
|
|
1767
|
+
} return PATH_FS.resolve(FS.getPath(link.parent), link.node_ops.readlink(link)); }, stat: (path, dontFollow) => { var lookup = FS.lookupPath(path, { follow: !dontFollow }); var node = lookup.node; if (!node) {
|
|
1768
|
+
throw new FS.ErrnoError(44);
|
|
1769
|
+
} if (!node.node_ops.getattr) {
|
|
1770
|
+
throw new FS.ErrnoError(63);
|
|
1771
|
+
} return node.node_ops.getattr(node); }, lstat: path => { return FS.stat(path, true); }, chmod: (path, mode, dontFollow) => { var node; if (typeof path === "string") {
|
|
1772
|
+
var lookup = FS.lookupPath(path, { follow: !dontFollow });
|
|
1773
|
+
node = lookup.node;
|
|
1774
|
+
}
|
|
1775
|
+
else {
|
|
1776
|
+
node = path;
|
|
1777
|
+
} if (!node.node_ops.setattr) {
|
|
1778
|
+
throw new FS.ErrnoError(63);
|
|
1779
|
+
} node.node_ops.setattr(node, { mode: mode & 4095 | node.mode & ~4095, timestamp: Date.now() }); }, lchmod: (path, mode) => { FS.chmod(path, mode, true); }, fchmod: (fd, mode) => { var stream = FS.getStream(fd); if (!stream) {
|
|
1780
|
+
throw new FS.ErrnoError(8);
|
|
1781
|
+
} FS.chmod(stream.node, mode); }, chown: (path, uid, gid, dontFollow) => { var node; if (typeof path === "string") {
|
|
1782
|
+
var lookup = FS.lookupPath(path, { follow: !dontFollow });
|
|
1783
|
+
node = lookup.node;
|
|
1784
|
+
}
|
|
1785
|
+
else {
|
|
1786
|
+
node = path;
|
|
1787
|
+
} if (!node.node_ops.setattr) {
|
|
1788
|
+
throw new FS.ErrnoError(63);
|
|
1789
|
+
} node.node_ops.setattr(node, { timestamp: Date.now() }); }, lchown: (path, uid, gid) => { FS.chown(path, uid, gid, true); }, fchown: (fd, uid, gid) => { var stream = FS.getStream(fd); if (!stream) {
|
|
1790
|
+
throw new FS.ErrnoError(8);
|
|
1791
|
+
} FS.chown(stream.node, uid, gid); }, truncate: (path, len) => { if (len < 0) {
|
|
1792
|
+
throw new FS.ErrnoError(28);
|
|
1793
|
+
} var node; if (typeof path === "string") {
|
|
1794
|
+
var lookup = FS.lookupPath(path, { follow: true });
|
|
1795
|
+
node = lookup.node;
|
|
1796
|
+
}
|
|
1797
|
+
else {
|
|
1798
|
+
node = path;
|
|
1799
|
+
} if (!node.node_ops.setattr) {
|
|
1800
|
+
throw new FS.ErrnoError(63);
|
|
1801
|
+
} if (FS.isDir(node.mode)) {
|
|
1802
|
+
throw new FS.ErrnoError(31);
|
|
1803
|
+
} if (!FS.isFile(node.mode)) {
|
|
1804
|
+
throw new FS.ErrnoError(28);
|
|
1805
|
+
} var errCode = FS.nodePermissions(node, "w"); if (errCode) {
|
|
1806
|
+
throw new FS.ErrnoError(errCode);
|
|
1807
|
+
} node.node_ops.setattr(node, { size: len, timestamp: Date.now() }); }, ftruncate: (fd, len) => { var stream = FS.getStream(fd); if (!stream) {
|
|
1808
|
+
throw new FS.ErrnoError(8);
|
|
1809
|
+
} if ((stream.flags & 2097155) === 0) {
|
|
1810
|
+
throw new FS.ErrnoError(28);
|
|
1811
|
+
} FS.truncate(stream.node, len); }, utime: (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: (path, flags, mode, fd_start, fd_end) => { if (path === "") {
|
|
1812
|
+
throw new FS.ErrnoError(44);
|
|
1813
|
+
} flags = typeof flags === "string" ? FS.modeStringToFlags(flags) : flags; mode = typeof mode === "undefined" ? 438 : mode; if (flags & 64) {
|
|
1814
|
+
mode = mode & 4095 | 32768;
|
|
1815
|
+
}
|
|
1816
|
+
else {
|
|
1817
|
+
mode = 0;
|
|
1818
|
+
} var node; if (typeof path === "object") {
|
|
1819
|
+
node = path;
|
|
1820
|
+
}
|
|
1821
|
+
else {
|
|
1822
|
+
path = PATH.normalize(path);
|
|
1823
|
+
try {
|
|
1824
|
+
var lookup = FS.lookupPath(path, { follow: !(flags & 131072) });
|
|
1825
|
+
node = lookup.node;
|
|
1826
|
+
}
|
|
1827
|
+
catch (e) { }
|
|
1828
|
+
} var created = false; if (flags & 64) {
|
|
1829
|
+
if (node) {
|
|
1830
|
+
if (flags & 128) {
|
|
1831
|
+
throw new FS.ErrnoError(20);
|
|
1832
|
+
}
|
|
1833
|
+
}
|
|
1834
|
+
else {
|
|
1835
|
+
node = FS.mknod(path, mode, 0);
|
|
1836
|
+
created = true;
|
|
1837
|
+
}
|
|
1838
|
+
} if (!node) {
|
|
1839
|
+
throw new FS.ErrnoError(44);
|
|
1840
|
+
} if (FS.isChrdev(node.mode)) {
|
|
1841
|
+
flags &= ~512;
|
|
1842
|
+
} if (flags & 65536 && !FS.isDir(node.mode)) {
|
|
1843
|
+
throw new FS.ErrnoError(54);
|
|
1844
|
+
} if (!created) {
|
|
1845
|
+
var errCode = FS.mayOpen(node, flags);
|
|
1846
|
+
if (errCode) {
|
|
1847
|
+
throw new FS.ErrnoError(errCode);
|
|
1848
|
+
}
|
|
1849
|
+
} if (flags & 512) {
|
|
1850
|
+
FS.truncate(node, 0);
|
|
1851
|
+
} flags &= ~(128 | 512 | 131072); var stream = FS.createStream({ node: node, path: FS.getPath(node), flags: flags, seekable: true, position: 0, stream_ops: node.stream_ops, ungotten: [], error: false }, fd_start, fd_end); if (stream.stream_ops.open) {
|
|
1852
|
+
stream.stream_ops.open(stream);
|
|
1853
|
+
} if (Module["logReadFiles"] && !(flags & 1)) {
|
|
1854
|
+
if (!FS.readFiles)
|
|
1855
|
+
FS.readFiles = {};
|
|
1856
|
+
if (!(path in FS.readFiles)) {
|
|
1857
|
+
FS.readFiles[path] = 1;
|
|
1858
|
+
}
|
|
1859
|
+
} return stream; }, close: stream => { if (FS.isClosed(stream)) {
|
|
1860
|
+
throw new FS.ErrnoError(8);
|
|
1861
|
+
} if (stream.getdents)
|
|
1862
|
+
stream.getdents = null; try {
|
|
1863
|
+
if (stream.stream_ops.close) {
|
|
1864
|
+
stream.stream_ops.close(stream);
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
catch (e) {
|
|
1868
|
+
throw e;
|
|
1869
|
+
}
|
|
1870
|
+
finally {
|
|
1871
|
+
FS.closeStream(stream.fd);
|
|
1872
|
+
} stream.fd = null; }, isClosed: stream => { return stream.fd === null; }, llseek: (stream, offset, whence) => { if (FS.isClosed(stream)) {
|
|
1873
|
+
throw new FS.ErrnoError(8);
|
|
1874
|
+
} if (!stream.seekable || !stream.stream_ops.llseek) {
|
|
1875
|
+
throw new FS.ErrnoError(70);
|
|
1876
|
+
} if (whence != 0 && whence != 1 && whence != 2) {
|
|
1877
|
+
throw new FS.ErrnoError(28);
|
|
1878
|
+
} stream.position = stream.stream_ops.llseek(stream, offset, whence); stream.ungotten = []; return stream.position; }, read: (stream, buffer, offset, length, position) => { if (length < 0 || position < 0) {
|
|
1879
|
+
throw new FS.ErrnoError(28);
|
|
1880
|
+
} if (FS.isClosed(stream)) {
|
|
1881
|
+
throw new FS.ErrnoError(8);
|
|
1882
|
+
} if ((stream.flags & 2097155) === 1) {
|
|
1883
|
+
throw new FS.ErrnoError(8);
|
|
1884
|
+
} if (FS.isDir(stream.node.mode)) {
|
|
1885
|
+
throw new FS.ErrnoError(31);
|
|
1886
|
+
} if (!stream.stream_ops.read) {
|
|
1887
|
+
throw new FS.ErrnoError(28);
|
|
1888
|
+
} var seeking = typeof position !== "undefined"; if (!seeking) {
|
|
1889
|
+
position = stream.position;
|
|
1890
|
+
}
|
|
1891
|
+
else if (!stream.seekable) {
|
|
1892
|
+
throw new FS.ErrnoError(70);
|
|
1893
|
+
} var bytesRead = stream.stream_ops.read(stream, buffer, offset, length, position); if (!seeking)
|
|
1894
|
+
stream.position += bytesRead; return bytesRead; }, write: (stream, buffer, offset, length, position, canOwn) => { if (length < 0 || position < 0) {
|
|
1895
|
+
throw new FS.ErrnoError(28);
|
|
1896
|
+
} if (FS.isClosed(stream)) {
|
|
1897
|
+
throw new FS.ErrnoError(8);
|
|
1898
|
+
} if ((stream.flags & 2097155) === 0) {
|
|
1899
|
+
throw new FS.ErrnoError(8);
|
|
1900
|
+
} if (FS.isDir(stream.node.mode)) {
|
|
1901
|
+
throw new FS.ErrnoError(31);
|
|
1902
|
+
} if (!stream.stream_ops.write) {
|
|
1903
|
+
throw new FS.ErrnoError(28);
|
|
1904
|
+
} if (stream.seekable && stream.flags & 1024) {
|
|
1905
|
+
FS.llseek(stream, 0, 2);
|
|
1906
|
+
} var seeking = typeof position !== "undefined"; if (!seeking) {
|
|
1907
|
+
position = stream.position;
|
|
1908
|
+
}
|
|
1909
|
+
else if (!stream.seekable) {
|
|
1910
|
+
throw new FS.ErrnoError(70);
|
|
1911
|
+
} var bytesWritten = stream.stream_ops.write(stream, buffer, offset, length, position, canOwn); if (!seeking)
|
|
1912
|
+
stream.position += bytesWritten; return bytesWritten; }, allocate: (stream, offset, length) => { if (FS.isClosed(stream)) {
|
|
1913
|
+
throw new FS.ErrnoError(8);
|
|
1914
|
+
} if (offset < 0 || length <= 0) {
|
|
1915
|
+
throw new FS.ErrnoError(28);
|
|
1916
|
+
} if ((stream.flags & 2097155) === 0) {
|
|
1917
|
+
throw new FS.ErrnoError(8);
|
|
1918
|
+
} if (!FS.isFile(stream.node.mode) && !FS.isDir(stream.node.mode)) {
|
|
1919
|
+
throw new FS.ErrnoError(43);
|
|
1920
|
+
} if (!stream.stream_ops.allocate) {
|
|
1921
|
+
throw new FS.ErrnoError(138);
|
|
1922
|
+
} stream.stream_ops.allocate(stream, offset, length); }, mmap: (stream, address, length, position, prot, flags) => { if ((prot & 2) !== 0 && (flags & 2) === 0 && (stream.flags & 2097155) !== 2) {
|
|
1923
|
+
throw new FS.ErrnoError(2);
|
|
1924
|
+
} if ((stream.flags & 2097155) === 1) {
|
|
1925
|
+
throw new FS.ErrnoError(2);
|
|
1926
|
+
} if (!stream.stream_ops.mmap) {
|
|
1927
|
+
throw new FS.ErrnoError(43);
|
|
1928
|
+
} return stream.stream_ops.mmap(stream, address, length, position, prot, flags); }, msync: (stream, buffer, offset, length, mmapFlags) => { if (!stream || !stream.stream_ops.msync) {
|
|
1929
|
+
return 0;
|
|
1930
|
+
} return stream.stream_ops.msync(stream, buffer, offset, length, mmapFlags); }, munmap: stream => 0, ioctl: (stream, cmd, arg) => { if (!stream.stream_ops.ioctl) {
|
|
1931
|
+
throw new FS.ErrnoError(59);
|
|
1932
|
+
} return stream.stream_ops.ioctl(stream, cmd, arg); }, readFile: (path, opts = {}) => { opts.flags = opts.flags || 0; opts.encoding = opts.encoding || "binary"; if (opts.encoding !== "utf8" && opts.encoding !== "binary") {
|
|
1933
|
+
throw new Error('Invalid encoding type "' + opts.encoding + '"');
|
|
1934
|
+
} var ret; var stream = FS.open(path, opts.flags); var stat = FS.stat(path); var length = stat.size; var buf = new Uint8Array(length); FS.read(stream, buf, 0, length, 0); if (opts.encoding === "utf8") {
|
|
1935
|
+
ret = UTF8ArrayToString(buf, 0);
|
|
1936
|
+
}
|
|
1937
|
+
else if (opts.encoding === "binary") {
|
|
1938
|
+
ret = buf;
|
|
1939
|
+
} FS.close(stream); return ret; }, writeFile: (path, data, opts = {}) => { opts.flags = opts.flags || 577; var stream = FS.open(path, opts.flags, opts.mode); if (typeof data === "string") {
|
|
1940
|
+
var buf = new Uint8Array(lengthBytesUTF8(data) + 1);
|
|
1941
|
+
var actualNumBytes = stringToUTF8Array(data, buf, 0, buf.length);
|
|
1942
|
+
FS.write(stream, buf, 0, actualNumBytes, undefined, opts.canOwn);
|
|
1943
|
+
}
|
|
1944
|
+
else if (ArrayBuffer.isView(data)) {
|
|
1945
|
+
FS.write(stream, data, 0, data.byteLength, undefined, opts.canOwn);
|
|
1946
|
+
}
|
|
1947
|
+
else {
|
|
1948
|
+
throw new Error("Unsupported data type");
|
|
1949
|
+
} FS.close(stream); }, cwd: () => FS.currentPath, chdir: path => { var lookup = FS.lookupPath(path, { follow: true }); if (lookup.node === null) {
|
|
1950
|
+
throw new FS.ErrnoError(44);
|
|
1951
|
+
} if (!FS.isDir(lookup.node.mode)) {
|
|
1952
|
+
throw new FS.ErrnoError(54);
|
|
1953
|
+
} var errCode = FS.nodePermissions(lookup.node, "x"); if (errCode) {
|
|
1954
|
+
throw new FS.ErrnoError(errCode);
|
|
1955
|
+
} FS.currentPath = lookup.path; }, createDefaultDirectories: () => { FS.mkdir("/tmp"); FS.mkdir("/home"); FS.mkdir("/home/web_user"); }, createDefaultDevices: () => { FS.mkdir("/dev"); FS.registerDevice(FS.makedev(1, 3), { read: () => 0, write: (stream, buffer, offset, length, pos) => length }); FS.mkdev("/dev/null", FS.makedev(1, 3)); TTY.register(FS.makedev(5, 0), TTY.default_tty_ops); TTY.register(FS.makedev(6, 0), TTY.default_tty1_ops); FS.mkdev("/dev/tty", FS.makedev(5, 0)); FS.mkdev("/dev/tty1", FS.makedev(6, 0)); var random_device = getRandomDevice(); FS.createDevice("/dev", "random", random_device); FS.createDevice("/dev", "urandom", random_device); FS.mkdir("/dev/shm"); FS.mkdir("/dev/shm/tmp"); }, createSpecialDirectories: () => { FS.mkdir("/proc"); var proc_self = FS.mkdir("/proc/self"); FS.mkdir("/proc/self/fd"); FS.mount({ mount: () => { var node = FS.createNode(proc_self, "fd", 16384 | 511, 73); node.node_ops = { lookup: (parent, name) => { var fd = +name; var stream = FS.getStream(fd); if (!stream)
|
|
1956
|
+
throw new FS.ErrnoError(8); var ret = { parent: null, mount: { mountpoint: "fake" }, node_ops: { readlink: () => stream.path } }; ret.parent = ret; return ret; } }; return node; } }, {}, "/proc/self/fd"); }, createStandardStreams: () => { if (Module["stdin"]) {
|
|
1957
|
+
FS.createDevice("/dev", "stdin", Module["stdin"]);
|
|
1958
|
+
}
|
|
1959
|
+
else {
|
|
1960
|
+
FS.symlink("/dev/tty", "/dev/stdin");
|
|
1961
|
+
} if (Module["stdout"]) {
|
|
1962
|
+
FS.createDevice("/dev", "stdout", null, Module["stdout"]);
|
|
1963
|
+
}
|
|
1964
|
+
else {
|
|
1965
|
+
FS.symlink("/dev/tty", "/dev/stdout");
|
|
1966
|
+
} if (Module["stderr"]) {
|
|
1967
|
+
FS.createDevice("/dev", "stderr", null, Module["stderr"]);
|
|
1968
|
+
}
|
|
1969
|
+
else {
|
|
1970
|
+
FS.symlink("/dev/tty1", "/dev/stderr");
|
|
1971
|
+
} var stdin = FS.open("/dev/stdin", 0); var stdout = FS.open("/dev/stdout", 1); var stderr = FS.open("/dev/stderr", 1); assert(stdin.fd === 0, "invalid handle for stdin (" + stdin.fd + ")"); assert(stdout.fd === 1, "invalid handle for stdout (" + stdout.fd + ")"); assert(stderr.fd === 2, "invalid handle for stderr (" + stderr.fd + ")"); }, ensureErrnoError: () => { if (FS.ErrnoError)
|
|
1972
|
+
return; FS.ErrnoError = function ErrnoError(errno, node) { this.node = node; this.setErrno = function (errno) { this.errno = errno; for (var key in ERRNO_CODES) {
|
|
1973
|
+
if (ERRNO_CODES[key] === errno) {
|
|
1974
|
+
this.code = key;
|
|
1975
|
+
break;
|
|
1976
|
+
}
|
|
1977
|
+
} }; this.setErrno(errno); this.message = ERRNO_MESSAGES[errno]; if (this.stack) {
|
|
1978
|
+
Object.defineProperty(this, "stack", { value: (new Error).stack, writable: true });
|
|
1979
|
+
this.stack = demangleAll(this.stack);
|
|
1980
|
+
} }; FS.ErrnoError.prototype = new Error; FS.ErrnoError.prototype.constructor = FS.ErrnoError; [44].forEach(code => { FS.genericErrors[code] = new FS.ErrnoError(code); FS.genericErrors[code].stack = "<generic error, no stack>"; }); }, staticInit: () => { FS.ensureErrnoError(); FS.nameTable = new Array(4096); FS.mount(MEMFS, {}, "/"); FS.createDefaultDirectories(); FS.createDefaultDevices(); FS.createSpecialDirectories(); FS.filesystems = { "MEMFS": MEMFS, "NODEFS": NODEFS }; }, init: (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; FS.ensureErrnoError(); Module["stdin"] = input || Module["stdin"]; Module["stdout"] = output || Module["stdout"]; Module["stderr"] = error || Module["stderr"]; FS.createStandardStreams(); }, quit: () => { FS.init.initialized = false; ___stdio_exit(); for (var i = 0; i < FS.streams.length; i++) {
|
|
1981
|
+
var stream = FS.streams[i];
|
|
1982
|
+
if (!stream) {
|
|
1983
|
+
continue;
|
|
1984
|
+
}
|
|
1985
|
+
FS.close(stream);
|
|
1986
|
+
} }, getMode: (canRead, canWrite) => { var mode = 0; if (canRead)
|
|
1987
|
+
mode |= 292 | 73; if (canWrite)
|
|
1988
|
+
mode |= 146; return mode; }, findObject: (path, dontResolveLastLink) => { var ret = FS.analyzePath(path, dontResolveLastLink); if (ret.exists) {
|
|
1989
|
+
return ret.object;
|
|
1990
|
+
}
|
|
1991
|
+
else {
|
|
1992
|
+
return null;
|
|
1993
|
+
} }, analyzePath: (path, dontResolveLastLink) => { try {
|
|
1994
|
+
var lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
|
|
1995
|
+
path = lookup.path;
|
|
1996
|
+
}
|
|
1997
|
+
catch (e) { } var ret = { isRoot: false, exists: false, error: 0, name: null, path: null, object: null, parentExists: false, parentPath: null, parentObject: null }; try {
|
|
1998
|
+
var lookup = FS.lookupPath(path, { parent: true });
|
|
1999
|
+
ret.parentExists = true;
|
|
2000
|
+
ret.parentPath = lookup.path;
|
|
2001
|
+
ret.parentObject = lookup.node;
|
|
2002
|
+
ret.name = PATH.basename(path);
|
|
2003
|
+
lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
|
|
2004
|
+
ret.exists = true;
|
|
2005
|
+
ret.path = lookup.path;
|
|
2006
|
+
ret.object = lookup.node;
|
|
2007
|
+
ret.name = lookup.node.name;
|
|
2008
|
+
ret.isRoot = lookup.path === "/";
|
|
2009
|
+
}
|
|
2010
|
+
catch (e) {
|
|
2011
|
+
ret.error = e.errno;
|
|
2012
|
+
} return ret; }, createPath: (parent, path, canRead, canWrite) => { parent = typeof parent === "string" ? parent : FS.getPath(parent); var parts = path.split("/").reverse(); while (parts.length) {
|
|
2013
|
+
var part = parts.pop();
|
|
2014
|
+
if (!part)
|
|
2015
|
+
continue;
|
|
2016
|
+
var current = PATH.join2(parent, part);
|
|
2017
|
+
try {
|
|
2018
|
+
FS.mkdir(current);
|
|
2019
|
+
}
|
|
2020
|
+
catch (e) { }
|
|
2021
|
+
parent = current;
|
|
2022
|
+
} return current; }, createFile: (parent, name, properties, canRead, canWrite) => { var path = PATH.join2(typeof parent === "string" ? parent : FS.getPath(parent), name); var mode = FS.getMode(canRead, canWrite); return FS.create(path, mode); }, createDataFile: (parent, name, data, canRead, canWrite, canOwn) => { var path = name; if (parent) {
|
|
2023
|
+
parent = typeof parent === "string" ? parent : FS.getPath(parent);
|
|
2024
|
+
path = name ? PATH.join2(parent, name) : parent;
|
|
2025
|
+
} var mode = FS.getMode(canRead, canWrite); var node = FS.create(path, mode); if (data) {
|
|
2026
|
+
if (typeof data === "string") {
|
|
2027
|
+
var arr = new Array(data.length);
|
|
2028
|
+
for (var i = 0, len = data.length; i < len; ++i)
|
|
2029
|
+
arr[i] = data.charCodeAt(i);
|
|
2030
|
+
data = arr;
|
|
2031
|
+
}
|
|
2032
|
+
FS.chmod(node, mode | 146);
|
|
2033
|
+
var stream = FS.open(node, 577);
|
|
2034
|
+
FS.write(stream, data, 0, data.length, 0, canOwn);
|
|
2035
|
+
FS.close(stream);
|
|
2036
|
+
FS.chmod(node, mode);
|
|
2037
|
+
} return node; }, createDevice: (parent, name, input, output) => { var path = PATH.join2(typeof parent === "string" ? parent : FS.getPath(parent), name); var mode = FS.getMode(!!input, !!output); if (!FS.createDevice.major)
|
|
2038
|
+
FS.createDevice.major = 64; var dev = FS.makedev(FS.createDevice.major++, 0); FS.registerDevice(dev, { open: stream => { stream.seekable = false; }, close: stream => { if (output && output.buffer && output.buffer.length) {
|
|
2039
|
+
output(10);
|
|
2040
|
+
} }, read: (stream, buffer, offset, length, pos) => { var bytesRead = 0; for (var i = 0; i < length; i++) {
|
|
2041
|
+
var result;
|
|
2042
|
+
try {
|
|
2043
|
+
result = input();
|
|
2044
|
+
}
|
|
2045
|
+
catch (e) {
|
|
2046
|
+
throw new FS.ErrnoError(29);
|
|
2047
|
+
}
|
|
2048
|
+
if (result === undefined && bytesRead === 0) {
|
|
2049
|
+
throw new FS.ErrnoError(6);
|
|
2050
|
+
}
|
|
2051
|
+
if (result === null || result === undefined)
|
|
2052
|
+
break;
|
|
2053
|
+
bytesRead++;
|
|
2054
|
+
buffer[offset + i] = result;
|
|
2055
|
+
} if (bytesRead) {
|
|
2056
|
+
stream.node.timestamp = Date.now();
|
|
2057
|
+
} return bytesRead; }, write: (stream, buffer, offset, length, pos) => { for (var i = 0; i < length; i++) {
|
|
2058
|
+
try {
|
|
2059
|
+
output(buffer[offset + i]);
|
|
2060
|
+
}
|
|
2061
|
+
catch (e) {
|
|
2062
|
+
throw new FS.ErrnoError(29);
|
|
2063
|
+
}
|
|
2064
|
+
} if (length) {
|
|
2065
|
+
stream.node.timestamp = Date.now();
|
|
2066
|
+
} return i; } }); return FS.mkdev(path, mode, dev); }, forceLoadFile: obj => { if (obj.isDevice || obj.isFolder || obj.link || obj.contents)
|
|
2067
|
+
return true; if (typeof XMLHttpRequest !== "undefined") {
|
|
2068
|
+
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.");
|
|
2069
|
+
}
|
|
2070
|
+
else if (read_) {
|
|
2071
|
+
try {
|
|
2072
|
+
obj.contents = intArrayFromString(read_(obj.url), true);
|
|
2073
|
+
obj.usedBytes = obj.contents.length;
|
|
2074
|
+
}
|
|
2075
|
+
catch (e) {
|
|
2076
|
+
throw new FS.ErrnoError(29);
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
else {
|
|
2080
|
+
throw new Error("Cannot load without read() or XMLHttpRequest.");
|
|
2081
|
+
} }, createLazyFile: (parent, name, url, canRead, canWrite) => { function LazyUint8Array() { this.lengthKnown = false; this.chunks = []; } LazyUint8Array.prototype.get = function LazyUint8Array_get(idx) { if (idx > this.length - 1 || idx < 0) {
|
|
2082
|
+
return undefined;
|
|
2083
|
+
} var chunkOffset = idx % this.chunkSize; var chunkNum = idx / this.chunkSize | 0; return this.getter(chunkNum)[chunkOffset]; }; LazyUint8Array.prototype.setDataGetter = function LazyUint8Array_setDataGetter(getter) { this.getter = getter; }; LazyUint8Array.prototype.cacheLength = function LazyUint8Array_cacheLength() { var xhr = new XMLHttpRequest; xhr.open("HEAD", url, false); xhr.send(null); if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304))
|
|
2084
|
+
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 usesGzip = (header = xhr.getResponseHeader("Content-Encoding")) && header === "gzip"; var chunkSize = 1024 * 1024; if (!hasByteServing)
|
|
2085
|
+
chunkSize = datalength; var doXHR = (from, to) => { if (from > to)
|
|
2086
|
+
throw new Error("invalid range (" + from + ", " + to + ") or no bytes requested!"); if (to > datalength - 1)
|
|
2087
|
+
throw new Error("only " + datalength + " bytes available! programmer error!"); var xhr = new XMLHttpRequest; xhr.open("GET", url, false); if (datalength !== chunkSize)
|
|
2088
|
+
xhr.setRequestHeader("Range", "bytes=" + from + "-" + to); if (typeof Uint8Array != "undefined")
|
|
2089
|
+
xhr.responseType = "arraybuffer"; if (xhr.overrideMimeType) {
|
|
2090
|
+
xhr.overrideMimeType("text/plain; charset=x-user-defined");
|
|
2091
|
+
} xhr.send(null); if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304))
|
|
2092
|
+
throw new Error("Couldn't load " + url + ". Status: " + xhr.status); if (xhr.response !== undefined) {
|
|
2093
|
+
return new Uint8Array(xhr.response || []);
|
|
2094
|
+
}
|
|
2095
|
+
else {
|
|
2096
|
+
return intArrayFromString(xhr.responseText || "", true);
|
|
2097
|
+
} }; var lazyArray = this; lazyArray.setDataGetter(chunkNum => { var start = chunkNum * chunkSize; var end = (chunkNum + 1) * chunkSize - 1; end = Math.min(end, datalength - 1); if (typeof lazyArray.chunks[chunkNum] === "undefined") {
|
|
2098
|
+
lazyArray.chunks[chunkNum] = doXHR(start, end);
|
|
2099
|
+
} if (typeof lazyArray.chunks[chunkNum] === "undefined")
|
|
2100
|
+
throw new Error("doXHR failed!"); return lazyArray.chunks[chunkNum]; }); if (usesGzip || !datalength) {
|
|
2101
|
+
chunkSize = datalength = 1;
|
|
2102
|
+
datalength = this.getter(0).length;
|
|
2103
|
+
chunkSize = datalength;
|
|
2104
|
+
out("LazyFiles on gzip forces download of the whole file when length is accessed");
|
|
2105
|
+
} this._length = datalength; this._chunkSize = chunkSize; this.lengthKnown = true; }; if (typeof XMLHttpRequest !== "undefined") {
|
|
2106
|
+
if (!ENVIRONMENT_IS_WORKER)
|
|
2107
|
+
throw "Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";
|
|
2108
|
+
var lazyArray = new LazyUint8Array;
|
|
2109
|
+
Object.defineProperties(lazyArray, { length: { get: function () { if (!this.lengthKnown) {
|
|
2110
|
+
this.cacheLength();
|
|
2111
|
+
} return this._length; } }, chunkSize: { get: function () { if (!this.lengthKnown) {
|
|
2112
|
+
this.cacheLength();
|
|
2113
|
+
} return this._chunkSize; } } });
|
|
2114
|
+
var properties = { isDevice: false, contents: lazyArray };
|
|
2115
|
+
}
|
|
2116
|
+
else {
|
|
2117
|
+
var properties = { isDevice: false, url: url };
|
|
2118
|
+
} var node = FS.createFile(parent, name, properties, canRead, canWrite); if (properties.contents) {
|
|
2119
|
+
node.contents = properties.contents;
|
|
2120
|
+
}
|
|
2121
|
+
else if (properties.url) {
|
|
2122
|
+
node.contents = null;
|
|
2123
|
+
node.url = properties.url;
|
|
2124
|
+
} Object.defineProperties(node, { usedBytes: { get: function () { return this.contents.length; } } }); var stream_ops = {}; var keys = Object.keys(node.stream_ops); keys.forEach(key => { var fn = node.stream_ops[key]; stream_ops[key] = function forceLoadLazyFile() { FS.forceLoadFile(node); return fn.apply(null, arguments); }; }); stream_ops.read = ((stream, buffer, offset, length, position) => { FS.forceLoadFile(node); var contents = stream.node.contents; if (position >= contents.length)
|
|
2125
|
+
return 0; var size = Math.min(contents.length - position, length); assert(size >= 0); if (contents.slice) {
|
|
2126
|
+
for (var i = 0; i < size; i++) {
|
|
2127
|
+
buffer[offset + i] = contents[position + i];
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
2130
|
+
else {
|
|
2131
|
+
for (var i = 0; i < size; i++) {
|
|
2132
|
+
buffer[offset + i] = contents.get(position + i);
|
|
2133
|
+
}
|
|
2134
|
+
} return size; }); node.stream_ops = stream_ops; return node; }, createPreloadedFile: (parent, name, url, canRead, canWrite, onload, onerror, dontCreateFile, canOwn, preFinish) => { var fullname = name ? PATH_FS.resolve(PATH.join2(parent, name)) : parent; var dep = getUniqueRunDependency("cp " + fullname); function processData(byteArray) { function finish(byteArray) { if (preFinish)
|
|
2135
|
+
preFinish(); if (!dontCreateFile) {
|
|
2136
|
+
FS.createDataFile(parent, name, byteArray, canRead, canWrite, canOwn);
|
|
2137
|
+
} if (onload)
|
|
2138
|
+
onload(); removeRunDependency(dep); } if (Browser.handledByPreloadPlugin(byteArray, fullname, finish, () => { if (onerror)
|
|
2139
|
+
onerror(); removeRunDependency(dep); })) {
|
|
2140
|
+
return;
|
|
2141
|
+
} finish(byteArray); } addRunDependency(dep); if (typeof url == "string") {
|
|
2142
|
+
asyncLoad(url, byteArray => processData(byteArray), onerror);
|
|
2143
|
+
}
|
|
2144
|
+
else {
|
|
2145
|
+
processData(url);
|
|
2146
|
+
} }, indexedDB: () => { return window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; }, DB_NAME: () => { return "EM_FS_" + window.location.pathname; }, DB_VERSION: 20, DB_STORE_NAME: "FILE_DATA", saveFilesToDB: (paths, onload, onerror) => { onload = onload || (() => { }); onerror = onerror || (() => { }); var indexedDB = FS.indexedDB(); try {
|
|
2147
|
+
var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
|
|
2148
|
+
}
|
|
2149
|
+
catch (e) {
|
|
2150
|
+
return onerror(e);
|
|
2151
|
+
} openRequest.onupgradeneeded = (() => { out("creating db"); var db = openRequest.result; db.createObjectStore(FS.DB_STORE_NAME); }); openRequest.onsuccess = (() => { var db = openRequest.result; var transaction = db.transaction([FS.DB_STORE_NAME], "readwrite"); var files = transaction.objectStore(FS.DB_STORE_NAME); var ok = 0, fail = 0, total = paths.length; function finish() { if (fail == 0)
|
|
2152
|
+
onload();
|
|
2153
|
+
else
|
|
2154
|
+
onerror(); } paths.forEach(path => { var putRequest = files.put(FS.analyzePath(path).object.contents, path); putRequest.onsuccess = (() => { ok++; if (ok + fail == total)
|
|
2155
|
+
finish(); }); putRequest.onerror = (() => { fail++; if (ok + fail == total)
|
|
2156
|
+
finish(); }); }); transaction.onerror = onerror; }); openRequest.onerror = onerror; }, loadFilesFromDB: (paths, onload, onerror) => { onload = onload || (() => { }); onerror = onerror || (() => { }); var indexedDB = FS.indexedDB(); try {
|
|
2157
|
+
var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
|
|
2158
|
+
}
|
|
2159
|
+
catch (e) {
|
|
2160
|
+
return onerror(e);
|
|
2161
|
+
} openRequest.onupgradeneeded = onerror; openRequest.onsuccess = (() => { var db = openRequest.result; try {
|
|
2162
|
+
var transaction = db.transaction([FS.DB_STORE_NAME], "readonly");
|
|
2163
|
+
}
|
|
2164
|
+
catch (e) {
|
|
2165
|
+
onerror(e);
|
|
2166
|
+
return;
|
|
2167
|
+
} var files = transaction.objectStore(FS.DB_STORE_NAME); var ok = 0, fail = 0, total = paths.length; function finish() { if (fail == 0)
|
|
2168
|
+
onload();
|
|
2169
|
+
else
|
|
2170
|
+
onerror(); } paths.forEach(path => { var getRequest = files.get(path); getRequest.onsuccess = (() => { if (FS.analyzePath(path).exists) {
|
|
2171
|
+
FS.unlink(path);
|
|
2172
|
+
} FS.createDataFile(PATH.dirname(path), PATH.basename(path), getRequest.result, true, true, true); ok++; if (ok + fail == total)
|
|
2173
|
+
finish(); }); getRequest.onerror = (() => { fail++; if (ok + fail == total)
|
|
2174
|
+
finish(); }); }); transaction.onerror = onerror; }); openRequest.onerror = onerror; }, absolutePath: () => { abort("FS.absolutePath has been removed; use PATH_FS.resolve instead"); }, createFolder: () => { abort("FS.createFolder has been removed; use FS.mkdir instead"); }, createLink: () => { abort("FS.createLink has been removed; use FS.symlink instead"); }, joinPath: () => { abort("FS.joinPath has been removed; use PATH.join instead"); }, mmapAlloc: () => { abort("FS.mmapAlloc has been replaced by the top level function mmapAlloc"); }, standardizePath: () => { abort("FS.standardizePath has been removed; use PATH.normalize instead"); } };
|
|
2175
|
+
var SYSCALLS = { mappings: {}, DEFAULT_POLLMASK: 5, calculateAt: function (dirfd, path, allowEmpty) { if (path[0] === "/") {
|
|
2176
|
+
return path;
|
|
2177
|
+
} var dir; if (dirfd === -100) {
|
|
2178
|
+
dir = FS.cwd();
|
|
2179
|
+
}
|
|
2180
|
+
else {
|
|
2181
|
+
var dirstream = FS.getStream(dirfd);
|
|
2182
|
+
if (!dirstream)
|
|
2183
|
+
throw new FS.ErrnoError(8);
|
|
2184
|
+
dir = dirstream.path;
|
|
2185
|
+
} if (path.length == 0) {
|
|
2186
|
+
if (!allowEmpty) {
|
|
2187
|
+
throw new FS.ErrnoError(44);
|
|
2188
|
+
}
|
|
2189
|
+
return dir;
|
|
2190
|
+
} return PATH.join2(dir, path); }, doStat: function (func, path, buf) { try {
|
|
2191
|
+
var stat = func(path);
|
|
2192
|
+
}
|
|
2193
|
+
catch (e) {
|
|
2194
|
+
if (e && e.node && PATH.normalize(path) !== PATH.normalize(FS.getPath(e.node))) {
|
|
2195
|
+
return -54;
|
|
2196
|
+
}
|
|
2197
|
+
throw e;
|
|
2198
|
+
} HEAP32[buf >> 2] = stat.dev; HEAP32[buf + 4 >> 2] = 0; HEAP32[buf + 8 >> 2] = stat.ino; HEAP32[buf + 12 >> 2] = stat.mode; HEAP32[buf + 16 >> 2] = stat.nlink; HEAP32[buf + 20 >> 2] = stat.uid; HEAP32[buf + 24 >> 2] = stat.gid; HEAP32[buf + 28 >> 2] = stat.rdev; HEAP32[buf + 32 >> 2] = 0; tempI64 = [stat.size >>> 0, (tempDouble = stat.size, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? (Math.min(+Math.floor(tempDouble / 4294967296), 4294967295) | 0) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)], HEAP32[buf + 40 >> 2] = tempI64[0], HEAP32[buf + 44 >> 2] = tempI64[1]; HEAP32[buf + 48 >> 2] = 4096; HEAP32[buf + 52 >> 2] = stat.blocks; HEAP32[buf + 56 >> 2] = stat.atime.getTime() / 1e3 | 0; HEAP32[buf + 60 >> 2] = 0; HEAP32[buf + 64 >> 2] = stat.mtime.getTime() / 1e3 | 0; HEAP32[buf + 68 >> 2] = 0; HEAP32[buf + 72 >> 2] = stat.ctime.getTime() / 1e3 | 0; HEAP32[buf + 76 >> 2] = 0; tempI64 = [stat.ino >>> 0, (tempDouble = stat.ino, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? (Math.min(+Math.floor(tempDouble / 4294967296), 4294967295) | 0) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)], HEAP32[buf + 80 >> 2] = tempI64[0], HEAP32[buf + 84 >> 2] = tempI64[1]; return 0; }, doMsync: function (addr, stream, len, flags, offset) { var buffer = HEAPU8.slice(addr, addr + len); FS.msync(stream, buffer, offset, len, flags); }, doMkdir: function (path, mode) { path = PATH.normalize(path); if (path[path.length - 1] === "/")
|
|
2199
|
+
path = path.substr(0, path.length - 1); FS.mkdir(path, mode, 0); return 0; }, doMknod: function (path, mode, dev) { switch (mode & 61440) {
|
|
2200
|
+
case 32768:
|
|
2201
|
+
case 8192:
|
|
2202
|
+
case 24576:
|
|
2203
|
+
case 4096:
|
|
2204
|
+
case 49152: break;
|
|
2205
|
+
default: return -28;
|
|
2206
|
+
} FS.mknod(path, mode, dev); return 0; }, doReadlink: function (path, buf, bufsize) { if (bufsize <= 0)
|
|
2207
|
+
return -28; var ret = FS.readlink(path); var len = Math.min(bufsize, lengthBytesUTF8(ret)); var endChar = HEAP8[buf + len]; stringToUTF8(ret, buf, bufsize + 1); HEAP8[buf + len] = endChar; return len; }, doAccess: function (path, amode) { if (amode & ~7) {
|
|
2208
|
+
return -28;
|
|
2209
|
+
} var lookup = FS.lookupPath(path, { follow: true }); var node = lookup.node; if (!node) {
|
|
2210
|
+
return -44;
|
|
2211
|
+
} var perms = ""; if (amode & 4)
|
|
2212
|
+
perms += "r"; if (amode & 2)
|
|
2213
|
+
perms += "w"; if (amode & 1)
|
|
2214
|
+
perms += "x"; if (perms && FS.nodePermissions(node, perms)) {
|
|
2215
|
+
return -2;
|
|
2216
|
+
} return 0; }, doDup: function (path, flags, suggestFD) { var suggest = FS.getStream(suggestFD); if (suggest)
|
|
2217
|
+
FS.close(suggest); return FS.open(path, flags, 0, suggestFD, suggestFD).fd; }, doReadv: function (stream, iov, iovcnt, offset) { var ret = 0; for (var i = 0; i < iovcnt; i++) {
|
|
2218
|
+
var ptr = HEAP32[iov + i * 8 >> 2];
|
|
2219
|
+
var len = HEAP32[iov + (i * 8 + 4) >> 2];
|
|
2220
|
+
var curr = FS.read(stream, HEAP8, ptr, len, offset);
|
|
2221
|
+
if (curr < 0)
|
|
2222
|
+
return -1;
|
|
2223
|
+
ret += curr;
|
|
2224
|
+
if (curr < len)
|
|
2225
|
+
break;
|
|
2226
|
+
} return ret; }, doWritev: function (stream, iov, iovcnt, offset) { var ret = 0; for (var i = 0; i < iovcnt; i++) {
|
|
2227
|
+
var ptr = HEAP32[iov + i * 8 >> 2];
|
|
2228
|
+
var len = HEAP32[iov + (i * 8 + 4) >> 2];
|
|
2229
|
+
var curr = FS.write(stream, HEAP8, ptr, len, offset);
|
|
2230
|
+
if (curr < 0)
|
|
2231
|
+
return -1;
|
|
2232
|
+
ret += curr;
|
|
2233
|
+
} return ret; }, varargs: undefined, get: function () { assert(SYSCALLS.varargs != undefined); SYSCALLS.varargs += 4; var ret = HEAP32[SYSCALLS.varargs - 4 >> 2]; return ret; }, getStr: function (ptr) { var ret = UTF8ToString(ptr); return ret; }, getStreamFromFD: function (fd) { var stream = FS.getStream(fd); if (!stream)
|
|
2234
|
+
throw new FS.ErrnoError(8); return stream; }, get64: function (low, high) { if (low >= 0)
|
|
2235
|
+
assert(high === 0);
|
|
2236
|
+
else
|
|
2237
|
+
assert(high === -1); return low; } };
|
|
2238
|
+
function ___syscall_fcntl64(fd, cmd, varargs) { SYSCALLS.varargs = varargs; try {
|
|
2239
|
+
var stream = SYSCALLS.getStreamFromFD(fd);
|
|
2240
|
+
switch (cmd) {
|
|
2241
|
+
case 0: {
|
|
2242
|
+
var arg = SYSCALLS.get();
|
|
2243
|
+
if (arg < 0) {
|
|
2244
|
+
return -28;
|
|
2245
|
+
}
|
|
2246
|
+
var newStream;
|
|
2247
|
+
newStream = FS.open(stream.path, stream.flags, 0, arg);
|
|
2248
|
+
return newStream.fd;
|
|
2249
|
+
}
|
|
2250
|
+
case 1:
|
|
2251
|
+
case 2: return 0;
|
|
2252
|
+
case 3: return stream.flags;
|
|
2253
|
+
case 4: {
|
|
2254
|
+
var arg = SYSCALLS.get();
|
|
2255
|
+
stream.flags |= arg;
|
|
2256
|
+
return 0;
|
|
2257
|
+
}
|
|
2258
|
+
case 5: {
|
|
2259
|
+
var arg = SYSCALLS.get();
|
|
2260
|
+
var offset = 0;
|
|
2261
|
+
HEAP16[arg + offset >> 1] = 2;
|
|
2262
|
+
return 0;
|
|
2263
|
+
}
|
|
2264
|
+
case 6:
|
|
2265
|
+
case 7: return 0;
|
|
2266
|
+
case 16:
|
|
2267
|
+
case 8: return -28;
|
|
2268
|
+
case 9:
|
|
2269
|
+
setErrNo(28);
|
|
2270
|
+
return -1;
|
|
2271
|
+
default: {
|
|
2272
|
+
return -28;
|
|
2273
|
+
}
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
catch (e) {
|
|
2277
|
+
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|
2278
|
+
throw e;
|
|
2279
|
+
return -e.errno;
|
|
2280
|
+
} }
|
|
2281
|
+
function ___syscall_fstat64(fd, buf) { try {
|
|
2282
|
+
var stream = SYSCALLS.getStreamFromFD(fd);
|
|
2283
|
+
return SYSCALLS.doStat(FS.stat, stream.path, buf);
|
|
2284
|
+
}
|
|
2285
|
+
catch (e) {
|
|
2286
|
+
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|
2287
|
+
throw e;
|
|
2288
|
+
return -e.errno;
|
|
2289
|
+
} }
|
|
2290
|
+
function ___syscall_fstatat64(dirfd, path, buf, flags) { try {
|
|
2291
|
+
path = SYSCALLS.getStr(path);
|
|
2292
|
+
var nofollow = flags & 256;
|
|
2293
|
+
var allowEmpty = flags & 4096;
|
|
2294
|
+
flags = flags & ~4352;
|
|
2295
|
+
assert(!flags, flags);
|
|
2296
|
+
path = SYSCALLS.calculateAt(dirfd, path, allowEmpty);
|
|
2297
|
+
return SYSCALLS.doStat(nofollow ? FS.lstat : FS.stat, path, buf);
|
|
2298
|
+
}
|
|
2299
|
+
catch (e) {
|
|
2300
|
+
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|
2301
|
+
throw e;
|
|
2302
|
+
return -e.errno;
|
|
2303
|
+
} }
|
|
2304
|
+
function ___syscall_getcwd(buf, size) { try {
|
|
2305
|
+
if (size === 0)
|
|
2306
|
+
return -28;
|
|
2307
|
+
var cwd = FS.cwd();
|
|
2308
|
+
var cwdLengthInBytes = lengthBytesUTF8(cwd);
|
|
2309
|
+
if (size < cwdLengthInBytes + 1)
|
|
2310
|
+
return -68;
|
|
2311
|
+
stringToUTF8(cwd, buf, size);
|
|
2312
|
+
return buf;
|
|
2313
|
+
}
|
|
2314
|
+
catch (e) {
|
|
2315
|
+
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|
2316
|
+
throw e;
|
|
2317
|
+
return -e.errno;
|
|
2318
|
+
} }
|
|
2319
|
+
function ___syscall_getdents64(fd, dirp, count) { try {
|
|
2320
|
+
var stream = SYSCALLS.getStreamFromFD(fd);
|
|
2321
|
+
if (!stream.getdents) {
|
|
2322
|
+
stream.getdents = FS.readdir(stream.path);
|
|
2323
|
+
}
|
|
2324
|
+
var struct_size = 280;
|
|
2325
|
+
var pos = 0;
|
|
2326
|
+
var off = FS.llseek(stream, 0, 1);
|
|
2327
|
+
var idx = Math.floor(off / struct_size);
|
|
2328
|
+
while (idx < stream.getdents.length && pos + struct_size <= count) {
|
|
2329
|
+
var id;
|
|
2330
|
+
var type;
|
|
2331
|
+
var name = stream.getdents[idx];
|
|
2332
|
+
if (name === ".") {
|
|
2333
|
+
id = stream.node.id;
|
|
2334
|
+
type = 4;
|
|
2335
|
+
}
|
|
2336
|
+
else if (name === "..") {
|
|
2337
|
+
var lookup = FS.lookupPath(stream.path, { parent: true });
|
|
2338
|
+
id = lookup.node.id;
|
|
2339
|
+
type = 4;
|
|
2340
|
+
}
|
|
2341
|
+
else {
|
|
2342
|
+
var child = FS.lookupNode(stream.node, name);
|
|
2343
|
+
id = child.id;
|
|
2344
|
+
type = FS.isChrdev(child.mode) ? 2 : FS.isDir(child.mode) ? 4 : FS.isLink(child.mode) ? 10 : 8;
|
|
2345
|
+
}
|
|
2346
|
+
assert(id);
|
|
2347
|
+
tempI64 = [id >>> 0, (tempDouble = id, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? (Math.min(+Math.floor(tempDouble / 4294967296), 4294967295) | 0) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)], HEAP32[dirp + pos >> 2] = tempI64[0], HEAP32[dirp + pos + 4 >> 2] = tempI64[1];
|
|
2348
|
+
tempI64 = [(idx + 1) * struct_size >>> 0, (tempDouble = (idx + 1) * struct_size, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? (Math.min(+Math.floor(tempDouble / 4294967296), 4294967295) | 0) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)], HEAP32[dirp + pos + 8 >> 2] = tempI64[0], HEAP32[dirp + pos + 12 >> 2] = tempI64[1];
|
|
2349
|
+
HEAP16[dirp + pos + 16 >> 1] = 280;
|
|
2350
|
+
HEAP8[dirp + pos + 18 >> 0] = type;
|
|
2351
|
+
stringToUTF8(name, dirp + pos + 19, 256);
|
|
2352
|
+
pos += struct_size;
|
|
2353
|
+
idx += 1;
|
|
2354
|
+
}
|
|
2355
|
+
FS.llseek(stream, idx * struct_size, 0);
|
|
2356
|
+
return pos;
|
|
2357
|
+
}
|
|
2358
|
+
catch (e) {
|
|
2359
|
+
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|
2360
|
+
throw e;
|
|
2361
|
+
return -e.errno;
|
|
2362
|
+
} }
|
|
2363
|
+
function ___syscall_getegid32() { return 0; }
|
|
2364
|
+
function ___syscall_geteuid32() { return ___syscall_getegid32(); }
|
|
2365
|
+
function ___syscall_getgid32() { return ___syscall_getegid32(); }
|
|
2366
|
+
function ___syscall_getuid32() { return ___syscall_getegid32(); }
|
|
2367
|
+
function ___syscall_ioctl(fd, op, varargs) { SYSCALLS.varargs = varargs; try {
|
|
2368
|
+
var stream = SYSCALLS.getStreamFromFD(fd);
|
|
2369
|
+
switch (op) {
|
|
2370
|
+
case 21509:
|
|
2371
|
+
case 21505: {
|
|
2372
|
+
if (!stream.tty)
|
|
2373
|
+
return -59;
|
|
2374
|
+
return 0;
|
|
2375
|
+
}
|
|
2376
|
+
case 21510:
|
|
2377
|
+
case 21511:
|
|
2378
|
+
case 21512:
|
|
2379
|
+
case 21506:
|
|
2380
|
+
case 21507:
|
|
2381
|
+
case 21508: {
|
|
2382
|
+
if (!stream.tty)
|
|
2383
|
+
return -59;
|
|
2384
|
+
return 0;
|
|
2385
|
+
}
|
|
2386
|
+
case 21519: {
|
|
2387
|
+
if (!stream.tty)
|
|
2388
|
+
return -59;
|
|
2389
|
+
var argp = SYSCALLS.get();
|
|
2390
|
+
HEAP32[argp >> 2] = 0;
|
|
2391
|
+
return 0;
|
|
2392
|
+
}
|
|
2393
|
+
case 21520: {
|
|
2394
|
+
if (!stream.tty)
|
|
2395
|
+
return -59;
|
|
2396
|
+
return -28;
|
|
2397
|
+
}
|
|
2398
|
+
case 21531: {
|
|
2399
|
+
var argp = SYSCALLS.get();
|
|
2400
|
+
return FS.ioctl(stream, op, argp);
|
|
2401
|
+
}
|
|
2402
|
+
case 21523: {
|
|
2403
|
+
if (!stream.tty)
|
|
2404
|
+
return -59;
|
|
2405
|
+
return 0;
|
|
2406
|
+
}
|
|
2407
|
+
case 21524: {
|
|
2408
|
+
if (!stream.tty)
|
|
2409
|
+
return -59;
|
|
2410
|
+
return 0;
|
|
2411
|
+
}
|
|
2412
|
+
default: abort("bad ioctl syscall " + op);
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
catch (e) {
|
|
2416
|
+
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|
2417
|
+
throw e;
|
|
2418
|
+
return -e.errno;
|
|
2419
|
+
} }
|
|
2420
|
+
function ___syscall_lstat64(path, buf) { try {
|
|
2421
|
+
path = SYSCALLS.getStr(path);
|
|
2422
|
+
return SYSCALLS.doStat(FS.lstat, path, buf);
|
|
2423
|
+
}
|
|
2424
|
+
catch (e) {
|
|
2425
|
+
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|
2426
|
+
throw e;
|
|
2427
|
+
return -e.errno;
|
|
2428
|
+
} }
|
|
2429
|
+
function syscallMunmap(addr, len) { var info = SYSCALLS.mappings[addr]; if (len === 0 || !info) {
|
|
2430
|
+
return -28;
|
|
2431
|
+
} if (len === info.len) {
|
|
2432
|
+
var stream = FS.getStream(info.fd);
|
|
2433
|
+
if (stream) {
|
|
2434
|
+
if (info.prot & 2) {
|
|
2435
|
+
SYSCALLS.doMsync(addr, stream, len, info.flags, info.offset);
|
|
2436
|
+
}
|
|
2437
|
+
FS.munmap(stream);
|
|
2438
|
+
}
|
|
2439
|
+
SYSCALLS.mappings[addr] = null;
|
|
2440
|
+
if (info.allocated) {
|
|
2441
|
+
_free(info.malloc);
|
|
2442
|
+
}
|
|
2443
|
+
} return 0; }
|
|
2444
|
+
function ___syscall_munmap(addr, len) { try {
|
|
2445
|
+
return syscallMunmap(addr, len);
|
|
2446
|
+
}
|
|
2447
|
+
catch (e) {
|
|
2448
|
+
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|
2449
|
+
throw e;
|
|
2450
|
+
return -e.errno;
|
|
2451
|
+
} }
|
|
2452
|
+
function ___syscall_open(path, flags, varargs) { SYSCALLS.varargs = varargs; try {
|
|
2453
|
+
var pathname = SYSCALLS.getStr(path);
|
|
2454
|
+
var mode = varargs ? SYSCALLS.get() : 0;
|
|
2455
|
+
var stream = FS.open(pathname, flags, mode);
|
|
2456
|
+
return stream.fd;
|
|
2457
|
+
}
|
|
2458
|
+
catch (e) {
|
|
2459
|
+
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|
2460
|
+
throw e;
|
|
2461
|
+
return -e.errno;
|
|
2462
|
+
} }
|
|
2463
|
+
function ___syscall_stat64(path, buf) { try {
|
|
2464
|
+
path = SYSCALLS.getStr(path);
|
|
2465
|
+
return SYSCALLS.doStat(FS.stat, path, buf);
|
|
2466
|
+
}
|
|
2467
|
+
catch (e) {
|
|
2468
|
+
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|
2469
|
+
throw e;
|
|
2470
|
+
return -e.errno;
|
|
2471
|
+
} }
|
|
2472
|
+
function __gmtime_js(time, tmPtr) { var date = new Date(HEAP32[time >> 2] * 1e3); HEAP32[tmPtr >> 2] = date.getUTCSeconds(); HEAP32[tmPtr + 4 >> 2] = date.getUTCMinutes(); HEAP32[tmPtr + 8 >> 2] = date.getUTCHours(); HEAP32[tmPtr + 12 >> 2] = date.getUTCDate(); HEAP32[tmPtr + 16 >> 2] = date.getUTCMonth(); HEAP32[tmPtr + 20 >> 2] = date.getUTCFullYear() - 1900; HEAP32[tmPtr + 24 >> 2] = date.getUTCDay(); var start = Date.UTC(date.getUTCFullYear(), 0, 1, 0, 0, 0, 0); var yday = (date.getTime() - start) / (1e3 * 60 * 60 * 24) | 0; HEAP32[tmPtr + 28 >> 2] = yday; }
|
|
2473
|
+
function __mktime_js(tmPtr) { var date = new Date(HEAP32[tmPtr + 20 >> 2] + 1900, HEAP32[tmPtr + 16 >> 2], HEAP32[tmPtr + 12 >> 2], HEAP32[tmPtr + 8 >> 2], HEAP32[tmPtr + 4 >> 2], HEAP32[tmPtr >> 2], 0); var dst = HEAP32[tmPtr + 32 >> 2]; var guessedOffset = date.getTimezoneOffset(); var start = new Date(date.getFullYear(), 0, 1); var summerOffset = new Date(date.getFullYear(), 6, 1).getTimezoneOffset(); var winterOffset = start.getTimezoneOffset(); var dstOffset = Math.min(winterOffset, summerOffset); if (dst < 0) {
|
|
2474
|
+
HEAP32[tmPtr + 32 >> 2] = Number(summerOffset != winterOffset && dstOffset == guessedOffset);
|
|
2475
|
+
}
|
|
2476
|
+
else if (dst > 0 != (dstOffset == guessedOffset)) {
|
|
2477
|
+
var nonDstOffset = Math.max(winterOffset, summerOffset);
|
|
2478
|
+
var trueOffset = dst > 0 ? dstOffset : nonDstOffset;
|
|
2479
|
+
date.setTime(date.getTime() + (trueOffset - guessedOffset) * 6e4);
|
|
2480
|
+
} HEAP32[tmPtr + 24 >> 2] = date.getDay(); var yday = (date.getTime() - start.getTime()) / (1e3 * 60 * 60 * 24) | 0; HEAP32[tmPtr + 28 >> 2] = yday; HEAP32[tmPtr >> 2] = date.getSeconds(); HEAP32[tmPtr + 4 >> 2] = date.getMinutes(); HEAP32[tmPtr + 8 >> 2] = date.getHours(); HEAP32[tmPtr + 12 >> 2] = date.getDate(); HEAP32[tmPtr + 16 >> 2] = date.getMonth(); return date.getTime() / 1e3 | 0; }
|
|
2481
|
+
function __timegm_js(tmPtr) { var time = Date.UTC(HEAP32[tmPtr + 20 >> 2] + 1900, HEAP32[tmPtr + 16 >> 2], HEAP32[tmPtr + 12 >> 2], HEAP32[tmPtr + 8 >> 2], HEAP32[tmPtr + 4 >> 2], HEAP32[tmPtr >> 2], 0); var date = new Date(time); HEAP32[tmPtr + 24 >> 2] = date.getUTCDay(); var start = Date.UTC(date.getUTCFullYear(), 0, 1, 0, 0, 0, 0); var yday = (date.getTime() - start) / (1e3 * 60 * 60 * 24) | 0; HEAP32[tmPtr + 28 >> 2] = yday; return date.getTime() / 1e3 | 0; }
|
|
2482
|
+
function _tzset_impl(timezone, daylight, tzname) { var currentYear = (new Date).getFullYear(); var winter = new Date(currentYear, 0, 1); var summer = new Date(currentYear, 6, 1); var winterOffset = winter.getTimezoneOffset(); var summerOffset = summer.getTimezoneOffset(); var stdTimezoneOffset = Math.max(winterOffset, summerOffset); HEAP32[timezone >> 2] = stdTimezoneOffset * 60; HEAP32[daylight >> 2] = Number(winterOffset != summerOffset); function extractZone(date) { var match = date.toTimeString().match(/\(([A-Za-z ]+)\)$/); return match ? match[1] : "GMT"; } var winterName = extractZone(winter); var summerName = extractZone(summer); var winterNamePtr = allocateUTF8(winterName); var summerNamePtr = allocateUTF8(summerName); if (summerOffset < winterOffset) {
|
|
2483
|
+
HEAP32[tzname >> 2] = winterNamePtr;
|
|
2484
|
+
HEAP32[tzname + 4 >> 2] = summerNamePtr;
|
|
2485
|
+
}
|
|
2486
|
+
else {
|
|
2487
|
+
HEAP32[tzname >> 2] = summerNamePtr;
|
|
2488
|
+
HEAP32[tzname + 4 >> 2] = winterNamePtr;
|
|
2489
|
+
} }
|
|
2490
|
+
function __tzset_js(timezone, daylight, tzname) { if (__tzset_js.called)
|
|
2491
|
+
return; __tzset_js.called = true; _tzset_impl(timezone, daylight, tzname); }
|
|
2492
|
+
function _abort() { abort("native code called abort()"); }
|
|
2493
|
+
var _emscripten_get_now;
|
|
2494
|
+
if (ENVIRONMENT_IS_NODE) {
|
|
2495
|
+
_emscripten_get_now = (() => { var t = process["hrtime"](); return t[0] * 1e3 + t[1] / 1e6; });
|
|
2496
|
+
}
|
|
2497
|
+
else
|
|
2498
|
+
_emscripten_get_now = (() => performance.now());
|
|
2499
|
+
var _emscripten_get_now_is_monotonic = true;
|
|
2500
|
+
function _clock_gettime(clk_id, tp) { var now; if (clk_id === 0) {
|
|
2501
|
+
now = Date.now();
|
|
2502
|
+
}
|
|
2503
|
+
else if ((clk_id === 1 || clk_id === 4) && _emscripten_get_now_is_monotonic) {
|
|
2504
|
+
now = _emscripten_get_now();
|
|
2505
|
+
}
|
|
2506
|
+
else {
|
|
2507
|
+
setErrNo(28);
|
|
2508
|
+
return -1;
|
|
2509
|
+
} HEAP32[tp >> 2] = now / 1e3 | 0; HEAP32[tp + 4 >> 2] = now % 1e3 * 1e3 * 1e3 | 0; return 0; }
|
|
2510
|
+
var readAsmConstArgsArray = [];
|
|
2511
|
+
function readAsmConstArgs(sigPtr, buf) { assert(Array.isArray(readAsmConstArgsArray)); assert(buf % 16 == 0); readAsmConstArgsArray.length = 0; var ch; buf >>= 2; while (ch = HEAPU8[sigPtr++]) {
|
|
2512
|
+
assert(ch === 100 || ch === 102 || ch === 105);
|
|
2513
|
+
var readAsmConstArgsDouble = ch < 105;
|
|
2514
|
+
if (readAsmConstArgsDouble && buf & 1)
|
|
2515
|
+
buf++;
|
|
2516
|
+
readAsmConstArgsArray.push(readAsmConstArgsDouble ? HEAPF64[buf++ >> 1] : HEAP32[buf]);
|
|
2517
|
+
++buf;
|
|
2518
|
+
} return readAsmConstArgsArray; }
|
|
2519
|
+
function _emscripten_asm_const_int(code, sigPtr, argbuf) { var args = readAsmConstArgs(sigPtr, argbuf); if (!ASM_CONSTS.hasOwnProperty(code))
|
|
2520
|
+
abort("No EM_ASM constant found at address " + code); return ASM_CONSTS[code].apply(null, args); }
|
|
2521
|
+
function _emscripten_get_heap_max() { return 2147483648; }
|
|
2522
|
+
function _emscripten_memcpy_big(dest, src, num) { HEAPU8.copyWithin(dest, src, src + num); }
|
|
2523
|
+
function emscripten_realloc_buffer(size) { try {
|
|
2524
|
+
wasmMemory.grow(size - buffer.byteLength + 65535 >>> 16);
|
|
2525
|
+
updateGlobalBufferAndViews(wasmMemory.buffer);
|
|
2526
|
+
return 1;
|
|
2527
|
+
}
|
|
2528
|
+
catch (e) {
|
|
2529
|
+
err("emscripten_realloc_buffer: Attempted to grow heap from " + buffer.byteLength + " bytes to " + size + " bytes, but got error: " + e);
|
|
2530
|
+
} }
|
|
2531
|
+
function _emscripten_resize_heap(requestedSize) { var oldSize = HEAPU8.length; requestedSize = requestedSize >>> 0; assert(requestedSize > oldSize); var maxHeapSize = 2147483648; if (requestedSize > maxHeapSize) {
|
|
2532
|
+
err("Cannot enlarge memory, asked to go up to " + requestedSize + " bytes, but the limit is " + maxHeapSize + " bytes!");
|
|
2533
|
+
return false;
|
|
2534
|
+
} for (var cutDown = 1; cutDown <= 4; cutDown *= 2) {
|
|
2535
|
+
var overGrownHeapSize = oldSize * (1 + .2 / cutDown);
|
|
2536
|
+
overGrownHeapSize = Math.min(overGrownHeapSize, requestedSize + 100663296);
|
|
2537
|
+
var newSize = Math.min(maxHeapSize, alignUp(Math.max(requestedSize, overGrownHeapSize), 65536));
|
|
2538
|
+
var replacement = emscripten_realloc_buffer(newSize);
|
|
2539
|
+
if (replacement) {
|
|
2540
|
+
return true;
|
|
2541
|
+
}
|
|
2542
|
+
} err("Failed to grow the heap from " + oldSize + " bytes to " + newSize + " bytes, not enough memory!"); return false; }
|
|
2543
|
+
var ENV = {};
|
|
2544
|
+
function getExecutableName() { return thisProgram || "./this.program"; }
|
|
2545
|
+
function getEnvStrings() { if (!getEnvStrings.strings) {
|
|
2546
|
+
var lang = (typeof navigator === "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8";
|
|
2547
|
+
var env = { "USER": "web_user", "LOGNAME": "web_user", "PATH": "/", "PWD": "/", "HOME": "/home/web_user", "LANG": lang, "_": getExecutableName() };
|
|
2548
|
+
for (var x in ENV) {
|
|
2549
|
+
if (ENV[x] === undefined)
|
|
2550
|
+
delete env[x];
|
|
2551
|
+
else
|
|
2552
|
+
env[x] = ENV[x];
|
|
2553
|
+
}
|
|
2554
|
+
var strings = [];
|
|
2555
|
+
for (var x in env) {
|
|
2556
|
+
strings.push(x + "=" + env[x]);
|
|
2557
|
+
}
|
|
2558
|
+
getEnvStrings.strings = strings;
|
|
2559
|
+
} return getEnvStrings.strings; }
|
|
2560
|
+
function _environ_get(__environ, environ_buf) { var bufSize = 0; getEnvStrings().forEach(function (string, i) { var ptr = environ_buf + bufSize; HEAP32[__environ + i * 4 >> 2] = ptr; writeAsciiToMemory(string, ptr); bufSize += string.length + 1; }); return 0; }
|
|
2561
|
+
function _environ_sizes_get(penviron_count, penviron_buf_size) { var strings = getEnvStrings(); HEAP32[penviron_count >> 2] = strings.length; var bufSize = 0; strings.forEach(function (string) { bufSize += string.length + 1; }); HEAP32[penviron_buf_size >> 2] = bufSize; return 0; }
|
|
2562
|
+
function _exit(status) { exit(status); }
|
|
2563
|
+
function _fd_close(fd) { try {
|
|
2564
|
+
var stream = SYSCALLS.getStreamFromFD(fd);
|
|
2565
|
+
FS.close(stream);
|
|
2566
|
+
return 0;
|
|
2567
|
+
}
|
|
2568
|
+
catch (e) {
|
|
2569
|
+
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|
2570
|
+
throw e;
|
|
2571
|
+
return e.errno;
|
|
2572
|
+
} }
|
|
2573
|
+
function _fd_read(fd, iov, iovcnt, pnum) { try {
|
|
2574
|
+
var stream = SYSCALLS.getStreamFromFD(fd);
|
|
2575
|
+
var num = SYSCALLS.doReadv(stream, iov, iovcnt);
|
|
2576
|
+
HEAP32[pnum >> 2] = num;
|
|
2577
|
+
return 0;
|
|
2578
|
+
}
|
|
2579
|
+
catch (e) {
|
|
2580
|
+
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|
2581
|
+
throw e;
|
|
2582
|
+
return e.errno;
|
|
2583
|
+
} }
|
|
2584
|
+
function _fd_seek(fd, offset_low, offset_high, whence, newOffset) { try {
|
|
2585
|
+
var stream = SYSCALLS.getStreamFromFD(fd);
|
|
2586
|
+
var HIGH_OFFSET = 4294967296;
|
|
2587
|
+
var offset = offset_high * HIGH_OFFSET + (offset_low >>> 0);
|
|
2588
|
+
var DOUBLE_LIMIT = 9007199254740992;
|
|
2589
|
+
if (offset <= -DOUBLE_LIMIT || offset >= DOUBLE_LIMIT) {
|
|
2590
|
+
return -61;
|
|
2591
|
+
}
|
|
2592
|
+
FS.llseek(stream, offset, whence);
|
|
2593
|
+
tempI64 = [stream.position >>> 0, (tempDouble = stream.position, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? (Math.min(+Math.floor(tempDouble / 4294967296), 4294967295) | 0) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)], HEAP32[newOffset >> 2] = tempI64[0], HEAP32[newOffset + 4 >> 2] = tempI64[1];
|
|
2594
|
+
if (stream.getdents && offset === 0 && whence === 0)
|
|
2595
|
+
stream.getdents = null;
|
|
2596
|
+
return 0;
|
|
2597
|
+
}
|
|
2598
|
+
catch (e) {
|
|
2599
|
+
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|
2600
|
+
throw e;
|
|
2601
|
+
return e.errno;
|
|
2602
|
+
} }
|
|
2603
|
+
function _fd_write(fd, iov, iovcnt, pnum) { try {
|
|
2604
|
+
var stream = SYSCALLS.getStreamFromFD(fd);
|
|
2605
|
+
var num = SYSCALLS.doWritev(stream, iov, iovcnt);
|
|
2606
|
+
HEAP32[pnum >> 2] = num;
|
|
2607
|
+
return 0;
|
|
2608
|
+
}
|
|
2609
|
+
catch (e) {
|
|
2610
|
+
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|
2611
|
+
throw e;
|
|
2612
|
+
return e.errno;
|
|
2613
|
+
} }
|
|
2614
|
+
function _getTempRet0() { return getTempRet0(); }
|
|
2615
|
+
function _getentropy(buffer, size) { if (!_getentropy.randomDevice) {
|
|
2616
|
+
_getentropy.randomDevice = getRandomDevice();
|
|
2617
|
+
} for (var i = 0; i < size; i++) {
|
|
2618
|
+
HEAP8[buffer + i >> 0] = _getentropy.randomDevice();
|
|
2619
|
+
} return 0; }
|
|
2620
|
+
function _gettimeofday(ptr) { var now = Date.now(); HEAP32[ptr >> 2] = now / 1e3 | 0; HEAP32[ptr + 4 >> 2] = now % 1e3 * 1e3 | 0; return 0; }
|
|
2621
|
+
function _setTempRet0(val) { setTempRet0(val); }
|
|
2622
|
+
function __isLeapYear(year) { return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); }
|
|
2623
|
+
function __arraySum(array, index) { var sum = 0; for (var i = 0; i <= index; sum += array[i++]) { } return sum; }
|
|
2624
|
+
var __MONTH_DAYS_LEAP = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
2625
|
+
var __MONTH_DAYS_REGULAR = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
2626
|
+
function __addDays(date, days) { var newDate = new Date(date.getTime()); while (days > 0) {
|
|
2627
|
+
var leap = __isLeapYear(newDate.getFullYear());
|
|
2628
|
+
var currentMonth = newDate.getMonth();
|
|
2629
|
+
var daysInCurrentMonth = (leap ? __MONTH_DAYS_LEAP : __MONTH_DAYS_REGULAR)[currentMonth];
|
|
2630
|
+
if (days > daysInCurrentMonth - newDate.getDate()) {
|
|
2631
|
+
days -= daysInCurrentMonth - newDate.getDate() + 1;
|
|
2632
|
+
newDate.setDate(1);
|
|
2633
|
+
if (currentMonth < 11) {
|
|
2634
|
+
newDate.setMonth(currentMonth + 1);
|
|
2635
|
+
}
|
|
2636
|
+
else {
|
|
2637
|
+
newDate.setMonth(0);
|
|
2638
|
+
newDate.setFullYear(newDate.getFullYear() + 1);
|
|
2639
|
+
}
|
|
2640
|
+
}
|
|
2641
|
+
else {
|
|
2642
|
+
newDate.setDate(newDate.getDate() + days);
|
|
2643
|
+
return newDate;
|
|
2644
|
+
}
|
|
2645
|
+
} return newDate; }
|
|
2646
|
+
function _strftime(s, maxsize, format, tm) { var tm_zone = HEAP32[tm + 40 >> 2]; var date = { tm_sec: HEAP32[tm >> 2], tm_min: HEAP32[tm + 4 >> 2], tm_hour: HEAP32[tm + 8 >> 2], tm_mday: HEAP32[tm + 12 >> 2], tm_mon: HEAP32[tm + 16 >> 2], tm_year: HEAP32[tm + 20 >> 2], tm_wday: HEAP32[tm + 24 >> 2], tm_yday: HEAP32[tm + 28 >> 2], tm_isdst: HEAP32[tm + 32 >> 2], tm_gmtoff: HEAP32[tm + 36 >> 2], tm_zone: tm_zone ? UTF8ToString(tm_zone) : "" }; var pattern = UTF8ToString(format); var EXPANSION_RULES_1 = { "%c": "%a %b %d %H:%M:%S %Y", "%D": "%m/%d/%y", "%F": "%Y-%m-%d", "%h": "%b", "%r": "%I:%M:%S %p", "%R": "%H:%M", "%T": "%H:%M:%S", "%x": "%m/%d/%y", "%X": "%H:%M:%S", "%Ec": "%c", "%EC": "%C", "%Ex": "%m/%d/%y", "%EX": "%H:%M:%S", "%Ey": "%y", "%EY": "%Y", "%Od": "%d", "%Oe": "%e", "%OH": "%H", "%OI": "%I", "%Om": "%m", "%OM": "%M", "%OS": "%S", "%Ou": "%u", "%OU": "%U", "%OV": "%V", "%Ow": "%w", "%OW": "%W", "%Oy": "%y" }; for (var rule in EXPANSION_RULES_1) {
|
|
2647
|
+
pattern = pattern.replace(new RegExp(rule, "g"), EXPANSION_RULES_1[rule]);
|
|
2648
|
+
} var WEEKDAYS = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; var MONTHS = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; function leadingSomething(value, digits, character) { var str = typeof value === "number" ? value.toString() : value || ""; while (str.length < digits) {
|
|
2649
|
+
str = character[0] + str;
|
|
2650
|
+
} return str; } function leadingNulls(value, digits) { return leadingSomething(value, digits, "0"); } function compareByDay(date1, date2) { function sgn(value) { return value < 0 ? -1 : value > 0 ? 1 : 0; } var compare; if ((compare = sgn(date1.getFullYear() - date2.getFullYear())) === 0) {
|
|
2651
|
+
if ((compare = sgn(date1.getMonth() - date2.getMonth())) === 0) {
|
|
2652
|
+
compare = sgn(date1.getDate() - date2.getDate());
|
|
2653
|
+
}
|
|
2654
|
+
} return compare; } function getFirstWeekStartDate(janFourth) { switch (janFourth.getDay()) {
|
|
2655
|
+
case 0: return new Date(janFourth.getFullYear() - 1, 11, 29);
|
|
2656
|
+
case 1: return janFourth;
|
|
2657
|
+
case 2: return new Date(janFourth.getFullYear(), 0, 3);
|
|
2658
|
+
case 3: return new Date(janFourth.getFullYear(), 0, 2);
|
|
2659
|
+
case 4: return new Date(janFourth.getFullYear(), 0, 1);
|
|
2660
|
+
case 5: return new Date(janFourth.getFullYear() - 1, 11, 31);
|
|
2661
|
+
case 6: return new Date(janFourth.getFullYear() - 1, 11, 30);
|
|
2662
|
+
} } function getWeekBasedYear(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) {
|
|
2663
|
+
if (compareByDay(firstWeekStartNextYear, thisDate) <= 0) {
|
|
2664
|
+
return thisDate.getFullYear() + 1;
|
|
2665
|
+
}
|
|
2666
|
+
else {
|
|
2667
|
+
return thisDate.getFullYear();
|
|
2668
|
+
}
|
|
2669
|
+
}
|
|
2670
|
+
else {
|
|
2671
|
+
return thisDate.getFullYear() - 1;
|
|
2672
|
+
} } 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(year / 100 | 0, 2); }, "%d": function (date) { return leadingNulls(date.tm_mday, 2); }, "%e": function (date) { return leadingSomething(date.tm_mday, 2, " "); }, "%g": function (date) { return getWeekBasedYear(date).toString().substring(2); }, "%G": function (date) { return getWeekBasedYear(date); }, "%H": function (date) { return leadingNulls(date.tm_hour, 2); }, "%I": function (date) { var twelveHour = date.tm_hour; if (twelveHour == 0)
|
|
2673
|
+
twelveHour = 12;
|
|
2674
|
+
else if (twelveHour > 12)
|
|
2675
|
+
twelveHour -= 12; return leadingNulls(twelveHour, 2); }, "%j": function (date) { 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 < 12) {
|
|
2676
|
+
return "AM";
|
|
2677
|
+
}
|
|
2678
|
+
else {
|
|
2679
|
+
return "PM";
|
|
2680
|
+
} }, "%S": function (date) { return leadingNulls(date.tm_sec, 2); }, "%t": function () { return "\t"; }, "%u": function (date) { return date.tm_wday || 7; }, "%U": function (date) { 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); if (compareByDay(firstSunday, endDate) < 0) {
|
|
2681
|
+
var februaryFirstUntilEndMonth = __arraySum(__isLeapYear(endDate.getFullYear()) ? __MONTH_DAYS_LEAP : __MONTH_DAYS_REGULAR, endDate.getMonth() - 1) - 31;
|
|
2682
|
+
var firstSundayUntilEndJanuary = 31 - firstSunday.getDate();
|
|
2683
|
+
var days = firstSundayUntilEndJanuary + februaryFirstUntilEndMonth + endDate.getDate();
|
|
2684
|
+
return leadingNulls(Math.ceil(days / 7), 2);
|
|
2685
|
+
} return compareByDay(firstSunday, janFirst) === 0 ? "01" : "00"; }, "%V": function (date) { 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) {
|
|
2686
|
+
return "53";
|
|
2687
|
+
} if (compareByDay(firstWeekStartNextYear, endDate) <= 0) {
|
|
2688
|
+
return "01";
|
|
2689
|
+
} var daysDifference; if (firstWeekStartThisYear.getFullYear() < date.tm_year + 1900) {
|
|
2690
|
+
daysDifference = date.tm_yday + 32 - firstWeekStartThisYear.getDate();
|
|
2691
|
+
}
|
|
2692
|
+
else {
|
|
2693
|
+
daysDifference = date.tm_yday + 1 - firstWeekStartThisYear.getDate();
|
|
2694
|
+
} return leadingNulls(Math.ceil(daysDifference / 7), 2); }, "%w": function (date) { return date.tm_wday; }, "%W": function (date) { 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); if (compareByDay(firstMonday, endDate) < 0) {
|
|
2695
|
+
var februaryFirstUntilEndMonth = __arraySum(__isLeapYear(endDate.getFullYear()) ? __MONTH_DAYS_LEAP : __MONTH_DAYS_REGULAR, endDate.getMonth() - 1) - 31;
|
|
2696
|
+
var firstMondayUntilEndJanuary = 31 - firstMonday.getDate();
|
|
2697
|
+
var days = firstMondayUntilEndJanuary + februaryFirstUntilEndMonth + endDate.getDate();
|
|
2698
|
+
return leadingNulls(Math.ceil(days / 7), 2);
|
|
2699
|
+
} return compareByDay(firstMonday, janFirst) === 0 ? "01" : "00"; }, "%y": function (date) { return (date.tm_year + 1900).toString().substring(2); }, "%Y": function (date) { return date.tm_year + 1900; }, "%z": function (date) { var off = date.tm_gmtoff; var ahead = off >= 0; off = Math.abs(off) / 60; off = off / 60 * 100 + off % 60; return (ahead ? "+" : "-") + String("0000" + off).slice(-4); }, "%Z": function (date) { return date.tm_zone; }, "%%": function () { return "%"; } }; for (var rule in EXPANSION_RULES_2) {
|
|
2700
|
+
if (pattern.includes(rule)) {
|
|
2701
|
+
pattern = pattern.replace(new RegExp(rule, "g"), EXPANSION_RULES_2[rule](date));
|
|
2702
|
+
}
|
|
2703
|
+
} var bytes = intArrayFromString(pattern, false); if (bytes.length > maxsize) {
|
|
2704
|
+
return 0;
|
|
2705
|
+
} writeArrayToMemory(bytes, s); return bytes.length - 1; }
|
|
2706
|
+
function _strftime_l(s, maxsize, format, tm) { return _strftime(s, maxsize, format, tm); }
|
|
2707
|
+
function _time(ptr) { var ret = Date.now() / 1e3 | 0; if (ptr) {
|
|
2708
|
+
HEAP32[ptr >> 2] = ret;
|
|
2709
|
+
} return ret; }
|
|
2710
|
+
var FSNode = function (parent, name, mode, rdev) { if (!parent) {
|
|
2711
|
+
parent = this;
|
|
2712
|
+
} this.parent = parent; this.mount = parent.mount; this.mounted = null; this.id = FS.nextInode++; this.name = name; this.mode = mode; this.node_ops = {}; this.stream_ops = {}; this.rdev = rdev; };
|
|
2713
|
+
var readMode = 292 | 73;
|
|
2714
|
+
var writeMode = 146;
|
|
2715
|
+
Object.defineProperties(FSNode.prototype, { read: { get: function () { return (this.mode & readMode) === readMode; }, set: function (val) { val ? this.mode |= readMode : this.mode &= ~readMode; } }, write: { get: function () { return (this.mode & writeMode) === writeMode; }, set: function (val) { val ? this.mode |= writeMode : this.mode &= ~writeMode; } }, isFolder: { get: function () { return FS.isDir(this.mode); } }, isDevice: { get: function () { return FS.isChrdev(this.mode); } } });
|
|
2716
|
+
FS.FSNode = FSNode;
|
|
2717
|
+
FS.staticInit();
|
|
2718
|
+
Module["FS_createPath"] = FS.createPath;
|
|
2719
|
+
Module["FS_createDataFile"] = FS.createDataFile;
|
|
2720
|
+
Module["FS_createPreloadedFile"] = FS.createPreloadedFile;
|
|
2721
|
+
Module["FS_createLazyFile"] = FS.createLazyFile;
|
|
2722
|
+
Module["FS_createDevice"] = FS.createDevice;
|
|
2723
|
+
Module["FS_unlink"] = FS.unlink;
|
|
2724
|
+
if (ENVIRONMENT_IS_NODE) {
|
|
2725
|
+
requireNodeFS();
|
|
2726
|
+
NODEFS.staticInit();
|
|
2727
|
+
}
|
|
2728
|
+
ERRNO_CODES = { "EPERM": 63, "ENOENT": 44, "ESRCH": 71, "EINTR": 27, "EIO": 29, "ENXIO": 60, "E2BIG": 1, "ENOEXEC": 45, "EBADF": 8, "ECHILD": 12, "EAGAIN": 6, "EWOULDBLOCK": 6, "ENOMEM": 48, "EACCES": 2, "EFAULT": 21, "ENOTBLK": 105, "EBUSY": 10, "EEXIST": 20, "EXDEV": 75, "ENODEV": 43, "ENOTDIR": 54, "EISDIR": 31, "EINVAL": 28, "ENFILE": 41, "EMFILE": 33, "ENOTTY": 59, "ETXTBSY": 74, "EFBIG": 22, "ENOSPC": 51, "ESPIPE": 70, "EROFS": 69, "EMLINK": 34, "EPIPE": 64, "EDOM": 18, "ERANGE": 68, "ENOMSG": 49, "EIDRM": 24, "ECHRNG": 106, "EL2NSYNC": 156, "EL3HLT": 107, "EL3RST": 108, "ELNRNG": 109, "EUNATCH": 110, "ENOCSI": 111, "EL2HLT": 112, "EDEADLK": 16, "ENOLCK": 46, "EBADE": 113, "EBADR": 114, "EXFULL": 115, "ENOANO": 104, "EBADRQC": 103, "EBADSLT": 102, "EDEADLOCK": 16, "EBFONT": 101, "ENOSTR": 100, "ENODATA": 116, "ETIME": 117, "ENOSR": 118, "ENONET": 119, "ENOPKG": 120, "EREMOTE": 121, "ENOLINK": 47, "EADV": 122, "ESRMNT": 123, "ECOMM": 124, "EPROTO": 65, "EMULTIHOP": 36, "EDOTDOT": 125, "EBADMSG": 9, "ENOTUNIQ": 126, "EBADFD": 127, "EREMCHG": 128, "ELIBACC": 129, "ELIBBAD": 130, "ELIBSCN": 131, "ELIBMAX": 132, "ELIBEXEC": 133, "ENOSYS": 52, "ENOTEMPTY": 55, "ENAMETOOLONG": 37, "ELOOP": 32, "EOPNOTSUPP": 138, "EPFNOSUPPORT": 139, "ECONNRESET": 15, "ENOBUFS": 42, "EAFNOSUPPORT": 5, "EPROTOTYPE": 67, "ENOTSOCK": 57, "ENOPROTOOPT": 50, "ESHUTDOWN": 140, "ECONNREFUSED": 14, "EADDRINUSE": 3, "ECONNABORTED": 13, "ENETUNREACH": 40, "ENETDOWN": 38, "ETIMEDOUT": 73, "EHOSTDOWN": 142, "EHOSTUNREACH": 23, "EINPROGRESS": 26, "EALREADY": 7, "EDESTADDRREQ": 17, "EMSGSIZE": 35, "EPROTONOSUPPORT": 66, "ESOCKTNOSUPPORT": 137, "EADDRNOTAVAIL": 4, "ENETRESET": 39, "EISCONN": 30, "ENOTCONN": 53, "ETOOMANYREFS": 141, "EUSERS": 136, "EDQUOT": 19, "ESTALE": 72, "ENOTSUP": 138, "ENOMEDIUM": 148, "EILSEQ": 25, "EOVERFLOW": 61, "ECANCELED": 11, "ENOTRECOVERABLE": 56, "EOWNERDEAD": 62, "ESTRPIPE": 135 };
|
|
2729
|
+
var ASSERTIONS = true;
|
|
2730
|
+
function intArrayFromString(stringy, dontAddNull, length) { var len = length > 0 ? length : lengthBytesUTF8(stringy) + 1; var u8array = new Array(len); var numBytesWritten = stringToUTF8Array(stringy, u8array, 0, u8array.length); if (dontAddNull)
|
|
2731
|
+
u8array.length = numBytesWritten; return u8array; }
|
|
2732
|
+
var decodeBase64 = typeof atob === "function" ? atob : function (input) { var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; var output = ""; var chr1, chr2, chr3; var enc1, enc2, enc3, enc4; var i = 0; input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ""); do {
|
|
2733
|
+
enc1 = keyStr.indexOf(input.charAt(i++));
|
|
2734
|
+
enc2 = keyStr.indexOf(input.charAt(i++));
|
|
2735
|
+
enc3 = keyStr.indexOf(input.charAt(i++));
|
|
2736
|
+
enc4 = keyStr.indexOf(input.charAt(i++));
|
|
2737
|
+
chr1 = enc1 << 2 | enc2 >> 4;
|
|
2738
|
+
chr2 = (enc2 & 15) << 4 | enc3 >> 2;
|
|
2739
|
+
chr3 = (enc3 & 3) << 6 | enc4;
|
|
2740
|
+
output = output + String.fromCharCode(chr1);
|
|
2741
|
+
if (enc3 !== 64) {
|
|
2742
|
+
output = output + String.fromCharCode(chr2);
|
|
2743
|
+
}
|
|
2744
|
+
if (enc4 !== 64) {
|
|
2745
|
+
output = output + String.fromCharCode(chr3);
|
|
2746
|
+
}
|
|
2747
|
+
} while (i < input.length); return output; };
|
|
2748
|
+
function intArrayFromBase64(s) { if (typeof ENVIRONMENT_IS_NODE === "boolean" && ENVIRONMENT_IS_NODE) {
|
|
2749
|
+
var buf = Buffer.from(s, "base64");
|
|
2750
|
+
return new Uint8Array(buf["buffer"], buf["byteOffset"], buf["byteLength"]);
|
|
2751
|
+
} try {
|
|
2752
|
+
var decoded = decodeBase64(s);
|
|
2753
|
+
var bytes = new Uint8Array(decoded.length);
|
|
2754
|
+
for (var i = 0; i < decoded.length; ++i) {
|
|
2755
|
+
bytes[i] = decoded.charCodeAt(i);
|
|
2756
|
+
}
|
|
2757
|
+
return bytes;
|
|
2758
|
+
}
|
|
2759
|
+
catch (_) {
|
|
2760
|
+
throw new Error("Converting base64 string to bytes failed.");
|
|
2761
|
+
} }
|
|
2762
|
+
var asmLibraryArg = { "__assert_fail": ___assert_fail, "__call_sighandler": ___call_sighandler, "__cxa_allocate_exception": ___cxa_allocate_exception, "__cxa_begin_catch": ___cxa_begin_catch, "__cxa_end_catch": ___cxa_end_catch, "__cxa_find_matching_catch_2": ___cxa_find_matching_catch_2, "__cxa_find_matching_catch_3": ___cxa_find_matching_catch_3, "__cxa_free_exception": ___cxa_free_exception, "__cxa_rethrow": ___cxa_rethrow, "__cxa_throw": ___cxa_throw, "__cxa_uncaught_exceptions": ___cxa_uncaught_exceptions, "__handle_stack_overflow": ___handle_stack_overflow, "__resumeException": ___resumeException, "__syscall_fcntl64": ___syscall_fcntl64, "__syscall_fstat64": ___syscall_fstat64, "__syscall_fstatat64": ___syscall_fstatat64, "__syscall_getcwd": ___syscall_getcwd, "__syscall_getdents64": ___syscall_getdents64, "__syscall_getegid32": ___syscall_getegid32, "__syscall_geteuid32": ___syscall_geteuid32, "__syscall_getgid32": ___syscall_getgid32, "__syscall_getuid32": ___syscall_getuid32, "__syscall_ioctl": ___syscall_ioctl, "__syscall_lstat64": ___syscall_lstat64, "__syscall_munmap": ___syscall_munmap, "__syscall_open": ___syscall_open, "__syscall_stat64": ___syscall_stat64, "_gmtime_js": __gmtime_js, "_mktime_js": __mktime_js, "_timegm_js": __timegm_js, "_tzset_js": __tzset_js, "abort": _abort, "array_bounds_check_error": array_bounds_check_error, "clock_gettime": _clock_gettime, "emscripten_asm_const_int": _emscripten_asm_const_int, "emscripten_get_heap_max": _emscripten_get_heap_max, "emscripten_memcpy_big": _emscripten_memcpy_big, "emscripten_resize_heap": _emscripten_resize_heap, "environ_get": _environ_get, "environ_sizes_get": _environ_sizes_get, "exit": _exit, "fd_close": _fd_close, "fd_read": _fd_read, "fd_seek": _fd_seek, "fd_write": _fd_write, "getTempRet0": _getTempRet0, "getentropy": _getentropy, "gettimeofday": _gettimeofday, "invoke_i": invoke_i, "invoke_ii": invoke_ii, "invoke_iii": invoke_iii, "invoke_iiii": invoke_iiii, "invoke_iiiii": invoke_iiiii, "invoke_iiiiiii": invoke_iiiiiii, "invoke_iiiiiiii": invoke_iiiiiiii, "invoke_iiiiiiiiiiii": invoke_iiiiiiiiiiii, "invoke_j": invoke_j, "invoke_v": invoke_v, "invoke_vi": invoke_vi, "invoke_vii": invoke_vii, "invoke_viii": invoke_viii, "invoke_viiii": invoke_viiii, "invoke_viiiiiii": invoke_viiiiiii, "invoke_viiiiiiiiii": invoke_viiiiiiiiii, "invoke_viiiiiiiiiiiiiii": invoke_viiiiiiiiiiiiiii, "invoke_vijjjj": invoke_vijjjj, "setTempRet0": _setTempRet0, "strftime_l": _strftime_l, "time": _time };
|
|
2763
|
+
var asm = createWasm();
|
|
2764
|
+
var ___wasm_call_ctors = Module["___wasm_call_ctors"] = createExportWrapper("__wasm_call_ctors");
|
|
2765
|
+
var _emscripten_bind_VoidPtr___destroy___0 = Module["_emscripten_bind_VoidPtr___destroy___0"] = createExportWrapper("emscripten_bind_VoidPtr___destroy___0");
|
|
2766
|
+
var _emscripten_bind_IteratorString_IteratorString_0 = Module["_emscripten_bind_IteratorString_IteratorString_0"] = createExportWrapper("emscripten_bind_IteratorString_IteratorString_0");
|
|
2767
|
+
var _emscripten_bind_IteratorString_value_0 = Module["_emscripten_bind_IteratorString_value_0"] = createExportWrapper("emscripten_bind_IteratorString_value_0");
|
|
2768
|
+
var _emscripten_bind_IteratorString_more_0 = Module["_emscripten_bind_IteratorString_more_0"] = createExportWrapper("emscripten_bind_IteratorString_more_0");
|
|
2769
|
+
var _emscripten_bind_IteratorString_next_0 = Module["_emscripten_bind_IteratorString_next_0"] = createExportWrapper("emscripten_bind_IteratorString_next_0");
|
|
2770
|
+
var _emscripten_bind_IteratorString___destroy___0 = Module["_emscripten_bind_IteratorString___destroy___0"] = createExportWrapper("emscripten_bind_IteratorString___destroy___0");
|
|
2771
|
+
var _emscripten_bind_IteratorAdaptValue_IteratorAdaptValue_0 = Module["_emscripten_bind_IteratorAdaptValue_IteratorAdaptValue_0"] = createExportWrapper("emscripten_bind_IteratorAdaptValue_IteratorAdaptValue_0");
|
|
2772
|
+
var _emscripten_bind_IteratorAdaptValue_value_0 = Module["_emscripten_bind_IteratorAdaptValue_value_0"] = createExportWrapper("emscripten_bind_IteratorAdaptValue_value_0");
|
|
2773
|
+
var _emscripten_bind_IteratorAdaptValue_more_0 = Module["_emscripten_bind_IteratorAdaptValue_more_0"] = createExportWrapper("emscripten_bind_IteratorAdaptValue_more_0");
|
|
2774
|
+
var _emscripten_bind_IteratorAdaptValue_next_0 = Module["_emscripten_bind_IteratorAdaptValue_next_0"] = createExportWrapper("emscripten_bind_IteratorAdaptValue_next_0");
|
|
2775
|
+
var _emscripten_bind_IteratorAdaptValue___destroy___0 = Module["_emscripten_bind_IteratorAdaptValue___destroy___0"] = createExportWrapper("emscripten_bind_IteratorAdaptValue___destroy___0");
|
|
2776
|
+
var _emscripten_bind_Binary_Binary_2 = Module["_emscripten_bind_Binary_Binary_2"] = createExportWrapper("emscripten_bind_Binary_Binary_2");
|
|
2777
|
+
var _emscripten_bind_Binary_Destroy_0 = Module["_emscripten_bind_Binary_Destroy_0"] = createExportWrapper("emscripten_bind_Binary_Destroy_0");
|
|
2778
|
+
var _emscripten_bind_Binary_Get_0 = Module["_emscripten_bind_Binary_Get_0"] = createExportWrapper("emscripten_bind_Binary_Get_0");
|
|
2779
|
+
var _emscripten_bind_Binary_Size_0 = Module["_emscripten_bind_Binary_Size_0"] = createExportWrapper("emscripten_bind_Binary_Size_0");
|
|
2780
|
+
var _emscripten_bind_Binary___destroy___0 = Module["_emscripten_bind_Binary___destroy___0"] = createExportWrapper("emscripten_bind_Binary___destroy___0");
|
|
2781
|
+
var _emscripten_bind_AdaptEvaluationUnit_LoadFromFile_1 = Module["_emscripten_bind_AdaptEvaluationUnit_LoadFromFile_1"] = createExportWrapper("emscripten_bind_AdaptEvaluationUnit_LoadFromFile_1");
|
|
2782
|
+
var _emscripten_bind_AdaptEvaluationUnit_LoadFromContents_1 = Module["_emscripten_bind_AdaptEvaluationUnit_LoadFromContents_1"] = createExportWrapper("emscripten_bind_AdaptEvaluationUnit_LoadFromContents_1");
|
|
2783
|
+
var _emscripten_bind_AdaptEvaluationUnit_Destroy_0 = Module["_emscripten_bind_AdaptEvaluationUnit_Destroy_0"] = createExportWrapper("emscripten_bind_AdaptEvaluationUnit_Destroy_0");
|
|
2784
|
+
var _emscripten_bind_AdaptEvaluationUnit_Check_0 = Module["_emscripten_bind_AdaptEvaluationUnit_Check_0"] = createExportWrapper("emscripten_bind_AdaptEvaluationUnit_Check_0");
|
|
2785
|
+
var _emscripten_bind_AdaptEvaluationUnit_Clone_0 = Module["_emscripten_bind_AdaptEvaluationUnit_Clone_0"] = createExportWrapper("emscripten_bind_AdaptEvaluationUnit_Clone_0");
|
|
2786
|
+
var _emscripten_bind_AdaptEvaluationUnit___destroy___0 = Module["_emscripten_bind_AdaptEvaluationUnit___destroy___0"] = createExportWrapper("emscripten_bind_AdaptEvaluationUnit___destroy___0");
|
|
2787
|
+
var _emscripten_bind_AdaptValue_FromString_1 = Module["_emscripten_bind_AdaptValue_FromString_1"] = createExportWrapper("emscripten_bind_AdaptValue_FromString_1");
|
|
2788
|
+
var _emscripten_bind_AdaptValue_FromNumber_1 = Module["_emscripten_bind_AdaptValue_FromNumber_1"] = createExportWrapper("emscripten_bind_AdaptValue_FromNumber_1");
|
|
2789
|
+
var _emscripten_bind_AdaptValue_FromBoolean_1 = Module["_emscripten_bind_AdaptValue_FromBoolean_1"] = createExportWrapper("emscripten_bind_AdaptValue_FromBoolean_1");
|
|
2790
|
+
var _emscripten_bind_AdaptValue_NilObject_0 = Module["_emscripten_bind_AdaptValue_NilObject_0"] = createExportWrapper("emscripten_bind_AdaptValue_NilObject_0");
|
|
2791
|
+
var _emscripten_bind_AdaptValue_Visualize_0 = Module["_emscripten_bind_AdaptValue_Visualize_0"] = createExportWrapper("emscripten_bind_AdaptValue_Visualize_0");
|
|
2792
|
+
var _emscripten_bind_AdaptValue_Serialize_0 = Module["_emscripten_bind_AdaptValue_Serialize_0"] = createExportWrapper("emscripten_bind_AdaptValue_Serialize_0");
|
|
2793
|
+
var _emscripten_bind_AdaptValue_GetHash_0 = Module["_emscripten_bind_AdaptValue_GetHash_0"] = createExportWrapper("emscripten_bind_AdaptValue_GetHash_0");
|
|
2794
|
+
var _emscripten_bind_AdaptValue_Reduce_1 = Module["_emscripten_bind_AdaptValue_Reduce_1"] = createExportWrapper("emscripten_bind_AdaptValue_Reduce_1");
|
|
2795
|
+
var _emscripten_bind_AdaptValue_Mutate_2 = Module["_emscripten_bind_AdaptValue_Mutate_2"] = createExportWrapper("emscripten_bind_AdaptValue_Mutate_2");
|
|
2796
|
+
var _emscripten_bind_AdaptValue_GetPacket_0 = Module["_emscripten_bind_AdaptValue_GetPacket_0"] = createExportWrapper("emscripten_bind_AdaptValue_GetPacket_0");
|
|
2797
|
+
var _emscripten_bind_AdaptValue_GetNumber_0 = Module["_emscripten_bind_AdaptValue_GetNumber_0"] = createExportWrapper("emscripten_bind_AdaptValue_GetNumber_0");
|
|
2798
|
+
var _emscripten_bind_AdaptValue_GetBoolean_0 = Module["_emscripten_bind_AdaptValue_GetBoolean_0"] = createExportWrapper("emscripten_bind_AdaptValue_GetBoolean_0");
|
|
2799
|
+
var _emscripten_bind_AdaptValue_GetBinary_0 = Module["_emscripten_bind_AdaptValue_GetBinary_0"] = createExportWrapper("emscripten_bind_AdaptValue_GetBinary_0");
|
|
2800
|
+
var _emscripten_bind_AdaptValue_IsNil_0 = Module["_emscripten_bind_AdaptValue_IsNil_0"] = createExportWrapper("emscripten_bind_AdaptValue_IsNil_0");
|
|
2801
|
+
var _emscripten_bind_AdaptValue_Equals_1 = Module["_emscripten_bind_AdaptValue_Equals_1"] = createExportWrapper("emscripten_bind_AdaptValue_Equals_1");
|
|
2802
|
+
var _emscripten_bind_AdaptValue_Less_1 = Module["_emscripten_bind_AdaptValue_Less_1"] = createExportWrapper("emscripten_bind_AdaptValue_Less_1");
|
|
2803
|
+
var _emscripten_bind_AdaptValue_GetKeys_0 = Module["_emscripten_bind_AdaptValue_GetKeys_0"] = createExportWrapper("emscripten_bind_AdaptValue_GetKeys_0");
|
|
2804
|
+
var _emscripten_bind_AdaptValue_Clone_0 = Module["_emscripten_bind_AdaptValue_Clone_0"] = createExportWrapper("emscripten_bind_AdaptValue_Clone_0");
|
|
2805
|
+
var _emscripten_bind_AdaptValue_Destroy_0 = Module["_emscripten_bind_AdaptValue_Destroy_0"] = createExportWrapper("emscripten_bind_AdaptValue_Destroy_0");
|
|
2806
|
+
var _emscripten_bind_AdaptValue_Check_0 = Module["_emscripten_bind_AdaptValue_Check_0"] = createExportWrapper("emscripten_bind_AdaptValue_Check_0");
|
|
2807
|
+
var _emscripten_bind_AdaptValue___destroy___0 = Module["_emscripten_bind_AdaptValue___destroy___0"] = createExportWrapper("emscripten_bind_AdaptValue___destroy___0");
|
|
2808
|
+
var _emscripten_bind_AdaptPacketContext_LoadFromFile_1 = Module["_emscripten_bind_AdaptPacketContext_LoadFromFile_1"] = createExportWrapper("emscripten_bind_AdaptPacketContext_LoadFromFile_1");
|
|
2809
|
+
var _emscripten_bind_AdaptPacketContext_LoadFromContents_1 = Module["_emscripten_bind_AdaptPacketContext_LoadFromContents_1"] = createExportWrapper("emscripten_bind_AdaptPacketContext_LoadFromContents_1");
|
|
2810
|
+
var _emscripten_bind_AdaptPacketContext_ParseValue_1 = Module["_emscripten_bind_AdaptPacketContext_ParseValue_1"] = createExportWrapper("emscripten_bind_AdaptPacketContext_ParseValue_1");
|
|
2811
|
+
var _emscripten_bind_AdaptPacketContext_ParseValueFromJSON_1 = Module["_emscripten_bind_AdaptPacketContext_ParseValueFromJSON_1"] = createExportWrapper("emscripten_bind_AdaptPacketContext_ParseValueFromJSON_1");
|
|
2812
|
+
var _emscripten_bind_AdaptPacketContext_CreateDictionary_0 = Module["_emscripten_bind_AdaptPacketContext_CreateDictionary_0"] = createExportWrapper("emscripten_bind_AdaptPacketContext_CreateDictionary_0");
|
|
2813
|
+
var _emscripten_bind_AdaptPacketContext_NewBinaryFromHex_1 = Module["_emscripten_bind_AdaptPacketContext_NewBinaryFromHex_1"] = createExportWrapper("emscripten_bind_AdaptPacketContext_NewBinaryFromHex_1");
|
|
2814
|
+
var _emscripten_bind_AdaptPacketContext_NewBinaryFromBuffer_1 = Module["_emscripten_bind_AdaptPacketContext_NewBinaryFromBuffer_1"] = createExportWrapper("emscripten_bind_AdaptPacketContext_NewBinaryFromBuffer_1");
|
|
2815
|
+
var _emscripten_bind_AdaptPacketContext_ExecuteTransaction_3 = Module["_emscripten_bind_AdaptPacketContext_ExecuteTransaction_3"] = createExportWrapper("emscripten_bind_AdaptPacketContext_ExecuteTransaction_3");
|
|
2816
|
+
var _emscripten_bind_AdaptPacketContext_GetFunction_1 = Module["_emscripten_bind_AdaptPacketContext_GetFunction_1"] = createExportWrapper("emscripten_bind_AdaptPacketContext_GetFunction_1");
|
|
2817
|
+
var _emscripten_bind_AdaptPacketContext_GetHash_0 = Module["_emscripten_bind_AdaptPacketContext_GetHash_0"] = createExportWrapper("emscripten_bind_AdaptPacketContext_GetHash_0");
|
|
2818
|
+
var _emscripten_bind_AdaptPacketContext_GetContainerID_0 = Module["_emscripten_bind_AdaptPacketContext_GetContainerID_0"] = createExportWrapper("emscripten_bind_AdaptPacketContext_GetContainerID_0");
|
|
2819
|
+
var _emscripten_bind_AdaptPacketContext_GetCodeID_0 = Module["_emscripten_bind_AdaptPacketContext_GetCodeID_0"] = createExportWrapper("emscripten_bind_AdaptPacketContext_GetCodeID_0");
|
|
2820
|
+
var _emscripten_bind_AdaptPacketContext_Serialize_0 = Module["_emscripten_bind_AdaptPacketContext_Serialize_0"] = createExportWrapper("emscripten_bind_AdaptPacketContext_Serialize_0");
|
|
2821
|
+
var _emscripten_bind_AdaptPacketContext_Destroy_0 = Module["_emscripten_bind_AdaptPacketContext_Destroy_0"] = createExportWrapper("emscripten_bind_AdaptPacketContext_Destroy_0");
|
|
2822
|
+
var _emscripten_bind_AdaptPacketContext_Check_0 = Module["_emscripten_bind_AdaptPacketContext_Check_0"] = createExportWrapper("emscripten_bind_AdaptPacketContext_Check_0");
|
|
2823
|
+
var _emscripten_bind_AdaptPacketContext_Clone_0 = Module["_emscripten_bind_AdaptPacketContext_Clone_0"] = createExportWrapper("emscripten_bind_AdaptPacketContext_Clone_0");
|
|
2824
|
+
var _emscripten_bind_AdaptPacketContext_TransactionsList_0 = Module["_emscripten_bind_AdaptPacketContext_TransactionsList_0"] = createExportWrapper("emscripten_bind_AdaptPacketContext_TransactionsList_0");
|
|
2825
|
+
var _emscripten_bind_AdaptPacketContext_NilObject_0 = Module["_emscripten_bind_AdaptPacketContext_NilObject_0"] = createExportWrapper("emscripten_bind_AdaptPacketContext_NilObject_0");
|
|
2826
|
+
var _emscripten_bind_AdaptPacketContext___destroy___0 = Module["_emscripten_bind_AdaptPacketContext___destroy___0"] = createExportWrapper("emscripten_bind_AdaptPacketContext___destroy___0");
|
|
2827
|
+
var _emscripten_bind_AdaptFunctionInvocation_Reset_0 = Module["_emscripten_bind_AdaptFunctionInvocation_Reset_0"] = createExportWrapper("emscripten_bind_AdaptFunctionInvocation_Reset_0");
|
|
2828
|
+
var _emscripten_bind_AdaptFunctionInvocation_PushParameter_1 = Module["_emscripten_bind_AdaptFunctionInvocation_PushParameter_1"] = createExportWrapper("emscripten_bind_AdaptFunctionInvocation_PushParameter_1");
|
|
2829
|
+
var _emscripten_bind_AdaptFunctionInvocation_Execute_0 = Module["_emscripten_bind_AdaptFunctionInvocation_Execute_0"] = createExportWrapper("emscripten_bind_AdaptFunctionInvocation_Execute_0");
|
|
2830
|
+
var _emscripten_bind_AdaptFunctionInvocation_Destroy_0 = Module["_emscripten_bind_AdaptFunctionInvocation_Destroy_0"] = createExportWrapper("emscripten_bind_AdaptFunctionInvocation_Destroy_0");
|
|
2831
|
+
var _emscripten_bind_AdaptFunctionInvocation_Check_0 = Module["_emscripten_bind_AdaptFunctionInvocation_Check_0"] = createExportWrapper("emscripten_bind_AdaptFunctionInvocation_Check_0");
|
|
2832
|
+
var _emscripten_bind_AdaptFunctionInvocation___destroy___0 = Module["_emscripten_bind_AdaptFunctionInvocation___destroy___0"] = createExportWrapper("emscripten_bind_AdaptFunctionInvocation___destroy___0");
|
|
2833
|
+
var _emscripten_bind_AdaptEnvironment_AdaptEnvironment_0 = Module["_emscripten_bind_AdaptEnvironment_AdaptEnvironment_0"] = createExportWrapper("emscripten_bind_AdaptEnvironment_AdaptEnvironment_0");
|
|
2834
|
+
var _emscripten_bind_AdaptEnvironment_Initialize_1 = Module["_emscripten_bind_AdaptEnvironment_Initialize_1"] = createExportWrapper("emscripten_bind_AdaptEnvironment_Initialize_1");
|
|
2835
|
+
var _emscripten_bind_AdaptEnvironment_EmptyPacket_1 = Module["_emscripten_bind_AdaptEnvironment_EmptyPacket_1"] = createExportWrapper("emscripten_bind_AdaptEnvironment_EmptyPacket_1");
|
|
2836
|
+
var _emscripten_bind_AdaptEnvironment_CreatePacket_6 = Module["_emscripten_bind_AdaptEnvironment_CreatePacket_6"] = createExportWrapper("emscripten_bind_AdaptEnvironment_CreatePacket_6");
|
|
2837
|
+
var _emscripten_bind_AdaptEnvironment_SystemTime_0 = Module["_emscripten_bind_AdaptEnvironment_SystemTime_0"] = createExportWrapper("emscripten_bind_AdaptEnvironment_SystemTime_0");
|
|
2838
|
+
var _emscripten_bind_AdaptEnvironment_ParseTime_1 = Module["_emscripten_bind_AdaptEnvironment_ParseTime_1"] = createExportWrapper("emscripten_bind_AdaptEnvironment_ParseTime_1");
|
|
2839
|
+
var _emscripten_bind_AdaptEnvironment_GetRandomBytes_1 = Module["_emscripten_bind_AdaptEnvironment_GetRandomBytes_1"] = createExportWrapper("emscripten_bind_AdaptEnvironment_GetRandomBytes_1");
|
|
2840
|
+
var _emscripten_bind_AdaptEnvironment_hasError_0 = Module["_emscripten_bind_AdaptEnvironment_hasError_0"] = createExportWrapper("emscripten_bind_AdaptEnvironment_hasError_0");
|
|
2841
|
+
var _emscripten_bind_AdaptEnvironment_getError_0 = Module["_emscripten_bind_AdaptEnvironment_getError_0"] = createExportWrapper("emscripten_bind_AdaptEnvironment_getError_0");
|
|
2842
|
+
var _emscripten_bind_AdaptEnvironment_clearError_0 = Module["_emscripten_bind_AdaptEnvironment_clearError_0"] = createExportWrapper("emscripten_bind_AdaptEnvironment_clearError_0");
|
|
2843
|
+
var _emscripten_bind_AdaptEnvironment_countObjectsOutstanding_0 = Module["_emscripten_bind_AdaptEnvironment_countObjectsOutstanding_0"] = createExportWrapper("emscripten_bind_AdaptEnvironment_countObjectsOutstanding_0");
|
|
2844
|
+
var _emscripten_bind_AdaptEnvironment_getStderrContents_0 = Module["_emscripten_bind_AdaptEnvironment_getStderrContents_0"] = createExportWrapper("emscripten_bind_AdaptEnvironment_getStderrContents_0");
|
|
2845
|
+
var _emscripten_bind_AdaptEnvironment_getStdoutContents_0 = Module["_emscripten_bind_AdaptEnvironment_getStdoutContents_0"] = createExportWrapper("emscripten_bind_AdaptEnvironment_getStdoutContents_0");
|
|
2846
|
+
var _emscripten_bind_AdaptEnvironment___destroy___0 = Module["_emscripten_bind_AdaptEnvironment___destroy___0"] = createExportWrapper("emscripten_bind_AdaptEnvironment___destroy___0");
|
|
2847
|
+
var _malloc = Module["_malloc"] = createExportWrapper("malloc");
|
|
2848
|
+
var _free = Module["_free"] = createExportWrapper("free");
|
|
2849
|
+
var ___errno_location = Module["___errno_location"] = createExportWrapper("__errno_location");
|
|
2850
|
+
var _ntohs = Module["_ntohs"] = createExportWrapper("ntohs");
|
|
2851
|
+
var ___stdio_exit = Module["___stdio_exit"] = createExportWrapper("__stdio_exit");
|
|
2852
|
+
var ___funcs_on_exit = Module["___funcs_on_exit"] = createExportWrapper("__funcs_on_exit");
|
|
2853
|
+
var _htonl = Module["_htonl"] = createExportWrapper("htonl");
|
|
2854
|
+
var _htons = Module["_htons"] = createExportWrapper("htons");
|
|
2855
|
+
var _memalign = Module["_memalign"] = createExportWrapper("memalign");
|
|
2856
|
+
var _setThrew = Module["_setThrew"] = createExportWrapper("setThrew");
|
|
2857
|
+
var _emscripten_stack_init = Module["_emscripten_stack_init"] = function () { return (_emscripten_stack_init = Module["_emscripten_stack_init"] = Module["asm"]["emscripten_stack_init"]).apply(null, arguments); };
|
|
2858
|
+
var _emscripten_stack_get_free = Module["_emscripten_stack_get_free"] = function () { return (_emscripten_stack_get_free = Module["_emscripten_stack_get_free"] = Module["asm"]["emscripten_stack_get_free"]).apply(null, arguments); };
|
|
2859
|
+
var _emscripten_stack_get_base = Module["_emscripten_stack_get_base"] = function () { return (_emscripten_stack_get_base = Module["_emscripten_stack_get_base"] = Module["asm"]["emscripten_stack_get_base"]).apply(null, arguments); };
|
|
2860
|
+
var _emscripten_stack_get_end = Module["_emscripten_stack_get_end"] = function () { return (_emscripten_stack_get_end = Module["_emscripten_stack_get_end"] = Module["asm"]["emscripten_stack_get_end"]).apply(null, arguments); };
|
|
2861
|
+
var stackSave = Module["stackSave"] = createExportWrapper("stackSave");
|
|
2862
|
+
var stackRestore = Module["stackRestore"] = createExportWrapper("stackRestore");
|
|
2863
|
+
var stackAlloc = Module["stackAlloc"] = createExportWrapper("stackAlloc");
|
|
2864
|
+
var ___cxa_demangle = Module["___cxa_demangle"] = createExportWrapper("__cxa_demangle");
|
|
2865
|
+
var ___cxa_can_catch = Module["___cxa_can_catch"] = createExportWrapper("__cxa_can_catch");
|
|
2866
|
+
var ___cxa_is_pointer_type = Module["___cxa_is_pointer_type"] = createExportWrapper("__cxa_is_pointer_type");
|
|
2867
|
+
var ___set_stack_limits = Module["___set_stack_limits"] = createExportWrapper("__set_stack_limits");
|
|
2868
|
+
var dynCall_iij = Module["dynCall_iij"] = createExportWrapper("dynCall_iij");
|
|
2869
|
+
var dynCall_iiiji = Module["dynCall_iiiji"] = createExportWrapper("dynCall_iiiji");
|
|
2870
|
+
var dynCall_iiij = Module["dynCall_iiij"] = createExportWrapper("dynCall_iiij");
|
|
2871
|
+
var dynCall_iijii = Module["dynCall_iijii"] = createExportWrapper("dynCall_iijii");
|
|
2872
|
+
var dynCall_iiijiji = Module["dynCall_iiijiji"] = createExportWrapper("dynCall_iiijiji");
|
|
2873
|
+
var dynCall_iiijiii = Module["dynCall_iiijiii"] = createExportWrapper("dynCall_iiijiii");
|
|
2874
|
+
var dynCall_vijjjj = Module["dynCall_vijjjj"] = createExportWrapper("dynCall_vijjjj");
|
|
2875
|
+
var dynCall_j = Module["dynCall_j"] = createExportWrapper("dynCall_j");
|
|
2876
|
+
var dynCall_jiji = Module["dynCall_jiji"] = createExportWrapper("dynCall_jiji");
|
|
2877
|
+
var dynCall_viij = Module["dynCall_viij"] = createExportWrapper("dynCall_viij");
|
|
2878
|
+
var dynCall_viiji = Module["dynCall_viiji"] = createExportWrapper("dynCall_viiji");
|
|
2879
|
+
var dynCall_viijii = Module["dynCall_viijii"] = createExportWrapper("dynCall_viijii");
|
|
2880
|
+
var dynCall_iiiiij = Module["dynCall_iiiiij"] = createExportWrapper("dynCall_iiiiij");
|
|
2881
|
+
var dynCall_iiiiijj = Module["dynCall_iiiiijj"] = createExportWrapper("dynCall_iiiiijj");
|
|
2882
|
+
var dynCall_iiiiiijj = Module["dynCall_iiiiiijj"] = createExportWrapper("dynCall_iiiiiijj");
|
|
2883
|
+
function invoke_iii(index, a1, a2) { var sp = stackSave(); try {
|
|
2884
|
+
return getWasmTableEntry(index)(a1, a2);
|
|
2885
|
+
}
|
|
2886
|
+
catch (e) {
|
|
2887
|
+
stackRestore(sp);
|
|
2888
|
+
if (e !== e + 0 && e !== "longjmp")
|
|
2889
|
+
throw e;
|
|
2890
|
+
_setThrew(1, 0);
|
|
2891
|
+
} }
|
|
2892
|
+
function invoke_ii(index, a1) { var sp = stackSave(); try {
|
|
2893
|
+
return getWasmTableEntry(index)(a1);
|
|
2894
|
+
}
|
|
2895
|
+
catch (e) {
|
|
2896
|
+
stackRestore(sp);
|
|
2897
|
+
if (e !== e + 0 && e !== "longjmp")
|
|
2898
|
+
throw e;
|
|
2899
|
+
_setThrew(1, 0);
|
|
2900
|
+
} }
|
|
2901
|
+
function invoke_vi(index, a1) { var sp = stackSave(); try {
|
|
2902
|
+
getWasmTableEntry(index)(a1);
|
|
2903
|
+
}
|
|
2904
|
+
catch (e) {
|
|
2905
|
+
stackRestore(sp);
|
|
2906
|
+
if (e !== e + 0 && e !== "longjmp")
|
|
2907
|
+
throw e;
|
|
2908
|
+
_setThrew(1, 0);
|
|
2909
|
+
} }
|
|
2910
|
+
function invoke_v(index) { var sp = stackSave(); try {
|
|
2911
|
+
getWasmTableEntry(index)();
|
|
2912
|
+
}
|
|
2913
|
+
catch (e) {
|
|
2914
|
+
stackRestore(sp);
|
|
2915
|
+
if (e !== e + 0 && e !== "longjmp")
|
|
2916
|
+
throw e;
|
|
2917
|
+
_setThrew(1, 0);
|
|
2918
|
+
} }
|
|
2919
|
+
function invoke_vii(index, a1, a2) { var sp = stackSave(); try {
|
|
2920
|
+
getWasmTableEntry(index)(a1, a2);
|
|
2921
|
+
}
|
|
2922
|
+
catch (e) {
|
|
2923
|
+
stackRestore(sp);
|
|
2924
|
+
if (e !== e + 0 && e !== "longjmp")
|
|
2925
|
+
throw e;
|
|
2926
|
+
_setThrew(1, 0);
|
|
2927
|
+
} }
|
|
2928
|
+
function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) { var sp = stackSave(); try {
|
|
2929
|
+
return getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7);
|
|
2930
|
+
}
|
|
2931
|
+
catch (e) {
|
|
2932
|
+
stackRestore(sp);
|
|
2933
|
+
if (e !== e + 0 && e !== "longjmp")
|
|
2934
|
+
throw e;
|
|
2935
|
+
_setThrew(1, 0);
|
|
2936
|
+
} }
|
|
2937
|
+
function invoke_viiii(index, a1, a2, a3, a4) { var sp = stackSave(); try {
|
|
2938
|
+
getWasmTableEntry(index)(a1, a2, a3, a4);
|
|
2939
|
+
}
|
|
2940
|
+
catch (e) {
|
|
2941
|
+
stackRestore(sp);
|
|
2942
|
+
if (e !== e + 0 && e !== "longjmp")
|
|
2943
|
+
throw e;
|
|
2944
|
+
_setThrew(1, 0);
|
|
2945
|
+
} }
|
|
2946
|
+
function invoke_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7) { var sp = stackSave(); try {
|
|
2947
|
+
getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7);
|
|
2948
|
+
}
|
|
2949
|
+
catch (e) {
|
|
2950
|
+
stackRestore(sp);
|
|
2951
|
+
if (e !== e + 0 && e !== "longjmp")
|
|
2952
|
+
throw e;
|
|
2953
|
+
_setThrew(1, 0);
|
|
2954
|
+
} }
|
|
2955
|
+
function invoke_iiii(index, a1, a2, a3) { var sp = stackSave(); try {
|
|
2956
|
+
return getWasmTableEntry(index)(a1, a2, a3);
|
|
2957
|
+
}
|
|
2958
|
+
catch (e) {
|
|
2959
|
+
stackRestore(sp);
|
|
2960
|
+
if (e !== e + 0 && e !== "longjmp")
|
|
2961
|
+
throw e;
|
|
2962
|
+
_setThrew(1, 0);
|
|
2963
|
+
} }
|
|
2964
|
+
function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) { var sp = stackSave(); try {
|
|
2965
|
+
return getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6);
|
|
2966
|
+
}
|
|
2967
|
+
catch (e) {
|
|
2968
|
+
stackRestore(sp);
|
|
2969
|
+
if (e !== e + 0 && e !== "longjmp")
|
|
2970
|
+
throw e;
|
|
2971
|
+
_setThrew(1, 0);
|
|
2972
|
+
} }
|
|
2973
|
+
function invoke_iiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) { var sp = stackSave(); try {
|
|
2974
|
+
return getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
|
|
2975
|
+
}
|
|
2976
|
+
catch (e) {
|
|
2977
|
+
stackRestore(sp);
|
|
2978
|
+
if (e !== e + 0 && e !== "longjmp")
|
|
2979
|
+
throw e;
|
|
2980
|
+
_setThrew(1, 0);
|
|
2981
|
+
} }
|
|
2982
|
+
function invoke_viiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) { var sp = stackSave(); try {
|
|
2983
|
+
getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
|
|
2984
|
+
}
|
|
2985
|
+
catch (e) {
|
|
2986
|
+
stackRestore(sp);
|
|
2987
|
+
if (e !== e + 0 && e !== "longjmp")
|
|
2988
|
+
throw e;
|
|
2989
|
+
_setThrew(1, 0);
|
|
2990
|
+
} }
|
|
2991
|
+
function invoke_viii(index, a1, a2, a3) { var sp = stackSave(); try {
|
|
2992
|
+
getWasmTableEntry(index)(a1, a2, a3);
|
|
2993
|
+
}
|
|
2994
|
+
catch (e) {
|
|
2995
|
+
stackRestore(sp);
|
|
2996
|
+
if (e !== e + 0 && e !== "longjmp")
|
|
2997
|
+
throw e;
|
|
2998
|
+
_setThrew(1, 0);
|
|
2999
|
+
} }
|
|
3000
|
+
function invoke_viiiiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15) { var sp = stackSave(); try {
|
|
3001
|
+
getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15);
|
|
3002
|
+
}
|
|
3003
|
+
catch (e) {
|
|
3004
|
+
stackRestore(sp);
|
|
3005
|
+
if (e !== e + 0 && e !== "longjmp")
|
|
3006
|
+
throw e;
|
|
3007
|
+
_setThrew(1, 0);
|
|
3008
|
+
} }
|
|
3009
|
+
function invoke_i(index) { var sp = stackSave(); try {
|
|
3010
|
+
return getWasmTableEntry(index)();
|
|
3011
|
+
}
|
|
3012
|
+
catch (e) {
|
|
3013
|
+
stackRestore(sp);
|
|
3014
|
+
if (e !== e + 0 && e !== "longjmp")
|
|
3015
|
+
throw e;
|
|
3016
|
+
_setThrew(1, 0);
|
|
3017
|
+
} }
|
|
3018
|
+
function invoke_iiiii(index, a1, a2, a3, a4) { var sp = stackSave(); try {
|
|
3019
|
+
return getWasmTableEntry(index)(a1, a2, a3, a4);
|
|
3020
|
+
}
|
|
3021
|
+
catch (e) {
|
|
3022
|
+
stackRestore(sp);
|
|
3023
|
+
if (e !== e + 0 && e !== "longjmp")
|
|
3024
|
+
throw e;
|
|
3025
|
+
_setThrew(1, 0);
|
|
3026
|
+
} }
|
|
3027
|
+
function invoke_vijjjj(index, a1, a2, a3, a4, a5, a6, a7, a8, a9) { var sp = stackSave(); try {
|
|
3028
|
+
dynCall_vijjjj(index, a1, a2, a3, a4, a5, a6, a7, a8, a9);
|
|
3029
|
+
}
|
|
3030
|
+
catch (e) {
|
|
3031
|
+
stackRestore(sp);
|
|
3032
|
+
if (e !== e + 0 && e !== "longjmp")
|
|
3033
|
+
throw e;
|
|
3034
|
+
_setThrew(1, 0);
|
|
3035
|
+
} }
|
|
3036
|
+
function invoke_j(index) { var sp = stackSave(); try {
|
|
3037
|
+
return dynCall_j(index);
|
|
3038
|
+
}
|
|
3039
|
+
catch (e) {
|
|
3040
|
+
stackRestore(sp);
|
|
3041
|
+
if (e !== e + 0 && e !== "longjmp")
|
|
3042
|
+
throw e;
|
|
3043
|
+
_setThrew(1, 0);
|
|
3044
|
+
} }
|
|
3045
|
+
if (!Object.getOwnPropertyDescriptor(Module, "intArrayFromString"))
|
|
3046
|
+
Module["intArrayFromString"] = (() => abort("'intArrayFromString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3047
|
+
if (!Object.getOwnPropertyDescriptor(Module, "intArrayToString"))
|
|
3048
|
+
Module["intArrayToString"] = (() => abort("'intArrayToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3049
|
+
if (!Object.getOwnPropertyDescriptor(Module, "ccall"))
|
|
3050
|
+
Module["ccall"] = (() => abort("'ccall' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3051
|
+
if (!Object.getOwnPropertyDescriptor(Module, "cwrap"))
|
|
3052
|
+
Module["cwrap"] = (() => abort("'cwrap' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3053
|
+
if (!Object.getOwnPropertyDescriptor(Module, "setValue"))
|
|
3054
|
+
Module["setValue"] = (() => abort("'setValue' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3055
|
+
if (!Object.getOwnPropertyDescriptor(Module, "getValue"))
|
|
3056
|
+
Module["getValue"] = (() => abort("'getValue' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3057
|
+
if (!Object.getOwnPropertyDescriptor(Module, "allocate"))
|
|
3058
|
+
Module["allocate"] = (() => abort("'allocate' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3059
|
+
if (!Object.getOwnPropertyDescriptor(Module, "UTF8ArrayToString"))
|
|
3060
|
+
Module["UTF8ArrayToString"] = (() => abort("'UTF8ArrayToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3061
|
+
if (!Object.getOwnPropertyDescriptor(Module, "UTF8ToString"))
|
|
3062
|
+
Module["UTF8ToString"] = (() => abort("'UTF8ToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3063
|
+
if (!Object.getOwnPropertyDescriptor(Module, "stringToUTF8Array"))
|
|
3064
|
+
Module["stringToUTF8Array"] = (() => abort("'stringToUTF8Array' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3065
|
+
if (!Object.getOwnPropertyDescriptor(Module, "stringToUTF8"))
|
|
3066
|
+
Module["stringToUTF8"] = (() => abort("'stringToUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3067
|
+
if (!Object.getOwnPropertyDescriptor(Module, "lengthBytesUTF8"))
|
|
3068
|
+
Module["lengthBytesUTF8"] = (() => abort("'lengthBytesUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3069
|
+
if (!Object.getOwnPropertyDescriptor(Module, "stackTrace"))
|
|
3070
|
+
Module["stackTrace"] = (() => abort("'stackTrace' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3071
|
+
if (!Object.getOwnPropertyDescriptor(Module, "addOnPreRun"))
|
|
3072
|
+
Module["addOnPreRun"] = (() => abort("'addOnPreRun' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3073
|
+
if (!Object.getOwnPropertyDescriptor(Module, "addOnInit"))
|
|
3074
|
+
Module["addOnInit"] = (() => abort("'addOnInit' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3075
|
+
if (!Object.getOwnPropertyDescriptor(Module, "addOnPreMain"))
|
|
3076
|
+
Module["addOnPreMain"] = (() => abort("'addOnPreMain' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3077
|
+
if (!Object.getOwnPropertyDescriptor(Module, "addOnExit"))
|
|
3078
|
+
Module["addOnExit"] = (() => abort("'addOnExit' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3079
|
+
if (!Object.getOwnPropertyDescriptor(Module, "addOnPostRun"))
|
|
3080
|
+
Module["addOnPostRun"] = (() => abort("'addOnPostRun' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3081
|
+
if (!Object.getOwnPropertyDescriptor(Module, "writeStringToMemory"))
|
|
3082
|
+
Module["writeStringToMemory"] = (() => abort("'writeStringToMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3083
|
+
if (!Object.getOwnPropertyDescriptor(Module, "writeArrayToMemory"))
|
|
3084
|
+
Module["writeArrayToMemory"] = (() => abort("'writeArrayToMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3085
|
+
if (!Object.getOwnPropertyDescriptor(Module, "writeAsciiToMemory"))
|
|
3086
|
+
Module["writeAsciiToMemory"] = (() => abort("'writeAsciiToMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3087
|
+
Module["addRunDependency"] = addRunDependency;
|
|
3088
|
+
Module["removeRunDependency"] = removeRunDependency;
|
|
3089
|
+
if (!Object.getOwnPropertyDescriptor(Module, "FS_createFolder"))
|
|
3090
|
+
Module["FS_createFolder"] = (() => abort("'FS_createFolder' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3091
|
+
Module["FS_createPath"] = FS.createPath;
|
|
3092
|
+
Module["FS_createDataFile"] = FS.createDataFile;
|
|
3093
|
+
Module["FS_createPreloadedFile"] = FS.createPreloadedFile;
|
|
3094
|
+
Module["FS_createLazyFile"] = FS.createLazyFile;
|
|
3095
|
+
if (!Object.getOwnPropertyDescriptor(Module, "FS_createLink"))
|
|
3096
|
+
Module["FS_createLink"] = (() => abort("'FS_createLink' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3097
|
+
Module["FS_createDevice"] = FS.createDevice;
|
|
3098
|
+
Module["FS_unlink"] = FS.unlink;
|
|
3099
|
+
if (!Object.getOwnPropertyDescriptor(Module, "getLEB"))
|
|
3100
|
+
Module["getLEB"] = (() => abort("'getLEB' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3101
|
+
if (!Object.getOwnPropertyDescriptor(Module, "getFunctionTables"))
|
|
3102
|
+
Module["getFunctionTables"] = (() => abort("'getFunctionTables' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3103
|
+
if (!Object.getOwnPropertyDescriptor(Module, "alignFunctionTables"))
|
|
3104
|
+
Module["alignFunctionTables"] = (() => abort("'alignFunctionTables' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3105
|
+
if (!Object.getOwnPropertyDescriptor(Module, "registerFunctions"))
|
|
3106
|
+
Module["registerFunctions"] = (() => abort("'registerFunctions' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3107
|
+
if (!Object.getOwnPropertyDescriptor(Module, "addFunction"))
|
|
3108
|
+
Module["addFunction"] = (() => abort("'addFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3109
|
+
if (!Object.getOwnPropertyDescriptor(Module, "removeFunction"))
|
|
3110
|
+
Module["removeFunction"] = (() => abort("'removeFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3111
|
+
if (!Object.getOwnPropertyDescriptor(Module, "getFuncWrapper"))
|
|
3112
|
+
Module["getFuncWrapper"] = (() => abort("'getFuncWrapper' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3113
|
+
if (!Object.getOwnPropertyDescriptor(Module, "prettyPrint"))
|
|
3114
|
+
Module["prettyPrint"] = (() => abort("'prettyPrint' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3115
|
+
if (!Object.getOwnPropertyDescriptor(Module, "dynCall"))
|
|
3116
|
+
Module["dynCall"] = (() => abort("'dynCall' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3117
|
+
if (!Object.getOwnPropertyDescriptor(Module, "getCompilerSetting"))
|
|
3118
|
+
Module["getCompilerSetting"] = (() => abort("'getCompilerSetting' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3119
|
+
if (!Object.getOwnPropertyDescriptor(Module, "print"))
|
|
3120
|
+
Module["print"] = (() => abort("'print' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3121
|
+
if (!Object.getOwnPropertyDescriptor(Module, "printErr"))
|
|
3122
|
+
Module["printErr"] = (() => abort("'printErr' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3123
|
+
if (!Object.getOwnPropertyDescriptor(Module, "getTempRet0"))
|
|
3124
|
+
Module["getTempRet0"] = (() => abort("'getTempRet0' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3125
|
+
if (!Object.getOwnPropertyDescriptor(Module, "setTempRet0"))
|
|
3126
|
+
Module["setTempRet0"] = (() => abort("'setTempRet0' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3127
|
+
if (!Object.getOwnPropertyDescriptor(Module, "callMain"))
|
|
3128
|
+
Module["callMain"] = (() => abort("'callMain' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3129
|
+
if (!Object.getOwnPropertyDescriptor(Module, "abort"))
|
|
3130
|
+
Module["abort"] = (() => abort("'abort' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3131
|
+
if (!Object.getOwnPropertyDescriptor(Module, "keepRuntimeAlive"))
|
|
3132
|
+
Module["keepRuntimeAlive"] = (() => abort("'keepRuntimeAlive' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3133
|
+
if (!Object.getOwnPropertyDescriptor(Module, "zeroMemory"))
|
|
3134
|
+
Module["zeroMemory"] = (() => abort("'zeroMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3135
|
+
if (!Object.getOwnPropertyDescriptor(Module, "stringToNewUTF8"))
|
|
3136
|
+
Module["stringToNewUTF8"] = (() => abort("'stringToNewUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3137
|
+
if (!Object.getOwnPropertyDescriptor(Module, "setFileTime"))
|
|
3138
|
+
Module["setFileTime"] = (() => abort("'setFileTime' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3139
|
+
if (!Object.getOwnPropertyDescriptor(Module, "emscripten_realloc_buffer"))
|
|
3140
|
+
Module["emscripten_realloc_buffer"] = (() => abort("'emscripten_realloc_buffer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3141
|
+
if (!Object.getOwnPropertyDescriptor(Module, "ENV"))
|
|
3142
|
+
Module["ENV"] = (() => abort("'ENV' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3143
|
+
if (!Object.getOwnPropertyDescriptor(Module, "withStackSave"))
|
|
3144
|
+
Module["withStackSave"] = (() => abort("'withStackSave' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3145
|
+
if (!Object.getOwnPropertyDescriptor(Module, "ERRNO_CODES"))
|
|
3146
|
+
Module["ERRNO_CODES"] = (() => abort("'ERRNO_CODES' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3147
|
+
if (!Object.getOwnPropertyDescriptor(Module, "ERRNO_MESSAGES"))
|
|
3148
|
+
Module["ERRNO_MESSAGES"] = (() => abort("'ERRNO_MESSAGES' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3149
|
+
if (!Object.getOwnPropertyDescriptor(Module, "setErrNo"))
|
|
3150
|
+
Module["setErrNo"] = (() => abort("'setErrNo' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3151
|
+
if (!Object.getOwnPropertyDescriptor(Module, "inetPton4"))
|
|
3152
|
+
Module["inetPton4"] = (() => abort("'inetPton4' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3153
|
+
if (!Object.getOwnPropertyDescriptor(Module, "inetNtop4"))
|
|
3154
|
+
Module["inetNtop4"] = (() => abort("'inetNtop4' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3155
|
+
if (!Object.getOwnPropertyDescriptor(Module, "inetPton6"))
|
|
3156
|
+
Module["inetPton6"] = (() => abort("'inetPton6' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3157
|
+
if (!Object.getOwnPropertyDescriptor(Module, "inetNtop6"))
|
|
3158
|
+
Module["inetNtop6"] = (() => abort("'inetNtop6' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3159
|
+
if (!Object.getOwnPropertyDescriptor(Module, "readSockaddr"))
|
|
3160
|
+
Module["readSockaddr"] = (() => abort("'readSockaddr' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3161
|
+
if (!Object.getOwnPropertyDescriptor(Module, "writeSockaddr"))
|
|
3162
|
+
Module["writeSockaddr"] = (() => abort("'writeSockaddr' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3163
|
+
if (!Object.getOwnPropertyDescriptor(Module, "DNS"))
|
|
3164
|
+
Module["DNS"] = (() => abort("'DNS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3165
|
+
if (!Object.getOwnPropertyDescriptor(Module, "getHostByName"))
|
|
3166
|
+
Module["getHostByName"] = (() => abort("'getHostByName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3167
|
+
if (!Object.getOwnPropertyDescriptor(Module, "GAI_ERRNO_MESSAGES"))
|
|
3168
|
+
Module["GAI_ERRNO_MESSAGES"] = (() => abort("'GAI_ERRNO_MESSAGES' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3169
|
+
if (!Object.getOwnPropertyDescriptor(Module, "Protocols"))
|
|
3170
|
+
Module["Protocols"] = (() => abort("'Protocols' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3171
|
+
if (!Object.getOwnPropertyDescriptor(Module, "Sockets"))
|
|
3172
|
+
Module["Sockets"] = (() => abort("'Sockets' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3173
|
+
if (!Object.getOwnPropertyDescriptor(Module, "getRandomDevice"))
|
|
3174
|
+
Module["getRandomDevice"] = (() => abort("'getRandomDevice' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3175
|
+
if (!Object.getOwnPropertyDescriptor(Module, "traverseStack"))
|
|
3176
|
+
Module["traverseStack"] = (() => abort("'traverseStack' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3177
|
+
if (!Object.getOwnPropertyDescriptor(Module, "convertFrameToPC"))
|
|
3178
|
+
Module["convertFrameToPC"] = (() => abort("'convertFrameToPC' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3179
|
+
if (!Object.getOwnPropertyDescriptor(Module, "UNWIND_CACHE"))
|
|
3180
|
+
Module["UNWIND_CACHE"] = (() => abort("'UNWIND_CACHE' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3181
|
+
if (!Object.getOwnPropertyDescriptor(Module, "saveInUnwindCache"))
|
|
3182
|
+
Module["saveInUnwindCache"] = (() => abort("'saveInUnwindCache' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3183
|
+
if (!Object.getOwnPropertyDescriptor(Module, "convertPCtoSourceLocation"))
|
|
3184
|
+
Module["convertPCtoSourceLocation"] = (() => abort("'convertPCtoSourceLocation' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3185
|
+
if (!Object.getOwnPropertyDescriptor(Module, "readAsmConstArgsArray"))
|
|
3186
|
+
Module["readAsmConstArgsArray"] = (() => abort("'readAsmConstArgsArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3187
|
+
if (!Object.getOwnPropertyDescriptor(Module, "readAsmConstArgs"))
|
|
3188
|
+
Module["readAsmConstArgs"] = (() => abort("'readAsmConstArgs' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3189
|
+
if (!Object.getOwnPropertyDescriptor(Module, "mainThreadEM_ASM"))
|
|
3190
|
+
Module["mainThreadEM_ASM"] = (() => abort("'mainThreadEM_ASM' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3191
|
+
if (!Object.getOwnPropertyDescriptor(Module, "jstoi_q"))
|
|
3192
|
+
Module["jstoi_q"] = (() => abort("'jstoi_q' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3193
|
+
if (!Object.getOwnPropertyDescriptor(Module, "jstoi_s"))
|
|
3194
|
+
Module["jstoi_s"] = (() => abort("'jstoi_s' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3195
|
+
if (!Object.getOwnPropertyDescriptor(Module, "getExecutableName"))
|
|
3196
|
+
Module["getExecutableName"] = (() => abort("'getExecutableName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3197
|
+
if (!Object.getOwnPropertyDescriptor(Module, "listenOnce"))
|
|
3198
|
+
Module["listenOnce"] = (() => abort("'listenOnce' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3199
|
+
if (!Object.getOwnPropertyDescriptor(Module, "autoResumeAudioContext"))
|
|
3200
|
+
Module["autoResumeAudioContext"] = (() => abort("'autoResumeAudioContext' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3201
|
+
if (!Object.getOwnPropertyDescriptor(Module, "dynCallLegacy"))
|
|
3202
|
+
Module["dynCallLegacy"] = (() => abort("'dynCallLegacy' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3203
|
+
if (!Object.getOwnPropertyDescriptor(Module, "getDynCaller"))
|
|
3204
|
+
Module["getDynCaller"] = (() => abort("'getDynCaller' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3205
|
+
if (!Object.getOwnPropertyDescriptor(Module, "dynCall"))
|
|
3206
|
+
Module["dynCall"] = (() => abort("'dynCall' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3207
|
+
if (!Object.getOwnPropertyDescriptor(Module, "callRuntimeCallbacks"))
|
|
3208
|
+
Module["callRuntimeCallbacks"] = (() => abort("'callRuntimeCallbacks' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3209
|
+
if (!Object.getOwnPropertyDescriptor(Module, "setWasmTableEntry"))
|
|
3210
|
+
Module["setWasmTableEntry"] = (() => abort("'setWasmTableEntry' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3211
|
+
if (!Object.getOwnPropertyDescriptor(Module, "getWasmTableEntry"))
|
|
3212
|
+
Module["getWasmTableEntry"] = (() => abort("'getWasmTableEntry' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3213
|
+
if (!Object.getOwnPropertyDescriptor(Module, "handleException"))
|
|
3214
|
+
Module["handleException"] = (() => abort("'handleException' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3215
|
+
if (!Object.getOwnPropertyDescriptor(Module, "runtimeKeepalivePush"))
|
|
3216
|
+
Module["runtimeKeepalivePush"] = (() => abort("'runtimeKeepalivePush' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3217
|
+
if (!Object.getOwnPropertyDescriptor(Module, "runtimeKeepalivePop"))
|
|
3218
|
+
Module["runtimeKeepalivePop"] = (() => abort("'runtimeKeepalivePop' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3219
|
+
if (!Object.getOwnPropertyDescriptor(Module, "callUserCallback"))
|
|
3220
|
+
Module["callUserCallback"] = (() => abort("'callUserCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3221
|
+
if (!Object.getOwnPropertyDescriptor(Module, "maybeExit"))
|
|
3222
|
+
Module["maybeExit"] = (() => abort("'maybeExit' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3223
|
+
if (!Object.getOwnPropertyDescriptor(Module, "safeSetTimeout"))
|
|
3224
|
+
Module["safeSetTimeout"] = (() => abort("'safeSetTimeout' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3225
|
+
if (!Object.getOwnPropertyDescriptor(Module, "asmjsMangle"))
|
|
3226
|
+
Module["asmjsMangle"] = (() => abort("'asmjsMangle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3227
|
+
if (!Object.getOwnPropertyDescriptor(Module, "asyncLoad"))
|
|
3228
|
+
Module["asyncLoad"] = (() => abort("'asyncLoad' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3229
|
+
if (!Object.getOwnPropertyDescriptor(Module, "alignMemory"))
|
|
3230
|
+
Module["alignMemory"] = (() => abort("'alignMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3231
|
+
if (!Object.getOwnPropertyDescriptor(Module, "mmapAlloc"))
|
|
3232
|
+
Module["mmapAlloc"] = (() => abort("'mmapAlloc' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3233
|
+
if (!Object.getOwnPropertyDescriptor(Module, "reallyNegative"))
|
|
3234
|
+
Module["reallyNegative"] = (() => abort("'reallyNegative' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3235
|
+
if (!Object.getOwnPropertyDescriptor(Module, "unSign"))
|
|
3236
|
+
Module["unSign"] = (() => abort("'unSign' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3237
|
+
if (!Object.getOwnPropertyDescriptor(Module, "reSign"))
|
|
3238
|
+
Module["reSign"] = (() => abort("'reSign' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3239
|
+
if (!Object.getOwnPropertyDescriptor(Module, "formatString"))
|
|
3240
|
+
Module["formatString"] = (() => abort("'formatString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3241
|
+
if (!Object.getOwnPropertyDescriptor(Module, "PATH"))
|
|
3242
|
+
Module["PATH"] = (() => abort("'PATH' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3243
|
+
if (!Object.getOwnPropertyDescriptor(Module, "PATH_FS"))
|
|
3244
|
+
Module["PATH_FS"] = (() => abort("'PATH_FS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3245
|
+
if (!Object.getOwnPropertyDescriptor(Module, "SYSCALLS"))
|
|
3246
|
+
Module["SYSCALLS"] = (() => abort("'SYSCALLS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3247
|
+
if (!Object.getOwnPropertyDescriptor(Module, "syscallMmap2"))
|
|
3248
|
+
Module["syscallMmap2"] = (() => abort("'syscallMmap2' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3249
|
+
if (!Object.getOwnPropertyDescriptor(Module, "syscallMunmap"))
|
|
3250
|
+
Module["syscallMunmap"] = (() => abort("'syscallMunmap' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3251
|
+
if (!Object.getOwnPropertyDescriptor(Module, "getSocketFromFD"))
|
|
3252
|
+
Module["getSocketFromFD"] = (() => abort("'getSocketFromFD' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3253
|
+
if (!Object.getOwnPropertyDescriptor(Module, "getSocketAddress"))
|
|
3254
|
+
Module["getSocketAddress"] = (() => abort("'getSocketAddress' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3255
|
+
if (!Object.getOwnPropertyDescriptor(Module, "JSEvents"))
|
|
3256
|
+
Module["JSEvents"] = (() => abort("'JSEvents' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3257
|
+
if (!Object.getOwnPropertyDescriptor(Module, "registerKeyEventCallback"))
|
|
3258
|
+
Module["registerKeyEventCallback"] = (() => abort("'registerKeyEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3259
|
+
if (!Object.getOwnPropertyDescriptor(Module, "specialHTMLTargets"))
|
|
3260
|
+
Module["specialHTMLTargets"] = (() => abort("'specialHTMLTargets' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3261
|
+
if (!Object.getOwnPropertyDescriptor(Module, "maybeCStringToJsString"))
|
|
3262
|
+
Module["maybeCStringToJsString"] = (() => abort("'maybeCStringToJsString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3263
|
+
if (!Object.getOwnPropertyDescriptor(Module, "findEventTarget"))
|
|
3264
|
+
Module["findEventTarget"] = (() => abort("'findEventTarget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3265
|
+
if (!Object.getOwnPropertyDescriptor(Module, "findCanvasEventTarget"))
|
|
3266
|
+
Module["findCanvasEventTarget"] = (() => abort("'findCanvasEventTarget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3267
|
+
if (!Object.getOwnPropertyDescriptor(Module, "getBoundingClientRect"))
|
|
3268
|
+
Module["getBoundingClientRect"] = (() => abort("'getBoundingClientRect' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3269
|
+
if (!Object.getOwnPropertyDescriptor(Module, "fillMouseEventData"))
|
|
3270
|
+
Module["fillMouseEventData"] = (() => abort("'fillMouseEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3271
|
+
if (!Object.getOwnPropertyDescriptor(Module, "registerMouseEventCallback"))
|
|
3272
|
+
Module["registerMouseEventCallback"] = (() => abort("'registerMouseEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3273
|
+
if (!Object.getOwnPropertyDescriptor(Module, "registerWheelEventCallback"))
|
|
3274
|
+
Module["registerWheelEventCallback"] = (() => abort("'registerWheelEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3275
|
+
if (!Object.getOwnPropertyDescriptor(Module, "registerUiEventCallback"))
|
|
3276
|
+
Module["registerUiEventCallback"] = (() => abort("'registerUiEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3277
|
+
if (!Object.getOwnPropertyDescriptor(Module, "registerFocusEventCallback"))
|
|
3278
|
+
Module["registerFocusEventCallback"] = (() => abort("'registerFocusEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3279
|
+
if (!Object.getOwnPropertyDescriptor(Module, "fillDeviceOrientationEventData"))
|
|
3280
|
+
Module["fillDeviceOrientationEventData"] = (() => abort("'fillDeviceOrientationEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3281
|
+
if (!Object.getOwnPropertyDescriptor(Module, "registerDeviceOrientationEventCallback"))
|
|
3282
|
+
Module["registerDeviceOrientationEventCallback"] = (() => abort("'registerDeviceOrientationEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3283
|
+
if (!Object.getOwnPropertyDescriptor(Module, "fillDeviceMotionEventData"))
|
|
3284
|
+
Module["fillDeviceMotionEventData"] = (() => abort("'fillDeviceMotionEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3285
|
+
if (!Object.getOwnPropertyDescriptor(Module, "registerDeviceMotionEventCallback"))
|
|
3286
|
+
Module["registerDeviceMotionEventCallback"] = (() => abort("'registerDeviceMotionEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3287
|
+
if (!Object.getOwnPropertyDescriptor(Module, "screenOrientation"))
|
|
3288
|
+
Module["screenOrientation"] = (() => abort("'screenOrientation' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3289
|
+
if (!Object.getOwnPropertyDescriptor(Module, "fillOrientationChangeEventData"))
|
|
3290
|
+
Module["fillOrientationChangeEventData"] = (() => abort("'fillOrientationChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3291
|
+
if (!Object.getOwnPropertyDescriptor(Module, "registerOrientationChangeEventCallback"))
|
|
3292
|
+
Module["registerOrientationChangeEventCallback"] = (() => abort("'registerOrientationChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3293
|
+
if (!Object.getOwnPropertyDescriptor(Module, "fillFullscreenChangeEventData"))
|
|
3294
|
+
Module["fillFullscreenChangeEventData"] = (() => abort("'fillFullscreenChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3295
|
+
if (!Object.getOwnPropertyDescriptor(Module, "registerFullscreenChangeEventCallback"))
|
|
3296
|
+
Module["registerFullscreenChangeEventCallback"] = (() => abort("'registerFullscreenChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3297
|
+
if (!Object.getOwnPropertyDescriptor(Module, "registerRestoreOldStyle"))
|
|
3298
|
+
Module["registerRestoreOldStyle"] = (() => abort("'registerRestoreOldStyle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3299
|
+
if (!Object.getOwnPropertyDescriptor(Module, "hideEverythingExceptGivenElement"))
|
|
3300
|
+
Module["hideEverythingExceptGivenElement"] = (() => abort("'hideEverythingExceptGivenElement' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3301
|
+
if (!Object.getOwnPropertyDescriptor(Module, "restoreHiddenElements"))
|
|
3302
|
+
Module["restoreHiddenElements"] = (() => abort("'restoreHiddenElements' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3303
|
+
if (!Object.getOwnPropertyDescriptor(Module, "setLetterbox"))
|
|
3304
|
+
Module["setLetterbox"] = (() => abort("'setLetterbox' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3305
|
+
if (!Object.getOwnPropertyDescriptor(Module, "currentFullscreenStrategy"))
|
|
3306
|
+
Module["currentFullscreenStrategy"] = (() => abort("'currentFullscreenStrategy' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3307
|
+
if (!Object.getOwnPropertyDescriptor(Module, "restoreOldWindowedStyle"))
|
|
3308
|
+
Module["restoreOldWindowedStyle"] = (() => abort("'restoreOldWindowedStyle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3309
|
+
if (!Object.getOwnPropertyDescriptor(Module, "softFullscreenResizeWebGLRenderTarget"))
|
|
3310
|
+
Module["softFullscreenResizeWebGLRenderTarget"] = (() => abort("'softFullscreenResizeWebGLRenderTarget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3311
|
+
if (!Object.getOwnPropertyDescriptor(Module, "doRequestFullscreen"))
|
|
3312
|
+
Module["doRequestFullscreen"] = (() => abort("'doRequestFullscreen' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3313
|
+
if (!Object.getOwnPropertyDescriptor(Module, "fillPointerlockChangeEventData"))
|
|
3314
|
+
Module["fillPointerlockChangeEventData"] = (() => abort("'fillPointerlockChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3315
|
+
if (!Object.getOwnPropertyDescriptor(Module, "registerPointerlockChangeEventCallback"))
|
|
3316
|
+
Module["registerPointerlockChangeEventCallback"] = (() => abort("'registerPointerlockChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3317
|
+
if (!Object.getOwnPropertyDescriptor(Module, "registerPointerlockErrorEventCallback"))
|
|
3318
|
+
Module["registerPointerlockErrorEventCallback"] = (() => abort("'registerPointerlockErrorEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3319
|
+
if (!Object.getOwnPropertyDescriptor(Module, "requestPointerLock"))
|
|
3320
|
+
Module["requestPointerLock"] = (() => abort("'requestPointerLock' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3321
|
+
if (!Object.getOwnPropertyDescriptor(Module, "fillVisibilityChangeEventData"))
|
|
3322
|
+
Module["fillVisibilityChangeEventData"] = (() => abort("'fillVisibilityChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3323
|
+
if (!Object.getOwnPropertyDescriptor(Module, "registerVisibilityChangeEventCallback"))
|
|
3324
|
+
Module["registerVisibilityChangeEventCallback"] = (() => abort("'registerVisibilityChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3325
|
+
if (!Object.getOwnPropertyDescriptor(Module, "registerTouchEventCallback"))
|
|
3326
|
+
Module["registerTouchEventCallback"] = (() => abort("'registerTouchEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3327
|
+
if (!Object.getOwnPropertyDescriptor(Module, "fillGamepadEventData"))
|
|
3328
|
+
Module["fillGamepadEventData"] = (() => abort("'fillGamepadEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3329
|
+
if (!Object.getOwnPropertyDescriptor(Module, "registerGamepadEventCallback"))
|
|
3330
|
+
Module["registerGamepadEventCallback"] = (() => abort("'registerGamepadEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3331
|
+
if (!Object.getOwnPropertyDescriptor(Module, "registerBeforeUnloadEventCallback"))
|
|
3332
|
+
Module["registerBeforeUnloadEventCallback"] = (() => abort("'registerBeforeUnloadEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3333
|
+
if (!Object.getOwnPropertyDescriptor(Module, "fillBatteryEventData"))
|
|
3334
|
+
Module["fillBatteryEventData"] = (() => abort("'fillBatteryEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3335
|
+
if (!Object.getOwnPropertyDescriptor(Module, "battery"))
|
|
3336
|
+
Module["battery"] = (() => abort("'battery' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3337
|
+
if (!Object.getOwnPropertyDescriptor(Module, "registerBatteryEventCallback"))
|
|
3338
|
+
Module["registerBatteryEventCallback"] = (() => abort("'registerBatteryEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3339
|
+
if (!Object.getOwnPropertyDescriptor(Module, "setCanvasElementSize"))
|
|
3340
|
+
Module["setCanvasElementSize"] = (() => abort("'setCanvasElementSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3341
|
+
if (!Object.getOwnPropertyDescriptor(Module, "getCanvasElementSize"))
|
|
3342
|
+
Module["getCanvasElementSize"] = (() => abort("'getCanvasElementSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3343
|
+
if (!Object.getOwnPropertyDescriptor(Module, "demangle"))
|
|
3344
|
+
Module["demangle"] = (() => abort("'demangle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3345
|
+
if (!Object.getOwnPropertyDescriptor(Module, "demangleAll"))
|
|
3346
|
+
Module["demangleAll"] = (() => abort("'demangleAll' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3347
|
+
if (!Object.getOwnPropertyDescriptor(Module, "jsStackTrace"))
|
|
3348
|
+
Module["jsStackTrace"] = (() => abort("'jsStackTrace' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3349
|
+
if (!Object.getOwnPropertyDescriptor(Module, "stackTrace"))
|
|
3350
|
+
Module["stackTrace"] = (() => abort("'stackTrace' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3351
|
+
if (!Object.getOwnPropertyDescriptor(Module, "getEnvStrings"))
|
|
3352
|
+
Module["getEnvStrings"] = (() => abort("'getEnvStrings' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3353
|
+
if (!Object.getOwnPropertyDescriptor(Module, "checkWasiClock"))
|
|
3354
|
+
Module["checkWasiClock"] = (() => abort("'checkWasiClock' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3355
|
+
if (!Object.getOwnPropertyDescriptor(Module, "writeI53ToI64"))
|
|
3356
|
+
Module["writeI53ToI64"] = (() => abort("'writeI53ToI64' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3357
|
+
if (!Object.getOwnPropertyDescriptor(Module, "writeI53ToI64Clamped"))
|
|
3358
|
+
Module["writeI53ToI64Clamped"] = (() => abort("'writeI53ToI64Clamped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3359
|
+
if (!Object.getOwnPropertyDescriptor(Module, "writeI53ToI64Signaling"))
|
|
3360
|
+
Module["writeI53ToI64Signaling"] = (() => abort("'writeI53ToI64Signaling' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3361
|
+
if (!Object.getOwnPropertyDescriptor(Module, "writeI53ToU64Clamped"))
|
|
3362
|
+
Module["writeI53ToU64Clamped"] = (() => abort("'writeI53ToU64Clamped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3363
|
+
if (!Object.getOwnPropertyDescriptor(Module, "writeI53ToU64Signaling"))
|
|
3364
|
+
Module["writeI53ToU64Signaling"] = (() => abort("'writeI53ToU64Signaling' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3365
|
+
if (!Object.getOwnPropertyDescriptor(Module, "readI53FromI64"))
|
|
3366
|
+
Module["readI53FromI64"] = (() => abort("'readI53FromI64' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3367
|
+
if (!Object.getOwnPropertyDescriptor(Module, "readI53FromU64"))
|
|
3368
|
+
Module["readI53FromU64"] = (() => abort("'readI53FromU64' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3369
|
+
if (!Object.getOwnPropertyDescriptor(Module, "convertI32PairToI53"))
|
|
3370
|
+
Module["convertI32PairToI53"] = (() => abort("'convertI32PairToI53' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3371
|
+
if (!Object.getOwnPropertyDescriptor(Module, "convertU32PairToI53"))
|
|
3372
|
+
Module["convertU32PairToI53"] = (() => abort("'convertU32PairToI53' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3373
|
+
if (!Object.getOwnPropertyDescriptor(Module, "setImmediateWrapped"))
|
|
3374
|
+
Module["setImmediateWrapped"] = (() => abort("'setImmediateWrapped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3375
|
+
if (!Object.getOwnPropertyDescriptor(Module, "clearImmediateWrapped"))
|
|
3376
|
+
Module["clearImmediateWrapped"] = (() => abort("'clearImmediateWrapped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3377
|
+
if (!Object.getOwnPropertyDescriptor(Module, "polyfillSetImmediate"))
|
|
3378
|
+
Module["polyfillSetImmediate"] = (() => abort("'polyfillSetImmediate' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3379
|
+
if (!Object.getOwnPropertyDescriptor(Module, "uncaughtExceptionCount"))
|
|
3380
|
+
Module["uncaughtExceptionCount"] = (() => abort("'uncaughtExceptionCount' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3381
|
+
if (!Object.getOwnPropertyDescriptor(Module, "exceptionLast"))
|
|
3382
|
+
Module["exceptionLast"] = (() => abort("'exceptionLast' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3383
|
+
if (!Object.getOwnPropertyDescriptor(Module, "exceptionCaught"))
|
|
3384
|
+
Module["exceptionCaught"] = (() => abort("'exceptionCaught' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3385
|
+
if (!Object.getOwnPropertyDescriptor(Module, "ExceptionInfo"))
|
|
3386
|
+
Module["ExceptionInfo"] = (() => abort("'ExceptionInfo' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3387
|
+
if (!Object.getOwnPropertyDescriptor(Module, "CatchInfo"))
|
|
3388
|
+
Module["CatchInfo"] = (() => abort("'CatchInfo' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3389
|
+
if (!Object.getOwnPropertyDescriptor(Module, "exception_addRef"))
|
|
3390
|
+
Module["exception_addRef"] = (() => abort("'exception_addRef' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3391
|
+
if (!Object.getOwnPropertyDescriptor(Module, "exception_decRef"))
|
|
3392
|
+
Module["exception_decRef"] = (() => abort("'exception_decRef' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3393
|
+
if (!Object.getOwnPropertyDescriptor(Module, "Browser"))
|
|
3394
|
+
Module["Browser"] = (() => abort("'Browser' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3395
|
+
if (!Object.getOwnPropertyDescriptor(Module, "funcWrappers"))
|
|
3396
|
+
Module["funcWrappers"] = (() => abort("'funcWrappers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3397
|
+
if (!Object.getOwnPropertyDescriptor(Module, "getFuncWrapper"))
|
|
3398
|
+
Module["getFuncWrapper"] = (() => abort("'getFuncWrapper' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3399
|
+
if (!Object.getOwnPropertyDescriptor(Module, "setMainLoop"))
|
|
3400
|
+
Module["setMainLoop"] = (() => abort("'setMainLoop' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3401
|
+
if (!Object.getOwnPropertyDescriptor(Module, "wget"))
|
|
3402
|
+
Module["wget"] = (() => abort("'wget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3403
|
+
Module["FS"] = FS;
|
|
3404
|
+
if (!Object.getOwnPropertyDescriptor(Module, "MEMFS"))
|
|
3405
|
+
Module["MEMFS"] = (() => abort("'MEMFS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3406
|
+
if (!Object.getOwnPropertyDescriptor(Module, "TTY"))
|
|
3407
|
+
Module["TTY"] = (() => abort("'TTY' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3408
|
+
if (!Object.getOwnPropertyDescriptor(Module, "PIPEFS"))
|
|
3409
|
+
Module["PIPEFS"] = (() => abort("'PIPEFS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3410
|
+
if (!Object.getOwnPropertyDescriptor(Module, "SOCKFS"))
|
|
3411
|
+
Module["SOCKFS"] = (() => abort("'SOCKFS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3412
|
+
if (!Object.getOwnPropertyDescriptor(Module, "_setNetworkCallback"))
|
|
3413
|
+
Module["_setNetworkCallback"] = (() => abort("'_setNetworkCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3414
|
+
if (!Object.getOwnPropertyDescriptor(Module, "tempFixedLengthArray"))
|
|
3415
|
+
Module["tempFixedLengthArray"] = (() => abort("'tempFixedLengthArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3416
|
+
if (!Object.getOwnPropertyDescriptor(Module, "miniTempWebGLFloatBuffers"))
|
|
3417
|
+
Module["miniTempWebGLFloatBuffers"] = (() => abort("'miniTempWebGLFloatBuffers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3418
|
+
if (!Object.getOwnPropertyDescriptor(Module, "heapObjectForWebGLType"))
|
|
3419
|
+
Module["heapObjectForWebGLType"] = (() => abort("'heapObjectForWebGLType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3420
|
+
if (!Object.getOwnPropertyDescriptor(Module, "heapAccessShiftForWebGLHeap"))
|
|
3421
|
+
Module["heapAccessShiftForWebGLHeap"] = (() => abort("'heapAccessShiftForWebGLHeap' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3422
|
+
if (!Object.getOwnPropertyDescriptor(Module, "GL"))
|
|
3423
|
+
Module["GL"] = (() => abort("'GL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3424
|
+
if (!Object.getOwnPropertyDescriptor(Module, "emscriptenWebGLGet"))
|
|
3425
|
+
Module["emscriptenWebGLGet"] = (() => abort("'emscriptenWebGLGet' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3426
|
+
if (!Object.getOwnPropertyDescriptor(Module, "computeUnpackAlignedImageSize"))
|
|
3427
|
+
Module["computeUnpackAlignedImageSize"] = (() => abort("'computeUnpackAlignedImageSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3428
|
+
if (!Object.getOwnPropertyDescriptor(Module, "emscriptenWebGLGetTexPixelData"))
|
|
3429
|
+
Module["emscriptenWebGLGetTexPixelData"] = (() => abort("'emscriptenWebGLGetTexPixelData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3430
|
+
if (!Object.getOwnPropertyDescriptor(Module, "emscriptenWebGLGetUniform"))
|
|
3431
|
+
Module["emscriptenWebGLGetUniform"] = (() => abort("'emscriptenWebGLGetUniform' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3432
|
+
if (!Object.getOwnPropertyDescriptor(Module, "webglGetUniformLocation"))
|
|
3433
|
+
Module["webglGetUniformLocation"] = (() => abort("'webglGetUniformLocation' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3434
|
+
if (!Object.getOwnPropertyDescriptor(Module, "webglPrepareUniformLocationsBeforeFirstUse"))
|
|
3435
|
+
Module["webglPrepareUniformLocationsBeforeFirstUse"] = (() => abort("'webglPrepareUniformLocationsBeforeFirstUse' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3436
|
+
if (!Object.getOwnPropertyDescriptor(Module, "webglGetLeftBracePos"))
|
|
3437
|
+
Module["webglGetLeftBracePos"] = (() => abort("'webglGetLeftBracePos' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3438
|
+
if (!Object.getOwnPropertyDescriptor(Module, "emscriptenWebGLGetVertexAttrib"))
|
|
3439
|
+
Module["emscriptenWebGLGetVertexAttrib"] = (() => abort("'emscriptenWebGLGetVertexAttrib' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3440
|
+
if (!Object.getOwnPropertyDescriptor(Module, "writeGLArray"))
|
|
3441
|
+
Module["writeGLArray"] = (() => abort("'writeGLArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3442
|
+
if (!Object.getOwnPropertyDescriptor(Module, "AL"))
|
|
3443
|
+
Module["AL"] = (() => abort("'AL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3444
|
+
if (!Object.getOwnPropertyDescriptor(Module, "SDL_unicode"))
|
|
3445
|
+
Module["SDL_unicode"] = (() => abort("'SDL_unicode' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3446
|
+
if (!Object.getOwnPropertyDescriptor(Module, "SDL_ttfContext"))
|
|
3447
|
+
Module["SDL_ttfContext"] = (() => abort("'SDL_ttfContext' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3448
|
+
if (!Object.getOwnPropertyDescriptor(Module, "SDL_audio"))
|
|
3449
|
+
Module["SDL_audio"] = (() => abort("'SDL_audio' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3450
|
+
if (!Object.getOwnPropertyDescriptor(Module, "SDL"))
|
|
3451
|
+
Module["SDL"] = (() => abort("'SDL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3452
|
+
if (!Object.getOwnPropertyDescriptor(Module, "SDL_gfx"))
|
|
3453
|
+
Module["SDL_gfx"] = (() => abort("'SDL_gfx' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3454
|
+
if (!Object.getOwnPropertyDescriptor(Module, "GLUT"))
|
|
3455
|
+
Module["GLUT"] = (() => abort("'GLUT' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3456
|
+
if (!Object.getOwnPropertyDescriptor(Module, "EGL"))
|
|
3457
|
+
Module["EGL"] = (() => abort("'EGL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3458
|
+
if (!Object.getOwnPropertyDescriptor(Module, "GLFW_Window"))
|
|
3459
|
+
Module["GLFW_Window"] = (() => abort("'GLFW_Window' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3460
|
+
if (!Object.getOwnPropertyDescriptor(Module, "GLFW"))
|
|
3461
|
+
Module["GLFW"] = (() => abort("'GLFW' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3462
|
+
if (!Object.getOwnPropertyDescriptor(Module, "GLEW"))
|
|
3463
|
+
Module["GLEW"] = (() => abort("'GLEW' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3464
|
+
if (!Object.getOwnPropertyDescriptor(Module, "IDBStore"))
|
|
3465
|
+
Module["IDBStore"] = (() => abort("'IDBStore' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3466
|
+
if (!Object.getOwnPropertyDescriptor(Module, "runAndAbortIfError"))
|
|
3467
|
+
Module["runAndAbortIfError"] = (() => abort("'runAndAbortIfError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3468
|
+
if (!Object.getOwnPropertyDescriptor(Module, "NODEFS"))
|
|
3469
|
+
Module["NODEFS"] = (() => abort("'NODEFS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3470
|
+
if (!Object.getOwnPropertyDescriptor(Module, "warnOnce"))
|
|
3471
|
+
Module["warnOnce"] = (() => abort("'warnOnce' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3472
|
+
if (!Object.getOwnPropertyDescriptor(Module, "stackSave"))
|
|
3473
|
+
Module["stackSave"] = (() => abort("'stackSave' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3474
|
+
if (!Object.getOwnPropertyDescriptor(Module, "stackRestore"))
|
|
3475
|
+
Module["stackRestore"] = (() => abort("'stackRestore' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3476
|
+
if (!Object.getOwnPropertyDescriptor(Module, "stackAlloc"))
|
|
3477
|
+
Module["stackAlloc"] = (() => abort("'stackAlloc' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3478
|
+
if (!Object.getOwnPropertyDescriptor(Module, "AsciiToString"))
|
|
3479
|
+
Module["AsciiToString"] = (() => abort("'AsciiToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3480
|
+
if (!Object.getOwnPropertyDescriptor(Module, "stringToAscii"))
|
|
3481
|
+
Module["stringToAscii"] = (() => abort("'stringToAscii' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3482
|
+
if (!Object.getOwnPropertyDescriptor(Module, "UTF16ToString"))
|
|
3483
|
+
Module["UTF16ToString"] = (() => abort("'UTF16ToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3484
|
+
if (!Object.getOwnPropertyDescriptor(Module, "stringToUTF16"))
|
|
3485
|
+
Module["stringToUTF16"] = (() => abort("'stringToUTF16' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3486
|
+
if (!Object.getOwnPropertyDescriptor(Module, "lengthBytesUTF16"))
|
|
3487
|
+
Module["lengthBytesUTF16"] = (() => abort("'lengthBytesUTF16' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3488
|
+
if (!Object.getOwnPropertyDescriptor(Module, "UTF32ToString"))
|
|
3489
|
+
Module["UTF32ToString"] = (() => abort("'UTF32ToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3490
|
+
if (!Object.getOwnPropertyDescriptor(Module, "stringToUTF32"))
|
|
3491
|
+
Module["stringToUTF32"] = (() => abort("'stringToUTF32' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3492
|
+
if (!Object.getOwnPropertyDescriptor(Module, "lengthBytesUTF32"))
|
|
3493
|
+
Module["lengthBytesUTF32"] = (() => abort("'lengthBytesUTF32' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3494
|
+
if (!Object.getOwnPropertyDescriptor(Module, "allocateUTF8"))
|
|
3495
|
+
Module["allocateUTF8"] = (() => abort("'allocateUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3496
|
+
if (!Object.getOwnPropertyDescriptor(Module, "allocateUTF8OnStack"))
|
|
3497
|
+
Module["allocateUTF8OnStack"] = (() => abort("'allocateUTF8OnStack' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"));
|
|
3498
|
+
Module["writeStackCookie"] = writeStackCookie;
|
|
3499
|
+
Module["checkStackCookie"] = checkStackCookie;
|
|
3500
|
+
if (!Object.getOwnPropertyDescriptor(Module, "ALLOC_NORMAL"))
|
|
3501
|
+
Object.defineProperty(Module, "ALLOC_NORMAL", { configurable: true, get: function () { abort("'ALLOC_NORMAL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"); } });
|
|
3502
|
+
if (!Object.getOwnPropertyDescriptor(Module, "ALLOC_STACK"))
|
|
3503
|
+
Object.defineProperty(Module, "ALLOC_STACK", { configurable: true, get: function () { abort("'ALLOC_STACK' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)"); } });
|
|
3504
|
+
var calledRun;
|
|
3505
|
+
function ExitStatus(status) { this.name = "ExitStatus"; this.message = "Program terminated with exit(" + status + ")"; this.status = status; }
|
|
3506
|
+
dependenciesFulfilled = function runCaller() { if (!calledRun)
|
|
3507
|
+
run(); if (!calledRun)
|
|
3508
|
+
dependenciesFulfilled = runCaller; };
|
|
3509
|
+
function stackCheckInit() { _emscripten_stack_init(); writeStackCookie(); }
|
|
3510
|
+
function run(args) { args = args || arguments_; if (runDependencies > 0) {
|
|
3511
|
+
return;
|
|
3512
|
+
} stackCheckInit(); preRun(); if (runDependencies > 0) {
|
|
3513
|
+
return;
|
|
3514
|
+
} function doRun() { if (calledRun)
|
|
3515
|
+
return; calledRun = true; Module["calledRun"] = true; if (ABORT)
|
|
3516
|
+
return; initRuntime(); readyPromiseResolve(Module); if (Module["onRuntimeInitialized"])
|
|
3517
|
+
Module["onRuntimeInitialized"](); assert(!Module["_main"], 'compiled without a main, but one is present. if you added it from JS, use Module["onRuntimeInitialized"]'); postRun(); } if (Module["setStatus"]) {
|
|
3518
|
+
Module["setStatus"]("Running...");
|
|
3519
|
+
setTimeout(function () { setTimeout(function () { Module["setStatus"](""); }, 1); doRun(); }, 1);
|
|
3520
|
+
}
|
|
3521
|
+
else {
|
|
3522
|
+
doRun();
|
|
3523
|
+
} checkStackCookie(); }
|
|
3524
|
+
Module["run"] = run;
|
|
3525
|
+
function exit(status, implicit) { EXITSTATUS = status; if (keepRuntimeAlive()) {
|
|
3526
|
+
if (!implicit) {
|
|
3527
|
+
var msg = "program exited (with status: " + status + "), but keepRuntimeAlive() is set (counter=" + runtimeKeepaliveCounter + ") due to an async operation, so halting execution but not exiting the runtime or preventing further async execution (you can use emscripten_force_exit, if you want to force a true shutdown)";
|
|
3528
|
+
readyPromiseReject(msg);
|
|
3529
|
+
err(msg);
|
|
3530
|
+
}
|
|
3531
|
+
}
|
|
3532
|
+
else {
|
|
3533
|
+
exitRuntime();
|
|
3534
|
+
} procExit(status); }
|
|
3535
|
+
function procExit(code) { EXITSTATUS = code; if (!keepRuntimeAlive()) {
|
|
3536
|
+
if (Module["onExit"])
|
|
3537
|
+
Module["onExit"](code);
|
|
3538
|
+
ABORT = true;
|
|
3539
|
+
} quit_(code, new ExitStatus(code)); }
|
|
3540
|
+
if (Module["preInit"]) {
|
|
3541
|
+
if (typeof Module["preInit"] == "function")
|
|
3542
|
+
Module["preInit"] = [Module["preInit"]];
|
|
3543
|
+
while (Module["preInit"].length > 0) {
|
|
3544
|
+
Module["preInit"].pop()();
|
|
3545
|
+
}
|
|
3546
|
+
}
|
|
3547
|
+
run();
|
|
3548
|
+
function WrapperObject() { }
|
|
3549
|
+
WrapperObject.prototype = Object.create(WrapperObject.prototype);
|
|
3550
|
+
WrapperObject.prototype.constructor = WrapperObject;
|
|
3551
|
+
WrapperObject.prototype.__class__ = WrapperObject;
|
|
3552
|
+
WrapperObject.__cache__ = {};
|
|
3553
|
+
Module["WrapperObject"] = WrapperObject;
|
|
3554
|
+
function getCache(__class__) { return (__class__ || WrapperObject).__cache__; }
|
|
3555
|
+
Module["getCache"] = getCache;
|
|
3556
|
+
function wrapPointer(ptr, __class__) { var cache = getCache(__class__); var ret = cache[ptr]; if (ret)
|
|
3557
|
+
return ret; ret = Object.create((__class__ || WrapperObject).prototype); ret.ptr = ptr; return cache[ptr] = ret; }
|
|
3558
|
+
Module["wrapPointer"] = wrapPointer;
|
|
3559
|
+
function castObject(obj, __class__) { return wrapPointer(obj.ptr, __class__); }
|
|
3560
|
+
Module["castObject"] = castObject;
|
|
3561
|
+
Module["NULL"] = wrapPointer(0);
|
|
3562
|
+
function destroy(obj) { if (!obj["__destroy__"])
|
|
3563
|
+
throw "Error: Cannot destroy object. (Did you create it yourself?)"; obj["__destroy__"](); delete getCache(obj.__class__)[obj.ptr]; }
|
|
3564
|
+
Module["destroy"] = destroy;
|
|
3565
|
+
function compare(obj1, obj2) { return obj1.ptr === obj2.ptr; }
|
|
3566
|
+
Module["compare"] = compare;
|
|
3567
|
+
function getPointer(obj) { return obj.ptr; }
|
|
3568
|
+
Module["getPointer"] = getPointer;
|
|
3569
|
+
function getClass(obj) { return obj.__class__; }
|
|
3570
|
+
Module["getClass"] = getClass;
|
|
3571
|
+
var ensureCache = { buffer: 0, size: 0, pos: 0, temps: [], needed: 0, prepare: function () { if (ensureCache.needed) {
|
|
3572
|
+
for (var i = 0; i < ensureCache.temps.length; i++) {
|
|
3573
|
+
Module["_free"](ensureCache.temps[i]);
|
|
3574
|
+
}
|
|
3575
|
+
ensureCache.temps.length = 0;
|
|
3576
|
+
Module["_free"](ensureCache.buffer);
|
|
3577
|
+
ensureCache.buffer = 0;
|
|
3578
|
+
ensureCache.size += ensureCache.needed;
|
|
3579
|
+
ensureCache.needed = 0;
|
|
3580
|
+
} if (!ensureCache.buffer) {
|
|
3581
|
+
ensureCache.size += 128;
|
|
3582
|
+
ensureCache.buffer = Module["_malloc"](ensureCache.size);
|
|
3583
|
+
assert(ensureCache.buffer);
|
|
3584
|
+
} ensureCache.pos = 0; }, alloc: function (array, view) { assert(ensureCache.buffer); var bytes = view.BYTES_PER_ELEMENT; var len = array.length * bytes; len = len + 7 & -8; var ret; if (ensureCache.pos + len >= ensureCache.size) {
|
|
3585
|
+
assert(len > 0);
|
|
3586
|
+
ensureCache.needed += len;
|
|
3587
|
+
ret = Module["_malloc"](len);
|
|
3588
|
+
ensureCache.temps.push(ret);
|
|
3589
|
+
}
|
|
3590
|
+
else {
|
|
3591
|
+
ret = ensureCache.buffer + ensureCache.pos;
|
|
3592
|
+
ensureCache.pos += len;
|
|
3593
|
+
} return ret; }, copy: function (array, view, offset) { offset >>>= 0; var bytes = view.BYTES_PER_ELEMENT; switch (bytes) {
|
|
3594
|
+
case 2:
|
|
3595
|
+
offset >>>= 1;
|
|
3596
|
+
break;
|
|
3597
|
+
case 4:
|
|
3598
|
+
offset >>>= 2;
|
|
3599
|
+
break;
|
|
3600
|
+
case 8:
|
|
3601
|
+
offset >>>= 3;
|
|
3602
|
+
break;
|
|
3603
|
+
} for (var i = 0; i < array.length; i++) {
|
|
3604
|
+
view[offset + i] = array[i];
|
|
3605
|
+
} } };
|
|
3606
|
+
function ensureString(value) { if (typeof value === "string") {
|
|
3607
|
+
var intArray = intArrayFromString(value);
|
|
3608
|
+
var offset = ensureCache.alloc(intArray, HEAP8);
|
|
3609
|
+
ensureCache.copy(intArray, HEAP8, offset);
|
|
3610
|
+
return offset;
|
|
3611
|
+
} return value; }
|
|
3612
|
+
function VoidPtr() { throw "cannot construct a VoidPtr, no constructor in IDL"; }
|
|
3613
|
+
VoidPtr.prototype = Object.create(WrapperObject.prototype);
|
|
3614
|
+
VoidPtr.prototype.constructor = VoidPtr;
|
|
3615
|
+
VoidPtr.prototype.__class__ = VoidPtr;
|
|
3616
|
+
VoidPtr.__cache__ = {};
|
|
3617
|
+
Module["VoidPtr"] = VoidPtr;
|
|
3618
|
+
VoidPtr.prototype["__destroy__"] = VoidPtr.prototype.__destroy__ = function () { var self = this.ptr; _emscripten_bind_VoidPtr___destroy___0(self); };
|
|
3619
|
+
function IteratorString() { this.ptr = _emscripten_bind_IteratorString_IteratorString_0(); getCache(IteratorString)[this.ptr] = this; }
|
|
3620
|
+
IteratorString.prototype = Object.create(WrapperObject.prototype);
|
|
3621
|
+
IteratorString.prototype.constructor = IteratorString;
|
|
3622
|
+
IteratorString.prototype.__class__ = IteratorString;
|
|
3623
|
+
IteratorString.__cache__ = {};
|
|
3624
|
+
Module["IteratorString"] = IteratorString;
|
|
3625
|
+
IteratorString.prototype["value"] = IteratorString.prototype.value = function () { var self = this.ptr; return UTF8ToString(_emscripten_bind_IteratorString_value_0(self)); };
|
|
3626
|
+
IteratorString.prototype["more"] = IteratorString.prototype.more = function () { var self = this.ptr; return !!_emscripten_bind_IteratorString_more_0(self); };
|
|
3627
|
+
IteratorString.prototype["next"] = IteratorString.prototype.next = function () { var self = this.ptr; _emscripten_bind_IteratorString_next_0(self); };
|
|
3628
|
+
IteratorString.prototype["__destroy__"] = IteratorString.prototype.__destroy__ = function () { var self = this.ptr; _emscripten_bind_IteratorString___destroy___0(self); };
|
|
3629
|
+
function IteratorAdaptValue() { this.ptr = _emscripten_bind_IteratorAdaptValue_IteratorAdaptValue_0(); getCache(IteratorAdaptValue)[this.ptr] = this; }
|
|
3630
|
+
IteratorAdaptValue.prototype = Object.create(WrapperObject.prototype);
|
|
3631
|
+
IteratorAdaptValue.prototype.constructor = IteratorAdaptValue;
|
|
3632
|
+
IteratorAdaptValue.prototype.__class__ = IteratorAdaptValue;
|
|
3633
|
+
IteratorAdaptValue.__cache__ = {};
|
|
3634
|
+
Module["IteratorAdaptValue"] = IteratorAdaptValue;
|
|
3635
|
+
IteratorAdaptValue.prototype["value"] = IteratorAdaptValue.prototype.value = function () { var self = this.ptr; return wrapPointer(_emscripten_bind_IteratorAdaptValue_value_0(self), AdaptValue); };
|
|
3636
|
+
IteratorAdaptValue.prototype["more"] = IteratorAdaptValue.prototype.more = function () { var self = this.ptr; return !!_emscripten_bind_IteratorAdaptValue_more_0(self); };
|
|
3637
|
+
IteratorAdaptValue.prototype["next"] = IteratorAdaptValue.prototype.next = function () { var self = this.ptr; _emscripten_bind_IteratorAdaptValue_next_0(self); };
|
|
3638
|
+
IteratorAdaptValue.prototype["__destroy__"] = IteratorAdaptValue.prototype.__destroy__ = function () { var self = this.ptr; _emscripten_bind_IteratorAdaptValue___destroy___0(self); };
|
|
3639
|
+
function Binary(data, size) { if (data && typeof data === "object")
|
|
3640
|
+
data = data.ptr; if (size && typeof size === "object")
|
|
3641
|
+
size = size.ptr; this.ptr = _emscripten_bind_Binary_Binary_2(data, size); getCache(Binary)[this.ptr] = this; }
|
|
3642
|
+
Binary.prototype = Object.create(WrapperObject.prototype);
|
|
3643
|
+
Binary.prototype.constructor = Binary;
|
|
3644
|
+
Binary.prototype.__class__ = Binary;
|
|
3645
|
+
Binary.__cache__ = {};
|
|
3646
|
+
Module["Binary"] = Binary;
|
|
3647
|
+
Binary.prototype["Destroy"] = Binary.prototype.Destroy = function () { var self = this.ptr; _emscripten_bind_Binary_Destroy_0(self); };
|
|
3648
|
+
Binary.prototype["Get"] = Binary.prototype.Get = function () { var self = this.ptr; return wrapPointer(_emscripten_bind_Binary_Get_0(self), VoidPtr); };
|
|
3649
|
+
Binary.prototype["Size"] = Binary.prototype.Size = function () { var self = this.ptr; return _emscripten_bind_Binary_Size_0(self); };
|
|
3650
|
+
Binary.prototype["__destroy__"] = Binary.prototype.__destroy__ = function () { var self = this.ptr; _emscripten_bind_Binary___destroy___0(self); };
|
|
3651
|
+
function AdaptEvaluationUnit() { throw "cannot construct a AdaptEvaluationUnit, no constructor in IDL"; }
|
|
3652
|
+
AdaptEvaluationUnit.prototype = Object.create(WrapperObject.prototype);
|
|
3653
|
+
AdaptEvaluationUnit.prototype.constructor = AdaptEvaluationUnit;
|
|
3654
|
+
AdaptEvaluationUnit.prototype.__class__ = AdaptEvaluationUnit;
|
|
3655
|
+
AdaptEvaluationUnit.__cache__ = {};
|
|
3656
|
+
Module["AdaptEvaluationUnit"] = AdaptEvaluationUnit;
|
|
3657
|
+
AdaptEvaluationUnit.prototype["LoadFromFile"] = AdaptEvaluationUnit.prototype.LoadFromFile = function (fileName) { var self = this.ptr; ensureCache.prepare(); if (fileName && typeof fileName === "object")
|
|
3658
|
+
fileName = fileName.ptr;
|
|
3659
|
+
else
|
|
3660
|
+
fileName = ensureString(fileName); return wrapPointer(_emscripten_bind_AdaptEvaluationUnit_LoadFromFile_1(self, fileName), AdaptEvaluationUnit); };
|
|
3661
|
+
AdaptEvaluationUnit.prototype["LoadFromContents"] = AdaptEvaluationUnit.prototype.LoadFromContents = function (bin) { var self = this.ptr; if (bin && typeof bin === "object")
|
|
3662
|
+
bin = bin.ptr; return wrapPointer(_emscripten_bind_AdaptEvaluationUnit_LoadFromContents_1(self, bin), AdaptEvaluationUnit); };
|
|
3663
|
+
AdaptEvaluationUnit.prototype["Destroy"] = AdaptEvaluationUnit.prototype.Destroy = function () { var self = this.ptr; _emscripten_bind_AdaptEvaluationUnit_Destroy_0(self); };
|
|
3664
|
+
AdaptEvaluationUnit.prototype["Check"] = AdaptEvaluationUnit.prototype.Check = function () { var self = this.ptr; _emscripten_bind_AdaptEvaluationUnit_Check_0(self); };
|
|
3665
|
+
AdaptEvaluationUnit.prototype["Clone"] = AdaptEvaluationUnit.prototype.Clone = function () { var self = this.ptr; return wrapPointer(_emscripten_bind_AdaptEvaluationUnit_Clone_0(self), AdaptEvaluationUnit); };
|
|
3666
|
+
AdaptEvaluationUnit.prototype["__destroy__"] = AdaptEvaluationUnit.prototype.__destroy__ = function () { var self = this.ptr; _emscripten_bind_AdaptEvaluationUnit___destroy___0(self); };
|
|
3667
|
+
function AdaptValue() { throw "cannot construct a AdaptValue, no constructor in IDL"; }
|
|
3668
|
+
AdaptValue.prototype = Object.create(WrapperObject.prototype);
|
|
3669
|
+
AdaptValue.prototype.constructor = AdaptValue;
|
|
3670
|
+
AdaptValue.prototype.__class__ = AdaptValue;
|
|
3671
|
+
AdaptValue.__cache__ = {};
|
|
3672
|
+
Module["AdaptValue"] = AdaptValue;
|
|
3673
|
+
AdaptValue.prototype["FromString"] = AdaptValue.prototype.FromString = function (from) { var self = this.ptr; ensureCache.prepare(); if (from && typeof from === "object")
|
|
3674
|
+
from = from.ptr;
|
|
3675
|
+
else
|
|
3676
|
+
from = ensureString(from); return wrapPointer(_emscripten_bind_AdaptValue_FromString_1(self, from), AdaptValue); };
|
|
3677
|
+
AdaptValue.prototype["FromNumber"] = AdaptValue.prototype.FromNumber = function (from) { var self = this.ptr; if (from && typeof from === "object")
|
|
3678
|
+
from = from.ptr; return wrapPointer(_emscripten_bind_AdaptValue_FromNumber_1(self, from), AdaptValue); };
|
|
3679
|
+
AdaptValue.prototype["FromBoolean"] = AdaptValue.prototype.FromBoolean = function (from) { var self = this.ptr; if (from && typeof from === "object")
|
|
3680
|
+
from = from.ptr; return wrapPointer(_emscripten_bind_AdaptValue_FromBoolean_1(self, from), AdaptValue); };
|
|
3681
|
+
AdaptValue.prototype["NilObject"] = AdaptValue.prototype.NilObject = function () { var self = this.ptr; return wrapPointer(_emscripten_bind_AdaptValue_NilObject_0(self), AdaptValue); };
|
|
3682
|
+
AdaptValue.prototype["Visualize"] = AdaptValue.prototype.Visualize = function () { var self = this.ptr; return UTF8ToString(_emscripten_bind_AdaptValue_Visualize_0(self)); };
|
|
3683
|
+
AdaptValue.prototype["Serialize"] = AdaptValue.prototype.Serialize = function () { var self = this.ptr; return wrapPointer(_emscripten_bind_AdaptValue_Serialize_0(self), Binary); };
|
|
3684
|
+
AdaptValue.prototype["GetHash"] = AdaptValue.prototype.GetHash = function () { var self = this.ptr; return wrapPointer(_emscripten_bind_AdaptValue_GetHash_0(self), AdaptValue); };
|
|
3685
|
+
AdaptValue.prototype["Reduce"] = AdaptValue.prototype.Reduce = function (reducer) { var self = this.ptr; if (reducer && typeof reducer === "object")
|
|
3686
|
+
reducer = reducer.ptr; return wrapPointer(_emscripten_bind_AdaptValue_Reduce_1(self, reducer), AdaptValue); };
|
|
3687
|
+
AdaptValue.prototype["Mutate"] = AdaptValue.prototype.Mutate = function (reducer, product) { var self = this.ptr; if (reducer && typeof reducer === "object")
|
|
3688
|
+
reducer = reducer.ptr; if (product && typeof product === "object")
|
|
3689
|
+
product = product.ptr; return wrapPointer(_emscripten_bind_AdaptValue_Mutate_2(self, reducer, product), AdaptValue); };
|
|
3690
|
+
AdaptValue.prototype["GetPacket"] = AdaptValue.prototype.GetPacket = function () { var self = this.ptr; return wrapPointer(_emscripten_bind_AdaptValue_GetPacket_0(self), AdaptPacketContext); };
|
|
3691
|
+
AdaptValue.prototype["GetNumber"] = AdaptValue.prototype.GetNumber = function () { var self = this.ptr; return _emscripten_bind_AdaptValue_GetNumber_0(self); };
|
|
3692
|
+
AdaptValue.prototype["GetBoolean"] = AdaptValue.prototype.GetBoolean = function () { var self = this.ptr; return !!_emscripten_bind_AdaptValue_GetBoolean_0(self); };
|
|
3693
|
+
AdaptValue.prototype["GetBinary"] = AdaptValue.prototype.GetBinary = function () { var self = this.ptr; return wrapPointer(_emscripten_bind_AdaptValue_GetBinary_0(self), Binary); };
|
|
3694
|
+
AdaptValue.prototype["IsNil"] = AdaptValue.prototype.IsNil = function () { var self = this.ptr; return !!_emscripten_bind_AdaptValue_IsNil_0(self); };
|
|
3695
|
+
AdaptValue.prototype["Equals"] = AdaptValue.prototype.Equals = function (rhs) { var self = this.ptr; if (rhs && typeof rhs === "object")
|
|
3696
|
+
rhs = rhs.ptr; return !!_emscripten_bind_AdaptValue_Equals_1(self, rhs); };
|
|
3697
|
+
AdaptValue.prototype["Less"] = AdaptValue.prototype.Less = function (rhs) { var self = this.ptr; if (rhs && typeof rhs === "object")
|
|
3698
|
+
rhs = rhs.ptr; return !!_emscripten_bind_AdaptValue_Less_1(self, rhs); };
|
|
3699
|
+
AdaptValue.prototype["GetKeys"] = AdaptValue.prototype.GetKeys = function () { var self = this.ptr; return wrapPointer(_emscripten_bind_AdaptValue_GetKeys_0(self), IteratorAdaptValue); };
|
|
3700
|
+
AdaptValue.prototype["Clone"] = AdaptValue.prototype.Clone = function () { var self = this.ptr; return wrapPointer(_emscripten_bind_AdaptValue_Clone_0(self), AdaptValue); };
|
|
3701
|
+
AdaptValue.prototype["Destroy"] = AdaptValue.prototype.Destroy = function () { var self = this.ptr; _emscripten_bind_AdaptValue_Destroy_0(self); };
|
|
3702
|
+
AdaptValue.prototype["Check"] = AdaptValue.prototype.Check = function () { var self = this.ptr; _emscripten_bind_AdaptValue_Check_0(self); };
|
|
3703
|
+
AdaptValue.prototype["__destroy__"] = AdaptValue.prototype.__destroy__ = function () { var self = this.ptr; _emscripten_bind_AdaptValue___destroy___0(self); };
|
|
3704
|
+
function AdaptPacketContext() { throw "cannot construct a AdaptPacketContext, no constructor in IDL"; }
|
|
3705
|
+
AdaptPacketContext.prototype = Object.create(WrapperObject.prototype);
|
|
3706
|
+
AdaptPacketContext.prototype.constructor = AdaptPacketContext;
|
|
3707
|
+
AdaptPacketContext.prototype.__class__ = AdaptPacketContext;
|
|
3708
|
+
AdaptPacketContext.__cache__ = {};
|
|
3709
|
+
Module["AdaptPacketContext"] = AdaptPacketContext;
|
|
3710
|
+
AdaptPacketContext.prototype["LoadFromFile"] = AdaptPacketContext.prototype.LoadFromFile = function (fileName) { var self = this.ptr; ensureCache.prepare(); if (fileName && typeof fileName === "object")
|
|
3711
|
+
fileName = fileName.ptr;
|
|
3712
|
+
else
|
|
3713
|
+
fileName = ensureString(fileName); return wrapPointer(_emscripten_bind_AdaptPacketContext_LoadFromFile_1(self, fileName), AdaptPacketContext); };
|
|
3714
|
+
AdaptPacketContext.prototype["LoadFromContents"] = AdaptPacketContext.prototype.LoadFromContents = function (bin) { var self = this.ptr; if (bin && typeof bin === "object")
|
|
3715
|
+
bin = bin.ptr; return wrapPointer(_emscripten_bind_AdaptPacketContext_LoadFromContents_1(self, bin), AdaptPacketContext); };
|
|
3716
|
+
AdaptPacketContext.prototype["ParseValue"] = AdaptPacketContext.prototype.ParseValue = function (source) { var self = this.ptr; if (source && typeof source === "object")
|
|
3717
|
+
source = source.ptr; return wrapPointer(_emscripten_bind_AdaptPacketContext_ParseValue_1(self, source), AdaptValue); };
|
|
3718
|
+
AdaptPacketContext.prototype["ParseValueFromJSON"] = AdaptPacketContext.prototype.ParseValueFromJSON = function (source) { var self = this.ptr; ensureCache.prepare(); if (source && typeof source === "object")
|
|
3719
|
+
source = source.ptr;
|
|
3720
|
+
else
|
|
3721
|
+
source = ensureString(source); return wrapPointer(_emscripten_bind_AdaptPacketContext_ParseValueFromJSON_1(self, source), AdaptValue); };
|
|
3722
|
+
AdaptPacketContext.prototype["CreateDictionary"] = AdaptPacketContext.prototype.CreateDictionary = function () { var self = this.ptr; return wrapPointer(_emscripten_bind_AdaptPacketContext_CreateDictionary_0(self), AdaptValue); };
|
|
3723
|
+
AdaptPacketContext.prototype["NewBinaryFromHex"] = AdaptPacketContext.prototype.NewBinaryFromHex = function (hex) { var self = this.ptr; ensureCache.prepare(); if (hex && typeof hex === "object")
|
|
3724
|
+
hex = hex.ptr;
|
|
3725
|
+
else
|
|
3726
|
+
hex = ensureString(hex); return wrapPointer(_emscripten_bind_AdaptPacketContext_NewBinaryFromHex_1(self, hex), AdaptValue); };
|
|
3727
|
+
AdaptPacketContext.prototype["NewBinaryFromBuffer"] = AdaptPacketContext.prototype.NewBinaryFromBuffer = function (bin) { var self = this.ptr; if (bin && typeof bin === "object")
|
|
3728
|
+
bin = bin.ptr; return wrapPointer(_emscripten_bind_AdaptPacketContext_NewBinaryFromBuffer_1(self, bin), AdaptValue); };
|
|
3729
|
+
AdaptPacketContext.prototype["ExecuteTransaction"] = AdaptPacketContext.prototype.ExecuteTransaction = function (transaction, entropy_hex, ts) { var self = this.ptr; ensureCache.prepare(); if (transaction && typeof transaction === "object")
|
|
3730
|
+
transaction = transaction.ptr; if (entropy_hex && typeof entropy_hex === "object")
|
|
3731
|
+
entropy_hex = entropy_hex.ptr;
|
|
3732
|
+
else
|
|
3733
|
+
entropy_hex = ensureString(entropy_hex); if (ts && typeof ts === "object")
|
|
3734
|
+
ts = ts.ptr; return wrapPointer(_emscripten_bind_AdaptPacketContext_ExecuteTransaction_3(self, transaction, entropy_hex, ts), AdaptValue); };
|
|
3735
|
+
AdaptPacketContext.prototype["GetFunction"] = AdaptPacketContext.prototype.GetFunction = function (functionName) { var self = this.ptr; ensureCache.prepare(); if (functionName && typeof functionName === "object")
|
|
3736
|
+
functionName = functionName.ptr;
|
|
3737
|
+
else
|
|
3738
|
+
functionName = ensureString(functionName); return wrapPointer(_emscripten_bind_AdaptPacketContext_GetFunction_1(self, functionName), AdaptFunctionInvocation); };
|
|
3739
|
+
AdaptPacketContext.prototype["GetHash"] = AdaptPacketContext.prototype.GetHash = function () { var self = this.ptr; return wrapPointer(_emscripten_bind_AdaptPacketContext_GetHash_0(self), AdaptValue); };
|
|
3740
|
+
AdaptPacketContext.prototype["GetContainerID"] = AdaptPacketContext.prototype.GetContainerID = function () { var self = this.ptr; return wrapPointer(_emscripten_bind_AdaptPacketContext_GetContainerID_0(self), AdaptValue); };
|
|
3741
|
+
AdaptPacketContext.prototype["GetCodeID"] = AdaptPacketContext.prototype.GetCodeID = function () { var self = this.ptr; return wrapPointer(_emscripten_bind_AdaptPacketContext_GetCodeID_0(self), AdaptValue); };
|
|
3742
|
+
AdaptPacketContext.prototype["Serialize"] = AdaptPacketContext.prototype.Serialize = function () { var self = this.ptr; return wrapPointer(_emscripten_bind_AdaptPacketContext_Serialize_0(self), Binary); };
|
|
3743
|
+
AdaptPacketContext.prototype["Destroy"] = AdaptPacketContext.prototype.Destroy = function () { var self = this.ptr; _emscripten_bind_AdaptPacketContext_Destroy_0(self); };
|
|
3744
|
+
AdaptPacketContext.prototype["Check"] = AdaptPacketContext.prototype.Check = function () { var self = this.ptr; _emscripten_bind_AdaptPacketContext_Check_0(self); };
|
|
3745
|
+
AdaptPacketContext.prototype["Clone"] = AdaptPacketContext.prototype.Clone = function () { var self = this.ptr; return wrapPointer(_emscripten_bind_AdaptPacketContext_Clone_0(self), AdaptPacketContext); };
|
|
3746
|
+
AdaptPacketContext.prototype["TransactionsList"] = AdaptPacketContext.prototype.TransactionsList = function () { var self = this.ptr; return wrapPointer(_emscripten_bind_AdaptPacketContext_TransactionsList_0(self), IteratorString); };
|
|
3747
|
+
AdaptPacketContext.prototype["NilObject"] = AdaptPacketContext.prototype.NilObject = function () { var self = this.ptr; return wrapPointer(_emscripten_bind_AdaptPacketContext_NilObject_0(self), AdaptValue); };
|
|
3748
|
+
AdaptPacketContext.prototype["__destroy__"] = AdaptPacketContext.prototype.__destroy__ = function () { var self = this.ptr; _emscripten_bind_AdaptPacketContext___destroy___0(self); };
|
|
3749
|
+
function AdaptFunctionInvocation() { throw "cannot construct a AdaptFunctionInvocation, no constructor in IDL"; }
|
|
3750
|
+
AdaptFunctionInvocation.prototype = Object.create(WrapperObject.prototype);
|
|
3751
|
+
AdaptFunctionInvocation.prototype.constructor = AdaptFunctionInvocation;
|
|
3752
|
+
AdaptFunctionInvocation.prototype.__class__ = AdaptFunctionInvocation;
|
|
3753
|
+
AdaptFunctionInvocation.__cache__ = {};
|
|
3754
|
+
Module["AdaptFunctionInvocation"] = AdaptFunctionInvocation;
|
|
3755
|
+
AdaptFunctionInvocation.prototype["Reset"] = AdaptFunctionInvocation.prototype.Reset = function () { var self = this.ptr; _emscripten_bind_AdaptFunctionInvocation_Reset_0(self); };
|
|
3756
|
+
AdaptFunctionInvocation.prototype["PushParameter"] = AdaptFunctionInvocation.prototype.PushParameter = function (parameter) { var self = this.ptr; if (parameter && typeof parameter === "object")
|
|
3757
|
+
parameter = parameter.ptr; _emscripten_bind_AdaptFunctionInvocation_PushParameter_1(self, parameter); };
|
|
3758
|
+
AdaptFunctionInvocation.prototype["Execute"] = AdaptFunctionInvocation.prototype.Execute = function () { var self = this.ptr; return wrapPointer(_emscripten_bind_AdaptFunctionInvocation_Execute_0(self), AdaptValue); };
|
|
3759
|
+
AdaptFunctionInvocation.prototype["Destroy"] = AdaptFunctionInvocation.prototype.Destroy = function () { var self = this.ptr; _emscripten_bind_AdaptFunctionInvocation_Destroy_0(self); };
|
|
3760
|
+
AdaptFunctionInvocation.prototype["Check"] = AdaptFunctionInvocation.prototype.Check = function () { var self = this.ptr; _emscripten_bind_AdaptFunctionInvocation_Check_0(self); };
|
|
3761
|
+
AdaptFunctionInvocation.prototype["__destroy__"] = AdaptFunctionInvocation.prototype.__destroy__ = function () { var self = this.ptr; _emscripten_bind_AdaptFunctionInvocation___destroy___0(self); };
|
|
3762
|
+
function AdaptEnvironment() { this.ptr = _emscripten_bind_AdaptEnvironment_AdaptEnvironment_0(); getCache(AdaptEnvironment)[this.ptr] = this; }
|
|
3763
|
+
AdaptEnvironment.prototype = Object.create(WrapperObject.prototype);
|
|
3764
|
+
AdaptEnvironment.prototype.constructor = AdaptEnvironment;
|
|
3765
|
+
AdaptEnvironment.prototype.__class__ = AdaptEnvironment;
|
|
3766
|
+
AdaptEnvironment.__cache__ = {};
|
|
3767
|
+
Module["AdaptEnvironment"] = AdaptEnvironment;
|
|
3768
|
+
AdaptEnvironment.prototype["Initialize"] = AdaptEnvironment.prototype.Initialize = function (test_mode) { var self = this.ptr; if (test_mode && typeof test_mode === "object")
|
|
3769
|
+
test_mode = test_mode.ptr; _emscripten_bind_AdaptEnvironment_Initialize_1(self, test_mode); };
|
|
3770
|
+
AdaptEnvironment.prototype["EmptyPacket"] = AdaptEnvironment.prototype.EmptyPacket = function (secure) { var self = this.ptr; if (secure && typeof secure === "object")
|
|
3771
|
+
secure = secure.ptr; return wrapPointer(_emscripten_bind_AdaptEnvironment_EmptyPacket_1(self, secure), AdaptPacketContext); };
|
|
3772
|
+
AdaptEnvironment.prototype["CreatePacket"] = AdaptEnvironment.prototype.CreatePacket = function (unit, seedPhrase, entropy, timestamp, secure, init_arg) { var self = this.ptr; ensureCache.prepare(); if (unit && typeof unit === "object")
|
|
3773
|
+
unit = unit.ptr; if (seedPhrase && typeof seedPhrase === "object")
|
|
3774
|
+
seedPhrase = seedPhrase.ptr;
|
|
3775
|
+
else
|
|
3776
|
+
seedPhrase = ensureString(seedPhrase); if (entropy && typeof entropy === "object")
|
|
3777
|
+
entropy = entropy.ptr;
|
|
3778
|
+
else
|
|
3779
|
+
entropy = ensureString(entropy); if (timestamp && typeof timestamp === "object")
|
|
3780
|
+
timestamp = timestamp.ptr; if (secure && typeof secure === "object")
|
|
3781
|
+
secure = secure.ptr; if (init_arg && typeof init_arg === "object")
|
|
3782
|
+
init_arg = init_arg.ptr; return wrapPointer(_emscripten_bind_AdaptEnvironment_CreatePacket_6(self, unit, seedPhrase, entropy, timestamp, secure, init_arg), AdaptPacketContext); };
|
|
3783
|
+
AdaptEnvironment.prototype["SystemTime"] = AdaptEnvironment.prototype.SystemTime = function () { var self = this.ptr; return wrapPointer(_emscripten_bind_AdaptEnvironment_SystemTime_0(self), AdaptValue); };
|
|
3784
|
+
AdaptEnvironment.prototype["ParseTime"] = AdaptEnvironment.prototype.ParseTime = function (timestamp) { var self = this.ptr; ensureCache.prepare(); if (timestamp && typeof timestamp === "object")
|
|
3785
|
+
timestamp = timestamp.ptr;
|
|
3786
|
+
else
|
|
3787
|
+
timestamp = ensureString(timestamp); return wrapPointer(_emscripten_bind_AdaptEnvironment_ParseTime_1(self, timestamp), AdaptValue); };
|
|
3788
|
+
AdaptEnvironment.prototype["GetRandomBytes"] = AdaptEnvironment.prototype.GetRandomBytes = function (length) { var self = this.ptr; if (length && typeof length === "object")
|
|
3789
|
+
length = length.ptr; return wrapPointer(_emscripten_bind_AdaptEnvironment_GetRandomBytes_1(self, length), AdaptValue); };
|
|
3790
|
+
AdaptEnvironment.prototype["hasError"] = AdaptEnvironment.prototype.hasError = function () { var self = this.ptr; return !!_emscripten_bind_AdaptEnvironment_hasError_0(self); };
|
|
3791
|
+
AdaptEnvironment.prototype["getError"] = AdaptEnvironment.prototype.getError = function () { var self = this.ptr; return UTF8ToString(_emscripten_bind_AdaptEnvironment_getError_0(self)); };
|
|
3792
|
+
AdaptEnvironment.prototype["clearError"] = AdaptEnvironment.prototype.clearError = function () { var self = this.ptr; _emscripten_bind_AdaptEnvironment_clearError_0(self); };
|
|
3793
|
+
AdaptEnvironment.prototype["countObjectsOutstanding"] = AdaptEnvironment.prototype.countObjectsOutstanding = function () { var self = this.ptr; return _emscripten_bind_AdaptEnvironment_countObjectsOutstanding_0(self); };
|
|
3794
|
+
AdaptEnvironment.prototype["getStderrContents"] = AdaptEnvironment.prototype.getStderrContents = function () { var self = this.ptr; return UTF8ToString(_emscripten_bind_AdaptEnvironment_getStderrContents_0(self)); };
|
|
3795
|
+
AdaptEnvironment.prototype["getStdoutContents"] = AdaptEnvironment.prototype.getStdoutContents = function () { var self = this.ptr; return UTF8ToString(_emscripten_bind_AdaptEnvironment_getStdoutContents_0(self)); };
|
|
3796
|
+
AdaptEnvironment.prototype["__destroy__"] = AdaptEnvironment.prototype.__destroy__ = function () { var self = this.ptr; _emscripten_bind_AdaptEnvironment___destroy___0(self); };
|
|
3797
|
+
if (typeof FS != undefined)
|
|
3798
|
+
Module["FS"] = FS;
|
|
3799
|
+
if (typeof NODEFS != undefined)
|
|
3800
|
+
Module["NODEFS"] = NODEFS;
|
|
3801
|
+
if (typeof window === "object" && (typeof ENVIRONMENT_IS_PTHREAD === "undefined" || !ENVIRONMENT_IS_PTHREAD)) {
|
|
3802
|
+
var emrun_register_handlers = function () { var emrun_num_post_messages_in_flight = 0; var emrun_should_close_itself = false; var postExit = function (msg) { var http = new XMLHttpRequest; http.open("POST", "stdio.html", false); http.send(msg); try {
|
|
3803
|
+
window.close();
|
|
3804
|
+
}
|
|
3805
|
+
catch (e) { } }; var post = function (msg) { var http = new XMLHttpRequest; ++emrun_num_post_messages_in_flight; http.onreadystatechange = function () { if (http.readyState == 4) {
|
|
3806
|
+
if (--emrun_num_post_messages_in_flight == 0 && emrun_should_close_itself)
|
|
3807
|
+
postExit("^exit^" + EXITSTATUS);
|
|
3808
|
+
} }; http.open("POST", "stdio.html", true); http.send(msg); }; if (document.URL.search("localhost") != -1 || document.URL.search(":6931/") != -1) {
|
|
3809
|
+
var emrun_http_sequence_number = 1;
|
|
3810
|
+
var prevPrint = out;
|
|
3811
|
+
var prevErr = err;
|
|
3812
|
+
addOnExit(function () { if (emrun_num_post_messages_in_flight == 0)
|
|
3813
|
+
postExit("^exit^" + EXITSTATUS);
|
|
3814
|
+
else
|
|
3815
|
+
emrun_should_close_itself = true; });
|
|
3816
|
+
out = function (text) { post("^out^" + emrun_http_sequence_number++ + "^" + encodeURIComponent(text)); prevPrint(text); };
|
|
3817
|
+
err = function (text) { post("^err^" + emrun_http_sequence_number++ + "^" + encodeURIComponent(text)); prevErr(text); };
|
|
3818
|
+
var tryToSendPageload = function () { try {
|
|
3819
|
+
post("^pageload^");
|
|
3820
|
+
}
|
|
3821
|
+
catch (e) {
|
|
3822
|
+
setTimeout(tryToSendPageload, 50);
|
|
3823
|
+
} };
|
|
3824
|
+
tryToSendPageload();
|
|
3825
|
+
} };
|
|
3826
|
+
if (typeof Module !== "undefined" && typeof document !== "undefined")
|
|
3827
|
+
emrun_register_handlers();
|
|
3828
|
+
}
|
|
3829
|
+
return createEMSCModule.ready;
|
|
3830
|
+
});
|
|
3831
|
+
})();
|
|
3832
|
+
export default createEMSCModule;
|
|
3833
|
+
//# sourceMappingURL=mufl-bindings.js.map
|