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SAUX,OAAO,GAAO,KAAK,MATf,IAAK,MAAM,KAAS,KAAK,KAAK,MAAM,YAChC,IAAK,MAAM,KAAS,EAAM,OACtB,GAAI,EAAM,MAAQ,IAAS,EAAM,SAC7B,OAAO,EAAM,KAAK,KAOtC,CAEA,SAAA,CAAU,EAAM,GAAiB,GAC7B,MAAM,EAAS,KAAK,KAAK,MAAM,UAAU,EAAM,GAC/C,IAAI,GAAQ,SAUZ,OAAO,GAAQ,KAAK,MAThB,IAAK,MAAM,KAAS,KAAK,KAAK,MAAM,YAChC,IAAK,MAAM,KAAU,EAAM,QACvB,GAAI,EAAO,MAAQ,IAAS,EAAO,WAAa,EAAiB,GAAK,EAAO,gBAAkB,GAC3F,OAAO,EAAO,KAAK,KAOvC,CAEA,QAAA,GACI,MAAM,EAAW,KAAK,OAAO,WAAY,GACzC,OAAO,KAAK,SACN,OAGE,EAAS,MAAM,YACT,EAAS,SAAS,SAAW,OAC7B,KAAK,MAAM,YAAc,MAC3C,EAGP,CA9DD,CA8DG,SAAW,OAAS,CAAC,IA4CxB,WAAW,OAAS","file":"/npm/frida-il2cpp-bridge@0.12.1/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/frida-il2cpp-bridge@0.12.1/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar Il2Cpp;\n(function (Il2Cpp) {\n    /** */\n    Il2Cpp.application = {\n        /**\n         * Gets the data path name of the current application, e.g.\n         * `/data/emulated/0/Android/data/com.example.application/files`\n         * on Android.\n         *\n         * **This information is not guaranteed to exist.**\n         *\n         * ```ts\n         * Il2Cpp.perform(() => {\n         *     // prints /data/emulated/0/Android/data/com.example.application/files\n         *     console.log(Il2Cpp.application.dataPath);\n         * });\n         * ```\n         */\n        get dataPath() {\n            return unityEngineCall(\"get_persistentDataPath\");\n        },\n        /**\n         * Gets the identifier name of the current application, e.g.\n         * `com.example.application` on Android.\n         *\n         * In case the identifier cannot be retrieved, the main module name is\n         * returned instead, which typically is the process name.\n         *\n         * ```ts\n         * Il2Cpp.perform(() => {\n         *     // prints com.example.application\n         *     console.log(Il2Cpp.application.identifier);\n         * });\n         * ```\n         */\n        get identifier() {\n            return unityEngineCall(\"get_identifier\") ?? unityEngineCall(\"get_bundleIdentifier\") ?? Process.mainModule.name;\n        },\n        /**\n         * Gets the version name of the current application, e.g. `4.12.8`.\n         *\n         * In case the version cannot be retrieved, an hash of the IL2CPP\n         * module is returned instead.\n         *\n         * ```ts\n         * Il2Cpp.perform(() => {\n         *     // prints 4.12.8\n         *     console.log(Il2Cpp.application.version);\n         * });\n         * ```\n         */\n        get version() {\n            return unityEngineCall(\"get_version\") ?? exportsHash(Il2Cpp.module).toString(16);\n        }\n    };\n    // prettier-ignore\n    getter(Il2Cpp, \"unityVersion\", () => {\n        try {\n            const unityVersion = Il2Cpp.$config.unityVersion ?? unityEngineCall(\"get_unityVersion\");\n            if (unityVersion != null) {\n                return unityVersion;\n            }\n        }\n        catch (_) {\n        }\n        const searchPattern = \"69 6c 32 63 70 70\";\n        for (const range of Il2Cpp.module.enumerateRanges(\"r--\").concat(Process.getRangeByAddress(Il2Cpp.module.base))) {\n            for (let { address } of Memory.scanSync(range.base, range.size, searchPattern)) {\n                while (address.readU8() != 0) {\n                    address = address.sub(1);\n                }\n                const match = UnityVersion.find(address.add(1).readCString());\n                if (match != undefined) {\n                    return match;\n                }\n            }\n        }\n        raise(\"couldn't determine the Unity version, please specify it manually\");\n    }, lazy);\n    // prettier-ignore\n    getter(Il2Cpp, \"unityVersionIsBelow201830\", () => {\n        return UnityVersion.lt(Il2Cpp.unityVersion, \"2018.3.0\");\n    }, lazy);\n    // prettier-ignore\n    getter(Il2Cpp, \"unityVersionIsBelow202120\", () => {\n        return UnityVersion.lt(Il2Cpp.unityVersion, \"2021.2.0\");\n    }, lazy);\n    function unityEngineCall(method) {\n        const handle = Il2Cpp.exports.resolveInternalCall(Memory.allocUtf8String(\"UnityEngine.Application::\" + method));\n        const nativeFunction = new NativeFunction(handle, \"pointer\", []);\n        return nativeFunction.isNull() ? null : new Il2Cpp.String(nativeFunction()).asNullable()?.content ?? null;\n    }\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    /** Create a boxed primitive */\n    function boxed(value, type) {\n        const mapping = {\n            int8: \"System.SByte\",\n            uint8: \"System.Byte\",\n            int16: \"System.Int16\",\n            uint16: \"System.UInt16\",\n            int32: \"System.Int32\",\n            uint32: \"System.UInt32\",\n            int64: \"System.Int64\",\n            uint64: \"System.UInt64\",\n            char: \"System.Char\",\n            intptr: \"System.IntPtr\",\n            uintptr: \"System.UIntPtr\"\n        };\n        const className = typeof value == \"boolean\"\n            ? \"System.Boolean\"\n            : typeof value == \"number\"\n                ? mapping[type ?? \"int32\"]\n                : value instanceof Int64\n                    ? \"System.Int64\"\n                    : value instanceof UInt64\n                        ? \"System.UInt64\"\n                        : value instanceof NativePointer\n                            ? mapping[type ?? \"intptr\"]\n                            : raise(`Cannot create boxed primitive using value of type '${typeof value}'`);\n        const object = Il2Cpp.corlib.class(className ?? raise(`Unknown primitive type name '${type}'`)).alloc();\n        (object.tryField(\"m_value\") ?? object.tryField(\"_pointer\") ?? raise(`Could not find primitive field in class '${className}'`)).value = value;\n        return object;\n    }\n    Il2Cpp.boxed = boxed;\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    /**\n     * Set of configurations users can override. It is for advanced use cases,\n     * when certain values cannot be detected automatically. \\\n     * For reference, see:\n     * - {@link Il2Cpp.module};\n     * - {@link Il2Cpp.unityVersion};\n     * - {@link Il2Cpp.exports};\n     */\n    Il2Cpp.$config = {\n        moduleName: undefined,\n        unityVersion: undefined,\n        exports: undefined\n    };\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    /**\n     * @deprecated\n     * Dumps the application, i.e. it creates a dummy `.cs` file that contains\n     * all the class, field and method declarations.\n     *\n     * The dump is very useful when it comes to inspecting the application as\n     * you can easily search for succulent members using a simple text search,\n     * hence this is typically the very first thing it should be done when\n     * working with a new application. \\\n     * Keep in mind the dump is version, platform and arch dependentend, so\n     * it has to be re-genereated if any of these changes.\n     *\n     * The file is generated in the **target** device, so you might need to\n     * pull it to the host device afterwards.\n     *\n     * Dumping *may* require a file name and a directory path (a place where the\n     * application can write to). If not provided, the target path is generated\n     * automatically using the information from {@link Il2Cpp.application}.\n     *\n     * ```ts\n     * Il2Cpp.perform(() => {\n     *     Il2Cpp.dump();\n     * });\n     * ```\n     *\n     * For instance, the dump resembles the following:\n     * ```\n     * class Mono.DataConverter.PackContext : System.Object\n     * {\n     *     System.Byte[] buffer; // 0x10\n     *     System.Int32 next; // 0x18\n     *     System.String description; // 0x20\n     *     System.Int32 i; // 0x28\n     *     Mono.DataConverter conv; // 0x30\n     *     System.Int32 repeat; // 0x38\n     *     System.Int32 align; // 0x3c\n     *\n     *     System.Void Add(System.Byte[] group); // 0x012ef4f0\n     *     System.Byte[] Get(); // 0x012ef6ec\n     *     System.Void .ctor(); // 0x012ef78c\n     *   }\n     * ```\n     */\n    function dump(fileName, path) {\n        fileName = fileName ?? `${Il2Cpp.application.identifier}_${Il2Cpp.application.version}.cs`;\n        path = path ?? Il2Cpp.application.dataPath ?? Process.getCurrentDir();\n        createDirectoryRecursively(path);\n        const destination = `${path}/${fileName}`;\n        const file = new File(destination, \"w\");\n        for (const assembly of Il2Cpp.domain.assemblies) {\n            inform(`dumping ${assembly.name}...`);\n            for (const klass of assembly.image.classes) {\n                file.write(`${klass}\\n\\n`);\n            }\n        }\n        file.flush();\n        file.close();\n        ok(`dump saved to ${destination}`);\n        showDeprecationNotice();\n    }\n    Il2Cpp.dump = dump;\n    /**\n     * @deprecated\n     * Just like {@link Il2Cpp.dump}, but a `.cs` file per assembly is\n     * generated instead of having a single big `.cs` file. For instance, all\n     * classes within `System.Core` and `System.Runtime.CompilerServices.Unsafe`\n     * are dumped into `System/Core.cs` and\n     * `System/Runtime/CompilerServices/Unsafe.cs`, respectively.\n     *\n     * ```ts\n     * Il2Cpp.perform(() => {\n     *     Il2Cpp.dumpTree();\n     * });\n     * ```\n     */\n    function dumpTree(path, ignoreAlreadyExistingDirectory = false) {\n        path = path ?? `${Il2Cpp.application.dataPath ?? Process.getCurrentDir()}/${Il2Cpp.application.identifier}_${Il2Cpp.application.version}`;\n        if (!ignoreAlreadyExistingDirectory && directoryExists(path)) {\n            raise(`directory ${path} already exists - pass ignoreAlreadyExistingDirectory = true to skip this check`);\n        }\n        for (const assembly of Il2Cpp.domain.assemblies) {\n            inform(`dumping ${assembly.name}...`);\n            const destination = `${path}/${assembly.name.replaceAll(\".\", \"/\")}.cs`;\n            createDirectoryRecursively(destination.substring(0, destination.lastIndexOf(\"/\")));\n            const file = new File(destination, \"w\");\n            for (const klass of assembly.image.classes) {\n                file.write(`${klass}\\n\\n`);\n            }\n            file.flush();\n            file.close();\n        }\n        ok(`dump saved to ${path}`);\n        showDeprecationNotice();\n    }\n    Il2Cpp.dumpTree = dumpTree;\n    function directoryExists(path) {\n        return Il2Cpp.corlib.class(\"System.IO.Directory\").method(\"Exists\").invoke(Il2Cpp.string(path));\n    }\n    function createDirectoryRecursively(path) {\n        Il2Cpp.corlib.class(\"System.IO.Directory\").method(\"CreateDirectory\").invoke(Il2Cpp.string(path));\n    }\n    function showDeprecationNotice() {\n        warn(\"this api will be removed in a future release, please use `npx frida-il2cpp-bridge dump` instead\");\n    }\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    /**\n     * Installs a listener to track any thrown (unrecoverable) C# exception. \\\n     * This may be useful when incurring in `abort was called` errors.\n     *\n     * By default, it only tracks exceptions that were thrown by the *caller*\n     * thread.\n     *\n     * **It may not work for every platform.**\n     *\n     * ```ts\n     * Il2Cpp.perform(() => {\n     *     Il2Cpp.installExceptionListener(\"all\");\n     *\n     *     // rest of the code\n     * });\n     * ```\n     *\n     * For instance, it may print something along:\n     * ```\n     * System.NullReferenceException: Object reference not set to an instance of an object.\n     *   at AddressableLoadWrapper+<LoadGameObject>d__3[T].MoveNext () [0x00000] in <00000000000000000000000000000000>:0\n     *   at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0\n     * ```\n     */\n    function installExceptionListener(targetThread = \"current\") {\n        const currentThread = Il2Cpp.exports.threadGetCurrent();\n        return Interceptor.attach(Il2Cpp.module.getExportByName(\"__cxa_throw\"), function (args) {\n            if (targetThread == \"current\" && !Il2Cpp.exports.threadGetCurrent().equals(currentThread)) {\n                return;\n            }\n            inform(new Il2Cpp.Object(args[0].readPointer()));\n        });\n    }\n    Il2Cpp.installExceptionListener = installExceptionListener;\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    /**\n     * The **core** object where all the necessary IL2CPP native functions are\n     * held. \\\n     * `frida-il2cpp-bridge` is built around this object by providing an\n     * easy-to-use abstraction layer: the user isn't expected to use it directly,\n     * but it can in case of advanced use cases.\n     *\n     * The exports depends on the Unity version, hence some of them may be\n     * unavailable; moreover, they are searched by **name** (e.g.\n     * `il2cpp_class_from_name`) hence they might get stripped, hidden or\n     * renamed by a nasty obfuscator.\n     *\n     * However, it is possible to override or set the handle of any of the\n     * exports using {@link Il2Cpp.$config.exports}:\n     * ```ts\n     * Il2Cpp.$config.exports = {\n     *     il2cpp_image_get_class: () => Il2Cpp.module.base.add(0x1204c),\n     *     il2cpp_class_get_parent: () => {\n     *         return Memory.scanSync(Il2Cpp.module.base, Il2Cpp.module.size, \"2f 10 ee 10 34 a8\")[0].address;\n     *     },\n     * };\n     *\n     * Il2Cpp.perform(() => {\n     *     // ...\n     * });\n     * ```\n     */\n    Il2Cpp.exports = {\n        get alloc() {\n            return r(\"il2cpp_alloc\", \"pointer\", [\"size_t\"]);\n        },\n        get arrayGetLength() {\n            return r(\"il2cpp_array_length\", \"uint32\", [\"pointer\"]);\n        },\n        get arrayNew() {\n            return r(\"il2cpp_array_new\", \"pointer\", [\"pointer\", \"uint32\"]);\n        },\n        get assemblyGetImage() {\n            return r(\"il2cpp_assembly_get_image\", \"pointer\", [\"pointer\"]);\n        },\n        get classForEach() {\n            return r(\"il2cpp_class_for_each\", \"void\", [\"pointer\", \"pointer\"]);\n        },\n        get classFromName() {\n            return r(\"il2cpp_class_from_name\", \"pointer\", [\"pointer\", \"pointer\", \"pointer\"]);\n        },\n        get classFromObject() {\n            return r(\"il2cpp_class_from_system_type\", \"pointer\", [\"pointer\"]);\n        },\n        get classGetArrayClass() {\n            return r(\"il2cpp_array_class_get\", \"pointer\", [\"pointer\", \"uint32\"]);\n        },\n        get classGetArrayElementSize() {\n            return r(\"il2cpp_class_array_element_size\", \"int\", [\"pointer\"]);\n        },\n        get classGetAssemblyName() {\n            return r(\"il2cpp_class_get_assemblyname\", \"pointer\", [\"pointer\"]);\n        },\n        get classGetBaseType() {\n            return r(\"il2cpp_class_enum_basetype\", \"pointer\", [\"pointer\"]);\n        },\n        get classGetDeclaringType() {\n            return r(\"il2cpp_class_get_declaring_type\", \"pointer\", [\"pointer\"]);\n        },\n        get classGetElementClass() {\n            return r(\"il2cpp_class_get_element_class\", \"pointer\", [\"pointer\"]);\n        },\n        get classGetFieldFromName() {\n            return r(\"il2cpp_class_get_field_from_name\", \"pointer\", [\"pointer\", \"pointer\"]);\n        },\n        get classGetFields() {\n            return r(\"il2cpp_class_get_fields\", \"pointer\", [\"pointer\", \"pointer\"]);\n        },\n        get classGetFlags() {\n            return r(\"il2cpp_class_get_flags\", \"int\", [\"pointer\"]);\n        },\n        get classGetImage() {\n            return r(\"il2cpp_class_get_image\", \"pointer\", [\"pointer\"]);\n        },\n        get classGetInstanceSize() {\n            return r(\"il2cpp_class_instance_size\", \"int32\", [\"pointer\"]);\n        },\n        get classGetInterfaces() {\n            return r(\"il2cpp_class_get_interfaces\", \"pointer\", [\"pointer\", \"pointer\"]);\n        },\n        get classGetMethodFromName() {\n            return r(\"il2cpp_class_get_method_from_name\", \"pointer\", [\"pointer\", \"pointer\", \"int\"]);\n        },\n        get classGetMethods() {\n            return r(\"il2cpp_class_get_methods\", \"pointer\", [\"pointer\", \"pointer\"]);\n        },\n        get classGetName() {\n            return r(\"il2cpp_class_get_name\", \"pointer\", [\"pointer\"]);\n        },\n        get classGetNamespace() {\n            return r(\"il2cpp_class_get_namespace\", \"pointer\", [\"pointer\"]);\n        },\n        get classGetNestedClasses() {\n            return r(\"il2cpp_class_get_nested_types\", \"pointer\", [\"pointer\", \"pointer\"]);\n        },\n        get classGetParent() {\n            return r(\"il2cpp_class_get_parent\", \"pointer\", [\"pointer\"]);\n        },\n        get classGetStaticFieldData() {\n            return r(\"il2cpp_class_get_static_field_data\", \"pointer\", [\"pointer\"]);\n        },\n        get classGetValueTypeSize() {\n            return r(\"il2cpp_class_value_size\", \"int32\", [\"pointer\", \"pointer\"]);\n        },\n        get classGetType() {\n            return r(\"il2cpp_class_get_type\", \"pointer\", [\"pointer\"]);\n        },\n        get classHasReferences() {\n            return r(\"il2cpp_class_has_references\", \"bool\", [\"pointer\"]);\n        },\n        get classInitialize() {\n            return r(\"il2cpp_runtime_class_init\", \"void\", [\"pointer\"]);\n        },\n        get classIsAbstract() {\n            return r(\"il2cpp_class_is_abstract\", \"bool\", [\"pointer\"]);\n        },\n        get classIsAssignableFrom() {\n            return r(\"il2cpp_class_is_assignable_from\", \"bool\", [\"pointer\", \"pointer\"]);\n        },\n        get classIsBlittable() {\n            return r(\"il2cpp_class_is_blittable\", \"bool\", [\"pointer\"]);\n        },\n        get classIsEnum() {\n            return r(\"il2cpp_class_is_enum\", \"bool\", [\"pointer\"]);\n        },\n        get classIsGeneric() {\n            return r(\"il2cpp_class_is_generic\", \"bool\", [\"pointer\"]);\n        },\n        get classIsInflated() {\n            return r(\"il2cpp_class_is_inflated\", \"bool\", [\"pointer\"]);\n        },\n        get classIsInterface() {\n            return r(\"il2cpp_class_is_interface\", \"bool\", [\"pointer\"]);\n        },\n        get classIsSubclassOf() {\n            return r(\"il2cpp_class_is_subclass_of\", \"bool\", [\"pointer\", \"pointer\", \"bool\"]);\n        },\n        get classIsValueType() {\n            return r(\"il2cpp_class_is_valuetype\", \"bool\", [\"pointer\"]);\n        },\n        get domainGetAssemblyFromName() {\n            return r(\"il2cpp_domain_assembly_open\", \"pointer\", [\"pointer\", \"pointer\"]);\n        },\n        get domainGet() {\n            return r(\"il2cpp_domain_get\", \"pointer\", []);\n        },\n        get domainGetAssemblies() {\n            return r(\"il2cpp_domain_get_assemblies\", \"pointer\", [\"pointer\", \"pointer\"]);\n        },\n        get fieldGetClass() {\n            return r(\"il2cpp_field_get_parent\", \"pointer\", [\"pointer\"]);\n        },\n        get fieldGetFlags() {\n            return r(\"il2cpp_field_get_flags\", \"int\", [\"pointer\"]);\n        },\n        get fieldGetName() {\n            return r(\"il2cpp_field_get_name\", \"pointer\", [\"pointer\"]);\n        },\n        get fieldGetOffset() {\n            return r(\"il2cpp_field_get_offset\", \"int32\", [\"pointer\"]);\n        },\n        get fieldGetStaticValue() {\n            return r(\"il2cpp_field_static_get_value\", \"void\", [\"pointer\", \"pointer\"]);\n        },\n        get fieldGetType() {\n            return r(\"il2cpp_field_get_type\", \"pointer\", [\"pointer\"]);\n        },\n        get fieldSetStaticValue() {\n            return r(\"il2cpp_field_static_set_value\", \"void\", [\"pointer\", \"pointer\"]);\n        },\n        get free() {\n            return r(\"il2cpp_free\", \"void\", [\"pointer\"]);\n        },\n        get gcCollect() {\n            return r(\"il2cpp_gc_collect\", \"void\", [\"int\"]);\n        },\n        get gcCollectALittle() {\n            return r(\"il2cpp_gc_collect_a_little\", \"void\", []);\n        },\n        get gcDisable() {\n            return r(\"il2cpp_gc_disable\", \"void\", []);\n        },\n        get gcEnable() {\n            return r(\"il2cpp_gc_enable\", \"void\", []);\n        },\n        get gcGetHeapSize() {\n            return r(\"il2cpp_gc_get_heap_size\", \"int64\", []);\n        },\n        get gcGetMaxTimeSlice() {\n            return r(\"il2cpp_gc_get_max_time_slice_ns\", \"int64\", []);\n        },\n        get gcGetUsedSize() {\n            return r(\"il2cpp_gc_get_used_size\", \"int64\", []);\n        },\n        get gcHandleGetTarget() {\n            return r(\"il2cpp_gchandle_get_target\", \"pointer\", [\"uint32\"]);\n        },\n        get gcHandleFree() {\n            return r(\"il2cpp_gchandle_free\", \"void\", [\"uint32\"]);\n        },\n        get gcHandleNew() {\n            return r(\"il2cpp_gchandle_new\", \"uint32\", [\"pointer\", \"bool\"]);\n        },\n        get gcHandleNewWeakRef() {\n            return r(\"il2cpp_gchandle_new_weakref\", \"uint32\", [\"pointer\", \"bool\"]);\n        },\n        get gcIsDisabled() {\n            return r(\"il2cpp_gc_is_disabled\", \"bool\", []);\n        },\n        get gcIsIncremental() {\n            return r(\"il2cpp_gc_is_incremental\", \"bool\", []);\n        },\n        get gcSetMaxTimeSlice() {\n            return r(\"il2cpp_gc_set_max_time_slice_ns\", \"void\", [\"int64\"]);\n        },\n        get gcStartIncrementalCollection() {\n            return r(\"il2cpp_gc_start_incremental_collection\", \"void\", []);\n        },\n        get gcStartWorld() {\n            return r(\"il2cpp_start_gc_world\", \"void\", []);\n        },\n        get gcStopWorld() {\n            return r(\"il2cpp_stop_gc_world\", \"void\", []);\n        },\n        get getCorlib() {\n            return r(\"il2cpp_get_corlib\", \"pointer\", []);\n        },\n        get imageGetAssembly() {\n            return r(\"il2cpp_image_get_assembly\", \"pointer\", [\"pointer\"]);\n        },\n        get imageGetClass() {\n            return r(\"il2cpp_image_get_class\", \"pointer\", [\"pointer\", \"uint\"]);\n        },\n        get imageGetClassCount() {\n            return r(\"il2cpp_image_get_class_count\", \"uint32\", [\"pointer\"]);\n        },\n        get imageGetName() {\n            return r(\"il2cpp_image_get_name\", \"pointer\", [\"pointer\"]);\n        },\n        get initialize() {\n            return r(\"il2cpp_init\", \"void\", [\"pointer\"]);\n        },\n        get livenessAllocateStruct() {\n            return r(\"il2cpp_unity_liveness_allocate_struct\", \"pointer\", [\"pointer\", \"int\", \"pointer\", \"pointer\", \"pointer\"]);\n        },\n        get livenessCalculationBegin() {\n            return r(\"il2cpp_unity_liveness_calculation_begin\", \"pointer\", [\"pointer\", \"int\", \"pointer\", \"pointer\", \"pointer\", \"pointer\"]);\n        },\n        get livenessCalculationEnd() {\n            return r(\"il2cpp_unity_liveness_calculation_end\", \"void\", [\"pointer\"]);\n        },\n        get livenessCalculationFromStatics() {\n            return r(\"il2cpp_unity_liveness_calculation_from_statics\", \"void\", [\"pointer\"]);\n        },\n        get livenessFinalize() {\n            return r(\"il2cpp_unity_liveness_finalize\", \"void\", [\"pointer\"]);\n        },\n        get livenessFreeStruct() {\n            return r(\"il2cpp_unity_liveness_free_struct\", \"void\", [\"pointer\"]);\n        },\n        get memorySnapshotCapture() {\n            return r(\"il2cpp_capture_memory_snapshot\", \"pointer\", []);\n        },\n        get memorySnapshotFree() {\n            return r(\"il2cpp_free_captured_memory_snapshot\", \"void\", [\"pointer\"]);\n        },\n        get memorySnapshotGetClasses() {\n            return r(\"il2cpp_memory_snapshot_get_classes\", \"pointer\", [\"pointer\", \"pointer\"]);\n        },\n        get memorySnapshotGetObjects() {\n            return r(\"il2cpp_memory_snapshot_get_objects\", \"pointer\", [\"pointer\", \"pointer\"]);\n        },\n        get methodGetClass() {\n            return r(\"il2cpp_method_get_class\", \"pointer\", [\"pointer\"]);\n        },\n        get methodGetFlags() {\n            return r(\"il2cpp_method_get_flags\", \"uint32\", [\"pointer\", \"pointer\"]);\n        },\n        get methodGetName() {\n            return r(\"il2cpp_method_get_name\", \"pointer\", [\"pointer\"]);\n        },\n        get methodGetObject() {\n            return r(\"il2cpp_method_get_object\", \"pointer\", [\"pointer\", \"pointer\"]);\n        },\n        get methodGetParameterCount() {\n            return r(\"il2cpp_method_get_param_count\", \"uint8\", [\"pointer\"]);\n        },\n        get methodGetParameterName() {\n            return r(\"il2cpp_method_get_param_name\", \"pointer\", [\"pointer\", \"uint32\"]);\n        },\n        get methodGetParameters() {\n            return r(\"il2cpp_method_get_parameters\", \"pointer\", [\"pointer\", \"pointer\"]);\n        },\n        get methodGetParameterType() {\n            return r(\"il2cpp_method_get_param\", \"pointer\", [\"pointer\", \"uint32\"]);\n        },\n        get methodGetReturnType() {\n            return r(\"il2cpp_method_get_return_type\", \"pointer\", [\"pointer\"]);\n        },\n        get methodIsGeneric() {\n            return r(\"il2cpp_method_is_generic\", \"bool\", [\"pointer\"]);\n        },\n        get methodIsInflated() {\n            return r(\"il2cpp_method_is_inflated\", \"bool\", [\"pointer\"]);\n        },\n        get methodIsInstance() {\n            return r(\"il2cpp_method_is_instance\", \"bool\", [\"pointer\"]);\n        },\n        get monitorEnter() {\n            return r(\"il2cpp_monitor_enter\", \"void\", [\"pointer\"]);\n        },\n        get monitorExit() {\n            return r(\"il2cpp_monitor_exit\", \"void\", [\"pointer\"]);\n        },\n        get monitorPulse() {\n            return r(\"il2cpp_monitor_pulse\", \"void\", [\"pointer\"]);\n        },\n        get monitorPulseAll() {\n            return r(\"il2cpp_monitor_pulse_all\", \"void\", [\"pointer\"]);\n        },\n        get monitorTryEnter() {\n            return r(\"il2cpp_monitor_try_enter\", \"bool\", [\"pointer\", \"uint32\"]);\n        },\n        get monitorTryWait() {\n            return r(\"il2cpp_monitor_try_wait\", \"bool\", [\"pointer\", \"uint32\"]);\n        },\n        get monitorWait() {\n            return r(\"il2cpp_monitor_wait\", \"void\", [\"pointer\"]);\n        },\n        get objectGetClass() {\n            return r(\"il2cpp_object_get_class\", \"pointer\", [\"pointer\"]);\n        },\n        get objectGetVirtualMethod() {\n            return r(\"il2cpp_object_get_virtual_method\", \"pointer\", [\"pointer\", \"pointer\"]);\n        },\n        get objectInitialize() {\n            return r(\"il2cpp_runtime_object_init_exception\", \"void\", [\"pointer\", \"pointer\"]);\n        },\n        get objectNew() {\n            return r(\"il2cpp_object_new\", \"pointer\", [\"pointer\"]);\n        },\n        get objectGetSize() {\n            return r(\"il2cpp_object_get_size\", \"uint32\", [\"pointer\"]);\n        },\n        get objectUnbox() {\n            return r(\"il2cpp_object_unbox\", \"pointer\", [\"pointer\"]);\n        },\n        get resolveInternalCall() {\n            return r(\"il2cpp_resolve_icall\", \"pointer\", [\"pointer\"]);\n        },\n        get stringGetChars() {\n            return r(\"il2cpp_string_chars\", \"pointer\", [\"pointer\"]);\n        },\n        get stringGetLength() {\n            return r(\"il2cpp_string_length\", \"int32\", [\"pointer\"]);\n        },\n        get stringNew() {\n            return r(\"il2cpp_string_new\", \"pointer\", [\"pointer\"]);\n        },\n        get valueTypeBox() {\n            return r(\"il2cpp_value_box\", \"pointer\", [\"pointer\", \"pointer\"]);\n        },\n        get threadAttach() {\n            return r(\"il2cpp_thread_attach\", \"pointer\", [\"pointer\"]);\n        },\n        get threadDetach() {\n            return r(\"il2cpp_thread_detach\", \"void\", [\"pointer\"]);\n        },\n        get threadGetAttachedThreads() {\n            return r(\"il2cpp_thread_get_all_attached_threads\", \"pointer\", [\"pointer\"]);\n        },\n        get threadGetCurrent() {\n            return r(\"il2cpp_thread_current\", \"pointer\", []);\n        },\n        get threadIsVm() {\n            return r(\"il2cpp_is_vm_thread\", \"bool\", [\"pointer\"]);\n        },\n        get typeEquals() {\n            return r(\"il2cpp_type_equals\", \"bool\", [\"pointer\", \"pointer\"]);\n        },\n        get typeGetClass() {\n            return r(\"il2cpp_class_from_type\", \"pointer\", [\"pointer\"]);\n        },\n        get typeGetName() {\n            return r(\"il2cpp_type_get_name\", \"pointer\", [\"pointer\"]);\n        },\n        get typeGetObject() {\n            return r(\"il2cpp_type_get_object\", \"pointer\", [\"pointer\"]);\n        },\n        get typeGetTypeEnum() {\n            return r(\"il2cpp_type_get_type\", \"int\", [\"pointer\"]);\n        }\n    };\n    decorate(Il2Cpp.exports, lazy);\n    getter(Il2Cpp, \"memorySnapshotExports\", () => new CModule(\"#include <stdint.h>\\n#include <string.h>\\n\\ntypedef struct Il2CppManagedMemorySnapshot Il2CppManagedMemorySnapshot;\\ntypedef struct Il2CppMetadataType Il2CppMetadataType;\\n\\nstruct Il2CppManagedMemorySnapshot\\n{\\n  struct Il2CppManagedHeap\\n  {\\n    uint32_t section_count;\\n    void * sections;\\n  } heap;\\n  struct Il2CppStacks\\n  {\\n    uint32_t stack_count;\\n    void * stacks;\\n  } stacks;\\n  struct Il2CppMetadataSnapshot\\n  {\\n    uint32_t type_count;\\n    Il2CppMetadataType * types;\\n  } metadata_snapshot;\\n  struct Il2CppGCHandles\\n  {\\n    uint32_t tracked_object_count;\\n    void ** pointers_to_objects;\\n  } gc_handles;\\n  struct Il2CppRuntimeInformation\\n  {\\n    uint32_t pointer_size;\\n    uint32_t object_header_size;\\n    uint32_t array_header_size;\\n    uint32_t array_bounds_offset_in_header;\\n    uint32_t array_size_offset_in_header;\\n    uint32_t allocation_granularity;\\n  } runtime_information;\\n  void * additional_user_information;\\n};\\n\\nstruct Il2CppMetadataType\\n{\\n  uint32_t flags;\\n  void * fields;\\n  uint32_t field_count;\\n  uint32_t statics_size;\\n  uint8_t * statics;\\n  uint32_t base_or_element_type_index;\\n  char * name;\\n  const char * assembly_name;\\n  uint64_t type_info_address;\\n  uint32_t size;\\n};\\n\\nuintptr_t\\nil2cpp_memory_snapshot_get_classes (\\n    const Il2CppManagedMemorySnapshot * snapshot, Il2CppMetadataType ** iter)\\n{\\n  const int zero = 0;\\n  const void * null = 0;\\n\\n  if (iter != NULL && snapshot->metadata_snapshot.type_count > zero)\\n  {\\n    if (*iter == null)\\n    {\\n      *iter = snapshot->metadata_snapshot.types;\\n      return (uintptr_t) (*iter)->type_info_address;\\n    }\\n    else\\n    {\\n      Il2CppMetadataType * metadata_type = *iter + 1;\\n\\n      if (metadata_type < snapshot->metadata_snapshot.types +\\n                              snapshot->metadata_snapshot.type_count)\\n      {\\n        *iter = metadata_type;\\n        return (uintptr_t) (*iter)->type_info_address;\\n      }\\n    }\\n  }\\n  return 0;\\n}\\n\\nvoid **\\nil2cpp_memory_snapshot_get_objects (\\n    const Il2CppManagedMemorySnapshot * snapshot, uint32_t * size)\\n{\\n  *size = snapshot->gc_handles.tracked_object_count;\\n  return snapshot->gc_handles.pointers_to_objects;\\n}\\n\"), lazy);\n    function r(exportName, retType, argTypes) {\n        const handle = Il2Cpp.$config.exports?.[exportName]?.() ?? Il2Cpp.module.findExportByName(exportName) ?? Il2Cpp.memorySnapshotExports[exportName];\n        const target = new NativeFunction(handle ?? NULL, retType, argTypes);\n        return target.isNull()\n            ? new Proxy(target, {\n                get(value, name) {\n                    const property = value[name];\n                    return typeof property === \"function\" ? property.bind(value) : property;\n                },\n                apply() {\n                    if (handle == null) {\n                        raise(`couldn't resolve export ${exportName}`);\n                    }\n                    else if (handle.isNull()) {\n                        raise(`export ${exportName} points to NULL IL2CPP library has likely been stripped, obfuscated, or customized`);\n                    }\n                }\n            })\n            : target;\n    }\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    /**\n     * Creates a filter to include elements whose type can be assigned to a\n     * variable of the given class. \\\n     * It relies on {@link Il2Cpp.Class.isAssignableFrom}.\n     *\n     * ```ts\n     * const IComparable = Il2Cpp.corlib.class(\"System.IComparable\");\n     *\n     * const objects = [\n     *     Il2Cpp.corlib.class(\"System.Object\").new(),\n     *     Il2Cpp.corlib.class(\"System.String\").new()\n     * ];\n     *\n     * const comparables = objects.filter(Il2Cpp.is(IComparable));\n     * ```\n     */\n    function is(klass) {\n        return (element) => {\n            if (element instanceof Il2Cpp.Class) {\n                return klass.isAssignableFrom(element);\n            }\n            else {\n                return klass.isAssignableFrom(element.class);\n            }\n        };\n    }\n    Il2Cpp.is = is;\n    /**\n     * Creates a filter to include elements whose type can be corresponds to\n     * the given class. \\\n     * It compares the native handle of the element classes.\n     *\n     * ```ts\n     * const String = Il2Cpp.corlib.class(\"System.String\");\n     *\n     * const objects = [\n     *     Il2Cpp.corlib.class(\"System.Object\").new(),\n     *     Il2Cpp.corlib.class(\"System.String\").new()\n     * ];\n     *\n     * const strings = objects.filter(Il2Cpp.isExactly(String));\n     * ```\n     */\n    function isExactly(klass) {\n        return (element) => {\n            if (element instanceof Il2Cpp.Class) {\n                return element.equals(klass);\n            }\n            else {\n                return element.class.equals(klass);\n            }\n        };\n    }\n    Il2Cpp.isExactly = isExactly;\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    /**\n     * The object literal to interacts with the garbage collector.\n     */\n    Il2Cpp.gc = {\n        /**\n         * Gets the heap size in bytes.\n         */\n        get heapSize() {\n            return Il2Cpp.exports.gcGetHeapSize();\n        },\n        /**\n         * Determines whether the garbage collector is enabled.\n         */\n        get isEnabled() {\n            return !Il2Cpp.exports.gcIsDisabled();\n        },\n        /**\n         * Determines whether the garbage collector is incremental\n         * ([source](https://docs.unity3d.com/Manual/performance-incremental-garbage-collection.html)).\n         */\n        get isIncremental() {\n            return !!Il2Cpp.exports.gcIsIncremental();\n        },\n        /**\n         * Gets the number of nanoseconds the garbage collector can spend in a\n         * collection step.\n         */\n        get maxTimeSlice() {\n            return Il2Cpp.exports.gcGetMaxTimeSlice();\n        },\n        /**\n         * Gets the used heap size in bytes.\n         */\n        get usedHeapSize() {\n            return Il2Cpp.exports.gcGetUsedSize();\n        },\n        /**\n         * Enables or disables the garbage collector.\n         */\n        set isEnabled(value) {\n            value ? Il2Cpp.exports.gcEnable() : Il2Cpp.exports.gcDisable();\n        },\n        /**\n         *  Sets the number of nanoseconds the garbage collector can spend in\n         * a collection step.\n         */\n        set maxTimeSlice(nanoseconds) {\n            Il2Cpp.exports.gcSetMaxTimeSlice(nanoseconds);\n        },\n        /**\n         * Returns the heap allocated objects of the specified class. \\\n         * This variant reads GC descriptors.\n         */\n        choose(klass) {\n            const matches = [];\n            const callback = (objects, size) => {\n                for (let i = 0; i < size; i++) {\n                    matches.push(new Il2Cpp.Object(objects.add(i * Process.pointerSize).readPointer()));\n                }\n            };\n            const chooseCallback = new NativeCallback(callback, \"void\", [\"pointer\", \"int\", \"pointer\"]);\n            if (Il2Cpp.unityVersionIsBelow202120) {\n                const onWorld = new NativeCallback(() => { }, \"void\", []);\n                const state = Il2Cpp.exports.livenessCalculationBegin(klass, 0, chooseCallback, NULL, onWorld, onWorld);\n                Il2Cpp.exports.livenessCalculationFromStatics(state);\n                Il2Cpp.exports.livenessCalculationEnd(state);\n            }\n            else {\n                const realloc = (handle, size) => {\n                    if (!handle.isNull() && size.compare(0) == 0) {\n                        Il2Cpp.free(handle);\n                        return NULL;\n                    }\n                    else {\n                        return Il2Cpp.alloc(size);\n                    }\n                };\n                const reallocCallback = new NativeCallback(realloc, \"pointer\", [\"pointer\", \"size_t\", \"pointer\"]);\n                this.stopWorld();\n                const state = Il2Cpp.exports.livenessAllocateStruct(klass, 0, chooseCallback, NULL, reallocCallback);\n                Il2Cpp.exports.livenessCalculationFromStatics(state);\n                Il2Cpp.exports.livenessFinalize(state);\n                this.startWorld();\n                Il2Cpp.exports.livenessFreeStruct(state);\n            }\n            return matches;\n        },\n        /**\n         * Forces a garbage collection of the specified generation.\n         */\n        collect(generation) {\n            Il2Cpp.exports.gcCollect(generation < 0 ? 0 : generation > 2 ? 2 : generation);\n        },\n        /**\n         * Forces a garbage collection.\n         */\n        collectALittle() {\n            Il2Cpp.exports.gcCollectALittle();\n        },\n        /**\n         *  Resumes all the previously stopped threads.\n         */\n        startWorld() {\n            return Il2Cpp.exports.gcStartWorld();\n        },\n        /**\n         * Performs an incremental garbage collection.\n         */\n        startIncrementalCollection() {\n            return Il2Cpp.exports.gcStartIncrementalCollection();\n        },\n        /**\n         * Stops all threads which may access the garbage collected heap, other\n         * than the caller.\n         */\n        stopWorld() {\n            return Il2Cpp.exports.gcStopWorld();\n        }\n    };\n})(Il2Cpp || (Il2Cpp = {}));\n/** @internal */\nvar Android;\n(function (Android) {\n    // prettier-ignore\n    getter(Android, \"apiLevel\", () => {\n        const value = getProperty(\"ro.build.version.sdk\");\n        return value ? parseInt(value) : null;\n    }, lazy);\n    function getProperty(name) {\n        const handle = Process.findModuleByName(\"libc.so\")?.findExportByName(\"__system_property_get\");\n        if (handle) {\n            const __system_property_get = new NativeFunction(handle, \"void\", [\"pointer\", \"pointer\"]);\n            const value = Memory.alloc(92).writePointer(NULL);\n            __system_property_get(Memory.allocUtf8String(name), value);\n            return value.readCString() ?? undefined;\n        }\n    }\n})(Android || (Android = {}));\n/** @internal */\nfunction raise(message) {\n    const error = new Error(message);\n    // in the stack message, it is only used by V8 - qjs ignores it\n    error.name = \"Il2CppError\";\n    error.stack = error.stack\n        // reset style and replace \"(Il2Cpp)?Error\" with custom tag\n        ?.replace(/^(Il2Cpp)?Error/, \"\\x1b[0m\\x1b[38;5;9mil2cpp\\x1b[0m\")\n        // replace the (unhelpful) first line of the stack (\"at raise ...\") and\n        // add style to the stack lines\n        ?.replace(/\\n    at (.+) \\((.+):(.+)\\)/, \"\\x1b[3m\\x1b[2m\")\n        // reset style\n        ?.concat(\"\\x1B[0m\");\n    throw error;\n}\n/** @internal */\nfunction warn(message) {\n    globalThis.console.log(`\\x1b[38;5;11mil2cpp\\x1b[0m: ${message}`);\n}\n/** @internal */\nfunction ok(message) {\n    globalThis.console.log(`\\x1b[38;5;10mil2cpp\\x1b[0m: ${message}`);\n}\n/** @internal */\nfunction inform(message) {\n    globalThis.console.log(`\\x1b[38;5;12mil2cpp\\x1b[0m: ${message}`);\n}\n/** @internal */\nfunction decorate(target, decorator, descriptors = Object.getOwnPropertyDescriptors(target)) {\n    for (const key in descriptors) {\n        descriptors[key] = decorator(target, key, descriptors[key]);\n    }\n    Object.defineProperties(target, descriptors);\n    return target;\n}\n/** @internal */\nfunction getter(target, key, get, decorator) {\n    globalThis.Object.defineProperty(target, key, decorator?.(target, key, { get, configurable: true }) ?? { get, configurable: true });\n}\n/** @internal https://stackoverflow.com/a/52171480/16885569 */\nfunction cyrb53(str) {\n    let h1 = 0xdeadbeef;\n    let h2 = 0x41c6ce57;\n    for (let i = 0, ch; i < str.length; i++) {\n        ch = str.charCodeAt(i);\n        h1 = Math.imul(h1 ^ ch, 2654435761);\n        h2 = Math.imul(h2 ^ ch, 1597334677);\n    }\n    h1 = Math.imul(h1 ^ (h1 >>> 16), 2246822507);\n    h1 ^= Math.imul(h2 ^ (h2 >>> 13), 3266489909);\n    h2 = Math.imul(h2 ^ (h2 >>> 16), 2246822507);\n    h2 ^= Math.imul(h1 ^ (h1 >>> 13), 3266489909);\n    return 4294967296 * (2097151 & h2) + (h1 >>> 0);\n}\n/** @internal */\nfunction exportsHash(module) {\n    return cyrb53(module\n        .enumerateExports()\n        .sort((a, b) => a.name.localeCompare(b.name))\n        .map(_ => _.name + _.address.sub(module.base))\n        .join(\"\"));\n}\n/** @internal */\nfunction lazy(_, propertyKey, descriptor) {\n    const getter = descriptor.get;\n    if (!getter) {\n        throw new Error(\"@lazy can only be applied to getter accessors\");\n    }\n    descriptor.get = function () {\n        const value = getter.call(this);\n        Object.defineProperty(this, propertyKey, {\n            value,\n            configurable: descriptor.configurable,\n            enumerable: descriptor.enumerable,\n            writable: false\n        });\n        return value;\n    };\n    return descriptor;\n}\n/** Scaffold class. */\nclass NativeStruct {\n    handle;\n    constructor(handleOrWrapper) {\n        if (handleOrWrapper instanceof NativePointer) {\n            this.handle = handleOrWrapper;\n        }\n        else {\n            this.handle = handleOrWrapper.handle;\n        }\n    }\n    equals(other) {\n        return this.handle.equals(other.handle);\n    }\n    isNull() {\n        return this.handle.isNull();\n    }\n    asNullable() {\n        return this.isNull() ? null : this;\n    }\n}\n/** @internal */\nfunction addFlippedEntries(obj) {\n    return Object.keys(obj).reduce((obj, key) => ((obj[obj[key]] = key), obj), obj);\n}\nNativePointer.prototype.offsetOf = function (condition, depth) {\n    depth ??= 512;\n    for (let i = 0; depth > 0 ? i < depth : i < -depth; i++) {\n        if (condition(depth > 0 ? this.add(i) : this.sub(i))) {\n            return i;\n        }\n    }\n    return null;\n};\n/** @internal */\nfunction readNativeIterator(block) {\n    const array = [];\n    const iterator = Memory.alloc(Process.pointerSize);\n    let handle = block(iterator);\n    while (!handle.isNull()) {\n        array.push(handle);\n        handle = block(iterator);\n    }\n    return array;\n}\n/** @internal */\nfunction readNativeList(block) {\n    const lengthPointer = Memory.alloc(Process.pointerSize);\n    const startPointer = block(lengthPointer);\n    if (startPointer.isNull()) {\n        return [];\n    }\n    const array = new Array(lengthPointer.readInt());\n    for (let i = 0; i < array.length; i++) {\n        array[i] = startPointer.add(i * Process.pointerSize).readPointer();\n    }\n    return array;\n}\n/** @internal */\nfunction recycle(Class) {\n    return new Proxy(Class, {\n        cache: new Map(),\n        construct(Target, argArray) {\n            const handle = argArray[0].toUInt32();\n            if (!this.cache.has(handle)) {\n                this.cache.set(handle, new Target(argArray[0]));\n            }\n            return this.cache.get(handle);\n        }\n    });\n}\n/** @internal */\nvar UnityVersion;\n(function (UnityVersion) {\n    const pattern = /(6\\d{3}|20\\d{2}|\\d)\\.(\\d)\\.(\\d{1,2})(?:[abcfp]|rc){0,2}\\d?/;\n    function find(string) {\n        return string?.match(pattern)?.[0];\n    }\n    UnityVersion.find = find;\n    function gte(a, b) {\n        return compare(a, b) >= 0;\n    }\n    UnityVersion.gte = gte;\n    function lt(a, b) {\n        return compare(a, b) < 0;\n    }\n    UnityVersion.lt = lt;\n    function compare(a, b) {\n        const aMatches = a.match(pattern);\n        const bMatches = b.match(pattern);\n        for (let i = 1; i <= 3; i++) {\n            const a = Number(aMatches?.[i] ?? -1);\n            const b = Number(bMatches?.[i] ?? -1);\n            if (a > b)\n                return 1;\n            else if (a < b)\n                return -1;\n        }\n        return 0;\n    }\n})(UnityVersion || (UnityVersion = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    /**\n     * Allocates the given amount of bytes - it's equivalent to C's `malloc`. \\\n     * The allocated memory should be freed manually.\n     */\n    function alloc(size = Process.pointerSize) {\n        return Il2Cpp.exports.alloc(size);\n    }\n    Il2Cpp.alloc = alloc;\n    /**\n     * Frees a previously allocated memory using {@link Il2Cpp.alloc} - it's\n     *  equivalent to C's `free`..\n     *\n     * ```ts\n     * const handle = Il2Cpp.alloc(64);\n     *\n     * // ...\n     *\n     * Il2Cpp.free(handle);\n     * ```\n     */\n    function free(pointer) {\n        return Il2Cpp.exports.free(pointer);\n    }\n    Il2Cpp.free = free;\n    /** @internal */\n    function read(pointer, type) {\n        switch (type.enumValue) {\n            case Il2Cpp.Type.Enum.BOOLEAN:\n                return !!pointer.readS8();\n            case Il2Cpp.Type.Enum.BYTE:\n                return pointer.readS8();\n            case Il2Cpp.Type.Enum.UBYTE:\n                return pointer.readU8();\n            case Il2Cpp.Type.Enum.SHORT:\n                return pointer.readS16();\n            case Il2Cpp.Type.Enum.USHORT:\n                return pointer.readU16();\n            case Il2Cpp.Type.Enum.INT:\n                return pointer.readS32();\n            case Il2Cpp.Type.Enum.UINT:\n                return pointer.readU32();\n            case Il2Cpp.Type.Enum.CHAR:\n                return pointer.readU16();\n            case Il2Cpp.Type.Enum.LONG:\n                return pointer.readS64();\n            case Il2Cpp.Type.Enum.ULONG:\n                return pointer.readU64();\n            case Il2Cpp.Type.Enum.FLOAT:\n                return pointer.readFloat();\n            case Il2Cpp.Type.Enum.DOUBLE:\n                return pointer.readDouble();\n            case Il2Cpp.Type.Enum.NINT:\n            case Il2Cpp.Type.Enum.NUINT:\n                return pointer.readPointer();\n            case Il2Cpp.Type.Enum.POINTER:\n                return new Il2Cpp.Pointer(pointer.readPointer(), type.class.baseType);\n            case Il2Cpp.Type.Enum.VALUE_TYPE:\n                return new Il2Cpp.ValueType(pointer, type);\n            case Il2Cpp.Type.Enum.OBJECT:\n            case Il2Cpp.Type.Enum.CLASS:\n                return new Il2Cpp.Object(pointer.readPointer());\n            case Il2Cpp.Type.Enum.GENERIC_INSTANCE:\n                return type.class.isValueType ? new Il2Cpp.ValueType(pointer, type) : new Il2Cpp.Object(pointer.readPointer());\n            case Il2Cpp.Type.Enum.STRING:\n                return new Il2Cpp.String(pointer.readPointer());\n            case Il2Cpp.Type.Enum.ARRAY:\n            case Il2Cpp.Type.Enum.NARRAY:\n                return new Il2Cpp.Array(pointer.readPointer());\n        }\n        raise(`couldn't read the value from ${pointer} using an unhandled or unknown type ${type.name} (${type.enumValue}), please file an issue`);\n    }\n    Il2Cpp.read = read;\n    /** @internal */\n    function write(pointer, value, type) {\n        switch (type.enumValue) {\n            case Il2Cpp.Type.Enum.BOOLEAN:\n                return pointer.writeS8(+value);\n            case Il2Cpp.Type.Enum.BYTE:\n                return pointer.writeS8(value);\n            case Il2Cpp.Type.Enum.UBYTE:\n                return pointer.writeU8(value);\n            case Il2Cpp.Type.Enum.SHORT:\n                return pointer.writeS16(value);\n            case Il2Cpp.Type.Enum.USHORT:\n                return pointer.writeU16(value);\n            case Il2Cpp.Type.Enum.INT:\n                return pointer.writeS32(value);\n            case Il2Cpp.Type.Enum.UINT:\n                return pointer.writeU32(value);\n            case Il2Cpp.Type.Enum.CHAR:\n                return pointer.writeU16(value);\n            case Il2Cpp.Type.Enum.LONG:\n                return pointer.writeS64(value);\n            case Il2Cpp.Type.Enum.ULONG:\n                return pointer.writeU64(value);\n            case Il2Cpp.Type.Enum.FLOAT:\n                return pointer.writeFloat(value);\n            case Il2Cpp.Type.Enum.DOUBLE:\n                return pointer.writeDouble(value);\n            case Il2Cpp.Type.Enum.NINT:\n            case Il2Cpp.Type.Enum.NUINT:\n            case Il2Cpp.Type.Enum.POINTER:\n            case Il2Cpp.Type.Enum.STRING:\n            case Il2Cpp.Type.Enum.ARRAY:\n            case Il2Cpp.Type.Enum.NARRAY:\n                return pointer.writePointer(value);\n            case Il2Cpp.Type.Enum.VALUE_TYPE:\n                return Memory.copy(pointer, value, type.class.valueTypeSize), pointer;\n            case Il2Cpp.Type.Enum.OBJECT:\n            case Il2Cpp.Type.Enum.CLASS:\n            case Il2Cpp.Type.Enum.GENERIC_INSTANCE:\n                return value instanceof Il2Cpp.ValueType ? (Memory.copy(pointer, value, type.class.valueTypeSize), pointer) : pointer.writePointer(value);\n        }\n        raise(`couldn't write value ${value} to ${pointer} using an unhandled or unknown type ${type.name} (${type.enumValue}), please file an issue`);\n    }\n    Il2Cpp.write = write;\n    /** @internal */\n    function fromFridaValue(value, type) {\n        if (globalThis.Array.isArray(value)) {\n            const handle = Memory.alloc(type.class.valueTypeSize);\n            const fields = type.class.fields.filter(_ => !_.isStatic);\n            for (let i = 0; i < fields.length; i++) {\n                const convertedValue = fromFridaValue(value[i], fields[i].type);\n                write(handle.add(fields[i].offset).sub(Il2Cpp.Object.headerSize), convertedValue, fields[i].type);\n            }\n            return new Il2Cpp.ValueType(handle, type);\n        }\n        else if (value instanceof NativePointer) {\n            if (type.isByReference) {\n                return new Il2Cpp.Reference(value, type);\n            }\n            switch (type.enumValue) {\n                case Il2Cpp.Type.Enum.POINTER:\n                    return new Il2Cpp.Pointer(value, type.class.baseType);\n                case Il2Cpp.Type.Enum.STRING:\n                    return new Il2Cpp.String(value);\n                case Il2Cpp.Type.Enum.CLASS:\n                case Il2Cpp.Type.Enum.GENERIC_INSTANCE:\n                case Il2Cpp.Type.Enum.OBJECT:\n                    return new Il2Cpp.Object(value);\n                case Il2Cpp.Type.Enum.ARRAY:\n                case Il2Cpp.Type.Enum.NARRAY:\n                    return new Il2Cpp.Array(value);\n                default:\n                    return value;\n            }\n        }\n        else if (type.enumValue == Il2Cpp.Type.Enum.BOOLEAN) {\n            return !!value;\n        }\n        else if (type.enumValue == Il2Cpp.Type.Enum.VALUE_TYPE && type.class.isEnum) {\n            return fromFridaValue([value], type);\n        }\n        else {\n            return value;\n        }\n    }\n    Il2Cpp.fromFridaValue = fromFridaValue;\n    /** @internal */\n    function toFridaValue(value) {\n        if (typeof value == \"boolean\") {\n            return +value;\n        }\n        else if (value instanceof Il2Cpp.ValueType) {\n            if (value.type.class.isEnum) {\n                return value.field(\"value__\").value;\n            }\n            else {\n                const _ = value.type.class.fields.filter(_ => !_.isStatic).map(_ => toFridaValue(_.bind(value).value));\n                return _.length == 0 ? [0] : _;\n            }\n        }\n        else {\n            return value;\n        }\n    }\n    Il2Cpp.toFridaValue = toFridaValue;\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    getter(Il2Cpp, \"module\", () => {\n        return tryModule() ?? raise(\"Could not find IL2CPP module\");\n    });\n    /**\n     * @internal\n     * Waits for the IL2CPP native library to be loaded and initialized.\n     */\n    async function initialize(blocking = false) {\n        const module = tryModule() ??\n            (await new Promise(resolve => {\n                const [moduleName, fallbackModuleName] = getExpectedModuleNames();\n                const timeout = setTimeout(() => {\n                    warn(`after 10 seconds, IL2CPP module '${moduleName}' has not been loaded yet, is the app running?`);\n                }, 10000);\n                const moduleObserver = Process.attachModuleObserver({\n                    onAdded(module) {\n                        if (module.name == moduleName || (fallbackModuleName && module.name == fallbackModuleName)) {\n                            clearTimeout(timeout);\n                            setImmediate(() => {\n                                resolve(module);\n                                moduleObserver.detach();\n                            });\n                        }\n                    }\n                });\n            }));\n        Reflect.defineProperty(Il2Cpp, \"module\", { value: module });\n        // At this point, the IL2CPP native library has been loaded, but we\n        // cannot interact with IL2CPP until `il2cpp_init` is done.\n        // It looks like `il2cpp_get_corlib` returns NULL only when the\n        // initialization is not completed yet.\n        if (Il2Cpp.exports.getCorlib().isNull()) {\n            return await new Promise(resolve => {\n                const interceptor = Interceptor.attach(Il2Cpp.exports.initialize, {\n                    onLeave() {\n                        interceptor.detach();\n                        blocking ? resolve(true) : setImmediate(() => resolve(false));\n                    }\n                });\n            });\n        }\n        return false;\n    }\n    Il2Cpp.initialize = initialize;\n    function tryModule() {\n        const [moduleName, fallback] = getExpectedModuleNames();\n        return (Process.findModuleByName(moduleName) ??\n            Process.findModuleByName(fallback ?? moduleName) ??\n            (Process.platform == \"darwin\" ? Process.findModuleByAddress(DebugSymbol.fromName(\"il2cpp_init\").address) : undefined)\n            ?? undefined);\n    }\n    function getExpectedModuleNames() {\n        if (Il2Cpp.$config.moduleName) {\n            return [Il2Cpp.$config.moduleName];\n        }\n        switch (Process.platform) {\n            case \"linux\":\n                return [Android.apiLevel ? \"libil2cpp.so\" : \"GameAssembly.so\"];\n            case \"windows\":\n                return [\"GameAssembly.dll\"];\n            case \"darwin\":\n                return [\"UnityFramework\", \"GameAssembly.dylib\"];\n        }\n        raise(`${Process.platform} is not supported yet`);\n    }\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    /** Attaches the caller thread to Il2Cpp domain and executes the given block.  */\n    async function perform(block, flag = \"bind\") {\n        let attachedThread = null;\n        try {\n            const isInMainThread = await Il2Cpp.initialize(flag == \"main\");\n            if (flag == \"main\" && !isInMainThread) {\n                return perform(() => Il2Cpp.mainThread.schedule(block), \"free\");\n            }\n            if (Il2Cpp.currentThread == null) {\n                attachedThread = Il2Cpp.domain.attach();\n            }\n            if (flag == \"bind\" && attachedThread != null) {\n                Script.bindWeak(globalThis, () => attachedThread?.detach());\n            }\n            const result = block();\n            return result instanceof Promise ? await result : result;\n        }\n        catch (error) {\n            Script.nextTick(_ => { throw _; }, error); // prettier-ignore\n            return Promise.reject(error);\n        }\n        finally {\n            if (flag == \"free\" && attachedThread != null) {\n                attachedThread.detach();\n            }\n        }\n    }\n    Il2Cpp.perform = perform;\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    class Tracer {\n        /** @internal */\n        #state = {\n            depth: 0,\n            buffer: [],\n            history: new Set(),\n            flush: () => {\n                if (this.#state.depth == 0) {\n                    const message = `\\n${this.#state.buffer.join(\"\\n\")}\\n`;\n                    if (this.#verbose) {\n                        inform(message);\n                    }\n                    else {\n                        const hash = cyrb53(message);\n                        if (!this.#state.history.has(hash)) {\n                            this.#state.history.add(hash);\n                            inform(message);\n                        }\n                    }\n                    this.#state.buffer.length = 0;\n                }\n            }\n        };\n        /** @internal */\n        #threadId = Il2Cpp.mainThread.id;\n        /** @internal */\n        #verbose = false;\n        /** @internal */\n        #applier;\n        /** @internal */\n        #targets = [];\n        /** @internal */\n        #domain;\n        /** @internal */\n        #assemblies;\n        /** @internal */\n        #classes;\n        /** @internal */\n        #methods;\n        /** @internal */\n        #assemblyFilter;\n        /** @internal */\n        #classFilter;\n        /** @internal */\n        #methodFilter;\n        /** @internal */\n        #parameterFilter;\n        constructor(applier) {\n            this.#applier = applier;\n        }\n        /** */\n        thread(thread) {\n            this.#threadId = thread.id;\n            return this;\n        }\n        /** Determines whether print duplicate logs. */\n        verbose(value) {\n            this.#verbose = value;\n            return this;\n        }\n        /** Sets the application domain as the place where to find the target methods. */\n        domain() {\n            this.#domain = Il2Cpp.domain;\n            return this;\n        }\n        /** Sets the passed `assemblies` as the place where to find the target methods. */\n        assemblies(...assemblies) {\n            this.#assemblies = assemblies;\n            return this;\n        }\n        /** Sets the passed `classes` as the place where to find the target methods. */\n        classes(...classes) {\n            this.#classes = classes;\n            return this;\n        }\n        /** Sets the passed `methods` as the target methods. */\n        methods(...methods) {\n            this.#methods = methods;\n            return this;\n        }\n        /** Filters the assemblies where to find the target methods. */\n        filterAssemblies(filter) {\n            this.#assemblyFilter = filter;\n            return this;\n        }\n        /** Filters the classes where to find the target methods. */\n        filterClasses(filter) {\n            this.#classFilter = filter;\n            return this;\n        }\n        /** Filters the target methods. */\n        filterMethods(filter) {\n            this.#methodFilter = filter;\n            return this;\n        }\n        /** Filters the target methods. */\n        filterParameters(filter) {\n            this.#parameterFilter = filter;\n            return this;\n        }\n        /** Commits the current changes by finding the target methods. */\n        and() {\n            const filterMethod = (method) => {\n                if (this.#parameterFilter == undefined) {\n                    this.#targets.push(method);\n                    return;\n                }\n                for (const parameter of method.parameters) {\n                    if (this.#parameterFilter(parameter)) {\n                        this.#targets.push(method);\n                        break;\n                    }\n                }\n            };\n            const filterMethods = (values) => {\n                for (const method of values) {\n                    filterMethod(method);\n                }\n            };\n            const filterClass = (klass) => {\n                if (this.#methodFilter == undefined) {\n                    filterMethods(klass.methods);\n                    return;\n                }\n                for (const method of klass.methods) {\n                    if (this.#methodFilter(method)) {\n                        filterMethod(method);\n                    }\n                }\n            };\n            const filterClasses = (values) => {\n                for (const klass of values) {\n                    filterClass(klass);\n                }\n            };\n            const filterAssembly = (assembly) => {\n                if (this.#classFilter == undefined) {\n                    filterClasses(assembly.image.classes);\n                    return;\n                }\n                for (const klass of assembly.image.classes) {\n                    if (this.#classFilter(klass)) {\n                        filterClass(klass);\n                    }\n                }\n            };\n            const filterAssemblies = (assemblies) => {\n                for (const assembly of assemblies) {\n                    filterAssembly(assembly);\n                }\n            };\n            const filterDomain = (domain) => {\n                if (this.#assemblyFilter == undefined) {\n                    filterAssemblies(domain.assemblies);\n                    return;\n                }\n                for (const assembly of domain.assemblies) {\n                    if (this.#assemblyFilter(assembly)) {\n                        filterAssembly(assembly);\n                    }\n                }\n            };\n            this.#methods\n                ? filterMethods(this.#methods)\n                : this.#classes\n                    ? filterClasses(this.#classes)\n                    : this.#assemblies\n                        ? filterAssemblies(this.#assemblies)\n                        : this.#domain\n                            ? filterDomain(this.#domain)\n                            : undefined;\n            this.#assemblies = undefined;\n            this.#classes = undefined;\n            this.#methods = undefined;\n            this.#assemblyFilter = undefined;\n            this.#classFilter = undefined;\n            this.#methodFilter = undefined;\n            this.#parameterFilter = undefined;\n            return this;\n        }\n        /** Starts tracing. */\n        attach() {\n            for (const target of this.#targets) {\n                if (!target.virtualAddress.isNull()) {\n                    try {\n                        this.#applier(target, this.#state, this.#threadId);\n                    }\n                    catch (e) {\n                        switch (e.message) {\n                            case /unable to intercept function at \\w+; please file a bug/.exec(e.message)?.input:\n                            case \"already replaced this function\":\n                                break;\n                            default:\n                                throw e;\n                        }\n                    }\n                }\n            }\n        }\n    }\n    Il2Cpp.Tracer = Tracer;\n    /** */\n    function trace(parameters = false) {\n        const applier = () => (method, state, threadId) => {\n            const paddedVirtualAddress = method.relativeVirtualAddress.toString(16).padStart(8, \"0\");\n            Interceptor.attach(method.virtualAddress, {\n                onEnter() {\n                    if (this.threadId == threadId) {\n                        // prettier-ignore\n                        state.buffer.push(`\\x1b[2m0x${paddedVirtualAddress}\\x1b[0m ${`│ `.repeat(state.depth++)}┌─\\x1b[35m${method.class.type.name}::\\x1b[1m${method.name}\\x1b[0m\\x1b[0m`);\n                    }\n                },\n                onLeave() {\n                    if (this.threadId == threadId) {\n                        // prettier-ignore\n                        state.buffer.push(`\\x1b[2m0x${paddedVirtualAddress}\\x1b[0m ${`│ `.repeat(--state.depth)}└─\\x1b[33m${method.class.type.name}::\\x1b[1m${method.name}\\x1b[0m\\x1b[0m`);\n                        state.flush();\n                    }\n                }\n            });\n        };\n        const applierWithParameters = () => (method, state, threadId) => {\n            const paddedVirtualAddress = method.relativeVirtualAddress.toString(16).padStart(8, \"0\");\n            const startIndex = +!method.isStatic | +Il2Cpp.unityVersionIsBelow201830;\n            const callback = function (...args) {\n                if (this.threadId == threadId) {\n                    const thisParameter = method.isStatic ? undefined : new Il2Cpp.Parameter(\"this\", -1, method.class.type);\n                    const parameters = thisParameter ? [thisParameter].concat(method.parameters) : method.parameters;\n                    // prettier-ignore\n                    state.buffer.push(`\\x1b[2m0x${paddedVirtualAddress}\\x1b[0m ${`│ `.repeat(state.depth++)}┌─\\x1b[35m${method.class.type.name}::\\x1b[1m${method.name}\\x1b[0m\\x1b[0m(${parameters.map(e => `\\x1b[32m${e.name}\\x1b[0m = \\x1b[31m${Il2Cpp.fromFridaValue(args[e.position + startIndex], e.type)}\\x1b[0m`).join(\", \")})`);\n                }\n                const returnValue = method.nativeFunction(...args);\n                if (this.threadId == threadId) {\n                    // prettier-ignore\n                    state.buffer.push(`\\x1b[2m0x${paddedVirtualAddress}\\x1b[0m ${`│ `.repeat(--state.depth)}└─\\x1b[33m${method.class.type.name}::\\x1b[1m${method.name}\\x1b[0m\\x1b[0m${returnValue == undefined ? \"\" : ` = \\x1b[36m${Il2Cpp.fromFridaValue(returnValue, method.returnType)}`}\\x1b[0m`);\n                    state.flush();\n                }\n                return returnValue;\n            };\n            method.revert();\n            const nativeCallback = new NativeCallback(callback, method.returnType.fridaAlias, method.fridaSignature);\n            Interceptor.replace(method.virtualAddress, nativeCallback);\n        };\n        return new Il2Cpp.Tracer(parameters ? applierWithParameters() : applier());\n    }\n    Il2Cpp.trace = trace;\n    /** */\n    function backtrace(mode) {\n        const methods = Il2Cpp.domain.assemblies\n            .flatMap(_ => _.image.classes.flatMap(_ => _.methods.filter(_ => !_.virtualAddress.isNull())))\n            .sort((_, __) => _.virtualAddress.compare(__.virtualAddress));\n        const searchInsert = (target) => {\n            let left = 0;\n            let right = methods.length - 1;\n            while (left <= right) {\n                const pivot = Math.floor((left + right) / 2);\n                const comparison = methods[pivot].virtualAddress.compare(target);\n                if (comparison == 0) {\n                    return methods[pivot];\n                }\n                else if (comparison > 0) {\n                    right = pivot - 1;\n                }\n                else {\n                    left = pivot + 1;\n                }\n            }\n            return methods[right];\n        };\n        const applier = () => (method, state, threadId) => {\n            Interceptor.attach(method.virtualAddress, function () {\n                if (this.threadId == threadId) {\n                    const handles = globalThis.Thread.backtrace(this.context, mode);\n                    handles.unshift(method.virtualAddress);\n                    for (const handle of handles) {\n                        if (handle.compare(Il2Cpp.module.base) > 0 && handle.compare(Il2Cpp.module.base.add(Il2Cpp.module.size)) < 0) {\n                            const method = searchInsert(handle);\n                            if (method) {\n                                const offset = handle.sub(method.virtualAddress);\n                                if (offset.compare(0xfff) < 0) {\n                                    // prettier-ignore\n                                    state.buffer.push(`\\x1b[2m0x${method.relativeVirtualAddress.toString(16).padStart(8, \"0\")}\\x1b[0m\\x1b[2m+0x${offset.toString(16).padStart(3, `0`)}\\x1b[0m ${method.class.type.name}::\\x1b[1m${method.name}\\x1b[0m`);\n                                }\n                            }\n                        }\n                    }\n                    state.flush();\n                }\n            });\n        };\n        return new Il2Cpp.Tracer(applier());\n    }\n    Il2Cpp.backtrace = backtrace;\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    class Array extends NativeStruct {\n        /** Gets the Il2CppArray struct size, possibly equal to `Process.pointerSize * 4`. */\n        static get headerSize() {\n            return Il2Cpp.corlib.class(\"System.Array\").instanceSize;\n        }\n        /** @internal Gets a pointer to the first element of the current array. */\n        get elements() {\n            // We previosly obtained an array whose content is known by calling\n            // 'System.String::Split(NULL)' on a known string. However, that\n            // method invocation somehow blows things up in Unity 2018.3.0f1.\n            const array = Il2Cpp.string(\"v\").object.method(\"ToCharArray\", 0).invoke();\n            // prettier-ignore\n            const offset = array.handle.offsetOf(_ => _.readS16() == 118) ??\n                raise(\"couldn't find the elements offset in the native array struct\");\n            // prettier-ignore\n            getter(Il2Cpp.Array.prototype, \"elements\", function () {\n                return new Il2Cpp.Pointer(this.handle.add(offset), this.elementType);\n            }, lazy);\n            return this.elements;\n        }\n        /** Gets the size of the object encompassed by the current array. */\n        get elementSize() {\n            return this.elementType.class.arrayElementSize;\n        }\n        /** Gets the type of the object encompassed by the current array. */\n        get elementType() {\n            return this.object.class.type.class.baseType;\n        }\n        /** Gets the total number of elements in all the dimensions of the current array. */\n        get length() {\n            return Il2Cpp.exports.arrayGetLength(this);\n        }\n        /** Gets the encompassing object of the current array. */\n        get object() {\n            return new Il2Cpp.Object(this);\n        }\n        /** Gets the element at the specified index of the current array. */\n        get(index) {\n            if (index < 0 || index >= this.length) {\n                raise(`cannot get element at index ${index} as the array length is ${this.length}`);\n            }\n            return this.elements.get(index);\n        }\n        /** Sets the element at the specified index of the current array. */\n        set(index, value) {\n            if (index < 0 || index >= this.length) {\n                raise(`cannot set element at index ${index} as the array length is ${this.length}`);\n            }\n            this.elements.set(index, value);\n        }\n        /** */\n        toString() {\n            return this.isNull() ? \"null\" : `[${this.elements.read(this.length, 0)}]`;\n        }\n        /** Iterable. */\n        *[Symbol.iterator]() {\n            for (let i = 0; i < this.length; i++) {\n                yield this.elements.get(i);\n            }\n        }\n    }\n    __decorate([\n        lazy\n    ], Array.prototype, \"elementSize\", null);\n    __decorate([\n        lazy\n    ], Array.prototype, \"elementType\", null);\n    __decorate([\n        lazy\n    ], Array.prototype, \"length\", null);\n    __decorate([\n        lazy\n    ], Array.prototype, \"object\", null);\n    __decorate([\n        lazy\n    ], Array, \"headerSize\", null);\n    Il2Cpp.Array = Array;\n    /** @internal */\n    function array(klass, lengthOrElements) {\n        const length = typeof lengthOrElements == \"number\" ? lengthOrElements : lengthOrElements.length;\n        const array = new Il2Cpp.Array(Il2Cpp.exports.arrayNew(klass, length));\n        if (globalThis.Array.isArray(lengthOrElements)) {\n            array.elements.write(lengthOrElements);\n        }\n        return array;\n    }\n    Il2Cpp.array = array;\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    let Assembly = class Assembly extends NativeStruct {\n        /** Gets the image of this assembly. */\n        get image() {\n            if (Il2Cpp.exports.assemblyGetImage.isNull()) {\n                // We need to get the System.Reflection.Module of the current assembly;\n                // System.Reflection.Assembly::GetModulesInternal, for some reason,\n                // throws a NullReferenceExceptionin Unity 5.3.8f1, so we must rely on\n                // System.Type::get_Module instead.\n                // Now we need to get any System.Type of this assembly.\n                // We cannot use System.Reflection.Assembly::GetTypes because it may\n                // return an empty array; hence we use System.Reflection.Assembly::GetType\n                // to retrieve <Module>, a class/type that seems to be always present\n                // (despite being excluded from System.Reflection.Assembly::GetTypes).\n                const runtimeModule = this.object\n                    .tryMethod(\"GetType\", 1)\n                    ?.invoke(Il2Cpp.string(\"<Module>\"))\n                    ?.asNullable()\n                    ?.tryMethod(\"get_Module\")\n                    ?.invoke() ??\n                    this.object.tryMethod(\"GetModules\", 1)?.invoke(false)?.get(0) ??\n                    raise(`couldn't find the runtime module object of assembly ${this.name}`);\n                return new Il2Cpp.Image(runtimeModule.field(\"_impl\").value);\n            }\n            return new Il2Cpp.Image(Il2Cpp.exports.assemblyGetImage(this));\n        }\n        /** Gets the name of this assembly. */\n        get name() {\n            return this.image.name.replace(\".dll\", \"\");\n        }\n        /** Gets the encompassing object of the current assembly. */\n        get object() {\n            for (const _ of Il2Cpp.domain.object.method(\"GetAssemblies\", 1).invoke(false)) {\n                if (_.field(\"_mono_assembly\").value.equals(this)) {\n                    return _;\n                }\n            }\n            raise(\"couldn't find the object of the native assembly struct\");\n        }\n    };\n    __decorate([\n        lazy\n    ], Assembly.prototype, \"name\", null);\n    __decorate([\n        lazy\n    ], Assembly.prototype, \"object\", null);\n    Assembly = __decorate([\n        recycle\n    ], Assembly);\n    Il2Cpp.Assembly = Assembly;\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    let Class = class Class extends NativeStruct {\n        /** Gets the actual size of the instance of the current class. */\n        get actualInstanceSize() {\n            const SystemString = Il2Cpp.corlib.class(\"System.String\");\n            // prettier-ignore\n            const offset = SystemString.handle.offsetOf(_ => _.readInt() == SystemString.instanceSize - 2)\n                ?? raise(\"couldn't find the actual instance size offset in the native class struct\");\n            // prettier-ignore\n            getter(Il2Cpp.Class.prototype, \"actualInstanceSize\", function () {\n                return this.handle.add(offset).readS32();\n            }, lazy);\n            return this.actualInstanceSize;\n        }\n        /** Gets the array class which encompass the current class. */\n        get arrayClass() {\n            return new Il2Cpp.Class(Il2Cpp.exports.classGetArrayClass(this, 1));\n        }\n        /** Gets the size of the object encompassed by the current array class. */\n        get arrayElementSize() {\n            return Il2Cpp.exports.classGetArrayElementSize(this);\n        }\n        /** Gets the name of the assembly in which the current class is defined. */\n        get assemblyName() {\n            return Il2Cpp.exports.classGetAssemblyName(this).readUtf8String().replace(\".dll\", \"\");\n        }\n        /** Gets the class that declares the current nested class. */\n        get declaringClass() {\n            return new Il2Cpp.Class(Il2Cpp.exports.classGetDeclaringType(this)).asNullable();\n        }\n        /** Gets the encompassed type of this array, reference, pointer or enum type. */\n        get baseType() {\n            return new Il2Cpp.Type(Il2Cpp.exports.classGetBaseType(this)).asNullable();\n        }\n        /** Gets the class of the object encompassed or referred to by the current array, pointer or reference class. */\n        get elementClass() {\n            return new Il2Cpp.Class(Il2Cpp.exports.classGetElementClass(this)).asNullable();\n        }\n        /** Gets the fields of the current class. */\n        get fields() {\n            return readNativeIterator(_ => Il2Cpp.exports.classGetFields(this, _)).map(_ => new Il2Cpp.Field(_));\n        }\n        /** Gets the flags of the current class. */\n        get flags() {\n            return Il2Cpp.exports.classGetFlags(this);\n        }\n        /** Gets the full name (namespace + name) of the current class. */\n        get fullName() {\n            return this.namespace ? `${this.namespace}.${this.name}` : this.name;\n        }\n        /** Gets the generic class of the current class if the current class is inflated. */\n        get genericClass() {\n            // We leverage two things here:\n            // 1) inflated classes belong to the same assembly of the generic\n            // class;\n            // 2) inflated classes have the generic class name as their name,\n            // e.g. type name is Foo<Bar>, but class name is Foo`1.\n            const klass = this.image.tryClass(this.fullName)?.asNullable();\n            return klass?.equals(this) ? null : klass ?? null;\n        }\n        /** Gets the generics parameters of this generic class. */\n        get generics() {\n            if (!this.isGeneric && !this.isInflated) {\n                return [];\n            }\n            const types = this.type.object.method(\"GetGenericArguments\").invoke();\n            return globalThis.Array.from(types).map(_ => new Il2Cpp.Class(Il2Cpp.exports.classFromObject(_)));\n        }\n        /** Determines whether the GC has tracking references to the current class instances. */\n        get hasReferences() {\n            return !!Il2Cpp.exports.classHasReferences(this);\n        }\n        /** Determines whether ther current class has a valid static constructor. */\n        get hasStaticConstructor() {\n            const staticConstructor = this.tryMethod(\".cctor\");\n            return staticConstructor != null && !staticConstructor.virtualAddress.isNull();\n        }\n        /** Gets the image in which the current class is defined. */\n        get image() {\n            return new Il2Cpp.Image(Il2Cpp.exports.classGetImage(this));\n        }\n        /** Gets the size of the instance of the current class. */\n        get instanceSize() {\n            return Il2Cpp.exports.classGetInstanceSize(this);\n        }\n        /** Determines whether the current class is abstract. */\n        get isAbstract() {\n            return !!Il2Cpp.exports.classIsAbstract(this);\n        }\n        /** Determines whether the current class is blittable. */\n        get isBlittable() {\n            return !!Il2Cpp.exports.classIsBlittable(this);\n        }\n        /** Determines whether the current class is an enumeration. */\n        get isEnum() {\n            return !!Il2Cpp.exports.classIsEnum(this);\n        }\n        /** Determines whether the current class is a generic one. */\n        get isGeneric() {\n            return !!Il2Cpp.exports.classIsGeneric(this);\n        }\n        /** Determines whether the current class is inflated. */\n        get isInflated() {\n            return !!Il2Cpp.exports.classIsInflated(this);\n        }\n        /** Determines whether the current class is an interface. */\n        get isInterface() {\n            return !!Il2Cpp.exports.classIsInterface(this);\n        }\n        /** Determines whether the current class is a struct. */\n        get isStruct() {\n            return this.isValueType && !this.isEnum;\n        }\n        /** Determines whether the current class is a value type. */\n        get isValueType() {\n            return !!Il2Cpp.exports.classIsValueType(this);\n        }\n        /** Gets the interfaces implemented or inherited by the current class. */\n        get interfaces() {\n            return readNativeIterator(_ => Il2Cpp.exports.classGetInterfaces(this, _)).map(_ => new Il2Cpp.Class(_));\n        }\n        /** Gets the methods implemented by the current class. */\n        get methods() {\n            return readNativeIterator(_ => Il2Cpp.exports.classGetMethods(this, _)).map(_ => new Il2Cpp.Method(_));\n        }\n        /** Gets the name of the current class. */\n        get name() {\n            return Il2Cpp.exports.classGetName(this).readUtf8String();\n        }\n        /** Gets the namespace of the current class. */\n        get namespace() {\n            return Il2Cpp.exports.classGetNamespace(this).readUtf8String() || undefined;\n        }\n        /** Gets the classes nested inside the current class. */\n        get nestedClasses() {\n            return readNativeIterator(_ => Il2Cpp.exports.classGetNestedClasses(this, _)).map(_ => new Il2Cpp.Class(_));\n        }\n        /** Gets the class from which the current class directly inherits. */\n        get parent() {\n            return new Il2Cpp.Class(Il2Cpp.exports.classGetParent(this)).asNullable();\n        }\n        /** Gets the pointer class of the current class. */\n        get pointerClass() {\n            return new Il2Cpp.Class(Il2Cpp.exports.classFromObject(this.type.object.method(\"MakePointerType\").invoke()));\n        }\n        /** Gets the rank (number of dimensions) of the current array class. */\n        get rank() {\n            let rank = 0;\n            const name = this.name;\n            for (let i = this.name.length - 1; i > 0; i--) {\n                const c = name[i];\n                if (c == \"]\")\n                    rank++;\n                else if (c == \"[\" || rank == 0)\n                    break;\n                else if (c == \",\")\n                    rank++;\n                else\n                    break;\n            }\n            return rank;\n        }\n        /** Gets a pointer to the static fields of the current class. */\n        get staticFieldsData() {\n            return Il2Cpp.exports.classGetStaticFieldData(this);\n        }\n        /** Gets the size of the instance - as a value type - of the current class. */\n        get valueTypeSize() {\n            return Il2Cpp.exports.classGetValueTypeSize(this, NULL);\n        }\n        /** Gets the type of the current class. */\n        get type() {\n            return new Il2Cpp.Type(Il2Cpp.exports.classGetType(this));\n        }\n        /** Allocates a new object of the current class. */\n        alloc() {\n            return new Il2Cpp.Object(Il2Cpp.exports.objectNew(this));\n        }\n        /** Gets the field identified by the given name. */\n        field(name) {\n            return this.tryField(name) ?? raise(`couldn't find field ${name} in class ${this.type.name}`);\n        }\n        /** Gets the hierarchy of the current class. */\n        *hierarchy(options) {\n            let klass = options?.includeCurrent ?? true ? this : this.parent;\n            while (klass) {\n                yield klass;\n                klass = klass.parent;\n            }\n        }\n        /** Builds a generic instance of the current generic class. */\n        inflate(...classes) {\n            if (!this.isGeneric) {\n                raise(`cannot inflate class ${this.type.name} as it has no generic parameters`);\n            }\n            if (this.generics.length != classes.length) {\n                raise(`cannot inflate class ${this.type.name} as it needs ${this.generics.length} generic parameter(s), not ${classes.length}`);\n            }\n            const types = classes.map(_ => _.type.object);\n            const typeArray = Il2Cpp.array(Il2Cpp.corlib.class(\"System.Type\"), types);\n            const inflatedType = this.type.object.method(\"MakeGenericType\", 1).invoke(typeArray);\n            return new Il2Cpp.Class(Il2Cpp.exports.classFromObject(inflatedType));\n        }\n        /** Calls the static constructor of the current class. */\n        initialize() {\n            Il2Cpp.exports.classInitialize(this);\n            return this;\n        }\n        /** Determines whether an instance of `other` class can be assigned to a variable of the current type. */\n        isAssignableFrom(other) {\n            return !!Il2Cpp.exports.classIsAssignableFrom(this, other);\n        }\n        /** Determines whether the current class derives from `other` class. */\n        isSubclassOf(other, checkInterfaces) {\n            return !!Il2Cpp.exports.classIsSubclassOf(this, other, +checkInterfaces);\n        }\n        /** Gets the method identified by the given name and parameter count. */\n        method(name, parameterCount = -1) {\n            return this.tryMethod(name, parameterCount) ?? raise(`couldn't find method ${name} in class ${this.type.name}`);\n        }\n        /** Gets the nested class with the given name. */\n        nested(name) {\n            return this.tryNested(name) ?? raise(`couldn't find nested class ${name} in class ${this.type.name}`);\n        }\n        /** Allocates a new object of the current class and calls its default constructor. */\n        new() {\n            const object = this.alloc();\n            const exceptionArray = Memory.alloc(Process.pointerSize);\n            Il2Cpp.exports.objectInitialize(object, exceptionArray);\n            const exception = exceptionArray.readPointer();\n            if (!exception.isNull()) {\n                raise(new Il2Cpp.Object(exception).toString());\n            }\n            return object;\n        }\n        /** Gets the field with the given name. */\n        tryField(name) {\n            return new Il2Cpp.Field(Il2Cpp.exports.classGetFieldFromName(this, Memory.allocUtf8String(name))).asNullable();\n        }\n        /** Gets the method with the given name and parameter count. */\n        tryMethod(name, parameterCount = -1) {\n            return new Il2Cpp.Method(Il2Cpp.exports.classGetMethodFromName(this, Memory.allocUtf8String(name), parameterCount)).asNullable();\n        }\n        /** Gets the nested class with the given name. */\n        tryNested(name) {\n            return this.nestedClasses.find(_ => _.name == name);\n        }\n        /** */\n        toString() {\n            const inherited = [this.parent].concat(this.interfaces);\n            return `\\\n// ${this.assemblyName}\n${this.isEnum ? `enum` : this.isStruct ? `struct` : this.isInterface ? `interface` : `class`} \\\n${this.type.name}\\\n${inherited ? ` : ${inherited.map(_ => _?.type.name).join(`, `)}` : ``}\n{\n    ${this.fields.join(`\\n    `)}\n    ${this.methods.join(`\\n    `)}\n}`;\n        }\n        /** Executes a callback for every defined class. */\n        static enumerate(block) {\n            const callback = new NativeCallback(_ => block(new Il2Cpp.Class(_)), \"void\", [\"pointer\", \"pointer\"]);\n            return Il2Cpp.exports.classForEach(callback, NULL);\n        }\n    };\n    __decorate([\n        lazy\n    ], Class.prototype, \"arrayClass\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"arrayElementSize\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"assemblyName\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"declaringClass\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"baseType\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"elementClass\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"fields\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"flags\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"fullName\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"generics\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"hasReferences\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"hasStaticConstructor\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"image\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"instanceSize\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"isAbstract\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"isBlittable\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"isEnum\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"isGeneric\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"isInflated\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"isInterface\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"isValueType\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"interfaces\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"methods\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"name\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"namespace\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"nestedClasses\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"parent\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"pointerClass\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"rank\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"staticFieldsData\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"valueTypeSize\", null);\n    __decorate([\n        lazy\n    ], Class.prototype, \"type\", null);\n    Class = __decorate([\n        recycle\n    ], Class);\n    Il2Cpp.Class = Class;\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    /** Creates a delegate object of the given delegate class. */\n    function delegate(klass, block) {\n        const SystemDelegate = Il2Cpp.corlib.class(\"System.Delegate\");\n        const SystemMulticastDelegate = Il2Cpp.corlib.class(\"System.MulticastDelegate\");\n        if (!SystemDelegate.isAssignableFrom(klass)) {\n            raise(`cannot create a delegate for ${klass.type.name} as it's a non-delegate class`);\n        }\n        if (klass.equals(SystemDelegate) || klass.equals(SystemMulticastDelegate)) {\n            raise(`cannot create a delegate for neither ${SystemDelegate.type.name} nor ${SystemMulticastDelegate.type.name}, use a subclass instead`);\n        }\n        const delegate = klass.alloc();\n        const key = delegate.handle.toString();\n        const Invoke = delegate.tryMethod(\"Invoke\") ?? raise(`cannot create a delegate for ${klass.type.name}, there is no Invoke method`);\n        delegate.method(\".ctor\").invoke(delegate, Invoke.handle);\n        const callback = Invoke.wrap(block);\n        delegate.field(\"method_ptr\").value = callback;\n        delegate.field(\"invoke_impl\").value = callback;\n        Il2Cpp._callbacksToKeepAlive[key] = callback;\n        return delegate;\n    }\n    Il2Cpp.delegate = delegate;\n    /** @internal Used to prevent eager garbage collection against NativeCallbacks. */\n    Il2Cpp._callbacksToKeepAlive = {};\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    let Domain = class Domain extends NativeStruct {\n        /** Gets the assemblies that have been loaded into the execution context of the application domain. */\n        get assemblies() {\n            let handles = readNativeList(_ => Il2Cpp.exports.domainGetAssemblies(this, _));\n            if (handles.length == 0) {\n                const assemblyObjects = this.object.method(\"GetAssemblies\").overload().invoke();\n                handles = globalThis.Array.from(assemblyObjects).map(_ => _.field(\"_mono_assembly\").value);\n            }\n            return handles.map(_ => new Il2Cpp.Assembly(_));\n        }\n        /** Gets the encompassing object of the application domain. */\n        get object() {\n            return Il2Cpp.corlib.class(\"System.AppDomain\").method(\"get_CurrentDomain\").invoke();\n        }\n        /** Opens and loads the assembly with the given name. */\n        assembly(name) {\n            return this.tryAssembly(name) ?? raise(`couldn't find assembly ${name}`);\n        }\n        /** Attached a new thread to the application domain. */\n        attach() {\n            return new Il2Cpp.Thread(Il2Cpp.exports.threadAttach(this));\n        }\n        /** Opens and loads the assembly with the given name. */\n        tryAssembly(name) {\n            return new Il2Cpp.Assembly(Il2Cpp.exports.domainGetAssemblyFromName(this, Memory.allocUtf8String(name))).asNullable();\n        }\n    };\n    __decorate([\n        lazy\n    ], Domain.prototype, \"assemblies\", null);\n    __decorate([\n        lazy\n    ], Domain.prototype, \"object\", null);\n    Domain = __decorate([\n        recycle\n    ], Domain);\n    Il2Cpp.Domain = Domain;\n    // prettier-ignore\n    getter(Il2Cpp, \"domain\", () => {\n        return new Il2Cpp.Domain(Il2Cpp.exports.domainGet());\n    }, lazy);\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    class Field extends NativeStruct {\n        /** Gets the class in which this field is defined. */\n        get class() {\n            return new Il2Cpp.Class(Il2Cpp.exports.fieldGetClass(this));\n        }\n        /** Gets the flags of the current field. */\n        get flags() {\n            return Il2Cpp.exports.fieldGetFlags(this);\n        }\n        /** Determines whether this field value is known at compile time. */\n        get isLiteral() {\n            return (this.flags & 64 /* Il2Cpp.Field.Attributes.Literal */) != 0;\n        }\n        /** Determines whether this field is static. */\n        get isStatic() {\n            return (this.flags & 16 /* Il2Cpp.Field.Attributes.Static */) != 0;\n        }\n        /** Determines whether this field is thread static. */\n        get isThreadStatic() {\n            const offset = Il2Cpp.corlib.class(\"System.AppDomain\").field(\"type_resolve_in_progress\").offset;\n            // prettier-ignore\n            getter(Il2Cpp.Field.prototype, \"isThreadStatic\", function () {\n                return this.offset == offset;\n            }, lazy);\n            return this.isThreadStatic;\n        }\n        /** Gets the access modifier of this field. */\n        get modifier() {\n            switch (this.flags & 7 /* Il2Cpp.Field.Attributes.FieldAccessMask */) {\n                case 1 /* Il2Cpp.Field.Attributes.Private */:\n                    return \"private\";\n                case 2 /* Il2Cpp.Field.Attributes.FamilyAndAssembly */:\n                    return \"private protected\";\n                case 3 /* Il2Cpp.Field.Attributes.Assembly */:\n                    return \"internal\";\n                case 4 /* Il2Cpp.Field.Attributes.Family */:\n                    return \"protected\";\n                case 5 /* Il2Cpp.Field.Attributes.FamilyOrAssembly */:\n                    return \"protected internal\";\n                case 6 /* Il2Cpp.Field.Attributes.Public */:\n                    return \"public\";\n            }\n        }\n        /** Gets the name of this field. */\n        get name() {\n            return Il2Cpp.exports.fieldGetName(this).readUtf8String();\n        }\n        /** Gets the offset of this field, calculated as the difference with its owner virtual address. */\n        get offset() {\n            return Il2Cpp.exports.fieldGetOffset(this);\n        }\n        /** Gets the type of this field. */\n        get type() {\n            return new Il2Cpp.Type(Il2Cpp.exports.fieldGetType(this));\n        }\n        /** Gets the value of this field. */\n        get value() {\n            if (!this.isStatic) {\n                raise(`cannot access instance field ${this.class.type.name}::${this.name} from a class, use an object instead`);\n            }\n            const handle = Memory.alloc(Process.pointerSize);\n            Il2Cpp.exports.fieldGetStaticValue(this.handle, handle);\n            return Il2Cpp.read(handle, this.type);\n        }\n        /** Sets the value of this field. Thread static or literal values cannot be altered yet. */\n        set value(value) {\n            if (!this.isStatic) {\n                raise(`cannot access instance field ${this.class.type.name}::${this.name} from a class, use an object instead`);\n            }\n            if (this.isThreadStatic || this.isLiteral) {\n                raise(`cannot write the value of field ${this.name} as it's thread static or literal`);\n            }\n            const handle = \n            // pointer-like values should be passed as-is, but boxed\n            // value types (primitives included) must be unboxed first\n            value instanceof Il2Cpp.Object && this.type.class.isValueType\n                ? value.unbox()\n                : value instanceof NativeStruct\n                    ? value.handle\n                    : value instanceof NativePointer\n                        ? value\n                        : Il2Cpp.write(Memory.alloc(this.type.class.valueTypeSize), value, this.type);\n            Il2Cpp.exports.fieldSetStaticValue(this.handle, handle);\n        }\n        /** */\n        toString() {\n            return `\\\n${this.isThreadStatic ? `[ThreadStatic] ` : ``}\\\n${this.isStatic ? `static ` : ``}\\\n${this.type.name} \\\n${this.name}\\\n${this.isLiteral ? ` = ${this.type.class.isEnum ? Il2Cpp.read(this.value.handle, this.type.class.baseType) : this.value}` : ``};\\\n${this.isThreadStatic || this.isLiteral ? `` : ` // 0x${this.offset.toString(16)}`}`;\n        }\n        /**\n         * @internal\n         * Binds the current field to a {@link Il2Cpp.Object} or a\n         * {@link Il2Cpp.ValueType} (also known as *instances*), so that it is\n         * possible to retrieve its value - see {@link Il2Cpp.Field.value} for\n         * details. \\\n         * Binding a static field is forbidden.\n         */\n        bind(instance) {\n            if (this.isStatic) {\n                raise(`cannot bind static field ${this.class.type.name}::${this.name} to an instance`);\n            }\n            const offset = this.offset - (instance instanceof Il2Cpp.ValueType ? Il2Cpp.Object.headerSize : 0);\n            return new Proxy(this, {\n                get(target, property) {\n                    if (property == \"value\") {\n                        return Il2Cpp.read(instance.handle.add(offset), target.type);\n                    }\n                    return Reflect.get(target, property);\n                },\n                set(target, property, value) {\n                    if (property == \"value\") {\n                        Il2Cpp.write(instance.handle.add(offset), value, target.type);\n                        return true;\n                    }\n                    return Reflect.set(target, property, value);\n                }\n            });\n        }\n    }\n    __decorate([\n        lazy\n    ], Field.prototype, \"class\", null);\n    __decorate([\n        lazy\n    ], Field.prototype, \"flags\", null);\n    __decorate([\n        lazy\n    ], Field.prototype, \"isLiteral\", null);\n    __decorate([\n        lazy\n    ], Field.prototype, \"isStatic\", null);\n    __decorate([\n        lazy\n    ], Field.prototype, \"isThreadStatic\", null);\n    __decorate([\n        lazy\n    ], Field.prototype, \"modifier\", null);\n    __decorate([\n        lazy\n    ], Field.prototype, \"name\", null);\n    __decorate([\n        lazy\n    ], Field.prototype, \"offset\", null);\n    __decorate([\n        lazy\n    ], Field.prototype, \"type\", null);\n    Il2Cpp.Field = Field;\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    class GCHandle {\n        handle;\n        /** @internal */\n        constructor(handle) {\n            this.handle = handle;\n        }\n        /** Gets the object associated to this handle. */\n        get target() {\n            return new Il2Cpp.Object(Il2Cpp.exports.gcHandleGetTarget(this.handle)).asNullable();\n        }\n        /** Frees this handle. */\n        free() {\n            return Il2Cpp.exports.gcHandleFree(this.handle);\n        }\n    }\n    Il2Cpp.GCHandle = GCHandle;\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    let Image = class Image extends NativeStruct {\n        /** Gets the assembly in which the current image is defined. */\n        get assembly() {\n            return new Il2Cpp.Assembly(Il2Cpp.exports.imageGetAssembly(this));\n        }\n        /** Gets the amount of classes defined in this image. */\n        get classCount() {\n            if (Il2Cpp.unityVersionIsBelow201830) {\n                return this.classes.length;\n            }\n            else {\n                return Il2Cpp.exports.imageGetClassCount(this);\n            }\n        }\n        /** Gets the classes defined in this image. */\n        get classes() {\n            if (Il2Cpp.unityVersionIsBelow201830) {\n                const types = this.assembly.object.method(\"GetTypes\").invoke(false);\n                // In Unity 5.3.8f1, getting System.Reflection.Emit.OpCodes type name\n                // without iterating all the classes first somehow blows things up at\n                // app startup, hence the `Array.from`.\n                const classes = globalThis.Array.from(types, _ => new Il2Cpp.Class(Il2Cpp.exports.classFromObject(_)));\n                // <Module> class does not always exist\n                // https://github.com/vfsfitvnm/frida-il2cpp-bridge/issues/627\n                const Module = this.tryClass(\"<Module>\");\n                if (Module) {\n                    classes.unshift(Module);\n                }\n                return classes;\n            }\n            else {\n                return globalThis.Array.from(globalThis.Array(this.classCount), (_, i) => new Il2Cpp.Class(Il2Cpp.exports.imageGetClass(this, i)));\n            }\n        }\n        /** Gets the name of this image. */\n        get name() {\n            return Il2Cpp.exports.imageGetName(this).readUtf8String();\n        }\n        /** Gets the class with the specified name defined in this image. */\n        class(name) {\n            return this.tryClass(name) ?? raise(`couldn't find class ${name} in assembly ${this.name}`);\n        }\n        /** Gets the class with the specified name defined in this image. */\n        tryClass(name) {\n            const dotIndex = name.lastIndexOf(\".\");\n            const classNamespace = Memory.allocUtf8String(dotIndex == -1 ? \"\" : name.slice(0, dotIndex));\n            const className = Memory.allocUtf8String(name.slice(dotIndex + 1));\n            return new Il2Cpp.Class(Il2Cpp.exports.classFromName(this, classNamespace, className)).asNullable();\n        }\n    };\n    __decorate([\n        lazy\n    ], Image.prototype, \"assembly\", null);\n    __decorate([\n        lazy\n    ], Image.prototype, \"classCount\", null);\n    __decorate([\n        lazy\n    ], Image.prototype, \"classes\", null);\n    __decorate([\n        lazy\n    ], Image.prototype, \"name\", null);\n    Image = __decorate([\n        recycle\n    ], Image);\n    Il2Cpp.Image = Image;\n    // prettier-ignore\n    getter(Il2Cpp, \"corlib\", () => {\n        return new Il2Cpp.Image(Il2Cpp.exports.getCorlib());\n    }, lazy);\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    class MemorySnapshot extends NativeStruct {\n        /** Captures a memory snapshot. */\n        static capture() {\n            return new Il2Cpp.MemorySnapshot();\n        }\n        /** Creates a memory snapshot with the given handle. */\n        constructor(handle = Il2Cpp.exports.memorySnapshotCapture()) {\n            super(handle);\n        }\n        /** Gets any initialized class. */\n        get classes() {\n            return readNativeIterator(_ => Il2Cpp.exports.memorySnapshotGetClasses(this, _)).map(_ => new Il2Cpp.Class(_));\n        }\n        /** Gets the objects tracked by this memory snapshot. */\n        get objects() {\n            // prettier-ignore\n            return readNativeList(_ => Il2Cpp.exports.memorySnapshotGetObjects(this, _)).filter(_ => !_.isNull()).map(_ => new Il2Cpp.Object(_));\n        }\n        /** Frees this memory snapshot. */\n        free() {\n            Il2Cpp.exports.memorySnapshotFree(this);\n        }\n    }\n    __decorate([\n        lazy\n    ], MemorySnapshot.prototype, \"classes\", null);\n    __decorate([\n        lazy\n    ], MemorySnapshot.prototype, \"objects\", null);\n    Il2Cpp.MemorySnapshot = MemorySnapshot;\n    /** */\n    function memorySnapshot(block) {\n        const memorySnapshot = Il2Cpp.MemorySnapshot.capture();\n        const result = block(memorySnapshot);\n        memorySnapshot.free();\n        return result;\n    }\n    Il2Cpp.memorySnapshot = memorySnapshot;\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    class Method extends NativeStruct {\n        /** Gets the class in which this method is defined. */\n        get class() {\n            return new Il2Cpp.Class(Il2Cpp.exports.methodGetClass(this));\n        }\n        /** Gets the flags of the current method. */\n        get flags() {\n            return Il2Cpp.exports.methodGetFlags(this, NULL);\n        }\n        /** Gets the implementation flags of the current method. */\n        get implementationFlags() {\n            const implementationFlagsPointer = Memory.alloc(Process.pointerSize);\n            Il2Cpp.exports.methodGetFlags(this, implementationFlagsPointer);\n            return implementationFlagsPointer.readU32();\n        }\n        /** */\n        get fridaSignature() {\n            const types = [];\n            for (const parameter of this.parameters) {\n                types.push(parameter.type.fridaAlias);\n            }\n            if (!this.isStatic || Il2Cpp.unityVersionIsBelow201830) {\n                types.unshift(\"pointer\");\n            }\n            if (this.isInflated) {\n                types.push(\"pointer\");\n            }\n            return types;\n        }\n        /** Gets the generic parameters of this generic method. */\n        get generics() {\n            if (!this.isGeneric && !this.isInflated) {\n                return [];\n            }\n            const types = this.object.method(\"GetGenericArguments\").invoke();\n            return globalThis.Array.from(types).map(_ => new Il2Cpp.Class(Il2Cpp.exports.classFromObject(_)));\n        }\n        /** Determines whether this method is external. */\n        get isExternal() {\n            return (this.implementationFlags & 4096 /* Il2Cpp.Method.ImplementationAttribute.InternalCall */) != 0;\n        }\n        /** Determines whether this method is generic. */\n        get isGeneric() {\n            return !!Il2Cpp.exports.methodIsGeneric(this);\n        }\n        /** Determines whether this method is inflated (generic with a concrete type parameter). */\n        get isInflated() {\n            return !!Il2Cpp.exports.methodIsInflated(this);\n        }\n        /** Determines whether this method is static. */\n        get isStatic() {\n            return !Il2Cpp.exports.methodIsInstance(this);\n        }\n        /** Determines whether this method is synchronized. */\n        get isSynchronized() {\n            return (this.implementationFlags & 32 /* Il2Cpp.Method.ImplementationAttribute.Synchronized */) != 0;\n        }\n        /** Gets the access modifier of this method. */\n        get modifier() {\n            switch (this.flags & 7 /* Il2Cpp.Method.Attributes.MemberAccessMask */) {\n                case 1 /* Il2Cpp.Method.Attributes.Private */:\n                    return \"private\";\n                case 2 /* Il2Cpp.Method.Attributes.FamilyAndAssembly */:\n                    return \"private protected\";\n                case 3 /* Il2Cpp.Method.Attributes.Assembly */:\n                    return \"internal\";\n                case 4 /* Il2Cpp.Method.Attributes.Family */:\n                    return \"protected\";\n                case 5 /* Il2Cpp.Method.Attributes.FamilyOrAssembly */:\n                    return \"protected internal\";\n                case 6 /* Il2Cpp.Method.Attributes.Public */:\n                    return \"public\";\n            }\n        }\n        /** Gets the name of this method. */\n        get name() {\n            return Il2Cpp.exports.methodGetName(this).readUtf8String();\n        }\n        /** @internal */\n        get nativeFunction() {\n            return new NativeFunction(this.virtualAddress, this.returnType.fridaAlias, this.fridaSignature);\n        }\n        /** Gets the encompassing object of the current method. */\n        get object() {\n            return new Il2Cpp.Object(Il2Cpp.exports.methodGetObject(this, NULL));\n        }\n        /** Gets the amount of parameters of this method. */\n        get parameterCount() {\n            return Il2Cpp.exports.methodGetParameterCount(this);\n        }\n        /** Gets the parameters of this method. */\n        get parameters() {\n            return globalThis.Array.from(globalThis.Array(this.parameterCount), (_, i) => {\n                const parameterName = Il2Cpp.exports.methodGetParameterName(this, i).readUtf8String();\n                const parameterType = Il2Cpp.exports.methodGetParameterType(this, i);\n                return new Il2Cpp.Parameter(parameterName, i, new Il2Cpp.Type(parameterType));\n            });\n        }\n        /** Gets the relative virtual address (RVA) of this method. */\n        get relativeVirtualAddress() {\n            return this.virtualAddress.sub(Il2Cpp.module.base);\n        }\n        /** Gets the return type of this method. */\n        get returnType() {\n            return new Il2Cpp.Type(Il2Cpp.exports.methodGetReturnType(this));\n        }\n        /** Gets the virtual address (VA) of this method. */\n        get virtualAddress() {\n            const FilterTypeName = Il2Cpp.corlib.class(\"System.Reflection.Module\").initialize().field(\"FilterTypeName\").value;\n            const FilterTypeNameMethodPointer = FilterTypeName.field(\"method_ptr\").value;\n            const FilterTypeNameMethod = FilterTypeName.field(\"method\").value;\n            // prettier-ignore\n            const offset = FilterTypeNameMethod.offsetOf(_ => _.readPointer().equals(FilterTypeNameMethodPointer))\n                ?? raise(\"couldn't find the virtual address offset in the native method struct\");\n            // prettier-ignore\n            getter(Il2Cpp.Method.prototype, \"virtualAddress\", function () {\n                return this.handle.add(offset).readPointer();\n            }, lazy);\n            // In Unity 2017.4.40f1 (don't know about others),\n            // `Il2Cpp.Class::initialize` somehow triggers a nasty bug during\n            // early instrumentation, so that we aren't able to obtain the\n            // offset to get the virtual address of a method when the script\n            // is reloaded. A workaround consists in manually re-invoking the\n            // static constructor.\n            Il2Cpp.corlib.class(\"System.Reflection.Module\").method(\".cctor\").invoke();\n            return this.virtualAddress;\n        }\n        /** Replaces the body of this method. */\n        set implementation(block) {\n            try {\n                Interceptor.replace(this.virtualAddress, this.wrap(block));\n            }\n            catch (e) {\n                switch (e.message) {\n                    case \"access violation accessing 0x0\":\n                        raise(`couldn't set implementation for method ${this.name} as it has a NULL virtual address`);\n                    case /unable to intercept function at \\w+; please file a bug/.exec(e.message)?.input:\n                        warn(`couldn't set implementation for method ${this.name} as it may be a thunk`);\n                        break;\n                    case \"already replaced this function\":\n                        warn(`couldn't set implementation for method ${this.name} as it has already been replaced by a thunk`);\n                        break;\n                    default:\n                        throw e;\n                }\n            }\n        }\n        /** Creates a generic instance of the current generic method. */\n        inflate(...classes) {\n            if (!this.isGeneric || this.generics.length != classes.length) {\n                for (const method of this.overloads()) {\n                    if (method.isGeneric && method.generics.length == classes.length) {\n                        return method.inflate(...classes);\n                    }\n                }\n                raise(`could not find inflatable signature of method ${this.name} with ${classes.length} generic parameter(s)`);\n            }\n            const types = classes.map(_ => _.type.object);\n            const typeArray = Il2Cpp.array(Il2Cpp.corlib.class(\"System.Type\"), types);\n            const inflatedMethodObject = this.object.method(\"MakeGenericMethod\", 1).invoke(typeArray);\n            return new Il2Cpp.Method(inflatedMethodObject.field(\"mhandle\").value);\n        }\n        /** Invokes this method. */\n        invoke(...parameters) {\n            if (!this.isStatic) {\n                raise(`cannot invoke non-static method ${this.name} as it must be invoked throught a Il2Cpp.Object, not a Il2Cpp.Class`);\n            }\n            return this.invokeRaw(NULL, ...parameters);\n        }\n        /** @internal */\n        invokeRaw(instance, ...parameters) {\n            const allocatedParameters = parameters.map(Il2Cpp.toFridaValue);\n            if (!this.isStatic || Il2Cpp.unityVersionIsBelow201830) {\n                allocatedParameters.unshift(instance);\n            }\n            if (this.isInflated) {\n                allocatedParameters.push(this.handle);\n            }\n            try {\n                const returnValue = this.nativeFunction(...allocatedParameters);\n                return Il2Cpp.fromFridaValue(returnValue, this.returnType);\n            }\n            catch (e) {\n                if (e == null) {\n                    raise(\"an unexpected native invocation exception occurred, this is due to parameter types mismatch\");\n                }\n                switch (e.message) {\n                    case \"bad argument count\":\n                        raise(`couldn't invoke method ${this.name} as it needs ${this.parameterCount} parameter(s), not ${parameters.length}`);\n                    case \"expected a pointer\":\n                    case \"expected number\":\n                    case \"expected array with fields\":\n                        raise(`couldn't invoke method ${this.name} using incorrect parameter types`);\n                }\n                throw e;\n            }\n        }\n        /** Gets the overloaded method with the given parameter types. */\n        overload(...typeNamesOrClasses) {\n            const method = this.tryOverload(...typeNamesOrClasses);\n            return (method ?? raise(`couldn't find overloaded method ${this.name}(${typeNamesOrClasses.map(_ => (_ instanceof Il2Cpp.Class ? _.type.name : _))})`));\n        }\n        /** @internal */\n        *overloads() {\n            for (const klass of this.class.hierarchy()) {\n                for (const method of klass.methods) {\n                    if (this.name == method.name) {\n                        yield method;\n                    }\n                }\n            }\n        }\n        /** Gets the parameter with the given name. */\n        parameter(name) {\n            return this.tryParameter(name) ?? raise(`couldn't find parameter ${name} in method ${this.name}`);\n        }\n        /** Restore the original method implementation. */\n        revert() {\n            Interceptor.revert(this.virtualAddress);\n            Interceptor.flush();\n        }\n        /** Gets the overloaded method with the given parameter types. */\n        tryOverload(...typeNamesOrClasses) {\n            const minScore = typeNamesOrClasses.length * 1;\n            const maxScore = typeNamesOrClasses.length * 2;\n            let candidate = undefined;\n            loop: for (const method of this.overloads()) {\n                if (method.parameterCount != typeNamesOrClasses.length)\n                    continue;\n                let score = 0;\n                let i = 0;\n                for (const parameter of method.parameters) {\n                    const desiredTypeNameOrClass = typeNamesOrClasses[i];\n                    if (desiredTypeNameOrClass instanceof Il2Cpp.Class) {\n                        if (parameter.type.is(desiredTypeNameOrClass.type)) {\n                            score += 2;\n                        }\n                        else if (parameter.type.class.isAssignableFrom(desiredTypeNameOrClass)) {\n                            score += 1;\n                        }\n                        else {\n                            continue loop;\n                        }\n                    }\n                    else if (parameter.type.name == desiredTypeNameOrClass) {\n                        score += 2;\n                    }\n                    else {\n                        continue loop;\n                    }\n                    i++;\n                }\n                if (score < minScore) {\n                    continue;\n                }\n                else if (score == maxScore) {\n                    return method;\n                }\n                else if (candidate == undefined || score > candidate[0]) {\n                    candidate = [score, method];\n                }\n                else if (score == candidate[0]) {\n                    // ```cs\n                    // class Parent {}\n                    // class Child0 extends Parent {}\n                    // class Child1 extends Parent {}\n                    // class Child11 extends Child1 {}\n                    //\n                    // class Methods {\n                    //   void Foo(obj: Parent) {}\n                    //   void Foo(obj: Child1) {}\n                    //}\n                    // ```\n                    // in this scenario, Foo(Parent) and Foo(Child1) have\n                    // the same score when looking for Foo(Child11) -\n                    // we must compare the two candidates to determine the\n                    // one that is \"closer\" to Foo(Child11)\n                    let i = 0;\n                    for (const parameter of candidate[1].parameters) {\n                        // in this case, Foo(Parent) is the candidate\n                        // overload: let's compare the parameter types - if\n                        // any of the candidate ones is a parent, then the\n                        // candidate method is not the closest overload\n                        if (parameter.type.class.isAssignableFrom(method.parameters[i].type.class)) {\n                            candidate = [score, method];\n                            continue loop;\n                        }\n                        i++;\n                    }\n                }\n            }\n            return candidate?.[1];\n        }\n        /** Gets the parameter with the given name. */\n        tryParameter(name) {\n            return this.parameters.find(_ => _.name == name);\n        }\n        /** */\n        toString() {\n            return `\\\n${this.isStatic ? `static ` : ``}\\\n${this.returnType.name} \\\n${this.name}\\\n${this.generics.length > 0 ? `<${this.generics.map(_ => _.type.name).join(\",\")}>` : \"\"}\\\n(${this.parameters.join(`, `)});\\\n${this.virtualAddress.isNull() ? `` : ` // 0x${this.relativeVirtualAddress.toString(16).padStart(8, `0`)}`}`;\n        }\n        /**\n         * @internal\n         * Binds the current method to a {@link Il2Cpp.Object} or a\n         * {@link Il2Cpp.ValueType} (also known as *instances*), so that it is\n         * possible to invoke it - see {@link Il2Cpp.Method.invoke} for\n         * details. \\\n         * Binding a static method is forbidden.\n         */\n        bind(instance) {\n            if (this.isStatic) {\n                raise(`cannot bind static method ${this.class.type.name}::${this.name} to an instance`);\n            }\n            return new Proxy(this, {\n                get(target, property, receiver) {\n                    switch (property) {\n                        case \"invoke\":\n                            // In Unity 5.3.5f1 and >= 2021.2.0f1, value types\n                            // methods may assume their `this` parameter is a\n                            // pointer to raw data (that is how value types are\n                            // layed out in memory) instead of a pointer to an\n                            // object (that is object header + raw data).\n                            // In any case, they also don't use whatever there\n                            // is in the object header, so we can safely \"skip\"\n                            // the object header by adding the object header\n                            // size to the object (a boxed value type) handle.\n                            const handle = instance instanceof Il2Cpp.ValueType\n                                ? target.class.isValueType\n                                    ? instance.handle.sub(structMethodsRequireObjectInstances() ? Il2Cpp.Object.headerSize : 0)\n                                    : raise(`cannot invoke method ${target.class.type.name}::${target.name} against a value type, you must box it first`)\n                                : target.class.isValueType\n                                    ? instance.handle.add(structMethodsRequireObjectInstances() ? 0 : Il2Cpp.Object.headerSize)\n                                    : instance.handle;\n                            return target.invokeRaw.bind(target, handle);\n                        case \"overloads\":\n                            return function* () {\n                                for (const method of target[property]()) {\n                                    if (!method.isStatic) {\n                                        yield method;\n                                    }\n                                }\n                            };\n                        case \"inflate\":\n                        case \"overload\":\n                        case \"tryOverload\":\n                            const member = Reflect.get(target, property).bind(receiver);\n                            return function (...args) {\n                                return member(...args)?.bind(instance);\n                            };\n                    }\n                    return Reflect.get(target, property);\n                }\n            });\n        }\n        /** @internal */\n        wrap(block) {\n            const startIndex = +!this.isStatic | +Il2Cpp.unityVersionIsBelow201830;\n            return new NativeCallback((...args) => {\n                const thisObject = this.isStatic\n                    ? this.class\n                    : this.class.isValueType\n                        ? new Il2Cpp.ValueType(args[0].add(structMethodsRequireObjectInstances() ? Il2Cpp.Object.headerSize : 0), this.class.type)\n                        : new Il2Cpp.Object(args[0]);\n                const parameters = this.parameters.map((_, i) => Il2Cpp.fromFridaValue(args[i + startIndex], _.type));\n                const result = block.call(thisObject, ...parameters);\n                return Il2Cpp.toFridaValue(result);\n            }, this.returnType.fridaAlias, this.fridaSignature);\n        }\n    }\n    __decorate([\n        lazy\n    ], Method.prototype, \"class\", null);\n    __decorate([\n        lazy\n    ], Method.prototype, \"flags\", null);\n    __decorate([\n        lazy\n    ], Method.prototype, \"implementationFlags\", null);\n    __decorate([\n        lazy\n    ], Method.prototype, \"fridaSignature\", null);\n    __decorate([\n        lazy\n    ], Method.prototype, \"generics\", null);\n    __decorate([\n        lazy\n    ], Method.prototype, \"isExternal\", null);\n    __decorate([\n        lazy\n    ], Method.prototype, \"isGeneric\", null);\n    __decorate([\n        lazy\n    ], Method.prototype, \"isInflated\", null);\n    __decorate([\n        lazy\n    ], Method.prototype, \"isStatic\", null);\n    __decorate([\n        lazy\n    ], Method.prototype, \"isSynchronized\", null);\n    __decorate([\n        lazy\n    ], Method.prototype, \"modifier\", null);\n    __decorate([\n        lazy\n    ], Method.prototype, \"name\", null);\n    __decorate([\n        lazy\n    ], Method.prototype, \"nativeFunction\", null);\n    __decorate([\n        lazy\n    ], Method.prototype, \"object\", null);\n    __decorate([\n        lazy\n    ], Method.prototype, \"parameterCount\", null);\n    __decorate([\n        lazy\n    ], Method.prototype, \"parameters\", null);\n    __decorate([\n        lazy\n    ], Method.prototype, \"relativeVirtualAddress\", null);\n    __decorate([\n        lazy\n    ], Method.prototype, \"returnType\", null);\n    Il2Cpp.Method = Method;\n    let structMethodsRequireObjectInstances = () => {\n        const object = Il2Cpp.corlib.class(\"System.Int64\").alloc();\n        object.field(\"m_value\").value = 0xdeadbeef;\n        // Here we check where the sentinel value is\n        // if it's not where it is supposed to be, it means struct methods\n        // assume they are receiving value types (that is a pointer to raw data)\n        // hence, we must \"skip\" the object header when invoking such methods.\n        const result = object.method(\"Equals\", 1).overload(object.class).invokeRaw(object, 0xdeadbeef);\n        return (structMethodsRequireObjectInstances = () => result)();\n    };\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    class Object extends NativeStruct {\n        /** Gets the Il2CppObject struct size, possibly equal to `Process.pointerSize * 2`. */\n        static get headerSize() {\n            return Il2Cpp.corlib.class(\"System.Object\").instanceSize;\n        }\n        /**\n         * Returns the same object, but having its parent class as class.\n         * It basically is the C# `base` keyword, so that parent members can be\n         * accessed.\n         *\n         * **Example** \\\n         * Consider the following classes:\n         * ```csharp\n         * class Foo\n         * {\n         *     int foo()\n         *     {\n         *          return 1;\n         *     }\n         * }\n         * class Bar : Foo\n         * {\n         *     new int foo()\n         *     {\n         *          return 2;\n         *     }\n         * }\n         * ```\n         * then:\n         * ```ts\n         * const Bar: Il2Cpp.Class = ...;\n         * const bar = Bar.new();\n         *\n         * console.log(bar.foo()); // 2\n         * console.log(bar.base.foo()); // 1\n         * ```\n         */\n        get base() {\n            if (this.class.parent == null) {\n                raise(`class ${this.class.type.name} has no parent`);\n            }\n            return new Proxy(this, {\n                get(target, property, receiver) {\n                    if (property == \"class\") {\n                        return Reflect.get(target, property).parent;\n                    }\n                    else if (property == \"base\") {\n                        return Reflect.getOwnPropertyDescriptor(Il2Cpp.Object.prototype, property).get.bind(receiver)();\n                    }\n                    return Reflect.get(target, property);\n                }\n            });\n        }\n        /** Gets the class of this object. */\n        get class() {\n            return new Il2Cpp.Class(Il2Cpp.exports.objectGetClass(this));\n        }\n        /** Returns a monitor for this object. */\n        get monitor() {\n            return new Il2Cpp.Object.Monitor(this);\n        }\n        /** Gets the size of the current object. */\n        get size() {\n            return Il2Cpp.exports.objectGetSize(this);\n        }\n        /** Gets the non-static field with the given name of the current class hierarchy. */\n        field(name) {\n            return this.tryField(name) ?? raise(`couldn't find non-static field ${name} in hierarchy of class ${this.class.type.name}`);\n        }\n        /** Gets the non-static method with the given name (and optionally parameter count) of the current class hierarchy. */\n        method(name, parameterCount = -1) {\n            return this.tryMethod(name, parameterCount) ?? raise(`couldn't find non-static method ${name} in hierarchy of class ${this.class.type.name}`);\n        }\n        /** Creates a reference to this object. */\n        ref(pin) {\n            return new Il2Cpp.GCHandle(Il2Cpp.exports.gcHandleNew(this, +pin));\n        }\n        /** Gets the correct virtual method from the given virtual method. */\n        virtualMethod(method) {\n            return new Il2Cpp.Method(Il2Cpp.exports.objectGetVirtualMethod(this, method)).bind(this);\n        }\n        /** Gets the non-static field with the given name of the current class hierarchy, if it exists. */\n        tryField(name) {\n            const field = this.class.tryField(name);\n            if (field?.isStatic) {\n                // classes cannot have static and non-static fields with the\n                // same name, hence we can immediately check the parent\n                for (const klass of this.class.hierarchy({ includeCurrent: false })) {\n                    for (const field of klass.fields) {\n                        if (field.name == name && !field.isStatic) {\n                            return field.bind(this);\n                        }\n                    }\n                }\n                return undefined;\n            }\n            return field?.bind(this);\n        }\n        /** Gets the non-static method with the given name (and optionally parameter count) of the current class hierarchy, if it exists. */\n        tryMethod(name, parameterCount = -1) {\n            const method = this.class.tryMethod(name, parameterCount);\n            if (method?.isStatic) {\n                for (const klass of this.class.hierarchy()) {\n                    for (const method of klass.methods) {\n                        if (method.name == name && !method.isStatic && (parameterCount < 0 || method.parameterCount == parameterCount)) {\n                            return method.bind(this);\n                        }\n                    }\n                }\n                return undefined;\n            }\n            return method?.bind(this);\n        }\n        /** */\n        toString() {\n            return this.isNull() ? \"null\" : this.method(\"ToString\", 0).invoke().content ?? \"null\";\n        }\n        /** Unboxes the value type (either a primitive, a struct or an enum) out of this object. */\n        unbox() {\n            return this.class.isValueType\n                ? new Il2Cpp.ValueType(Il2Cpp.exports.objectUnbox(this), this.class.type)\n                : raise(`couldn't unbox instances of ${this.class.type.name} as they are not value types`);\n        }\n        /** Creates a weak reference to this object. */\n        weakRef(trackResurrection) {\n            return new Il2Cpp.GCHandle(Il2Cpp.exports.gcHandleNewWeakRef(this, +trackResurrection));\n        }\n    }\n    __decorate([\n        lazy\n    ], Object.prototype, \"class\", null);\n    __decorate([\n        lazy\n    ], Object.prototype, \"size\", null);\n    __decorate([\n        lazy\n    ], Object, \"headerSize\", null);\n    Il2Cpp.Object = Object;\n    (function (Object) {\n        class Monitor {\n            handle;\n            /** @internal */\n            constructor(/** @internal */ handle) {\n                this.handle = handle;\n            }\n            /** Acquires an exclusive lock on the current object. */\n            enter() {\n                return Il2Cpp.exports.monitorEnter(this.handle);\n            }\n            /** Release an exclusive lock on the current object. */\n            exit() {\n                return Il2Cpp.exports.monitorExit(this.handle);\n            }\n            /** Notifies a thread in the waiting queue of a change in the locked object's state. */\n            pulse() {\n                return Il2Cpp.exports.monitorPulse(this.handle);\n            }\n            /** Notifies all waiting threads of a change in the object's state. */\n            pulseAll() {\n                return Il2Cpp.exports.monitorPulseAll(this.handle);\n            }\n            /** Attempts to acquire an exclusive lock on the current object. */\n            tryEnter(timeout) {\n                return !!Il2Cpp.exports.monitorTryEnter(this.handle, timeout);\n            }\n            /** Releases the lock on an object and attempts to block the current thread until it reacquires the lock. */\n            tryWait(timeout) {\n                return !!Il2Cpp.exports.monitorTryWait(this.handle, timeout);\n            }\n            /** Releases the lock on an object and blocks the current thread until it reacquires the lock. */\n            wait() {\n                return Il2Cpp.exports.monitorWait(this.handle);\n            }\n        }\n        Object.Monitor = Monitor;\n    })(Object = Il2Cpp.Object || (Il2Cpp.Object = {}));\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    class Parameter {\n        /** Name of this parameter. */\n        name;\n        /** Position of this parameter. */\n        position;\n        /** Type of this parameter. */\n        type;\n        constructor(name, position, type) {\n            this.name = name;\n            this.position = position;\n            this.type = type;\n        }\n        /** */\n        toString() {\n            return `${this.type.name} ${this.name}`;\n        }\n    }\n    Il2Cpp.Parameter = Parameter;\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    class Pointer extends NativeStruct {\n        type;\n        constructor(handle, type) {\n            super(handle);\n            this.type = type;\n        }\n        /** Gets the element at the given index. */\n        get(index) {\n            return Il2Cpp.read(this.handle.add(index * this.type.class.arrayElementSize), this.type);\n        }\n        /** Reads the given amount of elements starting at the given offset. */\n        read(length, offset = 0) {\n            const values = new globalThis.Array(length);\n            for (let i = 0; i < length; i++) {\n                values[i] = this.get(i + offset);\n            }\n            return values;\n        }\n        /** Sets the given element at the given index */\n        set(index, value) {\n            Il2Cpp.write(this.handle.add(index * this.type.class.arrayElementSize), value, this.type);\n        }\n        /** */\n        toString() {\n            return this.handle.toString();\n        }\n        /** Writes the given elements starting at the given index. */\n        write(values, offset = 0) {\n            for (let i = 0; i < values.length; i++) {\n                this.set(i + offset, values[i]);\n            }\n        }\n    }\n    Il2Cpp.Pointer = Pointer;\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    class Reference extends NativeStruct {\n        type;\n        constructor(handle, type) {\n            super(handle);\n            this.type = type;\n        }\n        /** Gets the element referenced by the current reference. */\n        get value() {\n            return Il2Cpp.read(this.handle, this.type);\n        }\n        /** Sets the element referenced by the current reference. */\n        set value(value) {\n            Il2Cpp.write(this.handle, value, this.type);\n        }\n        /** */\n        toString() {\n            return this.isNull() ? \"null\" : `->${this.value}`;\n        }\n    }\n    Il2Cpp.Reference = Reference;\n    /** Creates a reference to the specified value. */\n    function reference(value, type) {\n        const handle = Memory.alloc(Process.pointerSize);\n        switch (typeof value) {\n            case \"boolean\":\n                return new Il2Cpp.Reference(handle.writeS8(+value), Il2Cpp.corlib.class(\"System.Boolean\").type);\n            case \"number\":\n                switch (type?.enumValue) {\n                    case Il2Cpp.Type.Enum.UBYTE:\n                        return new Il2Cpp.Reference(handle.writeU8(value), type);\n                    case Il2Cpp.Type.Enum.BYTE:\n                        return new Il2Cpp.Reference(handle.writeS8(value), type);\n                    case Il2Cpp.Type.Enum.CHAR:\n                    case Il2Cpp.Type.Enum.USHORT:\n                        return new Il2Cpp.Reference(handle.writeU16(value), type);\n                    case Il2Cpp.Type.Enum.SHORT:\n                        return new Il2Cpp.Reference(handle.writeS16(value), type);\n                    case Il2Cpp.Type.Enum.UINT:\n                        return new Il2Cpp.Reference(handle.writeU32(value), type);\n                    case Il2Cpp.Type.Enum.INT:\n                        return new Il2Cpp.Reference(handle.writeS32(value), type);\n                    case Il2Cpp.Type.Enum.ULONG:\n                        return new Il2Cpp.Reference(handle.writeU64(value), type);\n                    case Il2Cpp.Type.Enum.LONG:\n                        return new Il2Cpp.Reference(handle.writeS64(value), type);\n                    case Il2Cpp.Type.Enum.FLOAT:\n                        return new Il2Cpp.Reference(handle.writeFloat(value), type);\n                    case Il2Cpp.Type.Enum.DOUBLE:\n                        return new Il2Cpp.Reference(handle.writeDouble(value), type);\n                }\n            case \"object\":\n                if (value instanceof Il2Cpp.ValueType || value instanceof Il2Cpp.Pointer) {\n                    return new Il2Cpp.Reference(value.handle, value.type);\n                }\n                else if (value instanceof Il2Cpp.Object) {\n                    return new Il2Cpp.Reference(handle.writePointer(value), value.class.type);\n                }\n                else if (value instanceof Il2Cpp.String || value instanceof Il2Cpp.Array) {\n                    return new Il2Cpp.Reference(handle.writePointer(value), value.object.class.type);\n                }\n                else if (value instanceof NativePointer) {\n                    switch (type?.enumValue) {\n                        case Il2Cpp.Type.Enum.NUINT:\n                        case Il2Cpp.Type.Enum.NINT:\n                            return new Il2Cpp.Reference(handle.writePointer(value), type);\n                    }\n                }\n                else if (value instanceof Int64) {\n                    return new Il2Cpp.Reference(handle.writeS64(value), Il2Cpp.corlib.class(\"System.Int64\").type);\n                }\n                else if (value instanceof UInt64) {\n                    return new Il2Cpp.Reference(handle.writeU64(value), Il2Cpp.corlib.class(\"System.UInt64\").type);\n                }\n            default:\n                raise(`couldn't create a reference to ${value} using an unhandled type ${type?.name}`);\n        }\n    }\n    Il2Cpp.reference = reference;\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    class String extends NativeStruct {\n        /** Gets the content of this string. */\n        get content() {\n            return Il2Cpp.exports.stringGetChars(this).readUtf16String(this.length);\n        }\n        /** @unsafe Sets the content of this string - it may write out of bounds! */\n        set content(value) {\n            // prettier-ignore\n            const offset = Il2Cpp.string(\"vfsfitvnm\").handle.offsetOf(_ => _.readInt() == 9)\n                ?? raise(\"couldn't find the length offset in the native string struct\");\n            globalThis.Object.defineProperty(Il2Cpp.String.prototype, \"content\", {\n                set(value) {\n                    Il2Cpp.exports.stringGetChars(this).writeUtf16String(value ?? \"\");\n                    this.handle.add(offset).writeS32(value?.length ?? 0);\n                }\n            });\n            this.content = value;\n        }\n        /** Gets the length of this string. */\n        get length() {\n            return Il2Cpp.exports.stringGetLength(this);\n        }\n        /** Gets the encompassing object of the current string. */\n        get object() {\n            return new Il2Cpp.Object(this);\n        }\n        /** */\n        toString() {\n            return this.isNull() ? \"null\" : `\"${this.content}\"`;\n        }\n    }\n    Il2Cpp.String = String;\n    /** Creates a new string with the specified content. */\n    function string(content) {\n        return new Il2Cpp.String(Il2Cpp.exports.stringNew(Memory.allocUtf8String(content ?? \"\")));\n    }\n    Il2Cpp.string = string;\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    class Thread extends NativeStruct {\n        /** Gets the native id of the current thread. */\n        get id() {\n            let get = function () {\n                return this.internal.field(\"thread_id\").value.toNumber();\n            };\n            // https://github.com/mono/linux-packaging-mono/blob/d586f84dfea30217f34b076a616a098518aa72cd/mono/utils/mono-threads.h#L642\n            if (Process.platform != \"windows\") {\n                const currentThreadId = Process.getCurrentThreadId();\n                const currentPosixThread = ptr(get.apply(Il2Cpp.currentThread));\n                // prettier-ignore\n                const offset = currentPosixThread.offsetOf(_ => _.readS32() == currentThreadId, 1024) ??\n                    raise(`couldn't find the offset for determining the kernel id of a posix thread`);\n                const _get = get;\n                get = function () {\n                    return ptr(_get.apply(this)).add(offset).readS32();\n                };\n            }\n            getter(Il2Cpp.Thread.prototype, \"id\", get, lazy);\n            return this.id;\n        }\n        /** Gets the encompassing internal object (System.Threding.InternalThreead) of the current thread. */\n        get internal() {\n            return this.object.tryField(\"internal_thread\")?.value ?? this.object;\n        }\n        /** Determines whether the current thread is the garbage collector finalizer one. */\n        get isFinalizer() {\n            return !Il2Cpp.exports.threadIsVm(this);\n        }\n        /** Gets the managed id of the current thread. */\n        get managedId() {\n            return this.object.method(\"get_ManagedThreadId\").invoke();\n        }\n        /** Gets the encompassing object of the current thread. */\n        get object() {\n            return new Il2Cpp.Object(this);\n        }\n        /** @internal */\n        get staticData() {\n            return this.internal.field(\"static_data\").value;\n        }\n        /** @internal */\n        get synchronizationContext() {\n            const get_ExecutionContext = this.object.tryMethod(\"GetMutableExecutionContext\") ?? this.object.method(\"get_ExecutionContext\");\n            const executionContext = get_ExecutionContext.invoke();\n            // From what I observed, only the main thread is supposed to have a\n            // synchronization context; however there are two cases where it is\n            // not available at all:\n            // 1) during early instrumentation;\n            // 2) it was dead code has it was stripped out.\n            const synchronizationContext = executionContext.tryField(\"_syncContext\")?.value ??\n                executionContext.tryMethod(\"get_SynchronizationContext\")?.invoke() ??\n                this.tryLocalValue(Il2Cpp.corlib.class(\"System.Threading.SynchronizationContext\"));\n            return synchronizationContext?.asNullable() ?? null;\n        }\n        /** Detaches the thread from the application domain. */\n        detach() {\n            return Il2Cpp.exports.threadDetach(this);\n        }\n        /** Schedules a callback on the current thread. */\n        schedule(block) {\n            const Post = this.synchronizationContext?.tryMethod(\"Post\");\n            if (Post == null) {\n                return Process.runOnThread(this.id, block);\n            }\n            return new Promise(resolve => {\n                const delegate = Il2Cpp.delegate(Il2Cpp.corlib.class(\"System.Threading.SendOrPostCallback\"), () => {\n                    const result = block();\n                    setImmediate(() => resolve(result));\n                });\n                // This is to replace pending scheduled callbacks when the script is about to get unlaoded.\n                // If we skip this cleanup, Frida's native callbacks will point to invalid memory, making\n                // the application crash as soon as the IL2CPP runtime tries to execute such callbacks.\n                // For instance, without the following code, this is how you can trigger a crash:\n                // 1) unfocus the application;\n                // 2) schedule a callback;\n                // 3) reload the script;\n                // 4) focus application.\n                //\n                // The \"proper\" solution consists in removing our delegates from the Unity synchroniztion\n                // context, but the interface is not consisent across Unity versions - e.g. 2017.4.40f1 uses\n                // a queue instead of a list, whereas newer versions do not allow null work requests.\n                // The following solution, which basically redirects the invocation to a native function that\n                // survives the script reloading, is much simpler, honestly.\n                Script.bindWeak(globalThis, () => {\n                    delegate.field(\"method_ptr\").value = delegate.field(\"invoke_impl\").value = Il2Cpp.exports.domainGet;\n                });\n                Post.invoke(delegate, NULL);\n            });\n        }\n        /** @internal */\n        tryLocalValue(klass) {\n            for (let i = 0; i < 16; i++) {\n                const base = this.staticData.add(i * Process.pointerSize).readPointer();\n                if (!base.isNull()) {\n                    const object = new Il2Cpp.Object(base.readPointer()).asNullable();\n                    if (object?.class?.isSubclassOf(klass, false)) {\n                        return object;\n                    }\n                }\n            }\n        }\n    }\n    __decorate([\n        lazy\n    ], Thread.prototype, \"internal\", null);\n    __decorate([\n        lazy\n    ], Thread.prototype, \"isFinalizer\", null);\n    __decorate([\n        lazy\n    ], Thread.prototype, \"managedId\", null);\n    __decorate([\n        lazy\n    ], Thread.prototype, \"object\", null);\n    __decorate([\n        lazy\n    ], Thread.prototype, \"staticData\", null);\n    __decorate([\n        lazy\n    ], Thread.prototype, \"synchronizationContext\", null);\n    Il2Cpp.Thread = Thread;\n    getter(Il2Cpp, \"attachedThreads\", () => {\n        if (Il2Cpp.exports.threadGetAttachedThreads.isNull()) {\n            const currentThreadHandle = Il2Cpp.currentThread?.handle ?? raise(\"Current thread is not attached to IL2CPP\");\n            const pattern = currentThreadHandle.toMatchPattern();\n            const threads = [];\n            for (const range of Process.enumerateRanges(\"rw-\")) {\n                if (range.file == undefined) {\n                    const matches = Memory.scanSync(range.base, range.size, pattern);\n                    if (matches.length == 1) {\n                        while (true) {\n                            const handle = matches[0].address.sub(matches[0].size * threads.length).readPointer();\n                            if (handle.isNull() || !handle.readPointer().equals(currentThreadHandle.readPointer())) {\n                                break;\n                            }\n                            threads.unshift(new Il2Cpp.Thread(handle));\n                        }\n                        break;\n                    }\n                }\n            }\n            return threads;\n        }\n        return readNativeList(Il2Cpp.exports.threadGetAttachedThreads).map(_ => new Il2Cpp.Thread(_));\n    });\n    getter(Il2Cpp, \"currentThread\", () => {\n        return new Il2Cpp.Thread(Il2Cpp.exports.threadGetCurrent()).asNullable();\n    });\n    getter(Il2Cpp, \"mainThread\", () => {\n        // I'm not sure if this is always the case. Typically, the main\n        // thread managed id is 1, but this isn't always true: spawning\n        // an Android application with Unity 5.3.8f1 will cause the Frida\n        // thread to have the managed id equal to 1, whereas the main thread\n        // managed id is 2.\n        return Il2Cpp.attachedThreads[0];\n    });\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    let Type = class Type extends NativeStruct {\n        /** */\n        static get Enum() {\n            const _ = (_, block = (_) => _) => block(Il2Cpp.corlib.class(_)).type.enumValue;\n            const initial = {\n                VOID: _(\"System.Void\"),\n                BOOLEAN: _(\"System.Boolean\"),\n                CHAR: _(\"System.Char\"),\n                BYTE: _(\"System.SByte\"),\n                UBYTE: _(\"System.Byte\"),\n                SHORT: _(\"System.Int16\"),\n                USHORT: _(\"System.UInt16\"),\n                INT: _(\"System.Int32\"),\n                UINT: _(\"System.UInt32\"),\n                LONG: _(\"System.Int64\"),\n                ULONG: _(\"System.UInt64\"),\n                NINT: _(\"System.IntPtr\"),\n                NUINT: _(\"System.UIntPtr\"),\n                FLOAT: _(\"System.Single\"),\n                DOUBLE: _(\"System.Double\"),\n                POINTER: _(\"System.IntPtr\", _ => _.field(\"m_value\")),\n                VALUE_TYPE: _(\"System.Decimal\"),\n                OBJECT: _(\"System.Object\"),\n                STRING: _(\"System.String\"),\n                CLASS: _(\"System.Array\"),\n                ARRAY: _(\"System.Void\", _ => _.arrayClass),\n                NARRAY: _(\"System.Void\", _ => new Il2Cpp.Class(Il2Cpp.exports.classGetArrayClass(_, 2))),\n                GENERIC_INSTANCE: _(\"System.Int32\", _ => _.interfaces.find(_ => _.name.endsWith(\"`1\")))\n            };\n            // VAR and MVAR require the rest of the values to be initialized;\n            // this is to avoid \"Maximum call stack size exceeded\"\n            Reflect.defineProperty(this, \"Enum\", { value: initial });\n            return addFlippedEntries({\n                ...initial,\n                VAR: _(\"System.Action`1\", _ => _.generics[0]),\n                MVAR: _(\"System.Array\", _ => _.method(\"AsReadOnly\", 1).generics[0])\n            });\n        }\n        /** Gets the class of this type. */\n        get class() {\n            return new Il2Cpp.Class(Il2Cpp.exports.typeGetClass(this));\n        }\n        /** */\n        get fridaAlias() {\n            function getValueTypeFields(type) {\n                const instanceFields = type.class.fields.filter(_ => !_.isStatic);\n                return instanceFields.length == 0 ? [\"char\"] : instanceFields.map(_ => _.type.fridaAlias);\n            }\n            if (this.isByReference) {\n                return \"pointer\";\n            }\n            switch (this.enumValue) {\n                case Il2Cpp.Type.Enum.VOID:\n                    return \"void\";\n                case Il2Cpp.Type.Enum.BOOLEAN:\n                    return \"bool\";\n                case Il2Cpp.Type.Enum.CHAR:\n                    return \"uchar\";\n                case Il2Cpp.Type.Enum.BYTE:\n                    return \"int8\";\n                case Il2Cpp.Type.Enum.UBYTE:\n                    return \"uint8\";\n                case Il2Cpp.Type.Enum.SHORT:\n                    return \"int16\";\n                case Il2Cpp.Type.Enum.USHORT:\n                    return \"uint16\";\n                case Il2Cpp.Type.Enum.INT:\n                    return \"int32\";\n                case Il2Cpp.Type.Enum.UINT:\n                    return \"uint32\";\n                case Il2Cpp.Type.Enum.LONG:\n                    return \"int64\";\n                case Il2Cpp.Type.Enum.ULONG:\n                    return \"uint64\";\n                case Il2Cpp.Type.Enum.FLOAT:\n                    return \"float\";\n                case Il2Cpp.Type.Enum.DOUBLE:\n                    return \"double\";\n                case Il2Cpp.Type.Enum.NINT:\n                case Il2Cpp.Type.Enum.NUINT:\n                case Il2Cpp.Type.Enum.POINTER:\n                case Il2Cpp.Type.Enum.STRING:\n                case Il2Cpp.Type.Enum.ARRAY:\n                case Il2Cpp.Type.Enum.NARRAY:\n                    return \"pointer\";\n                case Il2Cpp.Type.Enum.VALUE_TYPE:\n                    return this.class.isEnum ? this.class.baseType.fridaAlias : getValueTypeFields(this);\n                case Il2Cpp.Type.Enum.CLASS:\n                case Il2Cpp.Type.Enum.OBJECT:\n                case Il2Cpp.Type.Enum.GENERIC_INSTANCE:\n                    return this.class.isStruct ? getValueTypeFields(this) : this.class.isEnum ? this.class.baseType.fridaAlias : \"pointer\";\n                default:\n                    return \"pointer\";\n            }\n        }\n        /** Determines whether this type is passed by reference. */\n        get isByReference() {\n            return this.name.endsWith(\"&\");\n        }\n        /** Determines whether this type is primitive. */\n        get isPrimitive() {\n            switch (this.enumValue) {\n                case Il2Cpp.Type.Enum.BOOLEAN:\n                case Il2Cpp.Type.Enum.CHAR:\n                case Il2Cpp.Type.Enum.BYTE:\n                case Il2Cpp.Type.Enum.UBYTE:\n                case Il2Cpp.Type.Enum.SHORT:\n                case Il2Cpp.Type.Enum.USHORT:\n                case Il2Cpp.Type.Enum.INT:\n                case Il2Cpp.Type.Enum.UINT:\n                case Il2Cpp.Type.Enum.LONG:\n                case Il2Cpp.Type.Enum.ULONG:\n                case Il2Cpp.Type.Enum.FLOAT:\n                case Il2Cpp.Type.Enum.DOUBLE:\n                case Il2Cpp.Type.Enum.NINT:\n                case Il2Cpp.Type.Enum.NUINT:\n                    return true;\n                default:\n                    return false;\n            }\n        }\n        /** Gets the name of this type. */\n        get name() {\n            const handle = Il2Cpp.exports.typeGetName(this);\n            try {\n                return handle.readUtf8String();\n            }\n            finally {\n                Il2Cpp.free(handle);\n            }\n        }\n        /** Gets the encompassing object of the current type. */\n        get object() {\n            return new Il2Cpp.Object(Il2Cpp.exports.typeGetObject(this));\n        }\n        /** Gets the {@link Il2Cpp.Type.Enum} value of the current type. */\n        get enumValue() {\n            return Il2Cpp.exports.typeGetTypeEnum(this);\n        }\n        is(other) {\n            if (Il2Cpp.exports.typeEquals.isNull()) {\n                return this.object.method(\"Equals\").invoke(other.object);\n            }\n            return !!Il2Cpp.exports.typeEquals(this, other);\n        }\n        /** */\n        toString() {\n            return this.name;\n        }\n    };\n    __decorate([\n        lazy\n    ], Type.prototype, \"class\", null);\n    __decorate([\n        lazy\n    ], Type.prototype, \"fridaAlias\", null);\n    __decorate([\n        lazy\n    ], Type.prototype, \"isByReference\", null);\n    __decorate([\n        lazy\n    ], Type.prototype, \"isPrimitive\", null);\n    __decorate([\n        lazy\n    ], Type.prototype, \"name\", null);\n    __decorate([\n        lazy\n    ], Type.prototype, \"object\", null);\n    __decorate([\n        lazy\n    ], Type.prototype, \"enumValue\", null);\n    __decorate([\n        lazy\n    ], Type, \"Enum\", null);\n    Type = __decorate([\n        recycle\n    ], Type);\n    Il2Cpp.Type = Type;\n})(Il2Cpp || (Il2Cpp = {}));\nvar Il2Cpp;\n(function (Il2Cpp) {\n    class ValueType extends NativeStruct {\n        type;\n        constructor(handle, type) {\n            super(handle);\n            this.type = type;\n        }\n        /** Boxes the current value type in a object. */\n        box() {\n            return new Il2Cpp.Object(Il2Cpp.exports.valueTypeBox(this.type.class, this));\n        }\n        /** Gets the non-static field with the given name of the current class hierarchy. */\n        field(name) {\n            return this.tryField(name) ?? raise(`couldn't find non-static field ${name} in hierarchy of class ${this.type.name}`);\n        }\n        /** Gets the non-static method with the given name (and optionally parameter count) of the current class hierarchy. */\n        method(name, parameterCount = -1) {\n            return this.tryMethod(name, parameterCount) ?? raise(`couldn't find non-static method ${name} in hierarchy of class ${this.type.name}`);\n        }\n        /** Gets the non-static field with the given name of the current class hierarchy, if it exists. */\n        tryField(name) {\n            const field = this.type.class.tryField(name);\n            if (field?.isStatic) {\n                for (const klass of this.type.class.hierarchy()) {\n                    for (const field of klass.fields) {\n                        if (field.name == name && !field.isStatic) {\n                            return field.bind(this);\n                        }\n                    }\n                }\n                return undefined;\n            }\n            return field?.bind(this);\n        }\n        /** Gets the non-static method with the given name (and optionally parameter count) of the current class hierarchy, if it exists. */\n        tryMethod(name, parameterCount = -1) {\n            const method = this.type.class.tryMethod(name, parameterCount);\n            if (method?.isStatic) {\n                for (const klass of this.type.class.hierarchy()) {\n                    for (const method of klass.methods) {\n                        if (method.name == name && !method.isStatic && (parameterCount < 0 || method.parameterCount == parameterCount)) {\n                            return method.bind(this);\n                        }\n                    }\n                }\n                return undefined;\n            }\n            return method?.bind(this);\n        }\n        /** */\n        toString() {\n            const ToString = this.method(\"ToString\", 0);\n            return this.isNull()\n                ? \"null\"\n                : // If ToString is defined within a value type class, we can\n                    // avoid a boxing operation.\n                    ToString.class.isValueType\n                        ? ToString.invoke().content ?? \"null\"\n                        : this.box().toString() ?? \"null\";\n        }\n    }\n    Il2Cpp.ValueType = ValueType;\n})(Il2Cpp || (Il2Cpp = {}));\n/// <reference path=\"./utils/android.ts\">/>\n/// <reference path=\"./utils/console.ts\">/>\n/// <reference path=\"./utils/decorate.ts\">/>\n/// <reference path=\"./utils/getter.ts\">/>\n/// <reference path=\"./utils/hash.ts\">/>\n/// <reference path=\"./utils/lazy.ts\">/>\n/// <reference path=\"./utils/native-struct.ts\">/>\n/// <reference path=\"./utils/object.ts\">/>\n/// <reference path=\"./utils/offset-of.ts\">/>\n/// <reference path=\"./utils/read-native-iterator.ts\">/>\n/// <reference path=\"./utils/read-native-list.ts\">/>\n/// <reference path=\"./utils/recycle.ts\">/>\n/// <reference path=\"./utils/unity-version.ts\">/>\n/// <reference path=\"./application.ts\">/>\n/// <reference path=\"./boxed.ts\">/>\n/// <reference path=\"./config.ts\">/>\n/// <reference path=\"./dump.ts\">/>\n/// <reference path=\"./exception-listener.ts\">/>\n/// <reference path=\"./exports.ts\">/>\n/// <reference path=\"./filters.ts\">/>\n/// <reference path=\"./gc.ts\">/>\n/// <reference path=\"./memory.ts\">/>\n/// <reference path=\"./module.ts\">/>\n/// <reference path=\"./perform.ts\">/>\n/// <reference path=\"./tracer.ts\">/>\n/// <reference path=\"./structs/array.ts\">/>\n/// <reference path=\"./structs/assembly.ts\">/>\n/// <reference path=\"./structs/class.ts\">/>\n/// <reference path=\"./structs/delegate.ts\">/>\n/// <reference path=\"./structs/domain.ts\">/>\n/// <reference path=\"./structs/field.ts\">/>\n/// <reference path=\"./structs/gc-handle.ts\">/>\n/// <reference path=\"./structs/image.ts\">/>\n/// <reference path=\"./structs/memory-snapshot.ts\">/>\n/// <reference path=\"./structs/method.ts\">/>\n/// <reference path=\"./structs/object.ts\">/>\n/// <reference path=\"./structs/parameter.ts\">/>\n/// <reference path=\"./structs/pointer.ts\">/>\n/// <reference path=\"./structs/reference.ts\">/>\n/// <reference path=\"./structs/string.ts\">/>\n/// <reference path=\"./structs/thread.ts\">/>\n/// <reference path=\"./structs/type.ts\">/>\n/// <reference path=\"./structs/value-type.ts\">/>\nglobalThis.Il2Cpp = Il2Cpp;\n"]}