forked from LeenkxTeam/Kmake
523 lines
4.5 MiB
JavaScript
523 lines
4.5 MiB
JavaScript
|
|
"use strict";
|
||
|
|
var __create = Object.create;
|
||
|
|
var __defProp = Object.defineProperty;
|
||
|
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||
|
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||
|
|
var __getProtoOf = Object.getPrototypeOf;
|
||
|
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||
|
|
var __commonJS = (cb, mod) => function __require() {
|
||
|
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||
|
|
};
|
||
|
|
var __export = (target, all) => {
|
||
|
|
for (var name in all)
|
||
|
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||
|
|
};
|
||
|
|
var __copyProps = (to, from, except, desc) => {
|
||
|
|
if (from && typeof from === "object" || typeof from === "function") {
|
||
|
|
for (let key of __getOwnPropNames(from))
|
||
|
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
||
|
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||
|
|
}
|
||
|
|
return to;
|
||
|
|
};
|
||
|
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||
|
|
// If the importer is in node compatibility mode or this is not an ESM
|
||
|
|
// file that has been converted to a CommonJS file using a Babel-
|
||
|
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
||
|
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
||
|
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||
|
|
mod
|
||
|
|
));
|
||
|
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||
|
|
|
||
|
|
// lib/wasm.js
|
||
|
|
var require_wasm = __commonJS({
|
||
|
|
"lib/wasm.js"(exports2, module2) {
|
||
|
|
"use strict";
|
||
|
|
var imports = {};
|
||
|
|
imports["__wbindgen_placeholder__"] = module2.exports;
|
||
|
|
var wasm;
|
||
|
|
var { TextDecoder, TextEncoder } = require("util");
|
||
|
|
var heap = new Array(128).fill(void 0);
|
||
|
|
heap.push(void 0, null, true, false);
|
||
|
|
function getObject(idx) {
|
||
|
|
return heap[idx];
|
||
|
|
}
|
||
|
|
var heap_next = heap.length;
|
||
|
|
function addHeapObject(obj) {
|
||
|
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
||
|
|
const idx = heap_next;
|
||
|
|
heap_next = heap[idx];
|
||
|
|
heap[idx] = obj;
|
||
|
|
return idx;
|
||
|
|
}
|
||
|
|
function handleError(f, args) {
|
||
|
|
try {
|
||
|
|
return f.apply(this, args);
|
||
|
|
} catch (e) {
|
||
|
|
wasm.__wbindgen_export_0(addHeapObject(e));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
var cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true });
|
||
|
|
cachedTextDecoder.decode();
|
||
|
|
var cachedUint8ArrayMemory0 = null;
|
||
|
|
function getUint8ArrayMemory0() {
|
||
|
|
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
||
|
|
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
||
|
|
}
|
||
|
|
return cachedUint8ArrayMemory0;
|
||
|
|
}
|
||
|
|
function getStringFromWasm0(ptr, len) {
|
||
|
|
ptr = ptr >>> 0;
|
||
|
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
||
|
|
}
|
||
|
|
function getCachedStringFromWasm0(ptr, len) {
|
||
|
|
if (ptr === 0) {
|
||
|
|
return getObject(len);
|
||
|
|
} else {
|
||
|
|
return getStringFromWasm0(ptr, len);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function dropObject(idx) {
|
||
|
|
if (idx < 132) return;
|
||
|
|
heap[idx] = heap_next;
|
||
|
|
heap_next = idx;
|
||
|
|
}
|
||
|
|
function takeObject(idx) {
|
||
|
|
const ret = getObject(idx);
|
||
|
|
dropObject(idx);
|
||
|
|
return ret;
|
||
|
|
}
|
||
|
|
function isLikeNone(x) {
|
||
|
|
return x === void 0 || x === null;
|
||
|
|
}
|
||
|
|
var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
||
|
|
}, unregister: () => {
|
||
|
|
} } : new FinalizationRegistry((state) => {
|
||
|
|
wasm.__wbindgen_export_1.get(state.dtor)(state.a, state.b);
|
||
|
|
});
|
||
|
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
||
|
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
||
|
|
const real = (...args) => {
|
||
|
|
state.cnt++;
|
||
|
|
const a = state.a;
|
||
|
|
state.a = 0;
|
||
|
|
try {
|
||
|
|
return f(a, state.b, ...args);
|
||
|
|
} finally {
|
||
|
|
if (--state.cnt === 0) {
|
||
|
|
wasm.__wbindgen_export_1.get(state.dtor)(a, state.b);
|
||
|
|
CLOSURE_DTORS.unregister(state);
|
||
|
|
} else {
|
||
|
|
state.a = a;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
};
|
||
|
|
real.original = state;
|
||
|
|
CLOSURE_DTORS.register(real, state, state);
|
||
|
|
return real;
|
||
|
|
}
|
||
|
|
function debugString(val) {
|
||
|
|
const type = typeof val;
|
||
|
|
if (type == "number" || type == "boolean" || val == null) {
|
||
|
|
return `${val}`;
|
||
|
|
}
|
||
|
|
if (type == "string") {
|
||
|
|
return `"${val}"`;
|
||
|
|
}
|
||
|
|
if (type == "symbol") {
|
||
|
|
const description = val.description;
|
||
|
|
if (description == null) {
|
||
|
|
return "Symbol";
|
||
|
|
} else {
|
||
|
|
return `Symbol(${description})`;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if (type == "function") {
|
||
|
|
const name = val.name;
|
||
|
|
if (typeof name == "string" && name.length > 0) {
|
||
|
|
return `Function(${name})`;
|
||
|
|
} else {
|
||
|
|
return "Function";
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if (Array.isArray(val)) {
|
||
|
|
const length = val.length;
|
||
|
|
let debug = "[";
|
||
|
|
if (length > 0) {
|
||
|
|
debug += debugString(val[0]);
|
||
|
|
}
|
||
|
|
for (let i = 1; i < length; i++) {
|
||
|
|
debug += ", " + debugString(val[i]);
|
||
|
|
}
|
||
|
|
debug += "]";
|
||
|
|
return debug;
|
||
|
|
}
|
||
|
|
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
||
|
|
let className;
|
||
|
|
if (builtInMatches && builtInMatches.length > 1) {
|
||
|
|
className = builtInMatches[1];
|
||
|
|
} else {
|
||
|
|
return toString.call(val);
|
||
|
|
}
|
||
|
|
if (className == "Object") {
|
||
|
|
try {
|
||
|
|
return "Object(" + JSON.stringify(val) + ")";
|
||
|
|
} catch (_) {
|
||
|
|
return "Object";
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if (val instanceof Error) {
|
||
|
|
return `${val.name}: ${val.message}
|
||
|
|
${val.stack}`;
|
||
|
|
}
|
||
|
|
return className;
|
||
|
|
}
|
||
|
|
var WASM_VECTOR_LEN = 0;
|
||
|
|
var cachedTextEncoder = new TextEncoder("utf-8");
|
||
|
|
var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function(arg, view) {
|
||
|
|
return cachedTextEncoder.encodeInto(arg, view);
|
||
|
|
} : function(arg, view) {
|
||
|
|
const buf = cachedTextEncoder.encode(arg);
|
||
|
|
view.set(buf);
|
||
|
|
return {
|
||
|
|
read: arg.length,
|
||
|
|
written: buf.length
|
||
|
|
};
|
||
|
|
};
|
||
|
|
function passStringToWasm0(arg, malloc, realloc) {
|
||
|
|
if (realloc === void 0) {
|
||
|
|
const buf = cachedTextEncoder.encode(arg);
|
||
|
|
const ptr2 = malloc(buf.length, 1) >>> 0;
|
||
|
|
getUint8ArrayMemory0().subarray(ptr2, ptr2 + buf.length).set(buf);
|
||
|
|
WASM_VECTOR_LEN = buf.length;
|
||
|
|
return ptr2;
|
||
|
|
}
|
||
|
|
let len = arg.length;
|
||
|
|
let ptr = malloc(len, 1) >>> 0;
|
||
|
|
const mem = getUint8ArrayMemory0();
|
||
|
|
let offset = 0;
|
||
|
|
for (; offset < len; offset++) {
|
||
|
|
const code = arg.charCodeAt(offset);
|
||
|
|
if (code > 127) break;
|
||
|
|
mem[ptr + offset] = code;
|
||
|
|
}
|
||
|
|
if (offset !== len) {
|
||
|
|
if (offset !== 0) {
|
||
|
|
arg = arg.slice(offset);
|
||
|
|
}
|
||
|
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
||
|
|
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
||
|
|
const ret = encodeString(arg, view);
|
||
|
|
offset += ret.written;
|
||
|
|
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
||
|
|
}
|
||
|
|
WASM_VECTOR_LEN = offset;
|
||
|
|
return ptr;
|
||
|
|
}
|
||
|
|
var cachedDataViewMemory0 = null;
|
||
|
|
function getDataViewMemory0() {
|
||
|
|
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
||
|
|
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
||
|
|
}
|
||
|
|
return cachedDataViewMemory0;
|
||
|
|
}
|
||
|
|
module2.exports.transform = function(input, options) {
|
||
|
|
const ret = wasm.transform(addHeapObject(input), addHeapObject(options));
|
||
|
|
return takeObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.transformSync = function(input, options) {
|
||
|
|
try {
|
||
|
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
||
|
|
wasm.transformSync(retptr, addHeapObject(input), addHeapObject(options));
|
||
|
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
||
|
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
||
|
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
||
|
|
if (r2) {
|
||
|
|
throw takeObject(r1);
|
||
|
|
}
|
||
|
|
return takeObject(r0);
|
||
|
|
} finally {
|
||
|
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
function __wbg_adapter_42(arg0, arg1, arg2) {
|
||
|
|
wasm.__wbindgen_export_4(arg0, arg1, addHeapObject(arg2));
|
||
|
|
}
|
||
|
|
function __wbg_adapter_67(arg0, arg1, arg2, arg3) {
|
||
|
|
wasm.__wbindgen_export_5(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
||
|
|
}
|
||
|
|
module2.exports.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
||
|
|
const ret = getObject(arg0).buffer;
|
||
|
|
return addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_call_672a4d21634d4a24 = function() {
|
||
|
|
return handleError(function(arg0, arg1) {
|
||
|
|
const ret = getObject(arg0).call(getObject(arg1));
|
||
|
|
return addHeapObject(ret);
|
||
|
|
}, arguments);
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_call_7cccdd69e0791ae2 = function() {
|
||
|
|
return handleError(function(arg0, arg1, arg2) {
|
||
|
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
||
|
|
return addHeapObject(ret);
|
||
|
|
}, arguments);
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_entries_3265d4158b33e5dc = function(arg0) {
|
||
|
|
const ret = Object.entries(getObject(arg0));
|
||
|
|
return addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
|
||
|
|
const ret = getObject(arg0)[arg1 >>> 0];
|
||
|
|
return addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
|
||
|
|
const ret = getObject(arg0)[getObject(arg1)];
|
||
|
|
return addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
|
||
|
|
let result;
|
||
|
|
try {
|
||
|
|
result = getObject(arg0) instanceof ArrayBuffer;
|
||
|
|
} catch (_) {
|
||
|
|
result = false;
|
||
|
|
}
|
||
|
|
const ret = result;
|
||
|
|
return ret;
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
|
||
|
|
let result;
|
||
|
|
try {
|
||
|
|
result = getObject(arg0) instanceof Uint8Array;
|
||
|
|
} catch (_) {
|
||
|
|
result = false;
|
||
|
|
}
|
||
|
|
const ret = result;
|
||
|
|
return ret;
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
||
|
|
const ret = getObject(arg0).length;
|
||
|
|
return ret;
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_length_e2d2a49132c1b256 = function(arg0) {
|
||
|
|
const ret = getObject(arg0).length;
|
||
|
|
return ret;
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
||
|
|
try {
|
||
|
|
var state0 = { a: arg0, b: arg1 };
|
||
|
|
var cb0 = (arg02, arg12) => {
|
||
|
|
const a = state0.a;
|
||
|
|
state0.a = 0;
|
||
|
|
try {
|
||
|
|
return __wbg_adapter_67(a, state0.b, arg02, arg12);
|
||
|
|
} finally {
|
||
|
|
state0.a = a;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
const ret = new Promise(cb0);
|
||
|
|
return addHeapObject(ret);
|
||
|
|
} finally {
|
||
|
|
state0.a = state0.b = 0;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_new_405e22f390576ce2 = function() {
|
||
|
|
const ret = new Object();
|
||
|
|
return addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_new_78feb108b6472713 = function() {
|
||
|
|
const ret = new Array();
|
||
|
|
return addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_new_a12002a7f91c75be = function(arg0) {
|
||
|
|
const ret = new Uint8Array(getObject(arg0));
|
||
|
|
return addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
|
||
|
|
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
||
|
|
const ret = new Function(v0);
|
||
|
|
return addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
|
||
|
|
queueMicrotask(getObject(arg0));
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
|
||
|
|
const ret = getObject(arg0).queueMicrotask;
|
||
|
|
return addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_resolve_4851785c9c5f573d = function(arg0) {
|
||
|
|
const ret = Promise.resolve(getObject(arg0));
|
||
|
|
return addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
|
||
|
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
||
|
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
||
|
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
|
||
|
|
const ret = typeof global === "undefined" ? null : global;
|
||
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
|
||
|
|
const ret = typeof globalThis === "undefined" ? null : globalThis;
|
||
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
|
||
|
|
const ret = typeof self === "undefined" ? null : self;
|
||
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
|
||
|
|
const ret = typeof window === "undefined" ? null : window;
|
||
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
|
||
|
|
const ret = getObject(arg0).then(getObject(arg1));
|
||
|
|
return addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbg_toString_5285597960676b7b = function(arg0) {
|
||
|
|
const ret = getObject(arg0).toString();
|
||
|
|
return addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
||
|
|
const ret = BigInt.asUintN(64, arg0);
|
||
|
|
return addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbindgen_boolean_get = function(arg0) {
|
||
|
|
const v = getObject(arg0);
|
||
|
|
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
|
||
|
|
return ret;
|
||
|
|
};
|
||
|
|
module2.exports.__wbindgen_cb_drop = function(arg0) {
|
||
|
|
const obj = takeObject(arg0).original;
|
||
|
|
if (obj.cnt-- == 1) {
|
||
|
|
obj.a = 0;
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
const ret = false;
|
||
|
|
return ret;
|
||
|
|
};
|
||
|
|
module2.exports.__wbindgen_closure_wrapper8344 = function(arg0, arg1, arg2) {
|
||
|
|
const ret = makeMutClosure(arg0, arg1, 1464, __wbg_adapter_42);
|
||
|
|
return addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
||
|
|
const ret = debugString(getObject(arg1));
|
||
|
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
|
||
|
|
const len1 = WASM_VECTOR_LEN;
|
||
|
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
||
|
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
||
|
|
};
|
||
|
|
module2.exports.__wbindgen_error_new = function(arg0, arg1) {
|
||
|
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
||
|
|
return addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbindgen_in = function(arg0, arg1) {
|
||
|
|
const ret = getObject(arg0) in getObject(arg1);
|
||
|
|
return ret;
|
||
|
|
};
|
||
|
|
module2.exports.__wbindgen_is_falsy = function(arg0) {
|
||
|
|
const ret = !getObject(arg0);
|
||
|
|
return ret;
|
||
|
|
};
|
||
|
|
module2.exports.__wbindgen_is_function = function(arg0) {
|
||
|
|
const ret = typeof getObject(arg0) === "function";
|
||
|
|
return ret;
|
||
|
|
};
|
||
|
|
module2.exports.__wbindgen_is_object = function(arg0) {
|
||
|
|
const val = getObject(arg0);
|
||
|
|
const ret = typeof val === "object" && val !== null;
|
||
|
|
return ret;
|
||
|
|
};
|
||
|
|
module2.exports.__wbindgen_is_string = function(arg0) {
|
||
|
|
const ret = typeof getObject(arg0) === "string";
|
||
|
|
return ret;
|
||
|
|
};
|
||
|
|
module2.exports.__wbindgen_is_undefined = function(arg0) {
|
||
|
|
const ret = getObject(arg0) === void 0;
|
||
|
|
return ret;
|
||
|
|
};
|
||
|
|
module2.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
||
|
|
const ret = getObject(arg0) == getObject(arg1);
|
||
|
|
return ret;
|
||
|
|
};
|
||
|
|
module2.exports.__wbindgen_memory = function() {
|
||
|
|
const ret = wasm.memory;
|
||
|
|
return addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbindgen_number_get = function(arg0, arg1) {
|
||
|
|
const obj = getObject(arg1);
|
||
|
|
const ret = typeof obj === "number" ? obj : void 0;
|
||
|
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
||
|
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
||
|
|
};
|
||
|
|
module2.exports.__wbindgen_number_new = function(arg0) {
|
||
|
|
const ret = arg0;
|
||
|
|
return addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbindgen_object_clone_ref = function(arg0) {
|
||
|
|
const ret = getObject(arg0);
|
||
|
|
return addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbindgen_object_drop_ref = function(arg0) {
|
||
|
|
takeObject(arg0);
|
||
|
|
};
|
||
|
|
module2.exports.__wbindgen_string_get = function(arg0, arg1) {
|
||
|
|
const obj = getObject(arg1);
|
||
|
|
const ret = typeof obj === "string" ? obj : void 0;
|
||
|
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
|
||
|
|
var len1 = WASM_VECTOR_LEN;
|
||
|
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
||
|
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
||
|
|
};
|
||
|
|
module2.exports.__wbindgen_string_new = function(arg0, arg1) {
|
||
|
|
const ret = getStringFromWasm0(arg0, arg1);
|
||
|
|
return addHeapObject(ret);
|
||
|
|
};
|
||
|
|
module2.exports.__wbindgen_throw = function(arg0, arg1) {
|
||
|
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
||
|
|
};
|
||
|
|
var { Buffer: Buffer2 } = require("node:buffer");
|
||
|
|
var bytes = Buffer2.from("AGFzbQEAAAABxQRI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l9fG19fd2JpbmRnZW5fb2JqZWN0X2Nsb25lX3JlZgAFGF9fd2JpbmRnZW5fcGxhY2Vob2xkZXJfXxRfX3diaW5kZ2VuX2Vycm9yX25ldwAAGF9fd2JpbmRnZW5fcGxhY2Vob2xkZXJfXxlfX3diaW5kZ2VuX2pzdmFsX2xvb3NlX2VxAAAYX193YmluZGdlbl9wbGFjZWhvbGRlcl9fFV9fd2JpbmRnZW5fbnVtYmVyX2dldAABGF9fd2JpbmRnZW5fcGxhY2Vob2xkZXJfXy1fX3diZ19pbnN0YW5jZW9mX0FycmF5QnVmZmVyX2UxNDU4NTQzMmUzNzM3ZmMABRhfX3diaW5kZ2VuX3BsYWNlaG9sZGVyX18eX193YmdfZW50cmllc18zMjY1ZDQxNThiMzNlNWRjAAUYX193YmluZGdlbl9wbGFjZWhvbGRlcl9fEF9fd2JpbmRnZW5fdGhyb3cAARhfX3diaW5kZ2VuX3BsYWNlaG9sZGVyX18XX193YmluZGdlbl9kZWJ1Z19zdHJpbmcAARhfX3diaW5kZ2VuX3BsYWNlaG9sZGVyX18bX193YmdfdGhlbl80NGI3Mzk0NmQyZmIzZTdkAAAYX193YmluZGdlbl9wbGFjZWhvbGRlcl9fJV9fd2JnX3F1ZXVlTWljcm90YXNrXzk3ZDkyYjRmY2M4YTYxYzUAAhhfX3diaW5kZ2VuX3BsYWNlaG9sZGVyX18lX193YmdfcXVldWVNaWNyb3Rhc2tfZDMyMTlkZ
|
||
|
|
var wasmModule = new WebAssembly.Module(bytes);
|
||
|
|
var wasmInstance = new WebAssembly.Instance(wasmModule, imports);
|
||
|
|
wasm = wasmInstance.exports;
|
||
|
|
module2.exports.__wasm = wasm;
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
// src/index.ts
|
||
|
|
var src_exports = {};
|
||
|
|
__export(src_exports, {
|
||
|
|
transformSync: () => transformSync
|
||
|
|
});
|
||
|
|
module.exports = __toCommonJS(src_exports);
|
||
|
|
|
||
|
|
// src/transform.ts
|
||
|
|
var import_wasm = __toESM(require_wasm());
|
||
|
|
var DEFAULT_OPTIONS = {
|
||
|
|
mode: "strip-only",
|
||
|
|
deprecatedTsModuleAsError: true,
|
||
|
|
// default transform will only work when mode is "transform"
|
||
|
|
transform: {
|
||
|
|
verbatimModuleSyntax: true,
|
||
|
|
nativeClassProperties: true,
|
||
|
|
noEmptyExport: true,
|
||
|
|
importNotUsedAsValues: "preserve"
|
||
|
|
}
|
||
|
|
};
|
||
|
|
function transformSync(source, options) {
|
||
|
|
const input = `${source ?? ""}`;
|
||
|
|
return import_wasm.default.transformSync(input, {
|
||
|
|
...DEFAULT_OPTIONS,
|
||
|
|
...options
|
||
|
|
});
|
||
|
|
}
|
||
|
|
// Annotate the CommonJS export names for ESM import in node:
|
||
|
|
0 && (module.exports = {
|
||
|
|
transformSync
|
||
|
|
});
|