diff --git a/.eslintrc.js b/.eslintrc.js index 0d7dfa1e..266f9f03 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,55 +1,55 @@ module.exports = { - parser: '@typescript-eslint/parser', - env: { - browser: true, - es6: true, + parser: '@typescript-eslint/parser', + env: { + browser: true, + es6: true, + }, + plugins: [ + 'react', + 'jsx-a11y', + 'import', + 'prettier', + 'react-hooks', + 'regexp', + '@typescript-eslint', + ], + extends: [ + 'airbnb', + 'plugin:prettier/recommended', + 'plugin:jsx-a11y/recommended', + 'plugin:import/errors', + 'plugin:import/warnings', + 'plugin:@typescript-eslint/eslint-recommended', + 'plugin:@typescript-eslint/recommended', + ], + parserOptions: { + ecmaFeatures: { + jsx: true, }, - plugins: [ - 'react', - 'jsx-a11y', - 'import', - 'prettier', - 'react-hooks', - 'regexp', - '@typescript-eslint', + ecmaVersion: 2021, + sourceType: 'module', + }, + rules: { + 'prettier/prettier': ['error', {}, { usePrettierrc: true }], + 'react/prop-types': 'off', + 'react/jsx-filename-extension': [ + 1, + { extensions: ['.js', '.jsx', '.ts', '.tsx'] }, ], - extends: [ - 'airbnb', - 'plugin:prettier/recommended', - 'plugin:jsx-a11y/recommended', - 'plugin:import/errors', - 'plugin:import/warnings', - 'plugin:@typescript-eslint/eslint-recommended', - 'plugin:@typescript-eslint/recommended', - ], - parserOptions: { - ecmaFeatures: { - jsx: true, - }, - ecmaVersion: 2021, - sourceType: 'module', - }, - rules: { - 'prettier/prettier': ['error', {}, { usePrettierrc: true }], - 'react/prop-types': 'off', - 'react/jsx-filename-extension': [ - 1, - { extensions: ['.js', '.jsx', '.ts', '.tsx'] }, - ], - 'react/jsx-props-no-spreading': 'off', - 'react/destructuring-assignment': ['warn'], - 'import/no-unresolved': 'off', - 'import/extensions': 'off', - 'react-hooks/rules-of-hooks': 'warn', - 'react-hooks/exhaustive-deps': 'warn', - 'regexp/no-unused-capturing-group': 'error', - 'regexp/no-useless-backreference': 'error', - }, - settings: { - 'import/resolver': { - node: { - extensions: ['.js', '.jsx', '.json'], - }, - }, + 'react/jsx-props-no-spreading': 'off', + 'react/destructuring-assignment': ['warn'], + 'import/no-unresolved': 'off', + 'import/extensions': 'off', + 'react-hooks/rules-of-hooks': 'warn', + 'react-hooks/exhaustive-deps': 'warn', + 'regexp/no-unused-capturing-group': 'error', + 'regexp/no-useless-backreference': 'error', + }, + settings: { + 'import/resolver': { + node: { + extensions: ['.js', '.jsx', '.json'], + }, }, + }, }; diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 983ceec2..3e3d4ced 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -28,9 +28,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - name: Initialize CodeQL uses: github/codeql-action/init@v2.3.3 with: languages: ${{ matrix.language }} + - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2.3.3 diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 8d46b225..593a7cb9 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -14,5 +14,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - name: Dependency Review uses: actions/dependency-review-action@v2 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3b091c6d..9b1512b8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,7 +22,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 16.14.0 cache: 'npm' - name: Cache NPM Dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3e1f5d66..6c697583 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,10 +1,11 @@ -name: Lint Check +name: Lint on: + workflow_dispatch: + push: pull_request: branches: - main - - docusaurus-v** concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} @@ -14,18 +15,25 @@ permissions: contents: read jobs: - lint-markdown: - name: Lint markdown + lint: + name: Lint + timeout-minutes: 30 runs-on: ubuntu-latest steps: - - name: Checkout code + - name: Checkout uses: actions/checkout@v3 - - name: Lint markdown format - uses: github/super-linter/slim@v5 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - DEFAULT_BRANCH: main - FILTER_REGEX_INCLUDE: .*docs/.*md$ - VALIDATE_ALL_CODEBASE: false - VALIDATE_MARKDOWN: true + - name: Set up Node + uses: actions/setup-node@v3 + with: + node-version: 16.14.0 + cache: npm + + - name: Installation + run: npm install + + - name: Lint + run: npm run lint:ci + + - name: Prettier Code + run: npm run format:diff diff --git a/.lintstagedrc.json b/.lintstagedrc.json index 20d7f87d..b1a7b618 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -1,8 +1,8 @@ { - "*.{js,jsx,mjs}": ["eslint --fix"], - "*.css": ["stylelint --allow-empty-input --fix"], - "*": [ - "prettier --ignore-unknown --write", - "cspell --no-must-find-files --no-progress" - ] + "*.{js,jsx,mjs}": ["eslint --fix"], + "*.css": ["stylelint --allow-empty-input --fix"], + "*": [ + "prettier --ignore-unknown --write", + "cspell --no-must-find-files --no-progress" + ] } diff --git a/.prettierrc b/.prettierrc index 9bc4f79a..53760ce0 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,10 +1,10 @@ { - "arrowParens": "always", - "bracketSpacing": true, - "bracketSameLine": true, - "printWidth": 80, - "proseWrap": "never", - "singleQuote": true, - "trailingComma": "all", - "tabWidth": 4 + "arrowParens": "always", + "bracketSpacing": true, + "bracketSameLine": true, + "printWidth": 80, + "proseWrap": "never", + "singleQuote": true, + "trailingComma": "all", + "tabWidth": 2 } diff --git a/.stylelintrc.js b/.stylelintrc.js index 27616aac..be073235 100644 --- a/.stylelintrc.js +++ b/.stylelintrc.js @@ -1,17 +1,17 @@ module.exports = { - extends: ['stylelint-config-standard', 'stylelint-config-prettier'], - rules: { - 'selector-pseudo-class-no-unknown': [ - true, - { - ignorePseudoClasses: ['global'], - }, - ], - 'selector-class-pattern': null, - 'custom-property-empty-line-before': null, - 'selector-id-pattern': null, - 'declaration-empty-line-before': null, - 'comment-empty-line-before': null, - 'value-keyword-case': ['lower', { camelCaseSvgKeywords: true }], - }, + extends: ['stylelint-config-standard', 'stylelint-config-prettier'], + rules: { + 'selector-pseudo-class-no-unknown': [ + true, + { + ignorePseudoClasses: ['global'], + }, + ], + 'selector-class-pattern': null, + 'custom-property-empty-line-before': null, + 'selector-id-pattern': null, + 'declaration-empty-line-before': null, + 'comment-empty-line-before': null, + 'value-keyword-case': ['lower', { camelCaseSvgKeywords: true }], + }, }; diff --git a/.vscode/settings.json b/.vscode/settings.json index 3bdd399e..40b89c81 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,3 @@ { - "cSpell.words": ["bytecode", "CNCF", "Emscripten", "wasmedge"] + "cSpell.words": ["bytecode", "CNCF", "Emscripten", "wasmedge"] } diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 45bce815..39551595 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,12 +8,12 @@ If you are ready to contribute, please search for open issues labeled "help-want **Contents** -- Contribution Flow - - Developer Certificate of Origin -- WasmEdge Contribution Flow - - WasmEdge Docs - - WasmEdge Runtime - - Reporting a vulnerability +- Contribution Flow + - Developer Certificate of Origin +- WasmEdge Contribution Flow + - WasmEdge Docs + - WasmEdge Runtime + - Reporting a vulnerability # Contribution Flow diff --git a/babel.config.js b/babel.config.js index 0adade1f..e00595da 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,3 +1,3 @@ module.exports = { - presets: [require.resolve('@docusaurus/core/lib/babel/preset')], + presets: [require.resolve('@docusaurus/core/lib/babel/preset')], }; diff --git a/docs/contribute/plugin/_category_.json b/docs/contribute/plugin/_category_.json index 68e10756..fcdcda0b 100644 --- a/docs/contribute/plugin/_category_.json +++ b/docs/contribute/plugin/_category_.json @@ -1,8 +1,8 @@ { - "label": "WasmEdge Plugin System", - "position": 3, - "link": { - "type": "generated-index", - "description": "we will learn how to the WasmEdge Plugin System." - } + "label": "WasmEdge Plugin System", + "position": 3, + "link": { + "type": "generated-index", + "description": "we will learn how to the WasmEdge Plugin System." + } } diff --git a/docs/contribute/source/_category_.json b/docs/contribute/source/_category_.json index c7ebe24d..c1d7a28b 100644 --- a/docs/contribute/source/_category_.json +++ b/docs/contribute/source/_category_.json @@ -1,8 +1,8 @@ { - "label": "Build WasmEdge from source", - "position": 2, - "link": { - "type": "generated-index", - "description": "we will learn how to the WasmEdge Plugin System." - } + "label": "Build WasmEdge from source", + "position": 2, + "link": { + "type": "generated-index", + "description": "we will learn how to the WasmEdge Plugin System." + } } diff --git a/docs/contribute/source/build_from_src.md b/docs/contribute/source/build_from_src.md index 9ba640d9..20e4c355 100644 --- a/docs/contribute/source/build_from_src.md +++ b/docs/contribute/source/build_from_src.md @@ -23,18 +23,18 @@ Please follow this guide to build and test WasmEdge from the source code. WasmEdge provides various tools for enabling different runtime environments for optimal performance. You can find that there are several wasmedge related tools: 1. `wasmedge` is the general wasm runtime. - - `wasmedge` executes a `WASM` file in the interpreter mode or a compiled `WASM` file in the ahead-of-time compilation mode. - - To disable building all tools, you can set the CMake option `WASMEDGE_BUILD_TOOLS` to `OFF`. + - `wasmedge` executes a `WASM` file in the interpreter mode or a compiled `WASM` file in the ahead-of-time compilation mode. + - To disable building all tools, you can set the CMake option `WASMEDGE_BUILD_TOOLS` to `OFF`. 2. `wasmedgec` is the ahead-of-time `WASM` compiler. - - `wasmedgec` compiles a general `WASM` file into a compiled `WASM` file. - - To disable building the ahead-of-time compiler only, you can set the CMake option `WASMEDGE_BUILD_AOT_RUNTIME` to `OFF`. + - `wasmedgec` compiles a general `WASM` file into a compiled `WASM` file. + - To disable building the ahead-of-time compiler only, you can set the CMake option `WASMEDGE_BUILD_AOT_RUNTIME` to `OFF`. 3. `libwasmedge.so` is the WasmEdge C API shared library. (`libwasmedge.dylib` on MacOS and `wasmedge.dll` on Windows) - - `libwasmedge.so`, `libwasmedge.dylib`, or `wasmedge.dll` provides the C API for the ahead-of-time compiler and the WASM runtime. - - The APIs related to the ahead-of-time compiler will always fail if the CMake option `WASMEDGE_BUILD_AOT_RUNTIME` is set as `OFF`. - - To disable building just the shared library, you can set the CMake option `WASMEDGE_BUILD_SHARED_LIB` to `OFF`. + - `libwasmedge.so`, `libwasmedge.dylib`, or `wasmedge.dll` provides the C API for the ahead-of-time compiler and the WASM runtime. + - The APIs related to the ahead-of-time compiler will always fail if the CMake option `WASMEDGE_BUILD_AOT_RUNTIME` is set as `OFF`. + - To disable building just the shared library, you can set the CMake option `WASMEDGE_BUILD_SHARED_LIB` to `OFF`. 4. `ssvm-qitc` is for AI applications and supports the ONNC runtime for AI models in the ONNX format. - - If you want to try `ssvm-qitc`, please refer to [ONNC-Wasm](https://github.com/ONNC/onnc-wasm) project to set up the working environment and tryout several examples. - - And here is our [tutorial for ONNC-Wasm project(YouTube Video)](https://www.youtube.com/watch?v=cbiPuHMS-iQ). + - If you want to try `ssvm-qitc`, please refer to [ONNC-Wasm](https://github.com/ONNC/onnc-wasm) project to set up the working environment and tryout several examples. + - And here is our [tutorial for ONNC-Wasm project(YouTube Video)](https://www.youtube.com/watch?v=cbiPuHMS-iQ). ## CMake Building Options @@ -43,24 +43,24 @@ Developers can set the CMake options to customize the WasmEdge building. 1. `WASMEDGE_BUILD_TESTS`: build the WasmEdge tests. Default is `OFF`. 2. `WASMEDGE_BUILD_AOT_RUNTIME`: build with the Ahead-of-Time compiler supporting. Default is `ON`. 3. `WASMEDGE_BUILD_SHARED_LIB`: build the WasmEdge shared library (`libwasmedge.so`, `libwasmedge.dylib`, or `wasmedge.dll`). Default is `ON`. - - By default, the WasmEdge shared library will link to the LLVM shared library. + - By default, the WasmEdge shared library will link to the LLVM shared library. 4. `WASMEDGE_BUILD_STATIC_LIB`: build the WasmEdge static library (`libwasmedge.a`, Linux and MacOS platforms, experimental). Default is `OFF`. - - If this option is set as `ON`, the option `WASMEDGE_FORCE_DISABLE_LTO` will forcefully be set as `ON`. - - If this option is set as `ON`, the `libz` and `libtinfo` on Linux platforms will be statically linked. - - For linking with `libwasmedge.a`, developers should also add the `-ldl`, `-pthread`, `-lm`, and `-lstdc++` linker options on both Linux and MacOS platforms, and `-lrt` on Linux platforms. + - If this option is set as `ON`, the option `WASMEDGE_FORCE_DISABLE_LTO` will forcefully be set as `ON`. + - If this option is set as `ON`, the `libz` and `libtinfo` on Linux platforms will be statically linked. + - For linking with `libwasmedge.a`, developers should also add the `-ldl`, `-pthread`, `-lm`, and `-lstdc++` linker options on both Linux and MacOS platforms, and `-lrt` on Linux platforms. 5. `WASMEDGE_BUILD_TOOLS`: build the `wasmedge` and `wasmedgec` tools. Default is `ON`. - - The `wasmedge` and `wasmedgec` tools will link to the WasmEdge shared library by default. - - If this option is set as `ON` and `WASMEDGE_BUILD_AOT_RUNTIME` is set as `OFF`, the `wasmedgec` tool for the AOT compiler will not be built. - - If this option is set as `ON` but the option `WASMEDGE_LINK_TOOLS_STATIC` is set as `OFF`, the option `WASMEDGE_BUILD_SHARED_LIB` will forcefully be set as `ON`. - - If this option and the option `WASMEDGE_LINK_TOOLS_STATIC` are both set as `ON`, the `WASMEDGE_LINK_LLVM_STATIC` and `WASMEDGE_BUILD_STATIC_LIB` will both be set as `ON`, and the `wasmedge` and `wasmedgec` tools will link to the WasmEdge static library instead. In this case, the plugins will not work in tools. + - The `wasmedge` and `wasmedgec` tools will link to the WasmEdge shared library by default. + - If this option is set as `ON` and `WASMEDGE_BUILD_AOT_RUNTIME` is set as `OFF`, the `wasmedgec` tool for the AOT compiler will not be built. + - If this option is set as `ON` but the option `WASMEDGE_LINK_TOOLS_STATIC` is set as `OFF`, the option `WASMEDGE_BUILD_SHARED_LIB` will forcefully be set as `ON`. + - If this option and the option `WASMEDGE_LINK_TOOLS_STATIC` are both set as `ON`, the `WASMEDGE_LINK_LLVM_STATIC` and `WASMEDGE_BUILD_STATIC_LIB` will both be set as `ON`, and the `wasmedge` and `wasmedgec` tools will link to the WasmEdge static library instead. In this case, the plugins will not work in tools. 6. `WASMEDGE_BUILD_PLUGINS`: build the WasmEdge plugins. Default is `ON`. 7. `WASMEDGE_BUILD_EXAMPLE`: build the WasmEdge examples. Default is `OFF`. 8. `WASMEDGE_PLUGIN_WASI_NN_BACKEND`: build the WasmEdge WASI-NN plugin (Linux platforms only). Default is empty. - - This option is useless if the option `WASMEDGE_BUILD_PLUGINS` is set as `OFF`. - - To build the WASI-NN plugin with backend, please use `-DWASMEDGE_PLUGIN_WASI_NN_BACKEND=`. - - To build the WASI-NN plugin with multiple backends, please use `-DWASMEDGE_PLUGIN_WASI_NN_BACKEND=,`. + - This option is useless if the option `WASMEDGE_BUILD_PLUGINS` is set as `OFF`. + - To build the WASI-NN plugin with backend, please use `-DWASMEDGE_PLUGIN_WASI_NN_BACKEND=`. + - To build the WASI-NN plugin with multiple backends, please use `-DWASMEDGE_PLUGIN_WASI_NN_BACKEND=,`. 9. `WASMEDGE_PLUGIN_WASI_CRYPTO`: build the WasmEdge WASI-Crypto plugin (Linux platforms only). Default is `OFF`. - - This option is useless if the option `WASMEDGE_BUILD_PLUGINS` is set as `OFF`. + - This option is useless if the option `WASMEDGE_BUILD_PLUGINS` is set as `OFF`. 10. `WASMEDGE_FORCE_DISABLE_LTO`: forcefully turn off the link time optimization. Default is `OFF`. 11. `WASMEDGE_LINK_LLVM_STATIC`: link the LLVM and lld libraries statically (Linux and MacOS platforms only, experimental). Default is `OFF`. 12. `WASMEDGE_LINK_TOOLS_STATIC`: make the `wasmedge` and `wasmedgec` tools to link the WasmEdge library and LLVM libraries statically (Linux and MacOS platforms only, experimental). Default is `OFF`. diff --git a/docs/contribute/source/os/_category_.json b/docs/contribute/source/os/_category_.json index 179d75c2..9a6f5295 100644 --- a/docs/contribute/source/os/_category_.json +++ b/docs/contribute/source/os/_category_.json @@ -1,8 +1,8 @@ { - "label": "Build WasmEdge", - "position": 3, - "link": { - "type": "generated-index", - "description": "we will learn how to build WasmEdge from source on different OSes." - } + "label": "Build WasmEdge", + "position": 3, + "link": { + "type": "generated-index", + "description": "we will learn how to build WasmEdge from source on different OSes." + } } diff --git a/docs/contribute/source/os/android/_category_.json b/docs/contribute/source/os/android/_category_.json index 4ba8cccb..9859abb6 100644 --- a/docs/contribute/source/os/android/_category_.json +++ b/docs/contribute/source/os/android/_category_.json @@ -1,8 +1,8 @@ { - "label": "Build and Run WasmEdge on Android", - "position": 4, - "link": { - "type": "generated-index", - "description": "we will learn how to build and run WasmEdge on Android." - } + "label": "Build and Run WasmEdge on Android", + "position": 4, + "link": { + "type": "generated-index", + "description": "we will learn how to build and run WasmEdge on Android." + } } diff --git a/docs/contribute/source/os/android/build.md b/docs/contribute/source/os/android/build.md index 2cb6c6b4..b9d6de86 100644 --- a/docs/contribute/source/os/android/build.md +++ b/docs/contribute/source/os/android/build.md @@ -6,16 +6,16 @@ sidebar_position: 1 The WasmEdge Runtime releases come with pre-built binaries for the Android OS. Why WasmEdge on Android? -- Native speed & sandbox safety for Android apps -- Support multiple dev languages — eg C, [Rust](/category/develop-wasm-apps-in-rust), [Go](../../../../category/develop-wasm-apps-in-go) & [JS](../../../../category/develop-wasm-apps-in-javascript) -- [Embed 3rd party functions](../../../../embed/overview.md) in your android app -- [Kubernetes managed](../../../../category/deploy-wasmedge-apps-in-kubernetes) android apps +- Native speed & sandbox safety for Android apps +- Support multiple dev languages — eg C, [Rust](/category/develop-wasm-apps-in-rust), [Go](../../../../category/develop-wasm-apps-in-go) & [JS](../../../../category/develop-wasm-apps-in-javascript) +- [Embed 3rd party functions](../../../../embed/overview.md) in your android app +- [Kubernetes managed](../../../../category/deploy-wasmedge-apps-in-kubernetes) android apps However, the WasmEdge installer does not support Android. The user must download the release files to a computer, and then use the `adb` tool to transfer the files to an Android device or simulator. We will show you how to do that. -- [WasmEdge CLI tools for Android](./cli.md) -- [Call WasmEdge functions from an NDK native app](./ndk.md) -- [Call WasmEdge functions from an Android APK app](./apk.md) +- [WasmEdge CLI tools for Android](./cli.md) +- [Call WasmEdge functions from an NDK native app](./ndk.md) +- [Call WasmEdge functions from an Android APK app](./apk.md) ## Build from source for Android platforms @@ -27,11 +27,11 @@ Please follow this guide to build and test WasmEdge from source code with Androi We recommend developers to [use our Docker images](../linux.md##prepare-the-environment) and follow the steps to prepare the building environment. -- Download and extract the [Android NDK 23b](https://developer.android.com/ndk/downloads). -- Check the cmake for [CMake 3.21](https://cmake.org/download/) or greater version. -- Download and install the [ADB platform tools](https://developer.android.com/studio/releases/platform-tools). - - If you use the debian or ubuntu Linux distributions, you can install the ADB platform tools via `apt`. -- An Android device which is [enabled developer options and USB debugging](https://developer.android.com/studio/debug/dev-options) and with at least Android 6.0 or higher system version. +- Download and extract the [Android NDK 23b](https://developer.android.com/ndk/downloads). +- Check the cmake for [CMake 3.21](https://cmake.org/download/) or greater version. +- Download and install the [ADB platform tools](https://developer.android.com/studio/releases/platform-tools). + - If you use the debian or ubuntu Linux distributions, you can install the ADB platform tools via `apt`. +- An Android device which is [enabled developer options and USB debugging](https://developer.android.com/studio/debug/dev-options) and with at least Android 6.0 or higher system version. ## Build WasmEdge for Android platforms @@ -60,19 +60,19 @@ Run the build script in WasmEdge source code. This script will automatically bui 1. Connect the device by using a USB cable or Wi-Fi. Then you can check the attached devices via the `adb devices` command. - ```bash - $ adb devices - List of devices attached - 0a388e93 device - ``` + ```bash + $ adb devices + List of devices attached + 0a388e93 device + ``` 2. Use the `adb push` command to push the entire `build/tools/wasmedge` folder into the `/data/local/tmp` folder on your Android device. - ```bash - cp -r examples build/tools/wasmedge/examples - cd build - adb push ./tools/wasmedge /data/local/tmp - ``` + ```bash + cp -r examples build/tools/wasmedge/examples + cd build + adb push ./tools/wasmedge /data/local/tmp + ``` ### Run WasmEdge CLI on Android platforms @@ -103,5 +103,5 @@ Hello 1 2 3 ## Notice -- For the Android 10 or greater versions, SELinux will disallow the untrusted applications' `exec()` system call to execute the binaries in `home` or `/data/local/tmp` folder. -- The Android SELinux policy will disallow the untrusted applications to access the `/data/local/tmp` folder. +- For the Android 10 or greater versions, SELinux will disallow the untrusted applications' `exec()` system call to execute the binaries in `home` or `/data/local/tmp` folder. +- The Android SELinux policy will disallow the untrusted applications to access the `/data/local/tmp` folder. diff --git a/docs/contribute/source/os/sel4.md b/docs/contribute/source/os/sel4.md index 346762b9..91df66bb 100644 --- a/docs/contribute/source/os/sel4.md +++ b/docs/contribute/source/os/sel4.md @@ -23,8 +23,8 @@ This demo is based on the seL4 simulator on Linux. Hardware: -- at least 4GB of RAM -- at least 20GB of disk storage (the wasmedge_sel4 directory will contain over 11 GB of data after the following installation completes) +- at least 4GB of RAM +- at least 20GB of disk storage (the wasmedge_sel4 directory will contain over 11 GB of data after the following installation completes) Software: Ubuntu 20.04 with dev tools packages (ep. Python) installed. We recommend the [GitHub Actions Ubuntu 20.04 VM](https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md) (See a list of [installed apt packages](https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md#installed-apt-packages)). Or, you could use our Docker image (see the [Dockerfile](https://github.com/second-state/wasmedge-seL4/blob/main/docs/Dockerfile.sel4_build)). diff --git a/docs/contribute/source/plugin/_category_.json b/docs/contribute/source/plugin/_category_.json index b1220477..a1ee81d9 100644 --- a/docs/contribute/source/plugin/_category_.json +++ b/docs/contribute/source/plugin/_category_.json @@ -1,8 +1,8 @@ { - "label": "WasmEdge Plugin", - "position": 4, - "link": { - "type": "generated-index", - "description": "In this chapter, we will learn how to build WasmEdge Plugins from source" - } + "label": "WasmEdge Plugin", + "position": 4, + "link": { + "type": "generated-index", + "description": "In this chapter, we will learn how to build WasmEdge Plugins from source" + } } diff --git a/docs/develop/build-and-run/_category_.json b/docs/develop/build-and-run/_category_.json index 1d363972..e4898c85 100644 --- a/docs/develop/build-and-run/_category_.json +++ b/docs/develop/build-and-run/_category_.json @@ -1,8 +1,8 @@ { - "label": "Building and running WasmEdge apps", - "position": 3, - "link": { - "type": "generated-index", - "description": "In this chapter, we will discuss WasmEdge CLIs and how to leverage Docker + Wasm to run build, share, and run your Wasm apps." - } + "label": "Building and running WasmEdge apps", + "position": 3, + "link": { + "type": "generated-index", + "description": "In this chapter, we will discuss WasmEdge CLIs and how to leverage Docker + Wasm to run build, share, and run your Wasm apps." + } } diff --git a/docs/develop/build-and-run/aot.md b/docs/develop/build-and-run/aot.md index 2e9e1ec2..07a04ccd 100644 --- a/docs/develop/build-and-run/aot.md +++ b/docs/develop/build-and-run/aot.md @@ -119,30 +119,30 @@ The options of the `wasmedgec` CLI tool are as follows. 2. `-h|--help`: Show the help messages. Will ignore other arguments below. 3. (Optional) `--dump`: Dump the LLVM IR to `wasm.ll` and `wasm-opt.ll`. 4. (Optional) `--interruptible`: Generate the binary which supports interruptible execution. - - By default, the AOT-compiled WASM not supports [interruptions in asynchronous executions]. + - By default, the AOT-compiled WASM not supports [interruptions in asynchronous executions]. 5. (Optional) Statistics information: - - By default, the AOT-compiled WASM not supports all statistics even if the options are turned on when running the `wasmedge` tool. - - Use `--enable-time-measuring` to generate code for enabling the statistics of time measuring in execution. - - Use `--enable-gas-measuring` to generate code for enabling the statistics of gas measuring in execution. - - Use `--enable-instruction-count` to generate code for enabling the statistics of counting WebAssembly instructions. - - Or use `--enable-all-statistics` to generate code for enabling all of the statistics. + - By default, the AOT-compiled WASM not supports all statistics even if the options are turned on when running the `wasmedge` tool. + - Use `--enable-time-measuring` to generate code for enabling the statistics of time measuring in execution. + - Use `--enable-gas-measuring` to generate code for enabling the statistics of gas measuring in execution. + - Use `--enable-instruction-count` to generate code for enabling the statistics of counting WebAssembly instructions. + - Or use `--enable-all-statistics` to generate code for enabling all of the statistics. 6. (Optional) `--generic-binary`: Generate the generic binary of the current host CPU architecture. 7. (Optional) WebAssembly proposals: - - Use `--disable-import-export-mut-globals` to disable the [Import/Export of Mutable Globals](https://github.com/WebAssembly/mutable-global) proposal (Default `ON`). - - Use `--disable-non-trap-float-to-int` to disable the [Non-Trapping Float-to-Int Conversions](https://github.com/WebAssembly/nontrapping-float-to-int-conversions) proposal (Default `ON`). - - Use `--disable-sign-extension-operators` to disable the [Sign-Extension Operators](https://github.com/WebAssembly/sign-extension-ops) proposal (Default `ON`). - - Use `--disable-multi-value` to disable the [Multi-value](https://github.com/WebAssembly/multi-value) proposal (Default `ON`). - - Use `--disable-bulk-memory` to disable the [Bulk Memory Operations](https://github.com/WebAssembly/bulk-memory-operations) proposal (Default `ON`). - - Use `--disable-reference-types` to disable the [Reference Types](https://github.com/WebAssembly/reference-types) proposal (Default `ON`). - - Use `--disable-simd` to disable the [Fixed-width SIMD](https://github.com/webassembly/simd) proposal (Default `ON`). - - Use `--enable-multi-memory` to enable the [Multiple Memories](https://github.com/WebAssembly/multi-memory) proposal (Default `OFF`). - - Use `--enable-tail-call` to enable the [Tail call](https://github.com/WebAssembly/tail-call) proposal (Default `OFF`). - - Use `--enable-extended-const` to enable the [Extended Constant Expressions](https://github.com/WebAssembly/extended-const) proposal (Default `OFF`). - - Use `--enable-threads` to enable the [Threads](https://github.com/webassembly/threads) proposal (Default `OFF`). - - Use `--enable-all` to enable ALL proposals above. + - Use `--disable-import-export-mut-globals` to disable the [Import/Export of Mutable Globals](https://github.com/WebAssembly/mutable-global) proposal (Default `ON`). + - Use `--disable-non-trap-float-to-int` to disable the [Non-Trapping Float-to-Int Conversions](https://github.com/WebAssembly/nontrapping-float-to-int-conversions) proposal (Default `ON`). + - Use `--disable-sign-extension-operators` to disable the [Sign-Extension Operators](https://github.com/WebAssembly/sign-extension-ops) proposal (Default `ON`). + - Use `--disable-multi-value` to disable the [Multi-value](https://github.com/WebAssembly/multi-value) proposal (Default `ON`). + - Use `--disable-bulk-memory` to disable the [Bulk Memory Operations](https://github.com/WebAssembly/bulk-memory-operations) proposal (Default `ON`). + - Use `--disable-reference-types` to disable the [Reference Types](https://github.com/WebAssembly/reference-types) proposal (Default `ON`). + - Use `--disable-simd` to disable the [Fixed-width SIMD](https://github.com/webassembly/simd) proposal (Default `ON`). + - Use `--enable-multi-memory` to enable the [Multiple Memories](https://github.com/WebAssembly/multi-memory) proposal (Default `OFF`). + - Use `--enable-tail-call` to enable the [Tail call](https://github.com/WebAssembly/tail-call) proposal (Default `OFF`). + - Use `--enable-extended-const` to enable the [Extended Constant Expressions](https://github.com/WebAssembly/extended-const) proposal (Default `OFF`). + - Use `--enable-threads` to enable the [Threads](https://github.com/webassembly/threads) proposal (Default `OFF`). + - Use `--enable-all` to enable ALL proposals above. 8. (Optional) `--optimize`: Select the LLVM optimization level. - - Use `--optimize LEVEL` to set the optimization level. The `LEVEL` should be one of `0`, `1`, `2`, `3`, `s`, or `z`. - - The default value will be `2`, which means `O2`. + - Use `--optimize LEVEL` to set the optimization level. The `LEVEL` should be one of `0`, `1`, `2`, `3`, `s`, or `z`. + - The default value will be `2`, which means `O2`. 9. Input WASM file (`/path/to/wasm/file`). 10. Output path (`/path/to/output/file`). - By default, the `wasmedgec` tool will output the universal Wasm format, which embeds a native code section into the Wasm file. diff --git a/docs/develop/build-and-run/cli.md b/docs/develop/build-and-run/cli.md index 478788ab..e6e3ba04 100644 --- a/docs/develop/build-and-run/cli.md +++ b/docs/develop/build-and-run/cli.md @@ -46,35 +46,35 @@ The options of the `wasmedge` CLI tool are as follows: 1. `-v|--version`: Show the version information. Will ignore other arguments below. 2. `-h|--help`: Show the help messages. Will ignore other arguments below. 3. (Optional) `--reactor`: Enable the reactor mode. - - In the reactor mode, `wasmedge` runs a specified function exported by the WebAssembly program. - - WasmEdge will execute the function which name should be given in `ARG[0]`. - - If there's an exported function which names `_initialize`, the function will be executed with the empty parameter at first. + - In the reactor mode, `wasmedge` runs a specified function exported by the WebAssembly program. + - WasmEdge will execute the function which name should be given in `ARG[0]`. + - If there's an exported function which names `_initialize`, the function will be executed with the empty parameter at first. 4. (Optional) `--dir`: Bind directories into WASI virtual filesystem. - - Use `--dir guest_path:host_path` to bind the host path into the guest path in WASI virtual system. + - Use `--dir guest_path:host_path` to bind the host path into the guest path in WASI virtual system. 5. (Optional) `--env`: Assign the environment variables in WASI. - - Use `--env ENV_NAME=VALUE` to assign the environment variable. + - Use `--env ENV_NAME=VALUE` to assign the environment variable. 6. (Optional) Statistics information: - - Use `--enable-time-measuring` to show the execution time. - - Use `--enable-gas-measuring` to show the amount of used gas. - - Use `--enable-instruction-count` to display the number of executed instructions. - - Or use `--enable-all-statistics` to enable all of the statistics options. + - Use `--enable-time-measuring` to show the execution time. + - Use `--enable-gas-measuring` to show the amount of used gas. + - Use `--enable-instruction-count` to display the number of executed instructions. + - Or use `--enable-all-statistics` to enable all of the statistics options. 7. (Optional) Resource limitations: - - Use `--time-limit MILLISECOND_TIME` to limit the execution time. Default value is `0` which specifies no limitation. - - Use `--gas-limit GAS_LIMIT` to limit the execution cost. - - Use `--memory-page-limit PAGE_COUNT` to set the limitation of pages(as size of 64 KiB) in every memory instance. + - Use `--time-limit MILLISECOND_TIME` to limit the execution time. Default value is `0` which specifies no limitation. + - Use `--gas-limit GAS_LIMIT` to limit the execution cost. + - Use `--memory-page-limit PAGE_COUNT` to set the limitation of pages(as size of 64 KiB) in every memory instance. 8. (Optional) WebAssembly proposals: - - Use `--disable-import-export-mut-globals` to disable the [Import/Export of Mutable Globals](https://github.com/WebAssembly/mutable-global) proposal (Default `ON`). - - Use `--disable-non-trap-float-to-int` to disable the [Non-Trapping Float-to-Int Conversions](https://github.com/WebAssembly/nontrapping-float-to-int-conversions) proposal (Default `ON`). - - Use `--disable-sign-extension-operators` to disable the [Sign-Extension Operators](https://github.com/WebAssembly/sign-extension-ops) proposal (Default `ON`). - - Use `--disable-multi-value` to disable the [Multi-value](https://github.com/WebAssembly/multi-value) proposal (Default `ON`). - - Use `--disable-bulk-memory` to disable the [Bulk Memory Operations](https://github.com/WebAssembly/bulk-memory-operations) proposal (Default `ON`). - - Use `--disable-reference-types` to disable the [Reference Types](https://github.com/WebAssembly/reference-types) proposal (Default `ON`). - - Use `--disable-simd` to disable the [Fixed-width SIMD](https://github.com/webassembly/simd) proposal (Default `ON`). - - Use `--enable-multi-memory` to enable the [Multiple Memories](https://github.com/WebAssembly/multi-memory) proposal (Default `OFF`). - - Use `--enable-tail-call` to enable the [Tail call](https://github.com/WebAssembly/tail-call) proposal (Default `OFF`). - - Use `--enable-extended-const` to enable the [Extended Constant Expressions](https://github.com/WebAssembly/extended-const) proposal (Default `OFF`). - - Use `--enable-threads` to enable the [Threads](https://github.com/webassembly/threads) proposal (Default `OFF`). - - Use `--enable-all` to enable ALL proposals above. + - Use `--disable-import-export-mut-globals` to disable the [Import/Export of Mutable Globals](https://github.com/WebAssembly/mutable-global) proposal (Default `ON`). + - Use `--disable-non-trap-float-to-int` to disable the [Non-Trapping Float-to-Int Conversions](https://github.com/WebAssembly/nontrapping-float-to-int-conversions) proposal (Default `ON`). + - Use `--disable-sign-extension-operators` to disable the [Sign-Extension Operators](https://github.com/WebAssembly/sign-extension-ops) proposal (Default `ON`). + - Use `--disable-multi-value` to disable the [Multi-value](https://github.com/WebAssembly/multi-value) proposal (Default `ON`). + - Use `--disable-bulk-memory` to disable the [Bulk Memory Operations](https://github.com/WebAssembly/bulk-memory-operations) proposal (Default `ON`). + - Use `--disable-reference-types` to disable the [Reference Types](https://github.com/WebAssembly/reference-types) proposal (Default `ON`). + - Use `--disable-simd` to disable the [Fixed-width SIMD](https://github.com/webassembly/simd) proposal (Default `ON`). + - Use `--enable-multi-memory` to enable the [Multiple Memories](https://github.com/WebAssembly/multi-memory) proposal (Default `OFF`). + - Use `--enable-tail-call` to enable the [Tail call](https://github.com/WebAssembly/tail-call) proposal (Default `OFF`). + - Use `--enable-extended-const` to enable the [Extended Constant Expressions](https://github.com/WebAssembly/extended-const) proposal (Default `OFF`). + - Use `--enable-threads` to enable the [Threads](https://github.com/webassembly/threads) proposal (Default `OFF`). + - Use `--enable-all` to enable ALL proposals above. 9. WASM file (`/path/to/wasm/file`). 10. (Optional) `ARG` command line arguments array. - In reactor mode, the first argument will be the function name, and the arguments after `ARG[0]` will be parameters of wasm function `ARG[0]`. diff --git a/docs/develop/build-and-run/docker_wasm.md b/docs/develop/build-and-run/docker_wasm.md index c22fb3de..75ce260c 100644 --- a/docs/develop/build-and-run/docker_wasm.md +++ b/docs/develop/build-and-run/docker_wasm.md @@ -196,28 +196,28 @@ There is a [docker-compose.yml](https://github.com/second-state/microservice-rus ```yaml services: - client: - image: nginx:alpine - ports: - - 8090:80 - volumes: - - ./client:/usr/share/nginx/html - server: - image: demo-microservice - platform: wasi/wasm - build: - context: . - ports: - - 8080:8080 - environment: - DATABASE_URL: mysql://root:whalehello@db:3306/mysql - RUST_BACKTRACE: full - restart: unless-stopped - runtime: io.containerd.wasmedge.v1 - db: - image: mariadb:10.9 - environment: - MYSQL_ROOT_PASSWORD: whalehello + client: + image: nginx:alpine + ports: + - 8090:80 + volumes: + - ./client:/usr/share/nginx/html + server: + image: demo-microservice + platform: wasi/wasm + build: + context: . + ports: + - 8080:8080 + environment: + DATABASE_URL: mysql://root:whalehello@db:3306/mysql + RUST_BACKTRACE: full + restart: unless-stopped + runtime: io.containerd.wasmedge.v1 + db: + image: mariadb:10.9 + environment: + MYSQL_ROOT_PASSWORD: whalehello ``` - The `client` container is an Nginx web server diff --git a/docs/develop/c/_category_.json b/docs/develop/c/_category_.json index 78a09085..0164f010 100644 --- a/docs/develop/c/_category_.json +++ b/docs/develop/c/_category_.json @@ -1,8 +1,8 @@ { - "label": "Develop Wasm Apps in C/C++", - "position": 6, - "link": { - "type": "generated-index", - "description": "In this chapter, we will learn how to create Wasm apps in C/C++." - } + "label": "Develop Wasm Apps in C/C++", + "position": 6, + "link": { + "type": "generated-index", + "description": "In this chapter, we will learn how to create Wasm apps in C/C++." + } } diff --git a/docs/develop/deploy/_category_.json b/docs/develop/deploy/_category_.json index 7597f9d6..d197597f 100644 --- a/docs/develop/deploy/_category_.json +++ b/docs/develop/deploy/_category_.json @@ -1,8 +1,8 @@ { - "label": "Deploy WasmEdge apps in Kubernetes", - "position": 8, - "link": { - "type": "generated-index", - "description": "In this chapter, we will introduce how to depoloy Wasm app using the exisiting container toolings." - } + "label": "Deploy WasmEdge apps in Kubernetes", + "position": 8, + "link": { + "type": "generated-index", + "description": "In this chapter, we will introduce how to depoloy Wasm app using the exisiting container toolings." + } } diff --git a/docs/develop/deploy/cri-runtime/_category_.json b/docs/develop/deploy/cri-runtime/_category_.json index 5f5618c4..d7375102 100644 --- a/docs/develop/deploy/cri-runtime/_category_.json +++ b/docs/develop/deploy/cri-runtime/_category_.json @@ -1,8 +1,8 @@ { - "label": "High level runtime support", - "position": 6, - "link": { - "type": "generated-index", - "description": "In this chapter, we will introduce integrations between WasmEdge and high level runtimes,like containerd and CRI-O." - } + "label": "High level runtime support", + "position": 6, + "link": { + "type": "generated-index", + "description": "In this chapter, we will introduce integrations between WasmEdge and high level runtimes,like containerd and CRI-O." + } } diff --git a/docs/develop/deploy/cri-runtime/containerd.md b/docs/develop/deploy/cri-runtime/containerd.md index 475a15b2..089d1556 100644 --- a/docs/develop/deploy/cri-runtime/containerd.md +++ b/docs/develop/deploy/cri-runtime/containerd.md @@ -17,36 +17,36 @@ The containerd-shim [runwasi](https://github.com/containerd/runwasi/) project su 2. Install WasmEdge - Run the following command lines to install WasmEdge. + Run the following command lines to install WasmEdge. - ```bash - curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash - sudo -E sh -c 'echo "$HOME/.wasmedge/lib" > /etc/ld.so.conf.d/libwasmedge.conf' - sudo ldconfig - ``` + ```bash + curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash + sudo -E sh -c 'echo "$HOME/.wasmedge/lib" > /etc/ld.so.conf.d/libwasmedge.conf' + sudo ldconfig + ``` 3. Download the runwasi project and test - After that, run the following command line to download the runwasi project and test. + After that, run the following command line to download the runwasi project and test. - ```bash - $ git clone https://github.com/second-state/runwasi.git - $ cd runwasi - $ cargo test -- --nocapture - # the output should be the following connent. - running 3 tests - test instance::tests::test_maybe_open_stdio ... ok - test instance::wasitest::test_delete_after_create ... ok - test instance::wasitest::test_wasi ... ok - ``` + ```bash + $ git clone https://github.com/second-state/runwasi.git + $ cd runwasi + $ cargo test -- --nocapture + # the output should be the following connent. + running 3 tests + test instance::tests::test_maybe_open_stdio ... ok + test instance::wasitest::test_delete_after_create ... ok + test instance::wasitest::test_wasi ... ok + ``` 4. Build the wasmedge-containerd-shim - ```bash - rustup default nightly - make build FEATURES=wasmedge - sudo make install RUNTIME=wasmedge - ``` + ```bash + rustup default nightly + make build FEATURES=wasmedge + sudo make install RUNTIME=wasmedge + ``` ## Run a simple Wasi app diff --git a/docs/develop/deploy/kubernetes/_category_.json b/docs/develop/deploy/kubernetes/_category_.json index 08e44877..771170f8 100644 --- a/docs/develop/deploy/kubernetes/_category_.json +++ b/docs/develop/deploy/kubernetes/_category_.json @@ -1,8 +1,8 @@ { - "label": "Use Cases", - "position": 6, - "link": { - "type": "generated-index", - "description": "In this chapter, we will introduce how to use K8s variations to depoloy Wasm app." - } + "label": "Use Cases", + "position": 6, + "link": { + "type": "generated-index", + "description": "In this chapter, we will introduce how to use K8s variations to depoloy Wasm app." + } } diff --git a/docs/develop/deploy/kubernetes/kubernetes-cri-o.md b/docs/develop/deploy/kubernetes/kubernetes-cri-o.md index e5e4791d..d613fc34 100644 --- a/docs/develop/deploy/kubernetes/kubernetes-cri-o.md +++ b/docs/develop/deploy/kubernetes/kubernetes-cri-o.md @@ -107,24 +107,24 @@ pod "wasi-demo-2" deleted apiVersion: v1 kind: Pod metadata: - name: http-server - namespace: default - annotations: - module.wasm.image/variant: compat-smart + name: http-server + namespace: default + annotations: + module.wasm.image/variant: compat-smart spec: - hostNetwork: true - containers: - - name: http-server - image: wasmedge/example-wasi-http:latest - command: ['/http_server.wasm'] - ports: - - containerPort: 1234 - protocol: TCP - livenessProbe: - tcpSocket: - port: 1234 - initialDelaySeconds: 3 - periodSeconds: 30 + hostNetwork: true + containers: + - name: http-server + image: wasmedge/example-wasi-http:latest + command: ['/http_server.wasm'] + ports: + - containerPort: 1234 + protocol: TCP + livenessProbe: + tcpSocket: + port: 1234 + initialDelaySeconds: 3 + periodSeconds: 30 ``` Run the WebAssembly-based image from Docker Hub using the above `k8s-http_server.yaml` file in the Kubernetes cluster as follows. diff --git a/docs/develop/deploy/oci-runtime/_category_.json b/docs/develop/deploy/oci-runtime/_category_.json index d411b440..3f736f91 100644 --- a/docs/develop/deploy/oci-runtime/_category_.json +++ b/docs/develop/deploy/oci-runtime/_category_.json @@ -1,8 +1,8 @@ { - "label": "Low level runtime support", - "position": 5, - "link": { - "type": "generated-index", - "description": "In this chapter, we will introduce integrations between WasmEdge and low level runtimes,like containerd and crun." - } + "label": "Low level runtime support", + "position": 5, + "link": { + "type": "generated-index", + "description": "In this chapter, we will introduce integrations between WasmEdge and low level runtimes,like containerd and crun." + } } diff --git a/docs/develop/deploy/oci-runtime/youki.md b/docs/develop/deploy/oci-runtime/youki.md index 2cee219a..e93f677b 100644 --- a/docs/develop/deploy/oci-runtime/youki.md +++ b/docs/develop/deploy/oci-runtime/youki.md @@ -10,49 +10,49 @@ youki is an OCI container runtime written in Rust. youki has WasmEdge baked in. 1. Build and configure youki with WasmEdge support - We will use ubuntu 20.04 as an example. For other OS, please [see here](https://containers.github.io/youki/user/basic_setup.html). - - Run the following command line to build and install youki on your machine - - ```bash - $ sudo apt-get install \ - pkg-config \ - libsystemd-dev \ - libdbus-glib-1-dev \ - build-essential \ - libelf-dev \ - libseccomp-dev \ - libclang-dev - ``` - - Next, configure, build, and install a `youki` binary with WasmEdge support. - - ```bash - git clone https://github.com/containers/youki.git - go into the cloned directory - cd youki - make youki-dev - ./youki -h - ./scripts/build.sh -o . -r -f wasm-wasmedge - export LD_LIBRARY_PATH=$HOME/.wasmedge/lib - ``` + We will use ubuntu 20.04 as an example. For other OS, please [see here](https://containers.github.io/youki/user/basic_setup.html). + + Run the following command line to build and install youki on your machine + + ```bash + $ sudo apt-get install \ + pkg-config \ + libsystemd-dev \ + libdbus-glib-1-dev \ + build-essential \ + libelf-dev \ + libseccomp-dev \ + libclang-dev + ``` + + Next, configure, build, and install a `youki` binary with WasmEdge support. + + ```bash + git clone https://github.com/containers/youki.git + go into the cloned directory + cd youki + make youki-dev + ./youki -h + ./scripts/build.sh -o . -r -f wasm-wasmedge + export LD_LIBRARY_PATH=$HOME/.wasmedge/lib + ``` 2. [Install WasmEdge](../../build-and-run/install) 3. Configure the `config.json` from youki to run Wasm modules. - To run a webassembly module with youki, the `config.json` has to include either runc.oci.handler or module.wasm.image/variant=compat". It also needs you to specify a valid .wasm (webassembly binary) or .wat (webassembly test) module as entrypoint for the container. - - ```json - "ociVersion": "1.0.2-dev", - "annotations": { - "run.oci.handler": "wasm" - }, - "process": { - "args": [ - "wasi_example_main.wasm", - ], - ``` + To run a webassembly module with youki, the `config.json` has to include either runc.oci.handler or module.wasm.image/variant=compat". It also needs you to specify a valid .wasm (webassembly binary) or .wat (webassembly test) module as entrypoint for the container. + + ```json + "ociVersion": "1.0.2-dev", + "annotations": { + "run.oci.handler": "wasm" + }, + "process": { + "args": [ + "wasi_example_main.wasm", + ], + ``` ## Run a simple WebAssembly app diff --git a/docs/develop/deploy/podman.md b/docs/develop/deploy/podman.md index 842795ab..ae1a9925 100644 --- a/docs/develop/deploy/podman.md +++ b/docs/develop/deploy/podman.md @@ -31,39 +31,39 @@ That's it. 1. Install and configure Podman - Use the following commands to install podman on your system. Here I use Ubuntu as an example. For more different types of podman, please refer to [Podman's installation instruction](https://podman.io/getting-started/installation). + Use the following commands to install podman on your system. Here I use Ubuntu as an example. For more different types of podman, please refer to [Podman's installation instruction](https://podman.io/getting-started/installation). - ```bash - sudo apt-get -y update - sudo apt-get -y install podman - ``` + ```bash + sudo apt-get -y update + sudo apt-get -y install podman + ``` 2. [Install WasmEdge](../build-and-run/install) 3. Build and configure crun with WasmEdge support - Next, configure and build a `crun` binary with WasmEdge support. - - ```bash - ./autogen.sh - ./configure --with-wasmedge - make - sudo make install - # replace crun (be careful, you may want to do a bakup first) - mv crun $(which crun) - ``` - - Then, you can use `crun -v` to check out if crun is installed successfully. - - ```bash - crun --version - # Output - crun version 1.7.2.0.0.0.26-51af - commit: 51af1448f60b69326cf26e726e14b38fcb253943 - rundir: /run/user/0/crun - spec: 1.0.0 - +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +WASM:wasmedge +YAJL - ``` + Next, configure and build a `crun` binary with WasmEdge support. + + ```bash + ./autogen.sh + ./configure --with-wasmedge + make + sudo make install + # replace crun (be careful, you may want to do a bakup first) + mv crun $(which crun) + ``` + + Then, you can use `crun -v` to check out if crun is installed successfully. + + ```bash + crun --version + # Output + crun version 1.7.2.0.0.0.26-51af + commit: 51af1448f60b69326cf26e726e14b38fcb253943 + rundir: /run/user/0/crun + spec: 1.0.0 + +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +WASM:wasmedge +YAJL + ``` ### Run A simple WASI app diff --git a/docs/develop/deploy/using-wasmedge-in-docker.md b/docs/develop/deploy/using-wasmedge-in-docker.md index 0ee0ee67..df4dbe10 100644 --- a/docs/develop/deploy/using-wasmedge-in-docker.md +++ b/docs/develop/deploy/using-wasmedge-in-docker.md @@ -104,12 +104,12 @@ With WasmEdge QuickJS support for the Node.js API, we can run a lightweight and import { createServer, request, fetch } from 'http'; createServer((req, resp) => { - req.on('data', (body) => { - resp.write('echo:'); - resp.end(body); - }); + req.on('data', (body) => { + resp.write('echo:'); + resp.end(body); + }); }).listen(8001, () => { - print('listen 8001 ...\n'); + print('listen 8001 ...\n'); }); ``` diff --git a/docs/develop/getting-started/_category_.json b/docs/develop/getting-started/_category_.json index 044dba0b..affe9a3b 100644 --- a/docs/develop/getting-started/_category_.json +++ b/docs/develop/getting-started/_category_.json @@ -1,8 +1,8 @@ { - "label": "Getting Started with WasmEdge", - "position": 2, - "link": { - "type": "generated-index", - "description": "In this chapter, we will show you how to get WasmEdge up and running quickly." - } + "label": "Getting Started with WasmEdge", + "position": 2, + "link": { + "type": "generated-index", + "description": "In this chapter, we will show you how to get WasmEdge up and running quickly." + } } diff --git a/docs/develop/go/_category_.json b/docs/develop/go/_category_.json index ad3c25d0..be67498f 100644 --- a/docs/develop/go/_category_.json +++ b/docs/develop/go/_category_.json @@ -1,8 +1,8 @@ { - "label": "Develop Wasm Apps in Go", - "position": 7, - "link": { - "type": "generated-index", - "description": "In this chapter, we will learn how to create Wasm apps in Go." - } + "label": "Develop Wasm Apps in Go", + "position": 7, + "link": { + "type": "generated-index", + "description": "In this chapter, we will learn how to create Wasm apps in Go." + } } diff --git a/docs/develop/javascript/_category_.json b/docs/develop/javascript/_category_.json index 84584be5..a737e4ee 100644 --- a/docs/develop/javascript/_category_.json +++ b/docs/develop/javascript/_category_.json @@ -1,8 +1,8 @@ { - "label": "Develop Wasm Apps in JavaScript", - "position": 5, - "link": { - "type": "generated-index", - "description": "Yes! You could run JavaScript programs in WasmEdge." - } + "label": "Develop Wasm Apps in JavaScript", + "position": 5, + "link": { + "type": "generated-index", + "description": "Yes! You could run JavaScript programs in WasmEdge." + } } diff --git a/docs/develop/javascript/es6.md b/docs/develop/javascript/es6.md index 2e942f3e..27ed1435 100644 --- a/docs/develop/javascript/es6.md +++ b/docs/develop/javascript/es6.md @@ -32,7 +32,7 @@ The [module_def.js](https://github.com/second-state/wasmedge-quickjs/blob/main/e ```javascript function hello() { - console.log('hello from module_def.js'); + console.log('hello from module_def.js'); } export { hello }; @@ -42,8 +42,8 @@ The [module_def_async.js](https://github.com/second-state/wasmedge-quickjs/blob/ ```javascript export async function hello() { - console.log('hello from module_def_async.js'); - return 'module_def_async.js : return value'; + console.log('hello from module_def_async.js'); + return 'module_def_async.js : return value'; } export var something = 'async thing'; @@ -57,9 +57,9 @@ import { hello as module_def_hello } from './module_def.js'; module_def_hello(); var f = async () => { - let { hello, something } = await import('./module_def_async.js'); - await hello(); - console.log('./module_def_async.js `something` is ', something); + let { hello, something } = await import('./module_def_async.js'); + await hello(); + console.log('./module_def_async.js `something` is ', something); }; f(); diff --git a/docs/develop/javascript/hello_world.md b/docs/develop/javascript/hello_world.md index 0c3087b9..66c40007 100644 --- a/docs/develop/javascript/hello_world.md +++ b/docs/develop/javascript/hello_world.md @@ -50,7 +50,7 @@ import * as std from 'std'; args = args.slice(1); print('Hello', ...args); setTimeout(() => { - print('timeout 2s'); + print('timeout 2s'); }, 2000); ``` diff --git a/docs/develop/javascript/modules.md b/docs/develop/javascript/modules.md index 7a076b0b..77ce7375 100644 --- a/docs/develop/javascript/modules.md +++ b/docs/develop/javascript/modules.md @@ -32,7 +32,7 @@ The two JavaScript files in the `modules` directory provide two simple functions ```javascript export function hello_mod_1() { - console.log('hello from "my_mod_1.js"'); + console.log('hello from "my_mod_1.js"'); } ``` @@ -40,7 +40,7 @@ And the [modules/my_mod_2.js](https://github.com/second-state/wasmedge-quickjs/b ```javascript export function hello_mod_2() { - console.log('hello from "my_mod_2.js"'); + console.log('hello from "my_mod_2.js"'); } ``` diff --git a/docs/develop/javascript/networking.md b/docs/develop/javascript/networking.md index b677dc5c..06af9cda 100644 --- a/docs/develop/javascript/networking.md +++ b/docs/develop/javascript/networking.md @@ -32,12 +32,12 @@ The code snippet below shows an async HTTP GET from the `httpbin.org` test serve ```javascript async function test_fetch() { - try { - let r = await fetch('http://httpbin.org/get?id=1'); - print('test_fetch\n', await r.text()); - } catch (e) { - print(e); - } + try { + let r = await fetch('http://httpbin.org/get?id=1'); + print('test_fetch\n', await r.text()); + } catch (e) { + print(e); + } } test_fetch(); ``` @@ -46,15 +46,15 @@ The code snippet below shows how to do an sync HTTP POST to a remote server. ```javascript async function test_fetch_post() { - try { - let r = await fetch('http://httpbin.org/post', { - method: 'post', - body: 'post_body', - }); - print('test_fetch_post\n', await r.text()); - } catch (e) { - print(e); - } + try { + let r = await fetch('http://httpbin.org/post', { + method: 'post', + body: 'post_body', + }); + print('test_fetch_post\n', await r.text()); + } catch (e) { + print(e); + } } test_fetch_post(); ``` @@ -63,16 +63,16 @@ An async HTTP PUT request is as follows. ```javascript async function test_fetch_put() { - try { - let r = await fetch('http://httpbin.org/put', { - method: 'put', - body: JSON.stringify({ a: 1 }), - headers: { 'Context-type': 'application/json' }, - }); - print('test_fetch_put\n', await r.text()); - } catch (e) { - print(e); - } + try { + let r = await fetch('http://httpbin.org/put', { + method: 'put', + body: JSON.stringify({ a: 1 }), + headers: { 'Context-type': 'application/json' }, + }); + print('test_fetch_put\n', await r.text()); + } catch (e) { + print(e); + } } test_fetch_put(); ``` @@ -98,12 +98,12 @@ The JavaScript source code of the HTTP server is as follows. import { createServer, request, fetch } from 'http'; createServer((req, resp) => { - req.on('data', (body) => { - resp.write('echo:'); - resp.end(body); - }); + req.on('data', (body) => { + resp.write('echo:'); + resp.end(body); + }); }).listen(8001, () => { - print('listen 8001 ...\n'); + print('listen 8001 ...\n'); }); ``` @@ -126,16 +126,16 @@ import * as net from 'wasi_net'; import { TextDecoder } from 'util'; async function server_start() { - print('listen 8000 ...'); - try { - let s = new net.WasiTcpServer(8000); - for (var i = 0; i < 100; i++) { - let cs = await s.accept(); - handle_client(cs); - } - } catch (e) { - print('server accept error:', e); + print('listen 8000 ...'); + try { + let s = new net.WasiTcpServer(8000); + for (var i = 0; i < 100; i++) { + let cs = await s.accept(); + handle_client(cs); } + } catch (e) { + print('server accept error:', e); + } } server_start(); @@ -145,21 +145,21 @@ The `handle_client()` function contains the logic on how to process and respond ```javascript async function handle_client(cs) { - print('server accept:', cs.peer()); - try { - while (true) { - let d = await cs.read(); - if (d == undefined || d.byteLength <= 0) { - break; - } - let s = new TextDecoder().decode(d); - print('server recv:', s); - cs.write('echo:' + s); - } - } catch (e) { - print('server handle_client error:', e); + print('server accept:', cs.peer()); + try { + while (true) { + let d = await cs.read(); + if (d == undefined || d.byteLength <= 0) { + break; + } + let s = new TextDecoder().decode(d); + print('server recv:', s); + cs.write('echo:' + s); } - print('server: conn close'); + } catch (e) { + print('server handle_client error:', e); + } + print('server: conn close'); } ``` @@ -167,18 +167,18 @@ The TCP client uses WasmEdge's `WasiTcpConn` API to send in a request and receiv ```javascript async function connect_test() { - try { - let ss = await net.WasiTcpConn.connect('127.0.0.1:8000'); - ss.write('hello'); - let msg = (await ss.read()) || ''; - print('client recv:', new TextDecoder().decode(msg)); - } catch (e) { - print('client catch:', e); - } finally { - nextTick(() => { - exit(0); - }); - } + try { + let ss = await net.WasiTcpConn.connect('127.0.0.1:8000'); + ss.write('hello'); + let msg = (await ss.read()) || ''; + print('client recv:', new TextDecoder().decode(msg)); + } catch (e) { + print('client catch:', e); + } finally { + nextTick(() => { + exit(0); + }); + } } connect_test(); diff --git a/docs/develop/javascript/npm.md b/docs/develop/javascript/npm.md index 24c1dee0..958cbfea 100644 --- a/docs/develop/javascript/npm.md +++ b/docs/develop/javascript/npm.md @@ -57,31 +57,31 @@ const builtins = require('rollup-plugin-node-builtins'); const plugin_async = require('rollup-plugin-async'); const babelOptions = { - presets: ['@babel/preset-react'], + presets: ['@babel/preset-react'], }; module.exports = [ - { - input: './npm_main.js', - output: { - inlineDynamicImports: true, - file: 'dist/npm_main.mjs', - format: 'esm', - }, - external: ['process', 'wasi_net', 'std'], - plugins: [ - plugin_async(), - nodeResolve(), - commonjs({ ignoreDynamicRequires: false }), - babel(babelOptions), - globals(), - builtins(), - replace({ - 'process.env.NODE_ENV': JSON.stringify('production'), - 'process.env.NODE_DEBUG': JSON.stringify(''), - }), - ], + { + input: './npm_main.js', + output: { + inlineDynamicImports: true, + file: 'dist/npm_main.mjs', + format: 'esm', }, + external: ['process', 'wasi_net', 'std'], + plugins: [ + plugin_async(), + nodeResolve(), + commonjs({ ignoreDynamicRequires: false }), + babel(babelOptions), + globals(), + builtins(), + replace({ + 'process.env.NODE_ENV': JSON.stringify('production'), + 'process.env.NODE_DEBUG': JSON.stringify(''), + }), + ], + }, ]; ``` @@ -89,27 +89,27 @@ The [package.json](https://github.com/second-state/wasmedge-quickjs/blob/main/ex ```json { - "dependencies": { - "mathjs": "^9.5.1", - "md5": "^2.3.0" - }, - "devDependencies": { - "@babel/core": "^7.16.5", - "@babel/preset-env": "^7.16.5", - "@babel/preset-react": "^7.16.5", - "@rollup/plugin-babel": "^5.3.0", - "@rollup/plugin-commonjs": "^21.0.1", - "@rollup/plugin-node-resolve": "^7.1.3", - "@rollup/plugin-replace": "^3.0.0", - "rollup": "^2.60.1", - "rollup-plugin-babel": "^4.4.0", - "rollup-plugin-node-builtins": "^2.1.2", - "rollup-plugin-node-globals": "^1.4.0", - "rollup-plugin-async": "^1.2.0" - }, - "scripts": { - "build": "rollup -c rollup.config.js" - } + "dependencies": { + "mathjs": "^9.5.1", + "md5": "^2.3.0" + }, + "devDependencies": { + "@babel/core": "^7.16.5", + "@babel/preset-env": "^7.16.5", + "@babel/preset-react": "^7.16.5", + "@rollup/plugin-babel": "^5.3.0", + "@rollup/plugin-commonjs": "^21.0.1", + "@rollup/plugin-node-resolve": "^7.1.3", + "@rollup/plugin-replace": "^3.0.0", + "rollup": "^2.60.1", + "rollup-plugin-babel": "^4.4.0", + "rollup-plugin-node-builtins": "^2.1.2", + "rollup-plugin-node-globals": "^1.4.0", + "rollup-plugin-async": "^1.2.0" + }, + "scripts": { + "build": "rollup -c rollup.config.js" + } } ``` diff --git a/docs/develop/javascript/ssr.md b/docs/develop/javascript/ssr.md index 5c4415ba..633f487b 100644 --- a/docs/develop/javascript/ssr.md +++ b/docs/develop/javascript/ssr.md @@ -27,36 +27,36 @@ import React, { Suspense } from 'react'; import * as LazyPage from './LazyPage.jsx'; async function sleep(ms) { - return new Promise((r, _) => { - setTimeout(() => r(), ms); - }); + return new Promise((r, _) => { + setTimeout(() => r(), ms); + }); } async function loadLazyPage() { - await sleep(2000); - return LazyPage; + await sleep(2000); + return LazyPage; } class LazyHome extends React.Component { - render() { - let LazyPage1 = React.lazy(() => loadLazyPage()); - return ( - - - - Title - - -
-
This is LazyHome
- loading...
}> - - - - - - ); - } + render() { + let LazyPage1 = React.lazy(() => loadLazyPage()); + return ( + + + + Title + + +
+
This is LazyHome
+ loading...
}> + + + + + + ); + } } export default LazyHome; @@ -68,13 +68,13 @@ The [LazyPage.jsx](https://github.com/second-state/wasmedge-quickjs/blob/main/ex import React from 'react'; class LazyPage extends React.Component { - render() { - return ( -
-
This is lazy page
-
- ); - } + render() { + return ( +
+
This is lazy page
+
+ ); + } } export default LazyPage; @@ -90,10 +90,10 @@ import { createServer } from 'http'; import LazyHome from './component/LazyHome.jsx'; createServer((req, res) => { - res.setHeader('Content-type', 'text/html; charset=utf-8'); - renderToPipeableStream().pipe(res); + res.setHeader('Content-type', 'text/html; charset=utf-8'); + renderToPipeableStream().pipe(res); }).listen(8001, () => { - print('listen 8001...'); + print('listen 8001...'); }); ``` @@ -153,67 +153,67 @@ import App from './component/App.js'; import { DataProvider } from './component/data.js'; let assets = { - 'main.js': '/main.js', - 'main.css': '/main.css', + 'main.js': '/main.js', + 'main.css': '/main.css', }; const css = std.loadFile('./public/main.css'); function createServerData() { - let done = false; - let promise = null; - return { - read() { - if (done) { - return; - } - if (promise) { - throw promise; - } - promise = new Promise((resolve) => { - setTimeout(() => { - done = true; - promise = null; - resolve(); - }, 2000); - }); - throw promise; - }, - }; + let done = false; + let promise = null; + return { + read() { + if (done) { + return; + } + if (promise) { + throw promise; + } + promise = new Promise((resolve) => { + setTimeout(() => { + done = true; + promise = null; + resolve(); + }, 2000); + }); + throw promise; + }, + }; } createServer((req, res) => { - print(req.url); - if (req.url == '/main.css') { - res.setHeader('Content-Type', 'text/css; charset=utf-8'); - res.end(css); - } else if (req.url == '/favicon.ico') { - res.end(); - } else { - res.setHeader('Content-type', 'text/html'); - - res.on('error', (e) => { - print('res error', e); - }); - let data = createServerData(); - print('createServerData'); - - const stream = renderToPipeableStream( - - - , - { - onShellReady: () => { - stream.pipe(res); - }, - onShellError: (e) => { - print('onShellError:', e); - }, - }, - ); - } + print(req.url); + if (req.url == '/main.css') { + res.setHeader('Content-Type', 'text/css; charset=utf-8'); + res.end(css); + } else if (req.url == '/favicon.ico') { + res.end(); + } else { + res.setHeader('Content-type', 'text/html'); + + res.on('error', (e) => { + print('res error', e); + }); + let data = createServerData(); + print('createServerData'); + + const stream = renderToPipeableStream( + + + , + { + onShellReady: () => { + stream.pipe(res); + }, + onShellError: (e) => { + print('onShellError:', e); + }, + }, + ); + } }).listen(8002, () => { - print('listen 8002...'); + print('listen 8002...'); }); ``` @@ -326,10 +326,10 @@ import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.hydrate( - - - , - document.getElementById('root'), + + + , + document.getElementById('root'), ); ``` @@ -364,95 +364,95 @@ import * as net from 'wasi_net'; import App from '../src/App.js'; async function handle_client(cs) { - print('open:', cs.peer()); - let buffer = new http.Buffer(); + print('open:', cs.peer()); + let buffer = new http.Buffer(); - while (true) { - try { - let d = await cs.read(); - if (d == undefined || d.byteLength <= 0) { - return; - } - buffer.append(d); - let req = buffer.parseRequest(); - if (req instanceof http.WasiRequest) { - handle_req(cs, req); - break; - } - } catch (e) { - print(e); - } + while (true) { + try { + let d = await cs.read(); + if (d == undefined || d.byteLength <= 0) { + return; + } + buffer.append(d); + let req = buffer.parseRequest(); + if (req instanceof http.WasiRequest) { + handle_req(cs, req); + break; + } + } catch (e) { + print(e); } - print('end:', cs.peer()); + } + print('end:', cs.peer()); } function enlargeArray(oldArr, newLength) { - let newArr = new Uint8Array(newLength); - oldArr && newArr.set(oldArr, 0); - return newArr; + let newArr = new Uint8Array(newLength); + oldArr && newArr.set(oldArr, 0); + return newArr; } async function handle_req(s, req) { - print('uri:', req.uri); - - let resp = new http.WasiResponse(); - let content = ''; - if (req.uri == '/') { - const app = ReactDOMServer.renderToString(); - content = std.loadFile('./build/index.html'); - content = content.replace( - '
', - `
${app}
`, - ); - } else { - let chunk = 1000; // Chunk size of each reading - let length = 0; // The whole length of the file - let byteArray = null; // File content as Uint8Array - - // Read file into byteArray by chunk - let file = std.open('./build' + req.uri, 'r'); - while (true) { - byteArray = enlargeArray(byteArray, length + chunk); - let readLen = file.read(byteArray.buffer, length, chunk); - length += readLen; - if (readLen < chunk) { - break; - } - } - content = byteArray.slice(0, length).buffer; - file.close(); - } - let contentType = 'text/html; charset=utf-8'; - if (req.uri.endsWith('.css')) { - contentType = 'text/css; charset=utf-8'; - } else if (req.uri.endsWith('.js')) { - contentType = 'text/javascript; charset=utf-8'; - } else if (req.uri.endsWith('.json')) { - contentType = 'text/json; charset=utf-8'; - } else if (req.uri.endsWith('.ico')) { - contentType = 'image/vnd.microsoft.icon'; - } else if (req.uri.endsWith('.png')) { - contentType = 'image/png'; + print('uri:', req.uri); + + let resp = new http.WasiResponse(); + let content = ''; + if (req.uri == '/') { + const app = ReactDOMServer.renderToString(); + content = std.loadFile('./build/index.html'); + content = content.replace( + '
', + `
${app}
`, + ); + } else { + let chunk = 1000; // Chunk size of each reading + let length = 0; // The whole length of the file + let byteArray = null; // File content as Uint8Array + + // Read file into byteArray by chunk + let file = std.open('./build' + req.uri, 'r'); + while (true) { + byteArray = enlargeArray(byteArray, length + chunk); + let readLen = file.read(byteArray.buffer, length, chunk); + length += readLen; + if (readLen < chunk) { + break; + } } - resp.headers = { - 'Content-Type': contentType, - }; + content = byteArray.slice(0, length).buffer; + file.close(); + } + let contentType = 'text/html; charset=utf-8'; + if (req.uri.endsWith('.css')) { + contentType = 'text/css; charset=utf-8'; + } else if (req.uri.endsWith('.js')) { + contentType = 'text/javascript; charset=utf-8'; + } else if (req.uri.endsWith('.json')) { + contentType = 'text/json; charset=utf-8'; + } else if (req.uri.endsWith('.ico')) { + contentType = 'image/vnd.microsoft.icon'; + } else if (req.uri.endsWith('.png')) { + contentType = 'image/png'; + } + resp.headers = { + 'Content-Type': contentType, + }; - let r = resp.encode(content); - s.write(r); + let r = resp.encode(content); + s.write(r); } async function server_start() { - print('listen 8002...'); - try { - let s = new net.WasiTcpServer(8002); - for (var i = 0; ; i++) { - let cs = await s.accept(); - handle_client(cs); - } - } catch (e) { - print(e); + print('listen 8002...'); + try { + let s = new net.WasiTcpServer(8002); + for (var i = 0; ; i++) { + let cs = await s.accept(); + handle_client(cs); } + } catch (e) { + print(e); + } } server_start(); @@ -472,7 +472,7 @@ Create a new Babel configuration file named `.babelrc.json` in the project's roo ```json { - "presets": ["@babel/preset-env", "@babel/preset-react"] + "presets": ["@babel/preset-env", "@babel/preset-react"] } ``` @@ -481,39 +481,39 @@ Create a webpack config for the server that uses Babel Loader to transpile the c ```js const path = require('path'); module.exports = { - entry: './server/index.js', - externals: [ - { wasi_http: 'wasi_http' }, - { wasi_net: 'wasi_net' }, - { std: 'std' }, - ], - output: { - path: path.resolve('server-build'), - filename: 'index.js', - chunkFormat: 'module', - library: { - type: 'module', - }, - }, - experiments: { - outputModule: true, - }, - module: { - rules: [ - { - test: /\.js$/, - use: 'babel-loader', - }, - { - test: /\.css$/, - use: ['css-loader'], - }, - { - test: /\.svg$/, - use: ['svg-url-loader'], - }, - ], + entry: './server/index.js', + externals: [ + { wasi_http: 'wasi_http' }, + { wasi_net: 'wasi_net' }, + { std: 'std' }, + ], + output: { + path: path.resolve('server-build'), + filename: 'index.js', + chunkFormat: 'module', + library: { + type: 'module', }, + }, + experiments: { + outputModule: true, + }, + module: { + rules: [ + { + test: /\.js$/, + use: 'babel-loader', + }, + { + test: /\.css$/, + use: ['css-loader'], + }, + { + test: /\.svg$/, + use: ['svg-url-loader'], + }, + ], + }, }; ``` @@ -583,35 +583,35 @@ const css = require('rollup-plugin-import-css'); const svg = require('rollup-plugin-svg'); const babelOptions = { - babelrc: false, - presets: ['@babel/preset-react'], - babelHelpers: 'bundled', + babelrc: false, + presets: ['@babel/preset-react'], + babelHelpers: 'bundled', }; module.exports = [ - { - input: './server/index.js', - output: { - file: 'server-build/index.js', - format: 'esm', - }, - external: ['std', 'wasi_net', 'wasi_http'], - plugins: [ - plugin_async(), - babel(babelOptions), - nodeResolve({ preferBuiltins: true }), - commonjs({ ignoreDynamicRequires: false }), - css(), - svg({ base64: true }), - globals(), - builtins(), - replace({ - preventAssignment: true, - 'process.env.NODE_ENV': JSON.stringify('production'), - 'process.env.NODE_DEBUG': JSON.stringify(''), - }), - ], + { + input: './server/index.js', + output: { + file: 'server-build/index.js', + format: 'esm', }, + external: ['std', 'wasi_net', 'wasi_http'], + plugins: [ + plugin_async(), + babel(babelOptions), + nodeResolve({ preferBuiltins: true }), + commonjs({ ignoreDynamicRequires: false }), + css(), + svg({ base64: true }), + globals(), + builtins(), + replace({ + preventAssignment: true, + 'process.env.NODE_ENV': JSON.stringify('production'), + 'process.env.NODE_DEBUG': JSON.stringify(''), + }), + ], + }, ]; ``` diff --git a/docs/develop/javascript/tensorflow.md b/docs/develop/javascript/tensorflow.md index 82f39a57..a40c9071 100644 --- a/docs/develop/javascript/tensorflow.md +++ b/docs/develop/javascript/tensorflow.md @@ -41,7 +41,7 @@ let img_rgb = img.to_rgb().resize(192, 192); let rgb_pix = img_rgb.pixels(); let data = fs.readFileSync( - __dirname + '/lite-model_aiy_vision_classifier_food_V1_1.tflite', + __dirname + '/lite-model_aiy_vision_classifier_food_V1_1.tflite', ); let graph = new NnGraph([data.buffer], 'tensorflowlite', 'cpu'); let context = new NnContext(graph); @@ -54,16 +54,16 @@ context.getOutput(0, output_view.buffer); let max = 0; let max_idx = 0; for (var i in output_view) { - let v = output_view[i]; - if (v > max) { - max = v; - max_idx = i; - } + let v = output_view[i]; + if (v > max) { + max = v; + max_idx = i; + } } let label_file = fs.readFileSync( - __dirname + '/aiy_food_V1_labelmap.txt', - 'utf-8', + __dirname + '/aiy_food_V1_labelmap.txt', + 'utf-8', ); let lables = label_file.split(/\r?\n/); diff --git a/docs/develop/rust/_category_.json b/docs/develop/rust/_category_.json index d27abb5a..3ad69ec2 100644 --- a/docs/develop/rust/_category_.json +++ b/docs/develop/rust/_category_.json @@ -1,8 +1,8 @@ { - "label": "Develop Wasm Apps in Rust", - "position": 4, - "link": { - "type": "generated-index", - "description": "Rust is the first class citizen in WebAssembly ecosystem. In this chapter, we will learn how to create Wasm apps in Rust." - } + "label": "Develop Wasm Apps in Rust", + "position": 4, + "link": { + "type": "generated-index", + "description": "Rust is the first class citizen in WebAssembly ecosystem. In this chapter, we will learn how to create Wasm apps in Rust." + } } diff --git a/docs/develop/rust/ai_inference/_category_.json b/docs/develop/rust/ai_inference/_category_.json index c1bf3bbe..5b09d7ba 100644 --- a/docs/develop/rust/ai_inference/_category_.json +++ b/docs/develop/rust/ai_inference/_category_.json @@ -1,8 +1,8 @@ { - "label": "AI Inference", - "position": 6, - "link": { - "type": "generated-index", - "description": "Run AI Inference function based on TensorFlow, OpenVINO, Pytorch, and TensorFlow-lite in WasmEdge." - } + "label": "AI Inference", + "position": 6, + "link": { + "type": "generated-index", + "description": "Run AI Inference function based on TensorFlow, OpenVINO, Pytorch, and TensorFlow-lite in WasmEdge." + } } diff --git a/docs/develop/rust/database/_category_.json b/docs/develop/rust/database/_category_.json index bd228793..86763d76 100644 --- a/docs/develop/rust/database/_category_.json +++ b/docs/develop/rust/database/_category_.json @@ -1,8 +1,8 @@ { - "label": "Database drivers", - "position": 7, - "link": { - "type": "generated-index", - "description": "Connect to databases from Rust apps in WasmEdge." - } + "label": "Database drivers", + "position": 7, + "link": { + "type": "generated-index", + "description": "Connect to databases from Rust apps in WasmEdge." + } } diff --git a/docs/develop/rust/http_service/_category_.json b/docs/develop/rust/http_service/_category_.json index 7d381aa6..8bd75330 100644 --- a/docs/develop/rust/http_service/_category_.json +++ b/docs/develop/rust/http_service/_category_.json @@ -1,8 +1,8 @@ { - "label": "HTTP services", - "position": 4, - "link": { - "type": "generated-index", - "description": "Make HTTP requests and create HTTP servers in WasmEdge." - } + "label": "HTTP services", + "position": 4, + "link": { + "type": "generated-index", + "description": "Make HTTP requests and create HTTP servers in WasmEdge." + } } diff --git a/docs/develop/rust/socket_networking/_category_.json b/docs/develop/rust/socket_networking/_category_.json index 1e01ab91..d5301e47 100644 --- a/docs/develop/rust/socket_networking/_category_.json +++ b/docs/develop/rust/socket_networking/_category_.json @@ -1,8 +1,8 @@ { - "label": "Socket networking", - "position": 5, - "link": { - "type": "generated-index", - "description": "Run Tokio-based async Rust applications in WasmEdge." - } + "label": "Socket networking", + "position": 5, + "link": { + "type": "generated-index", + "description": "Run Tokio-based async Rust applications in WasmEdge." + } } diff --git a/docs/develop/wasmedge/_category_.json b/docs/develop/wasmedge/_category_.json index c15c105e..e0373089 100644 --- a/docs/develop/wasmedge/_category_.json +++ b/docs/develop/wasmedge/_category_.json @@ -1,8 +1,8 @@ { - "label": "What is WasmEdge", - "position": 2, - "link": { - "type": "generated-index", - "description": "WasmEdge is a WebAssembly runtime optimized for cloud-native and edge-native applications. It is a safe, fast, lightweight, and portable alternative to Linux containers in the cloud. It is also an ideal runtime for serverless functions, user-defined functions, embedded functions in application platforms and data pipelines." - } + "label": "What is WasmEdge", + "position": 2, + "link": { + "type": "generated-index", + "description": "WasmEdge is a WebAssembly runtime optimized for cloud-native and edge-native applications. It is a safe, fast, lightweight, and portable alternative to Linux containers in the cloud. It is also an ideal runtime for serverless functions, user-defined functions, embedded functions in application platforms and data pipelines." + } } diff --git a/docs/develop/wasmedge/extensions/_category_.json b/docs/develop/wasmedge/extensions/_category_.json index 61c4df95..9c8bd3cc 100644 --- a/docs/develop/wasmedge/extensions/_category_.json +++ b/docs/develop/wasmedge/extensions/_category_.json @@ -1,8 +1,8 @@ { - "label": "WasmEdge Extensions", - "position": 2, - "link": { - "type": "generated-index", - "description": "WasmEdge supports all standard WebAssembly and WASI specifications. In addition, it supports features and APIs that are crucial for the cloud-native use cases. WasmEdge is a superset of standard Wasm. Through its extension SDK, developers can easily add features they need to the WasmEdge Runtime as plugins." - } + "label": "WasmEdge Extensions", + "position": 2, + "link": { + "type": "generated-index", + "description": "WasmEdge supports all standard WebAssembly and WASI specifications. In addition, it supports features and APIs that are crucial for the cloud-native use cases. WasmEdge is a superset of standard Wasm. Through its extension SDK, developers can easily add features they need to the WasmEdge Runtime as plugins." + } } diff --git a/docs/embed/c++/_category_.json b/docs/embed/c++/_category_.json index 76bbd452..c10014ae 100644 --- a/docs/embed/c++/_category_.json +++ b/docs/embed/c++/_category_.json @@ -1,8 +1,8 @@ { - "label": "C++ SDK for Embedding Wasm Functions", - "position": 9, - "link": { - "type": "generated-index", - "description": "In this chapter, we will learn how to Embed WasmEdge in your C++ host applications." - } + "label": "C++ SDK for Embedding Wasm Functions", + "position": 9, + "link": { + "type": "generated-index", + "description": "In this chapter, we will learn how to Embed WasmEdge in your C++ host applications." + } } diff --git a/docs/embed/c/_category_.json b/docs/embed/c/_category_.json index 2d615f6a..1a27ae33 100644 --- a/docs/embed/c/_category_.json +++ b/docs/embed/c/_category_.json @@ -1,8 +1,8 @@ { - "label": "C SDK for Embedding Wasm Functions", - "position": 4, - "link": { - "type": "generated-index", - "description": "In this chapter, we will learn how to embed WasmEdge with the C API." - } + "label": "C SDK for Embedding Wasm Functions", + "position": 4, + "link": { + "type": "generated-index", + "description": "In this chapter, we will learn how to embed WasmEdge with the C API." + } } diff --git a/docs/embed/c/externref.md b/docs/embed/c/externref.md index 40863e15..9034ecc9 100644 --- a/docs/embed/c/externref.md +++ b/docs/embed/c/externref.md @@ -216,25 +216,25 @@ int main() { 1. Install the WasmEdge shared library. - Please refer to the [Installation](/develop/build-and-run/install) for details. + Please refer to the [Installation](/develop/build-and-run/install) for details. 2. Prepare the WASM file and the `main.c` source file as above. 3. Compile - ```bash - gcc main.c -lwasmedge - # Or you can use g++ for the C++ case, or use the clang. - ``` + ```bash + gcc main.c -lwasmedge + # Or you can use g++ for the C++ case, or use the clang. + ``` 4. Run the Test - ```bash - $ ./a.out - Test 1 -- `call_add` -- 1234 + 5678 = 6912 - Test 2 -- `call_mul` -- 789 * 4321 = 3409269 - Test 3 -- `call_mul` -- 8256 ^ 2 = 68161536 - ``` + ```bash + $ ./a.out + Test 1 -- `call_add` -- 1234 + 5678 = 6912 + Test 2 -- `call_mul` -- 789 * 4321 = 3409269 + Test 3 -- `call_mul` -- 8256 ^ 2 = 68161536 + ``` ## Wasm module with External References diff --git a/docs/embed/c/multiple_modules.md b/docs/embed/c/multiple_modules.md index b5476a21..6f8e2a63 100644 --- a/docs/embed/c/multiple_modules.md +++ b/docs/embed/c/multiple_modules.md @@ -75,466 +75,466 @@ With the `WasmEdge_VMContext`, developers can instantiate and execute WASM quick 1. Register and instantiate the `lib.wasm` from file directly - ```c - #include - #include - - int main() { - /* The result. */ - WasmEdge_Result Res; - - /* The params and returns. */ - WasmEdge_Value Params[2], Returns[1]; - - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* Register the `lib.wasm` from file with the module name "math". */ - WasmEdge_String ModuleName = WasmEdge_StringCreateByCString("math"); - Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModuleName, "lib.wasm"); - WasmEdge_StringDelete(ModuleName); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Register lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* Instantiate the `test.wasm`. */ - /* - * Developers can use the APIs such as `WasmEdge_VMRunWasmFromFile` to - * instantiate and execute quickly. - */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "test.wasm"); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Load test.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Validate test.wasm error: %s\n", - WasmEdge_ResultGetMessage(Res)); - return -1; - } - Res = WasmEdge_VMInstantiate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Instantiate test.wasm error: %s\n", - WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* Invoke the functions. */ - /* Invoke the "add_and_square" to calculate (123 + 456)^2 */ - WasmEdge_String FuncName = - WasmEdge_StringCreateByCString("add_and_square"); - Params[0] = WasmEdge_ValueGenI32(123); - Params[1] = WasmEdge_ValueGenI32(456); - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); - WasmEdge_StringDelete(FuncName); - if (WasmEdge_ResultOK(Res)) { - printf("Get the '(%d + %d)^2' result: %d\n", 123, 456, - WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execute 'add_and_square' error: %s\n", - WasmEdge_ResultGetMessage(Res)); - } - /* Invoke the "sum_of_squares" to calculate (77^2 + 88^2) */ - FuncName = WasmEdge_StringCreateByCString("sum_of_squares"); - Params[0] = WasmEdge_ValueGenI32(77); - Params[1] = WasmEdge_ValueGenI32(88); - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); - WasmEdge_StringDelete(FuncName); - if (WasmEdge_ResultOK(Res)) { - printf("Get the '%d^2 + %d^2' result: %d\n", 77, 88, - WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execute 'sum_of_squares' error: %s\n", - WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - return 0; - } - ``` - - Then compile and execute: - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the '(123 + 456)^2' result: 335241 - Get the '77^2 + 88^2' result: 13673 - ``` + ```c + #include + #include + + int main() { + /* The result. */ + WasmEdge_Result Res; + + /* The params and returns. */ + WasmEdge_Value Params[2], Returns[1]; + + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* Register the `lib.wasm` from file with the module name "math". */ + WasmEdge_String ModuleName = WasmEdge_StringCreateByCString("math"); + Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModuleName, "lib.wasm"); + WasmEdge_StringDelete(ModuleName); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Register lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* Instantiate the `test.wasm`. */ + /* + * Developers can use the APIs such as `WasmEdge_VMRunWasmFromFile` to + * instantiate and execute quickly. + */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "test.wasm"); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Load test.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Validate test.wasm error: %s\n", + WasmEdge_ResultGetMessage(Res)); + return -1; + } + Res = WasmEdge_VMInstantiate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Instantiate test.wasm error: %s\n", + WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* Invoke the functions. */ + /* Invoke the "add_and_square" to calculate (123 + 456)^2 */ + WasmEdge_String FuncName = + WasmEdge_StringCreateByCString("add_and_square"); + Params[0] = WasmEdge_ValueGenI32(123); + Params[1] = WasmEdge_ValueGenI32(456); + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); + WasmEdge_StringDelete(FuncName); + if (WasmEdge_ResultOK(Res)) { + printf("Get the '(%d + %d)^2' result: %d\n", 123, 456, + WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execute 'add_and_square' error: %s\n", + WasmEdge_ResultGetMessage(Res)); + } + /* Invoke the "sum_of_squares" to calculate (77^2 + 88^2) */ + FuncName = WasmEdge_StringCreateByCString("sum_of_squares"); + Params[0] = WasmEdge_ValueGenI32(77); + Params[1] = WasmEdge_ValueGenI32(88); + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); + WasmEdge_StringDelete(FuncName); + if (WasmEdge_ResultOK(Res)) { + printf("Get the '%d^2 + %d^2' result: %d\n", 77, 88, + WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execute 'sum_of_squares' error: %s\n", + WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + return 0; + } + ``` + + Then compile and execute: + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the '(123 + 456)^2' result: 335241 + Get the '77^2 + 88^2' result: 13673 + ``` 2. Register and instantiate the `lib.wasm` from buffer - ```c - #include - #include - - int main() { - /* The result. */ - WasmEdge_Result Res; - - /* The params and returns. */ - WasmEdge_Value Params[2], Returns[1]; - - /* The `lib.wasm` buffer example. */ - /* Developers can also load the buffer from file. */ - uint8_t WASM[] = {/* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Function section */ - 0x03, 0x03, 0x02, 0x00, 0x00, - /* Export section */ - 0x07, 0x0D, 0x02, - /* export function: "add" */ - 0x03, 0x61, 0x64, 0x64, 0x00, 0x00, - /* export function: "mul" */ - 0x03, 0x6D, 0x75, 0x6C, 0x00, 0x01, - /* Code section */ - 0x0A, 0x11, 0x02, - /* "add" code body */ - 0x07, 0x00, 0x20, 0x00, 0x20, 0x01, 0x6A, 0x0B, - /* "mul" code body */ - 0x07, 0x00, 0x20, 0x00, 0x20, 0x01, 0x6C, 0x0B}; - - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* Register the `lib.wasm` from the buffer with the module name "math". */ - WasmEdge_String ModuleName = WasmEdge_StringCreateByCString("math"); - Res = WasmEdge_VMRegisterModuleFromBuffer(VMCxt, ModuleName, WASM, - sizeof(WASM)); - WasmEdge_StringDelete(ModuleName); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Register lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* Instantiate the `test.wasm`. */ - /* - * Developers can use the APIs such as `WasmEdge_VMRunWasmFromFile` to - * instantiate and execute quickly. - */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "test.wasm"); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Load test.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Validate test.wasm error: %s\n", - WasmEdge_ResultGetMessage(Res)); - return -1; - } - Res = WasmEdge_VMInstantiate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Instantiate test.wasm error: %s\n", - WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* Invoke the functions. */ - /* Invoke the "add_and_square" to calculate (123 + 456)^2 */ - WasmEdge_String FuncName = - WasmEdge_StringCreateByCString("add_and_square"); - Params[0] = WasmEdge_ValueGenI32(123); - Params[1] = WasmEdge_ValueGenI32(456); - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); - WasmEdge_StringDelete(FuncName); - if (WasmEdge_ResultOK(Res)) { - printf("Get the '(%d + %d)^2' result: %d\n", 123, 456, - WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execute 'add_and_square' error: %s\n", - WasmEdge_ResultGetMessage(Res)); - } - /* Invoke the "sum_of_squares" to calculate (77^2 + 88^2) */ - FuncName = WasmEdge_StringCreateByCString("sum_of_squares"); - Params[0] = WasmEdge_ValueGenI32(77); - Params[1] = WasmEdge_ValueGenI32(88); - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); - WasmEdge_StringDelete(FuncName); - if (WasmEdge_ResultOK(Res)) { - printf("Get the '%d^2 + %d^2' result: %d\n", 77, 88, - WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execute 'sum_of_squares' error: %s\n", - WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - return 0; - } - ``` - - Then compile and execute: - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the '(123 + 456)^2' result: 335241 - Get the '77^2 + 88^2' result: 13673 - ``` + ```c + #include + #include + + int main() { + /* The result. */ + WasmEdge_Result Res; + + /* The params and returns. */ + WasmEdge_Value Params[2], Returns[1]; + + /* The `lib.wasm` buffer example. */ + /* Developers can also load the buffer from file. */ + uint8_t WASM[] = {/* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Function section */ + 0x03, 0x03, 0x02, 0x00, 0x00, + /* Export section */ + 0x07, 0x0D, 0x02, + /* export function: "add" */ + 0x03, 0x61, 0x64, 0x64, 0x00, 0x00, + /* export function: "mul" */ + 0x03, 0x6D, 0x75, 0x6C, 0x00, 0x01, + /* Code section */ + 0x0A, 0x11, 0x02, + /* "add" code body */ + 0x07, 0x00, 0x20, 0x00, 0x20, 0x01, 0x6A, 0x0B, + /* "mul" code body */ + 0x07, 0x00, 0x20, 0x00, 0x20, 0x01, 0x6C, 0x0B}; + + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* Register the `lib.wasm` from the buffer with the module name "math". */ + WasmEdge_String ModuleName = WasmEdge_StringCreateByCString("math"); + Res = WasmEdge_VMRegisterModuleFromBuffer(VMCxt, ModuleName, WASM, + sizeof(WASM)); + WasmEdge_StringDelete(ModuleName); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Register lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* Instantiate the `test.wasm`. */ + /* + * Developers can use the APIs such as `WasmEdge_VMRunWasmFromFile` to + * instantiate and execute quickly. + */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "test.wasm"); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Load test.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Validate test.wasm error: %s\n", + WasmEdge_ResultGetMessage(Res)); + return -1; + } + Res = WasmEdge_VMInstantiate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Instantiate test.wasm error: %s\n", + WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* Invoke the functions. */ + /* Invoke the "add_and_square" to calculate (123 + 456)^2 */ + WasmEdge_String FuncName = + WasmEdge_StringCreateByCString("add_and_square"); + Params[0] = WasmEdge_ValueGenI32(123); + Params[1] = WasmEdge_ValueGenI32(456); + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); + WasmEdge_StringDelete(FuncName); + if (WasmEdge_ResultOK(Res)) { + printf("Get the '(%d + %d)^2' result: %d\n", 123, 456, + WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execute 'add_and_square' error: %s\n", + WasmEdge_ResultGetMessage(Res)); + } + /* Invoke the "sum_of_squares" to calculate (77^2 + 88^2) */ + FuncName = WasmEdge_StringCreateByCString("sum_of_squares"); + Params[0] = WasmEdge_ValueGenI32(77); + Params[1] = WasmEdge_ValueGenI32(88); + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); + WasmEdge_StringDelete(FuncName); + if (WasmEdge_ResultOK(Res)) { + printf("Get the '%d^2 + %d^2' result: %d\n", 77, 88, + WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execute 'sum_of_squares' error: %s\n", + WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + return 0; + } + ``` + + Then compile and execute: + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the '(123 + 456)^2' result: 335241 + Get the '77^2 + 88^2' result: 13673 + ``` 3. Load the `lib.wasm` to an AST Context first - ```c - #include - #include - - int main() { - /* The result. */ - WasmEdge_Result Res; - - /* The params and returns. */ - WasmEdge_Value Params[2], Returns[1]; - - /* Assume that the `lib.wasm` has loaded first. */ - WasmEdge_LoaderContext *LoadCxt = WasmEdge_LoaderCreate(NULL); - WasmEdge_ASTModuleContext *LibASTCxt = NULL; - Res = WasmEdge_LoaderParseFromFile(LoadCxt, &LibASTCxt, "lib.wasm"); - WasmEdge_LoaderDelete(LoadCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Load lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* Register the loaded AST context with the module name "math". */ - WasmEdge_String ModuleName = WasmEdge_StringCreateByCString("math"); - Res = - WasmEdge_VMRegisterModuleFromASTModule(VMCxt, ModuleName, LibASTCxt); - WasmEdge_StringDelete(ModuleName); - WasmEdge_ASTModuleDelete(LibASTCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Register lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* Instantiate the `test.wasm`. */ - /* - * Developers can use the APIs such as `WasmEdge_VMRunWasmFromFile` to - * instantiate and execute quickly. - */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "test.wasm"); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Load test.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Validate test.wasm error: %s\n", - WasmEdge_ResultGetMessage(Res)); - return -1; - } - Res = WasmEdge_VMInstantiate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Instantiate test.wasm error: %s\n", - WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* Invoke the functions. */ - /* Invoke the "add_and_square" to calculate (123 + 456)^2 */ - WasmEdge_String FuncName = - WasmEdge_StringCreateByCString("add_and_square"); - Params[0] = WasmEdge_ValueGenI32(123); - Params[1] = WasmEdge_ValueGenI32(456); - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); - WasmEdge_StringDelete(FuncName); - if (WasmEdge_ResultOK(Res)) { - printf("Get the '(%d + %d)^2' result: %d\n", 123, 456, - WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execute 'add_and_square' error: %s\n", - WasmEdge_ResultGetMessage(Res)); - } - /* Invoke the "sum_of_squares" to calculate (77^2 + 88^2) */ - FuncName = WasmEdge_StringCreateByCString("sum_of_squares"); - Params[0] = WasmEdge_ValueGenI32(77); - Params[1] = WasmEdge_ValueGenI32(88); - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); - WasmEdge_StringDelete(FuncName); - if (WasmEdge_ResultOK(Res)) { - printf("Get the '%d^2 + %d^2' result: %d\n", 77, 88, - WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execute 'sum_of_squares' error: %s\n", - WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - return 0; - } - ``` - - Then compile and execute: - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the '(123 + 456)^2' result: 335241 - Get the '77^2 + 88^2' result: 13673 - ``` + ```c + #include + #include + + int main() { + /* The result. */ + WasmEdge_Result Res; + + /* The params and returns. */ + WasmEdge_Value Params[2], Returns[1]; + + /* Assume that the `lib.wasm` has loaded first. */ + WasmEdge_LoaderContext *LoadCxt = WasmEdge_LoaderCreate(NULL); + WasmEdge_ASTModuleContext *LibASTCxt = NULL; + Res = WasmEdge_LoaderParseFromFile(LoadCxt, &LibASTCxt, "lib.wasm"); + WasmEdge_LoaderDelete(LoadCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Load lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* Register the loaded AST context with the module name "math". */ + WasmEdge_String ModuleName = WasmEdge_StringCreateByCString("math"); + Res = + WasmEdge_VMRegisterModuleFromASTModule(VMCxt, ModuleName, LibASTCxt); + WasmEdge_StringDelete(ModuleName); + WasmEdge_ASTModuleDelete(LibASTCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Register lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* Instantiate the `test.wasm`. */ + /* + * Developers can use the APIs such as `WasmEdge_VMRunWasmFromFile` to + * instantiate and execute quickly. + */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "test.wasm"); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Load test.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Validate test.wasm error: %s\n", + WasmEdge_ResultGetMessage(Res)); + return -1; + } + Res = WasmEdge_VMInstantiate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Instantiate test.wasm error: %s\n", + WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* Invoke the functions. */ + /* Invoke the "add_and_square" to calculate (123 + 456)^2 */ + WasmEdge_String FuncName = + WasmEdge_StringCreateByCString("add_and_square"); + Params[0] = WasmEdge_ValueGenI32(123); + Params[1] = WasmEdge_ValueGenI32(456); + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); + WasmEdge_StringDelete(FuncName); + if (WasmEdge_ResultOK(Res)) { + printf("Get the '(%d + %d)^2' result: %d\n", 123, 456, + WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execute 'add_and_square' error: %s\n", + WasmEdge_ResultGetMessage(Res)); + } + /* Invoke the "sum_of_squares" to calculate (77^2 + 88^2) */ + FuncName = WasmEdge_StringCreateByCString("sum_of_squares"); + Params[0] = WasmEdge_ValueGenI32(77); + Params[1] = WasmEdge_ValueGenI32(88); + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); + WasmEdge_StringDelete(FuncName); + if (WasmEdge_ResultOK(Res)) { + printf("Get the '%d^2 + %d^2' result: %d\n", 77, 88, + WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execute 'sum_of_squares' error: %s\n", + WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + return 0; + } + ``` + + Then compile and execute: + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the '(123 + 456)^2' result: 335241 + Get the '77^2 + 88^2' result: 13673 + ``` 4. Instantiate the `lib.wasm` first - ```c - #include - #include - - int main() { - /* The result. */ - WasmEdge_Result Res; - - /* The params and returns. */ - WasmEdge_Value Params[2], Returns[1]; - - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* Assume that the `lib.wasm` has instantiated first. */ - WasmEdge_LoaderContext *LoadCxt = WasmEdge_LoaderCreate(NULL); - WasmEdge_ValidatorContext *ValidCxt = WasmEdge_ValidatorCreate(NULL); - WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(NULL, NULL); - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - WasmEdge_ASTModuleContext *LibASTCxt = NULL; - WasmEdge_ModuleInstanceContext *LibInstCxt = NULL; - Res = WasmEdge_LoaderParseFromFile(LoadCxt, &LibASTCxt, "lib.wasm"); - WasmEdge_LoaderDelete(LoadCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Load lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - Res = WasmEdge_ValidatorValidate(ValidCxt, LibASTCxt); - WasmEdge_ValidatorDelete(ValidCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_ASTModuleDelete(LibASTCxt); - printf("Validate lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - /* - * The module name is determined when instantiation. - * If use the `WasmEdge_ExecutorInstantiate` API, the module name will be - * "". - */ - WasmEdge_String ModuleName = WasmEdge_StringCreateByCString("math"); - Res = WasmEdge_ExecutorRegister(ExecCxt, &LibInstCxt, StoreCxt, LibASTCxt, - ModuleName); - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_ASTModuleDelete(LibASTCxt); - WasmEdge_StringDelete(ModuleName); - WasmEdge_StoreDelete(StoreCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiate lib.wasm error: %s\n", - WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* Register the module instance with the module name "math". */ - /* The module name has determined when instantiating the `lib.wasm`. */ - Res = WasmEdge_VMRegisterModuleFromImport(VMCxt, LibInstCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - WasmEdge_ModuleInstanceDelete(LibInstCxt); - printf("Register lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* Instantiate the `test.wasm`. */ - /* - * Developers can use the APIs such as `WasmEdge_VMRunWasmFromFile` to - * instantiate and execute quickly. - */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "test.wasm"); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - WasmEdge_ModuleInstanceDelete(LibInstCxt); - printf("Load test.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - WasmEdge_ModuleInstanceDelete(LibInstCxt); - printf("Validate test.wasm error: %s\n", - WasmEdge_ResultGetMessage(Res)); - return -1; - } - Res = WasmEdge_VMInstantiate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - WasmEdge_ModuleInstanceDelete(LibInstCxt); - printf("Instantiate test.wasm error: %s\n", - WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* Invoke the functions. */ - /* Invoke the "add_and_square" to calculate (123 + 456)^2 */ - WasmEdge_String FuncName = - WasmEdge_StringCreateByCString("add_and_square"); - Params[0] = WasmEdge_ValueGenI32(123); - Params[1] = WasmEdge_ValueGenI32(456); - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); - WasmEdge_StringDelete(FuncName); - if (WasmEdge_ResultOK(Res)) { - printf("Get the '(%d + %d)^2' result: %d\n", 123, 456, - WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execute 'add_and_square' error: %s\n", - WasmEdge_ResultGetMessage(Res)); - } - /* Invoke the "sum_of_squares" to calculate (77^2 + 88^2) */ - FuncName = WasmEdge_StringCreateByCString("sum_of_squares"); - Params[0] = WasmEdge_ValueGenI32(77); - Params[1] = WasmEdge_ValueGenI32(88); - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); - WasmEdge_StringDelete(FuncName); - if (WasmEdge_ResultOK(Res)) { - printf("Get the '%d^2 + %d^2' result: %d\n", 77, 88, - WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execute 'sum_of_squares' error: %s\n", - WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - /* The imported module instance should be destroyed. */ - WasmEdge_ModuleInstanceDelete(LibInstCxt); - return 0; - } - ``` - - Then compile and execute: - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the '(123 + 456)^2' result: 335241 - Get the '77^2 + 88^2' result: 13673 - ``` + ```c + #include + #include + + int main() { + /* The result. */ + WasmEdge_Result Res; + + /* The params and returns. */ + WasmEdge_Value Params[2], Returns[1]; + + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* Assume that the `lib.wasm` has instantiated first. */ + WasmEdge_LoaderContext *LoadCxt = WasmEdge_LoaderCreate(NULL); + WasmEdge_ValidatorContext *ValidCxt = WasmEdge_ValidatorCreate(NULL); + WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(NULL, NULL); + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + WasmEdge_ASTModuleContext *LibASTCxt = NULL; + WasmEdge_ModuleInstanceContext *LibInstCxt = NULL; + Res = WasmEdge_LoaderParseFromFile(LoadCxt, &LibASTCxt, "lib.wasm"); + WasmEdge_LoaderDelete(LoadCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Load lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + Res = WasmEdge_ValidatorValidate(ValidCxt, LibASTCxt); + WasmEdge_ValidatorDelete(ValidCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_ASTModuleDelete(LibASTCxt); + printf("Validate lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + /* + * The module name is determined when instantiation. + * If use the `WasmEdge_ExecutorInstantiate` API, the module name will be + * "". + */ + WasmEdge_String ModuleName = WasmEdge_StringCreateByCString("math"); + Res = WasmEdge_ExecutorRegister(ExecCxt, &LibInstCxt, StoreCxt, LibASTCxt, + ModuleName); + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_ASTModuleDelete(LibASTCxt); + WasmEdge_StringDelete(ModuleName); + WasmEdge_StoreDelete(StoreCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiate lib.wasm error: %s\n", + WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* Register the module instance with the module name "math". */ + /* The module name has determined when instantiating the `lib.wasm`. */ + Res = WasmEdge_VMRegisterModuleFromImport(VMCxt, LibInstCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + WasmEdge_ModuleInstanceDelete(LibInstCxt); + printf("Register lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* Instantiate the `test.wasm`. */ + /* + * Developers can use the APIs such as `WasmEdge_VMRunWasmFromFile` to + * instantiate and execute quickly. + */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "test.wasm"); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + WasmEdge_ModuleInstanceDelete(LibInstCxt); + printf("Load test.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + WasmEdge_ModuleInstanceDelete(LibInstCxt); + printf("Validate test.wasm error: %s\n", + WasmEdge_ResultGetMessage(Res)); + return -1; + } + Res = WasmEdge_VMInstantiate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + WasmEdge_ModuleInstanceDelete(LibInstCxt); + printf("Instantiate test.wasm error: %s\n", + WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* Invoke the functions. */ + /* Invoke the "add_and_square" to calculate (123 + 456)^2 */ + WasmEdge_String FuncName = + WasmEdge_StringCreateByCString("add_and_square"); + Params[0] = WasmEdge_ValueGenI32(123); + Params[1] = WasmEdge_ValueGenI32(456); + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); + WasmEdge_StringDelete(FuncName); + if (WasmEdge_ResultOK(Res)) { + printf("Get the '(%d + %d)^2' result: %d\n", 123, 456, + WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execute 'add_and_square' error: %s\n", + WasmEdge_ResultGetMessage(Res)); + } + /* Invoke the "sum_of_squares" to calculate (77^2 + 88^2) */ + FuncName = WasmEdge_StringCreateByCString("sum_of_squares"); + Params[0] = WasmEdge_ValueGenI32(77); + Params[1] = WasmEdge_ValueGenI32(88); + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); + WasmEdge_StringDelete(FuncName); + if (WasmEdge_ResultOK(Res)) { + printf("Get the '%d^2 + %d^2' result: %d\n", 77, 88, + WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execute 'sum_of_squares' error: %s\n", + WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + /* The imported module instance should be destroyed. */ + WasmEdge_ModuleInstanceDelete(LibInstCxt); + return 0; + } + ``` + + Then compile and execute: + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the '(123 + 456)^2' result: 335241 + Get the '77^2 + 88^2' result: 13673 + ``` ## Linking WASM Modules By the Executor Context diff --git a/docs/embed/c/reference/0.10.1.md b/docs/embed/c/reference/0.10.1.md index 3d355866..dede53f1 100644 --- a/docs/embed/c/reference/0.10.1.md +++ b/docs/embed/c/reference/0.10.1.md @@ -64,27 +64,27 @@ After the installation of WasmEdge, the following guide can help you to test for 1. Prepare the test C file (and assumed saved as `test.c`): - ```c - #include - #include - int main() { - printf("WasmEdge version: %s\n", WasmEdge_VersionGet()); - return 0; - } - ``` + ```c + #include + #include + int main() { + printf("WasmEdge version: %s\n", WasmEdge_VersionGet()); + return 0; + } + ``` 2. Compile the file with `gcc` or `clang`. - ```bash - gcc test.c -lwasmedge_c - ``` + ```bash + gcc test.c -lwasmedge_c + ``` 3. Run and get the expected output. - ```bash - $ ./a.out - WasmEdge version: 0.10.1 - ``` + ```bash + $ ./a.out + WasmEdge version: 0.10.1 + ``` ## WasmEdge Basics @@ -112,53 +112,53 @@ In WasmEdge, developers should convert the values to `WasmEdge_Value` objects th 1. Number types: `i32`, `i64`, `f32`, `f64`, and `v128` for the `SIMD` proposal - ```c - WasmEdge_Value Val; - Val = WasmEdge_ValueGenI32(123456); - printf("%d\n", WasmEdge_ValueGetI32(Val)); - /* Will print "123456" */ - Val = WasmEdge_ValueGenI64(1234567890123LL); - printf("%ld\n", WasmEdge_ValueGetI64(Val)); - /* Will print "1234567890123" */ - Val = WasmEdge_ValueGenF32(123.456f); - printf("%f\n", WasmEdge_ValueGetF32(Val)); - /* Will print "123.456001" */ - Val = WasmEdge_ValueGenF64(123456.123456789); - printf("%.10f\n", WasmEdge_ValueGetF64(Val)); - /* Will print "123456.1234567890" */ - ``` + ```c + WasmEdge_Value Val; + Val = WasmEdge_ValueGenI32(123456); + printf("%d\n", WasmEdge_ValueGetI32(Val)); + /* Will print "123456" */ + Val = WasmEdge_ValueGenI64(1234567890123LL); + printf("%ld\n", WasmEdge_ValueGetI64(Val)); + /* Will print "1234567890123" */ + Val = WasmEdge_ValueGenF32(123.456f); + printf("%f\n", WasmEdge_ValueGetF32(Val)); + /* Will print "123.456001" */ + Val = WasmEdge_ValueGenF64(123456.123456789); + printf("%.10f\n", WasmEdge_ValueGetF64(Val)); + /* Will print "123456.1234567890" */ + ``` 2. Reference types: `funcref` and `externref` for the `Reference-Types` proposal - ```c - WasmEdge_Value Val; - void *Ptr; - bool IsNull; - uint32_t Num = 10; - /* Generate a externref to NULL. */ - Val = WasmEdge_ValueGenNullRef(WasmEdge_RefType_ExternRef); - IsNull = WasmEdge_ValueIsNullRef(Val); - /* The `IsNull` will be `TRUE`. */ - Ptr = WasmEdge_ValueGetExternRef(Val); - /* The `Ptr` will be `NULL`. */ - - /* Get the function instance by creation or from module instance. */ - const WasmEdge_FunctionInstanceContext *FuncCxt = ...; - /* Generate a funcref with the given function instance context. */ - Val = WasmEdge_ValueGenFuncRef(FuncCxt); - const WasmEdge_FunctionInstanceContext *GotFuncCxt = WasmEdge_ValueGetFuncRef(Val); - /* The `GotFuncCxt` will be the same as `FuncCxt`. */ - - /* Generate a externref to `Num`. */ - Val = WasmEdge_ValueGenExternRef(&Num); - Ptr = WasmEdge_ValueGetExternRef(Val); - /* The `Ptr` will be `&Num`. */ - printf("%u\n", *(uint32_t *)Ptr); - /* Will print "10" */ - Num += 55; - printf("%u\n", *(uint32_t *)Ptr); - /* Will print "65" */ - ``` + ```c + WasmEdge_Value Val; + void *Ptr; + bool IsNull; + uint32_t Num = 10; + /* Generate a externref to NULL. */ + Val = WasmEdge_ValueGenNullRef(WasmEdge_RefType_ExternRef); + IsNull = WasmEdge_ValueIsNullRef(Val); + /* The `IsNull` will be `TRUE`. */ + Ptr = WasmEdge_ValueGetExternRef(Val); + /* The `Ptr` will be `NULL`. */ + + /* Get the function instance by creation or from module instance. */ + const WasmEdge_FunctionInstanceContext *FuncCxt = ...; + /* Generate a funcref with the given function instance context. */ + Val = WasmEdge_ValueGenFuncRef(FuncCxt); + const WasmEdge_FunctionInstanceContext *GotFuncCxt = WasmEdge_ValueGetFuncRef(Val); + /* The `GotFuncCxt` will be the same as `FuncCxt`. */ + + /* Generate a externref to `Num`. */ + Val = WasmEdge_ValueGenExternRef(&Num); + Ptr = WasmEdge_ValueGetExternRef(Val); + /* The `Ptr` will be `&Num`. */ + printf("%u\n", *(uint32_t *)Ptr); + /* Will print "10" */ + Num += 55; + printf("%u\n", *(uint32_t *)Ptr); + /* Will print "65" */ + ``` ### Strings @@ -166,49 +166,49 @@ The `WasmEdge_String` object is for the instance names when invoking a WASM func 1. Create a `WasmEdge_String` from a C string (`const char *` with NULL termination) or a buffer with length. - The content of the C string or buffer will be copied into the `WasmEdge_String` object. + The content of the C string or buffer will be copied into the `WasmEdge_String` object. - ```c - char Buf[4] = {50, 55, 60, 65}; - WasmEdge_String Str1 = WasmEdge_StringCreateByCString("test"); - WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); - /* The objects should be deleted by `WasmEdge_StringDelete()`. */ - WasmEdge_StringDelete(Str1); - WasmEdge_StringDelete(Str2); - ``` + ```c + char Buf[4] = {50, 55, 60, 65}; + WasmEdge_String Str1 = WasmEdge_StringCreateByCString("test"); + WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); + /* The objects should be deleted by `WasmEdge_StringDelete()`. */ + WasmEdge_StringDelete(Str1); + WasmEdge_StringDelete(Str2); + ``` 2. Wrap a `WasmEdge_String` to a buffer with length. - The content will not be copied, and the caller should guarantee the life cycle of the input buffer. + The content will not be copied, and the caller should guarantee the life cycle of the input buffer. - ```c - const char CStr[] = "test"; - WasmEdge_String Str = WasmEdge_StringWrap(CStr, 4); - /* The object should __NOT__ be deleted by `WasmEdge_StringDelete()`. */ - ``` + ```c + const char CStr[] = "test"; + WasmEdge_String Str = WasmEdge_StringWrap(CStr, 4); + /* The object should __NOT__ be deleted by `WasmEdge_StringDelete()`. */ + ``` 3. String comparison - ```c - const char CStr[] = "abcd"; - char Buf[4] = {0x61, 0x62, 0x63, 0x64}; - WasmEdge_String Str1 = WasmEdge_StringWrap(CStr, 4); - WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); - bool IsEq = WasmEdge_StringIsEqual(Str1, Str2); - /* The `IsEq` will be `TRUE`. */ - WasmEdge_StringDelete(Str2); - ``` + ```c + const char CStr[] = "abcd"; + char Buf[4] = {0x61, 0x62, 0x63, 0x64}; + WasmEdge_String Str1 = WasmEdge_StringWrap(CStr, 4); + WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); + bool IsEq = WasmEdge_StringIsEqual(Str1, Str2); + /* The `IsEq` will be `TRUE`. */ + WasmEdge_StringDelete(Str2); + ``` 4. Convert to C string - ```c - char Buf[256]; - WasmEdge_String Str = WasmEdge_StringCreateByCString("test_wasmedge_string"); - uint32_t StrLength = WasmEdge_StringCopy(Str, Buf, sizeof(Buf)); - /* StrLength will be 20 */ - printf("String: %s\n", Buf); - /* Will print "test_wasmedge_string". */ - ``` + ```c + char Buf[256]; + WasmEdge_String Str = WasmEdge_StringCreateByCString("test_wasmedge_string"); + uint32_t StrLength = WasmEdge_StringCopy(Str, Buf, sizeof(Buf)); + /* StrLength will be 20 */ + printf("String: %s\n", Buf); + /* Will print "test_wasmedge_string". */ + ``` ### Results @@ -243,145 +243,145 @@ The WASM data structures are used for creating instances or can be queried from 1. Limit - The `WasmEdge_Limit` struct is defined in the header: + The `WasmEdge_Limit` struct is defined in the header: - ```c - /// Struct of WASM limit. - typedef struct WasmEdge_Limit { - /// Boolean to describe has max value or not. - bool HasMax; - /// Boolean to describe is shared memory or not. - bool Shared; - /// Minimum value. - uint32_t Min; - /// Maximum value. Will be ignored if the `HasMax` is false. - uint32_t Max; - } WasmEdge_Limit; - ``` + ```c + /// Struct of WASM limit. + typedef struct WasmEdge_Limit { + /// Boolean to describe has max value or not. + bool HasMax; + /// Boolean to describe is shared memory or not. + bool Shared; + /// Minimum value. + uint32_t Min; + /// Maximum value. Will be ignored if the `HasMax` is false. + uint32_t Max; + } WasmEdge_Limit; + ``` - Developers can initialize the struct by assigning it's value, and the `Max` value is needed to be larger or equal to the `Min` value. The API `WasmEdge_LimitIsEqual()` is provided to compare with 2 `WasmEdge_Limit` structs. + Developers can initialize the struct by assigning it's value, and the `Max` value is needed to be larger or equal to the `Min` value. The API `WasmEdge_LimitIsEqual()` is provided to compare with 2 `WasmEdge_Limit` structs. 2. Function type context - The `Function Type` context is used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `Function Type` context APIs to get the parameter or return value types information. + The `Function Type` context is used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `Function Type` context APIs to get the parameter or return value types information. - ```c - enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I64 }; - enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_FuncRef }; - WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + ```c + enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I64 }; + enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_FuncRef }; + WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - enum WasmEdge_ValType Buf[16]; - uint32_t ParamLen = WasmEdge_FunctionTypeGetParametersLength(FuncTypeCxt); - /* `ParamLen` will be 2. */ - uint32_t GotParamLen = WasmEdge_FunctionTypeGetParameters(FuncTypeCxt, Buf, 16); - /* `GotParamLen` will be 2, and `Buf[0]` and `Buf[1]` will be the same as `ParamList`. */ - uint32_t ReturnLen = WasmEdge_FunctionTypeGetReturnsLength(FuncTypeCxt); - /* `ReturnLen` will be 1. */ - uint32_t GotReturnLen = WasmEdge_FunctionTypeGetReturns(FuncTypeCxt, Buf, 16); - /* `GotReturnLen` will be 1, and `Buf[0]` will be the same as `ReturnList`. */ + enum WasmEdge_ValType Buf[16]; + uint32_t ParamLen = WasmEdge_FunctionTypeGetParametersLength(FuncTypeCxt); + /* `ParamLen` will be 2. */ + uint32_t GotParamLen = WasmEdge_FunctionTypeGetParameters(FuncTypeCxt, Buf, 16); + /* `GotParamLen` will be 2, and `Buf[0]` and `Buf[1]` will be the same as `ParamList`. */ + uint32_t ReturnLen = WasmEdge_FunctionTypeGetReturnsLength(FuncTypeCxt); + /* `ReturnLen` will be 1. */ + uint32_t GotReturnLen = WasmEdge_FunctionTypeGetReturns(FuncTypeCxt, Buf, 16); + /* `GotReturnLen` will be 1, and `Buf[0]` will be the same as `ReturnList`. */ - WasmEdge_FunctionTypeDelete(FuncTypeCxt); - ``` + WasmEdge_FunctionTypeDelete(FuncTypeCxt); + ``` 3. Table type context - The `Table Type` context is used for `Table` instance creation or getting information from `Table` instances. + The `Table Type` context is used for `Table` instance creation or getting information from `Table` instances. - ```c - WasmEdge_Limit TabLim = {.HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_TableTypeCreate(WasmEdge_RefType_ExternRef, TabLim); + ```c + WasmEdge_Limit TabLim = {.HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_TableTypeCreate(WasmEdge_RefType_ExternRef, TabLim); - enum WasmEdge_RefType GotRefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); - /* `GotRefType` will be WasmEdge_RefType_ExternRef. */ - WasmEdge_Limit GotTabLim = WasmEdge_TableTypeGetLimit(TabTypeCxt); - /* `GotTabLim` will be the same value as `TabLim`. */ + enum WasmEdge_RefType GotRefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); + /* `GotRefType` will be WasmEdge_RefType_ExternRef. */ + WasmEdge_Limit GotTabLim = WasmEdge_TableTypeGetLimit(TabTypeCxt); + /* `GotTabLim` will be the same value as `TabLim`. */ - WasmEdge_TableTypeDelete(TabTypeCxt); - ``` + WasmEdge_TableTypeDelete(TabTypeCxt); + ``` 4. Memory type context - The `Memory Type` context is used for `Memory` instance creation or getting information from `Memory` instances. + The `Memory Type` context is used for `Memory` instance creation or getting information from `Memory` instances. - ```c - WasmEdge_Limit MemLim = {.HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLim); + ```c + WasmEdge_Limit MemLim = {.HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLim); - WasmEdge_Limit GotMemLim = WasmEdge_MemoryTypeGetLimit(MemTypeCxt); - /* `GotMemLim` will be the same value as `MemLim`. */ + WasmEdge_Limit GotMemLim = WasmEdge_MemoryTypeGetLimit(MemTypeCxt); + /* `GotMemLim` will be the same value as `MemLim`. */ - WasmEdge_MemoryTypeDelete(MemTypeCxt) - ``` + WasmEdge_MemoryTypeDelete(MemTypeCxt) + ``` 5. Global type context - The `Global Type` context is used for `Global` instance creation or getting information from `Global` instances. + The `Global Type` context is used for `Global` instance creation or getting information from `Global` instances. - ```c - WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate(WasmEdge_ValType_F64, WasmEdge_Mutability_Var); + ```c + WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate(WasmEdge_ValType_F64, WasmEdge_Mutability_Var); - WasmEdge_ValType GotValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); - /* `GotValType` will be WasmEdge_ValType_F64. */ - WasmEdge_Mutability GotValMut = WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); - /* `GotValMut` will be WasmEdge_Mutability_Var. */ + WasmEdge_ValType GotValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); + /* `GotValType` will be WasmEdge_ValType_F64. */ + WasmEdge_Mutability GotValMut = WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); + /* `GotValMut` will be WasmEdge_Mutability_Var. */ - WasmEdge_GlobalTypeDelete(GlobTypeCxt); - ``` + WasmEdge_GlobalTypeDelete(GlobTypeCxt); + ``` 6. Import type context - The `Import Type` context is used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `Import Type` context. The details about querying `Import Type` contexts will be introduced in the [AST Module](#ast-module). + The `Import Type` context is used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `Import Type` context. The details about querying `Import Type` contexts will be introduced in the [AST Module](#ast-module). - ```c - WasmEdge_ASTModuleContext *ASTCxt = ...; - /* Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the result of loading a WASM file. */ - const WasmEdge_ImportTypeContext *ImpType = ...; - /* Assume that `ImpType` is queried from the `ASTCxt` for the import. */ + ```c + WasmEdge_ASTModuleContext *ASTCxt = ...; + /* Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the result of loading a WASM file. */ + const WasmEdge_ImportTypeContext *ImpType = ...; + /* Assume that `ImpType` is queried from the `ASTCxt` for the import. */ - enum WasmEdge_ExternalType ExtType = WasmEdge_ImportTypeGetExternalType(ImpType); - /* - * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, `WasmEdge_ExternalType_Table`, - * `WasmEdge_ExternalType_Memory`, or `WasmEdge_ExternalType_Global`. - */ - WasmEdge_String ModName = WasmEdge_ImportTypeGetModuleName(ImpType); - WasmEdge_String ExtName = WasmEdge_ImportTypeGetExternalName(ImpType); - /* The `ModName` and `ExtName` should not be destroyed and the string buffers are binded into the `ASTCxt`. */ - const WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_ImportTypeGetFunctionType(ASTCxt, ImpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Function`, the `FuncTypeCxt` will be NULL. */ - const WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_ImportTypeGetTableType(ASTCxt, ImpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` will be NULL. */ - const WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_ImportTypeGetMemoryType(ASTCxt, ImpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` will be NULL. */ - const WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_ImportTypeGetGlobalType(ASTCxt, ImpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` will be NULL. */ - ``` + enum WasmEdge_ExternalType ExtType = WasmEdge_ImportTypeGetExternalType(ImpType); + /* + * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, `WasmEdge_ExternalType_Table`, + * `WasmEdge_ExternalType_Memory`, or `WasmEdge_ExternalType_Global`. + */ + WasmEdge_String ModName = WasmEdge_ImportTypeGetModuleName(ImpType); + WasmEdge_String ExtName = WasmEdge_ImportTypeGetExternalName(ImpType); + /* The `ModName` and `ExtName` should not be destroyed and the string buffers are binded into the `ASTCxt`. */ + const WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_ImportTypeGetFunctionType(ASTCxt, ImpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Function`, the `FuncTypeCxt` will be NULL. */ + const WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_ImportTypeGetTableType(ASTCxt, ImpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` will be NULL. */ + const WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_ImportTypeGetMemoryType(ASTCxt, ImpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` will be NULL. */ + const WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_ImportTypeGetGlobalType(ASTCxt, ImpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` will be NULL. */ + ``` 7. Export type context - The `Export Type` context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `Export Type` contexts will be introduced in the [AST Module](#ast-module). + The `Export Type` context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `Export Type` contexts will be introduced in the [AST Module](#ast-module). - ```c - WasmEdge_ASTModuleContext *ASTCxt = ...; - /* Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the result of loading a WASM file. */ - const WasmEdge_ExportTypeContext *ExpType = ...; - /* Assume that `ExpType` is queried from the `ASTCxt` for the export. */ + ```c + WasmEdge_ASTModuleContext *ASTCxt = ...; + /* Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the result of loading a WASM file. */ + const WasmEdge_ExportTypeContext *ExpType = ...; + /* Assume that `ExpType` is queried from the `ASTCxt` for the export. */ - enum WasmEdge_ExternalType ExtType = WasmEdge_ExportTypeGetExternalType(ExpType); - /* - * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, `WasmEdge_ExternalType_Table`, - * `WasmEdge_ExternalType_Memory`, or `WasmEdge_ExternalType_Global`. - */ - WasmEdge_String ExtName = WasmEdge_ExportTypeGetExternalName(ExpType); - /* The `ExtName` should not be destroyed and the string buffer is binded into the `ASTCxt`. */ - const WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_ExportTypeGetFunctionType(ASTCxt, ExpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Function`, the `FuncTypeCxt` will be NULL. */ - const WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_ExportTypeGetTableType(ASTCxt, ExpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` will be NULL. */ - const WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_ExportTypeGetMemoryType(ASTCxt, ExpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` will be NULL. */ - const WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_ExportTypeGetGlobalType(ASTCxt, ExpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` will be NULL. */ - ``` + enum WasmEdge_ExternalType ExtType = WasmEdge_ExportTypeGetExternalType(ExpType); + /* + * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, `WasmEdge_ExternalType_Table`, + * `WasmEdge_ExternalType_Memory`, or `WasmEdge_ExternalType_Global`. + */ + WasmEdge_String ExtName = WasmEdge_ExportTypeGetExternalName(ExpType); + /* The `ExtName` should not be destroyed and the string buffer is binded into the `ASTCxt`. */ + const WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_ExportTypeGetFunctionType(ASTCxt, ExpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Function`, the `FuncTypeCxt` will be NULL. */ + const WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_ExportTypeGetTableType(ASTCxt, ExpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` will be NULL. */ + const WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_ExportTypeGetMemoryType(ASTCxt, ExpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` will be NULL. */ + const WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_ExportTypeGetGlobalType(ASTCxt, ExpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` will be NULL. */ + ``` ### Async @@ -389,54 +389,54 @@ After calling the [asynchronous execution APIs](#asynchronous-execution), develo 1. Wait for the asynchronous execution - Developers can wait the execution until finished: - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution. */ - WasmEdge_AsyncWait(Async); - WasmEdge_AsyncDelete(Async); - ``` - - Or developers can wait for a time limit. If the time limit exceeded, developers can choose to cancel the execution. For the interruptible execution in AOT mode, developers should set `TRUE` through the `WasmEdge_ConfigureCompilerSetInterruptible()` API into the configure context for the AOT compiler. - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution for 1 second. */ - bool IsEnd = WasmEdge_AsyncWaitFor(Async, 1000); - if (IsEnd) { - /* The execution finished. Developers can get the result. */ - WasmEdge_Result Res = WasmEdge_AsyncGet(/* ... Ignored */); - } else { - /* The time limit exceeded. Developers can keep waiting or cancel the execution. */ - WasmEdge_AsyncCancel(Async); - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, 0, NULL); - /* The result error code will be `WasmEdge_ErrCode_Interrupted`. */ - } - WasmEdge_AsyncDelete(Async); - ``` + Developers can wait the execution until finished: + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution. */ + WasmEdge_AsyncWait(Async); + WasmEdge_AsyncDelete(Async); + ``` + + Or developers can wait for a time limit. If the time limit exceeded, developers can choose to cancel the execution. For the interruptible execution in AOT mode, developers should set `TRUE` through the `WasmEdge_ConfigureCompilerSetInterruptible()` API into the configure context for the AOT compiler. + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution for 1 second. */ + bool IsEnd = WasmEdge_AsyncWaitFor(Async, 1000); + if (IsEnd) { + /* The execution finished. Developers can get the result. */ + WasmEdge_Result Res = WasmEdge_AsyncGet(/* ... Ignored */); + } else { + /* The time limit exceeded. Developers can keep waiting or cancel the execution. */ + WasmEdge_AsyncCancel(Async); + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, 0, NULL); + /* The result error code will be `WasmEdge_ErrCode_Interrupted`. */ + } + WasmEdge_AsyncDelete(Async); + ``` 2. Get the execution result of the asynchronous execution - Developers can use the `WasmEdge_AsyncGetReturnsLength()` API to get the return value list length. This function will block and wait for the execution. If the execution has finished, this function will return the length immediately. If the execution failed, this function will return `0`. This function can help the developers to create the buffer to get the return values. If developers have already known the buffer length, they can skip this function and use the `WasmEdge_AsyncGet()` API to get the result. + Developers can use the `WasmEdge_AsyncGetReturnsLength()` API to get the return value list length. This function will block and wait for the execution. If the execution has finished, this function will return the length immediately. If the execution failed, this function will return `0`. This function can help the developers to create the buffer to get the return values. If developers have already known the buffer length, they can skip this function and use the `WasmEdge_AsyncGet()` API to get the result. - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution and get the return value list length. */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - WasmEdge_AsyncDelete(Async); - ``` + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution and get the return value list length. */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + WasmEdge_AsyncDelete(Async); + ``` - The `WasmEdge_AsyncGet()` API will block and wait for the execution. If the execution has finished, this function will fill the return values into the buffer and return the execution result immediately. + The `WasmEdge_AsyncGet()` API will block and wait for the execution. If the execution has finished, this function will fill the return values into the buffer and return the execution result immediately. - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution and get the return values. */ - const uint32_t BUF_LEN = 256; - WasmEdge_Value Buf[BUF_LEN]; - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Buf, BUF_LEN); - WasmEdge_AsyncDelete(Async); - ``` + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution and get the return values. */ + const uint32_t BUF_LEN = 256; + WasmEdge_Value Buf[BUF_LEN]; + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Buf, BUF_LEN); + WasmEdge_AsyncDelete(Async); + ``` ### Configurations @@ -444,156 +444,156 @@ The configuration context, `WasmEdge_ConfigureContext`, manages the configuratio 1. Proposals - WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` context. - - ```c - enum WasmEdge_Proposal { - WasmEdge_Proposal_ImportExportMutGlobals = 0, - WasmEdge_Proposal_NonTrapFloatToIntConversions, - WasmEdge_Proposal_SignExtensionOperators, - WasmEdge_Proposal_MultiValue, - WasmEdge_Proposal_BulkMemoryOperations, - WasmEdge_Proposal_ReferenceTypes, - WasmEdge_Proposal_SIMD, - WasmEdge_Proposal_TailCall, - WasmEdge_Proposal_MultiMemories, - WasmEdge_Proposal_Annotations, - WasmEdge_Proposal_Memory64, - WasmEdge_Proposal_ExceptionHandling, - WasmEdge_Proposal_ExtendedConst, - WasmEdge_Proposal_Threads, - WasmEdge_Proposal_FunctionReferences - }; - ``` - - Developers can add or remove the proposals into the `Configure` context. - - ```c - /* - * By default, the following proposals have turned on initially: - * * Import/Export of mutable globals - * * Non-trapping float-to-int conversions - * * Sign-extension operators - * * Multi-value returns - * * Bulk memory operations - * * Reference types - * * Fixed-width SIMD - * - * For the current WasmEdge version, the following proposals are supported - * (turned of by default) additionally: - * * Tail-call - * * Multiple memories - * * Extended-const - * * Threads - */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddProposal(ConfCxt, WasmEdge_Proposal_MultiMemories); - WasmEdge_ConfigureRemoveProposal(ConfCxt, WasmEdge_Proposal_ReferenceTypes); - bool IsBulkMem = WasmEdge_ConfigureHasProposal(ConfCxt, WasmEdge_Proposal_BulkMemoryOperations); - /* The `IsBulkMem` will be `TRUE`. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` context. + + ```c + enum WasmEdge_Proposal { + WasmEdge_Proposal_ImportExportMutGlobals = 0, + WasmEdge_Proposal_NonTrapFloatToIntConversions, + WasmEdge_Proposal_SignExtensionOperators, + WasmEdge_Proposal_MultiValue, + WasmEdge_Proposal_BulkMemoryOperations, + WasmEdge_Proposal_ReferenceTypes, + WasmEdge_Proposal_SIMD, + WasmEdge_Proposal_TailCall, + WasmEdge_Proposal_MultiMemories, + WasmEdge_Proposal_Annotations, + WasmEdge_Proposal_Memory64, + WasmEdge_Proposal_ExceptionHandling, + WasmEdge_Proposal_ExtendedConst, + WasmEdge_Proposal_Threads, + WasmEdge_Proposal_FunctionReferences + }; + ``` + + Developers can add or remove the proposals into the `Configure` context. + + ```c + /* + * By default, the following proposals have turned on initially: + * * Import/Export of mutable globals + * * Non-trapping float-to-int conversions + * * Sign-extension operators + * * Multi-value returns + * * Bulk memory operations + * * Reference types + * * Fixed-width SIMD + * + * For the current WasmEdge version, the following proposals are supported + * (turned of by default) additionally: + * * Tail-call + * * Multiple memories + * * Extended-const + * * Threads + */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddProposal(ConfCxt, WasmEdge_Proposal_MultiMemories); + WasmEdge_ConfigureRemoveProposal(ConfCxt, WasmEdge_Proposal_ReferenceTypes); + bool IsBulkMem = WasmEdge_ConfigureHasProposal(ConfCxt, WasmEdge_Proposal_BulkMemoryOperations); + /* The `IsBulkMem` will be `TRUE`. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 2. Host registrations - This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` contexts. + This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` contexts. - ```c - enum WasmEdge_HostRegistration { - WasmEdge_HostRegistration_Wasi = 0, - WasmEdge_HostRegistration_WasmEdge_Process - }; - ``` + ```c + enum WasmEdge_HostRegistration { + WasmEdge_HostRegistration_Wasi = 0, + WasmEdge_HostRegistration_WasmEdge_Process + }; + ``` - The details will be introduced in the [preregistrations of VM context](#preregistrations). + The details will be introduced in the [preregistrations of VM context](#preregistrations). - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - bool IsHostWasi = WasmEdge_ConfigureHasHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The `IsHostWasi` will be `FALSE`. */ - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - IsHostWasi = WasmEdge_ConfigureHasHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The `IsHostWasi` will be `TRUE`. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + bool IsHostWasi = WasmEdge_ConfigureHasHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The `IsHostWasi` will be `FALSE`. */ + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + IsHostWasi = WasmEdge_ConfigureHasHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The `IsHostWasi` will be `TRUE`. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 3. Maximum memory pages - Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` contexts. + Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` contexts. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - uint32_t PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); - /* By default, the maximum memory page size is 65536. */ - WasmEdge_ConfigureSetMaxMemoryPage(ConfCxt, 1024); - /* Limit the memory size of each memory instance with not larger than 1024 pages (64 MiB). */ - PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); - /* The `PageSize` will be 1024. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + uint32_t PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); + /* By default, the maximum memory page size is 65536. */ + WasmEdge_ConfigureSetMaxMemoryPage(ConfCxt, 1024); + /* Limit the memory size of each memory instance with not larger than 1024 pages (64 MiB). */ + PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); + /* The `PageSize` will be 1024. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 4. AOT compiler options - The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. - - ```c - enum WasmEdge_CompilerOptimizationLevel { - // Disable as many optimizations as possible. - WasmEdge_CompilerOptimizationLevel_O0 = 0, - // Optimize quickly without destroying debuggability. - WasmEdge_CompilerOptimizationLevel_O1, - // Optimize for fast execution as much as possible without triggering - // significant incremental compile time or code size growth. - WasmEdge_CompilerOptimizationLevel_O2, - // Optimize for fast execution as much as possible. - WasmEdge_CompilerOptimizationLevel_O3, - // Optimize for small code size as much as possible without triggering - // significant incremental compile time or execution time slowdowns. - WasmEdge_CompilerOptimizationLevel_Os, - // Optimize for small code size as much as possible. - WasmEdge_CompilerOptimizationLevel_Oz - }; - - enum WasmEdge_CompilerOutputFormat { - // Native dynamic library format. - WasmEdge_CompilerOutputFormat_Native = 0, - // WebAssembly with AOT compiled codes in custom section. - WasmEdge_CompilerOutputFormat_Wasm - }; - ``` - - These configurations are only effective in `Compiler` contexts. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - /* By default, the optimization level is O3. */ - WasmEdge_ConfigureCompilerSetOptimizationLevel(ConfCxt, WasmEdge_CompilerOptimizationLevel_O2); - /* By default, the output format is universal WASM. */ - WasmEdge_ConfigureCompilerSetOutputFormat(ConfCxt, WasmEdge_CompilerOutputFormat_Native); - /* By default, the dump IR is `FALSE`. */ - WasmEdge_ConfigureCompilerSetDumpIR(ConfCxt, TRUE); - /* By default, the generic binary is `FALSE`. */ - WasmEdge_ConfigureCompilerSetGenericBinary(ConfCxt, TRUE); - /* By default, the interruptible is `FALSE`. - /* Set this option to `TRUE` to support the interruptible execution in AOT mode. */ - WasmEdge_ConfigureCompilerSetInterruptible(ConfCxt, TRUE); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. + + ```c + enum WasmEdge_CompilerOptimizationLevel { + // Disable as many optimizations as possible. + WasmEdge_CompilerOptimizationLevel_O0 = 0, + // Optimize quickly without destroying debuggability. + WasmEdge_CompilerOptimizationLevel_O1, + // Optimize for fast execution as much as possible without triggering + // significant incremental compile time or code size growth. + WasmEdge_CompilerOptimizationLevel_O2, + // Optimize for fast execution as much as possible. + WasmEdge_CompilerOptimizationLevel_O3, + // Optimize for small code size as much as possible without triggering + // significant incremental compile time or execution time slowdowns. + WasmEdge_CompilerOptimizationLevel_Os, + // Optimize for small code size as much as possible. + WasmEdge_CompilerOptimizationLevel_Oz + }; + + enum WasmEdge_CompilerOutputFormat { + // Native dynamic library format. + WasmEdge_CompilerOutputFormat_Native = 0, + // WebAssembly with AOT compiled codes in custom section. + WasmEdge_CompilerOutputFormat_Wasm + }; + ``` + + These configurations are only effective in `Compiler` contexts. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + /* By default, the optimization level is O3. */ + WasmEdge_ConfigureCompilerSetOptimizationLevel(ConfCxt, WasmEdge_CompilerOptimizationLevel_O2); + /* By default, the output format is universal WASM. */ + WasmEdge_ConfigureCompilerSetOutputFormat(ConfCxt, WasmEdge_CompilerOutputFormat_Native); + /* By default, the dump IR is `FALSE`. */ + WasmEdge_ConfigureCompilerSetDumpIR(ConfCxt, TRUE); + /* By default, the generic binary is `FALSE`. */ + WasmEdge_ConfigureCompilerSetGenericBinary(ConfCxt, TRUE); + /* By default, the interruptible is `FALSE`. + /* Set this option to `TRUE` to support the interruptible execution in AOT mode. */ + WasmEdge_ConfigureCompilerSetInterruptible(ConfCxt, TRUE); + WasmEdge_ConfigureDelete(ConfCxt); + ``` 5. Statistics options - The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` contexts. + The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` contexts. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - /* By default, the instruction counting is `FALSE` when running a compiled-WASM or a pure-WASM. */ - WasmEdge_ConfigureStatisticsSetInstructionCounting(ConfCxt, TRUE); - /* By default, the cost measurement is `FALSE` when running a compiled-WASM or a pure-WASM. */ - WasmEdge_ConfigureStatisticsSetCostMeasuring(ConfCxt, TRUE); - /* By default, the time measurement is `FALSE` when running a compiled-WASM or a pure-WASM. */ - WasmEdge_ConfigureStatisticsSetTimeMeasuring(ConfCxt, TRUE); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + /* By default, the instruction counting is `FALSE` when running a compiled-WASM or a pure-WASM. */ + WasmEdge_ConfigureStatisticsSetInstructionCounting(ConfCxt, TRUE); + /* By default, the cost measurement is `FALSE` when running a compiled-WASM or a pure-WASM. */ + WasmEdge_ConfigureStatisticsSetCostMeasuring(ConfCxt, TRUE); + /* By default, the time measurement is `FALSE` when running a compiled-WASM or a pure-WASM. */ + WasmEdge_ConfigureStatisticsSetTimeMeasuring(ConfCxt, TRUE); + WasmEdge_ConfigureDelete(ConfCxt); + ``` ### Statistics @@ -603,47 +603,47 @@ Before using statistics, the statistics configuration must be set. Otherwise, th 1. Instruction counter - The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` context from the `VM` context, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. + The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` context from the `VM` context, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. - ```c - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* - * ... - * After running the WASM functions with the `Statistics` context - */ - uint32_t Count = WasmEdge_StatisticsGetInstrCount(StatCxt); - double IPS = WasmEdge_StatisticsGetInstrPerSecond(StatCxt); - WasmEdge_StatisticsDelete(StatCxt); - ``` + ```c + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* + * ... + * After running the WASM functions with the `Statistics` context + */ + uint32_t Count = WasmEdge_StatisticsGetInstrCount(StatCxt); + double IPS = WasmEdge_StatisticsGetInstrPerSecond(StatCxt); + WasmEdge_StatisticsDelete(StatCxt); + ``` 2. Cost table - The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` context. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. - - ```c - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - uint64_t CostTable[16] = { - 0, 0, - 10, /* 0x02: Block */ - 11, /* 0x03: Loop */ - 12, /* 0x04: If */ - 12, /* 0x05: Else */ - 0, 0, 0, 0, 0, 0, - 20, /* 0x0C: Br */ - 21, /* 0x0D: Br_if */ - 22, /* 0x0E: Br_table */ - 0 - }; - /* Developers can set the costs of each instruction. The value not covered will be 0. */ - WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); - WasmEdge_StatisticsSetCostLimit(StatCxt, 5000000); - /* - * ... - * After running the WASM functions with the `Statistics` context - */ - uint64_t Cost = WasmEdge_StatisticsGetTotalCost(StatCxt); - WasmEdge_StatisticsDelete(StatCxt); - ``` + The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` context. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. + + ```c + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + uint64_t CostTable[16] = { + 0, 0, + 10, /* 0x02: Block */ + 11, /* 0x03: Loop */ + 12, /* 0x04: If */ + 12, /* 0x05: Else */ + 0, 0, 0, 0, 0, 0, + 20, /* 0x0C: Br */ + 21, /* 0x0D: Br_if */ + 22, /* 0x0E: Br_table */ + 0 + }; + /* Developers can set the costs of each instruction. The value not covered will be 0. */ + WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); + WasmEdge_StatisticsSetCostLimit(StatCxt, 5000000); + /* + * ... + * After running the WASM functions with the `Statistics` context + */ + uint64_t Cost = WasmEdge_StatisticsGetTotalCost(StatCxt); + WasmEdge_StatisticsDelete(StatCxt); + ``` ### Tools Driver @@ -695,161 +695,161 @@ The following shows the example of running the WASM for getting the Fibonacci. T 1. Run WASM functions rapidly - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - /* Create the configure context and add the WASI support. */ - /* This step is not necessary unless you need WASI support. */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The configure and store context to the VM creation can be NULL. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(5) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromFile(VMCxt, "fibonacci.wasm", FuncName, Params, 1, Returns, 1); - /* - * Developers can run the WASM binary from buffer with the `WasmEdge_VMRunWasmFromBuffer()` API, - * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMRunWasmFromASTModule()` API. - */ - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 5th Fibonacci number is 8 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get the result: 8 - ``` + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + /* Create the configure context and add the WASI support. */ + /* This step is not necessary unless you need WASI support. */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The configure and store context to the VM creation can be NULL. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(5) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromFile(VMCxt, "fibonacci.wasm", FuncName, Params, 1, Returns, 1); + /* + * Developers can run the WASM binary from buffer with the `WasmEdge_VMRunWasmFromBuffer()` API, + * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMRunWasmFromASTModule()` API. + */ + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` + + Then you can compile and run: (the 5th Fibonacci number is 8 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get the result: 8 + ``` 2. Instantiate and run WASM functions manually - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: - - ```c - #include - #include - int main() { - /* Create the configure context and add the WASI support. */ - /* This step is not necessary unless you need the WASI support. */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The configure and store context to the VM creation can be NULL. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(10) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Step 1: Load WASM file. */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - /* - * Developers can load the WASM binary from buffer with the `WasmEdge_VMLoadWasmFromBuffer()` API, - * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMLoadWasmFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 2: Validate the WASM module. */ - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 3: Instantiate the WASM module. */ - Res = WasmEdge_VMInstantiate(VMCxt); - /* - * Developers can load, validate, and instantiate another WASM module to replace the - * instantiated one. In this case, the old module will be cleared, but the registered - * modules are still kept. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 4: Execute WASM functions. You can execute functions repeatedly after instantiation. */ - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 1, Returns, 1); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 10th Fibonacci number is 89 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get the result: 89 - ``` - - The following graph explains the status of the `VM` context. - - ```text - |========================| - |------->| VM: Initiated | - | |========================| - | | - | LoadWasm - | | - | v - | |========================| - |--------| VM: Loaded |<-------| - | |========================| | - | | ^ | - | Validate | | - Cleanup | LoadWasm | - | v | LoadWasm - | |========================| | - |--------| VM: Validated | | - | |========================| | - | | ^ | - | Instantiate | | - | | RegisterModule | - | v | | - | |========================| | - |--------| VM: Instantiated |--------| - |========================| - | ^ - | | - -------------- - Instantiate, Execute, ExecuteRegistered - ``` - - The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or module instances in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```c + #include + #include + int main() { + /* Create the configure context and add the WASI support. */ + /* This step is not necessary unless you need the WASI support. */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The configure and store context to the VM creation can be NULL. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(10) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Step 1: Load WASM file. */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + /* + * Developers can load the WASM binary from buffer with the `WasmEdge_VMLoadWasmFromBuffer()` API, + * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMLoadWasmFromASTModule()` API. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 2: Validate the WASM module. */ + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 3: Instantiate the WASM module. */ + Res = WasmEdge_VMInstantiate(VMCxt); + /* + * Developers can load, validate, and instantiate another WASM module to replace the + * instantiated one. In this case, the old module will be cleared, but the registered + * modules are still kept. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 4: Execute WASM functions. You can execute functions repeatedly after instantiation. */ + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 1, Returns, 1); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` + + Then you can compile and run: (the 10th Fibonacci number is 89 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get the result: 89 + ``` + + The following graph explains the status of the `VM` context. + + ```text + |========================| + |------->| VM: Initiated | + | |========================| + | | + | LoadWasm + | | + | v + | |========================| + |--------| VM: Loaded |<-------| + | |========================| | + | | ^ | + | Validate | | + Cleanup | LoadWasm | + | v | LoadWasm + | |========================| | + |--------| VM: Validated | | + | |========================| | + | | ^ | + | Instantiate | | + | | RegisterModule | + | v | | + | |========================| | + |--------| VM: Instantiated |--------| + |========================| + | ^ + | | + -------------- + Instantiate, Execute, ExecuteRegistered + ``` + + The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or module instances in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. ### VM Creations @@ -877,88 +877,88 @@ WasmEdge provides the following built-in pre-registrations. 1. [WASI (WebAssembly System Interface)](https://github.com/WebAssembly/WASI) - Developers can turn on the WASI support for VM in the `Configure` context. + Developers can turn on the WASI support for VM in the `Configure` context. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - /* The following API can retrieve the pre-registration module instances from the VM context. */ - /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration. */ - WasmEdge_ModuleInstanceContext *WasiModule = - WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_Wasi); - /* Initialize the WASI. */ - WasmEdge_ModuleInstanceInitWASI(WasiModule, /* ... ignored */ ); - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + /* The following API can retrieve the pre-registration module instances from the VM context. */ + /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration. */ + WasmEdge_ModuleInstanceContext *WasiModule = + WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_Wasi); + /* Initialize the WASI. */ + WasmEdge_ModuleInstanceInitWASI(WasiModule, /* ... ignored */ ); + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + ``` - And also can create the WASI module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 2. [WasmEdge_Process](https://crates.io/crates/wasmedge_process_interface) - This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` plugin. + This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` plugin. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasmEdge_Process); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - /* The following API can retrieve the pre-registration module instances from the VM context. */ - /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration or the plugin load failed. */ - WasmEdge_ModuleInstanceContext *ProcModule = - WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_WasmEdge_Process); - /* Initialize the WasmEdge_Process. */ - WasmEdge_ModuleInstanceInitWasmEdgeProcess(ProcModule, /* ... ignored */ ); - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasmEdge_Process); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + /* The following API can retrieve the pre-registration module instances from the VM context. */ + /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration or the plugin load failed. */ + WasmEdge_ModuleInstanceContext *ProcModule = + WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_WasmEdge_Process); + /* Initialize the WasmEdge_Process. */ + WasmEdge_ModuleInstanceInitWasmEdgeProcess(ProcModule, /* ... ignored */ ); + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + ``` - And also can create the WasmEdge_Process module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WasmEdge_Process module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 3. [WASI-NN proposal](https://github.com/WebAssembly/wasi-nn) (`0.10.1` or upper only) - Developers can turn on the WASI-NN proposal support for VM in the `Configure` context. + Developers can turn on the WASI-NN proposal support for VM in the `Configure` context. - > Note: Please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. + > Note: Please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiNN); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - /* The following API can retrieve the pre-registration module instances from the VM context. */ - /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration or the plugin load failed. */ - WasmEdge_ModuleInstanceContext *NNModule = - WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_WasiNN); - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiNN); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + /* The following API can retrieve the pre-registration module instances from the VM context. */ + /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration or the plugin load failed. */ + WasmEdge_ModuleInstanceContext *NNModule = + WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_WasiNN); + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + ``` - And also can create the WASI-NN module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI-NN module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 4. [WASI-Crypto proposal](https://github.com/WebAssembly/wasi-crypto) (`0.10.1` or upper only) - Developers can turn on the WASI-Crypto proposal support for VM in the `Configure` context. - - > Note: Please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - /* The WASI-Crypto related configures are suggested to turn on together. */ - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Common); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiCrypto_AsymmetricCommon); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Kx); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Signatures); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Symmetric); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - /* The following API can retrieve the pre-registration module instances from the VM context. */ - /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration or the plugin load failed. */ - WasmEdge_ModuleInstanceContext *CryptoCommonModule = - WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_WasiCrypto_Common); - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - ``` - - And also can create the WASI-Crypto module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + Developers can turn on the WASI-Crypto proposal support for VM in the `Configure` context. + + > Note: Please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + /* The WASI-Crypto related configures are suggested to turn on together. */ + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Common); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiCrypto_AsymmetricCommon); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Kx); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Signatures); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Symmetric); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + /* The following API can retrieve the pre-registration module instances from the VM context. */ + /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration or the plugin load failed. */ + WasmEdge_ModuleInstanceContext *CryptoCommonModule = + WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_WasiCrypto_Common); + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + ``` + + And also can create the WASI-Crypto module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). ### Host Module Registrations @@ -985,225 +985,225 @@ In WebAssembly, the instances in WASM modules can be exported and can be importe 1. Register the WASM modules with exported module names - Unless the module instances have already contained the module names, every WASM module should be named uniquely when registering. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. + Unless the module instances have already contained the module names, every WASM module should be named uniquely when registering. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. + + ```c + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + WasmEdge_Result Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); + /* + * Developers can register the WASM module from buffer with the `WasmEdge_VMRegisterModuleFromBuffer()` API, + * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMRegisterModuleFromASTModule()` API. + */ + /* + * The result status should be checked. + * The error will occur if the WASM module instantiation failed or the module name conflicts. + */ + WasmEdge_StringDelete(ModName); + WasmEdge_VMDelete(VMCxt); + ``` + +2. Execute the functions in registered WASM modules - ```c - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - WasmEdge_Result Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); - /* + Assume that the C file `test.c` is as follows: + + ```c + #include + #include + int main() { + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(20) }; + WasmEdge_Value Returns[1]; + /* Names. */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Register the WASM module into VM. */ + Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); + /* * Developers can register the WASM module from buffer with the `WasmEdge_VMRegisterModuleFromBuffer()` API, * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMRegisterModuleFromASTModule()` API. */ - /* - * The result status should be checked. - * The error will occur if the WASM module instantiation failed or the module name conflicts. + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* + * The function "fib" in the "fibonacci.wasm" was exported with the module name "mod". + * As the same as host functions, other modules can import the function `"mod" "fib"`. */ - WasmEdge_StringDelete(ModName); - WasmEdge_VMDelete(VMCxt); - ``` -2. Execute the functions in registered WASM modules + /* + * Execute WASM functions in registered modules. + * Unlike the execution of functions, the registered functions can be invoked without + * `WasmEdge_VMInstantiate()` because the WASM module was instantiated when registering. + * Developers can also invoke the host functions directly with this API. + */ + Res = WasmEdge_VMExecuteRegistered(VMCxt, ModName, FuncName, Params, 1, Returns, 1); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + WasmEdge_StringDelete(ModName); + WasmEdge_StringDelete(FuncName); + WasmEdge_VMDelete(VMCxt); + return 0; + } + ``` + + Then you can compile and run: (the 20th Fibonacci number is 89 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get the result: 10946 + ``` - Assume that the C file `test.c` is as follows: - - ```c - #include - #include - int main() { - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(20) }; - WasmEdge_Value Returns[1]; - /* Names. */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Register the WASM module into VM. */ - Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); - /* - * Developers can register the WASM module from buffer with the `WasmEdge_VMRegisterModuleFromBuffer()` API, - * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMRegisterModuleFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* - * The function "fib" in the "fibonacci.wasm" was exported with the module name "mod". - * As the same as host functions, other modules can import the function `"mod" "fib"`. +### Asynchronous Execution + +1. Asynchronously run WASM functions rapidly + + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(20) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Asynchronously run the WASM function from file and get the `WasmEdge_Async` object. */ + WasmEdge_Async *Async = WasmEdge_VMAsyncRunWasmFromFile(VMCxt, "fibonacci.wasm", FuncName, Params, 1); + /* + * Developers can run the WASM binary from buffer with the `WasmEdge_VMAsyncRunWasmFromBuffer()` API, + * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMAsyncRunWasmFromASTModule()` API. */ - /* - * Execute WASM functions in registered modules. - * Unlike the execution of functions, the registered functions can be invoked without - * `WasmEdge_VMInstantiate()` because the WASM module was instantiated when registering. - * Developers can also invoke the host functions directly with this API. + /* Wait for the execution. */ + WasmEdge_AsyncWait(Async); + /* + * Developers can also use the `WasmEdge_AsyncGetReturnsLength()` or `WasmEdge_AsyncGet()` APIs + * to wait for the asynchronous execution. These APIs will wait until the execution finished. */ - Res = WasmEdge_VMExecuteRegistered(VMCxt, ModName, FuncName, Params, 1, Returns, 1); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - WasmEdge_StringDelete(ModName); - WasmEdge_StringDelete(FuncName); - WasmEdge_VMDelete(VMCxt); - return 0; - } - ``` - - Then you can compile and run: (the 20th Fibonacci number is 89 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get the result: 10946 - ``` -### Asynchronous Execution + /* Check the return values length. */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + /* The `Arity` should be 1. Developers can skip this step if they have known the return arity. */ -1. Asynchronously run WASM functions rapidly + /* Get the result. */ + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Returns, Arity); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_AsyncDelete(Async); + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(20) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Asynchronously run the WASM function from file and get the `WasmEdge_Async` object. */ - WasmEdge_Async *Async = WasmEdge_VMAsyncRunWasmFromFile(VMCxt, "fibonacci.wasm", FuncName, Params, 1); - /* - * Developers can run the WASM binary from buffer with the `WasmEdge_VMAsyncRunWasmFromBuffer()` API, - * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMAsyncRunWasmFromASTModule()` API. - */ - - /* Wait for the execution. */ - WasmEdge_AsyncWait(Async); - /* - * Developers can also use the `WasmEdge_AsyncGetReturnsLength()` or `WasmEdge_AsyncGet()` APIs - * to wait for the asynchronous execution. These APIs will wait until the execution finished. - */ - - /* Check the return values length. */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - /* The `Arity` should be 1. Developers can skip this step if they have known the return arity. */ - - /* Get the result. */ - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Returns, Arity); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_AsyncDelete(Async); - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 20th Fibonacci number is 10946 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get the result: 10946 - ``` + Then you can compile and run: (the 20th Fibonacci number is 10946 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get the result: 10946 + ``` 2. Instantiate and asynchronously run WASM functions manually - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: - - ```c - #include - #include - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(25) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Step 1: Load WASM file. */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - /* - * Developers can load the WASM binary from buffer with the `WasmEdge_VMLoadWasmFromBuffer()` API, - * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMLoadWasmFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 2: Validate the WASM module. */ - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 3: Instantiate the WASM module. */ - Res = WasmEdge_VMInstantiate(VMCxt); - /* - * Developers can load, validate, and instantiate another WASM module to replace the - * instantiated one. In this case, the old module will be cleared, but the registered - * modules are still kept. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 4: Asynchronously execute the WASM function and get the `WasmEdge_Async` object. */ - WasmEdge_Async *Async = WasmEdge_VMAsyncExecute(VMCxt, FuncName, Params, 1); - /* - * Developers can execute functions repeatedly after instantiation. - * For invoking the registered functions, you can use the `WasmEdge_VMAsyncExecuteRegistered()` API. - */ - - /* Wait and check the return values length. */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - /* The `Arity` should be 1. Developers can skip this step if they have known the return arity. */ - - /* Get the result. */ - Res = WasmEdge_AsyncGet(Async, Returns, Arity); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_AsyncDelete(Async); - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - } - ``` - - Then you can compile and run: (the 25th Fibonacci number is 121393 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get the result: 121393 - ``` + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```c + #include + #include + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(25) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Step 1: Load WASM file. */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + /* + * Developers can load the WASM binary from buffer with the `WasmEdge_VMLoadWasmFromBuffer()` API, + * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMLoadWasmFromASTModule()` API. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 2: Validate the WASM module. */ + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 3: Instantiate the WASM module. */ + Res = WasmEdge_VMInstantiate(VMCxt); + /* + * Developers can load, validate, and instantiate another WASM module to replace the + * instantiated one. In this case, the old module will be cleared, but the registered + * modules are still kept. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 4: Asynchronously execute the WASM function and get the `WasmEdge_Async` object. */ + WasmEdge_Async *Async = WasmEdge_VMAsyncExecute(VMCxt, FuncName, Params, 1); + /* + * Developers can execute functions repeatedly after instantiation. + * For invoking the registered functions, you can use the `WasmEdge_VMAsyncExecuteRegistered()` API. + */ + + /* Wait and check the return values length. */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + /* The `Arity` should be 1. Developers can skip this step if they have known the return arity. */ + + /* Get the result. */ + Res = WasmEdge_AsyncGet(Async, Returns, Arity); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_AsyncDelete(Async); + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + } + ``` + + Then you can compile and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get the result: 121393 + ``` ### Instance Tracing @@ -1211,126 +1211,126 @@ Sometimes the developers may have requirements to get the instances of the WASM 1. Store - If the `VM` context is created without assigning a `Store` context, the `VM` context will allocate and own a `Store` context. + If the `VM` context is created without assigning a `Store` context, the `VM` context will allocate and own a `Store` context. - ```c - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - WasmEdge_StoreContext *StoreCxt = WasmEdge_VMGetStoreContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_StoreDelete()`. */ - WasmEdge_VMDelete(VMCxt); - ``` + ```c + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + WasmEdge_StoreContext *StoreCxt = WasmEdge_VMGetStoreContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_StoreDelete()`. */ + WasmEdge_VMDelete(VMCxt); + ``` - Developers can also create the `VM` context with a `Store` context. In this case, developers should guarantee the life cycle of the `Store` context. Please refer to the [Store Contexts](#store) for the details about the `Store` context APIs. + Developers can also create the `VM` context with a `Store` context. In this case, developers should guarantee the life cycle of the `Store` context. Please refer to the [Store Contexts](#store) for the details about the `Store` context APIs. - ```c - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); - WasmEdge_StoreContext *StoreCxtMock = WasmEdge_VMGetStoreContext(VMCxt); - /* The `StoreCxt` and the `StoreCxtMock` are the same. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StoreDelete(StoreCxt); - ``` + ```c + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); + WasmEdge_StoreContext *StoreCxtMock = WasmEdge_VMGetStoreContext(VMCxt); + /* The `StoreCxt` and the `StoreCxtMock` are the same. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StoreDelete(StoreCxt); + ``` 2. List exported functions - After the WASM module instantiation, developers can use the `WasmEdge_VMExecute()` API to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); - - WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - WasmEdge_VMValidate(VMCxt); - WasmEdge_VMInstantiate(VMCxt); - - /* List the exported functions. */ - /* Get the number of exported functions. */ - uint32_t FuncNum = WasmEdge_VMGetFunctionListLength(VMCxt); - /* Create the name buffers and the function type buffers. */ - const uint32_t BUF_LEN = 256; - WasmEdge_String FuncNames[BUF_LEN]; - WasmEdge_FunctionTypeContext *FuncTypes[BUF_LEN]; - /* - * Get the export function list. - * If the function list length is larger than the buffer length, the overflowed data will be discarded. - * The `FuncNames` and `FuncTypes` can be NULL if developers don't need them. - */ - uint32_t RealFuncNum = WasmEdge_VMGetFunctionList(VMCxt, FuncNames, FuncTypes, BUF_LEN); - - for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { - char Buf[BUF_LEN]; - uint32_t Size = WasmEdge_StringCopy(FuncNames[I], Buf, sizeof(Buf)); - printf("Get exported function string length: %u, name: %s\n", Size, Buf); - /* - * The function names should be __NOT__ destroyed. - * The returned function type contexts should __NOT__ be destroyed. - */ - } - return 0; - } - ``` - - Then you can compile and run: (the only exported function in `fibonacci.wasm` is `fib`) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get exported function string length: 3, name: fib - ``` - - If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` context from the `VM` context and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. + After the WASM module instantiation, developers can use the `WasmEdge_VMExecute()` API to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); + + WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + WasmEdge_VMValidate(VMCxt); + WasmEdge_VMInstantiate(VMCxt); + + /* List the exported functions. */ + /* Get the number of exported functions. */ + uint32_t FuncNum = WasmEdge_VMGetFunctionListLength(VMCxt); + /* Create the name buffers and the function type buffers. */ + const uint32_t BUF_LEN = 256; + WasmEdge_String FuncNames[BUF_LEN]; + WasmEdge_FunctionTypeContext *FuncTypes[BUF_LEN]; + /* + * Get the export function list. + * If the function list length is larger than the buffer length, the overflowed data will be discarded. + * The `FuncNames` and `FuncTypes` can be NULL if developers don't need them. + */ + uint32_t RealFuncNum = WasmEdge_VMGetFunctionList(VMCxt, FuncNames, FuncTypes, BUF_LEN); + + for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { + char Buf[BUF_LEN]; + uint32_t Size = WasmEdge_StringCopy(FuncNames[I], Buf, sizeof(Buf)); + printf("Get exported function string length: %u, name: %s\n", Size, Buf); + /* + * The function names should be __NOT__ destroyed. + * The returned function type contexts should __NOT__ be destroyed. + */ + } + return 0; + } + ``` + + Then you can compile and run: (the only exported function in `fibonacci.wasm` is `fib`) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get exported function string length: 3, name: fib + ``` + + If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` context from the `VM` context and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. 3. Get function types - The `VM` context provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. + The `VM` context provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. - ```c - /* - * ... - * Assume that a WASM module is instantiated in `VMCxt`. - */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - const WasmEdge_FunctionTypeContext *FuncType = WasmEdge_VMGetFunctionType(VMCxt, FuncName); - /* - * Developers can get the function types of functions in the registered modules - * via the `WasmEdge_VMGetFunctionTypeRegistered()` API with the module name. - * If the function is not found, these APIs will return `NULL`. - * The returned function type contexts should __NOT__ be destroyed. - */ - WasmEdge_StringDelete(FuncName); - ``` + ```c + /* + * ... + * Assume that a WASM module is instantiated in `VMCxt`. + */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + const WasmEdge_FunctionTypeContext *FuncType = WasmEdge_VMGetFunctionType(VMCxt, FuncName); + /* + * Developers can get the function types of functions in the registered modules + * via the `WasmEdge_VMGetFunctionTypeRegistered()` API with the module name. + * If the function is not found, these APIs will return `NULL`. + * The returned function type contexts should __NOT__ be destroyed. + */ + WasmEdge_StringDelete(FuncName); + ``` 4. Get the active module - After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` context. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `WasmEdge_VMGetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. + After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` context. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `WasmEdge_VMGetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. - ```c - /* - * ... - * Assume that a WASM module is instantiated in `VMCxt`. - */ - const WasmEdge_ModuleInstanceContext *ModCxt = WasmEdge_VMGetActiveModule(VMCxt); - /* - * If there's no WASM module instantiated, this API will return `NULL`. - * The returned module instance context should __NOT__ be destroyed. - */ - ``` + ```c + /* + * ... + * Assume that a WASM module is instantiated in `VMCxt`. + */ + const WasmEdge_ModuleInstanceContext *ModCxt = WasmEdge_VMGetActiveModule(VMCxt); + /* + * If there's no WASM module instantiated, this API will return `NULL`. + * The returned module instance context should __NOT__ be destroyed. + */ + ``` 5. Get the components - The `VM` context is composed by the `Loader`, `Validator`, and `Executor` contexts. For the developers who want to use these contexts without creating another instances, these APIs can help developers to get them from the `VM` context. The get contexts are owned by the `VM` context, and developers should not call their delete functions. + The `VM` context is composed by the `Loader`, `Validator`, and `Executor` contexts. For the developers who want to use these contexts without creating another instances, these APIs can help developers to get them from the `VM` context. The get contexts are owned by the `VM` context, and developers should not call their delete functions. - ```c - WasmEdge_LoaderContext *LoadCxt = WasmEdge_VMGetLoaderContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_LoaderDelete()`. */ - WasmEdge_ValidatorContext *ValidCxt = WasmEdge_VMGetValidatorContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_ValidatorDelete()`. */ - WasmEdge_ExecutorContext *ExecCxt = WasmEdge_VMGetExecutorContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_ExecutorDelete()`. */ - ``` + ```c + WasmEdge_LoaderContext *LoadCxt = WasmEdge_VMGetLoaderContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_LoaderDelete()`. */ + WasmEdge_ValidatorContext *ValidCxt = WasmEdge_VMGetValidatorContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_ValidatorDelete()`. */ + WasmEdge_ExecutorContext *ExecCxt = WasmEdge_VMGetExecutorContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_ExecutorDelete()`. */ + ``` ## WasmEdge Runtime @@ -1500,129 +1500,129 @@ The `Executor` context is the executor for both WASM and compiled-WASM. This obj 1. Instantiate and register an `AST module` as a named `Module` instance - As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` contexts, developers can instantiate and register an `AST module` contexts into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). - - ```c - /* - * ... - * Assume that the `ASTCxt` is the output AST module context from the loader context - * and has passed the validation. - * Assume that the `ConfCxt` is the configure context. - */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* Create the executor context. The configure and the statistics contexts can be NULL. */ - WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* Create the store context. The store context is the object to link the modules for imports and exports. */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* Result. */ - WasmEdge_Result Res; - - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - /* The output module instance. */ - WasmEdge_ModuleInstanceContext *ModCxt = NULL; - /* Register the WASM module into the store with the export module name "mod". */ - Res = WasmEdge_ExecutorRegister(ExecCxt, &ModCxt, StoreCxt, ASTCxt, ModName); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - WasmEdge_StringDelete(ModName); - - /* ... */ - - /* After the execution, the resources should be released. */ - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_ModuleInstanceDelete(ModCxt); - ``` + As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` contexts, developers can instantiate and register an `AST module` contexts into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader context + * and has passed the validation. + * Assume that the `ConfCxt` is the configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* Create the executor context. The configure and the statistics contexts can be NULL. */ + WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* Create the store context. The store context is the object to link the modules for imports and exports. */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* Result. */ + WasmEdge_Result Res; + + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + /* The output module instance. */ + WasmEdge_ModuleInstanceContext *ModCxt = NULL; + /* Register the WASM module into the store with the export module name "mod". */ + Res = WasmEdge_ExecutorRegister(ExecCxt, &ModCxt, StoreCxt, ASTCxt, ModName); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + WasmEdge_StringDelete(ModName); + + /* ... */ + + /* After the execution, the resources should be released. */ + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_ModuleInstanceDelete(ModCxt); + ``` 2. Register an existing `Module` instance and export the module name - Besides instantiating and registering an `AST module` contexts, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). - - ```c - /* + Besides instantiating and registering an `AST module` contexts, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader context + * and has passed the validation. + * Assume that the `ConfCxt` is the configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* Create the executor context. The configure and the statistics contexts can be NULL. */ + WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* Create the store context. The store context is the object to link the modules for imports and exports. */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* Result. */ + WasmEdge_Result Res; + + /* Create a module instance for host functions. */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("host-module"); + WasmEdge_ModuleInstanceContext *HostModCxt = WasmEdge_ModuleInstanceCreate(ModName); + WasmEdge_StringDelete(ModName); + /* * ... - * Assume that the `ASTCxt` is the output AST module context from the loader context - * and has passed the validation. - * Assume that the `ConfCxt` is the configure context. + * Create and add the host functions, tables, memories, and globals into the module instance. */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* Create the executor context. The configure and the statistics contexts can be NULL. */ - WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* Create the store context. The store context is the object to link the modules for imports and exports. */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* Result. */ - WasmEdge_Result Res; - - /* Create a module instance for host functions. */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("host-module"); - WasmEdge_ModuleInstanceContext *HostModCxt = WasmEdge_ModuleInstanceCreate(ModName); - WasmEdge_StringDelete(ModName); - /* - * ... - * Create and add the host functions, tables, memories, and globals into the module instance. - */ - /* Register the module instance into store with the exported module name. */ - /* The export module name is in the module instance already. */ - Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, HostModCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } + /* Register the module instance into store with the exported module name. */ + /* The export module name is in the module instance already. */ + Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, HostModCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } - /* ... */ + /* ... */ - /* After the execution, the resources should be released. */ - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_ModuleInstanceDelete(ModCxt); - ``` + /* After the execution, the resources should be released. */ + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_ModuleInstanceDelete(ModCxt); + ``` 3. Instantiate an `AST module` to an anonymous `Module` instance - WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` context for linking. - - ```c - /* - * ... - * Assume that the `ASTCxt` is the output AST module context from the loader context - * and has passed the validation. - * Assume that the `ConfCxt` is the configure context. - */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* Create the executor context. The configure and the statistics contexts can be NULL. */ - WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* Create the store context. The store context is the object to link the modules for imports and exports. */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - - /* The output module instance. */ - WasmEdge_ModuleInstanceContext *ModCxt = NULL; - /* Instantiate the WASM module. */ - WasmEdge_Result Res = WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt, StoreCxt, ASTCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM instantiation failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* ... */ - - /* After the execution, the resources should be released. */ - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_ModuleInstanceDelete(ModCxt); - ``` + WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` context for linking. + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader context + * and has passed the validation. + * Assume that the `ConfCxt` is the configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* Create the executor context. The configure and the statistics contexts can be NULL. */ + WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* Create the store context. The store context is the object to link the modules for imports and exports. */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + + /* The output module instance. */ + WasmEdge_ModuleInstanceContext *ModCxt = NULL; + /* Instantiate the WASM module. */ + WasmEdge_Result Res = WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt, StoreCxt, ASTCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM instantiation failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* ... */ + + /* After the execution, the resources should be released. */ + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_ModuleInstanceDelete(ModCxt); + ``` 4. Invoke functions - After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `WasmEdge_ExecutorInvoke()` API. + After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `WasmEdge_ExecutorInvoke()` API. ### AST Module @@ -1692,179 +1692,179 @@ The instances are the runtime structures of WASM. Developers can retrieve the `M 1. Module instance - After instantiating or registering an `AST module` context, developers will get a `Module` instance as the result, and have the responsibility to destroy it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. - - ```c - /* - * ... - * Instantiate a WASM module via the executor context and get the `ModCxt` as the output module instance. - */ - - /* Try to list the exported instance of the instantiated WASM module. */ - /* Take the function instances for example here. */ - uint32_t FuncNum = WasmEdge_ModuleInstanceListFunctionLength(ModCxt); - /* Create the name buffers. */ - const uint32_t BUF_LEN = 256; - WasmEdge_String FuncNames[BUF_LEN]; - /* If the list length is larger than the buffer length, the overflowed data will be discarded. */ - uint32_t RealFuncNum = WasmEdge_ModuleInstanceListFunction(ModCxt, FuncNames, BUF_LEN); - for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { - /* Working with the function name `FuncNames[I]` ... */ - /* The function names should __NOT__ be destroyed. */ - } - - /* Try to find the exported instance of the instantiated WASM module. */ - /* Take the function instances for example here. */ - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - WasmEdge_FunctionInstanceContext *FuncCxt = WasmEdge_ModuleInstanceFindFunction(ModCxt, FuncName); - /* `FuncCxt` will be `NULL` if the function not found. */ - /* The returned instance is owned by the module instance context and should __NOT__ be destroyed. */ - WasmEdge_StringDelete(FuncName); - ``` + After instantiating or registering an `AST module` context, developers will get a `Module` instance as the result, and have the responsibility to destroy it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. + + ```c + /* + * ... + * Instantiate a WASM module via the executor context and get the `ModCxt` as the output module instance. + */ + + /* Try to list the exported instance of the instantiated WASM module. */ + /* Take the function instances for example here. */ + uint32_t FuncNum = WasmEdge_ModuleInstanceListFunctionLength(ModCxt); + /* Create the name buffers. */ + const uint32_t BUF_LEN = 256; + WasmEdge_String FuncNames[BUF_LEN]; + /* If the list length is larger than the buffer length, the overflowed data will be discarded. */ + uint32_t RealFuncNum = WasmEdge_ModuleInstanceListFunction(ModCxt, FuncNames, BUF_LEN); + for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { + /* Working with the function name `FuncNames[I]` ... */ + /* The function names should __NOT__ be destroyed. */ + } + + /* Try to find the exported instance of the instantiated WASM module. */ + /* Take the function instances for example here. */ + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + WasmEdge_FunctionInstanceContext *FuncCxt = WasmEdge_ModuleInstanceFindFunction(ModCxt, FuncName); + /* `FuncCxt` will be `NULL` if the function not found. */ + /* The returned instance is owned by the module instance context and should __NOT__ be destroyed. */ + WasmEdge_StringDelete(FuncName); + ``` 2. Function instance - [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` contexts for host functions and add them into an `Module` instance context for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` contexts through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). + [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` contexts for host functions and add them into an `Module` instance context for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` contexts through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). - ```c - /* Retrieve the function instance from the module instance context. */ - WasmEdge_FunctionInstanceContext *FuncCxt = ...; - WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_FunctionInstanceGetFunctionType(FuncCxt); - /* The `FuncTypeCxt` is owned by the `FuncCxt` and should __NOT__ be destroyed. */ + ```c + /* Retrieve the function instance from the module instance context. */ + WasmEdge_FunctionInstanceContext *FuncCxt = ...; + WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_FunctionInstanceGetFunctionType(FuncCxt); + /* The `FuncTypeCxt` is owned by the `FuncCxt` and should __NOT__ be destroyed. */ - /* For the function instance creation, please refer to the `Host Function` guide. */ - ``` + /* For the function instance creation, please refer to the `Host Function` guide. */ + ``` 3. Table instance - In WasmEdge, developers can create the `Table` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Table` contexts supply APIs to control the data in table instances. - - ```c - WasmEdge_Limit TabLimit = {.HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - /* Create the table type with limit and the `FuncRef` element type. */ - WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TabLimit); - /* Create the table instance with table type. */ - WasmEdge_TableInstanceContext *HostTable = WasmEdge_TableInstanceCreate(TabTypeCxt); - /* Delete the table type. */ - WasmEdge_TableTypeDelete(TabTypeCxt); - WasmEdge_Result Res; - WasmEdge_Value Data; - - TabTypeCxt = WasmEdge_TableInstanceGetTableType(HostTable); - /* The `TabTypeCxt` got from table instance is owned by the `HostTable` and should __NOT__ be destroyed. */ - enum WasmEdge_RefType RefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); - /* `RefType` will be `WasmEdge_RefType_FuncRef`. */ - Data = WasmEdge_ValueGenFuncRef(5); - Res = WasmEdge_TableInstanceSetData(HostTable, Data, 3); - /* Set the function index 5 to the table[3]. */ - /* - * This will get an "out of bounds table access" error - * because the position (13) is out of the table size (10): - * Res = WasmEdge_TableInstanceSetData(HostTable, Data, 13); - */ - Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 3); - /* Get the FuncRef value of the table[3]. */ - /* - * This will get an "out of bounds table access" error - * because the position (13) is out of the table size (10): - * Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 13); - */ + In WasmEdge, developers can create the `Table` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Table` contexts supply APIs to control the data in table instances. + + ```c + WasmEdge_Limit TabLimit = {.HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + /* Create the table type with limit and the `FuncRef` element type. */ + WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TabLimit); + /* Create the table instance with table type. */ + WasmEdge_TableInstanceContext *HostTable = WasmEdge_TableInstanceCreate(TabTypeCxt); + /* Delete the table type. */ + WasmEdge_TableTypeDelete(TabTypeCxt); + WasmEdge_Result Res; + WasmEdge_Value Data; + + TabTypeCxt = WasmEdge_TableInstanceGetTableType(HostTable); + /* The `TabTypeCxt` got from table instance is owned by the `HostTable` and should __NOT__ be destroyed. */ + enum WasmEdge_RefType RefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); + /* `RefType` will be `WasmEdge_RefType_FuncRef`. */ + Data = WasmEdge_ValueGenFuncRef(5); + Res = WasmEdge_TableInstanceSetData(HostTable, Data, 3); + /* Set the function index 5 to the table[3]. */ + /* + * This will get an "out of bounds table access" error + * because the position (13) is out of the table size (10): + * Res = WasmEdge_TableInstanceSetData(HostTable, Data, 13); + */ + Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 3); + /* Get the FuncRef value of the table[3]. */ + /* + * This will get an "out of bounds table access" error + * because the position (13) is out of the table size (10): + * Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 13); + */ - uint32_t Size = WasmEdge_TableInstanceGetSize(HostTable); - /* `Size` will be 10. */ - Res = WasmEdge_TableInstanceGrow(HostTable, 6); - /* Grow the table size of 6, the table size will be 16. */ - /* - * This will get an "out of bounds table access" error because - * the size (16 + 6) will reach the table limit(20): - * Res = WasmEdge_TableInstanceGrow(HostTable, 6); - */ + uint32_t Size = WasmEdge_TableInstanceGetSize(HostTable); + /* `Size` will be 10. */ + Res = WasmEdge_TableInstanceGrow(HostTable, 6); + /* Grow the table size of 6, the table size will be 16. */ + /* + * This will get an "out of bounds table access" error because + * the size (16 + 6) will reach the table limit(20): + * Res = WasmEdge_TableInstanceGrow(HostTable, 6); + */ - WasmEdge_TableInstanceDelete(HostTable); - ``` + WasmEdge_TableInstanceDelete(HostTable); + ``` 4. Memory instance - In WasmEdge, developers can create the `Memory` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Memory` contexts supply APIs to control the data in memory instances. - - ```c - WasmEdge_Limit MemLimit = {.HasMax = true, .Shared = false, .Min = 1, .Max = 5}; - /* Create the memory type with limit. The memory page size is 64KiB. */ - WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLimit); - /* Create the memory instance with memory type. */ - WasmEdge_MemoryInstanceContext *HostMemory = WasmEdge_MemoryInstanceCreate(MemTypeCxt); - /* Delete the memory type. */ - WasmEdge_MemoryTypeDelete(MemTypeCxt); - WasmEdge_Result Res; - uint8_t Buf[256]; - - Buf[0] = 0xAA; - Buf[1] = 0xBB; - Buf[2] = 0xCC; - Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0x1000, 3); - /* Set the data[0:2] to the memory[4096:4098]. */ - /* - * This will get an "out of bounds memory access" error - * because [65535:65537] is out of 1 page size (65536): - * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); - */ - Buf[0] = 0; - Buf[1] = 0; - Buf[2] = 0; - Res = WasmEdge_MemoryInstanceGetData(HostMemory, Buf, 0x1000, 3); - /* Get the memory[4096:4098]. Buf[0:2] will be `{0xAA, 0xBB, 0xCC}`. */ - /* - * This will get an "out of bounds memory access" error - * because [65535:65537] is out of 1 page size (65536): - * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); - */ + In WasmEdge, developers can create the `Memory` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Memory` contexts supply APIs to control the data in memory instances. + + ```c + WasmEdge_Limit MemLimit = {.HasMax = true, .Shared = false, .Min = 1, .Max = 5}; + /* Create the memory type with limit. The memory page size is 64KiB. */ + WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLimit); + /* Create the memory instance with memory type. */ + WasmEdge_MemoryInstanceContext *HostMemory = WasmEdge_MemoryInstanceCreate(MemTypeCxt); + /* Delete the memory type. */ + WasmEdge_MemoryTypeDelete(MemTypeCxt); + WasmEdge_Result Res; + uint8_t Buf[256]; + + Buf[0] = 0xAA; + Buf[1] = 0xBB; + Buf[2] = 0xCC; + Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0x1000, 3); + /* Set the data[0:2] to the memory[4096:4098]. */ + /* + * This will get an "out of bounds memory access" error + * because [65535:65537] is out of 1 page size (65536): + * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); + */ + Buf[0] = 0; + Buf[1] = 0; + Buf[2] = 0; + Res = WasmEdge_MemoryInstanceGetData(HostMemory, Buf, 0x1000, 3); + /* Get the memory[4096:4098]. Buf[0:2] will be `{0xAA, 0xBB, 0xCC}`. */ + /* + * This will get an "out of bounds memory access" error + * because [65535:65537] is out of 1 page size (65536): + * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); + */ - uint32_t PageSize = WasmEdge_MemoryInstanceGetPageSize(HostMemory); - /* `PageSize` will be 1. */ - Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 2); - /* Grow the page size of 2, the page size of the memory instance will be 3. */ - /* - * This will get an "out of bounds memory access" error because - * the page size (3 + 3) will reach the memory limit(5): - * Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 3); - */ + uint32_t PageSize = WasmEdge_MemoryInstanceGetPageSize(HostMemory); + /* `PageSize` will be 1. */ + Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 2); + /* Grow the page size of 2, the page size of the memory instance will be 3. */ + /* + * This will get an "out of bounds memory access" error because + * the page size (3 + 3) will reach the memory limit(5): + * Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 3); + */ - WasmEdge_MemoryInstanceDelete(HostMemory); - ``` + WasmEdge_MemoryInstanceDelete(HostMemory); + ``` 5. Global instance - In WasmEdge, developers can create the `Global` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Global` contexts supply APIs to control the value in global instances. - - ```c - WasmEdge_Value Val = WasmEdge_ValueGenI64(1000); - /* Create the global type with value type and mutation. */ - WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate(WasmEdge_ValType_I64, WasmEdge_Mutability_Var); - /* Create the global instance with value and global type. */ - WasmEdge_GlobalInstanceContext *HostGlobal = WasmEdge_GlobalInstanceCreate(GlobTypeCxt, Val); - /* Delete the global type. */ - WasmEdge_GlobalTypeDelete(GlobTypeCxt); - WasmEdge_Result Res; - - GlobTypeCxt = WasmEdge_GlobalInstanceGetGlobalType(HostGlobal); - /* The `GlobTypeCxt` got from global instance is owned by the `HostGlobal` and should __NOT__ be destroyed. */ - enum WasmEdge_ValType ValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); - /* `ValType` will be `WasmEdge_ValType_I64`. */ - enum WasmEdge_Mutability ValMut = WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); - /* `ValMut` will be `WasmEdge_Mutability_Var`. */ - - WasmEdge_GlobalInstanceSetValue(HostGlobal, WasmEdge_ValueGenI64(888)); - /* - * Set the value u64(888) to the global. - * This function will do nothing if the value type mismatched or - * the global mutability is `WasmEdge_Mutability_Const`. - */ - WasmEdge_Value GlobVal = WasmEdge_GlobalInstanceGetValue(HostGlobal); - /* Get the value (888 now) of the global context. */ + In WasmEdge, developers can create the `Global` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Global` contexts supply APIs to control the value in global instances. + + ```c + WasmEdge_Value Val = WasmEdge_ValueGenI64(1000); + /* Create the global type with value type and mutation. */ + WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate(WasmEdge_ValType_I64, WasmEdge_Mutability_Var); + /* Create the global instance with value and global type. */ + WasmEdge_GlobalInstanceContext *HostGlobal = WasmEdge_GlobalInstanceCreate(GlobTypeCxt, Val); + /* Delete the global type. */ + WasmEdge_GlobalTypeDelete(GlobTypeCxt); + WasmEdge_Result Res; + + GlobTypeCxt = WasmEdge_GlobalInstanceGetGlobalType(HostGlobal); + /* The `GlobTypeCxt` got from global instance is owned by the `HostGlobal` and should __NOT__ be destroyed. */ + enum WasmEdge_ValType ValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); + /* `ValType` will be `WasmEdge_ValType_I64`. */ + enum WasmEdge_Mutability ValMut = WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); + /* `ValMut` will be `WasmEdge_Mutability_Var`. */ + + WasmEdge_GlobalInstanceSetValue(HostGlobal, WasmEdge_ValueGenI64(888)); + /* + * Set the value u64(888) to the global. + * This function will do nothing if the value type mismatched or + * the global mutability is `WasmEdge_Mutability_Const`. + */ + WasmEdge_Value GlobVal = WasmEdge_GlobalInstanceGetValue(HostGlobal); + /* Get the value (888 now) of the global context. */ - WasmEdge_GlobalInstanceDelete(HostGlobal); - ``` + WasmEdge_GlobalInstanceDelete(HostGlobal); + ``` ### Host Functions @@ -1872,402 +1872,402 @@ The instances are the runtime structures of WASM. Developers can retrieve the `M 1. Host function allocation - Developers can define C functions with the following function signature as the host function body: - - ```c - typedef WasmEdge_Result (*WasmEdge_HostFunc_t)( - void *Data, - WasmEdge_MemoryInstanceContext *MemCxt, - const WasmEdge_Value *Params, - WasmEdge_Value *Returns); - ``` - - The example of an `add` host function to add 2 `i32` values: - - ```c - WasmEdge_Result Add(void *, WasmEdge_MemoryInstanceContext *, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - /* - * Params: {i32, i32} - * Returns: {i32} - * Developers should take care about the function type. - */ - /* Retrieve the value 1. */ - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - /* Retrieve the value 2. */ - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - /* Output value 1 is Val1 + Val2. */ - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - /* Return the status of success. */ - return WasmEdge_Result_Success; - } - ``` - - Then developers can create `Function` context with the host function body and the function type: - - ```c - enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; - enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; - /* Create a function type: {i32, i32} -> {i32}. */ - WasmEdge_FunctionTypeContext *HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - /* - * Create a function context with the function type and host function body. - * The `Cost` parameter can be 0 if developers do not need the cost measuring. + Developers can define C functions with the following function signature as the host function body: + + ```c + typedef WasmEdge_Result (*WasmEdge_HostFunc_t)( + void *Data, + WasmEdge_MemoryInstanceContext *MemCxt, + const WasmEdge_Value *Params, + WasmEdge_Value *Returns); + ``` + + The example of an `add` host function to add 2 `i32` values: + + ```c + WasmEdge_Result Add(void *, WasmEdge_MemoryInstanceContext *, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + /* + * Params: {i32, i32} + * Returns: {i32} + * Developers should take care about the function type. */ - WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - /* - * The third parameter is the pointer to the additional data. - * Developers should guarantee the life cycle of the data, and it can be - * `NULL` if the external data is not needed. - */ - WasmEdge_FunctionTypeDelete(HostType); + /* Retrieve the value 1. */ + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + /* Retrieve the value 2. */ + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + /* Output value 1 is Val1 + Val2. */ + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + /* Return the status of success. */ + return WasmEdge_Result_Success; + } + ``` + + Then developers can create `Function` context with the host function body and the function type: + + ```c + enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; + enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; + /* Create a function type: {i32, i32} -> {i32}. */ + WasmEdge_FunctionTypeContext *HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + /* + * Create a function context with the function type and host function body. + * The `Cost` parameter can be 0 if developers do not need the cost measuring. + */ + WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + /* + * The third parameter is the pointer to the additional data. + * Developers should guarantee the life cycle of the data, and it can be + * `NULL` if the external data is not needed. + */ + WasmEdge_FunctionTypeDelete(HostType); - /* If the function instance is not added into a module instance context, it should be deleted. */ - WasmEdge_FunctionInstanceDelete(HostFunc); - ``` + /* If the function instance is not added into a module instance context, it should be deleted. */ + WasmEdge_FunctionInstanceDelete(HostFunc); + ``` 2. Construct a module instance with host instances - Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. - - ```c - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - return WasmEdge_Result_Success; - } - - /* Create a module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("module"); - WasmEdge_ModuleInstanceContext *HostModCxt = WasmEdge_ModuleInstanceCreate(ExportName); - WasmEdge_StringDelete(ExportName); - - /* Create and add a function instance into the module instance. */ - enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; - enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - /* - * The third parameter is the pointer to the additional data object. - * Developers should guarantee the life cycle of the data, and it can be - * `NULL` if the external data is not needed. - */ - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("add"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, FuncName, HostFunc); - WasmEdge_StringDelete(FuncName); - - /* Create and add a table instance into the import object. */ - WasmEdge_Limit TableLimit = {.HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - WasmEdge_TableTypeContext *HostTType = - WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TableLimit); - WasmEdge_TableInstanceContext *HostTable = WasmEdge_TableInstanceCreate(HostTType); - WasmEdge_TableTypeDelete(HostTType); - WasmEdge_String TableName = WasmEdge_StringCreateByCString("table"); - WasmEdge_ModuleInstanceAddTable(HostModCxt, TableName, HostTable); - WasmEdge_StringDelete(TableName); - - /* Create and add a memory instance into the import object. */ - WasmEdge_Limit MemoryLimit = {.HasMax = true, .Shared = false, .Min = 1, .Max = 2}; - WasmEdge_MemoryTypeContext *HostMType = WasmEdge_MemoryTypeCreate(MemoryLimit); - WasmEdge_MemoryInstanceContext *HostMemory = WasmEdge_MemoryInstanceCreate(HostMType); - WasmEdge_MemoryTypeDelete(HostMType); - WasmEdge_String MemoryName = WasmEdge_StringCreateByCString("memory"); - WasmEdge_ModuleInstanceAddMemory(HostModCxt, MemoryName, HostMemory); - WasmEdge_StringDelete(MemoryName); - - /* Create and add a global instance into the module instance. */ - WasmEdge_GlobalTypeContext *HostGType = - WasmEdge_GlobalTypeCreate(WasmEdge_ValType_I32, WasmEdge_Mutability_Var); - WasmEdge_GlobalInstanceContext *HostGlobal = - WasmEdge_GlobalInstanceCreate(HostGType, WasmEdge_ValueGenI32(666)); - WasmEdge_GlobalTypeDelete(HostGType); - WasmEdge_String GlobalName = WasmEdge_StringCreateByCString("global"); - WasmEdge_ModuleInstanceAddGlobal(HostModCxt, GlobalName, HostGlobal); - WasmEdge_StringDelete(GlobalName); - - /* - * The module instance should be deleted. - * Developers should __NOT__ destroy the instances added into the module instance contexts. - */ - WasmEdge_ModuleInstanceDelete(HostModCxt); - ``` + Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + + ```c + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + return WasmEdge_Result_Success; + } + + /* Create a module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("module"); + WasmEdge_ModuleInstanceContext *HostModCxt = WasmEdge_ModuleInstanceCreate(ExportName); + WasmEdge_StringDelete(ExportName); + + /* Create and add a function instance into the module instance. */ + enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; + enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + /* + * The third parameter is the pointer to the additional data object. + * Developers should guarantee the life cycle of the data, and it can be + * `NULL` if the external data is not needed. + */ + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("add"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, FuncName, HostFunc); + WasmEdge_StringDelete(FuncName); + + /* Create and add a table instance into the import object. */ + WasmEdge_Limit TableLimit = {.HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + WasmEdge_TableTypeContext *HostTType = + WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TableLimit); + WasmEdge_TableInstanceContext *HostTable = WasmEdge_TableInstanceCreate(HostTType); + WasmEdge_TableTypeDelete(HostTType); + WasmEdge_String TableName = WasmEdge_StringCreateByCString("table"); + WasmEdge_ModuleInstanceAddTable(HostModCxt, TableName, HostTable); + WasmEdge_StringDelete(TableName); + + /* Create and add a memory instance into the import object. */ + WasmEdge_Limit MemoryLimit = {.HasMax = true, .Shared = false, .Min = 1, .Max = 2}; + WasmEdge_MemoryTypeContext *HostMType = WasmEdge_MemoryTypeCreate(MemoryLimit); + WasmEdge_MemoryInstanceContext *HostMemory = WasmEdge_MemoryInstanceCreate(HostMType); + WasmEdge_MemoryTypeDelete(HostMType); + WasmEdge_String MemoryName = WasmEdge_StringCreateByCString("memory"); + WasmEdge_ModuleInstanceAddMemory(HostModCxt, MemoryName, HostMemory); + WasmEdge_StringDelete(MemoryName); + + /* Create and add a global instance into the module instance. */ + WasmEdge_GlobalTypeContext *HostGType = + WasmEdge_GlobalTypeCreate(WasmEdge_ValType_I32, WasmEdge_Mutability_Var); + WasmEdge_GlobalInstanceContext *HostGlobal = + WasmEdge_GlobalInstanceCreate(HostGType, WasmEdge_ValueGenI32(666)); + WasmEdge_GlobalTypeDelete(HostGType); + WasmEdge_String GlobalName = WasmEdge_StringCreateByCString("global"); + WasmEdge_ModuleInstanceAddGlobal(HostModCxt, GlobalName, HostGlobal); + WasmEdge_StringDelete(GlobalName); + + /* + * The module instance should be deleted. + * Developers should __NOT__ destroy the instances added into the module instance contexts. + */ + WasmEdge_ModuleInstanceDelete(HostModCxt); + ``` 3. Specified module instance - `WasmEdge_ModuleInstanceCreateWASI()` API can create and initialize the `WASI` module instance. + `WasmEdge_ModuleInstanceCreateWASI()` API can create and initialize the `WASI` module instance. - `WasmEdge_ModuleInstanceCreateWasiNN()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin (`0.10.1` or upper only). + `WasmEdge_ModuleInstanceCreateWasiNN()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin (`0.10.1` or upper only). - `WasmEdge_ModuleInstanceCreateWasiCryptoCommon()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin (`0.10.1` or upper only). + `WasmEdge_ModuleInstanceCreateWasiCryptoCommon()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin (`0.10.1` or upper only). - `WasmEdge_ModuleInstanceCreateWasiCryptoAsymmetricCommon()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin (`0.10.1` or upper only). + `WasmEdge_ModuleInstanceCreateWasiCryptoAsymmetricCommon()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin (`0.10.1` or upper only). - `WasmEdge_ModuleInstanceCreateWasiCryptoKx()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin (`0.10.1` or upper only). + `WasmEdge_ModuleInstanceCreateWasiCryptoKx()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin (`0.10.1` or upper only). - `WasmEdge_ModuleInstanceCreateWasiCryptoSignatures()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin (`0.10.1` or upper only). + `WasmEdge_ModuleInstanceCreateWasiCryptoSignatures()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin (`0.10.1` or upper only). - `WasmEdge_ModuleInstanceCreateWasiCryptoSymmetric()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin (`0.10.1` or upper only). + `WasmEdge_ModuleInstanceCreateWasiCryptoSymmetric()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin (`0.10.1` or upper only). - `WasmEdge_ModuleInstanceCreateWasmEdgeProcess()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. + `WasmEdge_ModuleInstanceCreateWasmEdgeProcess()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. - Developers can create these module instance contexts and register them into the `Store` or `VM` contexts rather than adjust the settings in the `Configure` contexts. + Developers can create these module instance contexts and register them into the `Store` or `VM` contexts rather than adjust the settings in the `Configure` contexts. - > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. And the 5 modules are recommended to all be created and registered together. + > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. And the 5 modules are recommended to all be created and registered together. - ```c - WasmEdge_ModuleInstanceContext *WasiModCxt = WasmEdge_ModuleInstanceCreateWASI( /* ... ignored */ ); - WasmEdge_ModuleInstanceContext *ProcModCxt = WasmEdge_ModuleInstanceCreateWasmEdgeProcess( /* ... ignored */ ); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - /* Register the WASI and WasmEdge_Process into the VM context. */ - WasmEdge_VMRegisterModuleFromImport(VMCxt, WasiModCxt); - WasmEdge_VMRegisterModuleFromImport(VMCxt, ProcModCxt); - /* Get the WASI exit code. */ - uint32_t ExitCode = WasmEdge_ModuleInstanceWASIGetExitCode(WasiModCxt); - /* - * The `ExitCode` will be EXIT_SUCCESS if the execution has no error. - * Otherwise, it will return with the related exit code. - */ - WasmEdge_VMDelete(VMCxt); - /* The module instances should be deleted. */ - WasmEdge_ModuleInstanceDelete(WasiModCxt); - WasmEdge_ModuleInstanceDelete(ProcModCxt); - ``` + ```c + WasmEdge_ModuleInstanceContext *WasiModCxt = WasmEdge_ModuleInstanceCreateWASI( /* ... ignored */ ); + WasmEdge_ModuleInstanceContext *ProcModCxt = WasmEdge_ModuleInstanceCreateWasmEdgeProcess( /* ... ignored */ ); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + /* Register the WASI and WasmEdge_Process into the VM context. */ + WasmEdge_VMRegisterModuleFromImport(VMCxt, WasiModCxt); + WasmEdge_VMRegisterModuleFromImport(VMCxt, ProcModCxt); + /* Get the WASI exit code. */ + uint32_t ExitCode = WasmEdge_ModuleInstanceWASIGetExitCode(WasiModCxt); + /* + * The `ExitCode` will be EXIT_SUCCESS if the execution has no error. + * Otherwise, it will return with the related exit code. + */ + WasmEdge_VMDelete(VMCxt); + /* The module instances should be deleted. */ + WasmEdge_ModuleInstanceDelete(WasiModCxt); + WasmEdge_ModuleInstanceDelete(ProcModCxt); + ``` 4. Example - Assume that a simple WASM from the WAT as following: - - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` - - And the `test.c` as following: - - ```c - #include - #include - - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - printf("Host function \"Add\": %d + %d\n", Val1, Val2); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - return WasmEdge_Result_Success; - } - - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The WASM module buffer. */ - uint8_t WASM[] = { - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B - }; - - /* Create the module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); - WasmEdge_ModuleInstanceContext *HostModCxt = WasmEdge_ModuleInstanceCreate(ExportName); - enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; - enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; - WasmEdge_FunctionTypeContext *HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); - WasmEdge_StringDelete(HostFuncName); - - WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[2] = { WasmEdge_ValueGenI32(1234), WasmEdge_ValueGenI32(5678) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( - VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - WasmEdge_ModuleInstanceDelete(HostModCxt); - return 0; - } - ``` - - Then you can compile and run: (the result of 1234 + 5678 is 6912) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Host function "Add": 1234 + 5678 - Get the result: 6912 - ``` + Assume that a simple WASM from the WAT as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + And the `test.c` as following: + + ```c + #include + #include + + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + printf("Host function \"Add\": %d + %d\n", Val1, Val2); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + return WasmEdge_Result_Success; + } + + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The WASM module buffer. */ + uint8_t WASM[] = { + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B + }; + + /* Create the module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); + WasmEdge_ModuleInstanceContext *HostModCxt = WasmEdge_ModuleInstanceCreate(ExportName); + enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; + enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; + WasmEdge_FunctionTypeContext *HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); + WasmEdge_StringDelete(HostFuncName); + + WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[2] = { WasmEdge_ValueGenI32(1234), WasmEdge_ValueGenI32(5678) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( + VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + WasmEdge_ModuleInstanceDelete(HostModCxt); + return 0; + } + ``` + + Then you can compile and run: (the result of 1234 + 5678 is 6912) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Host function "Add": 1234 + 5678 + Get the result: 6912 + ``` 5. Host Data Example - Developers can set a external data object to the `Function` context, and access to the object in the function body. Assume that a simple WASM from the WAT as following: - - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` - - And the `test.c` as following: - - ```c - #include - #include - - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - printf("Host function \"Add\": %d + %d\n", Val1, Val2); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - /* Also set the result to the data. */ - int32_t *DataPtr = (int32_t *)Data; - *DataPtr = Val1 + Val2; - return WasmEdge_Result_Success; - } - - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The WASM module buffer. */ - uint8_t WASM[] = { - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B - }; - - /* The external data object: an integer. */ - int32_t Data; - - /* Create the module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); - WasmEdge_ModuleInstanceContext *HostModCxt = WasmEdge_ModuleInstanceCreate(ExportName); - enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; - enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; - WasmEdge_FunctionTypeContext *HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, &Data, 0); - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); - WasmEdge_StringDelete(HostFuncName); - - WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[2] = { WasmEdge_ValueGenI32(1234), WasmEdge_ValueGenI32(5678) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( - VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - printf("Data value: %d\n", Data); - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - WasmEdge_ModuleInstanceDelete(HostModCxt); - return 0; - } - ``` - - Then you can compile and run: (the result of 1234 + 5678 is 6912) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Host function "Add": 1234 + 5678 - Get the result: 6912 - Data value: 6912 - ``` + Developers can set a external data object to the `Function` context, and access to the object in the function body. Assume that a simple WASM from the WAT as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + And the `test.c` as following: + + ```c + #include + #include + + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + printf("Host function \"Add\": %d + %d\n", Val1, Val2); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + /* Also set the result to the data. */ + int32_t *DataPtr = (int32_t *)Data; + *DataPtr = Val1 + Val2; + return WasmEdge_Result_Success; + } + + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The WASM module buffer. */ + uint8_t WASM[] = { + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B + }; + + /* The external data object: an integer. */ + int32_t Data; + + /* Create the module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); + WasmEdge_ModuleInstanceContext *HostModCxt = WasmEdge_ModuleInstanceCreate(ExportName); + enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; + enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; + WasmEdge_FunctionTypeContext *HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, &Data, 0); + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); + WasmEdge_StringDelete(HostFuncName); + + WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[2] = { WasmEdge_ValueGenI32(1234), WasmEdge_ValueGenI32(5678) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( + VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + printf("Data value: %d\n", Data); + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + WasmEdge_ModuleInstanceDelete(HostModCxt); + return 0; + } + ``` + + Then you can compile and run: (the result of 1234 + 5678 is 6912) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Host function "Add": 1234 + 5678 + Get the result: 6912 + Data value: 6912 + ``` ## WasmEdge AOT Compiler diff --git a/docs/embed/c/reference/0.11.2.md b/docs/embed/c/reference/0.11.2.md index fa42034a..be0909bc 100644 --- a/docs/embed/c/reference/0.11.2.md +++ b/docs/embed/c/reference/0.11.2.md @@ -71,27 +71,27 @@ After the installation of WasmEdge, the following guide can help you to test for 1. Prepare the test C file (and assumed saved as `test.c`): - ```c - #include - #include - int main() { - printf("WasmEdge version: %s\n", WasmEdge_VersionGet()); - return 0; - } - ``` + ```c + #include + #include + int main() { + printf("WasmEdge version: %s\n", WasmEdge_VersionGet()); + return 0; + } + ``` 2. Compile the file with `gcc` or `clang`. - ```bash - gcc test.c -lwasmedge - ``` + ```bash + gcc test.c -lwasmedge + ``` 3. Run and get the expected output. - ```bash - $ ./a.out - WasmEdge version: 0.11.2 - ``` + ```bash + $ ./a.out + WasmEdge version: 0.11.2 + ``` ### ABI Compatibility @@ -133,54 +133,54 @@ In WasmEdge, developers should convert the values to `WasmEdge_Value` objects th 1. Number types: `i32`, `i64`, `f32`, `f64`, and `v128` for the `SIMD` proposal - ```c - WasmEdge_Value Val; - Val = WasmEdge_ValueGenI32(123456); - printf("%d\n", WasmEdge_ValueGetI32(Val)); - /* Will print "123456" */ - Val = WasmEdge_ValueGenI64(1234567890123LL); - printf("%ld\n", WasmEdge_ValueGetI64(Val)); - /* Will print "1234567890123" */ - Val = WasmEdge_ValueGenF32(123.456f); - printf("%f\n", WasmEdge_ValueGetF32(Val)); - /* Will print "123.456001" */ - Val = WasmEdge_ValueGenF64(123456.123456789); - printf("%.10f\n", WasmEdge_ValueGetF64(Val)); - /* Will print "123456.1234567890" */ - ``` + ```c + WasmEdge_Value Val; + Val = WasmEdge_ValueGenI32(123456); + printf("%d\n", WasmEdge_ValueGetI32(Val)); + /* Will print "123456" */ + Val = WasmEdge_ValueGenI64(1234567890123LL); + printf("%ld\n", WasmEdge_ValueGetI64(Val)); + /* Will print "1234567890123" */ + Val = WasmEdge_ValueGenF32(123.456f); + printf("%f\n", WasmEdge_ValueGetF32(Val)); + /* Will print "123.456001" */ + Val = WasmEdge_ValueGenF64(123456.123456789); + printf("%.10f\n", WasmEdge_ValueGetF64(Val)); + /* Will print "123456.1234567890" */ + ``` 2. Reference types: `funcref` and `externref` for the `Reference-Types` proposal - ```c - WasmEdge_Value Val; - void *Ptr; - bool IsNull; - uint32_t Num = 10; - /* Generate a externref to NULL. */ - Val = WasmEdge_ValueGenNullRef(WasmEdge_RefType_ExternRef); - IsNull = WasmEdge_ValueIsNullRef(Val); - /* The `IsNull` will be `TRUE`. */ - Ptr = WasmEdge_ValueGetExternRef(Val); - /* The `Ptr` will be `NULL`. */ - - /* Get the function instance by creation or from module instance. */ - const WasmEdge_FunctionInstanceContext *FuncCxt = ...; - /* Generate a funcref with the given function instance context. */ - Val = WasmEdge_ValueGenFuncRef(FuncCxt); - const WasmEdge_FunctionInstanceContext *GotFuncCxt = - WasmEdge_ValueGetFuncRef(Val); - /* The `GotFuncCxt` will be the same as `FuncCxt`. */ - - /* Generate a externref to `Num`. */ - Val = WasmEdge_ValueGenExternRef(&Num); - Ptr = WasmEdge_ValueGetExternRef(Val); - /* The `Ptr` will be `&Num`. */ - printf("%u\n", *(uint32_t *)Ptr); - /* Will print "10" */ - Num += 55; - printf("%u\n", *(uint32_t *)Ptr); - /* Will print "65" */ - ``` + ```c + WasmEdge_Value Val; + void *Ptr; + bool IsNull; + uint32_t Num = 10; + /* Generate a externref to NULL. */ + Val = WasmEdge_ValueGenNullRef(WasmEdge_RefType_ExternRef); + IsNull = WasmEdge_ValueIsNullRef(Val); + /* The `IsNull` will be `TRUE`. */ + Ptr = WasmEdge_ValueGetExternRef(Val); + /* The `Ptr` will be `NULL`. */ + + /* Get the function instance by creation or from module instance. */ + const WasmEdge_FunctionInstanceContext *FuncCxt = ...; + /* Generate a funcref with the given function instance context. */ + Val = WasmEdge_ValueGenFuncRef(FuncCxt); + const WasmEdge_FunctionInstanceContext *GotFuncCxt = + WasmEdge_ValueGetFuncRef(Val); + /* The `GotFuncCxt` will be the same as `FuncCxt`. */ + + /* Generate a externref to `Num`. */ + Val = WasmEdge_ValueGenExternRef(&Num); + Ptr = WasmEdge_ValueGetExternRef(Val); + /* The `Ptr` will be `&Num`. */ + printf("%u\n", *(uint32_t *)Ptr); + /* Will print "10" */ + Num += 55; + printf("%u\n", *(uint32_t *)Ptr); + /* Will print "65" */ + ``` ### Strings @@ -188,50 +188,50 @@ The `WasmEdge_String` object is for the instance names when invoking a WASM func 1. Create a `WasmEdge_String` from a C string (`const char *` with NULL termination) or a buffer with length. - The content of the C string or buffer will be copied into the `WasmEdge_String` object. + The content of the C string or buffer will be copied into the `WasmEdge_String` object. - ```c - char Buf[4] = {50, 55, 60, 65}; - WasmEdge_String Str1 = WasmEdge_StringCreateByCString("test"); - WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); - /* The objects should be deleted by `WasmEdge_StringDelete()`. */ - WasmEdge_StringDelete(Str1); - WasmEdge_StringDelete(Str2); - ``` + ```c + char Buf[4] = {50, 55, 60, 65}; + WasmEdge_String Str1 = WasmEdge_StringCreateByCString("test"); + WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); + /* The objects should be deleted by `WasmEdge_StringDelete()`. */ + WasmEdge_StringDelete(Str1); + WasmEdge_StringDelete(Str2); + ``` 2. Wrap a `WasmEdge_String` to a buffer with length. - The content will not be copied, and the caller should guarantee the life cycle of the input buffer. + The content will not be copied, and the caller should guarantee the life cycle of the input buffer. - ```c - const char CStr[] = "test"; - WasmEdge_String Str = WasmEdge_StringWrap(CStr, 4); - /* The object should __NOT__ be deleted by `WasmEdge_StringDelete()`. */ - ``` + ```c + const char CStr[] = "test"; + WasmEdge_String Str = WasmEdge_StringWrap(CStr, 4); + /* The object should __NOT__ be deleted by `WasmEdge_StringDelete()`. */ + ``` 3. String comparison - ```c - const char CStr[] = "abcd"; - char Buf[4] = {0x61, 0x62, 0x63, 0x64}; - WasmEdge_String Str1 = WasmEdge_StringWrap(CStr, 4); - WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); - bool IsEq = WasmEdge_StringIsEqual(Str1, Str2); - /* The `IsEq` will be `TRUE`. */ - WasmEdge_StringDelete(Str2); - ``` + ```c + const char CStr[] = "abcd"; + char Buf[4] = {0x61, 0x62, 0x63, 0x64}; + WasmEdge_String Str1 = WasmEdge_StringWrap(CStr, 4); + WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); + bool IsEq = WasmEdge_StringIsEqual(Str1, Str2); + /* The `IsEq` will be `TRUE`. */ + WasmEdge_StringDelete(Str2); + ``` 4. Convert to C string - ```c - char Buf[256]; - WasmEdge_String Str = - WasmEdge_StringCreateByCString("test_wasmedge_string"); - uint32_t StrLength = WasmEdge_StringCopy(Str, Buf, sizeof(Buf)); - /* StrLength will be 20 */ - printf("String: %s\n", Buf); - /* Will print "test_wasmedge_string". */ - ``` + ```c + char Buf[256]; + WasmEdge_String Str = + WasmEdge_StringCreateByCString("test_wasmedge_string"); + uint32_t StrLength = WasmEdge_StringCopy(Str, Buf, sizeof(Buf)); + /* StrLength will be 20 */ + printf("String: %s\n", Buf); + /* Will print "test_wasmedge_string". */ + ``` ### Results @@ -275,204 +275,204 @@ The WASM data structures are used for creating instances or can be queried from 1. Limit - The `WasmEdge_Limit` struct is defined in the header: + The `WasmEdge_Limit` struct is defined in the header: - ```c - /// Struct of WASM limit. - typedef struct WasmEdge_Limit { - /// Boolean to describe has max value or not. - bool HasMax; - /// Boolean to describe is shared memory or not. - bool Shared; - /// Minimum value. - uint32_t Min; - /// Maximum value. Will be ignored if the `HasMax` is false. - uint32_t Max; - } WasmEdge_Limit; - ``` + ```c + /// Struct of WASM limit. + typedef struct WasmEdge_Limit { + /// Boolean to describe has max value or not. + bool HasMax; + /// Boolean to describe is shared memory or not. + bool Shared; + /// Minimum value. + uint32_t Min; + /// Maximum value. Will be ignored if the `HasMax` is false. + uint32_t Max; + } WasmEdge_Limit; + ``` - Developers can initialize the struct by assigning it's value, and the `Max` value is needed to be larger or equal to the `Min` value. The API `WasmEdge_LimitIsEqual()` is provided to compare with 2 `WasmEdge_Limit` structs. + Developers can initialize the struct by assigning it's value, and the `Max` value is needed to be larger or equal to the `Min` value. The API `WasmEdge_LimitIsEqual()` is provided to compare with 2 `WasmEdge_Limit` structs. 2. Function type context - The `Function Type` context is used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `Function Type` context APIs to get the parameter or return value types information. - - ```c - enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, - WasmEdge_ValType_I64}; - enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_FuncRef}; - WasmEdge_FunctionTypeContext *FuncTypeCxt = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - - enum WasmEdge_ValType Buf[16]; - uint32_t ParamLen = WasmEdge_FunctionTypeGetParametersLength(FuncTypeCxt); - /* `ParamLen` will be 2. */ - uint32_t GotParamLen = - WasmEdge_FunctionTypeGetParameters(FuncTypeCxt, Buf, 16); - /* `GotParamLen` will be 2, and `Buf[0]` and `Buf[1]` will be the same as - * `ParamList`. */ - uint32_t ReturnLen = WasmEdge_FunctionTypeGetReturnsLength(FuncTypeCxt); - /* `ReturnLen` will be 1. */ - uint32_t GotReturnLen = - WasmEdge_FunctionTypeGetReturns(FuncTypeCxt, Buf, 16); - /* `GotReturnLen` will be 1, and `Buf[0]` will be the same as `ReturnList`. - */ - - WasmEdge_FunctionTypeDelete(FuncTypeCxt); - ``` + The `Function Type` context is used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `Function Type` context APIs to get the parameter or return value types information. + + ```c + enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, + WasmEdge_ValType_I64}; + enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_FuncRef}; + WasmEdge_FunctionTypeContext *FuncTypeCxt = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + + enum WasmEdge_ValType Buf[16]; + uint32_t ParamLen = WasmEdge_FunctionTypeGetParametersLength(FuncTypeCxt); + /* `ParamLen` will be 2. */ + uint32_t GotParamLen = + WasmEdge_FunctionTypeGetParameters(FuncTypeCxt, Buf, 16); + /* `GotParamLen` will be 2, and `Buf[0]` and `Buf[1]` will be the same as + * `ParamList`. */ + uint32_t ReturnLen = WasmEdge_FunctionTypeGetReturnsLength(FuncTypeCxt); + /* `ReturnLen` will be 1. */ + uint32_t GotReturnLen = + WasmEdge_FunctionTypeGetReturns(FuncTypeCxt, Buf, 16); + /* `GotReturnLen` will be 1, and `Buf[0]` will be the same as `ReturnList`. + */ + + WasmEdge_FunctionTypeDelete(FuncTypeCxt); + ``` 3. Table type context - The `Table Type` context is used for `Table` instance creation or getting information from `Table` instances. + The `Table Type` context is used for `Table` instance creation or getting information from `Table` instances. - ```c - WasmEdge_Limit TabLim = { - .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - WasmEdge_TableTypeContext *TabTypeCxt = - WasmEdge_TableTypeCreate(WasmEdge_RefType_ExternRef, TabLim); + ```c + WasmEdge_Limit TabLim = { + .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + WasmEdge_TableTypeContext *TabTypeCxt = + WasmEdge_TableTypeCreate(WasmEdge_RefType_ExternRef, TabLim); - enum WasmEdge_RefType GotRefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); - /* `GotRefType` will be WasmEdge_RefType_ExternRef. */ - WasmEdge_Limit GotTabLim = WasmEdge_TableTypeGetLimit(TabTypeCxt); - /* `GotTabLim` will be the same value as `TabLim`. */ + enum WasmEdge_RefType GotRefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); + /* `GotRefType` will be WasmEdge_RefType_ExternRef. */ + WasmEdge_Limit GotTabLim = WasmEdge_TableTypeGetLimit(TabTypeCxt); + /* `GotTabLim` will be the same value as `TabLim`. */ - WasmEdge_TableTypeDelete(TabTypeCxt); - ``` + WasmEdge_TableTypeDelete(TabTypeCxt); + ``` 4. Memory type context - The `Memory Type` context is used for `Memory` instance creation or getting information from `Memory` instances. + The `Memory Type` context is used for `Memory` instance creation or getting information from `Memory` instances. - ```c - WasmEdge_Limit MemLim = { - .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLim); + ```c + WasmEdge_Limit MemLim = { + .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLim); - WasmEdge_Limit GotMemLim = WasmEdge_MemoryTypeGetLimit(MemTypeCxt); - /* `GotMemLim` will be the same value as `MemLim`. */ + WasmEdge_Limit GotMemLim = WasmEdge_MemoryTypeGetLimit(MemTypeCxt); + /* `GotMemLim` will be the same value as `MemLim`. */ - WasmEdge_MemoryTypeDelete(MemTypeCxt) - ``` + WasmEdge_MemoryTypeDelete(MemTypeCxt) + ``` 5. Global type context - The `Global Type` context is used for `Global` instance creation or getting information from `Global` instances. + The `Global Type` context is used for `Global` instance creation or getting information from `Global` instances. - ```c - WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate( - WasmEdge_ValType_F64, WasmEdge_Mutability_Var); + ```c + WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate( + WasmEdge_ValType_F64, WasmEdge_Mutability_Var); - WasmEdge_ValType GotValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); - /* `GotValType` will be WasmEdge_ValType_F64. */ - WasmEdge_Mutability GotValMut = - WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); - /* `GotValMut` will be WasmEdge_Mutability_Var. */ + WasmEdge_ValType GotValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); + /* `GotValType` will be WasmEdge_ValType_F64. */ + WasmEdge_Mutability GotValMut = + WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); + /* `GotValMut` will be WasmEdge_Mutability_Var. */ - WasmEdge_GlobalTypeDelete(GlobTypeCxt); - ``` + WasmEdge_GlobalTypeDelete(GlobTypeCxt); + ``` 6. Import type context - The `Import Type` context is used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `Import Type` context. The details about querying `Import Type` contexts will be introduced in the [AST Module](#ast-module). - - ```c - WasmEdge_ASTModuleContext *ASTCxt = ...; - /* - * Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the - * result of loading a WASM file. - */ - const WasmEdge_ImportTypeContext *ImpType = ...; - /* Assume that `ImpType` is queried from the `ASTCxt` for the import. */ - - enum WasmEdge_ExternalType ExtType = - WasmEdge_ImportTypeGetExternalType(ImpType); - /* - * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, - * `WasmEdge_ExternalType_Table`, `WasmEdge_ExternalType_Memory`, or - * `WasmEdge_ExternalType_Global`. - */ - WasmEdge_String ModName = WasmEdge_ImportTypeGetModuleName(ImpType); - WasmEdge_String ExtName = WasmEdge_ImportTypeGetExternalName(ImpType); - /* - * The `ModName` and `ExtName` should not be destroyed and the string - * buffers are binded into the `ASTCxt`. - */ - const WasmEdge_FunctionTypeContext *FuncTypeCxt = - WasmEdge_ImportTypeGetFunctionType(ASTCxt, ImpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Function`, the - * `FuncTypeCxt` will be NULL. - */ - const WasmEdge_TableTypeContext *TabTypeCxt = - WasmEdge_ImportTypeGetTableType(ASTCxt, ImpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` - * will be NULL. - */ - const WasmEdge_MemoryTypeContext *MemTypeCxt = - WasmEdge_ImportTypeGetMemoryType(ASTCxt, ImpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` - * will be NULL. - */ - const WasmEdge_GlobalTypeContext *GlobTypeCxt = - WasmEdge_ImportTypeGetGlobalType(ASTCxt, ImpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` - * will be NULL. - */ - ``` + The `Import Type` context is used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `Import Type` context. The details about querying `Import Type` contexts will be introduced in the [AST Module](#ast-module). + + ```c + WasmEdge_ASTModuleContext *ASTCxt = ...; + /* + * Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the + * result of loading a WASM file. + */ + const WasmEdge_ImportTypeContext *ImpType = ...; + /* Assume that `ImpType` is queried from the `ASTCxt` for the import. */ + + enum WasmEdge_ExternalType ExtType = + WasmEdge_ImportTypeGetExternalType(ImpType); + /* + * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, + * `WasmEdge_ExternalType_Table`, `WasmEdge_ExternalType_Memory`, or + * `WasmEdge_ExternalType_Global`. + */ + WasmEdge_String ModName = WasmEdge_ImportTypeGetModuleName(ImpType); + WasmEdge_String ExtName = WasmEdge_ImportTypeGetExternalName(ImpType); + /* + * The `ModName` and `ExtName` should not be destroyed and the string + * buffers are binded into the `ASTCxt`. + */ + const WasmEdge_FunctionTypeContext *FuncTypeCxt = + WasmEdge_ImportTypeGetFunctionType(ASTCxt, ImpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Function`, the + * `FuncTypeCxt` will be NULL. + */ + const WasmEdge_TableTypeContext *TabTypeCxt = + WasmEdge_ImportTypeGetTableType(ASTCxt, ImpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` + * will be NULL. + */ + const WasmEdge_MemoryTypeContext *MemTypeCxt = + WasmEdge_ImportTypeGetMemoryType(ASTCxt, ImpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` + * will be NULL. + */ + const WasmEdge_GlobalTypeContext *GlobTypeCxt = + WasmEdge_ImportTypeGetGlobalType(ASTCxt, ImpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` + * will be NULL. + */ + ``` 7. Export type context - The `Export Type` context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `Export Type` contexts will be introduced in the [AST Module](#ast-module). - - ```c - WasmEdge_ASTModuleContext *ASTCxt = ...; - /* - * Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the - * result of loading a WASM file. - */ - const WasmEdge_ExportTypeContext *ExpType = ...; - /* Assume that `ExpType` is queried from the `ASTCxt` for the export. */ - - enum WasmEdge_ExternalType ExtType = - WasmEdge_ExportTypeGetExternalType(ExpType); - /* - * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, - * `WasmEdge_ExternalType_Table`, `WasmEdge_ExternalType_Memory`, or - * `WasmEdge_ExternalType_Global`. - */ - WasmEdge_String ExtName = WasmEdge_ExportTypeGetExternalName(ExpType); - /* - * The `ExtName` should not be destroyed and the string buffer is binded - * into the `ASTCxt`. - */ - const WasmEdge_FunctionTypeContext *FuncTypeCxt = - WasmEdge_ExportTypeGetFunctionType(ASTCxt, ExpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Function`, the - * `FuncTypeCxt` will be NULL. - */ - const WasmEdge_TableTypeContext *TabTypeCxt = - WasmEdge_ExportTypeGetTableType(ASTCxt, ExpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` - * will be NULL. - */ - const WasmEdge_MemoryTypeContext *MemTypeCxt = - WasmEdge_ExportTypeGetMemoryType(ASTCxt, ExpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` - * will be NULL. - */ - const WasmEdge_GlobalTypeContext *GlobTypeCxt = - WasmEdge_ExportTypeGetGlobalType(ASTCxt, ExpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` - * will be NULL. - */ - ``` + The `Export Type` context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `Export Type` contexts will be introduced in the [AST Module](#ast-module). + + ```c + WasmEdge_ASTModuleContext *ASTCxt = ...; + /* + * Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the + * result of loading a WASM file. + */ + const WasmEdge_ExportTypeContext *ExpType = ...; + /* Assume that `ExpType` is queried from the `ASTCxt` for the export. */ + + enum WasmEdge_ExternalType ExtType = + WasmEdge_ExportTypeGetExternalType(ExpType); + /* + * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, + * `WasmEdge_ExternalType_Table`, `WasmEdge_ExternalType_Memory`, or + * `WasmEdge_ExternalType_Global`. + */ + WasmEdge_String ExtName = WasmEdge_ExportTypeGetExternalName(ExpType); + /* + * The `ExtName` should not be destroyed and the string buffer is binded + * into the `ASTCxt`. + */ + const WasmEdge_FunctionTypeContext *FuncTypeCxt = + WasmEdge_ExportTypeGetFunctionType(ASTCxt, ExpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Function`, the + * `FuncTypeCxt` will be NULL. + */ + const WasmEdge_TableTypeContext *TabTypeCxt = + WasmEdge_ExportTypeGetTableType(ASTCxt, ExpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` + * will be NULL. + */ + const WasmEdge_MemoryTypeContext *MemTypeCxt = + WasmEdge_ExportTypeGetMemoryType(ASTCxt, ExpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` + * will be NULL. + */ + const WasmEdge_GlobalTypeContext *GlobTypeCxt = + WasmEdge_ExportTypeGetGlobalType(ASTCxt, ExpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` + * will be NULL. + */ + ``` ### Async @@ -480,60 +480,60 @@ After calling the [asynchronous execution APIs](#asynchronous-execution), develo 1. Wait for the asynchronous execution - Developers can wait the execution until finished: - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution. */ - WasmEdge_AsyncWait(Async); - WasmEdge_AsyncDelete(Async); - ``` - - Or developers can wait for a time limit. If the time limit exceeded, developers can choose to cancel the execution. For the interruptible execution in AOT mode, developers should set `TRUE` through the `WasmEdge_ConfigureCompilerSetInterruptible()` API into the configure context for the AOT compiler. - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution for 1 second. */ - bool IsEnd = WasmEdge_AsyncWaitFor(Async, 1000); - if (IsEnd) { - /* The execution finished. Developers can get the result. */ - WasmEdge_Result Res = WasmEdge_AsyncGet(/* ... Ignored */); - } else { - /* - * The time limit exceeded. Developers can keep waiting or cancel the - * execution. - */ - WasmEdge_AsyncCancel(Async); - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, 0, NULL); - /* The result error code will be `WasmEdge_ErrCode_Interrupted`. */ - } - WasmEdge_AsyncDelete(Async); - ``` + Developers can wait the execution until finished: + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution. */ + WasmEdge_AsyncWait(Async); + WasmEdge_AsyncDelete(Async); + ``` + + Or developers can wait for a time limit. If the time limit exceeded, developers can choose to cancel the execution. For the interruptible execution in AOT mode, developers should set `TRUE` through the `WasmEdge_ConfigureCompilerSetInterruptible()` API into the configure context for the AOT compiler. + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution for 1 second. */ + bool IsEnd = WasmEdge_AsyncWaitFor(Async, 1000); + if (IsEnd) { + /* The execution finished. Developers can get the result. */ + WasmEdge_Result Res = WasmEdge_AsyncGet(/* ... Ignored */); + } else { + /* + * The time limit exceeded. Developers can keep waiting or cancel the + * execution. + */ + WasmEdge_AsyncCancel(Async); + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, 0, NULL); + /* The result error code will be `WasmEdge_ErrCode_Interrupted`. */ + } + WasmEdge_AsyncDelete(Async); + ``` 2. Get the execution result of the asynchronous execution - Developers can use the `WasmEdge_AsyncGetReturnsLength()` API to get the return value list length. This function will block and wait for the execution. If the execution has finished, this function will return the length immediately. If the execution failed, this function will return `0`. This function can help the developers to create the buffer to get the return values. If developers have already known the buffer length, they can skip this function and use the `WasmEdge_AsyncGet()` API to get the result. - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* - * Blocking and waiting for the execution and get the return value list - * length. - */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - WasmEdge_AsyncDelete(Async); - ``` - - The `WasmEdge_AsyncGet()` API will block and wait for the execution. If the execution has finished, this function will fill the return values into the buffer and return the execution result immediately. - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution and get the return values. */ - const uint32_t BUF_LEN = 256; - WasmEdge_Value Buf[BUF_LEN]; - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Buf, BUF_LEN); - WasmEdge_AsyncDelete(Async); - ``` + Developers can use the `WasmEdge_AsyncGetReturnsLength()` API to get the return value list length. This function will block and wait for the execution. If the execution has finished, this function will return the length immediately. If the execution failed, this function will return `0`. This function can help the developers to create the buffer to get the return values. If developers have already known the buffer length, they can skip this function and use the `WasmEdge_AsyncGet()` API to get the result. + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* + * Blocking and waiting for the execution and get the return value list + * length. + */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + WasmEdge_AsyncDelete(Async); + ``` + + The `WasmEdge_AsyncGet()` API will block and wait for the execution. If the execution has finished, this function will fill the return values into the buffer and return the execution result immediately. + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution and get the return values. */ + const uint32_t BUF_LEN = 256; + WasmEdge_Value Buf[BUF_LEN]; + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Buf, BUF_LEN); + WasmEdge_AsyncDelete(Async); + ``` ### Configurations @@ -541,189 +541,189 @@ The configuration context, `WasmEdge_ConfigureContext`, manages the configuratio 1. Proposals - WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` context. - - ```c - enum WasmEdge_Proposal { - WasmEdge_Proposal_ImportExportMutGlobals = 0, - WasmEdge_Proposal_NonTrapFloatToIntConversions, - WasmEdge_Proposal_SignExtensionOperators, - WasmEdge_Proposal_MultiValue, - WasmEdge_Proposal_BulkMemoryOperations, - WasmEdge_Proposal_ReferenceTypes, - WasmEdge_Proposal_SIMD, - WasmEdge_Proposal_TailCall, - WasmEdge_Proposal_MultiMemories, - WasmEdge_Proposal_Annotations, - WasmEdge_Proposal_Memory64, - WasmEdge_Proposal_ExceptionHandling, - WasmEdge_Proposal_ExtendedConst, - WasmEdge_Proposal_Threads, - WasmEdge_Proposal_FunctionReferences - }; - ``` - - Developers can add or remove the proposals into the `Configure` context. - - ```c - /* - * By default, the following proposals have turned on initially: - * * Import/Export of mutable globals - * * Non-trapping float-to-int conversions - * * Sign-extension operators - * * Multi-value returns - * * Bulk memory operations - * * Reference types - * * Fixed-width SIMD - * - * For the current WasmEdge version, the following proposals are supported - * (turned off by default) additionally: - * * Tail-call - * * Multiple memories - * * Extended-const - * * Threads - */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddProposal(ConfCxt, WasmEdge_Proposal_MultiMemories); - WasmEdge_ConfigureRemoveProposal(ConfCxt, WasmEdge_Proposal_ReferenceTypes); - bool IsBulkMem = WasmEdge_ConfigureHasProposal( - ConfCxt, WasmEdge_Proposal_BulkMemoryOperations); - /* The `IsBulkMem` will be `TRUE`. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` context. + + ```c + enum WasmEdge_Proposal { + WasmEdge_Proposal_ImportExportMutGlobals = 0, + WasmEdge_Proposal_NonTrapFloatToIntConversions, + WasmEdge_Proposal_SignExtensionOperators, + WasmEdge_Proposal_MultiValue, + WasmEdge_Proposal_BulkMemoryOperations, + WasmEdge_Proposal_ReferenceTypes, + WasmEdge_Proposal_SIMD, + WasmEdge_Proposal_TailCall, + WasmEdge_Proposal_MultiMemories, + WasmEdge_Proposal_Annotations, + WasmEdge_Proposal_Memory64, + WasmEdge_Proposal_ExceptionHandling, + WasmEdge_Proposal_ExtendedConst, + WasmEdge_Proposal_Threads, + WasmEdge_Proposal_FunctionReferences + }; + ``` + + Developers can add or remove the proposals into the `Configure` context. + + ```c + /* + * By default, the following proposals have turned on initially: + * * Import/Export of mutable globals + * * Non-trapping float-to-int conversions + * * Sign-extension operators + * * Multi-value returns + * * Bulk memory operations + * * Reference types + * * Fixed-width SIMD + * + * For the current WasmEdge version, the following proposals are supported + * (turned off by default) additionally: + * * Tail-call + * * Multiple memories + * * Extended-const + * * Threads + */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddProposal(ConfCxt, WasmEdge_Proposal_MultiMemories); + WasmEdge_ConfigureRemoveProposal(ConfCxt, WasmEdge_Proposal_ReferenceTypes); + bool IsBulkMem = WasmEdge_ConfigureHasProposal( + ConfCxt, WasmEdge_Proposal_BulkMemoryOperations); + /* The `IsBulkMem` will be `TRUE`. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 2. Host registrations - This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` contexts. - - ```c - enum WasmEdge_HostRegistration { - WasmEdge_HostRegistration_Wasi = 0, - WasmEdge_HostRegistration_WasmEdge_Process - }; - ``` - - The details will be introduced in the [preregistrations of VM context](#preregistrations). - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - bool IsHostWasi = WasmEdge_ConfigureHasHostRegistration( - ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The `IsHostWasi` will be `FALSE`. */ - WasmEdge_ConfigureAddHostRegistration(ConfCxt, - WasmEdge_HostRegistration_Wasi); - IsHostWasi = WasmEdge_ConfigureHasHostRegistration( - ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The `IsHostWasi` will be `TRUE`. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` contexts. + + ```c + enum WasmEdge_HostRegistration { + WasmEdge_HostRegistration_Wasi = 0, + WasmEdge_HostRegistration_WasmEdge_Process + }; + ``` + + The details will be introduced in the [preregistrations of VM context](#preregistrations). + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + bool IsHostWasi = WasmEdge_ConfigureHasHostRegistration( + ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The `IsHostWasi` will be `FALSE`. */ + WasmEdge_ConfigureAddHostRegistration(ConfCxt, + WasmEdge_HostRegistration_Wasi); + IsHostWasi = WasmEdge_ConfigureHasHostRegistration( + ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The `IsHostWasi` will be `TRUE`. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 3. Maximum memory pages - Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` contexts. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - uint32_t PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); - /* By default, the maximum memory page size is 65536. */ - WasmEdge_ConfigureSetMaxMemoryPage(ConfCxt, 1024); - /* - * Limit the memory size of each memory instance with not larger than 1024 - * pages (64 MiB). - */ - PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); - /* The `PageSize` will be 1024. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` contexts. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + uint32_t PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); + /* By default, the maximum memory page size is 65536. */ + WasmEdge_ConfigureSetMaxMemoryPage(ConfCxt, 1024); + /* + * Limit the memory size of each memory instance with not larger than 1024 + * pages (64 MiB). + */ + PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); + /* The `PageSize` will be 1024. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 4. Forcibly interpreter mode (`0.11.2` or upper only) - If developers want to execute the WASM file or the AOT compiled WASM in interpreter mode forcibly, they can turn on the configuration. + If developers want to execute the WASM file or the AOT compiled WASM in interpreter mode forcibly, they can turn on the configuration. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - bool IsForceInterp = WasmEdge_ConfigureIsForceInterpreter(ConfCxt); - /* By default, The `IsForceInterp` will be `FALSE`. */ - WasmEdge_ConfigureSetForceInterpreter(ConfCxt, TRUE); - IsForceInterp = WasmEdge_ConfigureIsForceInterpreter(ConfCxt); - /* The `IsForceInterp` will be `TRUE`. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + bool IsForceInterp = WasmEdge_ConfigureIsForceInterpreter(ConfCxt); + /* By default, The `IsForceInterp` will be `FALSE`. */ + WasmEdge_ConfigureSetForceInterpreter(ConfCxt, TRUE); + IsForceInterp = WasmEdge_ConfigureIsForceInterpreter(ConfCxt); + /* The `IsForceInterp` will be `TRUE`. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 5. AOT compiler options - The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. - - ```c - enum WasmEdge_CompilerOptimizationLevel { - // Disable as many optimizations as possible. - WasmEdge_CompilerOptimizationLevel_O0 = 0, - // Optimize quickly without destroying debuggability. - WasmEdge_CompilerOptimizationLevel_O1, - // Optimize for fast execution as much as possible without triggering - // significant incremental compile time or code size growth. - WasmEdge_CompilerOptimizationLevel_O2, - // Optimize for fast execution as much as possible. - WasmEdge_CompilerOptimizationLevel_O3, - // Optimize for small code size as much as possible without triggering - // significant incremental compile time or execution time slowdowns. - WasmEdge_CompilerOptimizationLevel_Os, - // Optimize for small code size as much as possible. - WasmEdge_CompilerOptimizationLevel_Oz - }; - - enum WasmEdge_CompilerOutputFormat { - // Native dynamic library format. - WasmEdge_CompilerOutputFormat_Native = 0, - // WebAssembly with AOT compiled codes in custom section. - WasmEdge_CompilerOutputFormat_Wasm - }; - ``` - - These configurations are only effective in `Compiler` contexts. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - /* By default, the optimization level is O3. */ - WasmEdge_ConfigureCompilerSetOptimizationLevel( - ConfCxt, WasmEdge_CompilerOptimizationLevel_O2); - /* By default, the output format is universal WASM. */ - WasmEdge_ConfigureCompilerSetOutputFormat( - ConfCxt, WasmEdge_CompilerOutputFormat_Native); - /* By default, the dump IR is `FALSE`. */ - WasmEdge_ConfigureCompilerSetDumpIR(ConfCxt, TRUE); - /* By default, the generic binary is `FALSE`. */ - WasmEdge_ConfigureCompilerSetGenericBinary(ConfCxt, TRUE); - /* By default, the interruptible is `FALSE`. - /* Set this option to `TRUE` to support the interruptible execution in AOT - mode. */ - WasmEdge_ConfigureCompilerSetInterruptible(ConfCxt, TRUE); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. + + ```c + enum WasmEdge_CompilerOptimizationLevel { + // Disable as many optimizations as possible. + WasmEdge_CompilerOptimizationLevel_O0 = 0, + // Optimize quickly without destroying debuggability. + WasmEdge_CompilerOptimizationLevel_O1, + // Optimize for fast execution as much as possible without triggering + // significant incremental compile time or code size growth. + WasmEdge_CompilerOptimizationLevel_O2, + // Optimize for fast execution as much as possible. + WasmEdge_CompilerOptimizationLevel_O3, + // Optimize for small code size as much as possible without triggering + // significant incremental compile time or execution time slowdowns. + WasmEdge_CompilerOptimizationLevel_Os, + // Optimize for small code size as much as possible. + WasmEdge_CompilerOptimizationLevel_Oz + }; + + enum WasmEdge_CompilerOutputFormat { + // Native dynamic library format. + WasmEdge_CompilerOutputFormat_Native = 0, + // WebAssembly with AOT compiled codes in custom section. + WasmEdge_CompilerOutputFormat_Wasm + }; + ``` + + These configurations are only effective in `Compiler` contexts. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + /* By default, the optimization level is O3. */ + WasmEdge_ConfigureCompilerSetOptimizationLevel( + ConfCxt, WasmEdge_CompilerOptimizationLevel_O2); + /* By default, the output format is universal WASM. */ + WasmEdge_ConfigureCompilerSetOutputFormat( + ConfCxt, WasmEdge_CompilerOutputFormat_Native); + /* By default, the dump IR is `FALSE`. */ + WasmEdge_ConfigureCompilerSetDumpIR(ConfCxt, TRUE); + /* By default, the generic binary is `FALSE`. */ + WasmEdge_ConfigureCompilerSetGenericBinary(ConfCxt, TRUE); + /* By default, the interruptible is `FALSE`. + /* Set this option to `TRUE` to support the interruptible execution in AOT + mode. */ + WasmEdge_ConfigureCompilerSetInterruptible(ConfCxt, TRUE); + WasmEdge_ConfigureDelete(ConfCxt); + ``` 6. Statistics options - The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` contexts. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - /* - * By default, the instruction counting is `FALSE` when running a - * compiled-WASM or a pure-WASM. - */ - WasmEdge_ConfigureStatisticsSetInstructionCounting(ConfCxt, TRUE); - /* - * By default, the cost measurement is `FALSE` when running a compiled-WASM - * or a pure-WASM. - */ - WasmEdge_ConfigureStatisticsSetCostMeasuring(ConfCxt, TRUE); - /* - * By default, the time measurement is `FALSE` when running a compiled-WASM - * or a pure-WASM. - */ - WasmEdge_ConfigureStatisticsSetTimeMeasuring(ConfCxt, TRUE); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` contexts. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + /* + * By default, the instruction counting is `FALSE` when running a + * compiled-WASM or a pure-WASM. + */ + WasmEdge_ConfigureStatisticsSetInstructionCounting(ConfCxt, TRUE); + /* + * By default, the cost measurement is `FALSE` when running a compiled-WASM + * or a pure-WASM. + */ + WasmEdge_ConfigureStatisticsSetCostMeasuring(ConfCxt, TRUE); + /* + * By default, the time measurement is `FALSE` when running a compiled-WASM + * or a pure-WASM. + */ + WasmEdge_ConfigureStatisticsSetTimeMeasuring(ConfCxt, TRUE); + WasmEdge_ConfigureDelete(ConfCxt); + ``` ### Statistics @@ -733,50 +733,50 @@ Before using statistics, the statistics configuration must be set. Otherwise, th 1. Instruction counter - The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` context from the `VM` context, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. + The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` context from the `VM` context, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. - ```c - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* - * ... - * After running the WASM functions with the `Statistics` context - */ - uint32_t Count = WasmEdge_StatisticsGetInstrCount(StatCxt); - double IPS = WasmEdge_StatisticsGetInstrPerSecond(StatCxt); - WasmEdge_StatisticsDelete(StatCxt); - ``` + ```c + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* + * ... + * After running the WASM functions with the `Statistics` context + */ + uint32_t Count = WasmEdge_StatisticsGetInstrCount(StatCxt); + double IPS = WasmEdge_StatisticsGetInstrPerSecond(StatCxt); + WasmEdge_StatisticsDelete(StatCxt); + ``` 2. Cost table - The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` context. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. - - ```c - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - uint64_t CostTable[16] = { - 0, 0, - 10, /* 0x02: Block */ - 11, /* 0x03: Loop */ - 12, /* 0x04: If */ - 12, /* 0x05: Else */ - 0, 0, 0, 0, 0, 0, - 20, /* 0x0C: Br */ - 21, /* 0x0D: Br_if */ - 22, /* 0x0E: Br_table */ - 0 - }; - /* - * Developers can set the costs of each instruction. The value not - * covered will be 0. - */ - WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); - WasmEdge_StatisticsSetCostLimit(StatCxt, 5000000); - /* - * ... - * After running the WASM functions with the `Statistics` context - */ - uint64_t Cost = WasmEdge_StatisticsGetTotalCost(StatCxt); - WasmEdge_StatisticsDelete(StatCxt); - ``` + The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` context. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. + + ```c + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + uint64_t CostTable[16] = { + 0, 0, + 10, /* 0x02: Block */ + 11, /* 0x03: Loop */ + 12, /* 0x04: If */ + 12, /* 0x05: Else */ + 0, 0, 0, 0, 0, 0, + 20, /* 0x0C: Br */ + 21, /* 0x0D: Br_if */ + 22, /* 0x0E: Br_table */ + 0 + }; + /* + * Developers can set the costs of each instruction. The value not + * covered will be 0. + */ + WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); + WasmEdge_StatisticsSetCostLimit(StatCxt, 5000000); + /* + * ... + * After running the WASM functions with the `Statistics` context + */ + uint64_t Cost = WasmEdge_StatisticsGetTotalCost(StatCxt); + WasmEdge_StatisticsDelete(StatCxt); + ``` ### Tools Driver @@ -828,172 +828,172 @@ The following shows the example of running the WASM for getting the Fibonacci. T 1. Run WASM functions rapidly - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - /* Create the configure context and add the WASI support. */ - /* This step is not necessary unless you need WASI support. */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, - WasmEdge_HostRegistration_Wasi); - /* The configure and store context to the VM creation can be NULL. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(5)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromFile( - VMCxt, "fibonacci.wasm", FuncName, Params, 1, Returns, 1); - /* - * Developers can run the WASM binary from buffer with the - * `WasmEdge_VMRunWasmFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMRunWasmFromASTModule()` API. - */ - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 5th Fibonacci number is 8 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the result: 8 - ``` + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + /* Create the configure context and add the WASI support. */ + /* This step is not necessary unless you need WASI support. */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, + WasmEdge_HostRegistration_Wasi); + /* The configure and store context to the VM creation can be NULL. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(5)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromFile( + VMCxt, "fibonacci.wasm", FuncName, Params, 1, Returns, 1); + /* + * Developers can run the WASM binary from buffer with the + * `WasmEdge_VMRunWasmFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMRunWasmFromASTModule()` API. + */ + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` + + Then you can compile and run: (the 5th Fibonacci number is 8 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the result: 8 + ``` 2. Instantiate and run WASM functions manually - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: - - ```c - #include - #include - int main() { - /* Create the configure context and add the WASI support. */ - /* This step is not necessary unless you need the WASI support. */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, - WasmEdge_HostRegistration_Wasi); - /* The configure and store context to the VM creation can be NULL. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(10)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Step 1: Load WASM file. */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - /* - * Developers can load the WASM binary from buffer with the - * `WasmEdge_VMLoadWasmFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMLoadWasmFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 2: Validate the WASM module. */ - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 3: Instantiate the WASM module. */ - Res = WasmEdge_VMInstantiate(VMCxt); - /* - * Developers can load, validate, and instantiate another WASM module to - * replace the instantiated one. In this case, the old module will be - * cleared, but the registered modules are still kept. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", - WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* - * Step 4: Execute WASM functions. You can execute functions repeatedly - * after instantiation. - */ - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 1, Returns, 1); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 10th Fibonacci number is 89 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the result: 89 - ``` - - The following graph explains the status of the `VM` context. - - ```text - |========================| - |------->| VM: Initiated | - | |========================| - | | - | LoadWasm - | | - | v - | |========================| - |--------| VM: Loaded |<-------| - | |========================| | - | | ^ | - | Validate | | - Cleanup | LoadWasm | - | v | LoadWasm - | |========================| | - |--------| VM: Validated | | - | |========================| | - | | ^ | - | Instantiate | | - | | RegisterModule | - | v | | - | |========================| | - |--------| VM: Instantiated |--------| - |========================| - | ^ - | | - -------------- - Instantiate, Execute, ExecuteRegistered - ``` - - The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or module instances in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```c + #include + #include + int main() { + /* Create the configure context and add the WASI support. */ + /* This step is not necessary unless you need the WASI support. */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, + WasmEdge_HostRegistration_Wasi); + /* The configure and store context to the VM creation can be NULL. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(10)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Step 1: Load WASM file. */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + /* + * Developers can load the WASM binary from buffer with the + * `WasmEdge_VMLoadWasmFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMLoadWasmFromASTModule()` API. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 2: Validate the WASM module. */ + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 3: Instantiate the WASM module. */ + Res = WasmEdge_VMInstantiate(VMCxt); + /* + * Developers can load, validate, and instantiate another WASM module to + * replace the instantiated one. In this case, the old module will be + * cleared, but the registered modules are still kept. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", + WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* + * Step 4: Execute WASM functions. You can execute functions repeatedly + * after instantiation. + */ + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 1, Returns, 1); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` + + Then you can compile and run: (the 10th Fibonacci number is 89 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the result: 89 + ``` + + The following graph explains the status of the `VM` context. + + ```text + |========================| + |------->| VM: Initiated | + | |========================| + | | + | LoadWasm + | | + | v + | |========================| + |--------| VM: Loaded |<-------| + | |========================| | + | | ^ | + | Validate | | + Cleanup | LoadWasm | + | v | LoadWasm + | |========================| | + |--------| VM: Validated | | + | |========================| | + | | ^ | + | Instantiate | | + | | RegisterModule | + | v | | + | |========================| | + |--------| VM: Instantiated |--------| + |========================| + | ^ + | | + -------------- + Instantiate, Execute, ExecuteRegistered + ``` + + The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or module instances in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. ### VM Creations @@ -1024,124 +1024,124 @@ WasmEdge provides the following built-in pre-registrations. 1. [WASI (WebAssembly System Interface)](https://github.com/WebAssembly/WASI) - Developers can turn on the WASI support for VM in the `Configure` context. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, - WasmEdge_HostRegistration_Wasi); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - /* - * The following API can retrieve the pre-registration module instances from - * the VM context. - */ - /* - * This API will return `NULL` if the corresponding pre-registration is not - * set into the configuration. - */ - WasmEdge_ModuleInstanceContext *WasiModule = - WasmEdge_VMGetImportModuleContext(VMCxt, - WasmEdge_HostRegistration_Wasi); - /* Initialize the WASI. */ - WasmEdge_ModuleInstanceInitWASI(WasiModule, /* ... ignored */); - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - ``` - - And also can create the WASI module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + Developers can turn on the WASI support for VM in the `Configure` context. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, + WasmEdge_HostRegistration_Wasi); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + /* + * The following API can retrieve the pre-registration module instances from + * the VM context. + */ + /* + * This API will return `NULL` if the corresponding pre-registration is not + * set into the configuration. + */ + WasmEdge_ModuleInstanceContext *WasiModule = + WasmEdge_VMGetImportModuleContext(VMCxt, + WasmEdge_HostRegistration_Wasi); + /* Initialize the WASI. */ + WasmEdge_ModuleInstanceInitWASI(WasiModule, /* ... ignored */); + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + ``` + + And also can create the WASI module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 2. [WasmEdge_Process](https://crates.io/crates/wasmedge_process_interface) - This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` plugin. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration( - ConfCxt, WasmEdge_HostRegistration_WasmEdge_Process); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - /* - * The following API can retrieve the pre-registration module instances from - * the VM context. - */ - /* - * This API will return `NULL` if the corresponding pre-registration is not - * set into the configuration or the plugin load failed. - */ - WasmEdge_ModuleInstanceContext *ProcModule = - WasmEdge_VMGetImportModuleContext( - VMCxt, WasmEdge_HostRegistration_WasmEdge_Process); - /* Initialize the WasmEdge_Process. */ - WasmEdge_ModuleInstanceInitWasmEdgeProcess(ProcModule, /* ... ignored */); - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - ``` - - And also can create the WasmEdge_Process module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` plugin. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration( + ConfCxt, WasmEdge_HostRegistration_WasmEdge_Process); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + /* + * The following API can retrieve the pre-registration module instances from + * the VM context. + */ + /* + * This API will return `NULL` if the corresponding pre-registration is not + * set into the configuration or the plugin load failed. + */ + WasmEdge_ModuleInstanceContext *ProcModule = + WasmEdge_VMGetImportModuleContext( + VMCxt, WasmEdge_HostRegistration_WasmEdge_Process); + /* Initialize the WasmEdge_Process. */ + WasmEdge_ModuleInstanceInitWasmEdgeProcess(ProcModule, /* ... ignored */); + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + ``` + + And also can create the WasmEdge_Process module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 3. [WASI-NN proposal](https://github.com/WebAssembly/wasi-nn) - Developers can turn on the WASI-NN proposal support for VM in the `Configure` context. - - > Note: Please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, - WasmEdge_HostRegistration_WasiNN); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - /* - * The following API can retrieve the pre-registration module instances from - * the VM context. - */ - /* - * This API will return `NULL` if the corresponding pre-registration is not - * set into the configuration or the plugin load failed. - */ - WasmEdge_ModuleInstanceContext *NNModule = - WasmEdge_VMGetImportModuleContext(VMCxt, - WasmEdge_HostRegistration_WasiNN); - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - ``` - - And also can create the WASI-NN module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + Developers can turn on the WASI-NN proposal support for VM in the `Configure` context. + + > Note: Please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, + WasmEdge_HostRegistration_WasiNN); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + /* + * The following API can retrieve the pre-registration module instances from + * the VM context. + */ + /* + * This API will return `NULL` if the corresponding pre-registration is not + * set into the configuration or the plugin load failed. + */ + WasmEdge_ModuleInstanceContext *NNModule = + WasmEdge_VMGetImportModuleContext(VMCxt, + WasmEdge_HostRegistration_WasiNN); + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + ``` + + And also can create the WASI-NN module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 4. [WASI-Crypto proposal](https://github.com/WebAssembly/wasi-crypto) - Developers can turn on the WASI-Crypto proposal support for VM in the `Configure` context. - - > Note: Please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - /* The WASI-Crypto related configures are suggested to turn on together. */ - WasmEdge_ConfigureAddHostRegistration( - ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Common); - WasmEdge_ConfigureAddHostRegistration( - ConfCxt, WasmEdge_HostRegistration_WasiCrypto_AsymmetricCommon); - WasmEdge_ConfigureAddHostRegistration( - ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Kx); - WasmEdge_ConfigureAddHostRegistration( - ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Signatures); - WasmEdge_ConfigureAddHostRegistration( - ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Symmetric); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - /* - * The following API can retrieve the pre-registration module instances from - * the VM context. - */ - /* - * This API will return `NULL` if the corresponding pre-registration is not - * set into the configuration or the plugin load failed. - */ - WasmEdge_ModuleInstanceContext *CryptoCommonModule = - WasmEdge_VMGetImportModuleContext( - VMCxt, WasmEdge_HostRegistration_WasiCrypto_Common); - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - ``` - - And also can create the WASI-Crypto module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + Developers can turn on the WASI-Crypto proposal support for VM in the `Configure` context. + + > Note: Please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + /* The WASI-Crypto related configures are suggested to turn on together. */ + WasmEdge_ConfigureAddHostRegistration( + ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Common); + WasmEdge_ConfigureAddHostRegistration( + ConfCxt, WasmEdge_HostRegistration_WasiCrypto_AsymmetricCommon); + WasmEdge_ConfigureAddHostRegistration( + ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Kx); + WasmEdge_ConfigureAddHostRegistration( + ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Signatures); + WasmEdge_ConfigureAddHostRegistration( + ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Symmetric); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + /* + * The following API can retrieve the pre-registration module instances from + * the VM context. + */ + /* + * This API will return `NULL` if the corresponding pre-registration is not + * set into the configuration or the plugin load failed. + */ + WasmEdge_ModuleInstanceContext *CryptoCommonModule = + WasmEdge_VMGetImportModuleContext( + VMCxt, WasmEdge_HostRegistration_WasiCrypto_Common); + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + ``` + + And also can create the WASI-Crypto module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). ### Host Module Registrations @@ -1171,248 +1171,248 @@ In WebAssembly, the instances in WASM modules can be exported and can be importe 1. Register the WASM modules with exported module names - Unless the module instances have already contained the module names, every WASM module should be named uniquely when registering. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. - - ```c - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - WasmEdge_Result Res = - WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); - /* - * Developers can register the WASM module from buffer with the - * `WasmEdge_VMRegisterModuleFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMRegisterModuleFromASTModule()` API. - */ - /* - * The result status should be checked. - * The error will occur if the WASM module instantiation failed or the - * module name conflicts. - */ - WasmEdge_StringDelete(ModName); - WasmEdge_VMDelete(VMCxt); - ``` + Unless the module instances have already contained the module names, every WASM module should be named uniquely when registering. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. + + ```c + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + WasmEdge_Result Res = + WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); + /* + * Developers can register the WASM module from buffer with the + * `WasmEdge_VMRegisterModuleFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMRegisterModuleFromASTModule()` API. + */ + /* + * The result status should be checked. + * The error will occur if the WASM module instantiation failed or the + * module name conflicts. + */ + WasmEdge_StringDelete(ModName); + WasmEdge_VMDelete(VMCxt); + ``` 2. Execute the functions in registered WASM modules - Assume that the C file `test.c` is as follows: - - ```c - #include - #include - int main() { - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(20)}; - WasmEdge_Value Returns[1]; - /* Names. */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Register the WASM module into VM. */ - Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); - /* - * Developers can register the WASM module from buffer with the - * `WasmEdge_VMRegisterModuleFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMRegisterModuleFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", - WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* - * The function "fib" in the "fibonacci.wasm" was exported with the module - * name "mod". As the same as host functions, other modules can import the - * function `"mod" "fib"`. - */ - - /* - * Execute WASM functions in registered modules. - * Unlike the execution of functions, the registered functions can be - * invoked without `WasmEdge_VMInstantiate()` because the WASM module was - * instantiated when registering. Developers can also invoke the host - * functions directly with this API. - */ - Res = WasmEdge_VMExecuteRegistered(VMCxt, ModName, FuncName, Params, 1, - Returns, 1); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - WasmEdge_StringDelete(ModName); - WasmEdge_StringDelete(FuncName); - WasmEdge_VMDelete(VMCxt); - return 0; - } - ``` - - Then you can compile and run: (the 20th Fibonacci number is 89 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the result: 10946 - ``` + Assume that the C file `test.c` is as follows: + + ```c + #include + #include + int main() { + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(20)}; + WasmEdge_Value Returns[1]; + /* Names. */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Register the WASM module into VM. */ + Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); + /* + * Developers can register the WASM module from buffer with the + * `WasmEdge_VMRegisterModuleFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMRegisterModuleFromASTModule()` API. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", + WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* + * The function "fib" in the "fibonacci.wasm" was exported with the module + * name "mod". As the same as host functions, other modules can import the + * function `"mod" "fib"`. + */ + + /* + * Execute WASM functions in registered modules. + * Unlike the execution of functions, the registered functions can be + * invoked without `WasmEdge_VMInstantiate()` because the WASM module was + * instantiated when registering. Developers can also invoke the host + * functions directly with this API. + */ + Res = WasmEdge_VMExecuteRegistered(VMCxt, ModName, FuncName, Params, 1, + Returns, 1); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + WasmEdge_StringDelete(ModName); + WasmEdge_StringDelete(FuncName); + WasmEdge_VMDelete(VMCxt); + return 0; + } + ``` + + Then you can compile and run: (the 20th Fibonacci number is 89 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the result: 10946 + ``` ### Asynchronous Execution 1. Asynchronously run WASM functions rapidly - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(20)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Asynchronously run the WASM function from file and get the - * `WasmEdge_Async` object. */ - WasmEdge_Async *Async = WasmEdge_VMAsyncRunWasmFromFile( - VMCxt, "fibonacci.wasm", FuncName, Params, 1); - /* - * Developers can run the WASM binary from buffer with the - * `WasmEdge_VMAsyncRunWasmFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMAsyncRunWasmFromASTModule()` API. - */ - - /* Wait for the execution. */ - WasmEdge_AsyncWait(Async); - /* - * Developers can also use the `WasmEdge_AsyncGetReturnsLength()` or - * `WasmEdge_AsyncGet()` APIs to wait for the asynchronous execution. - * These APIs will wait until the execution finished. - */ - - /* Check the return values length. */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - /* The `Arity` should be 1. Developers can skip this step if they have - * known the return arity. */ - - /* Get the result. */ - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Returns, Arity); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_AsyncDelete(Async); - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 20th Fibonacci number is 10946 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the result: 10946 - ``` + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(20)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Asynchronously run the WASM function from file and get the + * `WasmEdge_Async` object. */ + WasmEdge_Async *Async = WasmEdge_VMAsyncRunWasmFromFile( + VMCxt, "fibonacci.wasm", FuncName, Params, 1); + /* + * Developers can run the WASM binary from buffer with the + * `WasmEdge_VMAsyncRunWasmFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMAsyncRunWasmFromASTModule()` API. + */ + + /* Wait for the execution. */ + WasmEdge_AsyncWait(Async); + /* + * Developers can also use the `WasmEdge_AsyncGetReturnsLength()` or + * `WasmEdge_AsyncGet()` APIs to wait for the asynchronous execution. + * These APIs will wait until the execution finished. + */ + + /* Check the return values length. */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + /* The `Arity` should be 1. Developers can skip this step if they have + * known the return arity. */ + + /* Get the result. */ + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Returns, Arity); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_AsyncDelete(Async); + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` + + Then you can compile and run: (the 20th Fibonacci number is 10946 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the result: 10946 + ``` 2. Instantiate and asynchronously run WASM functions manually - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: - - ```c - #include - #include - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(25)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Step 1: Load WASM file. */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - /* - * Developers can load the WASM binary from buffer with the - * `WasmEdge_VMLoadWasmFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMLoadWasmFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 2: Validate the WASM module. */ - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 3: Instantiate the WASM module. */ - Res = WasmEdge_VMInstantiate(VMCxt); - /* - * Developers can load, validate, and instantiate another WASM module to - * replace the instantiated one. In this case, the old module will be - * cleared, but the registered modules are still kept. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", - WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 4: Asynchronously execute the WASM function and get the - * `WasmEdge_Async` object. */ - WasmEdge_Async *Async = - WasmEdge_VMAsyncExecute(VMCxt, FuncName, Params, 1); - /* - * Developers can execute functions repeatedly after instantiation. - * For invoking the registered functions, you can use the - * `WasmEdge_VMAsyncExecuteRegistered()` API. - */ - - /* Wait and check the return values length. */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - /* The `Arity` should be 1. Developers can skip this step if they have - * known the return arity. */ - - /* Get the result. */ - Res = WasmEdge_AsyncGet(Async, Returns, Arity); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_AsyncDelete(Async); - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - } - ``` - - Then you can compile and run: (the 25th Fibonacci number is 121393 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the result: 121393 - ``` + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```c + #include + #include + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(25)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Step 1: Load WASM file. */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + /* + * Developers can load the WASM binary from buffer with the + * `WasmEdge_VMLoadWasmFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMLoadWasmFromASTModule()` API. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 2: Validate the WASM module. */ + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 3: Instantiate the WASM module. */ + Res = WasmEdge_VMInstantiate(VMCxt); + /* + * Developers can load, validate, and instantiate another WASM module to + * replace the instantiated one. In this case, the old module will be + * cleared, but the registered modules are still kept. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", + WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 4: Asynchronously execute the WASM function and get the + * `WasmEdge_Async` object. */ + WasmEdge_Async *Async = + WasmEdge_VMAsyncExecute(VMCxt, FuncName, Params, 1); + /* + * Developers can execute functions repeatedly after instantiation. + * For invoking the registered functions, you can use the + * `WasmEdge_VMAsyncExecuteRegistered()` API. + */ + + /* Wait and check the return values length. */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + /* The `Arity` should be 1. Developers can skip this step if they have + * known the return arity. */ + + /* Get the result. */ + Res = WasmEdge_AsyncGet(Async, Returns, Arity); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_AsyncDelete(Async); + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + } + ``` + + Then you can compile and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the result: 121393 + ``` ### Instance Tracing @@ -1420,133 +1420,133 @@ Sometimes the developers may have requirements to get the instances of the WASM 1. Store - If the `VM` context is created without assigning a `Store` context, the `VM` context will allocate and own a `Store` context. + If the `VM` context is created without assigning a `Store` context, the `VM` context will allocate and own a `Store` context. - ```c - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - WasmEdge_StoreContext *StoreCxt = WasmEdge_VMGetStoreContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_StoreDelete()`. */ - WasmEdge_VMDelete(VMCxt); - ``` + ```c + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + WasmEdge_StoreContext *StoreCxt = WasmEdge_VMGetStoreContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_StoreDelete()`. */ + WasmEdge_VMDelete(VMCxt); + ``` - Developers can also create the `VM` context with a `Store` context. In this case, developers should guarantee the life cycle of the `Store` context. Please refer to the [Store Contexts](#store) for the details about the `Store` context APIs. + Developers can also create the `VM` context with a `Store` context. In this case, developers should guarantee the life cycle of the `Store` context. Please refer to the [Store Contexts](#store) for the details about the `Store` context APIs. - ```c - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); - WasmEdge_StoreContext *StoreCxtMock = WasmEdge_VMGetStoreContext(VMCxt); - /* The `StoreCxt` and the `StoreCxtMock` are the same. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StoreDelete(StoreCxt); - ``` + ```c + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); + WasmEdge_StoreContext *StoreCxtMock = WasmEdge_VMGetStoreContext(VMCxt); + /* The `StoreCxt` and the `StoreCxtMock` are the same. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StoreDelete(StoreCxt); + ``` 2. List exported functions - After the WASM module instantiation, developers can use the `WasmEdge_VMExecute()` API to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); - - WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - WasmEdge_VMValidate(VMCxt); - WasmEdge_VMInstantiate(VMCxt); - - /* List the exported functions. */ - /* Get the number of exported functions. */ - uint32_t FuncNum = WasmEdge_VMGetFunctionListLength(VMCxt); - /* Create the name buffers and the function type buffers. */ - const uint32_t BUF_LEN = 256; - WasmEdge_String FuncNames[BUF_LEN]; - WasmEdge_FunctionTypeContext *FuncTypes[BUF_LEN]; - /* - * Get the export function list. - * If the function list length is larger than the buffer length, the - * overflowed data will be discarded. The `FuncNames` and `FuncTypes` can - * be NULL if developers don't need them. - */ - uint32_t RealFuncNum = - WasmEdge_VMGetFunctionList(VMCxt, FuncNames, FuncTypes, BUF_LEN); - - for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { - char Buf[BUF_LEN]; - uint32_t Size = WasmEdge_StringCopy(FuncNames[I], Buf, sizeof(Buf)); - printf("Get exported function string length: %u, name: %s\n", Size, - Buf); - /* - * The function names should be __NOT__ destroyed. - * The returned function type contexts should __NOT__ be destroyed. - */ - } - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_VMDelete(VMCxt); - return 0; - } - ``` - - Then you can compile and run: (the only exported function in `fibonacci.wasm` is `fib`) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get exported function string length: 3, name: fib - ``` - - If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` context from the `VM` context and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. + After the WASM module instantiation, developers can use the `WasmEdge_VMExecute()` API to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); + + WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + WasmEdge_VMValidate(VMCxt); + WasmEdge_VMInstantiate(VMCxt); + + /* List the exported functions. */ + /* Get the number of exported functions. */ + uint32_t FuncNum = WasmEdge_VMGetFunctionListLength(VMCxt); + /* Create the name buffers and the function type buffers. */ + const uint32_t BUF_LEN = 256; + WasmEdge_String FuncNames[BUF_LEN]; + WasmEdge_FunctionTypeContext *FuncTypes[BUF_LEN]; + /* + * Get the export function list. + * If the function list length is larger than the buffer length, the + * overflowed data will be discarded. The `FuncNames` and `FuncTypes` can + * be NULL if developers don't need them. + */ + uint32_t RealFuncNum = + WasmEdge_VMGetFunctionList(VMCxt, FuncNames, FuncTypes, BUF_LEN); + + for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { + char Buf[BUF_LEN]; + uint32_t Size = WasmEdge_StringCopy(FuncNames[I], Buf, sizeof(Buf)); + printf("Get exported function string length: %u, name: %s\n", Size, + Buf); + /* + * The function names should be __NOT__ destroyed. + * The returned function type contexts should __NOT__ be destroyed. + */ + } + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_VMDelete(VMCxt); + return 0; + } + ``` + + Then you can compile and run: (the only exported function in `fibonacci.wasm` is `fib`) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get exported function string length: 3, name: fib + ``` + + If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` context from the `VM` context and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. 3. Get function types - The `VM` context provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. - - ```c - /* - * ... - * Assume that a WASM module is instantiated in `VMCxt`. - */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - const WasmEdge_FunctionTypeContext *FuncType = - WasmEdge_VMGetFunctionType(VMCxt, FuncName); - /* - * Developers can get the function types of functions in the registered - * modules via the `WasmEdge_VMGetFunctionTypeRegistered()` API with the - * module name. If the function is not found, these APIs will return `NULL`. - * The returned function type contexts should __NOT__ be destroyed. - */ - WasmEdge_StringDelete(FuncName); - ``` + The `VM` context provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. + + ```c + /* + * ... + * Assume that a WASM module is instantiated in `VMCxt`. + */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + const WasmEdge_FunctionTypeContext *FuncType = + WasmEdge_VMGetFunctionType(VMCxt, FuncName); + /* + * Developers can get the function types of functions in the registered + * modules via the `WasmEdge_VMGetFunctionTypeRegistered()` API with the + * module name. If the function is not found, these APIs will return `NULL`. + * The returned function type contexts should __NOT__ be destroyed. + */ + WasmEdge_StringDelete(FuncName); + ``` 4. Get the active module - After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` context. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `WasmEdge_VMGetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. - - ```c - /* - * ... - * Assume that a WASM module is instantiated in `VMCxt`. - */ - const WasmEdge_ModuleInstanceContext *ModCxt = - WasmEdge_VMGetActiveModule(VMCxt); - /* - * If there's no WASM module instantiated, this API will return `NULL`. - * The returned module instance context should __NOT__ be destroyed. - */ - ``` + After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` context. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `WasmEdge_VMGetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. + + ```c + /* + * ... + * Assume that a WASM module is instantiated in `VMCxt`. + */ + const WasmEdge_ModuleInstanceContext *ModCxt = + WasmEdge_VMGetActiveModule(VMCxt); + /* + * If there's no WASM module instantiated, this API will return `NULL`. + * The returned module instance context should __NOT__ be destroyed. + */ + ``` 5. Get the components - The `VM` context is composed by the `Loader`, `Validator`, and `Executor` contexts. For the developers who want to use these contexts without creating another instances, these APIs can help developers to get them from the `VM` context. The get contexts are owned by the `VM` context, and developers should not call their delete functions. + The `VM` context is composed by the `Loader`, `Validator`, and `Executor` contexts. For the developers who want to use these contexts without creating another instances, these APIs can help developers to get them from the `VM` context. The get contexts are owned by the `VM` context, and developers should not call their delete functions. - ```c - WasmEdge_LoaderContext *LoadCxt = WasmEdge_VMGetLoaderContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_LoaderDelete()`. */ - WasmEdge_ValidatorContext *ValidCxt = WasmEdge_VMGetValidatorContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_ValidatorDelete()`. */ - WasmEdge_ExecutorContext *ExecCxt = WasmEdge_VMGetExecutorContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_ExecutorDelete()`. */ - ``` + ```c + WasmEdge_LoaderContext *LoadCxt = WasmEdge_VMGetLoaderContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_LoaderDelete()`. */ + WasmEdge_ValidatorContext *ValidCxt = WasmEdge_VMGetValidatorContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_ValidatorDelete()`. */ + WasmEdge_ExecutorContext *ExecCxt = WasmEdge_VMGetExecutorContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_ExecutorDelete()`. */ + ``` ## WasmEdge Runtime @@ -1737,157 +1737,157 @@ The `Executor` context is the executor for both WASM and compiled-WASM. This obj 1. Instantiate and register an `AST module` as a named `Module` instance - As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` contexts, developers can instantiate and register an `AST module` contexts into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). - - ```c - /* - * ... - * Assume that the `ASTCxt` is the output AST module context from the loader - * context and has passed the validation. Assume that the `ConfCxt` is the - * configure context. - */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* - * Create the executor context. The configure and the statistics contexts - * can be NULL. - */ - WasmEdge_ExecutorContext *ExecCxt = - WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* - * Create the store context. The store context is the object to link the - * modules for imports and exports. - */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* Result. */ - WasmEdge_Result Res; - - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - /* The output module instance. */ - WasmEdge_ModuleInstanceContext *ModCxt = NULL; - /* - * Register the WASM module into the store with the export module name - * "mod". - */ - Res = - WasmEdge_ExecutorRegister(ExecCxt, &ModCxt, StoreCxt, ASTCxt, ModName); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - WasmEdge_StringDelete(ModName); - - /* ... */ - - /* After the execution, the resources should be released. */ - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_ModuleInstanceDelete(ModCxt); - ``` + As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` contexts, developers can instantiate and register an `AST module` contexts into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader + * context and has passed the validation. Assume that the `ConfCxt` is the + * configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* + * Create the executor context. The configure and the statistics contexts + * can be NULL. + */ + WasmEdge_ExecutorContext *ExecCxt = + WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* + * Create the store context. The store context is the object to link the + * modules for imports and exports. + */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* Result. */ + WasmEdge_Result Res; + + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + /* The output module instance. */ + WasmEdge_ModuleInstanceContext *ModCxt = NULL; + /* + * Register the WASM module into the store with the export module name + * "mod". + */ + Res = + WasmEdge_ExecutorRegister(ExecCxt, &ModCxt, StoreCxt, ASTCxt, ModName); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + WasmEdge_StringDelete(ModName); + + /* ... */ + + /* After the execution, the resources should be released. */ + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_ModuleInstanceDelete(ModCxt); + ``` 2. Register an existing `Module` instance and export the module name - Besides instantiating and registering an `AST module` contexts, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). - - ```c - /* - * ... - * Assume that the `ASTCxt` is the output AST module context from the loader - * context and has passed the validation. Assume that the `ConfCxt` is the - * configure context. - */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* - * Create the executor context. The configure and the statistics contexts - * can be NULL. - */ - WasmEdge_ExecutorContext *ExecCxt = - WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* - * Create the store context. The store context is the object to link the - * modules for imports and exports. - */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* Result. */ - WasmEdge_Result Res; - - /* Create a module instance for host functions. */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("host-module"); - WasmEdge_ModuleInstanceContext *HostModCxt = - WasmEdge_ModuleInstanceCreate(ModName); - WasmEdge_StringDelete(ModName); - /* - * ... - * Create and add the host functions, tables, memories, and globals into the - * module instance. - */ - - /* Register the module instance into store with the exported module name. */ - /* The export module name is in the module instance already. */ - Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, HostModCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* ... */ - - /* After the execution, the resources should be released. */ - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_ModuleInstanceDelete(ModCxt); - ``` + Besides instantiating and registering an `AST module` contexts, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader + * context and has passed the validation. Assume that the `ConfCxt` is the + * configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* + * Create the executor context. The configure and the statistics contexts + * can be NULL. + */ + WasmEdge_ExecutorContext *ExecCxt = + WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* + * Create the store context. The store context is the object to link the + * modules for imports and exports. + */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* Result. */ + WasmEdge_Result Res; + + /* Create a module instance for host functions. */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("host-module"); + WasmEdge_ModuleInstanceContext *HostModCxt = + WasmEdge_ModuleInstanceCreate(ModName); + WasmEdge_StringDelete(ModName); + /* + * ... + * Create and add the host functions, tables, memories, and globals into the + * module instance. + */ + + /* Register the module instance into store with the exported module name. */ + /* The export module name is in the module instance already. */ + Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, HostModCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* ... */ + + /* After the execution, the resources should be released. */ + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_ModuleInstanceDelete(ModCxt); + ``` 3. Instantiate an `AST module` to an anonymous `Module` instance - WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` context for linking. - - ```c - /* - * ... - * Assume that the `ASTCxt` is the output AST module context from the loader - * context and has passed the validation. Assume that the `ConfCxt` is the - * configure context. - */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* - * Create the executor context. The configure and the statistics contexts - * can be NULL. - */ - WasmEdge_ExecutorContext *ExecCxt = - WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* - * Create the store context. The store context is the object to link the - * modules for imports and exports. - */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - - /* The output module instance. */ - WasmEdge_ModuleInstanceContext *ModCxt = NULL; - /* Instantiate the WASM module. */ - WasmEdge_Result Res = - WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt, StoreCxt, ASTCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM instantiation failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* ... */ - - /* After the execution, the resources should be released. */ - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_ModuleInstanceDelete(ModCxt); - ``` + WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` context for linking. + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader + * context and has passed the validation. Assume that the `ConfCxt` is the + * configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* + * Create the executor context. The configure and the statistics contexts + * can be NULL. + */ + WasmEdge_ExecutorContext *ExecCxt = + WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* + * Create the store context. The store context is the object to link the + * modules for imports and exports. + */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + + /* The output module instance. */ + WasmEdge_ModuleInstanceContext *ModCxt = NULL; + /* Instantiate the WASM module. */ + WasmEdge_Result Res = + WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt, StoreCxt, ASTCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM instantiation failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* ... */ + + /* After the execution, the resources should be released. */ + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_ModuleInstanceDelete(ModCxt); + ``` 4. Invoke functions - After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `WasmEdge_ExecutorInvoke()` API. + After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `WasmEdge_ExecutorInvoke()` API. ### AST Module @@ -1972,209 +1972,209 @@ The instances are the runtime structures of WASM. Developers can retrieve the `M 1. Module instance - After instantiating or registering an `AST module` context, developers will get a `Module` instance as the result, and have the responsibility to destroy it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. - - ```c - /* - * ... - * Instantiate a WASM module via the executor context and get the `ModCxt` - * as the output module instance. - */ - - /* Try to list the exported instance of the instantiated WASM module. */ - /* Take the function instances for example here. */ - uint32_t FuncNum = WasmEdge_ModuleInstanceListFunctionLength(ModCxt); - /* Create the name buffers. */ - const uint32_t BUF_LEN = 256; - WasmEdge_String FuncNames[BUF_LEN]; - /* - * If the list length is larger than the buffer length, the overflowed data - * will be discarded. - */ - uint32_t RealFuncNum = - WasmEdge_ModuleInstanceListFunction(ModCxt, FuncNames, BUF_LEN); - for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { - /* Working with the function name `FuncNames[I]` ... */ - /* The function names should __NOT__ be destroyed. */ - } - - /* Try to find the exported instance of the instantiated WASM module. */ - /* Take the function instances for example here. */ - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - WasmEdge_FunctionInstanceContext *FuncCxt = - WasmEdge_ModuleInstanceFindFunction(ModCxt, FuncName); - /* `FuncCxt` will be `NULL` if the function not found. */ - /* - * The returned instance is owned by the module instance context and should - * __NOT__ be destroyed. - */ - WasmEdge_StringDelete(FuncName); - ``` + After instantiating or registering an `AST module` context, developers will get a `Module` instance as the result, and have the responsibility to destroy it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. + + ```c + /* + * ... + * Instantiate a WASM module via the executor context and get the `ModCxt` + * as the output module instance. + */ + + /* Try to list the exported instance of the instantiated WASM module. */ + /* Take the function instances for example here. */ + uint32_t FuncNum = WasmEdge_ModuleInstanceListFunctionLength(ModCxt); + /* Create the name buffers. */ + const uint32_t BUF_LEN = 256; + WasmEdge_String FuncNames[BUF_LEN]; + /* + * If the list length is larger than the buffer length, the overflowed data + * will be discarded. + */ + uint32_t RealFuncNum = + WasmEdge_ModuleInstanceListFunction(ModCxt, FuncNames, BUF_LEN); + for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { + /* Working with the function name `FuncNames[I]` ... */ + /* The function names should __NOT__ be destroyed. */ + } + + /* Try to find the exported instance of the instantiated WASM module. */ + /* Take the function instances for example here. */ + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + WasmEdge_FunctionInstanceContext *FuncCxt = + WasmEdge_ModuleInstanceFindFunction(ModCxt, FuncName); + /* `FuncCxt` will be `NULL` if the function not found. */ + /* + * The returned instance is owned by the module instance context and should + * __NOT__ be destroyed. + */ + WasmEdge_StringDelete(FuncName); + ``` 2. Function instance - [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` contexts for host functions and add them into an `Module` instance context for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` contexts through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). + [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` contexts for host functions and add them into an `Module` instance context for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` contexts through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). - ```c - /* Retrieve the function instance from the module instance context. */ - WasmEdge_FunctionInstanceContext *FuncCxt = ...; - WasmEdge_FunctionTypeContext *FuncTypeCxt = - WasmEdge_FunctionInstanceGetFunctionType(FuncCxt); - /* - * The `FuncTypeCxt` is owned by the `FuncCxt` and should __NOT__ be - * destroyed. - */ + ```c + /* Retrieve the function instance from the module instance context. */ + WasmEdge_FunctionInstanceContext *FuncCxt = ...; + WasmEdge_FunctionTypeContext *FuncTypeCxt = + WasmEdge_FunctionInstanceGetFunctionType(FuncCxt); + /* + * The `FuncTypeCxt` is owned by the `FuncCxt` and should __NOT__ be + * destroyed. + */ - /* - * For the function instance creation, please refer to the `Host Function` - * guide. - */ - ``` + /* + * For the function instance creation, please refer to the `Host Function` + * guide. + */ + ``` 3. Table instance - In WasmEdge, developers can create the `Table` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Table` contexts supply APIs to control the data in table instances. - - ```c - WasmEdge_Limit TabLimit = { - .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - /* Create the table type with limit and the `FuncRef` element type. */ - WasmEdge_TableTypeContext *TabTypeCxt = - WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TabLimit); - /* Create the table instance with table type. */ - WasmEdge_TableInstanceContext *HostTable = - WasmEdge_TableInstanceCreate(TabTypeCxt); - /* Delete the table type. */ - WasmEdge_TableTypeDelete(TabTypeCxt); - WasmEdge_Result Res; - WasmEdge_Value Data; - - TabTypeCxt = WasmEdge_TableInstanceGetTableType(HostTable); - /* - * The `TabTypeCxt` got from table instance is owned by the `HostTable` and - * should __NOT__ be destroyed. - */ - enum WasmEdge_RefType RefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); - /* `RefType` will be `WasmEdge_RefType_FuncRef`. */ - Data = WasmEdge_ValueGenFuncRef(5); - Res = WasmEdge_TableInstanceSetData(HostTable, Data, 3); - /* Set the function index 5 to the table[3]. */ - /* - * This will get an "out of bounds table access" error - * because the position (13) is out of the table size (10): - * Res = WasmEdge_TableInstanceSetData(HostTable, Data, 13); - */ - Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 3); - /* Get the FuncRef value of the table[3]. */ - /* - * This will get an "out of bounds table access" error - * because the position (13) is out of the table size (10): - * Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 13); - */ - - uint32_t Size = WasmEdge_TableInstanceGetSize(HostTable); - /* `Size` will be 10. */ - Res = WasmEdge_TableInstanceGrow(HostTable, 6); - /* Grow the table size of 6, the table size will be 16. */ - /* - * This will get an "out of bounds table access" error because - * the size (16 + 6) will reach the table limit(20): - * Res = WasmEdge_TableInstanceGrow(HostTable, 6); - */ - - WasmEdge_TableInstanceDelete(HostTable); - ``` + In WasmEdge, developers can create the `Table` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Table` contexts supply APIs to control the data in table instances. + + ```c + WasmEdge_Limit TabLimit = { + .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + /* Create the table type with limit and the `FuncRef` element type. */ + WasmEdge_TableTypeContext *TabTypeCxt = + WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TabLimit); + /* Create the table instance with table type. */ + WasmEdge_TableInstanceContext *HostTable = + WasmEdge_TableInstanceCreate(TabTypeCxt); + /* Delete the table type. */ + WasmEdge_TableTypeDelete(TabTypeCxt); + WasmEdge_Result Res; + WasmEdge_Value Data; + + TabTypeCxt = WasmEdge_TableInstanceGetTableType(HostTable); + /* + * The `TabTypeCxt` got from table instance is owned by the `HostTable` and + * should __NOT__ be destroyed. + */ + enum WasmEdge_RefType RefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); + /* `RefType` will be `WasmEdge_RefType_FuncRef`. */ + Data = WasmEdge_ValueGenFuncRef(5); + Res = WasmEdge_TableInstanceSetData(HostTable, Data, 3); + /* Set the function index 5 to the table[3]. */ + /* + * This will get an "out of bounds table access" error + * because the position (13) is out of the table size (10): + * Res = WasmEdge_TableInstanceSetData(HostTable, Data, 13); + */ + Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 3); + /* Get the FuncRef value of the table[3]. */ + /* + * This will get an "out of bounds table access" error + * because the position (13) is out of the table size (10): + * Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 13); + */ + + uint32_t Size = WasmEdge_TableInstanceGetSize(HostTable); + /* `Size` will be 10. */ + Res = WasmEdge_TableInstanceGrow(HostTable, 6); + /* Grow the table size of 6, the table size will be 16. */ + /* + * This will get an "out of bounds table access" error because + * the size (16 + 6) will reach the table limit(20): + * Res = WasmEdge_TableInstanceGrow(HostTable, 6); + */ + + WasmEdge_TableInstanceDelete(HostTable); + ``` 4. Memory instance - In WasmEdge, developers can create the `Memory` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Memory` contexts supply APIs to control the data in memory instances. - - ```c - WasmEdge_Limit MemLimit = { - .HasMax = true, .Shared = false, .Min = 1, .Max = 5}; - /* Create the memory type with limit. The memory page size is 64KiB. */ - WasmEdge_MemoryTypeContext *MemTypeCxt = - WasmEdge_MemoryTypeCreate(MemLimit); - /* Create the memory instance with memory type. */ - WasmEdge_MemoryInstanceContext *HostMemory = - WasmEdge_MemoryInstanceCreate(MemTypeCxt); - /* Delete the memory type. */ - WasmEdge_MemoryTypeDelete(MemTypeCxt); - WasmEdge_Result Res; - uint8_t Buf[256]; - - Buf[0] = 0xAA; - Buf[1] = 0xBB; - Buf[2] = 0xCC; - Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0x1000, 3); - /* Set the data[0:2] to the memory[4096:4098]. */ - /* - * This will get an "out of bounds memory access" error - * because [65535:65537] is out of 1 page size (65536): - * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); - */ - Buf[0] = 0; - Buf[1] = 0; - Buf[2] = 0; - Res = WasmEdge_MemoryInstanceGetData(HostMemory, Buf, 0x1000, 3); - /* Get the memory[4096:4098]. Buf[0:2] will be `{0xAA, 0xBB, 0xCC}`. */ - /* - * This will get an "out of bounds memory access" error - * because [65535:65537] is out of 1 page size (65536): - * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); - */ - - uint32_t PageSize = WasmEdge_MemoryInstanceGetPageSize(HostMemory); - /* `PageSize` will be 1. */ - Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 2); - /* Grow the page size of 2, the page size of the memory instance will be 3. - */ - /* - * This will get an "out of bounds memory access" error because - * the page size (3 + 3) will reach the memory limit(5): - * Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 3); - */ - - WasmEdge_MemoryInstanceDelete(HostMemory); - ``` + In WasmEdge, developers can create the `Memory` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Memory` contexts supply APIs to control the data in memory instances. + + ```c + WasmEdge_Limit MemLimit = { + .HasMax = true, .Shared = false, .Min = 1, .Max = 5}; + /* Create the memory type with limit. The memory page size is 64KiB. */ + WasmEdge_MemoryTypeContext *MemTypeCxt = + WasmEdge_MemoryTypeCreate(MemLimit); + /* Create the memory instance with memory type. */ + WasmEdge_MemoryInstanceContext *HostMemory = + WasmEdge_MemoryInstanceCreate(MemTypeCxt); + /* Delete the memory type. */ + WasmEdge_MemoryTypeDelete(MemTypeCxt); + WasmEdge_Result Res; + uint8_t Buf[256]; + + Buf[0] = 0xAA; + Buf[1] = 0xBB; + Buf[2] = 0xCC; + Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0x1000, 3); + /* Set the data[0:2] to the memory[4096:4098]. */ + /* + * This will get an "out of bounds memory access" error + * because [65535:65537] is out of 1 page size (65536): + * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); + */ + Buf[0] = 0; + Buf[1] = 0; + Buf[2] = 0; + Res = WasmEdge_MemoryInstanceGetData(HostMemory, Buf, 0x1000, 3); + /* Get the memory[4096:4098]. Buf[0:2] will be `{0xAA, 0xBB, 0xCC}`. */ + /* + * This will get an "out of bounds memory access" error + * because [65535:65537] is out of 1 page size (65536): + * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); + */ + + uint32_t PageSize = WasmEdge_MemoryInstanceGetPageSize(HostMemory); + /* `PageSize` will be 1. */ + Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 2); + /* Grow the page size of 2, the page size of the memory instance will be 3. + */ + /* + * This will get an "out of bounds memory access" error because + * the page size (3 + 3) will reach the memory limit(5): + * Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 3); + */ + + WasmEdge_MemoryInstanceDelete(HostMemory); + ``` 5. Global instance - In WasmEdge, developers can create the `Global` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Global` contexts supply APIs to control the value in global instances. - - ```c - WasmEdge_Value Val = WasmEdge_ValueGenI64(1000); - /* Create the global type with value type and mutation. */ - WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate( - WasmEdge_ValType_I64, WasmEdge_Mutability_Var); - /* Create the global instance with value and global type. */ - WasmEdge_GlobalInstanceContext *HostGlobal = - WasmEdge_GlobalInstanceCreate(GlobTypeCxt, Val); - /* Delete the global type. */ - WasmEdge_GlobalTypeDelete(GlobTypeCxt); - WasmEdge_Result Res; - - GlobTypeCxt = WasmEdge_GlobalInstanceGetGlobalType(HostGlobal); - /* The `GlobTypeCxt` got from global instance is owned by the `HostGlobal` - * and should __NOT__ be destroyed. */ - enum WasmEdge_ValType ValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); - /* `ValType` will be `WasmEdge_ValType_I64`. */ - enum WasmEdge_Mutability ValMut = - WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); - /* `ValMut` will be `WasmEdge_Mutability_Var`. */ - - WasmEdge_GlobalInstanceSetValue(HostGlobal, WasmEdge_ValueGenI64(888)); - /* - * Set the value u64(888) to the global. - * This function will do nothing if the value type mismatched or - * the global mutability is `WasmEdge_Mutability_Const`. - */ - WasmEdge_Value GlobVal = WasmEdge_GlobalInstanceGetValue(HostGlobal); - /* Get the value (888 now) of the global context. */ - - WasmEdge_GlobalInstanceDelete(HostGlobal); - ``` + In WasmEdge, developers can create the `Global` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Global` contexts supply APIs to control the value in global instances. + + ```c + WasmEdge_Value Val = WasmEdge_ValueGenI64(1000); + /* Create the global type with value type and mutation. */ + WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate( + WasmEdge_ValType_I64, WasmEdge_Mutability_Var); + /* Create the global instance with value and global type. */ + WasmEdge_GlobalInstanceContext *HostGlobal = + WasmEdge_GlobalInstanceCreate(GlobTypeCxt, Val); + /* Delete the global type. */ + WasmEdge_GlobalTypeDelete(GlobTypeCxt); + WasmEdge_Result Res; + + GlobTypeCxt = WasmEdge_GlobalInstanceGetGlobalType(HostGlobal); + /* The `GlobTypeCxt` got from global instance is owned by the `HostGlobal` + * and should __NOT__ be destroyed. */ + enum WasmEdge_ValType ValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); + /* `ValType` will be `WasmEdge_ValType_I64`. */ + enum WasmEdge_Mutability ValMut = + WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); + /* `ValMut` will be `WasmEdge_Mutability_Var`. */ + + WasmEdge_GlobalInstanceSetValue(HostGlobal, WasmEdge_ValueGenI64(888)); + /* + * Set the value u64(888) to the global. + * This function will do nothing if the value type mismatched or + * the global mutability is `WasmEdge_Mutability_Const`. + */ + WasmEdge_Value GlobVal = WasmEdge_GlobalInstanceGetValue(HostGlobal); + /* Get the value (888 now) of the global context. */ + + WasmEdge_GlobalInstanceDelete(HostGlobal); + ``` ### Host Functions @@ -2182,568 +2182,568 @@ The instances are the runtime structures of WASM. Developers can retrieve the `M 1. Host function allocation - Developers can define C functions with the following function signature as the host function body: - - ```c - typedef WasmEdge_Result (*WasmEdge_HostFunc_t)( - void *Data, const WasmEdge_CallingFrameContext *CallFrameCxt, - const WasmEdge_Value *Params, WasmEdge_Value *Returns); - ``` - - The example of an `add` host function to add 2 `i32` values: + Developers can define C functions with the following function signature as the host function body: + + ```c + typedef WasmEdge_Result (*WasmEdge_HostFunc_t)( + void *Data, const WasmEdge_CallingFrameContext *CallFrameCxt, + const WasmEdge_Value *Params, WasmEdge_Value *Returns); + ``` + + The example of an `add` host function to add 2 `i32` values: + + ```c + WasmEdge_Result Add(void *, const WasmEdge_CallingFrameContext *, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + /* + * Params: {i32, i32} + * Returns: {i32} + * Developers should take care about the function type. + */ + /* Retrieve the value 1. */ + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + /* Retrieve the value 2. */ + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + /* Output value 1 is Val1 + Val2. */ + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + /* Return the status of success. */ + return WasmEdge_Result_Success; + } + ``` + + Then developers can create `Function` context with the host function body and the function type: + + ```c + enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, + WasmEdge_ValType_I32}; + enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; + /* Create a function type: {i32, i32} -> {i32}. */ + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + /* + * Create a function context with the function type and host function body. + * The `Cost` parameter can be 0 if developers do not need the cost + * measuring. + */ + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + /* + * The third parameter is the pointer to the additional data. + * Developers should guarantee the life cycle of the data, and it can be + * `NULL` if the external data is not needed. + */ + WasmEdge_FunctionTypeDelete(HostType); + + /* + * If the function instance is __NOT__ added into a module instance context, + * it should be deleted. + */ + WasmEdge_FunctionInstanceDelete(HostFunc); + ``` - ```c - WasmEdge_Result Add(void *, const WasmEdge_CallingFrameContext *, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - /* - * Params: {i32, i32} - * Returns: {i32} - * Developers should take care about the function type. - */ - /* Retrieve the value 1. */ - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - /* Retrieve the value 2. */ - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - /* Output value 1 is Val1 + Val2. */ - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - /* Return the status of success. */ - return WasmEdge_Result_Success; - } - ``` - - Then developers can create `Function` context with the host function body and the function type: - - ```c - enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, - WasmEdge_ValType_I32}; - enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; - /* Create a function type: {i32, i32} -> {i32}. */ - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - /* - * Create a function context with the function type and host function body. - * The `Cost` parameter can be 0 if developers do not need the cost - * measuring. - */ - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - /* - * The third parameter is the pointer to the additional data. - * Developers should guarantee the life cycle of the data, and it can be - * `NULL` if the external data is not needed. - */ - WasmEdge_FunctionTypeDelete(HostType); +2. Calling frame context - /* - * If the function instance is __NOT__ added into a module instance context, - * it should be deleted. - */ - WasmEdge_FunctionInstanceDelete(HostFunc); - ``` + The `WasmEdge_CallingFrameContext` is the context to provide developers to access the module instance of the [frame on the top of the calling stack](https://webassembly.github.io/spec/core/exec/runtime.html#activations-and-frames). According to the [WASM spec](https://webassembly.github.io/spec/core/exec/instructions.html#function-calls), a frame with the module instance is pushed into the stack when invoking a function. Therefore, the host functions can access the module instance of the top frame to retrieve the memory instances to read/write data. -2. Calling frame context + ```c + WasmEdge_Result LoadOffset(void *Data, + const WasmEdge_CallingFrameContext *CallFrameCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + /* Function type: {i32} -> {} */ + uint32_t Offset = (uint32_t)WasmEdge_ValueGetI32(In[0]); + uint32_t Num = 0; - The `WasmEdge_CallingFrameContext` is the context to provide developers to access the module instance of the [frame on the top of the calling stack](https://webassembly.github.io/spec/core/exec/runtime.html#activations-and-frames). According to the [WASM spec](https://webassembly.github.io/spec/core/exec/instructions.html#function-calls), a frame with the module instance is pushed into the stack when invoking a function. Therefore, the host functions can access the module instance of the top frame to retrieve the memory instances to read/write data. - - ```c - WasmEdge_Result LoadOffset(void *Data, - const WasmEdge_CallingFrameContext *CallFrameCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - /* Function type: {i32} -> {} */ - uint32_t Offset = (uint32_t)WasmEdge_ValueGetI32(In[0]); - uint32_t Num = 0; - - /* - * Get the 0-th memory instance of the module instance of the top frame on - * stack. - */ - WasmEdge_MemoryInstanceContext *MemCxt = - WasmEdge_CallingFrameGetMemoryInstance(CallFrameCxt, 0); - - WasmEdge_Result Res = - WasmEdge_MemoryInstanceGetData(MemCxt, (uint8_t *)(&Num), Offset, 4); - if (WasmEdge_ResultOK(Res)) { - printf("u32 at memory[%lu]: %lu\n", Offset, Num); - } else { - return Res; - } - return WasmEdge_Result_Success; - } - ``` - - Besides using the `WasmEdge_CallingFrameGetMemoryInstance()` API to get the memory instance by index in the module instance, developers can use the `WasmEdge_CallingFrameGetModuleInstance()` to get the module instance directly. Therefore, developers can retrieve the exported contexts by the `WasmEdge_ModuleInstanceContext` APIs. And also, developers can use the `WasmEdge_CallingFrameGetExecutor()` API to get the currently used executor context. + /* + * Get the 0-th memory instance of the module instance of the top frame on + * stack. + */ + WasmEdge_MemoryInstanceContext *MemCxt = + WasmEdge_CallingFrameGetMemoryInstance(CallFrameCxt, 0); + + WasmEdge_Result Res = + WasmEdge_MemoryInstanceGetData(MemCxt, (uint8_t *)(&Num), Offset, 4); + if (WasmEdge_ResultOK(Res)) { + printf("u32 at memory[%lu]: %lu\n", Offset, Num); + } else { + return Res; + } + return WasmEdge_Result_Success; + } + ``` + + Besides using the `WasmEdge_CallingFrameGetMemoryInstance()` API to get the memory instance by index in the module instance, developers can use the `WasmEdge_CallingFrameGetModuleInstance()` to get the module instance directly. Therefore, developers can retrieve the exported contexts by the `WasmEdge_ModuleInstanceContext` APIs. And also, developers can use the `WasmEdge_CallingFrameGetExecutor()` API to get the currently used executor context. 3. User-defined error code of the host functions - In host functions, WasmEdge provides `WasmEdge_Result_Success` to return success, `WasmEdge_Result_Terminate` to terminate the WASM execution, and `WasmEdge_Result_Fail` to return fail. WasmEdge also provides the usage of returning the user-specified codes. Developers can use the `WasmEdge_ResultGen()` API to generate the `WasmEdge_Result` with error code, and use the `WasmEdge_ResultGetCode()` API to get the error code. + In host functions, WasmEdge provides `WasmEdge_Result_Success` to return success, `WasmEdge_Result_Terminate` to terminate the WASM execution, and `WasmEdge_Result_Fail` to return fail. WasmEdge also provides the usage of returning the user-specified codes. Developers can use the `WasmEdge_ResultGen()` API to generate the `WasmEdge_Result` with error code, and use the `WasmEdge_ResultGetCode()` API to get the error code. - > Notice: The error code only supports 24-bit integer (0 ~ 16777216 in `uint32_t`). The values larger than 24-bit will be truncated. + > Notice: The error code only supports 24-bit integer (0 ~ 16777216 in `uint32_t`). The values larger than 24-bit will be truncated. - Assume that a simple WASM from the WAT is as following: + Assume that a simple WASM from the WAT is as following: - ```wasm - (module - (type $t0 (func (param i32))) - (import "extern" "trap" (func $f-trap (type $t0))) - (func (export "trap") (param i32) - local.get 0 - call $f-trap) - ) - ``` - - And the `test.c` is as following: - - ```c - #include - #include - - /* Host function body definition. */ - WasmEdge_Result Trap(void *Data, - const WasmEdge_CallingFrameContext *CallFrameCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val = WasmEdge_ValueGetI32(In[0]); - /* Return the error code from the param[0]. */ - return WasmEdge_ResultGen(WasmEdge_ErrCategory_UserLevelError, Val); - } - - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The WASM module buffer. */ - uint8_t WASM[] = {/* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x05, 0x01, - /* function type {i32} -> {} */ - 0x60, 0x01, 0x7F, 0x00, - /* Import section */ - 0x02, 0x0F, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "trap" */ - 0x04, 0x74, 0x72, 0x61, 0x70, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x08, 0x01, - /* export name: "trap" */ - 0x04, 0x74, 0x72, 0x61, 0x70, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x08, 0x01, - /* code body */ - 0x06, 0x00, 0x20, 0x00, 0x10, 0x00, 0x0B}; - - /* Create the module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); - WasmEdge_ModuleInstanceContext *HostModCxt = - WasmEdge_ModuleInstanceCreate(ExportName); - enum WasmEdge_ValType ParamList[1] = {WasmEdge_ValType_I32}; - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 1, NULL, 0); - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Trap, NULL, 0); - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("trap"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); - WasmEdge_StringDelete(HostFuncName); - - WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(5566)}; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("trap"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( - VMCxt, WASM, sizeof(WASM), FuncName, Params, 1, NULL, 0); - - /* Get the result code and print. */ - printf("Get the error code: %u\n", WasmEdge_ResultGetCode(Res)); - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - WasmEdge_ModuleInstanceDelete(HostModCxt); - return 0; - } - ``` - - Then you can compile and run: (giving the expected error code `5566`) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - [2022-08-26 15:06:40.384] [error] user defined failed: user defined error code, Code: 0x15be - [2022-08-26 15:06:40.384] [error] When executing function name: "trap" - Get the error code: 5566 - ``` + ```wasm + (module + (type $t0 (func (param i32))) + (import "extern" "trap" (func $f-trap (type $t0))) + (func (export "trap") (param i32) + local.get 0 + call $f-trap) + ) + ``` -4. Construct a module instance with host instances + And the `test.c` is as following: - Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + ```c + #include + #include - ```c - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, + /* Host function body definition. */ + WasmEdge_Result Trap(void *Data, const WasmEdge_CallingFrameContext *CallFrameCxt, const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - return WasmEdge_Result_Success; - } - - /* Create a module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("module"); - WasmEdge_ModuleInstanceContext *HostModCxt = - WasmEdge_ModuleInstanceCreate(ExportName); - WasmEdge_StringDelete(ExportName); - - /* Create and add a function instance into the module instance. */ - enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, - WasmEdge_ValType_I32}; - enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - /* - * The third parameter is the pointer to the additional data object. - * Developers should guarantee the life cycle of the data, and it can be - * `NULL` if the external data is not needed. - */ - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("add"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, FuncName, HostFunc); - WasmEdge_StringDelete(FuncName); - - /* Create and add a table instance into the import object. */ - WasmEdge_Limit TableLimit = { - .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - WasmEdge_TableTypeContext *HostTType = - WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TableLimit); - WasmEdge_TableInstanceContext *HostTable = - WasmEdge_TableInstanceCreate(HostTType); - WasmEdge_TableTypeDelete(HostTType); - WasmEdge_String TableName = WasmEdge_StringCreateByCString("table"); - WasmEdge_ModuleInstanceAddTable(HostModCxt, TableName, HostTable); - WasmEdge_StringDelete(TableName); - - /* Create and add a memory instance into the import object. */ - WasmEdge_Limit MemoryLimit = { - .HasMax = true, .Shared = false, .Min = 1, .Max = 2}; - WasmEdge_MemoryTypeContext *HostMType = - WasmEdge_MemoryTypeCreate(MemoryLimit); - WasmEdge_MemoryInstanceContext *HostMemory = - WasmEdge_MemoryInstanceCreate(HostMType); - WasmEdge_MemoryTypeDelete(HostMType); - WasmEdge_String MemoryName = WasmEdge_StringCreateByCString("memory"); - WasmEdge_ModuleInstanceAddMemory(HostModCxt, MemoryName, HostMemory); - WasmEdge_StringDelete(MemoryName); - - /* Create and add a global instance into the module instance. */ - WasmEdge_GlobalTypeContext *HostGType = WasmEdge_GlobalTypeCreate( - WasmEdge_ValType_I32, WasmEdge_Mutability_Var); - WasmEdge_GlobalInstanceContext *HostGlobal = - WasmEdge_GlobalInstanceCreate(HostGType, WasmEdge_ValueGenI32(666)); - WasmEdge_GlobalTypeDelete(HostGType); - WasmEdge_String GlobalName = WasmEdge_StringCreateByCString("global"); - WasmEdge_ModuleInstanceAddGlobal(HostModCxt, GlobalName, HostGlobal); - WasmEdge_StringDelete(GlobalName); - - /* - * The module instance should be deleted. - * Developers should __NOT__ destroy the instances added into the module - * instance contexts. - */ - WasmEdge_ModuleInstanceDelete(HostModCxt); - ``` - -5. Specified module instance + int32_t Val = WasmEdge_ValueGetI32(In[0]); + /* Return the error code from the param[0]. */ + return WasmEdge_ResultGen(WasmEdge_ErrCategory_UserLevelError, Val); + } + + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The WASM module buffer. */ + uint8_t WASM[] = {/* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x05, 0x01, + /* function type {i32} -> {} */ + 0x60, 0x01, 0x7F, 0x00, + /* Import section */ + 0x02, 0x0F, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "trap" */ + 0x04, 0x74, 0x72, 0x61, 0x70, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x08, 0x01, + /* export name: "trap" */ + 0x04, 0x74, 0x72, 0x61, 0x70, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x08, 0x01, + /* code body */ + 0x06, 0x00, 0x20, 0x00, 0x10, 0x00, 0x0B}; + + /* Create the module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); + WasmEdge_ModuleInstanceContext *HostModCxt = + WasmEdge_ModuleInstanceCreate(ExportName); + enum WasmEdge_ValType ParamList[1] = {WasmEdge_ValType_I32}; + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 1, NULL, 0); + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Trap, NULL, 0); + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("trap"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); + WasmEdge_StringDelete(HostFuncName); + + WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(5566)}; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("trap"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( + VMCxt, WASM, sizeof(WASM), FuncName, Params, 1, NULL, 0); + + /* Get the result code and print. */ + printf("Get the error code: %u\n", WasmEdge_ResultGetCode(Res)); + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + WasmEdge_ModuleInstanceDelete(HostModCxt); + return 0; + } + ``` + + Then you can compile and run: (giving the expected error code `5566`) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + [2022-08-26 15:06:40.384] [error] user defined failed: user defined error code, Code: 0x15be + [2022-08-26 15:06:40.384] [error] When executing function name: "trap" + Get the error code: 5566 + ``` - `WasmEdge_ModuleInstanceCreateWASI()` API can create and initialize the `WASI` module instance. +4. Construct a module instance with host instances - `WasmEdge_ModuleInstanceCreateWasiNN()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin. + Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + + ```c + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, + const WasmEdge_CallingFrameContext *CallFrameCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + return WasmEdge_Result_Success; + } + + /* Create a module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("module"); + WasmEdge_ModuleInstanceContext *HostModCxt = + WasmEdge_ModuleInstanceCreate(ExportName); + WasmEdge_StringDelete(ExportName); + + /* Create and add a function instance into the module instance. */ + enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, + WasmEdge_ValType_I32}; + enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + /* + * The third parameter is the pointer to the additional data object. + * Developers should guarantee the life cycle of the data, and it can be + * `NULL` if the external data is not needed. + */ + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("add"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, FuncName, HostFunc); + WasmEdge_StringDelete(FuncName); + + /* Create and add a table instance into the import object. */ + WasmEdge_Limit TableLimit = { + .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + WasmEdge_TableTypeContext *HostTType = + WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TableLimit); + WasmEdge_TableInstanceContext *HostTable = + WasmEdge_TableInstanceCreate(HostTType); + WasmEdge_TableTypeDelete(HostTType); + WasmEdge_String TableName = WasmEdge_StringCreateByCString("table"); + WasmEdge_ModuleInstanceAddTable(HostModCxt, TableName, HostTable); + WasmEdge_StringDelete(TableName); + + /* Create and add a memory instance into the import object. */ + WasmEdge_Limit MemoryLimit = { + .HasMax = true, .Shared = false, .Min = 1, .Max = 2}; + WasmEdge_MemoryTypeContext *HostMType = + WasmEdge_MemoryTypeCreate(MemoryLimit); + WasmEdge_MemoryInstanceContext *HostMemory = + WasmEdge_MemoryInstanceCreate(HostMType); + WasmEdge_MemoryTypeDelete(HostMType); + WasmEdge_String MemoryName = WasmEdge_StringCreateByCString("memory"); + WasmEdge_ModuleInstanceAddMemory(HostModCxt, MemoryName, HostMemory); + WasmEdge_StringDelete(MemoryName); + + /* Create and add a global instance into the module instance. */ + WasmEdge_GlobalTypeContext *HostGType = WasmEdge_GlobalTypeCreate( + WasmEdge_ValType_I32, WasmEdge_Mutability_Var); + WasmEdge_GlobalInstanceContext *HostGlobal = + WasmEdge_GlobalInstanceCreate(HostGType, WasmEdge_ValueGenI32(666)); + WasmEdge_GlobalTypeDelete(HostGType); + WasmEdge_String GlobalName = WasmEdge_StringCreateByCString("global"); + WasmEdge_ModuleInstanceAddGlobal(HostModCxt, GlobalName, HostGlobal); + WasmEdge_StringDelete(GlobalName); + + /* + * The module instance should be deleted. + * Developers should __NOT__ destroy the instances added into the module + * instance contexts. + */ + WasmEdge_ModuleInstanceDelete(HostModCxt); + ``` - `WasmEdge_ModuleInstanceCreateWasiCryptoCommon()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin. +5. Specified module instance - `WasmEdge_ModuleInstanceCreateWasiCryptoAsymmetricCommon()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin. + `WasmEdge_ModuleInstanceCreateWASI()` API can create and initialize the `WASI` module instance. - `WasmEdge_ModuleInstanceCreateWasiCryptoKx()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin. + `WasmEdge_ModuleInstanceCreateWasiNN()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin. - `WasmEdge_ModuleInstanceCreateWasiCryptoSignatures()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin. + `WasmEdge_ModuleInstanceCreateWasiCryptoCommon()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin. - `WasmEdge_ModuleInstanceCreateWasiCryptoSymmetric()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin. + `WasmEdge_ModuleInstanceCreateWasiCryptoAsymmetricCommon()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin. - `WasmEdge_ModuleInstanceCreateWasmEdgeProcess()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. + `WasmEdge_ModuleInstanceCreateWasiCryptoKx()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin. - Developers can create these module instance contexts and register them into the `Store` or `VM` contexts rather than adjust the settings in the `Configure` contexts. + `WasmEdge_ModuleInstanceCreateWasiCryptoSignatures()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin. - > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. And the 5 modules are recommended to all be created and registered together. + `WasmEdge_ModuleInstanceCreateWasiCryptoSymmetric()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin. - ```c - WasmEdge_ModuleInstanceContext *WasiModCxt = - WasmEdge_ModuleInstanceCreateWASI(/* ... ignored */); - WasmEdge_ModuleInstanceContext *ProcModCxt = - WasmEdge_ModuleInstanceCreateWasmEdgeProcess(/* ... ignored */); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - /* Register the WASI and WasmEdge_Process into the VM context. */ - WasmEdge_VMRegisterModuleFromImport(VMCxt, WasiModCxt); - WasmEdge_VMRegisterModuleFromImport(VMCxt, ProcModCxt); - /* Get the WASI exit code. */ - uint32_t ExitCode = WasmEdge_ModuleInstanceWASIGetExitCode(WasiModCxt); - /* - * The `ExitCode` will be EXIT_SUCCESS if the execution has no error. - * Otherwise, it will return with the related exit code. - */ - WasmEdge_VMDelete(VMCxt); - /* The module instances should be deleted. */ - WasmEdge_ModuleInstanceDelete(WasiModCxt); - WasmEdge_ModuleInstanceDelete(ProcModCxt); - ``` + `WasmEdge_ModuleInstanceCreateWasmEdgeProcess()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. -6. Example + Developers can create these module instance contexts and register them into the `Store` or `VM` contexts rather than adjust the settings in the `Configure` contexts. - Assume that a simple WASM from the WAT is as following: + > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. And the 5 modules are recommended to all be created and registered together. - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` + ```c + WasmEdge_ModuleInstanceContext *WasiModCxt = + WasmEdge_ModuleInstanceCreateWASI(/* ... ignored */); + WasmEdge_ModuleInstanceContext *ProcModCxt = + WasmEdge_ModuleInstanceCreateWasmEdgeProcess(/* ... ignored */); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + /* Register the WASI and WasmEdge_Process into the VM context. */ + WasmEdge_VMRegisterModuleFromImport(VMCxt, WasiModCxt); + WasmEdge_VMRegisterModuleFromImport(VMCxt, ProcModCxt); + /* Get the WASI exit code. */ + uint32_t ExitCode = WasmEdge_ModuleInstanceWASIGetExitCode(WasiModCxt); + /* + * The `ExitCode` will be EXIT_SUCCESS if the execution has no error. + * Otherwise, it will return with the related exit code. + */ + WasmEdge_VMDelete(VMCxt); + /* The module instances should be deleted. */ + WasmEdge_ModuleInstanceDelete(WasiModCxt); + WasmEdge_ModuleInstanceDelete(ProcModCxt); + ``` - And the `test.c` is as following: +6. Example - ```c - #include - #include - - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, - const WasmEdge_CallingFrameContext *CallFrameCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - printf("Host function \"Add\": %d + %d\n", Val1, Val2); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - return WasmEdge_Result_Success; - } - - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The WASM module buffer. */ - uint8_t WASM[] = {/* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B}; - - /* Create the module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); - WasmEdge_ModuleInstanceContext *HostModCxt = - WasmEdge_ModuleInstanceCreate(ExportName); - enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, - WasmEdge_ValType_I32}; - enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); - WasmEdge_StringDelete(HostFuncName); - - WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[2] = {WasmEdge_ValueGenI32(1234), - WasmEdge_ValueGenI32(5678)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( - VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - WasmEdge_ModuleInstanceDelete(HostModCxt); - return 0; - } - ``` - - Then you can compile and run: (the result of 1234 + 5678 is 6912) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Host function "Add": 1234 + 5678 - Get the result: 6912 - ``` + Assume that a simple WASM from the WAT is as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + And the `test.c` is as following: + + ```c + #include + #include + + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, + const WasmEdge_CallingFrameContext *CallFrameCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + printf("Host function \"Add\": %d + %d\n", Val1, Val2); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + return WasmEdge_Result_Success; + } + + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The WASM module buffer. */ + uint8_t WASM[] = {/* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B}; + + /* Create the module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); + WasmEdge_ModuleInstanceContext *HostModCxt = + WasmEdge_ModuleInstanceCreate(ExportName); + enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, + WasmEdge_ValType_I32}; + enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); + WasmEdge_StringDelete(HostFuncName); + + WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[2] = {WasmEdge_ValueGenI32(1234), + WasmEdge_ValueGenI32(5678)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( + VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + WasmEdge_ModuleInstanceDelete(HostModCxt); + return 0; + } + ``` + + Then you can compile and run: (the result of 1234 + 5678 is 6912) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Host function "Add": 1234 + 5678 + Get the result: 6912 + ``` 7. Host Data Example - Developers can set a external data object to the `Function` context, and access to the object in the function body. Assume that a simple WASM from the WAT is as following: - - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` - - And the `test.c` is as following: - - ```c - #include - #include - - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, - const WasmEdge_CallingFrameContext *CallFrameCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - printf("Host function \"Add\": %d + %d\n", Val1, Val2); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - /* Also set the result to the data. */ - int32_t *DataPtr = (int32_t *)Data; - *DataPtr = Val1 + Val2; - return WasmEdge_Result_Success; - } - - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The WASM module buffer. */ - uint8_t WASM[] = {/* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B}; - - /* The external data object: an integer. */ - int32_t Data; - - /* Create the module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); - WasmEdge_ModuleInstanceContext *HostModCxt = - WasmEdge_ModuleInstanceCreate(ExportName); - enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, - WasmEdge_ValType_I32}; - enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Add, &Data, 0); - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); - WasmEdge_StringDelete(HostFuncName); - - WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[2] = {WasmEdge_ValueGenI32(1234), - WasmEdge_ValueGenI32(5678)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( - VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - printf("Data value: %d\n", Data); - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - WasmEdge_ModuleInstanceDelete(HostModCxt); - return 0; - } - ``` - - Then you can compile and run: (the result of 1234 + 5678 is 6912) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Host function "Add": 1234 + 5678 - Get the result: 6912 - Data value: 6912 - ``` + Developers can set a external data object to the `Function` context, and access to the object in the function body. Assume that a simple WASM from the WAT is as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + And the `test.c` is as following: + + ```c + #include + #include + + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, + const WasmEdge_CallingFrameContext *CallFrameCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + printf("Host function \"Add\": %d + %d\n", Val1, Val2); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + /* Also set the result to the data. */ + int32_t *DataPtr = (int32_t *)Data; + *DataPtr = Val1 + Val2; + return WasmEdge_Result_Success; + } + + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The WASM module buffer. */ + uint8_t WASM[] = {/* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B}; + + /* The external data object: an integer. */ + int32_t Data; + + /* Create the module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); + WasmEdge_ModuleInstanceContext *HostModCxt = + WasmEdge_ModuleInstanceCreate(ExportName); + enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, + WasmEdge_ValType_I32}; + enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Add, &Data, 0); + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); + WasmEdge_StringDelete(HostFuncName); + + WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[2] = {WasmEdge_ValueGenI32(1234), + WasmEdge_ValueGenI32(5678)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( + VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + printf("Data value: %d\n", Data); + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + WasmEdge_ModuleInstanceDelete(HostModCxt); + return 0; + } + ``` + + Then you can compile and run: (the result of 1234 + 5678 is 6912) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Host function "Add": 1234 + 5678 + Get the result: 6912 + Data value: 6912 + ``` ## WasmEdge AOT Compiler diff --git a/docs/embed/c/reference/0.12.0.md b/docs/embed/c/reference/0.12.0.md index e41abcb5..0aa3ce09 100644 --- a/docs/embed/c/reference/0.12.0.md +++ b/docs/embed/c/reference/0.12.0.md @@ -68,27 +68,27 @@ After the installation of WasmEdge, the following guide can help you to test for 1. Prepare the test C file (and assumed saved as `test.c`): - ```c - #include - #include - int main() { - printf("WasmEdge version: %s\n", WasmEdge_VersionGet()); - return 0; - } - ``` + ```c + #include + #include + int main() { + printf("WasmEdge version: %s\n", WasmEdge_VersionGet()); + return 0; + } + ``` 2. Compile the file with `gcc` or `clang`. - ```bash - gcc test.c -lwasmedge - ``` + ```bash + gcc test.c -lwasmedge + ``` 3. Run and get the expected output. - ```bash - $ ./a.out - WasmEdge version: 0.12.0 - ``` + ```bash + $ ./a.out + WasmEdge version: 0.12.0 + ``` ### ABI Compatibility @@ -131,54 +131,54 @@ In WasmEdge, developers should convert the values to `WasmEdge_Value` objects th 1. Number types: `i32`, `i64`, `f32`, `f64`, and `v128` for the `SIMD` proposal - ```c - WasmEdge_Value Val; - Val = WasmEdge_ValueGenI32(123456); - printf("%d\n", WasmEdge_ValueGetI32(Val)); - /* Will print "123456" */ - Val = WasmEdge_ValueGenI64(1234567890123LL); - printf("%ld\n", WasmEdge_ValueGetI64(Val)); - /* Will print "1234567890123" */ - Val = WasmEdge_ValueGenF32(123.456f); - printf("%f\n", WasmEdge_ValueGetF32(Val)); - /* Will print "123.456001" */ - Val = WasmEdge_ValueGenF64(123456.123456789); - printf("%.10f\n", WasmEdge_ValueGetF64(Val)); - /* Will print "123456.1234567890" */ - ``` + ```c + WasmEdge_Value Val; + Val = WasmEdge_ValueGenI32(123456); + printf("%d\n", WasmEdge_ValueGetI32(Val)); + /* Will print "123456" */ + Val = WasmEdge_ValueGenI64(1234567890123LL); + printf("%ld\n", WasmEdge_ValueGetI64(Val)); + /* Will print "1234567890123" */ + Val = WasmEdge_ValueGenF32(123.456f); + printf("%f\n", WasmEdge_ValueGetF32(Val)); + /* Will print "123.456001" */ + Val = WasmEdge_ValueGenF64(123456.123456789); + printf("%.10f\n", WasmEdge_ValueGetF64(Val)); + /* Will print "123456.1234567890" */ + ``` 2. Reference types: `funcref` and `externref` for the `Reference-Types` proposal - ```c - WasmEdge_Value Val; - void *Ptr; - bool IsNull; - uint32_t Num = 10; - /* Generate a externref to NULL. */ - Val = WasmEdge_ValueGenNullRef(WasmEdge_RefType_ExternRef); - IsNull = WasmEdge_ValueIsNullRef(Val); - /* The `IsNull` will be `TRUE`. */ - Ptr = WasmEdge_ValueGetExternRef(Val); - /* The `Ptr` will be `NULL`. */ - - /* Get the function instance by creation or from module instance. */ - const WasmEdge_FunctionInstanceContext *FuncCxt = ...; - /* Generate a funcref with the given function instance context. */ - Val = WasmEdge_ValueGenFuncRef(FuncCxt); - const WasmEdge_FunctionInstanceContext *GotFuncCxt = - WasmEdge_ValueGetFuncRef(Val); - /* The `GotFuncCxt` will be the same as `FuncCxt`. */ - - /* Generate a externref to `Num`. */ - Val = WasmEdge_ValueGenExternRef(&Num); - Ptr = WasmEdge_ValueGetExternRef(Val); - /* The `Ptr` will be `&Num`. */ - printf("%u\n", *(uint32_t *)Ptr); - /* Will print "10" */ - Num += 55; - printf("%u\n", *(uint32_t *)Ptr); - /* Will print "65" */ - ``` + ```c + WasmEdge_Value Val; + void *Ptr; + bool IsNull; + uint32_t Num = 10; + /* Generate a externref to NULL. */ + Val = WasmEdge_ValueGenNullRef(WasmEdge_RefType_ExternRef); + IsNull = WasmEdge_ValueIsNullRef(Val); + /* The `IsNull` will be `TRUE`. */ + Ptr = WasmEdge_ValueGetExternRef(Val); + /* The `Ptr` will be `NULL`. */ + + /* Get the function instance by creation or from module instance. */ + const WasmEdge_FunctionInstanceContext *FuncCxt = ...; + /* Generate a funcref with the given function instance context. */ + Val = WasmEdge_ValueGenFuncRef(FuncCxt); + const WasmEdge_FunctionInstanceContext *GotFuncCxt = + WasmEdge_ValueGetFuncRef(Val); + /* The `GotFuncCxt` will be the same as `FuncCxt`. */ + + /* Generate a externref to `Num`. */ + Val = WasmEdge_ValueGenExternRef(&Num); + Ptr = WasmEdge_ValueGetExternRef(Val); + /* The `Ptr` will be `&Num`. */ + printf("%u\n", *(uint32_t *)Ptr); + /* Will print "10" */ + Num += 55; + printf("%u\n", *(uint32_t *)Ptr); + /* Will print "65" */ + ``` ### Strings @@ -186,50 +186,50 @@ The `WasmEdge_String` object is for the instance names when invoking a WASM func 1. Create a `WasmEdge_String` from a C string (`const char *` with NULL termination) or a buffer with length. - The content of the C string or buffer will be copied into the `WasmEdge_String` object. + The content of the C string or buffer will be copied into the `WasmEdge_String` object. - ```c - char Buf[4] = {50, 55, 60, 65}; - WasmEdge_String Str1 = WasmEdge_StringCreateByCString("test"); - WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); - /* The objects should be deleted by `WasmEdge_StringDelete()`. */ - WasmEdge_StringDelete(Str1); - WasmEdge_StringDelete(Str2); - ``` + ```c + char Buf[4] = {50, 55, 60, 65}; + WasmEdge_String Str1 = WasmEdge_StringCreateByCString("test"); + WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); + /* The objects should be deleted by `WasmEdge_StringDelete()`. */ + WasmEdge_StringDelete(Str1); + WasmEdge_StringDelete(Str2); + ``` 2. Wrap a `WasmEdge_String` to a buffer with length. - The content will not be copied, and the caller should guarantee the life cycle of the input buffer. + The content will not be copied, and the caller should guarantee the life cycle of the input buffer. - ```c - const char CStr[] = "test"; - WasmEdge_String Str = WasmEdge_StringWrap(CStr, 4); - /* The object should __NOT__ be deleted by `WasmEdge_StringDelete()`. */ - ``` + ```c + const char CStr[] = "test"; + WasmEdge_String Str = WasmEdge_StringWrap(CStr, 4); + /* The object should __NOT__ be deleted by `WasmEdge_StringDelete()`. */ + ``` 3. String comparison - ```c - const char CStr[] = "abcd"; - char Buf[4] = {0x61, 0x62, 0x63, 0x64}; - WasmEdge_String Str1 = WasmEdge_StringWrap(CStr, 4); - WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); - bool IsEq = WasmEdge_StringIsEqual(Str1, Str2); - /* The `IsEq` will be `TRUE`. */ - WasmEdge_StringDelete(Str2); - ``` + ```c + const char CStr[] = "abcd"; + char Buf[4] = {0x61, 0x62, 0x63, 0x64}; + WasmEdge_String Str1 = WasmEdge_StringWrap(CStr, 4); + WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); + bool IsEq = WasmEdge_StringIsEqual(Str1, Str2); + /* The `IsEq` will be `TRUE`. */ + WasmEdge_StringDelete(Str2); + ``` 4. Convert to C string - ```c - char Buf[256]; - WasmEdge_String Str = - WasmEdge_StringCreateByCString("test_wasmedge_string"); - uint32_t StrLength = WasmEdge_StringCopy(Str, Buf, sizeof(Buf)); - /* StrLength will be 20 */ - printf("String: %s\n", Buf); - /* Will print "test_wasmedge_string". */ - ``` + ```c + char Buf[256]; + WasmEdge_String Str = + WasmEdge_StringCreateByCString("test_wasmedge_string"); + uint32_t StrLength = WasmEdge_StringCopy(Str, Buf, sizeof(Buf)); + /* StrLength will be 20 */ + printf("String: %s\n", Buf); + /* Will print "test_wasmedge_string". */ + ``` ### Results @@ -273,204 +273,204 @@ The WASM data structures are used for creating instances or can be queried from 1. Limit - The `WasmEdge_Limit` struct is defined in the header: + The `WasmEdge_Limit` struct is defined in the header: - ```c - /// Struct of WASM limit. - typedef struct WasmEdge_Limit { - /// Boolean to describe has max value or not. - bool HasMax; - /// Boolean to describe is shared memory or not. - bool Shared; - /// Minimum value. - uint32_t Min; - /// Maximum value. Will be ignored if the `HasMax` is false. - uint32_t Max; - } WasmEdge_Limit; - ``` + ```c + /// Struct of WASM limit. + typedef struct WasmEdge_Limit { + /// Boolean to describe has max value or not. + bool HasMax; + /// Boolean to describe is shared memory or not. + bool Shared; + /// Minimum value. + uint32_t Min; + /// Maximum value. Will be ignored if the `HasMax` is false. + uint32_t Max; + } WasmEdge_Limit; + ``` - Developers can initialize the struct by assigning it's value, and the `Max` value is needed to be larger or equal to the `Min` value. The API `WasmEdge_LimitIsEqual()` is provided to compare with 2 `WasmEdge_Limit` structs. + Developers can initialize the struct by assigning it's value, and the `Max` value is needed to be larger or equal to the `Min` value. The API `WasmEdge_LimitIsEqual()` is provided to compare with 2 `WasmEdge_Limit` structs. 2. Function type context - The `Function Type` context is used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `Function Type` context APIs to get the parameter or return value types information. - - ```c - enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, - WasmEdge_ValType_I64}; - enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_FuncRef}; - WasmEdge_FunctionTypeContext *FuncTypeCxt = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - - enum WasmEdge_ValType Buf[16]; - uint32_t ParamLen = WasmEdge_FunctionTypeGetParametersLength(FuncTypeCxt); - /* `ParamLen` will be 2. */ - uint32_t GotParamLen = - WasmEdge_FunctionTypeGetParameters(FuncTypeCxt, Buf, 16); - /* `GotParamLen` will be 2, and `Buf[0]` and `Buf[1]` will be the same as - * `ParamList`. */ - uint32_t ReturnLen = WasmEdge_FunctionTypeGetReturnsLength(FuncTypeCxt); - /* `ReturnLen` will be 1. */ - uint32_t GotReturnLen = - WasmEdge_FunctionTypeGetReturns(FuncTypeCxt, Buf, 16); - /* `GotReturnLen` will be 1, and `Buf[0]` will be the same as `ReturnList`. - */ - - WasmEdge_FunctionTypeDelete(FuncTypeCxt); - ``` + The `Function Type` context is used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `Function Type` context APIs to get the parameter or return value types information. + + ```c + enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, + WasmEdge_ValType_I64}; + enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_FuncRef}; + WasmEdge_FunctionTypeContext *FuncTypeCxt = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + + enum WasmEdge_ValType Buf[16]; + uint32_t ParamLen = WasmEdge_FunctionTypeGetParametersLength(FuncTypeCxt); + /* `ParamLen` will be 2. */ + uint32_t GotParamLen = + WasmEdge_FunctionTypeGetParameters(FuncTypeCxt, Buf, 16); + /* `GotParamLen` will be 2, and `Buf[0]` and `Buf[1]` will be the same as + * `ParamList`. */ + uint32_t ReturnLen = WasmEdge_FunctionTypeGetReturnsLength(FuncTypeCxt); + /* `ReturnLen` will be 1. */ + uint32_t GotReturnLen = + WasmEdge_FunctionTypeGetReturns(FuncTypeCxt, Buf, 16); + /* `GotReturnLen` will be 1, and `Buf[0]` will be the same as `ReturnList`. + */ + + WasmEdge_FunctionTypeDelete(FuncTypeCxt); + ``` 3. Table type context - The `Table Type` context is used for `Table` instance creation or getting information from `Table` instances. + The `Table Type` context is used for `Table` instance creation or getting information from `Table` instances. - ```c - WasmEdge_Limit TabLim = { - .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - WasmEdge_TableTypeContext *TabTypeCxt = - WasmEdge_TableTypeCreate(WasmEdge_RefType_ExternRef, TabLim); + ```c + WasmEdge_Limit TabLim = { + .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + WasmEdge_TableTypeContext *TabTypeCxt = + WasmEdge_TableTypeCreate(WasmEdge_RefType_ExternRef, TabLim); - enum WasmEdge_RefType GotRefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); - /* `GotRefType` will be WasmEdge_RefType_ExternRef. */ - WasmEdge_Limit GotTabLim = WasmEdge_TableTypeGetLimit(TabTypeCxt); - /* `GotTabLim` will be the same value as `TabLim`. */ + enum WasmEdge_RefType GotRefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); + /* `GotRefType` will be WasmEdge_RefType_ExternRef. */ + WasmEdge_Limit GotTabLim = WasmEdge_TableTypeGetLimit(TabTypeCxt); + /* `GotTabLim` will be the same value as `TabLim`. */ - WasmEdge_TableTypeDelete(TabTypeCxt); - ``` + WasmEdge_TableTypeDelete(TabTypeCxt); + ``` 4. Memory type context - The `Memory Type` context is used for `Memory` instance creation or getting information from `Memory` instances. + The `Memory Type` context is used for `Memory` instance creation or getting information from `Memory` instances. - ```c - WasmEdge_Limit MemLim = { - .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLim); + ```c + WasmEdge_Limit MemLim = { + .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLim); - WasmEdge_Limit GotMemLim = WasmEdge_MemoryTypeGetLimit(MemTypeCxt); - /* `GotMemLim` will be the same value as `MemLim`. */ + WasmEdge_Limit GotMemLim = WasmEdge_MemoryTypeGetLimit(MemTypeCxt); + /* `GotMemLim` will be the same value as `MemLim`. */ - WasmEdge_MemoryTypeDelete(MemTypeCxt) - ``` + WasmEdge_MemoryTypeDelete(MemTypeCxt) + ``` 5. Global type context - The `Global Type` context is used for `Global` instance creation or getting information from `Global` instances. + The `Global Type` context is used for `Global` instance creation or getting information from `Global` instances. - ```c - WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate( - WasmEdge_ValType_F64, WasmEdge_Mutability_Var); + ```c + WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate( + WasmEdge_ValType_F64, WasmEdge_Mutability_Var); - WasmEdge_ValType GotValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); - /* `GotValType` will be WasmEdge_ValType_F64. */ - WasmEdge_Mutability GotValMut = - WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); - /* `GotValMut` will be WasmEdge_Mutability_Var. */ + WasmEdge_ValType GotValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); + /* `GotValType` will be WasmEdge_ValType_F64. */ + WasmEdge_Mutability GotValMut = + WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); + /* `GotValMut` will be WasmEdge_Mutability_Var. */ - WasmEdge_GlobalTypeDelete(GlobTypeCxt); - ``` + WasmEdge_GlobalTypeDelete(GlobTypeCxt); + ``` 6. Import type context - The `Import Type` context is used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `Import Type` context. The details about querying `Import Type` contexts will be introduced in the [AST Module](#ast-module). - - ```c - WasmEdge_ASTModuleContext *ASTCxt = ...; - /* - * Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the - * result of loading a WASM file. - */ - const WasmEdge_ImportTypeContext *ImpType = ...; - /* Assume that `ImpType` is queried from the `ASTCxt` for the import. */ - - enum WasmEdge_ExternalType ExtType = - WasmEdge_ImportTypeGetExternalType(ImpType); - /* - * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, - * `WasmEdge_ExternalType_Table`, `WasmEdge_ExternalType_Memory`, or - * `WasmEdge_ExternalType_Global`. - */ - WasmEdge_String ModName = WasmEdge_ImportTypeGetModuleName(ImpType); - WasmEdge_String ExtName = WasmEdge_ImportTypeGetExternalName(ImpType); - /* - * The `ModName` and `ExtName` should not be destroyed and the string - * buffers are binded into the `ASTCxt`. - */ - const WasmEdge_FunctionTypeContext *FuncTypeCxt = - WasmEdge_ImportTypeGetFunctionType(ASTCxt, ImpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Function`, the - * `FuncTypeCxt` will be NULL. - */ - const WasmEdge_TableTypeContext *TabTypeCxt = - WasmEdge_ImportTypeGetTableType(ASTCxt, ImpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` - * will be NULL. - */ - const WasmEdge_MemoryTypeContext *MemTypeCxt = - WasmEdge_ImportTypeGetMemoryType(ASTCxt, ImpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` - * will be NULL. - */ - const WasmEdge_GlobalTypeContext *GlobTypeCxt = - WasmEdge_ImportTypeGetGlobalType(ASTCxt, ImpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` - * will be NULL. - */ - ``` + The `Import Type` context is used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `Import Type` context. The details about querying `Import Type` contexts will be introduced in the [AST Module](#ast-module). + + ```c + WasmEdge_ASTModuleContext *ASTCxt = ...; + /* + * Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the + * result of loading a WASM file. + */ + const WasmEdge_ImportTypeContext *ImpType = ...; + /* Assume that `ImpType` is queried from the `ASTCxt` for the import. */ + + enum WasmEdge_ExternalType ExtType = + WasmEdge_ImportTypeGetExternalType(ImpType); + /* + * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, + * `WasmEdge_ExternalType_Table`, `WasmEdge_ExternalType_Memory`, or + * `WasmEdge_ExternalType_Global`. + */ + WasmEdge_String ModName = WasmEdge_ImportTypeGetModuleName(ImpType); + WasmEdge_String ExtName = WasmEdge_ImportTypeGetExternalName(ImpType); + /* + * The `ModName` and `ExtName` should not be destroyed and the string + * buffers are binded into the `ASTCxt`. + */ + const WasmEdge_FunctionTypeContext *FuncTypeCxt = + WasmEdge_ImportTypeGetFunctionType(ASTCxt, ImpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Function`, the + * `FuncTypeCxt` will be NULL. + */ + const WasmEdge_TableTypeContext *TabTypeCxt = + WasmEdge_ImportTypeGetTableType(ASTCxt, ImpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` + * will be NULL. + */ + const WasmEdge_MemoryTypeContext *MemTypeCxt = + WasmEdge_ImportTypeGetMemoryType(ASTCxt, ImpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` + * will be NULL. + */ + const WasmEdge_GlobalTypeContext *GlobTypeCxt = + WasmEdge_ImportTypeGetGlobalType(ASTCxt, ImpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` + * will be NULL. + */ + ``` 7. Export type context - The `Export Type` context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `Export Type` contexts will be introduced in the [AST Module](#ast-module). - - ```c - WasmEdge_ASTModuleContext *ASTCxt = ...; - /* - * Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the - * result of loading a WASM file. - */ - const WasmEdge_ExportTypeContext *ExpType = ...; - /* Assume that `ExpType` is queried from the `ASTCxt` for the export. */ - - enum WasmEdge_ExternalType ExtType = - WasmEdge_ExportTypeGetExternalType(ExpType); - /* - * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, - * `WasmEdge_ExternalType_Table`, `WasmEdge_ExternalType_Memory`, or - * `WasmEdge_ExternalType_Global`. - */ - WasmEdge_String ExtName = WasmEdge_ExportTypeGetExternalName(ExpType); - /* - * The `ExtName` should not be destroyed and the string buffer is binded - * into the `ASTCxt`. - */ - const WasmEdge_FunctionTypeContext *FuncTypeCxt = - WasmEdge_ExportTypeGetFunctionType(ASTCxt, ExpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Function`, the - * `FuncTypeCxt` will be NULL. - */ - const WasmEdge_TableTypeContext *TabTypeCxt = - WasmEdge_ExportTypeGetTableType(ASTCxt, ExpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` - * will be NULL. - */ - const WasmEdge_MemoryTypeContext *MemTypeCxt = - WasmEdge_ExportTypeGetMemoryType(ASTCxt, ExpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` - * will be NULL. - */ - const WasmEdge_GlobalTypeContext *GlobTypeCxt = - WasmEdge_ExportTypeGetGlobalType(ASTCxt, ExpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` - * will be NULL. - */ - ``` + The `Export Type` context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `Export Type` contexts will be introduced in the [AST Module](#ast-module). + + ```c + WasmEdge_ASTModuleContext *ASTCxt = ...; + /* + * Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the + * result of loading a WASM file. + */ + const WasmEdge_ExportTypeContext *ExpType = ...; + /* Assume that `ExpType` is queried from the `ASTCxt` for the export. */ + + enum WasmEdge_ExternalType ExtType = + WasmEdge_ExportTypeGetExternalType(ExpType); + /* + * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, + * `WasmEdge_ExternalType_Table`, `WasmEdge_ExternalType_Memory`, or + * `WasmEdge_ExternalType_Global`. + */ + WasmEdge_String ExtName = WasmEdge_ExportTypeGetExternalName(ExpType); + /* + * The `ExtName` should not be destroyed and the string buffer is binded + * into the `ASTCxt`. + */ + const WasmEdge_FunctionTypeContext *FuncTypeCxt = + WasmEdge_ExportTypeGetFunctionType(ASTCxt, ExpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Function`, the + * `FuncTypeCxt` will be NULL. + */ + const WasmEdge_TableTypeContext *TabTypeCxt = + WasmEdge_ExportTypeGetTableType(ASTCxt, ExpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` + * will be NULL. + */ + const WasmEdge_MemoryTypeContext *MemTypeCxt = + WasmEdge_ExportTypeGetMemoryType(ASTCxt, ExpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` + * will be NULL. + */ + const WasmEdge_GlobalTypeContext *GlobTypeCxt = + WasmEdge_ExportTypeGetGlobalType(ASTCxt, ExpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` + * will be NULL. + */ + ``` ### Async @@ -478,60 +478,60 @@ After calling the [asynchronous execution APIs](#asynchronous-execution), develo 1. Wait for the asynchronous execution - Developers can wait the execution until finished: - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution. */ - WasmEdge_AsyncWait(Async); - WasmEdge_AsyncDelete(Async); - ``` - - Or developers can wait for a time limit. If the time limit exceeded, developers can choose to cancel the execution. For the interruptible execution in AOT mode, developers should set `TRUE` through the `WasmEdge_ConfigureCompilerSetInterruptible()` API into the configure context for the AOT compiler. - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution for 1 second. */ - bool IsEnd = WasmEdge_AsyncWaitFor(Async, 1000); - if (IsEnd) { - /* The execution finished. Developers can get the result. */ - WasmEdge_Result Res = WasmEdge_AsyncGet(/* ... Ignored */); - } else { - /* - * The time limit exceeded. Developers can keep waiting or cancel the - * execution. - */ - WasmEdge_AsyncCancel(Async); - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, 0, NULL); - /* The result error code will be `WasmEdge_ErrCode_Interrupted`. */ - } - WasmEdge_AsyncDelete(Async); - ``` + Developers can wait the execution until finished: + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution. */ + WasmEdge_AsyncWait(Async); + WasmEdge_AsyncDelete(Async); + ``` + + Or developers can wait for a time limit. If the time limit exceeded, developers can choose to cancel the execution. For the interruptible execution in AOT mode, developers should set `TRUE` through the `WasmEdge_ConfigureCompilerSetInterruptible()` API into the configure context for the AOT compiler. + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution for 1 second. */ + bool IsEnd = WasmEdge_AsyncWaitFor(Async, 1000); + if (IsEnd) { + /* The execution finished. Developers can get the result. */ + WasmEdge_Result Res = WasmEdge_AsyncGet(/* ... Ignored */); + } else { + /* + * The time limit exceeded. Developers can keep waiting or cancel the + * execution. + */ + WasmEdge_AsyncCancel(Async); + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, 0, NULL); + /* The result error code will be `WasmEdge_ErrCode_Interrupted`. */ + } + WasmEdge_AsyncDelete(Async); + ``` 2. Get the execution result of the asynchronous execution - Developers can use the `WasmEdge_AsyncGetReturnsLength()` API to get the return value list length. This function will block and wait for the execution. If the execution has finished, this function will return the length immediately. If the execution failed, this function will return `0`. This function can help the developers to create the buffer to get the return values. If developers have already known the buffer length, they can skip this function and use the `WasmEdge_AsyncGet()` API to get the result. - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* - * Blocking and waiting for the execution and get the return value list - * length. - */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - WasmEdge_AsyncDelete(Async); - ``` - - The `WasmEdge_AsyncGet()` API will block and wait for the execution. If the execution has finished, this function will fill the return values into the buffer and return the execution result immediately. - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution and get the return values. */ - const uint32_t BUF_LEN = 256; - WasmEdge_Value Buf[BUF_LEN]; - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Buf, BUF_LEN); - WasmEdge_AsyncDelete(Async); - ``` + Developers can use the `WasmEdge_AsyncGetReturnsLength()` API to get the return value list length. This function will block and wait for the execution. If the execution has finished, this function will return the length immediately. If the execution failed, this function will return `0`. This function can help the developers to create the buffer to get the return values. If developers have already known the buffer length, they can skip this function and use the `WasmEdge_AsyncGet()` API to get the result. + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* + * Blocking and waiting for the execution and get the return value list + * length. + */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + WasmEdge_AsyncDelete(Async); + ``` + + The `WasmEdge_AsyncGet()` API will block and wait for the execution. If the execution has finished, this function will fill the return values into the buffer and return the execution result immediately. + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution and get the return values. */ + const uint32_t BUF_LEN = 256; + WasmEdge_Value Buf[BUF_LEN]; + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Buf, BUF_LEN); + WasmEdge_AsyncDelete(Async); + ``` ### Configurations @@ -539,190 +539,190 @@ The configuration context, `WasmEdge_ConfigureContext`, manages the configuratio 1. Proposals - WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` context. - - ```c - enum WasmEdge_Proposal { - WasmEdge_Proposal_ImportExportMutGlobals = 0, - WasmEdge_Proposal_NonTrapFloatToIntConversions, - WasmEdge_Proposal_SignExtensionOperators, - WasmEdge_Proposal_MultiValue, - WasmEdge_Proposal_BulkMemoryOperations, - WasmEdge_Proposal_ReferenceTypes, - WasmEdge_Proposal_SIMD, - WasmEdge_Proposal_TailCall, - WasmEdge_Proposal_MultiMemories, - WasmEdge_Proposal_Annotations, - WasmEdge_Proposal_Memory64, - WasmEdge_Proposal_ExceptionHandling, - WasmEdge_Proposal_ExtendedConst, - WasmEdge_Proposal_Threads, - WasmEdge_Proposal_FunctionReferences - }; - ``` - - Developers can add or remove the proposals into the `Configure` context. - - ```c - /* - * By default, the following proposals have turned on initially: - * * Import/Export of mutable globals - * * Non-trapping float-to-int conversions - * * Sign-extension operators - * * Multi-value returns - * * Bulk memory operations - * * Reference types - * * Fixed-width SIMD - * - * For the current WasmEdge version, the following proposals are supported - * (turned off by default) additionally: - * * Tail-call - * * Multiple memories - * * Extended-const - * * Threads - */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddProposal(ConfCxt, WasmEdge_Proposal_MultiMemories); - WasmEdge_ConfigureRemoveProposal(ConfCxt, WasmEdge_Proposal_ReferenceTypes); - bool IsBulkMem = WasmEdge_ConfigureHasProposal( - ConfCxt, WasmEdge_Proposal_BulkMemoryOperations); - /* The `IsBulkMem` will be `TRUE`. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` context. + + ```c + enum WasmEdge_Proposal { + WasmEdge_Proposal_ImportExportMutGlobals = 0, + WasmEdge_Proposal_NonTrapFloatToIntConversions, + WasmEdge_Proposal_SignExtensionOperators, + WasmEdge_Proposal_MultiValue, + WasmEdge_Proposal_BulkMemoryOperations, + WasmEdge_Proposal_ReferenceTypes, + WasmEdge_Proposal_SIMD, + WasmEdge_Proposal_TailCall, + WasmEdge_Proposal_MultiMemories, + WasmEdge_Proposal_Annotations, + WasmEdge_Proposal_Memory64, + WasmEdge_Proposal_ExceptionHandling, + WasmEdge_Proposal_ExtendedConst, + WasmEdge_Proposal_Threads, + WasmEdge_Proposal_FunctionReferences + }; + ``` + + Developers can add or remove the proposals into the `Configure` context. + + ```c + /* + * By default, the following proposals have turned on initially: + * * Import/Export of mutable globals + * * Non-trapping float-to-int conversions + * * Sign-extension operators + * * Multi-value returns + * * Bulk memory operations + * * Reference types + * * Fixed-width SIMD + * + * For the current WasmEdge version, the following proposals are supported + * (turned off by default) additionally: + * * Tail-call + * * Multiple memories + * * Extended-const + * * Threads + */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddProposal(ConfCxt, WasmEdge_Proposal_MultiMemories); + WasmEdge_ConfigureRemoveProposal(ConfCxt, WasmEdge_Proposal_ReferenceTypes); + bool IsBulkMem = WasmEdge_ConfigureHasProposal( + ConfCxt, WasmEdge_Proposal_BulkMemoryOperations); + /* The `IsBulkMem` will be `TRUE`. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 2. Host registrations - This configuration is used for the `VM` context to turn on the `WASI` supports and only effective in `VM` contexts. + This configuration is used for the `VM` context to turn on the `WASI` supports and only effective in `VM` contexts. - The element of this enum is reserved for the other built-in host functions (such as `wasi-socket`) in the future. + The element of this enum is reserved for the other built-in host functions (such as `wasi-socket`) in the future. - ```c - enum WasmEdge_HostRegistration { - WasmEdge_HostRegistration_Wasi = 0 - }; - ``` + ```c + enum WasmEdge_HostRegistration { + WasmEdge_HostRegistration_Wasi = 0 + }; + ``` - The details will be introduced in the [preregistrations of VM context](#built-in-host-modules-and-plug-in-preregistrations). + The details will be introduced in the [preregistrations of VM context](#built-in-host-modules-and-plug-in-preregistrations). - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - bool IsHostWasi = WasmEdge_ConfigureHasHostRegistration( - ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The `IsHostWasi` will be `FALSE`. */ - WasmEdge_ConfigureAddHostRegistration(ConfCxt, - WasmEdge_HostRegistration_Wasi); - IsHostWasi = WasmEdge_ConfigureHasHostRegistration( - ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The `IsHostWasi` will be `TRUE`. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + bool IsHostWasi = WasmEdge_ConfigureHasHostRegistration( + ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The `IsHostWasi` will be `FALSE`. */ + WasmEdge_ConfigureAddHostRegistration(ConfCxt, + WasmEdge_HostRegistration_Wasi); + IsHostWasi = WasmEdge_ConfigureHasHostRegistration( + ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The `IsHostWasi` will be `TRUE`. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 3. Maximum memory pages - Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` contexts. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - uint32_t PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); - /* By default, the maximum memory page size is 65536. */ - WasmEdge_ConfigureSetMaxMemoryPage(ConfCxt, 1024); - /* - * Limit the memory size of each memory instance with not larger than 1024 - * pages (64 MiB). - */ - PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); - /* The `PageSize` will be 1024. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` contexts. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + uint32_t PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); + /* By default, the maximum memory page size is 65536. */ + WasmEdge_ConfigureSetMaxMemoryPage(ConfCxt, 1024); + /* + * Limit the memory size of each memory instance with not larger than 1024 + * pages (64 MiB). + */ + PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); + /* The `PageSize` will be 1024. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 4. Forcibly interpreter mode - If developers want to execute the WASM file or the AOT compiled WASM in interpreter mode forcibly, they can turn on the configuration. + If developers want to execute the WASM file or the AOT compiled WASM in interpreter mode forcibly, they can turn on the configuration. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - bool IsForceInterp = WasmEdge_ConfigureIsForceInterpreter(ConfCxt); - /* By default, The `IsForceInterp` will be `FALSE`. */ - WasmEdge_ConfigureSetForceInterpreter(ConfCxt, TRUE); - IsForceInterp = WasmEdge_ConfigureIsForceInterpreter(ConfCxt); - /* The `IsForceInterp` will be `TRUE`. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + bool IsForceInterp = WasmEdge_ConfigureIsForceInterpreter(ConfCxt); + /* By default, The `IsForceInterp` will be `FALSE`. */ + WasmEdge_ConfigureSetForceInterpreter(ConfCxt, TRUE); + IsForceInterp = WasmEdge_ConfigureIsForceInterpreter(ConfCxt); + /* The `IsForceInterp` will be `TRUE`. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 5. AOT compiler options - The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. - - ```c - enum WasmEdge_CompilerOptimizationLevel { - // Disable as many optimizations as possible. - WasmEdge_CompilerOptimizationLevel_O0 = 0, - // Optimize quickly without destroying debuggability. - WasmEdge_CompilerOptimizationLevel_O1, - // Optimize for fast execution as much as possible without triggering - // significant incremental compile time or code size growth. - WasmEdge_CompilerOptimizationLevel_O2, - // Optimize for fast execution as much as possible. - WasmEdge_CompilerOptimizationLevel_O3, - // Optimize for small code size as much as possible without triggering - // significant incremental compile time or execution time slowdowns. - WasmEdge_CompilerOptimizationLevel_Os, - // Optimize for small code size as much as possible. - WasmEdge_CompilerOptimizationLevel_Oz - }; - - enum WasmEdge_CompilerOutputFormat { - // Native dynamic library format. - WasmEdge_CompilerOutputFormat_Native = 0, - // WebAssembly with AOT compiled codes in custom section. - WasmEdge_CompilerOutputFormat_Wasm - }; - ``` - - These configurations are only effective in `Compiler` contexts. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - /* By default, the optimization level is O3. */ - WasmEdge_ConfigureCompilerSetOptimizationLevel( - ConfCxt, WasmEdge_CompilerOptimizationLevel_O2); - /* By default, the output format is universal WASM. */ - WasmEdge_ConfigureCompilerSetOutputFormat( - ConfCxt, WasmEdge_CompilerOutputFormat_Native); - /* By default, the dump IR is `FALSE`. */ - WasmEdge_ConfigureCompilerSetDumpIR(ConfCxt, TRUE); - /* By default, the generic binary is `FALSE`. */ - WasmEdge_ConfigureCompilerSetGenericBinary(ConfCxt, TRUE); - /* By default, the interruptible is `FALSE`. - /* Set this option to `TRUE` to support the interruptible execution in AOT - mode. */ - WasmEdge_ConfigureCompilerSetInterruptible(ConfCxt, TRUE); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. + + ```c + enum WasmEdge_CompilerOptimizationLevel { + // Disable as many optimizations as possible. + WasmEdge_CompilerOptimizationLevel_O0 = 0, + // Optimize quickly without destroying debuggability. + WasmEdge_CompilerOptimizationLevel_O1, + // Optimize for fast execution as much as possible without triggering + // significant incremental compile time or code size growth. + WasmEdge_CompilerOptimizationLevel_O2, + // Optimize for fast execution as much as possible. + WasmEdge_CompilerOptimizationLevel_O3, + // Optimize for small code size as much as possible without triggering + // significant incremental compile time or execution time slowdowns. + WasmEdge_CompilerOptimizationLevel_Os, + // Optimize for small code size as much as possible. + WasmEdge_CompilerOptimizationLevel_Oz + }; + + enum WasmEdge_CompilerOutputFormat { + // Native dynamic library format. + WasmEdge_CompilerOutputFormat_Native = 0, + // WebAssembly with AOT compiled codes in custom section. + WasmEdge_CompilerOutputFormat_Wasm + }; + ``` + + These configurations are only effective in `Compiler` contexts. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + /* By default, the optimization level is O3. */ + WasmEdge_ConfigureCompilerSetOptimizationLevel( + ConfCxt, WasmEdge_CompilerOptimizationLevel_O2); + /* By default, the output format is universal WASM. */ + WasmEdge_ConfigureCompilerSetOutputFormat( + ConfCxt, WasmEdge_CompilerOutputFormat_Native); + /* By default, the dump IR is `FALSE`. */ + WasmEdge_ConfigureCompilerSetDumpIR(ConfCxt, TRUE); + /* By default, the generic binary is `FALSE`. */ + WasmEdge_ConfigureCompilerSetGenericBinary(ConfCxt, TRUE); + /* By default, the interruptible is `FALSE`. + /* Set this option to `TRUE` to support the interruptible execution in AOT + mode. */ + WasmEdge_ConfigureCompilerSetInterruptible(ConfCxt, TRUE); + WasmEdge_ConfigureDelete(ConfCxt); + ``` 6. Statistics options - The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` contexts. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - /* - * By default, the instruction counting is `FALSE` when running a - * compiled-WASM or a pure-WASM. - */ - WasmEdge_ConfigureStatisticsSetInstructionCounting(ConfCxt, TRUE); - /* - * By default, the cost measurement is `FALSE` when running a compiled-WASM - * or a pure-WASM. - */ - WasmEdge_ConfigureStatisticsSetCostMeasuring(ConfCxt, TRUE); - /* - * By default, the time measurement is `FALSE` when running a compiled-WASM - * or a pure-WASM. - */ - WasmEdge_ConfigureStatisticsSetTimeMeasuring(ConfCxt, TRUE); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` contexts. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + /* + * By default, the instruction counting is `FALSE` when running a + * compiled-WASM or a pure-WASM. + */ + WasmEdge_ConfigureStatisticsSetInstructionCounting(ConfCxt, TRUE); + /* + * By default, the cost measurement is `FALSE` when running a compiled-WASM + * or a pure-WASM. + */ + WasmEdge_ConfigureStatisticsSetCostMeasuring(ConfCxt, TRUE); + /* + * By default, the time measurement is `FALSE` when running a compiled-WASM + * or a pure-WASM. + */ + WasmEdge_ConfigureStatisticsSetTimeMeasuring(ConfCxt, TRUE); + WasmEdge_ConfigureDelete(ConfCxt); + ``` ### Statistics @@ -732,50 +732,50 @@ Before using statistics, the statistics configuration must be set. Otherwise, th 1. Instruction counter - The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` context from the `VM` context, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. + The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` context from the `VM` context, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. - ```c - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* - * ... - * After running the WASM functions with the `Statistics` context - */ - uint32_t Count = WasmEdge_StatisticsGetInstrCount(StatCxt); - double IPS = WasmEdge_StatisticsGetInstrPerSecond(StatCxt); - WasmEdge_StatisticsDelete(StatCxt); - ``` + ```c + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* + * ... + * After running the WASM functions with the `Statistics` context + */ + uint32_t Count = WasmEdge_StatisticsGetInstrCount(StatCxt); + double IPS = WasmEdge_StatisticsGetInstrPerSecond(StatCxt); + WasmEdge_StatisticsDelete(StatCxt); + ``` 2. Cost table - The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` context. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. - - ```c - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - uint64_t CostTable[16] = { - 0, 0, - 10, /* 0x02: Block */ - 11, /* 0x03: Loop */ - 12, /* 0x04: If */ - 12, /* 0x05: Else */ - 0, 0, 0, 0, 0, 0, - 20, /* 0x0C: Br */ - 21, /* 0x0D: Br_if */ - 22, /* 0x0E: Br_table */ - 0 - }; - /* - * Developers can set the costs of each instruction. The value not - * covered will be 0. - */ - WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); - WasmEdge_StatisticsSetCostLimit(StatCxt, 5000000); - /* - * ... - * After running the WASM functions with the `Statistics` context - */ - uint64_t Cost = WasmEdge_StatisticsGetTotalCost(StatCxt); - WasmEdge_StatisticsDelete(StatCxt); - ``` + The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` context. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. + + ```c + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + uint64_t CostTable[16] = { + 0, 0, + 10, /* 0x02: Block */ + 11, /* 0x03: Loop */ + 12, /* 0x04: If */ + 12, /* 0x05: Else */ + 0, 0, 0, 0, 0, 0, + 20, /* 0x0C: Br */ + 21, /* 0x0D: Br_if */ + 22, /* 0x0E: Br_table */ + 0 + }; + /* + * Developers can set the costs of each instruction. The value not + * covered will be 0. + */ + WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); + WasmEdge_StatisticsSetCostLimit(StatCxt, 5000000); + /* + * ... + * After running the WASM functions with the `Statistics` context + */ + uint64_t Cost = WasmEdge_StatisticsGetTotalCost(StatCxt); + WasmEdge_StatisticsDelete(StatCxt); + ``` ### Tools Driver @@ -827,172 +827,172 @@ The following shows the example of running the WASM for getting the Fibonacci. T 1. Run WASM functions rapidly - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - /* Create the configure context and add the WASI support. */ - /* This step is not necessary unless you need WASI support. */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, - WasmEdge_HostRegistration_Wasi); - /* The configure and store context to the VM creation can be NULL. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(5)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromFile( - VMCxt, "fibonacci.wasm", FuncName, Params, 1, Returns, 1); - /* - * Developers can run the WASM binary from buffer with the - * `WasmEdge_VMRunWasmFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMRunWasmFromASTModule()` API. - */ - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 5th Fibonacci number is 8 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the result: 8 - ``` + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + /* Create the configure context and add the WASI support. */ + /* This step is not necessary unless you need WASI support. */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, + WasmEdge_HostRegistration_Wasi); + /* The configure and store context to the VM creation can be NULL. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(5)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromFile( + VMCxt, "fibonacci.wasm", FuncName, Params, 1, Returns, 1); + /* + * Developers can run the WASM binary from buffer with the + * `WasmEdge_VMRunWasmFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMRunWasmFromASTModule()` API. + */ + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` + + Then you can compile and run: (the 5th Fibonacci number is 8 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the result: 8 + ``` 2. Instantiate and run WASM functions manually - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: - - ```c - #include - #include - int main() { - /* Create the configure context and add the WASI support. */ - /* This step is not necessary unless you need the WASI support. */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, - WasmEdge_HostRegistration_Wasi); - /* The configure and store context to the VM creation can be NULL. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(10)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Step 1: Load WASM file. */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - /* - * Developers can load the WASM binary from buffer with the - * `WasmEdge_VMLoadWasmFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMLoadWasmFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 2: Validate the WASM module. */ - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 3: Instantiate the WASM module. */ - Res = WasmEdge_VMInstantiate(VMCxt); - /* - * Developers can load, validate, and instantiate another WASM module to - * replace the instantiated one. In this case, the old module will be - * cleared, but the registered modules are still kept. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", - WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* - * Step 4: Execute WASM functions. You can execute functions repeatedly - * after instantiation. - */ - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 1, Returns, 1); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 10th Fibonacci number is 89 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the result: 89 - ``` - - The following graph explains the status of the `VM` context. - - ```text - |========================| - |------->| VM: Initiated | - | |========================| - | | - | LoadWasm - | | - | v - | |========================| - |--------| VM: Loaded |<-------| - | |========================| | - | | ^ | - | Validate | | - Cleanup | LoadWasm | - | v | LoadWasm - | |========================| | - |--------| VM: Validated | | - | |========================| | - | | ^ | - | Instantiate | | - | | RegisterModule | - | v | | - | |========================| | - |--------| VM: Instantiated |--------| - |========================| - | ^ - | | - -------------- - Instantiate, Execute, ExecuteRegistered - ``` - - The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or module instances in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```c + #include + #include + int main() { + /* Create the configure context and add the WASI support. */ + /* This step is not necessary unless you need the WASI support. */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, + WasmEdge_HostRegistration_Wasi); + /* The configure and store context to the VM creation can be NULL. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(10)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Step 1: Load WASM file. */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + /* + * Developers can load the WASM binary from buffer with the + * `WasmEdge_VMLoadWasmFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMLoadWasmFromASTModule()` API. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 2: Validate the WASM module. */ + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 3: Instantiate the WASM module. */ + Res = WasmEdge_VMInstantiate(VMCxt); + /* + * Developers can load, validate, and instantiate another WASM module to + * replace the instantiated one. In this case, the old module will be + * cleared, but the registered modules are still kept. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", + WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* + * Step 4: Execute WASM functions. You can execute functions repeatedly + * after instantiation. + */ + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 1, Returns, 1); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` + + Then you can compile and run: (the 10th Fibonacci number is 89 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the result: 89 + ``` + + The following graph explains the status of the `VM` context. + + ```text + |========================| + |------->| VM: Initiated | + | |========================| + | | + | LoadWasm + | | + | v + | |========================| + |--------| VM: Loaded |<-------| + | |========================| | + | | ^ | + | Validate | | + Cleanup | LoadWasm | + | v | LoadWasm + | |========================| | + |--------| VM: Validated | | + | |========================| | + | | ^ | + | Instantiate | | + | | RegisterModule | + | v | | + | |========================| | + |--------| VM: Instantiated |--------| + |========================| + | ^ + | | + -------------- + Instantiate, Execute, ExecuteRegistered + ``` + + The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or module instances in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. ### VM Creations @@ -1023,87 +1023,87 @@ WasmEdge provides the following built-in host modules and plug-in pre-registrati 1. [WASI (WebAssembly System Interface)](https://github.com/WebAssembly/WASI) - Developers can turn on the WASI support for VM in the `Configure` context. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, - WasmEdge_HostRegistration_Wasi); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - WasmEdge_ConfigureDelete(ConfCxt); - /* - * The following API can retrieve the built-in registered module instances - * from the VM context. - */ - /* - * This API will return `NULL` if the corresponding configuration is not set - * when creating the VM context. - */ - WasmEdge_ModuleInstanceContext *WasiModule = - WasmEdge_VMGetImportModuleContext(VMCxt, - WasmEdge_HostRegistration_Wasi); - /* Initialize the WASI. */ - WasmEdge_ModuleInstanceInitWASI(WasiModule, /* ... ignored */); - WasmEdge_VMDelete(VMCxt); - ``` - - And also can create the WASI module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + Developers can turn on the WASI support for VM in the `Configure` context. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, + WasmEdge_HostRegistration_Wasi); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + WasmEdge_ConfigureDelete(ConfCxt); + /* + * The following API can retrieve the built-in registered module instances + * from the VM context. + */ + /* + * This API will return `NULL` if the corresponding configuration is not set + * when creating the VM context. + */ + WasmEdge_ModuleInstanceContext *WasiModule = + WasmEdge_VMGetImportModuleContext(VMCxt, + WasmEdge_HostRegistration_Wasi); + /* Initialize the WASI. */ + WasmEdge_ModuleInstanceInitWASI(WasiModule, /* ... ignored */); + WasmEdge_VMDelete(VMCxt); + ``` + + And also can create the WASI module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 2. Plug-ins - There may be several plug-ins in the default plug-in paths if users [installed WasmEdge plug-ins by the installer](/contribute/installer.md#plugins). - - Before using the plug-ins, developers should [load the plug-ins from paths](#load-plug-ins-from-paths). - - The `VM` context will automatically create and register the module of the loaded plug-ins when creation. Furthermore, the following host modules will be mocked if the plug-in not loaded: - - - `wasi_ephemeral_crypto_asymmetric_common` (for the `WASI-Crypto`) - - `wasi_ephemeral_crypto_common` (for the `WASI-Crypto`) - - `wasi_ephemeral_crypto_kx` (for the `WASI-Crypto`) - - `wasi_ephemeral_crypto_signatures` (for the `WASI-Crypto`) - - `wasi_ephemeral_crypto_symmetric` (for the `WASI-Crypto`) - - `wasi_ephemeral_nn` - - `wasi_snapshot_preview1` - - `wasmedge_httpsreq` - - `wasmedge_process` - - When the WASM want to invoke these host functions but the corresponding plug-in not installed, WasmEdge will print the error message and return an error. - - ```c - /* Load the plug-ins in the default paths first. */ - WasmEdge_PluginLoadWithDefaultPaths(); - /* Create the configure context and add the WASI configuration. */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, - WasmEdge_HostRegistration_Wasi); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - WasmEdge_ConfigureDelete(ConfCxt); - /* - * The following API can retrieve the registered modules in the VM context, - * includes the built-in WASI and the plug-ins. - */ - /* - * This API will return `NULL` if the module instance not found. - */ - WasmEdge_String WasiName = - WasmEdge_StringCreateByCString("wasi_snapshot_preview1"); - /* The `WasiModule` will not be `NULL` because the configuration was set. */ - const WasmEdge_ModuleInstanceContext *WasiModule = - WasmEdge_VMGetRegisteredModule(VMCxt, WasiName); - WasmEdge_StringDelete(WasiName); - WasmEdge_String WasiNNName = - WasmEdge_StringCreateByCString("wasi_ephemeral_nn"); - /* - * The `WasiNNModule` will not be `NULL` even if the wasi_nn plug-in is not - * installed, because the VM context will mock and register the host - * modules. - */ - const WasmEdge_ModuleInstanceContext *WasiNNModule = - WasmEdge_VMGetRegisteredModule(VMCxt, WasiNNName); - WasmEdge_StringDelete(WasiNNName); - - WasmEdge_VMDelete(VMCxt); - ``` + There may be several plug-ins in the default plug-in paths if users [installed WasmEdge plug-ins by the installer](/contribute/installer.md#plugins). + + Before using the plug-ins, developers should [load the plug-ins from paths](#load-plug-ins-from-paths). + + The `VM` context will automatically create and register the module of the loaded plug-ins when creation. Furthermore, the following host modules will be mocked if the plug-in not loaded: + + - `wasi_ephemeral_crypto_asymmetric_common` (for the `WASI-Crypto`) + - `wasi_ephemeral_crypto_common` (for the `WASI-Crypto`) + - `wasi_ephemeral_crypto_kx` (for the `WASI-Crypto`) + - `wasi_ephemeral_crypto_signatures` (for the `WASI-Crypto`) + - `wasi_ephemeral_crypto_symmetric` (for the `WASI-Crypto`) + - `wasi_ephemeral_nn` + - `wasi_snapshot_preview1` + - `wasmedge_httpsreq` + - `wasmedge_process` + + When the WASM want to invoke these host functions but the corresponding plug-in not installed, WasmEdge will print the error message and return an error. + + ```c + /* Load the plug-ins in the default paths first. */ + WasmEdge_PluginLoadWithDefaultPaths(); + /* Create the configure context and add the WASI configuration. */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, + WasmEdge_HostRegistration_Wasi); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + WasmEdge_ConfigureDelete(ConfCxt); + /* + * The following API can retrieve the registered modules in the VM context, + * includes the built-in WASI and the plug-ins. + */ + /* + * This API will return `NULL` if the module instance not found. + */ + WasmEdge_String WasiName = + WasmEdge_StringCreateByCString("wasi_snapshot_preview1"); + /* The `WasiModule` will not be `NULL` because the configuration was set. */ + const WasmEdge_ModuleInstanceContext *WasiModule = + WasmEdge_VMGetRegisteredModule(VMCxt, WasiName); + WasmEdge_StringDelete(WasiName); + WasmEdge_String WasiNNName = + WasmEdge_StringCreateByCString("wasi_ephemeral_nn"); + /* + * The `WasiNNModule` will not be `NULL` even if the wasi_nn plug-in is not + * installed, because the VM context will mock and register the host + * modules. + */ + const WasmEdge_ModuleInstanceContext *WasiNNModule = + WasmEdge_VMGetRegisteredModule(VMCxt, WasiNNName); + WasmEdge_StringDelete(WasiNNName); + + WasmEdge_VMDelete(VMCxt); + ``` ### Host Module Registrations @@ -1133,248 +1133,248 @@ In WebAssembly, the instances in WASM modules can be exported and can be importe 1. Register the WASM modules with exported module names - Unless the module instances have already contained the module names, every WASM module should be named uniquely when registering. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. - - ```c - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - WasmEdge_Result Res = - WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); - /* - * Developers can register the WASM module from buffer with the - * `WasmEdge_VMRegisterModuleFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMRegisterModuleFromASTModule()` API. - */ - /* - * The result status should be checked. - * The error will occur if the WASM module instantiation failed or the - * module name conflicts. - */ - WasmEdge_StringDelete(ModName); - WasmEdge_VMDelete(VMCxt); - ``` + Unless the module instances have already contained the module names, every WASM module should be named uniquely when registering. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. + + ```c + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + WasmEdge_Result Res = + WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); + /* + * Developers can register the WASM module from buffer with the + * `WasmEdge_VMRegisterModuleFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMRegisterModuleFromASTModule()` API. + */ + /* + * The result status should be checked. + * The error will occur if the WASM module instantiation failed or the + * module name conflicts. + */ + WasmEdge_StringDelete(ModName); + WasmEdge_VMDelete(VMCxt); + ``` 2. Execute the functions in registered WASM modules - Assume that the C file `test.c` is as follows: - - ```c - #include - #include - int main() { - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(20)}; - WasmEdge_Value Returns[1]; - /* Names. */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Register the WASM module into VM. */ - Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); - /* - * Developers can register the WASM module from buffer with the - * `WasmEdge_VMRegisterModuleFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMRegisterModuleFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", - WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* - * The function "fib" in the "fibonacci.wasm" was exported with the module - * name "mod". As the same as host functions, other modules can import the - * function `"mod" "fib"`. - */ - - /* - * Execute WASM functions in registered modules. - * Unlike the execution of functions, the registered functions can be - * invoked without `WasmEdge_VMInstantiate()` because the WASM module was - * instantiated when registering. Developers can also invoke the host - * functions directly with this API. - */ - Res = WasmEdge_VMExecuteRegistered(VMCxt, ModName, FuncName, Params, 1, - Returns, 1); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - WasmEdge_StringDelete(ModName); - WasmEdge_StringDelete(FuncName); - WasmEdge_VMDelete(VMCxt); - return 0; - } - ``` - - Then you can compile and run: (the 20th Fibonacci number is 89 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the result: 10946 - ``` + Assume that the C file `test.c` is as follows: + + ```c + #include + #include + int main() { + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(20)}; + WasmEdge_Value Returns[1]; + /* Names. */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Register the WASM module into VM. */ + Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); + /* + * Developers can register the WASM module from buffer with the + * `WasmEdge_VMRegisterModuleFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMRegisterModuleFromASTModule()` API. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", + WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* + * The function "fib" in the "fibonacci.wasm" was exported with the module + * name "mod". As the same as host functions, other modules can import the + * function `"mod" "fib"`. + */ + + /* + * Execute WASM functions in registered modules. + * Unlike the execution of functions, the registered functions can be + * invoked without `WasmEdge_VMInstantiate()` because the WASM module was + * instantiated when registering. Developers can also invoke the host + * functions directly with this API. + */ + Res = WasmEdge_VMExecuteRegistered(VMCxt, ModName, FuncName, Params, 1, + Returns, 1); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + WasmEdge_StringDelete(ModName); + WasmEdge_StringDelete(FuncName); + WasmEdge_VMDelete(VMCxt); + return 0; + } + ``` + + Then you can compile and run: (the 20th Fibonacci number is 89 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the result: 10946 + ``` ### Asynchronous Execution 1. Asynchronously run WASM functions rapidly - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(20)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Asynchronously run the WASM function from file and get the - * `WasmEdge_Async` object. */ - WasmEdge_Async *Async = WasmEdge_VMAsyncRunWasmFromFile( - VMCxt, "fibonacci.wasm", FuncName, Params, 1); - /* - * Developers can run the WASM binary from buffer with the - * `WasmEdge_VMAsyncRunWasmFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMAsyncRunWasmFromASTModule()` API. - */ - - /* Wait for the execution. */ - WasmEdge_AsyncWait(Async); - /* - * Developers can also use the `WasmEdge_AsyncGetReturnsLength()` or - * `WasmEdge_AsyncGet()` APIs to wait for the asynchronous execution. - * These APIs will wait until the execution finished. - */ - - /* Check the return values length. */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - /* The `Arity` should be 1. Developers can skip this step if they have - * known the return arity. */ - - /* Get the result. */ - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Returns, Arity); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_AsyncDelete(Async); - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 20th Fibonacci number is 10946 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the result: 10946 - ``` + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(20)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Asynchronously run the WASM function from file and get the + * `WasmEdge_Async` object. */ + WasmEdge_Async *Async = WasmEdge_VMAsyncRunWasmFromFile( + VMCxt, "fibonacci.wasm", FuncName, Params, 1); + /* + * Developers can run the WASM binary from buffer with the + * `WasmEdge_VMAsyncRunWasmFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMAsyncRunWasmFromASTModule()` API. + */ + + /* Wait for the execution. */ + WasmEdge_AsyncWait(Async); + /* + * Developers can also use the `WasmEdge_AsyncGetReturnsLength()` or + * `WasmEdge_AsyncGet()` APIs to wait for the asynchronous execution. + * These APIs will wait until the execution finished. + */ + + /* Check the return values length. */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + /* The `Arity` should be 1. Developers can skip this step if they have + * known the return arity. */ + + /* Get the result. */ + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Returns, Arity); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_AsyncDelete(Async); + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` + + Then you can compile and run: (the 20th Fibonacci number is 10946 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the result: 10946 + ``` 2. Instantiate and asynchronously run WASM functions manually - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: - - ```c - #include - #include - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(25)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Step 1: Load WASM file. */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - /* - * Developers can load the WASM binary from buffer with the - * `WasmEdge_VMLoadWasmFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMLoadWasmFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 2: Validate the WASM module. */ - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 3: Instantiate the WASM module. */ - Res = WasmEdge_VMInstantiate(VMCxt); - /* - * Developers can load, validate, and instantiate another WASM module to - * replace the instantiated one. In this case, the old module will be - * cleared, but the registered modules are still kept. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", - WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 4: Asynchronously execute the WASM function and get the - * `WasmEdge_Async` object. */ - WasmEdge_Async *Async = - WasmEdge_VMAsyncExecute(VMCxt, FuncName, Params, 1); - /* - * Developers can execute functions repeatedly after instantiation. - * For invoking the registered functions, you can use the - * `WasmEdge_VMAsyncExecuteRegistered()` API. - */ - - /* Wait and check the return values length. */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - /* The `Arity` should be 1. Developers can skip this step if they have - * known the return arity. */ - - /* Get the result. */ - Res = WasmEdge_AsyncGet(Async, Returns, Arity); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_AsyncDelete(Async); - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - } - ``` - - Then you can compile and run: (the 25th Fibonacci number is 121393 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the result: 121393 - ``` + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```c + #include + #include + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(25)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Step 1: Load WASM file. */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + /* + * Developers can load the WASM binary from buffer with the + * `WasmEdge_VMLoadWasmFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMLoadWasmFromASTModule()` API. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 2: Validate the WASM module. */ + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 3: Instantiate the WASM module. */ + Res = WasmEdge_VMInstantiate(VMCxt); + /* + * Developers can load, validate, and instantiate another WASM module to + * replace the instantiated one. In this case, the old module will be + * cleared, but the registered modules are still kept. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", + WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 4: Asynchronously execute the WASM function and get the + * `WasmEdge_Async` object. */ + WasmEdge_Async *Async = + WasmEdge_VMAsyncExecute(VMCxt, FuncName, Params, 1); + /* + * Developers can execute functions repeatedly after instantiation. + * For invoking the registered functions, you can use the + * `WasmEdge_VMAsyncExecuteRegistered()` API. + */ + + /* Wait and check the return values length. */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + /* The `Arity` should be 1. Developers can skip this step if they have + * known the return arity. */ + + /* Get the result. */ + Res = WasmEdge_AsyncGet(Async, Returns, Arity); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_AsyncDelete(Async); + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + } + ``` + + Then you can compile and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the result: 121393 + ``` ### Instance Tracing @@ -1382,157 +1382,157 @@ Sometimes the developers may have requirements to get the instances of the WASM 1. Store - If the `VM` context is created without assigning a `Store` context, the `VM` context will allocate and own a `Store` context. + If the `VM` context is created without assigning a `Store` context, the `VM` context will allocate and own a `Store` context. - ```c - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - WasmEdge_StoreContext *StoreCxt = WasmEdge_VMGetStoreContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_StoreDelete()`. */ - WasmEdge_VMDelete(VMCxt); - ``` + ```c + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + WasmEdge_StoreContext *StoreCxt = WasmEdge_VMGetStoreContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_StoreDelete()`. */ + WasmEdge_VMDelete(VMCxt); + ``` - Developers can also create the `VM` context with a `Store` context. In this case, developers should guarantee the life cycle of the `Store` context. Please refer to the [Store Contexts](#store) for the details about the `Store` context APIs. + Developers can also create the `VM` context with a `Store` context. In this case, developers should guarantee the life cycle of the `Store` context. Please refer to the [Store Contexts](#store) for the details about the `Store` context APIs. - ```c - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); - WasmEdge_StoreContext *StoreCxtMock = WasmEdge_VMGetStoreContext(VMCxt); - /* The `StoreCxt` and the `StoreCxtMock` are the same. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StoreDelete(StoreCxt); - ``` + ```c + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); + WasmEdge_StoreContext *StoreCxtMock = WasmEdge_VMGetStoreContext(VMCxt); + /* The `StoreCxt` and the `StoreCxtMock` are the same. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StoreDelete(StoreCxt); + ``` 2. List exported functions - After the WASM module instantiation, developers can use the `WasmEdge_VMExecute()` API to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); - - WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - WasmEdge_VMValidate(VMCxt); - WasmEdge_VMInstantiate(VMCxt); - - /* List the exported functions. */ - /* Get the number of exported functions. */ - uint32_t FuncNum = WasmEdge_VMGetFunctionListLength(VMCxt); - /* Create the name buffers and the function type buffers. */ - const uint32_t BUF_LEN = 256; - WasmEdge_String FuncNames[BUF_LEN]; - WasmEdge_FunctionTypeContext *FuncTypes[BUF_LEN]; - /* - * Get the export function list. - * If the function list length is larger than the buffer length, the - * overflowed data will be discarded. The `FuncNames` and `FuncTypes` can - * be NULL if developers don't need them. - */ - uint32_t RealFuncNum = - WasmEdge_VMGetFunctionList(VMCxt, FuncNames, FuncTypes, BUF_LEN); - - for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { - char Buf[BUF_LEN]; - uint32_t Size = WasmEdge_StringCopy(FuncNames[I], Buf, sizeof(Buf)); - printf("Get exported function string length: %u, name: %s\n", Size, - Buf); - /* - * The function names should be __NOT__ destroyed. - * The returned function type contexts should __NOT__ be destroyed. - */ - } - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_VMDelete(VMCxt); - return 0; - } - ``` - - Then you can compile and run: (the only exported function in `fibonacci.wasm` is `fib`) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get exported function string length: 3, name: fib - ``` - - If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` context from the `VM` context and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. + After the WASM module instantiation, developers can use the `WasmEdge_VMExecute()` API to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); + + WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + WasmEdge_VMValidate(VMCxt); + WasmEdge_VMInstantiate(VMCxt); + + /* List the exported functions. */ + /* Get the number of exported functions. */ + uint32_t FuncNum = WasmEdge_VMGetFunctionListLength(VMCxt); + /* Create the name buffers and the function type buffers. */ + const uint32_t BUF_LEN = 256; + WasmEdge_String FuncNames[BUF_LEN]; + WasmEdge_FunctionTypeContext *FuncTypes[BUF_LEN]; + /* + * Get the export function list. + * If the function list length is larger than the buffer length, the + * overflowed data will be discarded. The `FuncNames` and `FuncTypes` can + * be NULL if developers don't need them. + */ + uint32_t RealFuncNum = + WasmEdge_VMGetFunctionList(VMCxt, FuncNames, FuncTypes, BUF_LEN); + + for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { + char Buf[BUF_LEN]; + uint32_t Size = WasmEdge_StringCopy(FuncNames[I], Buf, sizeof(Buf)); + printf("Get exported function string length: %u, name: %s\n", Size, + Buf); + /* + * The function names should be __NOT__ destroyed. + * The returned function type contexts should __NOT__ be destroyed. + */ + } + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_VMDelete(VMCxt); + return 0; + } + ``` + + Then you can compile and run: (the only exported function in `fibonacci.wasm` is `fib`) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get exported function string length: 3, name: fib + ``` + + If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` context from the `VM` context and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. 3. Get function types - The `VM` context provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. - - ```c - /* - * ... - * Assume that a WASM module is instantiated in `VMCxt`. - */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - const WasmEdge_FunctionTypeContext *FuncType = - WasmEdge_VMGetFunctionType(VMCxt, FuncName); - /* - * Developers can get the function types of functions in the registered - * modules via the `WasmEdge_VMGetFunctionTypeRegistered()` API with the - * module name. If the function is not found, these APIs will return `NULL`. - * The returned function type contexts should __NOT__ be destroyed. - */ - WasmEdge_StringDelete(FuncName); - ``` + The `VM` context provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. + + ```c + /* + * ... + * Assume that a WASM module is instantiated in `VMCxt`. + */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + const WasmEdge_FunctionTypeContext *FuncType = + WasmEdge_VMGetFunctionType(VMCxt, FuncName); + /* + * Developers can get the function types of functions in the registered + * modules via the `WasmEdge_VMGetFunctionTypeRegistered()` API with the + * module name. If the function is not found, these APIs will return `NULL`. + * The returned function type contexts should __NOT__ be destroyed. + */ + WasmEdge_StringDelete(FuncName); + ``` 4. Get the active module - After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` context. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `WasmEdge_VMGetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. - - ```c - /* - * ... - * Assume that a WASM module is instantiated in `VMCxt`. - */ - const WasmEdge_ModuleInstanceContext *ModCxt = - WasmEdge_VMGetActiveModule(VMCxt); - /* - * If there's no WASM module instantiated, this API will return `NULL`. - * The returned module instance context should __NOT__ be destroyed. - */ - ``` + After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` context. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `WasmEdge_VMGetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. + + ```c + /* + * ... + * Assume that a WASM module is instantiated in `VMCxt`. + */ + const WasmEdge_ModuleInstanceContext *ModCxt = + WasmEdge_VMGetActiveModule(VMCxt); + /* + * If there's no WASM module instantiated, this API will return `NULL`. + * The returned module instance context should __NOT__ be destroyed. + */ + ``` 5. List and get the registered modules - To list and retrieve the registered modules in the `VM` context, besides accessing the `store` context of the `VM`, developers can use the following APIs. - - ```c - /* - * ... - * Assume that the `VMCxt` is created. - */ - WasmEdge_String Names[32]; - uint32_t ModuleLen = WasmEdge_VMListRegisteredModule(VMCxt, Names, 32); - for (uint32_t I = 0; I < ModuleLen; I++) { - /* Will print the registered module names in the VM context. */ - printf("%s\n", Names[I].Buf); - } - - WasmEdge_String WasiName = - WasmEdge_StringCreateByCString("wasi_snapshot_preview1"); - /* The `WasiModule` will not be `NULL` because the configuration was set. */ - const WasmEdge_ModuleInstanceContext *WasiModule = - WasmEdge_VMGetRegisteredModule(VMCxt, WasiName); - WasmEdge_StringDelete(WasiName); - ``` + To list and retrieve the registered modules in the `VM` context, besides accessing the `store` context of the `VM`, developers can use the following APIs. + + ```c + /* + * ... + * Assume that the `VMCxt` is created. + */ + WasmEdge_String Names[32]; + uint32_t ModuleLen = WasmEdge_VMListRegisteredModule(VMCxt, Names, 32); + for (uint32_t I = 0; I < ModuleLen; I++) { + /* Will print the registered module names in the VM context. */ + printf("%s\n", Names[I].Buf); + } + + WasmEdge_String WasiName = + WasmEdge_StringCreateByCString("wasi_snapshot_preview1"); + /* The `WasiModule` will not be `NULL` because the configuration was set. */ + const WasmEdge_ModuleInstanceContext *WasiModule = + WasmEdge_VMGetRegisteredModule(VMCxt, WasiName); + WasmEdge_StringDelete(WasiName); + ``` 6. Get the components - The `VM` context is composed by the `Loader`, `Validator`, and `Executor` contexts. For the developers who want to use these contexts without creating another instances, these APIs can help developers to get them from the `VM` context. The get contexts are owned by the `VM` context, and developers should not call their delete functions. + The `VM` context is composed by the `Loader`, `Validator`, and `Executor` contexts. For the developers who want to use these contexts without creating another instances, these APIs can help developers to get them from the `VM` context. The get contexts are owned by the `VM` context, and developers should not call their delete functions. - ```c - WasmEdge_LoaderContext *LoadCxt = WasmEdge_VMGetLoaderContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_LoaderDelete()`. */ - WasmEdge_ValidatorContext *ValidCxt = WasmEdge_VMGetValidatorContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_ValidatorDelete()`. */ - WasmEdge_ExecutorContext *ExecCxt = WasmEdge_VMGetExecutorContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_ExecutorDelete()`. */ - ``` + ```c + WasmEdge_LoaderContext *LoadCxt = WasmEdge_VMGetLoaderContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_LoaderDelete()`. */ + WasmEdge_ValidatorContext *ValidCxt = WasmEdge_VMGetValidatorContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_ValidatorDelete()`. */ + WasmEdge_ExecutorContext *ExecCxt = WasmEdge_VMGetExecutorContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_ExecutorDelete()`. */ + ``` ## WasmEdge Runtime @@ -1723,157 +1723,157 @@ The `Executor` context is the executor for both WASM and compiled-WASM. This obj 1. Instantiate and register an `AST module` as a named `Module` instance - As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` contexts, developers can instantiate and register an `AST module` contexts into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). - - ```c - /* - * ... - * Assume that the `ASTCxt` is the output AST module context from the loader - * context and has passed the validation. Assume that the `ConfCxt` is the - * configure context. - */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* - * Create the executor context. The configure and the statistics contexts - * can be NULL. - */ - WasmEdge_ExecutorContext *ExecCxt = - WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* - * Create the store context. The store context is the object to link the - * modules for imports and exports. - */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* Result. */ - WasmEdge_Result Res; - - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - /* The output module instance. */ - WasmEdge_ModuleInstanceContext *ModCxt = NULL; - /* - * Register the WASM module into the store with the export module name - * "mod". - */ - Res = - WasmEdge_ExecutorRegister(ExecCxt, &ModCxt, StoreCxt, ASTCxt, ModName); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - WasmEdge_StringDelete(ModName); - - /* ... */ - - /* After the execution, the resources should be released. */ - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_ModuleInstanceDelete(ModCxt); - ``` + As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` contexts, developers can instantiate and register an `AST module` contexts into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader + * context and has passed the validation. Assume that the `ConfCxt` is the + * configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* + * Create the executor context. The configure and the statistics contexts + * can be NULL. + */ + WasmEdge_ExecutorContext *ExecCxt = + WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* + * Create the store context. The store context is the object to link the + * modules for imports and exports. + */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* Result. */ + WasmEdge_Result Res; + + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + /* The output module instance. */ + WasmEdge_ModuleInstanceContext *ModCxt = NULL; + /* + * Register the WASM module into the store with the export module name + * "mod". + */ + Res = + WasmEdge_ExecutorRegister(ExecCxt, &ModCxt, StoreCxt, ASTCxt, ModName); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + WasmEdge_StringDelete(ModName); + + /* ... */ + + /* After the execution, the resources should be released. */ + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_ModuleInstanceDelete(ModCxt); + ``` 2. Register an existing `Module` instance and export the module name - Besides instantiating and registering an `AST module` contexts, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). - - ```c - /* - * ... - * Assume that the `ASTCxt` is the output AST module context from the loader - * context and has passed the validation. Assume that the `ConfCxt` is the - * configure context. - */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* - * Create the executor context. The configure and the statistics contexts - * can be NULL. - */ - WasmEdge_ExecutorContext *ExecCxt = - WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* - * Create the store context. The store context is the object to link the - * modules for imports and exports. - */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* Result. */ - WasmEdge_Result Res; - - /* Create a module instance for host functions. */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("host-module"); - WasmEdge_ModuleInstanceContext *HostModCxt = - WasmEdge_ModuleInstanceCreate(ModName); - WasmEdge_StringDelete(ModName); - /* - * ... - * Create and add the host functions, tables, memories, and globals into the - * module instance. - */ - - /* Register the module instance into store with the exported module name. */ - /* The export module name is in the module instance already. */ - Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, HostModCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* ... */ - - /* After the execution, the resources should be released. */ - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_ModuleInstanceDelete(ModCxt); - ``` + Besides instantiating and registering an `AST module` contexts, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader + * context and has passed the validation. Assume that the `ConfCxt` is the + * configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* + * Create the executor context. The configure and the statistics contexts + * can be NULL. + */ + WasmEdge_ExecutorContext *ExecCxt = + WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* + * Create the store context. The store context is the object to link the + * modules for imports and exports. + */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* Result. */ + WasmEdge_Result Res; + + /* Create a module instance for host functions. */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("host-module"); + WasmEdge_ModuleInstanceContext *HostModCxt = + WasmEdge_ModuleInstanceCreate(ModName); + WasmEdge_StringDelete(ModName); + /* + * ... + * Create and add the host functions, tables, memories, and globals into the + * module instance. + */ + + /* Register the module instance into store with the exported module name. */ + /* The export module name is in the module instance already. */ + Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, HostModCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* ... */ + + /* After the execution, the resources should be released. */ + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_ModuleInstanceDelete(ModCxt); + ``` 3. Instantiate an `AST module` to an anonymous `Module` instance - WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` context for linking. - - ```c - /* - * ... - * Assume that the `ASTCxt` is the output AST module context from the loader - * context and has passed the validation. Assume that the `ConfCxt` is the - * configure context. - */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* - * Create the executor context. The configure and the statistics contexts - * can be NULL. - */ - WasmEdge_ExecutorContext *ExecCxt = - WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* - * Create the store context. The store context is the object to link the - * modules for imports and exports. - */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - - /* The output module instance. */ - WasmEdge_ModuleInstanceContext *ModCxt = NULL; - /* Instantiate the WASM module. */ - WasmEdge_Result Res = - WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt, StoreCxt, ASTCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM instantiation failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* ... */ - - /* After the execution, the resources should be released. */ - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_ModuleInstanceDelete(ModCxt); - ``` + WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` context for linking. + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader + * context and has passed the validation. Assume that the `ConfCxt` is the + * configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* + * Create the executor context. The configure and the statistics contexts + * can be NULL. + */ + WasmEdge_ExecutorContext *ExecCxt = + WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* + * Create the store context. The store context is the object to link the + * modules for imports and exports. + */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + + /* The output module instance. */ + WasmEdge_ModuleInstanceContext *ModCxt = NULL; + /* Instantiate the WASM module. */ + WasmEdge_Result Res = + WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt, StoreCxt, ASTCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM instantiation failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* ... */ + + /* After the execution, the resources should be released. */ + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_ModuleInstanceDelete(ModCxt); + ``` 4. Invoke functions - After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `WasmEdge_ExecutorInvoke()` API. + After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `WasmEdge_ExecutorInvoke()` API. ### AST Module @@ -1958,209 +1958,209 @@ The instances are the runtime structures of WASM. Developers can retrieve the `M 1. Module instance - After instantiating or registering an `AST module` context, developers will get a `Module` instance as the result, and have the responsibility to destroy it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. - - ```c - /* - * ... - * Instantiate a WASM module via the executor context and get the `ModCxt` - * as the output module instance. - */ - - /* Try to list the exported instance of the instantiated WASM module. */ - /* Take the function instances for example here. */ - uint32_t FuncNum = WasmEdge_ModuleInstanceListFunctionLength(ModCxt); - /* Create the name buffers. */ - const uint32_t BUF_LEN = 256; - WasmEdge_String FuncNames[BUF_LEN]; - /* - * If the list length is larger than the buffer length, the overflowed data - * will be discarded. - */ - uint32_t RealFuncNum = - WasmEdge_ModuleInstanceListFunction(ModCxt, FuncNames, BUF_LEN); - for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { - /* Working with the function name `FuncNames[I]` ... */ - /* The function names should __NOT__ be destroyed. */ - } - - /* Try to find the exported instance of the instantiated WASM module. */ - /* Take the function instances for example here. */ - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - WasmEdge_FunctionInstanceContext *FuncCxt = - WasmEdge_ModuleInstanceFindFunction(ModCxt, FuncName); - /* `FuncCxt` will be `NULL` if the function not found. */ - /* - * The returned instance is owned by the module instance context and should - * __NOT__ be destroyed. - */ - WasmEdge_StringDelete(FuncName); - ``` + After instantiating or registering an `AST module` context, developers will get a `Module` instance as the result, and have the responsibility to destroy it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. + + ```c + /* + * ... + * Instantiate a WASM module via the executor context and get the `ModCxt` + * as the output module instance. + */ + + /* Try to list the exported instance of the instantiated WASM module. */ + /* Take the function instances for example here. */ + uint32_t FuncNum = WasmEdge_ModuleInstanceListFunctionLength(ModCxt); + /* Create the name buffers. */ + const uint32_t BUF_LEN = 256; + WasmEdge_String FuncNames[BUF_LEN]; + /* + * If the list length is larger than the buffer length, the overflowed data + * will be discarded. + */ + uint32_t RealFuncNum = + WasmEdge_ModuleInstanceListFunction(ModCxt, FuncNames, BUF_LEN); + for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { + /* Working with the function name `FuncNames[I]` ... */ + /* The function names should __NOT__ be destroyed. */ + } + + /* Try to find the exported instance of the instantiated WASM module. */ + /* Take the function instances for example here. */ + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + WasmEdge_FunctionInstanceContext *FuncCxt = + WasmEdge_ModuleInstanceFindFunction(ModCxt, FuncName); + /* `FuncCxt` will be `NULL` if the function not found. */ + /* + * The returned instance is owned by the module instance context and should + * __NOT__ be destroyed. + */ + WasmEdge_StringDelete(FuncName); + ``` 2. Function instance - [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` contexts for host functions and add them into an `Module` instance context for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` contexts through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). + [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` contexts for host functions and add them into an `Module` instance context for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` contexts through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). - ```c - /* Retrieve the function instance from the module instance context. */ - WasmEdge_FunctionInstanceContext *FuncCxt = ...; - WasmEdge_FunctionTypeContext *FuncTypeCxt = - WasmEdge_FunctionInstanceGetFunctionType(FuncCxt); - /* - * The `FuncTypeCxt` is owned by the `FuncCxt` and should __NOT__ be - * destroyed. - */ + ```c + /* Retrieve the function instance from the module instance context. */ + WasmEdge_FunctionInstanceContext *FuncCxt = ...; + WasmEdge_FunctionTypeContext *FuncTypeCxt = + WasmEdge_FunctionInstanceGetFunctionType(FuncCxt); + /* + * The `FuncTypeCxt` is owned by the `FuncCxt` and should __NOT__ be + * destroyed. + */ - /* - * For the function instance creation, please refer to the `Host Function` - * guide. - */ - ``` + /* + * For the function instance creation, please refer to the `Host Function` + * guide. + */ + ``` 3. Table instance - In WasmEdge, developers can create the `Table` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Table` contexts supply APIs to control the data in table instances. - - ```c - WasmEdge_Limit TabLimit = { - .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - /* Create the table type with limit and the `FuncRef` element type. */ - WasmEdge_TableTypeContext *TabTypeCxt = - WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TabLimit); - /* Create the table instance with table type. */ - WasmEdge_TableInstanceContext *HostTable = - WasmEdge_TableInstanceCreate(TabTypeCxt); - /* Delete the table type. */ - WasmEdge_TableTypeDelete(TabTypeCxt); - WasmEdge_Result Res; - WasmEdge_Value Data; - - TabTypeCxt = WasmEdge_TableInstanceGetTableType(HostTable); - /* - * The `TabTypeCxt` got from table instance is owned by the `HostTable` and - * should __NOT__ be destroyed. - */ - enum WasmEdge_RefType RefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); - /* `RefType` will be `WasmEdge_RefType_FuncRef`. */ - Data = WasmEdge_ValueGenFuncRef(5); - Res = WasmEdge_TableInstanceSetData(HostTable, Data, 3); - /* Set the function index 5 to the table[3]. */ - /* - * This will get an "out of bounds table access" error - * because the position (13) is out of the table size (10): - * Res = WasmEdge_TableInstanceSetData(HostTable, Data, 13); - */ - Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 3); - /* Get the FuncRef value of the table[3]. */ - /* - * This will get an "out of bounds table access" error - * because the position (13) is out of the table size (10): - * Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 13); - */ - - uint32_t Size = WasmEdge_TableInstanceGetSize(HostTable); - /* `Size` will be 10. */ - Res = WasmEdge_TableInstanceGrow(HostTable, 6); - /* Grow the table size of 6, the table size will be 16. */ - /* - * This will get an "out of bounds table access" error because - * the size (16 + 6) will reach the table limit(20): - * Res = WasmEdge_TableInstanceGrow(HostTable, 6); - */ - - WasmEdge_TableInstanceDelete(HostTable); - ``` + In WasmEdge, developers can create the `Table` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Table` contexts supply APIs to control the data in table instances. + + ```c + WasmEdge_Limit TabLimit = { + .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + /* Create the table type with limit and the `FuncRef` element type. */ + WasmEdge_TableTypeContext *TabTypeCxt = + WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TabLimit); + /* Create the table instance with table type. */ + WasmEdge_TableInstanceContext *HostTable = + WasmEdge_TableInstanceCreate(TabTypeCxt); + /* Delete the table type. */ + WasmEdge_TableTypeDelete(TabTypeCxt); + WasmEdge_Result Res; + WasmEdge_Value Data; + + TabTypeCxt = WasmEdge_TableInstanceGetTableType(HostTable); + /* + * The `TabTypeCxt` got from table instance is owned by the `HostTable` and + * should __NOT__ be destroyed. + */ + enum WasmEdge_RefType RefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); + /* `RefType` will be `WasmEdge_RefType_FuncRef`. */ + Data = WasmEdge_ValueGenFuncRef(5); + Res = WasmEdge_TableInstanceSetData(HostTable, Data, 3); + /* Set the function index 5 to the table[3]. */ + /* + * This will get an "out of bounds table access" error + * because the position (13) is out of the table size (10): + * Res = WasmEdge_TableInstanceSetData(HostTable, Data, 13); + */ + Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 3); + /* Get the FuncRef value of the table[3]. */ + /* + * This will get an "out of bounds table access" error + * because the position (13) is out of the table size (10): + * Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 13); + */ + + uint32_t Size = WasmEdge_TableInstanceGetSize(HostTable); + /* `Size` will be 10. */ + Res = WasmEdge_TableInstanceGrow(HostTable, 6); + /* Grow the table size of 6, the table size will be 16. */ + /* + * This will get an "out of bounds table access" error because + * the size (16 + 6) will reach the table limit(20): + * Res = WasmEdge_TableInstanceGrow(HostTable, 6); + */ + + WasmEdge_TableInstanceDelete(HostTable); + ``` 4. Memory instance - In WasmEdge, developers can create the `Memory` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Memory` contexts supply APIs to control the data in memory instances. - - ```c - WasmEdge_Limit MemLimit = { - .HasMax = true, .Shared = false, .Min = 1, .Max = 5}; - /* Create the memory type with limit. The memory page size is 64KiB. */ - WasmEdge_MemoryTypeContext *MemTypeCxt = - WasmEdge_MemoryTypeCreate(MemLimit); - /* Create the memory instance with memory type. */ - WasmEdge_MemoryInstanceContext *HostMemory = - WasmEdge_MemoryInstanceCreate(MemTypeCxt); - /* Delete the memory type. */ - WasmEdge_MemoryTypeDelete(MemTypeCxt); - WasmEdge_Result Res; - uint8_t Buf[256]; - - Buf[0] = 0xAA; - Buf[1] = 0xBB; - Buf[2] = 0xCC; - Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0x1000, 3); - /* Set the data[0:2] to the memory[4096:4098]. */ - /* - * This will get an "out of bounds memory access" error - * because [65535:65537] is out of 1 page size (65536): - * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); - */ - Buf[0] = 0; - Buf[1] = 0; - Buf[2] = 0; - Res = WasmEdge_MemoryInstanceGetData(HostMemory, Buf, 0x1000, 3); - /* Get the memory[4096:4098]. Buf[0:2] will be `{0xAA, 0xBB, 0xCC}`. */ - /* - * This will get an "out of bounds memory access" error - * because [65535:65537] is out of 1 page size (65536): - * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); - */ - - uint32_t PageSize = WasmEdge_MemoryInstanceGetPageSize(HostMemory); - /* `PageSize` will be 1. */ - Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 2); - /* Grow the page size of 2, the page size of the memory instance will be 3. - */ - /* - * This will get an "out of bounds memory access" error because - * the page size (3 + 3) will reach the memory limit(5): - * Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 3); - */ - - WasmEdge_MemoryInstanceDelete(HostMemory); - ``` + In WasmEdge, developers can create the `Memory` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Memory` contexts supply APIs to control the data in memory instances. + + ```c + WasmEdge_Limit MemLimit = { + .HasMax = true, .Shared = false, .Min = 1, .Max = 5}; + /* Create the memory type with limit. The memory page size is 64KiB. */ + WasmEdge_MemoryTypeContext *MemTypeCxt = + WasmEdge_MemoryTypeCreate(MemLimit); + /* Create the memory instance with memory type. */ + WasmEdge_MemoryInstanceContext *HostMemory = + WasmEdge_MemoryInstanceCreate(MemTypeCxt); + /* Delete the memory type. */ + WasmEdge_MemoryTypeDelete(MemTypeCxt); + WasmEdge_Result Res; + uint8_t Buf[256]; + + Buf[0] = 0xAA; + Buf[1] = 0xBB; + Buf[2] = 0xCC; + Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0x1000, 3); + /* Set the data[0:2] to the memory[4096:4098]. */ + /* + * This will get an "out of bounds memory access" error + * because [65535:65537] is out of 1 page size (65536): + * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); + */ + Buf[0] = 0; + Buf[1] = 0; + Buf[2] = 0; + Res = WasmEdge_MemoryInstanceGetData(HostMemory, Buf, 0x1000, 3); + /* Get the memory[4096:4098]. Buf[0:2] will be `{0xAA, 0xBB, 0xCC}`. */ + /* + * This will get an "out of bounds memory access" error + * because [65535:65537] is out of 1 page size (65536): + * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); + */ + + uint32_t PageSize = WasmEdge_MemoryInstanceGetPageSize(HostMemory); + /* `PageSize` will be 1. */ + Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 2); + /* Grow the page size of 2, the page size of the memory instance will be 3. + */ + /* + * This will get an "out of bounds memory access" error because + * the page size (3 + 3) will reach the memory limit(5): + * Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 3); + */ + + WasmEdge_MemoryInstanceDelete(HostMemory); + ``` 5. Global instance - In WasmEdge, developers can create the `Global` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Global` contexts supply APIs to control the value in global instances. - - ```c - WasmEdge_Value Val = WasmEdge_ValueGenI64(1000); - /* Create the global type with value type and mutation. */ - WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate( - WasmEdge_ValType_I64, WasmEdge_Mutability_Var); - /* Create the global instance with value and global type. */ - WasmEdge_GlobalInstanceContext *HostGlobal = - WasmEdge_GlobalInstanceCreate(GlobTypeCxt, Val); - /* Delete the global type. */ - WasmEdge_GlobalTypeDelete(GlobTypeCxt); - WasmEdge_Result Res; - - GlobTypeCxt = WasmEdge_GlobalInstanceGetGlobalType(HostGlobal); - /* The `GlobTypeCxt` got from global instance is owned by the `HostGlobal` - * and should __NOT__ be destroyed. */ - enum WasmEdge_ValType ValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); - /* `ValType` will be `WasmEdge_ValType_I64`. */ - enum WasmEdge_Mutability ValMut = - WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); - /* `ValMut` will be `WasmEdge_Mutability_Var`. */ - - WasmEdge_GlobalInstanceSetValue(HostGlobal, WasmEdge_ValueGenI64(888)); - /* - * Set the value u64(888) to the global. - * This function will do nothing if the value type mismatched or - * the global mutability is `WasmEdge_Mutability_Const`. - */ - WasmEdge_Value GlobVal = WasmEdge_GlobalInstanceGetValue(HostGlobal); - /* Get the value (888 now) of the global context. */ - - WasmEdge_GlobalInstanceDelete(HostGlobal); - ``` + In WasmEdge, developers can create the `Global` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Global` contexts supply APIs to control the value in global instances. + + ```c + WasmEdge_Value Val = WasmEdge_ValueGenI64(1000); + /* Create the global type with value type and mutation. */ + WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate( + WasmEdge_ValType_I64, WasmEdge_Mutability_Var); + /* Create the global instance with value and global type. */ + WasmEdge_GlobalInstanceContext *HostGlobal = + WasmEdge_GlobalInstanceCreate(GlobTypeCxt, Val); + /* Delete the global type. */ + WasmEdge_GlobalTypeDelete(GlobTypeCxt); + WasmEdge_Result Res; + + GlobTypeCxt = WasmEdge_GlobalInstanceGetGlobalType(HostGlobal); + /* The `GlobTypeCxt` got from global instance is owned by the `HostGlobal` + * and should __NOT__ be destroyed. */ + enum WasmEdge_ValType ValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); + /* `ValType` will be `WasmEdge_ValType_I64`. */ + enum WasmEdge_Mutability ValMut = + WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); + /* `ValMut` will be `WasmEdge_Mutability_Var`. */ + + WasmEdge_GlobalInstanceSetValue(HostGlobal, WasmEdge_ValueGenI64(888)); + /* + * Set the value u64(888) to the global. + * This function will do nothing if the value type mismatched or + * the global mutability is `WasmEdge_Mutability_Const`. + */ + WasmEdge_Value GlobVal = WasmEdge_GlobalInstanceGetValue(HostGlobal); + /* Get the value (888 now) of the global context. */ + + WasmEdge_GlobalInstanceDelete(HostGlobal); + ``` ### Host Functions @@ -2168,568 +2168,568 @@ The instances are the runtime structures of WASM. Developers can retrieve the `M 1. Host function allocation - Developers can define C functions with the following function signature as the host function body: - - ```c - typedef WasmEdge_Result (*WasmEdge_HostFunc_t)( - void *Data, const WasmEdge_CallingFrameContext *CallFrameCxt, - const WasmEdge_Value *Params, WasmEdge_Value *Returns); - ``` + Developers can define C functions with the following function signature as the host function body: + + ```c + typedef WasmEdge_Result (*WasmEdge_HostFunc_t)( + void *Data, const WasmEdge_CallingFrameContext *CallFrameCxt, + const WasmEdge_Value *Params, WasmEdge_Value *Returns); + ``` + + The example of an `add` host function to add 2 `i32` values: + + ```c + WasmEdge_Result Add(void *, const WasmEdge_CallingFrameContext *, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + /* + * Params: {i32, i32} + * Returns: {i32} + * Developers should take care about the function type. + */ + /* Retrieve the value 1. */ + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + /* Retrieve the value 2. */ + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + /* Output value 1 is Val1 + Val2. */ + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + /* Return the status of success. */ + return WasmEdge_Result_Success; + } + ``` + + Then developers can create `Function` context with the host function body and the function type: + + ```c + enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, + WasmEdge_ValType_I32}; + enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; + /* Create a function type: {i32, i32} -> {i32}. */ + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + /* + * Create a function context with the function type and host function body. + * The `Cost` parameter can be 0 if developers do not need the cost + * measuring. + */ + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + /* + * The third parameter is the pointer to the additional data. + * Developers should guarantee the life cycle of the data, and it can be + * `NULL` if the external data is not needed. + */ + WasmEdge_FunctionTypeDelete(HostType); + + /* + * If the function instance is __NOT__ added into a module instance context, + * it should be deleted. + */ + WasmEdge_FunctionInstanceDelete(HostFunc); + ``` - The example of an `add` host function to add 2 `i32` values: - - ```c - WasmEdge_Result Add(void *, const WasmEdge_CallingFrameContext *, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - /* - * Params: {i32, i32} - * Returns: {i32} - * Developers should take care about the function type. - */ - /* Retrieve the value 1. */ - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - /* Retrieve the value 2. */ - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - /* Output value 1 is Val1 + Val2. */ - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - /* Return the status of success. */ - return WasmEdge_Result_Success; - } - ``` - - Then developers can create `Function` context with the host function body and the function type: - - ```c - enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, - WasmEdge_ValType_I32}; - enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; - /* Create a function type: {i32, i32} -> {i32}. */ - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - /* - * Create a function context with the function type and host function body. - * The `Cost` parameter can be 0 if developers do not need the cost - * measuring. - */ - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - /* - * The third parameter is the pointer to the additional data. - * Developers should guarantee the life cycle of the data, and it can be - * `NULL` if the external data is not needed. - */ - WasmEdge_FunctionTypeDelete(HostType); +2. Calling frame context - /* - * If the function instance is __NOT__ added into a module instance context, - * it should be deleted. - */ - WasmEdge_FunctionInstanceDelete(HostFunc); - ``` + The `WasmEdge_CallingFrameContext` is the context to provide developers to access the module instance of the [frame on the top of the calling stack](https://webassembly.github.io/spec/core/exec/runtime.html#activations-and-frames). According to the [WASM spec](https://webassembly.github.io/spec/core/exec/instructions.html#function-calls), a frame with the module instance is pushed into the stack when invoking a function. Therefore, the host functions can access the module instance of the top frame to retrieve the memory instances to read/write data. -2. Calling frame context + ```c + WasmEdge_Result LoadOffset(void *Data, + const WasmEdge_CallingFrameContext *CallFrameCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + /* Function type: {i32} -> {} */ + uint32_t Offset = (uint32_t)WasmEdge_ValueGetI32(In[0]); + uint32_t Num = 0; - The `WasmEdge_CallingFrameContext` is the context to provide developers to access the module instance of the [frame on the top of the calling stack](https://webassembly.github.io/spec/core/exec/runtime.html#activations-and-frames). According to the [WASM spec](https://webassembly.github.io/spec/core/exec/instructions.html#function-calls), a frame with the module instance is pushed into the stack when invoking a function. Therefore, the host functions can access the module instance of the top frame to retrieve the memory instances to read/write data. - - ```c - WasmEdge_Result LoadOffset(void *Data, - const WasmEdge_CallingFrameContext *CallFrameCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - /* Function type: {i32} -> {} */ - uint32_t Offset = (uint32_t)WasmEdge_ValueGetI32(In[0]); - uint32_t Num = 0; - - /* - * Get the 0-th memory instance of the module instance of the top frame on - * stack. - */ - WasmEdge_MemoryInstanceContext *MemCxt = - WasmEdge_CallingFrameGetMemoryInstance(CallFrameCxt, 0); - - WasmEdge_Result Res = - WasmEdge_MemoryInstanceGetData(MemCxt, (uint8_t *)(&Num), Offset, 4); - if (WasmEdge_ResultOK(Res)) { - printf("u32 at memory[%lu]: %lu\n", Offset, Num); - } else { - return Res; - } - return WasmEdge_Result_Success; - } - ``` - - Besides using the `WasmEdge_CallingFrameGetMemoryInstance()` API to get the memory instance by index in the module instance, developers can use the `WasmEdge_CallingFrameGetModuleInstance()` to get the module instance directly. Therefore, developers can retrieve the exported contexts by the `WasmEdge_ModuleInstanceContext` APIs. And also, developers can use the `WasmEdge_CallingFrameGetExecutor()` API to get the currently used executor context. + /* + * Get the 0-th memory instance of the module instance of the top frame on + * stack. + */ + WasmEdge_MemoryInstanceContext *MemCxt = + WasmEdge_CallingFrameGetMemoryInstance(CallFrameCxt, 0); + + WasmEdge_Result Res = + WasmEdge_MemoryInstanceGetData(MemCxt, (uint8_t *)(&Num), Offset, 4); + if (WasmEdge_ResultOK(Res)) { + printf("u32 at memory[%lu]: %lu\n", Offset, Num); + } else { + return Res; + } + return WasmEdge_Result_Success; + } + ``` + + Besides using the `WasmEdge_CallingFrameGetMemoryInstance()` API to get the memory instance by index in the module instance, developers can use the `WasmEdge_CallingFrameGetModuleInstance()` to get the module instance directly. Therefore, developers can retrieve the exported contexts by the `WasmEdge_ModuleInstanceContext` APIs. And also, developers can use the `WasmEdge_CallingFrameGetExecutor()` API to get the currently used executor context. 3. User-defined error code of the host functions - In host functions, WasmEdge provides `WasmEdge_Result_Success` to return success, `WasmEdge_Result_Terminate` to terminate the WASM execution, and `WasmEdge_Result_Fail` to return fail. WasmEdge also provides the usage of returning the user-specified codes. Developers can use the `WasmEdge_ResultGen()` API to generate the `WasmEdge_Result` with error code, and use the `WasmEdge_ResultGetCode()` API to get the error code. + In host functions, WasmEdge provides `WasmEdge_Result_Success` to return success, `WasmEdge_Result_Terminate` to terminate the WASM execution, and `WasmEdge_Result_Fail` to return fail. WasmEdge also provides the usage of returning the user-specified codes. Developers can use the `WasmEdge_ResultGen()` API to generate the `WasmEdge_Result` with error code, and use the `WasmEdge_ResultGetCode()` API to get the error code. - > Notice: The error code only supports 24-bit integer (0 ~ 16777216 in `uint32_t`). The values larger than 24-bit will be truncated. + > Notice: The error code only supports 24-bit integer (0 ~ 16777216 in `uint32_t`). The values larger than 24-bit will be truncated. - Assume that a simple WASM from the WAT is as following: + Assume that a simple WASM from the WAT is as following: - ```wasm - (module - (type $t0 (func (param i32))) - (import "extern" "trap" (func $f-trap (type $t0))) - (func (export "trap") (param i32) - local.get 0 - call $f-trap) - ) - ``` - - And the `test.c` is as following: - - ```c - #include - #include - - /* Host function body definition. */ - WasmEdge_Result Trap(void *Data, - const WasmEdge_CallingFrameContext *CallFrameCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val = WasmEdge_ValueGetI32(In[0]); - /* Return the error code from the param[0]. */ - return WasmEdge_ResultGen(WasmEdge_ErrCategory_UserLevelError, Val); - } - - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The WASM module buffer. */ - uint8_t WASM[] = {/* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x05, 0x01, - /* function type {i32} -> {} */ - 0x60, 0x01, 0x7F, 0x00, - /* Import section */ - 0x02, 0x0F, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "trap" */ - 0x04, 0x74, 0x72, 0x61, 0x70, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x08, 0x01, - /* export name: "trap" */ - 0x04, 0x74, 0x72, 0x61, 0x70, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x08, 0x01, - /* code body */ - 0x06, 0x00, 0x20, 0x00, 0x10, 0x00, 0x0B}; - - /* Create the module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); - WasmEdge_ModuleInstanceContext *HostModCxt = - WasmEdge_ModuleInstanceCreate(ExportName); - enum WasmEdge_ValType ParamList[1] = {WasmEdge_ValType_I32}; - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 1, NULL, 0); - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Trap, NULL, 0); - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("trap"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); - WasmEdge_StringDelete(HostFuncName); - - WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(5566)}; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("trap"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( - VMCxt, WASM, sizeof(WASM), FuncName, Params, 1, NULL, 0); - - /* Get the result code and print. */ - printf("Get the error code: %u\n", WasmEdge_ResultGetCode(Res)); - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - WasmEdge_ModuleInstanceDelete(HostModCxt); - return 0; - } - ``` - - Then you can compile and run: (giving the expected error code `5566`) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - [2022-08-26 15:06:40.384] [error] user defined failed: user defined error code, Code: 0x15be - [2022-08-26 15:06:40.384] [error] When executing function name: "trap" - Get the error code: 5566 - ``` + ```wasm + (module + (type $t0 (func (param i32))) + (import "extern" "trap" (func $f-trap (type $t0))) + (func (export "trap") (param i32) + local.get 0 + call $f-trap) + ) + ``` -4. Construct a module instance with host instances + And the `test.c` is as following: - Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + ```c + #include + #include - ```c - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, + /* Host function body definition. */ + WasmEdge_Result Trap(void *Data, const WasmEdge_CallingFrameContext *CallFrameCxt, const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - return WasmEdge_Result_Success; - } - - /* Create a module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("module"); - WasmEdge_ModuleInstanceContext *HostModCxt = - WasmEdge_ModuleInstanceCreate(ExportName); - WasmEdge_StringDelete(ExportName); - - /* Create and add a function instance into the module instance. */ - enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, - WasmEdge_ValType_I32}; - enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - /* - * The third parameter is the pointer to the additional data object. - * Developers should guarantee the life cycle of the data, and it can be - * `NULL` if the external data is not needed. - */ - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("add"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, FuncName, HostFunc); - WasmEdge_StringDelete(FuncName); - - /* Create and add a table instance into the import object. */ - WasmEdge_Limit TableLimit = { - .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - WasmEdge_TableTypeContext *HostTType = - WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TableLimit); - WasmEdge_TableInstanceContext *HostTable = - WasmEdge_TableInstanceCreate(HostTType); - WasmEdge_TableTypeDelete(HostTType); - WasmEdge_String TableName = WasmEdge_StringCreateByCString("table"); - WasmEdge_ModuleInstanceAddTable(HostModCxt, TableName, HostTable); - WasmEdge_StringDelete(TableName); - - /* Create and add a memory instance into the import object. */ - WasmEdge_Limit MemoryLimit = { - .HasMax = true, .Shared = false, .Min = 1, .Max = 2}; - WasmEdge_MemoryTypeContext *HostMType = - WasmEdge_MemoryTypeCreate(MemoryLimit); - WasmEdge_MemoryInstanceContext *HostMemory = - WasmEdge_MemoryInstanceCreate(HostMType); - WasmEdge_MemoryTypeDelete(HostMType); - WasmEdge_String MemoryName = WasmEdge_StringCreateByCString("memory"); - WasmEdge_ModuleInstanceAddMemory(HostModCxt, MemoryName, HostMemory); - WasmEdge_StringDelete(MemoryName); - - /* Create and add a global instance into the module instance. */ - WasmEdge_GlobalTypeContext *HostGType = WasmEdge_GlobalTypeCreate( - WasmEdge_ValType_I32, WasmEdge_Mutability_Var); - WasmEdge_GlobalInstanceContext *HostGlobal = - WasmEdge_GlobalInstanceCreate(HostGType, WasmEdge_ValueGenI32(666)); - WasmEdge_GlobalTypeDelete(HostGType); - WasmEdge_String GlobalName = WasmEdge_StringCreateByCString("global"); - WasmEdge_ModuleInstanceAddGlobal(HostModCxt, GlobalName, HostGlobal); - WasmEdge_StringDelete(GlobalName); - - /* - * The module instance should be deleted. - * Developers should __NOT__ destroy the instances added into the module - * instance contexts. - */ - WasmEdge_ModuleInstanceDelete(HostModCxt); - ``` + int32_t Val = WasmEdge_ValueGetI32(In[0]); + /* Return the error code from the param[0]. */ + return WasmEdge_ResultGen(WasmEdge_ErrCategory_UserLevelError, Val); + } + + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The WASM module buffer. */ + uint8_t WASM[] = {/* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x05, 0x01, + /* function type {i32} -> {} */ + 0x60, 0x01, 0x7F, 0x00, + /* Import section */ + 0x02, 0x0F, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "trap" */ + 0x04, 0x74, 0x72, 0x61, 0x70, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x08, 0x01, + /* export name: "trap" */ + 0x04, 0x74, 0x72, 0x61, 0x70, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x08, 0x01, + /* code body */ + 0x06, 0x00, 0x20, 0x00, 0x10, 0x00, 0x0B}; + + /* Create the module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); + WasmEdge_ModuleInstanceContext *HostModCxt = + WasmEdge_ModuleInstanceCreate(ExportName); + enum WasmEdge_ValType ParamList[1] = {WasmEdge_ValType_I32}; + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 1, NULL, 0); + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Trap, NULL, 0); + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("trap"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); + WasmEdge_StringDelete(HostFuncName); + + WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(5566)}; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("trap"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( + VMCxt, WASM, sizeof(WASM), FuncName, Params, 1, NULL, 0); + + /* Get the result code and print. */ + printf("Get the error code: %u\n", WasmEdge_ResultGetCode(Res)); + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + WasmEdge_ModuleInstanceDelete(HostModCxt); + return 0; + } + ``` + + Then you can compile and run: (giving the expected error code `5566`) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + [2022-08-26 15:06:40.384] [error] user defined failed: user defined error code, Code: 0x15be + [2022-08-26 15:06:40.384] [error] When executing function name: "trap" + Get the error code: 5566 + ``` -5. Specified module instance +4. Construct a module instance with host instances - `WasmEdge_ModuleInstanceCreateWASI()` API can create and initialize the `WASI` module instance. + Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + + ```c + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, + const WasmEdge_CallingFrameContext *CallFrameCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + return WasmEdge_Result_Success; + } + + /* Create a module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("module"); + WasmEdge_ModuleInstanceContext *HostModCxt = + WasmEdge_ModuleInstanceCreate(ExportName); + WasmEdge_StringDelete(ExportName); + + /* Create and add a function instance into the module instance. */ + enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, + WasmEdge_ValType_I32}; + enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + /* + * The third parameter is the pointer to the additional data object. + * Developers should guarantee the life cycle of the data, and it can be + * `NULL` if the external data is not needed. + */ + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("add"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, FuncName, HostFunc); + WasmEdge_StringDelete(FuncName); + + /* Create and add a table instance into the import object. */ + WasmEdge_Limit TableLimit = { + .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + WasmEdge_TableTypeContext *HostTType = + WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TableLimit); + WasmEdge_TableInstanceContext *HostTable = + WasmEdge_TableInstanceCreate(HostTType); + WasmEdge_TableTypeDelete(HostTType); + WasmEdge_String TableName = WasmEdge_StringCreateByCString("table"); + WasmEdge_ModuleInstanceAddTable(HostModCxt, TableName, HostTable); + WasmEdge_StringDelete(TableName); + + /* Create and add a memory instance into the import object. */ + WasmEdge_Limit MemoryLimit = { + .HasMax = true, .Shared = false, .Min = 1, .Max = 2}; + WasmEdge_MemoryTypeContext *HostMType = + WasmEdge_MemoryTypeCreate(MemoryLimit); + WasmEdge_MemoryInstanceContext *HostMemory = + WasmEdge_MemoryInstanceCreate(HostMType); + WasmEdge_MemoryTypeDelete(HostMType); + WasmEdge_String MemoryName = WasmEdge_StringCreateByCString("memory"); + WasmEdge_ModuleInstanceAddMemory(HostModCxt, MemoryName, HostMemory); + WasmEdge_StringDelete(MemoryName); + + /* Create and add a global instance into the module instance. */ + WasmEdge_GlobalTypeContext *HostGType = WasmEdge_GlobalTypeCreate( + WasmEdge_ValType_I32, WasmEdge_Mutability_Var); + WasmEdge_GlobalInstanceContext *HostGlobal = + WasmEdge_GlobalInstanceCreate(HostGType, WasmEdge_ValueGenI32(666)); + WasmEdge_GlobalTypeDelete(HostGType); + WasmEdge_String GlobalName = WasmEdge_StringCreateByCString("global"); + WasmEdge_ModuleInstanceAddGlobal(HostModCxt, GlobalName, HostGlobal); + WasmEdge_StringDelete(GlobalName); + + /* + * The module instance should be deleted. + * Developers should __NOT__ destroy the instances added into the module + * instance contexts. + */ + WasmEdge_ModuleInstanceDelete(HostModCxt); + ``` - `WasmEdge_ModuleInstanceCreateWasiNN()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin. +5. Specified module instance - `WasmEdge_ModuleInstanceCreateWasiCryptoCommon()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin. + `WasmEdge_ModuleInstanceCreateWASI()` API can create and initialize the `WASI` module instance. - `WasmEdge_ModuleInstanceCreateWasiCryptoAsymmetricCommon()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin. + `WasmEdge_ModuleInstanceCreateWasiNN()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin. - `WasmEdge_ModuleInstanceCreateWasiCryptoKx()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin. + `WasmEdge_ModuleInstanceCreateWasiCryptoCommon()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin. - `WasmEdge_ModuleInstanceCreateWasiCryptoSignatures()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin. + `WasmEdge_ModuleInstanceCreateWasiCryptoAsymmetricCommon()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin. - `WasmEdge_ModuleInstanceCreateWasiCryptoSymmetric()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin. + `WasmEdge_ModuleInstanceCreateWasiCryptoKx()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin. - `WasmEdge_ModuleInstanceCreateWasmEdgeProcess()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. + `WasmEdge_ModuleInstanceCreateWasiCryptoSignatures()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin. - Developers can create these module instance contexts and register them into the `Store` or `VM` contexts rather than adjust the settings in the `Configure` contexts. + `WasmEdge_ModuleInstanceCreateWasiCryptoSymmetric()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin. - > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. And the 5 modules are recommended to all be created and registered together. + `WasmEdge_ModuleInstanceCreateWasmEdgeProcess()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. - ```c - WasmEdge_ModuleInstanceContext *WasiModCxt = - WasmEdge_ModuleInstanceCreateWASI(/* ... ignored */); - WasmEdge_ModuleInstanceContext *ProcModCxt = - WasmEdge_ModuleInstanceCreateWasmEdgeProcess(/* ... ignored */); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - /* Register the WASI and WasmEdge_Process into the VM context. */ - WasmEdge_VMRegisterModuleFromImport(VMCxt, WasiModCxt); - WasmEdge_VMRegisterModuleFromImport(VMCxt, ProcModCxt); - /* Get the WASI exit code. */ - uint32_t ExitCode = WasmEdge_ModuleInstanceWASIGetExitCode(WasiModCxt); - /* - * The `ExitCode` will be EXIT_SUCCESS if the execution has no error. - * Otherwise, it will return with the related exit code. - */ - WasmEdge_VMDelete(VMCxt); - /* The module instances should be deleted. */ - WasmEdge_ModuleInstanceDelete(WasiModCxt); - WasmEdge_ModuleInstanceDelete(ProcModCxt); - ``` + Developers can create these module instance contexts and register them into the `Store` or `VM` contexts rather than adjust the settings in the `Configure` contexts. -6. Example + > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. And the 5 modules are recommended to all be created and registered together. - Assume that a simple WASM from the WAT is as following: + ```c + WasmEdge_ModuleInstanceContext *WasiModCxt = + WasmEdge_ModuleInstanceCreateWASI(/* ... ignored */); + WasmEdge_ModuleInstanceContext *ProcModCxt = + WasmEdge_ModuleInstanceCreateWasmEdgeProcess(/* ... ignored */); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + /* Register the WASI and WasmEdge_Process into the VM context. */ + WasmEdge_VMRegisterModuleFromImport(VMCxt, WasiModCxt); + WasmEdge_VMRegisterModuleFromImport(VMCxt, ProcModCxt); + /* Get the WASI exit code. */ + uint32_t ExitCode = WasmEdge_ModuleInstanceWASIGetExitCode(WasiModCxt); + /* + * The `ExitCode` will be EXIT_SUCCESS if the execution has no error. + * Otherwise, it will return with the related exit code. + */ + WasmEdge_VMDelete(VMCxt); + /* The module instances should be deleted. */ + WasmEdge_ModuleInstanceDelete(WasiModCxt); + WasmEdge_ModuleInstanceDelete(ProcModCxt); + ``` - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` - - And the `test.c` is as following: - - ```c - #include - #include +6. Example - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, - const WasmEdge_CallingFrameContext *CallFrameCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - printf("Host function \"Add\": %d + %d\n", Val1, Val2); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - return WasmEdge_Result_Success; - } - - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The WASM module buffer. */ - uint8_t WASM[] = {/* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B}; - - /* Create the module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); - WasmEdge_ModuleInstanceContext *HostModCxt = - WasmEdge_ModuleInstanceCreate(ExportName); - enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, - WasmEdge_ValType_I32}; - enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); - WasmEdge_StringDelete(HostFuncName); - - WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[2] = {WasmEdge_ValueGenI32(1234), - WasmEdge_ValueGenI32(5678)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( - VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - WasmEdge_ModuleInstanceDelete(HostModCxt); - return 0; - } - ``` - - Then you can compile and run: (the result of 1234 + 5678 is 6912) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Host function "Add": 1234 + 5678 - Get the result: 6912 - ``` + Assume that a simple WASM from the WAT is as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + And the `test.c` is as following: + + ```c + #include + #include + + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, + const WasmEdge_CallingFrameContext *CallFrameCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + printf("Host function \"Add\": %d + %d\n", Val1, Val2); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + return WasmEdge_Result_Success; + } + + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The WASM module buffer. */ + uint8_t WASM[] = {/* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B}; + + /* Create the module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); + WasmEdge_ModuleInstanceContext *HostModCxt = + WasmEdge_ModuleInstanceCreate(ExportName); + enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, + WasmEdge_ValType_I32}; + enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); + WasmEdge_StringDelete(HostFuncName); + + WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[2] = {WasmEdge_ValueGenI32(1234), + WasmEdge_ValueGenI32(5678)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( + VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + WasmEdge_ModuleInstanceDelete(HostModCxt); + return 0; + } + ``` + + Then you can compile and run: (the result of 1234 + 5678 is 6912) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Host function "Add": 1234 + 5678 + Get the result: 6912 + ``` 7. Host Data Example - Developers can set a external data object to the `Function` context, and access to the object in the function body. Assume that a simple WASM from the WAT is as following: - - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` - - And the `test.c` is as following: - - ```c - #include - #include - - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, - const WasmEdge_CallingFrameContext *CallFrameCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - printf("Host function \"Add\": %d + %d\n", Val1, Val2); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - /* Also set the result to the data. */ - int32_t *DataPtr = (int32_t *)Data; - *DataPtr = Val1 + Val2; - return WasmEdge_Result_Success; - } - - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The WASM module buffer. */ - uint8_t WASM[] = {/* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B}; - - /* The external data object: an integer. */ - int32_t Data; - - /* Create the module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); - WasmEdge_ModuleInstanceContext *HostModCxt = - WasmEdge_ModuleInstanceCreate(ExportName); - enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, - WasmEdge_ValType_I32}; - enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Add, &Data, 0); - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); - WasmEdge_StringDelete(HostFuncName); - - WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[2] = {WasmEdge_ValueGenI32(1234), - WasmEdge_ValueGenI32(5678)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( - VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - printf("Data value: %d\n", Data); - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - WasmEdge_ModuleInstanceDelete(HostModCxt); - return 0; - } - ``` - - Then you can compile and run: (the result of 1234 + 5678 is 6912) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Host function "Add": 1234 + 5678 - Get the result: 6912 - Data value: 6912 - ``` + Developers can set a external data object to the `Function` context, and access to the object in the function body. Assume that a simple WASM from the WAT is as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + And the `test.c` is as following: + + ```c + #include + #include + + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, + const WasmEdge_CallingFrameContext *CallFrameCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + printf("Host function \"Add\": %d + %d\n", Val1, Val2); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + /* Also set the result to the data. */ + int32_t *DataPtr = (int32_t *)Data; + *DataPtr = Val1 + Val2; + return WasmEdge_Result_Success; + } + + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The WASM module buffer. */ + uint8_t WASM[] = {/* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B}; + + /* The external data object: an integer. */ + int32_t Data; + + /* Create the module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); + WasmEdge_ModuleInstanceContext *HostModCxt = + WasmEdge_ModuleInstanceCreate(ExportName); + enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, + WasmEdge_ValType_I32}; + enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Add, &Data, 0); + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); + WasmEdge_StringDelete(HostFuncName); + + WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[2] = {WasmEdge_ValueGenI32(1234), + WasmEdge_ValueGenI32(5678)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( + VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + printf("Data value: %d\n", Data); + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + WasmEdge_ModuleInstanceDelete(HostModCxt); + return 0; + } + ``` + + Then you can compile and run: (the result of 1234 + 5678 is 6912) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Host function "Add": 1234 + 5678 + Get the result: 6912 + Data value: 6912 + ``` ### Plug-ins diff --git a/docs/embed/c/reference/0.9.1.md b/docs/embed/c/reference/0.9.1.md index 3bd53b5e..0972a276 100644 --- a/docs/embed/c/reference/0.9.1.md +++ b/docs/embed/c/reference/0.9.1.md @@ -63,27 +63,27 @@ After the installation of WasmEdge, the following guide can help you to test for 1. Prepare the test C file (and assumed saved as `test.c`): - ```c - #include - #include - int main() { - printf("WasmEdge version: %s\n", WasmEdge_VersionGet()); - return 0; - } - ``` + ```c + #include + #include + int main() { + printf("WasmEdge version: %s\n", WasmEdge_VersionGet()); + return 0; + } + ``` 2. Compile the file with `gcc` or `clang`. - ```bash - gcc test.c -lwasmedge_c - ``` + ```bash + gcc test.c -lwasmedge_c + ``` 3. Run and get the expected output. - ```bash - $ ./a.out - WasmEdge version: 0.9.1 - ``` + ```bash + $ ./a.out + WasmEdge version: 0.9.1 + ``` ## WasmEdge Basics @@ -111,51 +111,51 @@ In WasmEdge, developers should convert the values to `WasmEdge_Value` objects th 1. Number types: `i32`, `i64`, `f32`, `f64`, and `v128` for the `SIMD` proposal - ```c - WasmEdge_Value Val; - Val = WasmEdge_ValueGenI32(123456); - printf("%d\n", WasmEdge_ValueGetI32(Val)); - /* Will print "123456" */ - Val = WasmEdge_ValueGenI64(1234567890123LL); - printf("%ld\n", WasmEdge_ValueGetI64(Val)); - /* Will print "1234567890123" */ - Val = WasmEdge_ValueGenF32(123.456f); - printf("%f\n", WasmEdge_ValueGetF32(Val)); - /* Will print "123.456001" */ - Val = WasmEdge_ValueGenF64(123456.123456789); - printf("%.10f\n", WasmEdge_ValueGetF64(Val)); - /* Will print "123456.1234567890" */ - ``` + ```c + WasmEdge_Value Val; + Val = WasmEdge_ValueGenI32(123456); + printf("%d\n", WasmEdge_ValueGetI32(Val)); + /* Will print "123456" */ + Val = WasmEdge_ValueGenI64(1234567890123LL); + printf("%ld\n", WasmEdge_ValueGetI64(Val)); + /* Will print "1234567890123" */ + Val = WasmEdge_ValueGenF32(123.456f); + printf("%f\n", WasmEdge_ValueGetF32(Val)); + /* Will print "123.456001" */ + Val = WasmEdge_ValueGenF64(123456.123456789); + printf("%.10f\n", WasmEdge_ValueGetF64(Val)); + /* Will print "123456.1234567890" */ + ``` 2. Reference types: `funcref` and `externref` for the `Reference-Types` proposal - ```c - WasmEdge_Value Val; - void *Ptr; - bool IsNull; - uint32_t Num = 10; - /* Generate a externref to NULL. */ - Val = WasmEdge_ValueGenNullRef(WasmEdge_RefType_ExternRef); - IsNull = WasmEdge_ValueIsNullRef(Val); - /* The `IsNull` will be `TRUE`. */ - Ptr = WasmEdge_ValueGetExternRef(Val); - /* The `Ptr` will be `NULL`. */ - - /* Generate a funcref with function index 20. */ - Val = WasmEdge_ValueGenFuncRef(20); - uint32_t FuncIdx = WasmEdge_ValueGetFuncIdx(Val); - /* The `FuncIdx` will be 20. */ - - /* Generate a externref to `Num`. */ - Val = WasmEdge_ValueGenExternRef(&Num); - Ptr = WasmEdge_ValueGetExternRef(Val); - /* The `Ptr` will be `&Num`. */ - printf("%u\n", *(uint32_t *)Ptr); - /* Will print "10" */ - Num += 55; - printf("%u\n", *(uint32_t *)Ptr); - /* Will print "65" */ - ``` + ```c + WasmEdge_Value Val; + void *Ptr; + bool IsNull; + uint32_t Num = 10; + /* Generate a externref to NULL. */ + Val = WasmEdge_ValueGenNullRef(WasmEdge_RefType_ExternRef); + IsNull = WasmEdge_ValueIsNullRef(Val); + /* The `IsNull` will be `TRUE`. */ + Ptr = WasmEdge_ValueGetExternRef(Val); + /* The `Ptr` will be `NULL`. */ + + /* Generate a funcref with function index 20. */ + Val = WasmEdge_ValueGenFuncRef(20); + uint32_t FuncIdx = WasmEdge_ValueGetFuncIdx(Val); + /* The `FuncIdx` will be 20. */ + + /* Generate a externref to `Num`. */ + Val = WasmEdge_ValueGenExternRef(&Num); + Ptr = WasmEdge_ValueGetExternRef(Val); + /* The `Ptr` will be `&Num`. */ + printf("%u\n", *(uint32_t *)Ptr); + /* Will print "10" */ + Num += 55; + printf("%u\n", *(uint32_t *)Ptr); + /* Will print "65" */ + ``` ### Strings @@ -163,49 +163,49 @@ The `WasmEdge_String` object is for the instance names when invoking a WASM func 1. Create a `WasmEdge_String` from a C string (`const char *` with NULL termination) or a buffer with length. - The content of the C string or buffer will be copied into the `WasmEdge_String` object. + The content of the C string or buffer will be copied into the `WasmEdge_String` object. - ```c - char Buf[4] = {50, 55, 60, 65}; - WasmEdge_String Str1 = WasmEdge_StringCreateByCString("test"); - WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); - /* The objects should be deleted by `WasmEdge_StringDelete()`. */ - WasmEdge_StringDelete(Str1); - WasmEdge_StringDelete(Str2); - ``` + ```c + char Buf[4] = {50, 55, 60, 65}; + WasmEdge_String Str1 = WasmEdge_StringCreateByCString("test"); + WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); + /* The objects should be deleted by `WasmEdge_StringDelete()`. */ + WasmEdge_StringDelete(Str1); + WasmEdge_StringDelete(Str2); + ``` 2. Wrap a `WasmEdge_String` to a buffer with length. - The content will not be copied, and the caller should guarantee the life cycle of the input buffer. + The content will not be copied, and the caller should guarantee the life cycle of the input buffer. - ```c - const char CStr[] = "test"; - WasmEdge_String Str = WasmEdge_StringWrap(CStr, 4); - /* The object should __NOT__ be deleted by `WasmEdge_StringDelete()`. */ - ``` + ```c + const char CStr[] = "test"; + WasmEdge_String Str = WasmEdge_StringWrap(CStr, 4); + /* The object should __NOT__ be deleted by `WasmEdge_StringDelete()`. */ + ``` 3. String comparison - ```c - const char CStr[] = "abcd"; - char Buf[4] = {0x61, 0x62, 0x63, 0x64}; - WasmEdge_String Str1 = WasmEdge_StringWrap(CStr, 4); - WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); - bool IsEq = WasmEdge_StringIsEqual(Str1, Str2); - /* The `IsEq` will be `TRUE`. */ - WasmEdge_StringDelete(Str2); - ``` + ```c + const char CStr[] = "abcd"; + char Buf[4] = {0x61, 0x62, 0x63, 0x64}; + WasmEdge_String Str1 = WasmEdge_StringWrap(CStr, 4); + WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); + bool IsEq = WasmEdge_StringIsEqual(Str1, Str2); + /* The `IsEq` will be `TRUE`. */ + WasmEdge_StringDelete(Str2); + ``` 4. Convert to C string - ```c - char Buf[256]; - WasmEdge_String Str = WasmEdge_StringCreateByCString("test_wasmedge_string"); - uint32_t StrLength = WasmEdge_StringCopy(Str, Buf, sizeof(Buf)); - /* StrLength will be 20 */ - printf("String: %s\n", Buf); - /* Will print "test_wasmedge_string". */ - ``` + ```c + char Buf[256]; + WasmEdge_String Str = WasmEdge_StringCreateByCString("test_wasmedge_string"); + uint32_t StrLength = WasmEdge_StringCopy(Str, Buf, sizeof(Buf)); + /* StrLength will be 20 */ + printf("String: %s\n", Buf); + /* Will print "test_wasmedge_string". */ + ``` ### Results @@ -240,143 +240,143 @@ The WASM data structures are used for creating instances or can be queried from 1. Limit - The `WasmEdge_Limit` struct is defined in the header: + The `WasmEdge_Limit` struct is defined in the header: - ```c - /// Struct of WASM limit. - typedef struct WasmEdge_Limit { - /// Boolean to describe has max value or not. - bool HasMax; - /// Minimum value. - uint32_t Min; - /// Maximum value. Will be ignored if the `HasMax` is false. - uint32_t Max; - } WasmEdge_Limit; - ``` + ```c + /// Struct of WASM limit. + typedef struct WasmEdge_Limit { + /// Boolean to describe has max value or not. + bool HasMax; + /// Minimum value. + uint32_t Min; + /// Maximum value. Will be ignored if the `HasMax` is false. + uint32_t Max; + } WasmEdge_Limit; + ``` - Developers can initialize the struct by assigning it's value, and the `Max` value is needed to be larger or equal to the `Min` value. The API `WasmEdge_LimitIsEqual()` is provided to compare with 2 `WasmEdge_Limit` structs. + Developers can initialize the struct by assigning it's value, and the `Max` value is needed to be larger or equal to the `Min` value. The API `WasmEdge_LimitIsEqual()` is provided to compare with 2 `WasmEdge_Limit` structs. 2. Function type context - The `Function Type` context is used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `Function Type` context APIs to get the parameter or return value types information. + The `Function Type` context is used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `Function Type` context APIs to get the parameter or return value types information. - ```c - enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I64 }; - enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_FuncRef }; - WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + ```c + enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I64 }; + enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_FuncRef }; + WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - enum WasmEdge_ValType Buf[16]; - uint32_t ParamLen = WasmEdge_FunctionTypeGetParametersLength(FuncTypeCxt); - /* `ParamLen` will be 2. */ - uint32_t GotParamLen = WasmEdge_FunctionTypeGetParameters(FuncTypeCxt, Buf, 16); - /* `GotParamLen` will be 2, and `Buf[0]` and `Buf[1]` will be the same as `ParamList`. */ - uint32_t ReturnLen = WasmEdge_FunctionTypeGetReturnsLength(FuncTypeCxt); - /* `ReturnLen` will be 1. */ - uint32_t GotReturnLen = WasmEdge_FunctionTypeGetReturns(FuncTypeCxt, Buf, 16); - /* `GotReturnLen` will be 1, and `Buf[0]` will be the same as `ReturnList`. */ + enum WasmEdge_ValType Buf[16]; + uint32_t ParamLen = WasmEdge_FunctionTypeGetParametersLength(FuncTypeCxt); + /* `ParamLen` will be 2. */ + uint32_t GotParamLen = WasmEdge_FunctionTypeGetParameters(FuncTypeCxt, Buf, 16); + /* `GotParamLen` will be 2, and `Buf[0]` and `Buf[1]` will be the same as `ParamList`. */ + uint32_t ReturnLen = WasmEdge_FunctionTypeGetReturnsLength(FuncTypeCxt); + /* `ReturnLen` will be 1. */ + uint32_t GotReturnLen = WasmEdge_FunctionTypeGetReturns(FuncTypeCxt, Buf, 16); + /* `GotReturnLen` will be 1, and `Buf[0]` will be the same as `ReturnList`. */ - WasmEdge_FunctionTypeDelete(FuncTypeCxt); - ``` + WasmEdge_FunctionTypeDelete(FuncTypeCxt); + ``` 3. Table type context - The `Table Type` context is used for `Table` instance creation or getting information from `Table` instances. + The `Table Type` context is used for `Table` instance creation or getting information from `Table` instances. - ```c - WasmEdge_Limit TabLim = {.HasMax = true, .Min = 10, .Max = 20}; - WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_TableTypeCreate(WasmEdge_RefType_ExternRef, TabLim); + ```c + WasmEdge_Limit TabLim = {.HasMax = true, .Min = 10, .Max = 20}; + WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_TableTypeCreate(WasmEdge_RefType_ExternRef, TabLim); - enum WasmEdge_RefType GotRefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); - /* `GotRefType` will be WasmEdge_RefType_ExternRef. */ - WasmEdge_Limit GotTabLim = WasmEdge_TableTypeGetLimit(TabTypeCxt); - /* `GotTabLim` will be the same value as `TabLim`. */ + enum WasmEdge_RefType GotRefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); + /* `GotRefType` will be WasmEdge_RefType_ExternRef. */ + WasmEdge_Limit GotTabLim = WasmEdge_TableTypeGetLimit(TabTypeCxt); + /* `GotTabLim` will be the same value as `TabLim`. */ - WasmEdge_TableTypeDelete(TabTypeCxt); - ``` + WasmEdge_TableTypeDelete(TabTypeCxt); + ``` 4. Memory type context - The `Memory Type` context is used for `Memory` instance creation or getting information from `Memory` instances. + The `Memory Type` context is used for `Memory` instance creation or getting information from `Memory` instances. - ```c - WasmEdge_Limit MemLim = {.HasMax = true, .Min = 10, .Max = 20}; - WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLim); + ```c + WasmEdge_Limit MemLim = {.HasMax = true, .Min = 10, .Max = 20}; + WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLim); - WasmEdge_Limit GotMemLim = WasmEdge_MemoryTypeGetLimit(MemTypeCxt); - /* `GotMemLim` will be the same value as `MemLim`. */ + WasmEdge_Limit GotMemLim = WasmEdge_MemoryTypeGetLimit(MemTypeCxt); + /* `GotMemLim` will be the same value as `MemLim`. */ - WasmEdge_MemoryTypeDelete(MemTypeCxt) - ``` + WasmEdge_MemoryTypeDelete(MemTypeCxt) + ``` 5. Global type context - The `Global Type` context is used for `Global` instance creation or getting information from `Global` instances. + The `Global Type` context is used for `Global` instance creation or getting information from `Global` instances. - ```c - WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate(WasmEdge_ValType_F64, WasmEdge_Mutability_Var); + ```c + WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate(WasmEdge_ValType_F64, WasmEdge_Mutability_Var); - WasmEdge_ValType GotValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); - /* `GotValType` will be WasmEdge_ValType_F64. */ - WasmEdge_Mutability GotValMut = WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); - /* `GotValMut` will be WasmEdge_Mutability_Var. */ + WasmEdge_ValType GotValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); + /* `GotValType` will be WasmEdge_ValType_F64. */ + WasmEdge_Mutability GotValMut = WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); + /* `GotValMut` will be WasmEdge_Mutability_Var. */ - WasmEdge_GlobalTypeDelete(GlobTypeCxt); - ``` + WasmEdge_GlobalTypeDelete(GlobTypeCxt); + ``` 6. Import type context - The `Import Type` context is used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `Import Type` context. The details about querying `Import Type` contexts will be introduced in the [AST Module](#ast-module). + The `Import Type` context is used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `Import Type` context. The details about querying `Import Type` contexts will be introduced in the [AST Module](#ast-module). - ```c - WasmEdge_ASTModuleContext *ASTCxt = ...; - /* Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the result of loading a WASM file. */ - const WasmEdge_ImportTypeContext *ImpType = ...; - /* Assume that `ImpType` is queried from the `ASTCxt` for the import. */ + ```c + WasmEdge_ASTModuleContext *ASTCxt = ...; + /* Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the result of loading a WASM file. */ + const WasmEdge_ImportTypeContext *ImpType = ...; + /* Assume that `ImpType` is queried from the `ASTCxt` for the import. */ - enum WasmEdge_ExternalType ExtType = WasmEdge_ImportTypeGetExternalType(ImpType); - /* - * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, `WasmEdge_ExternalType_Table`, - * `WasmEdge_ExternalType_Memory`, or `WasmEdge_ExternalType_Global`. - */ - WasmEdge_String ModName = WasmEdge_ImportTypeGetModuleName(ImpType); - WasmEdge_String ExtName = WasmEdge_ImportTypeGetExternalName(ImpType); - /* The `ModName` and `ExtName` should not be destroyed and the string buffers are binded into the `ASTCxt`. */ - const WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_ImportTypeGetFunctionType(ASTCxt, ImpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Function`, the `FuncTypeCxt` will be NULL. */ - const WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_ImportTypeGetTableType(ASTCxt, ImpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` will be NULL. */ - const WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_ImportTypeGetMemoryType(ASTCxt, ImpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` will be NULL. */ - const WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_ImportTypeGetGlobalType(ASTCxt, ImpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` will be NULL. */ - ``` + enum WasmEdge_ExternalType ExtType = WasmEdge_ImportTypeGetExternalType(ImpType); + /* + * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, `WasmEdge_ExternalType_Table`, + * `WasmEdge_ExternalType_Memory`, or `WasmEdge_ExternalType_Global`. + */ + WasmEdge_String ModName = WasmEdge_ImportTypeGetModuleName(ImpType); + WasmEdge_String ExtName = WasmEdge_ImportTypeGetExternalName(ImpType); + /* The `ModName` and `ExtName` should not be destroyed and the string buffers are binded into the `ASTCxt`. */ + const WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_ImportTypeGetFunctionType(ASTCxt, ImpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Function`, the `FuncTypeCxt` will be NULL. */ + const WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_ImportTypeGetTableType(ASTCxt, ImpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` will be NULL. */ + const WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_ImportTypeGetMemoryType(ASTCxt, ImpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` will be NULL. */ + const WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_ImportTypeGetGlobalType(ASTCxt, ImpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` will be NULL. */ + ``` 7. Export type context - The `Export Type` context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `Export Type` contexts will be introduced in the [AST Module](#ast-module). + The `Export Type` context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `Export Type` contexts will be introduced in the [AST Module](#ast-module). - ```c - WasmEdge_ASTModuleContext *ASTCxt = ...; - /* Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the result of loading a WASM file. */ - const WasmEdge_ExportTypeContext *ExpType = ...; - /* Assume that `ExpType` is queried from the `ASTCxt` for the export. */ + ```c + WasmEdge_ASTModuleContext *ASTCxt = ...; + /* Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the result of loading a WASM file. */ + const WasmEdge_ExportTypeContext *ExpType = ...; + /* Assume that `ExpType` is queried from the `ASTCxt` for the export. */ - enum WasmEdge_ExternalType ExtType = WasmEdge_ExportTypeGetExternalType(ExpType); - /* - * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, `WasmEdge_ExternalType_Table`, - * `WasmEdge_ExternalType_Memory`, or `WasmEdge_ExternalType_Global`. - */ - WasmEdge_String ExtName = WasmEdge_ExportTypeGetExternalName(ExpType); - /* The `ExtName` should not be destroyed and the string buffer is binded into the `ASTCxt`. */ - const WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_ExportTypeGetFunctionType(ASTCxt, ExpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Function`, the `FuncTypeCxt` will be NULL. */ - const WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_ExportTypeGetTableType(ASTCxt, ExpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` will be NULL. */ - const WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_ExportTypeGetMemoryType(ASTCxt, ExpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` will be NULL. */ - const WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_ExportTypeGetGlobalType(ASTCxt, ExpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` will be NULL. */ - ``` + enum WasmEdge_ExternalType ExtType = WasmEdge_ExportTypeGetExternalType(ExpType); + /* + * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, `WasmEdge_ExternalType_Table`, + * `WasmEdge_ExternalType_Memory`, or `WasmEdge_ExternalType_Global`. + */ + WasmEdge_String ExtName = WasmEdge_ExportTypeGetExternalName(ExpType); + /* The `ExtName` should not be destroyed and the string buffer is binded into the `ASTCxt`. */ + const WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_ExportTypeGetFunctionType(ASTCxt, ExpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Function`, the `FuncTypeCxt` will be NULL. */ + const WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_ExportTypeGetTableType(ASTCxt, ExpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` will be NULL. */ + const WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_ExportTypeGetMemoryType(ASTCxt, ExpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` will be NULL. */ + const WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_ExportTypeGetGlobalType(ASTCxt, ExpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` will be NULL. */ + ``` ### Async @@ -384,54 +384,54 @@ After calling the [asynchronous execution APIs](#asynchronous-execution), develo 1. Wait for the asynchronous execution - Developers can wait the execution until finished: - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution. */ - WasmEdge_AsyncWait(Async); - WasmEdge_AsyncDelete(Async); - ``` - - Or developers can wait for a time limit. If the time limit exceeded, developers can choose to cancel the execution. For the interruptible execution in AOT mode, developers should set `TRUE` through the `WasmEdge_ConfigureCompilerSetInterruptible()` API into the configure context for the AOT compiler. - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution for 1 second. */ - bool IsEnd = WasmEdge_AsyncWaitFor(Async, 1000); - if (IsEnd) { - /* The execution finished. Developers can get the result. */ - WasmEdge_Result Res = WasmEdge_AsyncGet(/* ... Ignored */); - } else { - /* The time limit exceeded. Developers can keep waiting or cancel the execution. */ - WasmEdge_AsyncCancel(Async); - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, 0, NULL); - /* The result error code will be `WasmEdge_ErrCode_Interrupted`. */ - } - WasmEdge_AsyncDelete(Async); - ``` + Developers can wait the execution until finished: + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution. */ + WasmEdge_AsyncWait(Async); + WasmEdge_AsyncDelete(Async); + ``` + + Or developers can wait for a time limit. If the time limit exceeded, developers can choose to cancel the execution. For the interruptible execution in AOT mode, developers should set `TRUE` through the `WasmEdge_ConfigureCompilerSetInterruptible()` API into the configure context for the AOT compiler. + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution for 1 second. */ + bool IsEnd = WasmEdge_AsyncWaitFor(Async, 1000); + if (IsEnd) { + /* The execution finished. Developers can get the result. */ + WasmEdge_Result Res = WasmEdge_AsyncGet(/* ... Ignored */); + } else { + /* The time limit exceeded. Developers can keep waiting or cancel the execution. */ + WasmEdge_AsyncCancel(Async); + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, 0, NULL); + /* The result error code will be `WasmEdge_ErrCode_Interrupted`. */ + } + WasmEdge_AsyncDelete(Async); + ``` 2. Get the execution result of the asynchronous execution - Developers can use the `WasmEdge_AsyncGetReturnsLength()` API to get the return value list length. This function will block and wait for the execution. If the execution has finished, this function will return the length immediately. If the execution failed, this function will return `0`. This function can help the developers to create the buffer to get the return values. If developers have already known the buffer length, they can skip this function and use the `WasmEdge_AsyncGet()` API to get the result. + Developers can use the `WasmEdge_AsyncGetReturnsLength()` API to get the return value list length. This function will block and wait for the execution. If the execution has finished, this function will return the length immediately. If the execution failed, this function will return `0`. This function can help the developers to create the buffer to get the return values. If developers have already known the buffer length, they can skip this function and use the `WasmEdge_AsyncGet()` API to get the result. - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution and get the return value list length. */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - WasmEdge_AsyncDelete(Async); - ``` + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution and get the return value list length. */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + WasmEdge_AsyncDelete(Async); + ``` - The `WasmEdge_AsyncGet()` API will block and wait for the execution. If the execution has finished, this function will fill the return values into the buffer and return the execution result immediately. + The `WasmEdge_AsyncGet()` API will block and wait for the execution. If the execution has finished, this function will fill the return values into the buffer and return the execution result immediately. - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution and get the return values. */ - const uint32_t BUF_LEN = 256; - WasmEdge_Value Buf[BUF_LEN]; - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Buf, BUF_LEN); - WasmEdge_AsyncDelete(Async); - ``` + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution and get the return values. */ + const uint32_t BUF_LEN = 256; + WasmEdge_Value Buf[BUF_LEN]; + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Buf, BUF_LEN); + WasmEdge_AsyncDelete(Async); + ``` ### Configurations @@ -439,148 +439,148 @@ The configuration context, `WasmEdge_ConfigureContext`, manages the configuratio 1. Proposals - WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` context. - - ```c - enum WasmEdge_Proposal { - WasmEdge_Proposal_ImportExportMutGlobals = 0, - WasmEdge_Proposal_NonTrapFloatToIntConversions, - WasmEdge_Proposal_SignExtensionOperators, - WasmEdge_Proposal_MultiValue, - WasmEdge_Proposal_BulkMemoryOperations, - WasmEdge_Proposal_ReferenceTypes, - WasmEdge_Proposal_SIMD, - WasmEdge_Proposal_TailCall, - WasmEdge_Proposal_MultiMemories, - WasmEdge_Proposal_Annotations, - WasmEdge_Proposal_Memory64, - WasmEdge_Proposal_ExceptionHandling, - WasmEdge_Proposal_Threads, - WasmEdge_Proposal_FunctionReferences - }; - ``` - - Developers can add or remove the proposals into the `Configure` context. - - ```c - /* - * By default, the following proposals have turned on initially: - * * Import/Export of mutable globals - * * Non-trapping float-to-int conversions - * * Sign-extension operators - * * Multi-value returns - * * Bulk memory operations - * * Reference types - * * Fixed-width SIMD - */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddProposal(ConfCxt, WasmEdge_Proposal_MultiMemories); - WasmEdge_ConfigureRemoveProposal(ConfCxt, WasmEdge_Proposal_ReferenceTypes); - bool IsBulkMem = WasmEdge_ConfigureHasProposal(ConfCxt, WasmEdge_Proposal_BulkMemoryOperations); - /* The `IsBulkMem` will be `TRUE`. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` context. + + ```c + enum WasmEdge_Proposal { + WasmEdge_Proposal_ImportExportMutGlobals = 0, + WasmEdge_Proposal_NonTrapFloatToIntConversions, + WasmEdge_Proposal_SignExtensionOperators, + WasmEdge_Proposal_MultiValue, + WasmEdge_Proposal_BulkMemoryOperations, + WasmEdge_Proposal_ReferenceTypes, + WasmEdge_Proposal_SIMD, + WasmEdge_Proposal_TailCall, + WasmEdge_Proposal_MultiMemories, + WasmEdge_Proposal_Annotations, + WasmEdge_Proposal_Memory64, + WasmEdge_Proposal_ExceptionHandling, + WasmEdge_Proposal_Threads, + WasmEdge_Proposal_FunctionReferences + }; + ``` + + Developers can add or remove the proposals into the `Configure` context. + + ```c + /* + * By default, the following proposals have turned on initially: + * * Import/Export of mutable globals + * * Non-trapping float-to-int conversions + * * Sign-extension operators + * * Multi-value returns + * * Bulk memory operations + * * Reference types + * * Fixed-width SIMD + */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddProposal(ConfCxt, WasmEdge_Proposal_MultiMemories); + WasmEdge_ConfigureRemoveProposal(ConfCxt, WasmEdge_Proposal_ReferenceTypes); + bool IsBulkMem = WasmEdge_ConfigureHasProposal(ConfCxt, WasmEdge_Proposal_BulkMemoryOperations); + /* The `IsBulkMem` will be `TRUE`. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 2. Host registrations - This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` contexts. + This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` contexts. - ```c - enum WasmEdge_HostRegistration { - WasmEdge_HostRegistration_Wasi = 0, - WasmEdge_HostRegistration_WasmEdge_Process - }; - ``` + ```c + enum WasmEdge_HostRegistration { + WasmEdge_HostRegistration_Wasi = 0, + WasmEdge_HostRegistration_WasmEdge_Process + }; + ``` - The details will be introduced in the [preregistrations of VM context](#preregistrations). + The details will be introduced in the [preregistrations of VM context](#preregistrations). - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - bool IsHostWasi = WasmEdge_ConfigureHasHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The `IsHostWasi` will be `FALSE`. */ - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - IsHostWasi = WasmEdge_ConfigureHasHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The `IsHostWasi` will be `TRUE`. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + bool IsHostWasi = WasmEdge_ConfigureHasHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The `IsHostWasi` will be `FALSE`. */ + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + IsHostWasi = WasmEdge_ConfigureHasHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The `IsHostWasi` will be `TRUE`. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 3. Maximum memory pages - Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` contexts. + Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` contexts. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - uint32_t PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); - /* By default, the maximum memory page size is 65536. */ - WasmEdge_ConfigureSetMaxMemoryPage(ConfCxt, 1024); - /* Limit the memory size of each memory instance with not larger than 1024 pages (64 MiB). */ - PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); - /* The `PageSize` will be 1024. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + uint32_t PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); + /* By default, the maximum memory page size is 65536. */ + WasmEdge_ConfigureSetMaxMemoryPage(ConfCxt, 1024); + /* Limit the memory size of each memory instance with not larger than 1024 pages (64 MiB). */ + PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); + /* The `PageSize` will be 1024. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 4. AOT compiler options - The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. - - ```c - enum WasmEdge_CompilerOptimizationLevel { - /// Disable as many optimizations as possible. - WasmEdge_CompilerOptimizationLevel_O0 = 0, - /// Optimize quickly without destroying debuggability. - WasmEdge_CompilerOptimizationLevel_O1, - /// Optimize for fast execution as much as possible without triggering - /// significant incremental compile time or code size growth. - WasmEdge_CompilerOptimizationLevel_O2, - /// Optimize for fast execution as much as possible. - WasmEdge_CompilerOptimizationLevel_O3, - /// Optimize for small code size as much as possible without triggering - /// significant incremental compile time or execution time slowdowns. - WasmEdge_CompilerOptimizationLevel_Os, - /// Optimize for small code size as much as possible. - WasmEdge_CompilerOptimizationLevel_Oz - }; - - enum WasmEdge_CompilerOutputFormat { - /// Native dynamic library format. - WasmEdge_CompilerOutputFormat_Native = 0, - /// WebAssembly with AOT compiled codes in custom section. - WasmEdge_CompilerOutputFormat_Wasm - }; - ``` - - These configurations are only effective in `Compiler` contexts. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - /* By default, the optimization level is O3. */ - WasmEdge_ConfigureCompilerSetOptimizationLevel(ConfCxt, WasmEdge_CompilerOptimizationLevel_O2); - /* By default, the output format is universal WASM. */ - WasmEdge_ConfigureCompilerSetOutputFormat(ConfCxt, WasmEdge_CompilerOutputFormat_Native); - /* By default, the dump IR is `FALSE`. */ - WasmEdge_ConfigureCompilerSetDumpIR(ConfCxt, TRUE); - /* By default, the generic binary is `FALSE`. */ - WasmEdge_ConfigureCompilerSetGenericBinary(ConfCxt, TRUE); - /* By default, the interruptible is `FALSE`. - /* Set this option to `TRUE` to support the interruptible execution in AOT mode. */ - WasmEdge_ConfigureCompilerSetInterruptible(ConfCxt, TRUE); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. + + ```c + enum WasmEdge_CompilerOptimizationLevel { + /// Disable as many optimizations as possible. + WasmEdge_CompilerOptimizationLevel_O0 = 0, + /// Optimize quickly without destroying debuggability. + WasmEdge_CompilerOptimizationLevel_O1, + /// Optimize for fast execution as much as possible without triggering + /// significant incremental compile time or code size growth. + WasmEdge_CompilerOptimizationLevel_O2, + /// Optimize for fast execution as much as possible. + WasmEdge_CompilerOptimizationLevel_O3, + /// Optimize for small code size as much as possible without triggering + /// significant incremental compile time or execution time slowdowns. + WasmEdge_CompilerOptimizationLevel_Os, + /// Optimize for small code size as much as possible. + WasmEdge_CompilerOptimizationLevel_Oz + }; + + enum WasmEdge_CompilerOutputFormat { + /// Native dynamic library format. + WasmEdge_CompilerOutputFormat_Native = 0, + /// WebAssembly with AOT compiled codes in custom section. + WasmEdge_CompilerOutputFormat_Wasm + }; + ``` + + These configurations are only effective in `Compiler` contexts. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + /* By default, the optimization level is O3. */ + WasmEdge_ConfigureCompilerSetOptimizationLevel(ConfCxt, WasmEdge_CompilerOptimizationLevel_O2); + /* By default, the output format is universal WASM. */ + WasmEdge_ConfigureCompilerSetOutputFormat(ConfCxt, WasmEdge_CompilerOutputFormat_Native); + /* By default, the dump IR is `FALSE`. */ + WasmEdge_ConfigureCompilerSetDumpIR(ConfCxt, TRUE); + /* By default, the generic binary is `FALSE`. */ + WasmEdge_ConfigureCompilerSetGenericBinary(ConfCxt, TRUE); + /* By default, the interruptible is `FALSE`. + /* Set this option to `TRUE` to support the interruptible execution in AOT mode. */ + WasmEdge_ConfigureCompilerSetInterruptible(ConfCxt, TRUE); + WasmEdge_ConfigureDelete(ConfCxt); + ``` 5. Statistics options - The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` contexts. + The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` contexts. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - /* By default, the instruction counting is `FALSE` when running a compiled-WASM or a pure-WASM. */ - WasmEdge_ConfigureStatisticsSetInstructionCounting(ConfCxt, TRUE); - /* By default, the cost measurement is `FALSE` when running a compiled-WASM or a pure-WASM. */ - WasmEdge_ConfigureStatisticsSetCostMeasuring(ConfCxt, TRUE); - /* By default, the time measurement is `FALSE` when running a compiled-WASM or a pure-WASM. */ - WasmEdge_ConfigureStatisticsSetTimeMeasuring(ConfCxt, TRUE); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + /* By default, the instruction counting is `FALSE` when running a compiled-WASM or a pure-WASM. */ + WasmEdge_ConfigureStatisticsSetInstructionCounting(ConfCxt, TRUE); + /* By default, the cost measurement is `FALSE` when running a compiled-WASM or a pure-WASM. */ + WasmEdge_ConfigureStatisticsSetCostMeasuring(ConfCxt, TRUE); + /* By default, the time measurement is `FALSE` when running a compiled-WASM or a pure-WASM. */ + WasmEdge_ConfigureStatisticsSetTimeMeasuring(ConfCxt, TRUE); + WasmEdge_ConfigureDelete(ConfCxt); + ``` ### Statistics @@ -590,45 +590,45 @@ Before using statistics, the statistics configuration must be set. Otherwise, th 1. Instruction counter - The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` context from the `VM` context, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. + The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` context from the `VM` context, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. - ```c - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* .... - * After running the WASM functions with the `Statistics` context - */ - uint32_t Count = WasmEdge_StatisticsGetInstrCount(StatCxt); - double IPS = WasmEdge_StatisticsGetInstrPerSecond(StatCxt); - WasmEdge_StatisticsDelete(StatCxt); - ``` + ```c + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* .... + * After running the WASM functions with the `Statistics` context + */ + uint32_t Count = WasmEdge_StatisticsGetInstrCount(StatCxt); + double IPS = WasmEdge_StatisticsGetInstrPerSecond(StatCxt); + WasmEdge_StatisticsDelete(StatCxt); + ``` 2. Cost table - The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` context. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. - - ```c - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - uint64_t CostTable[16] = { - 0, 0, - 10, /* 0x02: Block */ - 11, /* 0x03: Loop */ - 12, /* 0x04: If */ - 12, /* 0x05: Else */ - 0, 0, 0, 0, 0, 0, - 20, /* 0x0C: Br */ - 21, /* 0x0D: Br_if */ - 22, /* 0x0E: Br_table */ - 0 - }; - /* Developers can set the costs of each instruction. The value not covered will be 0. */ - WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); - WasmEdge_StatisticsSetCostLimit(StatCxt, 5000000); - /* .... - * After running the WASM functions with the `Statistics` context - */ - uint64_t Cost = WasmEdge_StatisticsGetTotalCost(StatCxt); - WasmEdge_StatisticsDelete(StatCxt); - ``` + The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` context. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. + + ```c + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + uint64_t CostTable[16] = { + 0, 0, + 10, /* 0x02: Block */ + 11, /* 0x03: Loop */ + 12, /* 0x04: If */ + 12, /* 0x05: Else */ + 0, 0, 0, 0, 0, 0, + 20, /* 0x0C: Br */ + 21, /* 0x0D: Br_if */ + 22, /* 0x0E: Br_table */ + 0 + }; + /* Developers can set the costs of each instruction. The value not covered will be 0. */ + WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); + WasmEdge_StatisticsSetCostLimit(StatCxt, 5000000); + /* .... + * After running the WASM functions with the `Statistics` context + */ + uint64_t Cost = WasmEdge_StatisticsGetTotalCost(StatCxt); + WasmEdge_StatisticsDelete(StatCxt); + ``` ## WasmEdge VM @@ -658,161 +658,161 @@ The following shows the example of running the WASM for getting the Fibonacci. T 1. Run WASM functions rapidly - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - /* Create the configure context and add the WASI support. */ - /* This step is not necessary unless you need WASI support. */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The configure and store context to the VM creation can be NULL. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(5) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromFile(VMCxt, "fibonacci.wasm", FuncName, Params, 1, Returns, 1); - /* - * Developers can run the WASM binary from buffer with the `WasmEdge_VMRunWasmFromBuffer()` API, - * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMRunWasmFromASTModule()` API. - */ - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 5th Fibonacci number is 8 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get the result: 8 - ``` + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + /* Create the configure context and add the WASI support. */ + /* This step is not necessary unless you need WASI support. */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The configure and store context to the VM creation can be NULL. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(5) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromFile(VMCxt, "fibonacci.wasm", FuncName, Params, 1, Returns, 1); + /* + * Developers can run the WASM binary from buffer with the `WasmEdge_VMRunWasmFromBuffer()` API, + * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMRunWasmFromASTModule()` API. + */ + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` + + Then you can compile and run: (the 5th Fibonacci number is 8 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get the result: 8 + ``` 2. Instantiate and run WASM functions manually - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: - - ```c - #include - #include - int main() { - /* Create the configure context and add the WASI support. */ - /* This step is not necessary unless you need the WASI support. */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The configure and store context to the VM creation can be NULL. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(10) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Step 1: Load WASM file. */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - /* - * Developers can load the WASM binary from buffer with the `WasmEdge_VMLoadWasmFromBuffer()` API, - * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMLoadWasmFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 2: Validate the WASM module. */ - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 3: Instantiate the WASM module. */ - Res = WasmEdge_VMInstantiate(VMCxt); - /* - * Developers can load, validate, and instantiate another WASM module to replace the - * instantiated one. In this case, the old module will be cleared, but the registered - * modules are still kept. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 4: Execute WASM functions. You can execute functions repeatedly after instantiation. */ - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 1, Returns, 1); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 10th Fibonacci number is 89 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get the result: 89 - ``` - - The following graph explains the status of the `VM` context. - - ```text - |========================| - |------->| VM: Initiated | - | |========================| - | | - | LoadWasm - | | - | v - | |========================| - |--------| VM: Loaded |<-------| - | |========================| | - | | ^ | - | Validate | | - Cleanup | LoadWasm | - | v | LoadWasm - | |========================| | - |--------| VM: Validated | | - | |========================| | - | | ^ | - | Instantiate | | - | | RegisterModule | - | v | | - | |========================| | - |--------| VM: Instantiated |--------| - |========================| - | ^ - | | - -------------- - Instantiate, Execute, ExecuteRegistered - ``` - - The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or import objects in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```c + #include + #include + int main() { + /* Create the configure context and add the WASI support. */ + /* This step is not necessary unless you need the WASI support. */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The configure and store context to the VM creation can be NULL. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(10) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Step 1: Load WASM file. */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + /* + * Developers can load the WASM binary from buffer with the `WasmEdge_VMLoadWasmFromBuffer()` API, + * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMLoadWasmFromASTModule()` API. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 2: Validate the WASM module. */ + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 3: Instantiate the WASM module. */ + Res = WasmEdge_VMInstantiate(VMCxt); + /* + * Developers can load, validate, and instantiate another WASM module to replace the + * instantiated one. In this case, the old module will be cleared, but the registered + * modules are still kept. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 4: Execute WASM functions. You can execute functions repeatedly after instantiation. */ + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 1, Returns, 1); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` + + Then you can compile and run: (the 10th Fibonacci number is 89 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get the result: 89 + ``` + + The following graph explains the status of the `VM` context. + + ```text + |========================| + |------->| VM: Initiated | + | |========================| + | | + | LoadWasm + | | + | v + | |========================| + |--------| VM: Loaded |<-------| + | |========================| | + | | ^ | + | Validate | | + Cleanup | LoadWasm | + | v | LoadWasm + | |========================| | + |--------| VM: Validated | | + | |========================| | + | | ^ | + | Instantiate | | + | | RegisterModule | + | v | | + | |========================| | + |--------| VM: Instantiated |--------| + |========================| + | ^ + | | + -------------- + Instantiate, Execute, ExecuteRegistered + ``` + + The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or import objects in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. ### VM Creations @@ -840,43 +840,43 @@ WasmEdge provides the following built-in pre-registrations. 1. [WASI (WebAssembly System Interface)](https://github.com/WebAssembly/WASI) - Developers can turn on the WASI support for VM in the `Configure` context. + Developers can turn on the WASI support for VM in the `Configure` context. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - /* The following API can retrieve the pre-registration import objects from the VM context. */ - /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration. */ - WasmEdge_ImportObjectContext *WasiObject = - WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_Wasi); - /* Initialize the WASI. */ - WasmEdge_ImportObjectInitWASI(WasiObject, /* ... ignored */ ); - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + /* The following API can retrieve the pre-registration import objects from the VM context. */ + /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration. */ + WasmEdge_ImportObjectContext *WasiObject = + WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_Wasi); + /* Initialize the WASI. */ + WasmEdge_ImportObjectInitWASI(WasiObject, /* ... ignored */ ); + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + ``` - And also can create the WASI import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 2. [WasmEdge_Process](https://crates.io/crates/wasmedge_process_interface) - This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` host functions. + This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` host functions. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasmEdge_Process); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - /* The following API can retrieve the pre-registration import objects from the VM context. */ - /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration. */ - WasmEdge_ImportObjectContext *ProcObject = - WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_WasmEdge_Process); - /* Initialize the WasmEdge_Process. */ - WasmEdge_ImportObjectInitWasmEdgeProcess(ProcObject, /* ... ignored */ ); - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasmEdge_Process); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + /* The following API can retrieve the pre-registration import objects from the VM context. */ + /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration. */ + WasmEdge_ImportObjectContext *ProcObject = + WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_WasmEdge_Process); + /* Initialize the WasmEdge_Process. */ + WasmEdge_ImportObjectInitWasmEdgeProcess(ProcObject, /* ... ignored */ ); + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + ``` - And also can create the WasmEdge_Process import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WasmEdge_Process import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). ### Host Module Registrations @@ -900,225 +900,225 @@ In WebAssembly, the instances in WASM modules can be exported and can be importe 1. Register the WASM modules with exported module names - Unless the import objects have already contained the module names, every WASM module should be named uniquely when registering. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. + Unless the import objects have already contained the module names, every WASM module should be named uniquely when registering. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. + + ```c + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + WasmEdge_Result Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); + /* + * Developers can register the WASM module from buffer with the `WasmEdge_VMRegisterModuleFromBuffer()` API, + * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMRegisterModuleFromASTModule()` API. + */ + /* + * The result status should be checked. + * The error will occur if the WASM module instantiation failed or the module name conflicts. + */ + WasmEdge_StringDelete(ModName); + WasmEdge_VMDelete(VMCxt); + ``` - ```c - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - WasmEdge_Result Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); - /* +2. Execute the functions in registered WASM modules + + Assume that the C file `test.c` is as follows: + + ```c + #include + #include + int main() { + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(20) }; + WasmEdge_Value Returns[1]; + /* Names. */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Register the WASM module into VM. */ + Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); + /* * Developers can register the WASM module from buffer with the `WasmEdge_VMRegisterModuleFromBuffer()` API, * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMRegisterModuleFromASTModule()` API. */ - /* - * The result status should be checked. - * The error will occur if the WASM module instantiation failed or the module name conflicts. + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* + * The function "fib" in the "fibonacci.wasm" was exported with the module name "mod". + * As the same as host functions, other modules can import the function `"mod" "fib"`. */ - WasmEdge_StringDelete(ModName); - WasmEdge_VMDelete(VMCxt); - ``` -2. Execute the functions in registered WASM modules + /* + * Execute WASM functions in registered modules. + * Unlike the execution of functions, the registered functions can be invoked without + * `WasmEdge_VMInstantiate()` because the WASM module was instantiated when registering. + * Developers can also invoke the host functions directly with this API. + */ + Res = WasmEdge_VMExecuteRegistered(VMCxt, ModName, FuncName, Params, 1, Returns, 1); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + WasmEdge_StringDelete(ModName); + WasmEdge_StringDelete(FuncName); + WasmEdge_VMDelete(VMCxt); + return 0; + } + ``` + + Then you can compile and run: (the 20th Fibonacci number is 89 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get the result: 10946 + ``` - Assume that the C file `test.c` is as follows: - - ```c - #include - #include - int main() { - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(20) }; - WasmEdge_Value Returns[1]; - /* Names. */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Register the WASM module into VM. */ - Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); - /* - * Developers can register the WASM module from buffer with the `WasmEdge_VMRegisterModuleFromBuffer()` API, - * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMRegisterModuleFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* - * The function "fib" in the "fibonacci.wasm" was exported with the module name "mod". - * As the same as host functions, other modules can import the function `"mod" "fib"`. +### Asynchronous Execution + +1. Asynchronously run WASM functions rapidly + + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(20) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Asynchronously run the WASM function from file and get the `WasmEdge_Async` object. */ + WasmEdge_Async *Async = WasmEdge_VMAsyncRunWasmFromFile(VMCxt, "fibonacci.wasm", FuncName, Params, 1); + /* + * Developers can run the WASM binary from buffer with the `WasmEdge_VMAsyncRunWasmFromBuffer()` API, + * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMAsyncRunWasmFromASTModule()` API. */ - /* - * Execute WASM functions in registered modules. - * Unlike the execution of functions, the registered functions can be invoked without - * `WasmEdge_VMInstantiate()` because the WASM module was instantiated when registering. - * Developers can also invoke the host functions directly with this API. + /* Wait for the execution. */ + WasmEdge_AsyncWait(Async); + /* + * Developers can also use the `WasmEdge_AsyncGetReturnsLength()` or `WasmEdge_AsyncGet()` APIs + * to wait for the asynchronous execution. These APIs will wait until the execution finished. */ - Res = WasmEdge_VMExecuteRegistered(VMCxt, ModName, FuncName, Params, 1, Returns, 1); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - WasmEdge_StringDelete(ModName); - WasmEdge_StringDelete(FuncName); - WasmEdge_VMDelete(VMCxt); - return 0; - } - ``` - - Then you can compile and run: (the 20th Fibonacci number is 89 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get the result: 10946 - ``` -### Asynchronous Execution + /* Check the return values length. */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + /* The `Arity` should be 1. Developers can skip this step if they have known the return arity. */ -1. Asynchronously run WASM functions rapidly + /* Get the result. */ + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Returns, Arity); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_AsyncDelete(Async); + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(20) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Asynchronously run the WASM function from file and get the `WasmEdge_Async` object. */ - WasmEdge_Async *Async = WasmEdge_VMAsyncRunWasmFromFile(VMCxt, "fibonacci.wasm", FuncName, Params, 1); - /* - * Developers can run the WASM binary from buffer with the `WasmEdge_VMAsyncRunWasmFromBuffer()` API, - * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMAsyncRunWasmFromASTModule()` API. - */ - - /* Wait for the execution. */ - WasmEdge_AsyncWait(Async); - /* - * Developers can also use the `WasmEdge_AsyncGetReturnsLength()` or `WasmEdge_AsyncGet()` APIs - * to wait for the asynchronous execution. These APIs will wait until the execution finished. - */ - - /* Check the return values length. */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - /* The `Arity` should be 1. Developers can skip this step if they have known the return arity. */ - - /* Get the result. */ - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Returns, Arity); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_AsyncDelete(Async); - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 20th Fibonacci number is 10946 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get the result: 10946 - ``` + Then you can compile and run: (the 20th Fibonacci number is 10946 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get the result: 10946 + ``` 2. Instantiate and asynchronously run WASM functions manually - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: - - ```c - #include - #include - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(25) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Step 1: Load WASM file. */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - /* - * Developers can load the WASM binary from buffer with the `WasmEdge_VMLoadWasmFromBuffer()` API, - * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMLoadWasmFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 2: Validate the WASM module. */ - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 3: Instantiate the WASM module. */ - Res = WasmEdge_VMInstantiate(VMCxt); - /* - * Developers can load, validate, and instantiate another WASM module to replace the - * instantiated one. In this case, the old module will be cleared, but the registered - * modules are still kept. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 4: Asynchronously execute the WASM function and get the `WasmEdge_Async` object. */ - WasmEdge_Async *Async = WasmEdge_VMAsyncExecute(VMCxt, FuncName, Params, 1); - /* - * Developers can execute functions repeatedly after instantiation. - * For invoking the registered functions, you can use the `WasmEdge_VMAsyncExecuteRegistered()` API. - */ - - /* Wait and check the return values length. */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - /* The `Arity` should be 1. Developers can skip this step if they have known the return arity. */ - - /* Get the result. */ - Res = WasmEdge_AsyncGet(Async, Returns, Arity); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_AsyncDelete(Async); - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - } - ``` - - Then you can compile and run: (the 25th Fibonacci number is 121393 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get the result: 121393 - ``` + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```c + #include + #include + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(25) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Step 1: Load WASM file. */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + /* + * Developers can load the WASM binary from buffer with the `WasmEdge_VMLoadWasmFromBuffer()` API, + * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMLoadWasmFromASTModule()` API. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 2: Validate the WASM module. */ + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 3: Instantiate the WASM module. */ + Res = WasmEdge_VMInstantiate(VMCxt); + /* + * Developers can load, validate, and instantiate another WASM module to replace the + * instantiated one. In this case, the old module will be cleared, but the registered + * modules are still kept. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 4: Asynchronously execute the WASM function and get the `WasmEdge_Async` object. */ + WasmEdge_Async *Async = WasmEdge_VMAsyncExecute(VMCxt, FuncName, Params, 1); + /* + * Developers can execute functions repeatedly after instantiation. + * For invoking the registered functions, you can use the `WasmEdge_VMAsyncExecuteRegistered()` API. + */ + + /* Wait and check the return values length. */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + /* The `Arity` should be 1. Developers can skip this step if they have known the return arity. */ + + /* Get the result. */ + Res = WasmEdge_AsyncGet(Async, Returns, Arity); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_AsyncDelete(Async); + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + } + ``` + + Then you can compile and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get the result: 121393 + ``` ### Instance Tracing @@ -1126,97 +1126,97 @@ Sometimes the developers may have requirements to get the instances of the WASM 1. Store - If the `VM` context is created without assigning a `Store` context, the `VM` context will allocate and own a `Store` context. + If the `VM` context is created without assigning a `Store` context, the `VM` context will allocate and own a `Store` context. - ```c - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - WasmEdge_StoreContext *StoreCxt = WasmEdge_VMGetStoreContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_StoreDelete()`. */ - WasmEdge_VMDelete(VMCxt); - ``` + ```c + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + WasmEdge_StoreContext *StoreCxt = WasmEdge_VMGetStoreContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_StoreDelete()`. */ + WasmEdge_VMDelete(VMCxt); + ``` - Developers can also create the `VM` context with a `Store` context. In this case, developers should guarantee the life cycle of the `Store` context. Please refer to the [Store Contexts](#store) for the details about the `Store` context APIs. + Developers can also create the `VM` context with a `Store` context. In this case, developers should guarantee the life cycle of the `Store` context. Please refer to the [Store Contexts](#store) for the details about the `Store` context APIs. - ```c - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); - WasmEdge_StoreContext *StoreCxtMock = WasmEdge_VMGetStoreContext(VMCxt); - /* The `StoreCxt` and the `StoreCxtMock` are the same. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StoreDelete(StoreCxt); - ``` + ```c + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); + WasmEdge_StoreContext *StoreCxtMock = WasmEdge_VMGetStoreContext(VMCxt); + /* The `StoreCxt` and the `StoreCxtMock` are the same. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StoreDelete(StoreCxt); + ``` 2. List exported functions - After the WASM module instantiation, developers can use the `WasmEdge_VMExecute()` API to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); - - WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - WasmEdge_VMValidate(VMCxt); - WasmEdge_VMInstantiate(VMCxt); - - /* List the exported functions. */ - /* Get the number of exported functions. */ - uint32_t FuncNum = WasmEdge_VMGetFunctionListLength(VMCxt); - /* Create the name buffers and the function type buffers. */ - const uint32_t BUF_LEN = 256; - WasmEdge_String FuncNames[BUF_LEN]; - WasmEdge_FunctionTypeContext *FuncTypes[BUF_LEN]; - /* - * Get the export function list. - * If the function list length is larger than the buffer length, the overflowed data will be discarded. - * The `FuncNames` and `FuncTypes` can be NULL if developers don't need them. - */ - uint32_t RealFuncNum = WasmEdge_VMGetFunctionList(VMCxt, FuncNames, FuncTypes, BUF_LEN); - - for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { - char Buf[BUF_LEN]; - uint32_t Size = WasmEdge_StringCopy(FuncNames[I], Buf, sizeof(Buf)); - printf("Get exported function string length: %u, name: %s\n", Size, Buf); - /* - * The function names should be __NOT__ destroyed. - * The returned function type contexts should __NOT__ be destroyed. - */ - } - return 0; - } - ``` - - Then you can compile and run: (the only exported function in `fibonacci.wasm` is `fib`) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get exported function string length: 3, name: fib - ``` - - If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` context from the `VM` context and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. + After the WASM module instantiation, developers can use the `WasmEdge_VMExecute()` API to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); + + WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + WasmEdge_VMValidate(VMCxt); + WasmEdge_VMInstantiate(VMCxt); + + /* List the exported functions. */ + /* Get the number of exported functions. */ + uint32_t FuncNum = WasmEdge_VMGetFunctionListLength(VMCxt); + /* Create the name buffers and the function type buffers. */ + const uint32_t BUF_LEN = 256; + WasmEdge_String FuncNames[BUF_LEN]; + WasmEdge_FunctionTypeContext *FuncTypes[BUF_LEN]; + /* + * Get the export function list. + * If the function list length is larger than the buffer length, the overflowed data will be discarded. + * The `FuncNames` and `FuncTypes` can be NULL if developers don't need them. + */ + uint32_t RealFuncNum = WasmEdge_VMGetFunctionList(VMCxt, FuncNames, FuncTypes, BUF_LEN); + + for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { + char Buf[BUF_LEN]; + uint32_t Size = WasmEdge_StringCopy(FuncNames[I], Buf, sizeof(Buf)); + printf("Get exported function string length: %u, name: %s\n", Size, Buf); + /* + * The function names should be __NOT__ destroyed. + * The returned function type contexts should __NOT__ be destroyed. + */ + } + return 0; + } + ``` + + Then you can compile and run: (the only exported function in `fibonacci.wasm` is `fib`) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get exported function string length: 3, name: fib + ``` + + If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` context from the `VM` context and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. 3. Get function types - The `VM` context provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. + The `VM` context provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. - ```c - /* - * ... - * Assume that a WASM module is instantiated in `VMCxt`. - */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - const WasmEdge_FunctionTypeContext *FuncType = WasmEdge_VMGetFunctionType(VMCxt, FuncName); - /* - * Developers can get the function types of functions in the registered modules - * via the `WasmEdge_VMGetFunctionTypeRegistered()` API with the module name. - * If the function is not found, these APIs will return `NULL`. - * The returned function type contexts should __NOT__ be destroyed. - */ - WasmEdge_StringDelete(FuncName); - ``` + ```c + /* + * ... + * Assume that a WASM module is instantiated in `VMCxt`. + */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + const WasmEdge_FunctionTypeContext *FuncType = WasmEdge_VMGetFunctionType(VMCxt, FuncName); + /* + * Developers can get the function types of functions in the registered modules + * via the `WasmEdge_VMGetFunctionTypeRegistered()` API with the module name. + * If the function is not found, these APIs will return `NULL`. + * The returned function type contexts should __NOT__ be destroyed. + */ + WasmEdge_StringDelete(FuncName); + ``` ## WasmEdge Runtime @@ -1378,80 +1378,80 @@ The `Executor` context is the executor for both WASM and compiled-WASM. This obj 1. Register modules - As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` context, developers can register `Import Object` or `AST module` contexts into the `Store` context by the `Executor` APIs. For the details of import objects, please refer to the [Host Functions](#host-functions). - - ```c - /* - * ... - * Assume that the `ASTCxt` is the output AST module context from the loader context - * and has passed the validation. - * Assume that the `ConfCxt` is the configure context. + As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` context, developers can register `Import Object` or `AST module` contexts into the `Store` context by the `Executor` APIs. For the details of import objects, please refer to the [Host Functions](#host-functions). + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader context + * and has passed the validation. + * Assume that the `ConfCxt` is the configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* Create the executor context. The configure and the statistics contexts can be NULL. */ + WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* Create the store context. The store context is the WASM runtime structure core. */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* Result. */ + WasmEdge_Result Res; + + /* Register the WASM module into store with the export module name "mod". */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + Res = WasmEdge_ExecutorRegisterModule(ExecCxt, StoreCxt, ASTCxt, ModName); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + WasmEdge_StringDelete(ModName); + + /* + * Assume that the `ImpCxt` is the import object context for host functions. */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* Create the executor context. The configure and the statistics contexts can be NULL. */ - WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* Create the store context. The store context is the WASM runtime structure core. */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* Result. */ - WasmEdge_Result Res; - - /* Register the WASM module into store with the export module name "mod". */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - Res = WasmEdge_ExecutorRegisterModule(ExecCxt, StoreCxt, ASTCxt, ModName); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - WasmEdge_StringDelete(ModName); - - /* - * Assume that the `ImpCxt` is the import object context for host functions. - */ - WasmEdge_ImportObjectContext *ImpCxt = ...; - /* The import module context has already contained the export module name. */ - Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, ImpCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Import object registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - WasmEdge_ImportObjectDelete(ImpCxt); - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - ``` + WasmEdge_ImportObjectContext *ImpCxt = ...; + /* The import module context has already contained the export module name. */ + Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, ImpCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Import object registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + WasmEdge_ImportObjectDelete(ImpCxt); + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + ``` 2. Instantiate modules - WASM or compiled-WASM modules should be instantiated before the function invocation. Note that developers can only instantiate one module into the `Store` context, and in that case, the old instantiated module will be cleaned. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` context. - - ```c - /* - * ... - * Assume that the `ASTCxt` is the output AST module context from the loader context - * and has passed the validation. - * Assume that the `ConfCxt` is the configure context. - */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* Create the executor context. The configure and the statistics contexts can be NULL. */ - WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* Create the store context. The store context is the WASM runtime structure core. */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - - /* Instantiate the WASM module. */ - WasmEdge_Result Res = WasmEdge_ExecutorInstantiate(ExecCxt, StoreCxt, ASTCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM instantiation failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - ``` + WASM or compiled-WASM modules should be instantiated before the function invocation. Note that developers can only instantiate one module into the `Store` context, and in that case, the old instantiated module will be cleaned. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` context. + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader context + * and has passed the validation. + * Assume that the `ConfCxt` is the configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* Create the executor context. The configure and the statistics contexts can be NULL. */ + WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* Create the store context. The store context is the WASM runtime structure core. */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + + /* Instantiate the WASM module. */ + WasmEdge_Result Res = WasmEdge_ExecutorInstantiate(ExecCxt, StoreCxt, ASTCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM instantiation failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + ``` 3. Invoke functions - As the same as function invocation via the `VM` context, developers can invoke the functions of the instantiated or registered modules. The APIs, `WasmEdge_ExecutorInvoke()` and `WasmEdge_ExecutorInvokeRegistered()`, are similar as the APIs of the `VM` context. Please refer to the [VM context workflows](#wasm-execution-example-with-vm-context) for details. + As the same as function invocation via the `VM` context, developers can invoke the functions of the instantiated or registered modules. The APIs, `WasmEdge_ExecutorInvoke()` and `WasmEdge_ExecutorInvokeRegistered()`, are similar as the APIs of the `VM` context. Please refer to the [VM context workflows](#wasm-execution-example-with-vm-context) for details. ### AST Module @@ -1490,67 +1490,67 @@ WasmEdge_ASTModuleDelete(ASTCxt); 1. List instances - ```c - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* ... Instantiate a WASM module via the executor context. */ - ... - - /* Try to list the exported functions of the instantiated WASM module. */ - /* Take the function instances for example here. */ - uint32_t FuncNum = WasmEdge_StoreListFunctionLength(StoreCxt); - /* Create the name buffers. */ - const uint32_t BUF_LEN = 256; - WasmEdge_String FuncNames[BUF_LEN]; - /* If the list length is larger than the buffer length, the overflowed data will be discarded. */ - uint32_t RealFuncNum = WasmEdge_StoreListFunction(StoreCxt, FuncNames, BUF_LEN); - for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { - /* Working with the function name `FuncNames[I]` ... */ - /* The function names should __NOT__ be destroyed. */ - } - ``` - - Developers can list the function instance exported names of the registered modules via the `WasmEdge_StoreListFunctionRegisteredLength()` and the `WasmEdge_StoreListFunctionRegistered()` APIs with the module name. + ```c + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* ... Instantiate a WASM module via the executor context. */ + ... + + /* Try to list the exported functions of the instantiated WASM module. */ + /* Take the function instances for example here. */ + uint32_t FuncNum = WasmEdge_StoreListFunctionLength(StoreCxt); + /* Create the name buffers. */ + const uint32_t BUF_LEN = 256; + WasmEdge_String FuncNames[BUF_LEN]; + /* If the list length is larger than the buffer length, the overflowed data will be discarded. */ + uint32_t RealFuncNum = WasmEdge_StoreListFunction(StoreCxt, FuncNames, BUF_LEN); + for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { + /* Working with the function name `FuncNames[I]` ... */ + /* The function names should __NOT__ be destroyed. */ + } + ``` + + Developers can list the function instance exported names of the registered modules via the `WasmEdge_StoreListFunctionRegisteredLength()` and the `WasmEdge_StoreListFunctionRegistered()` APIs with the module name. 2. Find instances - ```c - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* ... Instantiate a WASM module via the executor context. */ - ... + ```c + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* ... Instantiate a WASM module via the executor context. */ + ... - /* Try to find the exported instance of the instantiated WASM module. */ - /* Take the function instances for example here. */ - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - WasmEdge_FunctionInstanceContext *FuncCxt = WasmEdge_StoreFindFunction(StoreCxt, FuncName); - /* `FuncCxt` will be `NULL` if the function not found. */ - /* The returned instance is owned by the store context and should __NOT__ be destroyed. */ - WasmEdge_StringDelete(FuncName); - ``` + /* Try to find the exported instance of the instantiated WASM module. */ + /* Take the function instances for example here. */ + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + WasmEdge_FunctionInstanceContext *FuncCxt = WasmEdge_StoreFindFunction(StoreCxt, FuncName); + /* `FuncCxt` will be `NULL` if the function not found. */ + /* The returned instance is owned by the store context and should __NOT__ be destroyed. */ + WasmEdge_StringDelete(FuncName); + ``` - Developers can retrieve the exported function instances of the registered modules via the `WasmEdge_StoreFindFunctionRegistered()` API with the module name. + Developers can retrieve the exported function instances of the registered modules via the `WasmEdge_StoreFindFunctionRegistered()` API with the module name. 3. List registered modules - With the module names, developers can list the exported instances of the registered modules with their names. - - ```c - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* ... Register a WASM module via the executor context. */ - ... - - /* Try to list the registered WASM modules. */ - uint32_t ModNum = WasmEdge_StoreListModuleLength(StoreCxt); - /* Create the name buffers. */ - const uint32_t BUF_LEN = 256; - WasmEdge_String ModNames[BUF_LEN]; - /* If the list length is larger than the buffer length, the overflowed data will be discarded. */ - uint32_t RealModNum = WasmEdge_StoreListModule(StoreCxt, ModNames, BUF_LEN); - for (uint32_t I = 0; I < RealModNum && I < BUF_LEN; I++) { - /* Working with the module name `ModNames[I]` ... */ - /* The module names should __NOT__ be destroyed. */ - } - ``` + With the module names, developers can list the exported instances of the registered modules with their names. + + ```c + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* ... Register a WASM module via the executor context. */ + ... + + /* Try to list the registered WASM modules. */ + uint32_t ModNum = WasmEdge_StoreListModuleLength(StoreCxt); + /* Create the name buffers. */ + const uint32_t BUF_LEN = 256; + WasmEdge_String ModNames[BUF_LEN]; + /* If the list length is larger than the buffer length, the overflowed data will be discarded. */ + uint32_t RealModNum = WasmEdge_StoreListModule(StoreCxt, ModNames, BUF_LEN); + for (uint32_t I = 0; I < RealModNum && I < BUF_LEN; I++) { + /* Working with the module name `ModNames[I]` ... */ + /* The module names should __NOT__ be destroyed. */ + } + ``` ### Instances @@ -1558,144 +1558,144 @@ The instances are the runtime structures of WASM. Developers can retrieve the in 1. Function instance - [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` contexts for host functions and add them into an `Import Object` context for registering into a `VM` or a `Store`. For both host functions and the functions get from `Store`, developers can retrieve the `Function Type` from the `Function` contexts. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). + [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` contexts for host functions and add them into an `Import Object` context for registering into a `VM` or a `Store`. For both host functions and the functions get from `Store`, developers can retrieve the `Function Type` from the `Function` contexts. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). - ```c - /* Retrieve the function instance from the store context. */ - WasmEdge_FunctionInstanceContext *FuncCxt = ...; - WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_FunctionInstanceGetFunctionType(FuncCxt); - /* The `FuncTypeCxt` is owned by the `FuncCxt` and should __NOT__ be destroyed. */ - ``` + ```c + /* Retrieve the function instance from the store context. */ + WasmEdge_FunctionInstanceContext *FuncCxt = ...; + WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_FunctionInstanceGetFunctionType(FuncCxt); + /* The `FuncTypeCxt` is owned by the `FuncCxt` and should __NOT__ be destroyed. */ + ``` 2. Table instance - In WasmEdge, developers can create the `Table` contexts and add them into an `Import Object` context for registering into a `VM` or a `Store`. The `Table` contexts supply APIs to control the data in table instances. - - ```c - WasmEdge_Limit TabLimit = {.HasMax = true, .Min = 10, .Max = 20}; - /* Create the table type with limit and the `FuncRef` element type. */ - WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TabLimit); - /* Create the table instance with table type. */ - WasmEdge_TableInstanceContext *HostTable = WasmEdge_TableInstanceCreate(TabTypeCxt); - /* Delete the table type. */ - WasmEdge_TableTypeDelete(TabTypeCxt); - WasmEdge_Result Res; - WasmEdge_Value Data; - - TabTypeCxt = WasmEdge_TableInstanceGetTableType(HostTable); - /* The `TabTypeCxt` got from table instance is owned by the `HostTable` and should __NOT__ be destroyed. */ - enum WasmEdge_RefType RefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); - /* `RefType` will be `WasmEdge_RefType_FuncRef`. */ - Data = WasmEdge_ValueGenFuncRef(5); - Res = WasmEdge_TableInstanceSetData(HostTable, Data, 3); - /* Set the function index 5 to the table[3]. */ - /* - * This will get an "out of bounds table access" error - * because the position (13) is out of the table size (10): - * Res = WasmEdge_TableInstanceSetData(HostTable, Data, 13); - */ - Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 3); - /* Get the FuncRef value of the table[3]. */ - /* - * This will get an "out of bounds table access" error - * because the position (13) is out of the table size (10): - * Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 13); - */ + In WasmEdge, developers can create the `Table` contexts and add them into an `Import Object` context for registering into a `VM` or a `Store`. The `Table` contexts supply APIs to control the data in table instances. + + ```c + WasmEdge_Limit TabLimit = {.HasMax = true, .Min = 10, .Max = 20}; + /* Create the table type with limit and the `FuncRef` element type. */ + WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TabLimit); + /* Create the table instance with table type. */ + WasmEdge_TableInstanceContext *HostTable = WasmEdge_TableInstanceCreate(TabTypeCxt); + /* Delete the table type. */ + WasmEdge_TableTypeDelete(TabTypeCxt); + WasmEdge_Result Res; + WasmEdge_Value Data; + + TabTypeCxt = WasmEdge_TableInstanceGetTableType(HostTable); + /* The `TabTypeCxt` got from table instance is owned by the `HostTable` and should __NOT__ be destroyed. */ + enum WasmEdge_RefType RefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); + /* `RefType` will be `WasmEdge_RefType_FuncRef`. */ + Data = WasmEdge_ValueGenFuncRef(5); + Res = WasmEdge_TableInstanceSetData(HostTable, Data, 3); + /* Set the function index 5 to the table[3]. */ + /* + * This will get an "out of bounds table access" error + * because the position (13) is out of the table size (10): + * Res = WasmEdge_TableInstanceSetData(HostTable, Data, 13); + */ + Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 3); + /* Get the FuncRef value of the table[3]. */ + /* + * This will get an "out of bounds table access" error + * because the position (13) is out of the table size (10): + * Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 13); + */ - uint32_t Size = WasmEdge_TableInstanceGetSize(HostTable); - /* `Size` will be 10. */ - Res = WasmEdge_TableInstanceGrow(HostTable, 6); - /* Grow the table size of 6, the table size will be 16. */ - /* - * This will get an "out of bounds table access" error because - * the size (16 + 6) will reach the table limit(20): - * Res = WasmEdge_TableInstanceGrow(HostTable, 6); - */ + uint32_t Size = WasmEdge_TableInstanceGetSize(HostTable); + /* `Size` will be 10. */ + Res = WasmEdge_TableInstanceGrow(HostTable, 6); + /* Grow the table size of 6, the table size will be 16. */ + /* + * This will get an "out of bounds table access" error because + * the size (16 + 6) will reach the table limit(20): + * Res = WasmEdge_TableInstanceGrow(HostTable, 6); + */ - WasmEdge_TableInstanceDelete(HostTable); - ``` + WasmEdge_TableInstanceDelete(HostTable); + ``` 3. Memory instance - In WasmEdge, developers can create the `Memory` contexts and add them into an `Import Object` context for registering into a `VM` or a `Store`. The `Memory` contexts supply APIs to control the data in memory instances. - - ```c - WasmEdge_Limit MemLimit = {.HasMax = true, .Min = 1, .Max = 5}; - /* Create the memory type with limit. The memory page size is 64KiB. */ - WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLimit); - /* Create the memory instance with memory type. */ - WasmEdge_MemoryInstanceContext *HostMemory = WasmEdge_MemoryInstanceCreate(MemTypeCxt); - /* Delete the memory type. */ - WasmEdge_MemoryTypeDelete(MemTypeCxt); - WasmEdge_Result Res; - uint8_t Buf[256]; - - Buf[0] = 0xAA; - Buf[1] = 0xBB; - Buf[2] = 0xCC; - Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0x1000, 3); - /* Set the data[0:2] to the memory[4096:4098]. */ - /* - * This will get an "out of bounds memory access" error - * because [65535:65537] is out of 1 page size (65536): - * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); - */ - Buf[0] = 0; - Buf[1] = 0; - Buf[2] = 0; - Res = WasmEdge_MemoryInstanceGetData(HostMemory, Buf, 0x1000, 3); - /* Get the memory[4096:4098]. Buf[0:2] will be `{0xAA, 0xBB, 0xCC}`. */ - /* - * This will get an "out of bounds memory access" error - * because [65535:65537] is out of 1 page size (65536): - * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); - */ + In WasmEdge, developers can create the `Memory` contexts and add them into an `Import Object` context for registering into a `VM` or a `Store`. The `Memory` contexts supply APIs to control the data in memory instances. + + ```c + WasmEdge_Limit MemLimit = {.HasMax = true, .Min = 1, .Max = 5}; + /* Create the memory type with limit. The memory page size is 64KiB. */ + WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLimit); + /* Create the memory instance with memory type. */ + WasmEdge_MemoryInstanceContext *HostMemory = WasmEdge_MemoryInstanceCreate(MemTypeCxt); + /* Delete the memory type. */ + WasmEdge_MemoryTypeDelete(MemTypeCxt); + WasmEdge_Result Res; + uint8_t Buf[256]; + + Buf[0] = 0xAA; + Buf[1] = 0xBB; + Buf[2] = 0xCC; + Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0x1000, 3); + /* Set the data[0:2] to the memory[4096:4098]. */ + /* + * This will get an "out of bounds memory access" error + * because [65535:65537] is out of 1 page size (65536): + * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); + */ + Buf[0] = 0; + Buf[1] = 0; + Buf[2] = 0; + Res = WasmEdge_MemoryInstanceGetData(HostMemory, Buf, 0x1000, 3); + /* Get the memory[4096:4098]. Buf[0:2] will be `{0xAA, 0xBB, 0xCC}`. */ + /* + * This will get an "out of bounds memory access" error + * because [65535:65537] is out of 1 page size (65536): + * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); + */ - uint32_t PageSize = WasmEdge_MemoryInstanceGetPageSize(HostMemory); - /* `PageSize` will be 1. */ - Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 2); - /* Grow the page size of 2, the page size of the memory instance will be 3. */ - /* - * This will get an "out of bounds memory access" error because - * the page size (3 + 3) will reach the memory limit(5): - * Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 3); - */ + uint32_t PageSize = WasmEdge_MemoryInstanceGetPageSize(HostMemory); + /* `PageSize` will be 1. */ + Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 2); + /* Grow the page size of 2, the page size of the memory instance will be 3. */ + /* + * This will get an "out of bounds memory access" error because + * the page size (3 + 3) will reach the memory limit(5): + * Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 3); + */ - WasmEdge_MemoryInstanceDelete(HostMemory); - ``` + WasmEdge_MemoryInstanceDelete(HostMemory); + ``` 4. Global instance - In WasmEdge, developers can create the `Global` contexts and add them into an `Import Object` context for registering into a `VM` or a `Store`. The `Global` contexts supply APIs to control the value in global instances. - - ```c - WasmEdge_Value Val = WasmEdge_ValueGenI64(1000); - /* Create the global type with value type and mutation. */ - WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate(WasmEdge_ValType_I64, WasmEdge_Mutability_Var); - /* Create the global instance with value and global type. */ - WasmEdge_GlobalInstanceContext *HostGlobal = WasmEdge_GlobalInstanceCreate(GlobTypeCxt, Val); - /* Delete the global type. */ - WasmEdge_GlobalTypeDelete(GlobTypeCxt); - WasmEdge_Result Res; - - GlobTypeCxt = WasmEdge_GlobalInstanceGetGlobalType(HostGlobal); - /* The `GlobTypeCxt` got from global instance is owned by the `HostGlobal` and should __NOT__ be destroyed. */ - enum WasmEdge_ValType ValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); - /* `ValType` will be `WasmEdge_ValType_I64`. */ - enum WasmEdge_Mutability ValMut = WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); - /* `ValMut` will be `WasmEdge_Mutability_Var`. */ - - WasmEdge_GlobalInstanceSetValue(HostGlobal, WasmEdge_ValueGenI64(888)); - /* - * Set the value u64(888) to the global. - * This function will do nothing if the value type mismatched or - * the global mutability is `WasmEdge_Mutability_Const`. - */ - WasmEdge_Value GlobVal = WasmEdge_GlobalInstanceGetValue(HostGlobal); - /* Get the value (888 now) of the global context. */ + In WasmEdge, developers can create the `Global` contexts and add them into an `Import Object` context for registering into a `VM` or a `Store`. The `Global` contexts supply APIs to control the value in global instances. + + ```c + WasmEdge_Value Val = WasmEdge_ValueGenI64(1000); + /* Create the global type with value type and mutation. */ + WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate(WasmEdge_ValType_I64, WasmEdge_Mutability_Var); + /* Create the global instance with value and global type. */ + WasmEdge_GlobalInstanceContext *HostGlobal = WasmEdge_GlobalInstanceCreate(GlobTypeCxt, Val); + /* Delete the global type. */ + WasmEdge_GlobalTypeDelete(GlobTypeCxt); + WasmEdge_Result Res; + + GlobTypeCxt = WasmEdge_GlobalInstanceGetGlobalType(HostGlobal); + /* The `GlobTypeCxt` got from global instance is owned by the `HostGlobal` and should __NOT__ be destroyed. */ + enum WasmEdge_ValType ValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); + /* `ValType` will be `WasmEdge_ValType_I64`. */ + enum WasmEdge_Mutability ValMut = WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); + /* `ValMut` will be `WasmEdge_Mutability_Var`. */ + + WasmEdge_GlobalInstanceSetValue(HostGlobal, WasmEdge_ValueGenI64(888)); + /* + * Set the value u64(888) to the global. + * This function will do nothing if the value type mismatched or + * the global mutability is `WasmEdge_Mutability_Const`. + */ + WasmEdge_Value GlobVal = WasmEdge_GlobalInstanceGetValue(HostGlobal); + /* Get the value (888 now) of the global context. */ - WasmEdge_GlobalInstanceDelete(HostGlobal); - ``` + WasmEdge_GlobalInstanceDelete(HostGlobal); + ``` ### Host Functions @@ -1703,383 +1703,383 @@ The instances are the runtime structures of WASM. Developers can retrieve the in 1. Host function allocation - Developers can define C functions with the following function signature as the host function body: - - ```c - typedef WasmEdge_Result (*WasmEdge_HostFunc_t)( - void *Data, - WasmEdge_MemoryInstanceContext *MemCxt, - const WasmEdge_Value *Params, - WasmEdge_Value *Returns); - ``` - - The example of an `add` host function to add 2 `i32` values: - - ```c - WasmEdge_Result Add(void *, WasmEdge_MemoryInstanceContext *, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - /* - * Params: {i32, i32} - * Returns: {i32} - * Developers should take care about the function type. - */ - /* Retrieve the value 1. */ - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - /* Retrieve the value 2. */ - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - /* Output value 1 is Val1 + Val2. */ - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - /* Return the status of success. */ - return WasmEdge_Result_Success; - } - ``` - - Then developers can create `Function` context with the host function body and function type: - - ```c - enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; - enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; - /* Create a function type: {i32, i32} -> {i32}. */ - HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - /* - * Create a function context with the function type and host function body. - * The `Cost` parameter can be 0 if developers do not need the cost measuring. - */ - WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - /* - * The third parameter is the pointer to the additional data. - * Developers should guarantee the life cycle of the data, and it can be - * `NULL` if the external data is not needed. + Developers can define C functions with the following function signature as the host function body: + + ```c + typedef WasmEdge_Result (*WasmEdge_HostFunc_t)( + void *Data, + WasmEdge_MemoryInstanceContext *MemCxt, + const WasmEdge_Value *Params, + WasmEdge_Value *Returns); + ``` + + The example of an `add` host function to add 2 `i32` values: + + ```c + WasmEdge_Result Add(void *, WasmEdge_MemoryInstanceContext *, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + /* + * Params: {i32, i32} + * Returns: {i32} + * Developers should take care about the function type. */ + /* Retrieve the value 1. */ + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + /* Retrieve the value 2. */ + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + /* Output value 1 is Val1 + Val2. */ + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + /* Return the status of success. */ + return WasmEdge_Result_Success; + } + ``` + + Then developers can create `Function` context with the host function body and function type: + + ```c + enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; + enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; + /* Create a function type: {i32, i32} -> {i32}. */ + HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + /* + * Create a function context with the function type and host function body. + * The `Cost` parameter can be 0 if developers do not need the cost measuring. + */ + WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + /* + * The third parameter is the pointer to the additional data. + * Developers should guarantee the life cycle of the data, and it can be + * `NULL` if the external data is not needed. + */ - /* If the function instance is not added into an import object context, it should be deleted. */ - WasmEdge_FunctionInstanceDelete(HostFunc); - ``` + /* If the function instance is not added into an import object context, it should be deleted. */ + WasmEdge_FunctionInstanceDelete(HostFunc); + ``` 2. Import object context - The `Import Object` context holds an exporting module name and the instances. Developers can add the `Function`, `Memory`, `Table`, and `Global` instances with their exporting names. - - ```c - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - return WasmEdge_Result_Success; - } - - /* Create the import object. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("module"); - WasmEdge_ImportObjectContext *ImpObj = WasmEdge_ImportObjectCreate(ExportName); - WasmEdge_StringDelete(ExportName); - - /* Create and add a function instance into the import object. */ - enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; - enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - /* - * The third parameter is the pointer to the additional data object. - * Developers should guarantee the life cycle of the data, and it can be - * `NULL` if the external data is not needed. - */ - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("add"); - WasmEdge_ImportObjectAddFunction(ImpObj, FuncName, HostFunc); - WasmEdge_StringDelete(FuncName); - - /* Create and add a table instance into the import object. */ - WasmEdge_Limit TableLimit = {.HasMax = true, .Min = 10, .Max = 20}; - WasmEdge_TableTypeContext *HostTType = - WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TableLimit); - WasmEdge_TableInstanceContext *HostTable = WasmEdge_TableInstanceCreate(HostTType); - WasmEdge_TableTypeDelete(HostTType); - WasmEdge_String TableName = WasmEdge_StringCreateByCString("table"); - WasmEdge_ImportObjectAddTable(ImpObj, TableName, HostTable); - WasmEdge_StringDelete(TableName); - - /* Create and add a memory instance into the import object. */ - WasmEdge_Limit MemoryLimit = {.HasMax = true, .Min = 1, .Max = 2}; - WasmEdge_MemoryTypeContext *HostMType = WasmEdge_MemoryTypeCreate(MemoryLimit); - WasmEdge_MemoryInstanceContext *HostMemory = WasmEdge_MemoryInstanceCreate(HostMType); - WasmEdge_MemoryTypeDelete(HostMType); - WasmEdge_String MemoryName = WasmEdge_StringCreateByCString("memory"); - WasmEdge_ImportObjectAddMemory(ImpObj, MemoryName, HostMemory); - WasmEdge_StringDelete(MemoryName); - - /* Create and add a global instance into the import object. */ - WasmEdge_GlobalTypeContext *HostGType = - WasmEdge_GlobalTypeCreate(WasmEdge_ValType_I32, WasmEdge_Mutability_Var); - WasmEdge_GlobalInstanceContext *HostGlobal = - WasmEdge_GlobalInstanceCreate(HostGType, WasmEdge_ValueGenI32(666)); - WasmEdge_GlobalTypeDelete(HostGType); - WasmEdge_String GlobalName = WasmEdge_StringCreateByCString("global"); - WasmEdge_ImportObjectAddGlobal(ImpObj, GlobalName, HostGlobal); - WasmEdge_StringDelete(GlobalName); - - /* - * The import objects should be deleted. - * Developers should __NOT__ destroy the instances added into the import object contexts. - */ - WasmEdge_ImportObjectDelete(ImpObj); - ``` + The `Import Object` context holds an exporting module name and the instances. Developers can add the `Function`, `Memory`, `Table`, and `Global` instances with their exporting names. + + ```c + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + return WasmEdge_Result_Success; + } + + /* Create the import object. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("module"); + WasmEdge_ImportObjectContext *ImpObj = WasmEdge_ImportObjectCreate(ExportName); + WasmEdge_StringDelete(ExportName); + + /* Create and add a function instance into the import object. */ + enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; + enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + /* + * The third parameter is the pointer to the additional data object. + * Developers should guarantee the life cycle of the data, and it can be + * `NULL` if the external data is not needed. + */ + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("add"); + WasmEdge_ImportObjectAddFunction(ImpObj, FuncName, HostFunc); + WasmEdge_StringDelete(FuncName); + + /* Create and add a table instance into the import object. */ + WasmEdge_Limit TableLimit = {.HasMax = true, .Min = 10, .Max = 20}; + WasmEdge_TableTypeContext *HostTType = + WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TableLimit); + WasmEdge_TableInstanceContext *HostTable = WasmEdge_TableInstanceCreate(HostTType); + WasmEdge_TableTypeDelete(HostTType); + WasmEdge_String TableName = WasmEdge_StringCreateByCString("table"); + WasmEdge_ImportObjectAddTable(ImpObj, TableName, HostTable); + WasmEdge_StringDelete(TableName); + + /* Create and add a memory instance into the import object. */ + WasmEdge_Limit MemoryLimit = {.HasMax = true, .Min = 1, .Max = 2}; + WasmEdge_MemoryTypeContext *HostMType = WasmEdge_MemoryTypeCreate(MemoryLimit); + WasmEdge_MemoryInstanceContext *HostMemory = WasmEdge_MemoryInstanceCreate(HostMType); + WasmEdge_MemoryTypeDelete(HostMType); + WasmEdge_String MemoryName = WasmEdge_StringCreateByCString("memory"); + WasmEdge_ImportObjectAddMemory(ImpObj, MemoryName, HostMemory); + WasmEdge_StringDelete(MemoryName); + + /* Create and add a global instance into the import object. */ + WasmEdge_GlobalTypeContext *HostGType = + WasmEdge_GlobalTypeCreate(WasmEdge_ValType_I32, WasmEdge_Mutability_Var); + WasmEdge_GlobalInstanceContext *HostGlobal = + WasmEdge_GlobalInstanceCreate(HostGType, WasmEdge_ValueGenI32(666)); + WasmEdge_GlobalTypeDelete(HostGType); + WasmEdge_String GlobalName = WasmEdge_StringCreateByCString("global"); + WasmEdge_ImportObjectAddGlobal(ImpObj, GlobalName, HostGlobal); + WasmEdge_StringDelete(GlobalName); + + /* + * The import objects should be deleted. + * Developers should __NOT__ destroy the instances added into the import object contexts. + */ + WasmEdge_ImportObjectDelete(ImpObj); + ``` 3. Specified import object - `WasmEdge_ImportObjectCreateWASI()` API can create and initialize the `WASI` import object. `WasmEdge_ImportObjectCreateWasmEdgeProcess()` API can create and initialize the `wasmedge_process` import object. Developers can create these import object contexts and register them into the `Store` or `VM` contexts rather than adjust the settings in the `Configure` contexts. - - ```c - WasmEdge_ImportObjectContext *WasiObj = WasmEdge_ImportObjectCreateWASI( /* ... ignored */ ); - WasmEdge_ImportObjectContext *ProcObj = WasmEdge_ImportObjectCreateWasmEdgeProcess( /* ... ignored */ ); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - /* Register the WASI and WasmEdge_Process into the VM context. */ - WasmEdge_VMRegisterModuleFromImport(VMCxt, WasiObj); - WasmEdge_VMRegisterModuleFromImport(VMCxt, ProcObj); - /* Get the WASI exit code. */ - uint32_t ExitCode = WasmEdge_ImportObjectWASIGetExitCode(WasiObj); - /* - * The `ExitCode` will be EXIT_SUCCESS if the execution has no error. - * Otherwise, it will return with the related exit code. - */ - WasmEdge_VMDelete(VMCxt); - /* The import objects should be deleted. */ - WasmEdge_ImportObjectDelete(WasiObj); - WasmEdge_ImportObjectDelete(ProcObj); - ``` + `WasmEdge_ImportObjectCreateWASI()` API can create and initialize the `WASI` import object. `WasmEdge_ImportObjectCreateWasmEdgeProcess()` API can create and initialize the `wasmedge_process` import object. Developers can create these import object contexts and register them into the `Store` or `VM` contexts rather than adjust the settings in the `Configure` contexts. + + ```c + WasmEdge_ImportObjectContext *WasiObj = WasmEdge_ImportObjectCreateWASI( /* ... ignored */ ); + WasmEdge_ImportObjectContext *ProcObj = WasmEdge_ImportObjectCreateWasmEdgeProcess( /* ... ignored */ ); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + /* Register the WASI and WasmEdge_Process into the VM context. */ + WasmEdge_VMRegisterModuleFromImport(VMCxt, WasiObj); + WasmEdge_VMRegisterModuleFromImport(VMCxt, ProcObj); + /* Get the WASI exit code. */ + uint32_t ExitCode = WasmEdge_ImportObjectWASIGetExitCode(WasiObj); + /* + * The `ExitCode` will be EXIT_SUCCESS if the execution has no error. + * Otherwise, it will return with the related exit code. + */ + WasmEdge_VMDelete(VMCxt); + /* The import objects should be deleted. */ + WasmEdge_ImportObjectDelete(WasiObj); + WasmEdge_ImportObjectDelete(ProcObj); + ``` 4. Example - Assume that a simple WASM from the WAT as following: - - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` - - And the `test.c` as following: - - ```c - #include - #include - - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - printf("Host function \"Add\": %d + %d\n", Val1, Val2); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - return WasmEdge_Result_Success; - } - - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The WASM module buffer. */ - uint8_t WASM[] = { - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B - }; - - /* Create the import object. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); - WasmEdge_ImportObjectContext *ImpObj = WasmEdge_ImportObjectCreate(ExportName); - enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; - enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; - WasmEdge_FunctionTypeContext *HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); - WasmEdge_ImportObjectAddFunction(ImpObj, HostFuncName, HostFunc); - WasmEdge_StringDelete(HostFuncName); - - WasmEdge_VMRegisterModuleFromImport(VMCxt, ImpObj); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[2] = { WasmEdge_ValueGenI32(1234), WasmEdge_ValueGenI32(5678) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( - VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - WasmEdge_ImportObjectDelete(ImpObj); - return 0; - } - ``` - - Then you can compile and run: (the result of 1234 + 5678 is 6912) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Host function "Add": 1234 + 5678 - Get the result: 6912 - ``` + Assume that a simple WASM from the WAT as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + And the `test.c` as following: + + ```c + #include + #include + + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + printf("Host function \"Add\": %d + %d\n", Val1, Val2); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + return WasmEdge_Result_Success; + } + + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The WASM module buffer. */ + uint8_t WASM[] = { + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B + }; + + /* Create the import object. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); + WasmEdge_ImportObjectContext *ImpObj = WasmEdge_ImportObjectCreate(ExportName); + enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; + enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; + WasmEdge_FunctionTypeContext *HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); + WasmEdge_ImportObjectAddFunction(ImpObj, HostFuncName, HostFunc); + WasmEdge_StringDelete(HostFuncName); + + WasmEdge_VMRegisterModuleFromImport(VMCxt, ImpObj); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[2] = { WasmEdge_ValueGenI32(1234), WasmEdge_ValueGenI32(5678) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( + VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + WasmEdge_ImportObjectDelete(ImpObj); + return 0; + } + ``` + + Then you can compile and run: (the result of 1234 + 5678 is 6912) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Host function "Add": 1234 + 5678 + Get the result: 6912 + ``` 5. Host Data Example - Developers can set a external data object to the function context, and access to the object in the function body. Assume that a simple WASM from the WAT as following: - - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` - - And the `test.c` as following: - - ```c - #include - #include - - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - printf("Host function \"Add\": %d + %d\n", Val1, Val2); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - /* Also set the result to the data. */ - int32_t *DataPtr = (int32_t *)Data; - *DataPtr = Val1 + Val2; - return WasmEdge_Result_Success; - } - - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The WASM module buffer. */ - uint8_t WASM[] = { - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B - }; - - /* The external data object: an integer. */ - int32_t Data; - - /* Create the import object. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); - WasmEdge_ImportObjectContext *ImpObj = WasmEdge_ImportObjectCreate(ExportName); - enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; - enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; - WasmEdge_FunctionTypeContext *HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, &Data, 0); - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); - WasmEdge_ImportObjectAddFunction(ImpObj, HostFuncName, HostFunc); - WasmEdge_StringDelete(HostFuncName); - - WasmEdge_VMRegisterModuleFromImport(VMCxt, ImpObj); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[2] = { WasmEdge_ValueGenI32(1234), WasmEdge_ValueGenI32(5678) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( - VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - printf("Data value: %d\n", Data); - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - WasmEdge_ImportObjectDelete(ImpObj); - return 0; - } - ``` - - Then you can compile and run: (the result of 1234 + 5678 is 6912) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Host function "Add": 1234 + 5678 - Get the result: 6912 - Data value: 6912 - ``` + Developers can set a external data object to the function context, and access to the object in the function body. Assume that a simple WASM from the WAT as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + And the `test.c` as following: + + ```c + #include + #include + + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + printf("Host function \"Add\": %d + %d\n", Val1, Val2); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + /* Also set the result to the data. */ + int32_t *DataPtr = (int32_t *)Data; + *DataPtr = Val1 + Val2; + return WasmEdge_Result_Success; + } + + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The WASM module buffer. */ + uint8_t WASM[] = { + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B + }; + + /* The external data object: an integer. */ + int32_t Data; + + /* Create the import object. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); + WasmEdge_ImportObjectContext *ImpObj = WasmEdge_ImportObjectCreate(ExportName); + enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; + enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; + WasmEdge_FunctionTypeContext *HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, &Data, 0); + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); + WasmEdge_ImportObjectAddFunction(ImpObj, HostFuncName, HostFunc); + WasmEdge_StringDelete(HostFuncName); + + WasmEdge_VMRegisterModuleFromImport(VMCxt, ImpObj); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[2] = { WasmEdge_ValueGenI32(1234), WasmEdge_ValueGenI32(5678) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( + VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + printf("Data value: %d\n", Data); + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + WasmEdge_ImportObjectDelete(ImpObj); + return 0; + } + ``` + + Then you can compile and run: (the result of 1234 + 5678 is 6912) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Host function "Add": 1234 + 5678 + Get the result: 6912 + Data value: 6912 + ``` ## WasmEdge AOT Compiler diff --git a/docs/embed/c/reference/_category_.json b/docs/embed/c/reference/_category_.json index 41a30626..fa5abcd1 100644 --- a/docs/embed/c/reference/_category_.json +++ b/docs/embed/c/reference/_category_.json @@ -1,8 +1,8 @@ { - "label": "API Reference", - "position": 6, - "link": { - "type": "generated-index", - "description": "In this chapter, we will discuss the WasmEdge C API Reference ." - } + "label": "API Reference", + "position": 6, + "link": { + "type": "generated-index", + "description": "In this chapter, we will discuss the WasmEdge C API Reference ." + } } diff --git a/docs/embed/c/reference/upgrade_to_0.10.0.md b/docs/embed/c/reference/upgrade_to_0.10.0.md index 2bfdb6be..56c52b3e 100644 --- a/docs/embed/c/reference/upgrade_to_0.10.0.md +++ b/docs/embed/c/reference/upgrade_to_0.10.0.md @@ -10,54 +10,54 @@ Due to the WasmEdge C API breaking changes, this document shows the guideline of 1. Merged the `WasmEdge_ImportObjectContext` into the `WasmEdge_ModuleInstanceContext`. - The `WasmEdge_ImportObjectContext` which is for the host functions is merged into `WasmEdge_ModuleInstanceContext`. Developers can use the related APIs to construct host modules. + The `WasmEdge_ImportObjectContext` which is for the host functions is merged into `WasmEdge_ModuleInstanceContext`. Developers can use the related APIs to construct host modules. - - `WasmEdge_ImportObjectCreate()` is changed to `WasmEdge_ModuleInstanceCreate()`. - - `WasmEdge_ImportObjectDelete()` is changed to `WasmEdge_ModuleInstanceDelete()`. - - `WasmEdge_ImportObjectAddFunction()` is changed to `WasmEdge_ModuleInstanceAddFunction()`. - - `WasmEdge_ImportObjectAddTable()` is changed to `WasmEdge_ModuleInstanceAddTable()`. - - `WasmEdge_ImportObjectAddMemory()` is changed to `WasmEdge_ModuleInstanceAddMemory()`. - - `WasmEdge_ImportObjectAddGlobal()` is changed to `WasmEdge_ModuleInstanceAddGlobal()`. - - `WasmEdge_ImportObjectCreateWASI()` is changed to `WasmEdge_ModuleInstanceCreateWASI()`. - - `WasmEdge_ImportObjectCreateWasmEdgeProcess()` is changed to `WasmEdge_ModuleInstanceCreateWasmEdgeProcess()`. - - `WasmEdge_ImportObjectInitWASI()` is changed to `WasmEdge_ModuleInstanceInitWASI()`. - - `WasmEdge_ImportObjectInitWasmEdgeProcess()` is changed to `WasmEdge_ModuleInstanceInitWasmEdgeProcess()`. + - `WasmEdge_ImportObjectCreate()` is changed to `WasmEdge_ModuleInstanceCreate()`. + - `WasmEdge_ImportObjectDelete()` is changed to `WasmEdge_ModuleInstanceDelete()`. + - `WasmEdge_ImportObjectAddFunction()` is changed to `WasmEdge_ModuleInstanceAddFunction()`. + - `WasmEdge_ImportObjectAddTable()` is changed to `WasmEdge_ModuleInstanceAddTable()`. + - `WasmEdge_ImportObjectAddMemory()` is changed to `WasmEdge_ModuleInstanceAddMemory()`. + - `WasmEdge_ImportObjectAddGlobal()` is changed to `WasmEdge_ModuleInstanceAddGlobal()`. + - `WasmEdge_ImportObjectCreateWASI()` is changed to `WasmEdge_ModuleInstanceCreateWASI()`. + - `WasmEdge_ImportObjectCreateWasmEdgeProcess()` is changed to `WasmEdge_ModuleInstanceCreateWasmEdgeProcess()`. + - `WasmEdge_ImportObjectInitWASI()` is changed to `WasmEdge_ModuleInstanceInitWASI()`. + - `WasmEdge_ImportObjectInitWasmEdgeProcess()` is changed to `WasmEdge_ModuleInstanceInitWasmEdgeProcess()`. - For the new host function examples, please refer to [the example below](#host-functions). + For the new host function examples, please refer to [the example below](#host-functions). 2. Used the pointer to `WasmEdge_FunctionInstanceContext` instead of the index in the `FuncRef` value type. - For the better performance and security, the `FuncRef` related APIs used the `const WasmEdge_FunctionInstanceContext *` for the parameters and returns. + For the better performance and security, the `FuncRef` related APIs used the `const WasmEdge_FunctionInstanceContext *` for the parameters and returns. - - `WasmEdge_ValueGenFuncRef()` is changed to use the `const WasmEdge_FunctionInstanceContext *` as it's argument. - - `WasmEdge_ValueGetFuncRef()` is changed to return the `const WasmEdge_FunctionInstanceContext *`. + - `WasmEdge_ValueGenFuncRef()` is changed to use the `const WasmEdge_FunctionInstanceContext *` as it's argument. + - `WasmEdge_ValueGetFuncRef()` is changed to return the `const WasmEdge_FunctionInstanceContext *`. 3. Supported multiple anonymous WASM module instantiation. - In the version before `0.9.1`, WasmEdge only supports 1 anonymous WASM module to be instantiated at one time. If developers instantiate a new WASM module, the old one will be replaced. After the `0.10.0` version, developers can instantiate multiple anonymous WASM module by `Executor` and get the `Module` instance. But for the source code using the `VM` APIs, the behavior is not changed. For the new examples of instantiating multiple anonymous WASM modules, please refer to [the example below](#wasmedge-executor-changes). + In the version before `0.9.1`, WasmEdge only supports 1 anonymous WASM module to be instantiated at one time. If developers instantiate a new WASM module, the old one will be replaced. After the `0.10.0` version, developers can instantiate multiple anonymous WASM module by `Executor` and get the `Module` instance. But for the source code using the `VM` APIs, the behavior is not changed. For the new examples of instantiating multiple anonymous WASM modules, please refer to [the example below](#wasmedge-executor-changes). 4. Behavior changed of `WasmEdge_StoreContext`. - The `Function`, `Table`, `Memory`, and `Global` instances retrievement from the `Store` is moved to the `Module` instance. The `Store` only manage the module linking when instantiation and the named module searching after the `0.10.0` version. + The `Function`, `Table`, `Memory`, and `Global` instances retrievement from the `Store` is moved to the `Module` instance. The `Store` only manage the module linking when instantiation and the named module searching after the `0.10.0` version. - - `WasmEdge_StoreListFunctionLength()` and `WasmEdge_StoreListFunctionRegisteredLength()` is replaced by `WasmEdge_ModuleInstanceListFunctionLength()`. - - `WasmEdge_StoreListTableLength()` and `WasmEdge_StoreListTableRegisteredLength()` is replaced by `WasmEdge_ModuleInstanceListTableLength()`. - - `WasmEdge_StoreListMemoryLength()` and `WasmEdge_StoreListMemoryRegisteredLength()` is replaced by `WasmEdge_ModuleInstanceListMemoryLength()`. - - `WasmEdge_StoreListGlobalLength()` and `WasmEdge_StoreListGlobalRegisteredLength()` is replaced by `WasmEdge_ModuleInstanceListGlobalLength()`. - - `WasmEdge_StoreListFunction()` and `WasmEdge_StoreListFunctionRegistered()` is replaced by `WasmEdge_ModuleInstanceListFunction()`. - - `WasmEdge_StoreListTable()` and `WasmEdge_StoreListTableRegistered()` is replaced by `WasmEdge_ModuleInstanceListTable()`. - - `WasmEdge_StoreListMemory()` and `WasmEdge_StoreListMemoryRegistered()` is replaced by `WasmEdge_ModuleInstanceListMemory()`. - - `WasmEdge_StoreListGlobal()` and `WasmEdge_StoreListGlobalRegistered()` is replaced by `WasmEdge_ModuleInstanceListGlobal()`. - - `WasmEdge_StoreFindFunction()` and `WasmEdge_StoreFindFunctionRegistered()` is replaced by `WasmEdge_ModuleInstanceFindFunction()`. - - `WasmEdge_StoreFindTable()` and `WasmEdge_StoreFindTableRegistered()` is replaced by `WasmEdge_ModuleInstanceFindTable()`. - - `WasmEdge_StoreFindMemory()` and `WasmEdge_StoreFindMemoryRegistered()` is replaced by `WasmEdge_ModuleInstanceFindMemory()`. - - `WasmEdge_StoreFindGlobal()` and `WasmEdge_StoreFindGlobalRegistered()` is replaced by `WasmEdge_ModuleInstanceFindGlobal()`. + - `WasmEdge_StoreListFunctionLength()` and `WasmEdge_StoreListFunctionRegisteredLength()` is replaced by `WasmEdge_ModuleInstanceListFunctionLength()`. + - `WasmEdge_StoreListTableLength()` and `WasmEdge_StoreListTableRegisteredLength()` is replaced by `WasmEdge_ModuleInstanceListTableLength()`. + - `WasmEdge_StoreListMemoryLength()` and `WasmEdge_StoreListMemoryRegisteredLength()` is replaced by `WasmEdge_ModuleInstanceListMemoryLength()`. + - `WasmEdge_StoreListGlobalLength()` and `WasmEdge_StoreListGlobalRegisteredLength()` is replaced by `WasmEdge_ModuleInstanceListGlobalLength()`. + - `WasmEdge_StoreListFunction()` and `WasmEdge_StoreListFunctionRegistered()` is replaced by `WasmEdge_ModuleInstanceListFunction()`. + - `WasmEdge_StoreListTable()` and `WasmEdge_StoreListTableRegistered()` is replaced by `WasmEdge_ModuleInstanceListTable()`. + - `WasmEdge_StoreListMemory()` and `WasmEdge_StoreListMemoryRegistered()` is replaced by `WasmEdge_ModuleInstanceListMemory()`. + - `WasmEdge_StoreListGlobal()` and `WasmEdge_StoreListGlobalRegistered()` is replaced by `WasmEdge_ModuleInstanceListGlobal()`. + - `WasmEdge_StoreFindFunction()` and `WasmEdge_StoreFindFunctionRegistered()` is replaced by `WasmEdge_ModuleInstanceFindFunction()`. + - `WasmEdge_StoreFindTable()` and `WasmEdge_StoreFindTableRegistered()` is replaced by `WasmEdge_ModuleInstanceFindTable()`. + - `WasmEdge_StoreFindMemory()` and `WasmEdge_StoreFindMemoryRegistered()` is replaced by `WasmEdge_ModuleInstanceFindMemory()`. + - `WasmEdge_StoreFindGlobal()` and `WasmEdge_StoreFindGlobalRegistered()` is replaced by `WasmEdge_ModuleInstanceFindGlobal()`. - For the new examples of retrieving instances, please refer to [the example below](#instances-retrievement). + For the new examples of retrieving instances, please refer to [the example below](#instances-retrievement). 5. The `WasmEdge_ModuleInstanceContext`-based resource management. - Except the creation of `Module` instance for the host functions, the `Executor` will output a `Module` instance after instantiation. No matter the anonymous or named modules, developers have the responsibility to destroy them by `WasmEdge_ModuleInstanceDelete()` API. The `Store` will link to the named `Module` instance after registering. After the destroyment of a `Module` instance, the `Store` will unlink to that automatically; after the destroyment of the `Store`, the all `Module` instances the `Store` linked to will unlink to that `Store` automatically. + Except the creation of `Module` instance for the host functions, the `Executor` will output a `Module` instance after instantiation. No matter the anonymous or named modules, developers have the responsibility to destroy them by `WasmEdge_ModuleInstanceDelete()` API. The `Store` will link to the named `Module` instance after registering. After the destroyment of a `Module` instance, the `Store` will unlink to that automatically; after the destroyment of the `Store`, the all `Module` instances the `Store` linked to will unlink to that `Store` automatically. ## WasmEdge VM changes @@ -128,218 +128,218 @@ WasmEdge_StringDelete(GlobName); 1. WASM module instantiation - In WasmEdge `0.9.1` version, developers can instantiate a WASM module by the `Executor` API: - - ```c - WasmEdge_ASTModuleContext *ASTCxt; - /* - * Assume that `ASTCxt` is a loaded WASM from file or buffer and has passed the validation. - * Assume that `ExecCxt` is a `WasmEdge_ExecutorContext`. - * Assume that `StoreCxt` is a `WasmEdge_StoreContext`. - */ - WasmEdge_Result Res = WasmEdge_ExecutorInstantiate(ExecCxt, StoreCxt, ASTCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - ``` - - Then the WASM module is instantiated into an anonymous module instance and handled by the `Store`. If a new WASM module is instantiated by this API, the old instantiated module instance will be cleaned. After the WasmEdge `0.10.0` version, the instantiated anonymous module will be outputted and handled by caller, and not only 1 anonymous module instance can be instantiated. Developers have the responsibility to destroy the outputted module instances. - - ```c - WasmEdge_ASTModuleContext *ASTCxt1, *ASTCxt2; - /* - * Assume that `ASTCxt1` and `ASTCxt2` are loaded WASMs from different files or buffers, - * and have both passed the validation. - * Assume that `ExecCxt` is a `WasmEdge_ExecutorContext`. - * Assume that `StoreCxt` is a `WasmEdge_StoreContext`. - */ - WasmEdge_ModuleInstanceContext *ModCxt1 = NULL; - WasmEdge_ModuleInstanceContext *ModCxt2 = NULL; - WasmEdge_Result Res = WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt1, StoreCxt, ASTCxt1); - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - Res = WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt2, StoreCxt, ASTCxt2); - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - ``` + In WasmEdge `0.9.1` version, developers can instantiate a WASM module by the `Executor` API: + + ```c + WasmEdge_ASTModuleContext *ASTCxt; + /* + * Assume that `ASTCxt` is a loaded WASM from file or buffer and has passed the validation. + * Assume that `ExecCxt` is a `WasmEdge_ExecutorContext`. + * Assume that `StoreCxt` is a `WasmEdge_StoreContext`. + */ + WasmEdge_Result Res = WasmEdge_ExecutorInstantiate(ExecCxt, StoreCxt, ASTCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + ``` + + Then the WASM module is instantiated into an anonymous module instance and handled by the `Store`. If a new WASM module is instantiated by this API, the old instantiated module instance will be cleaned. After the WasmEdge `0.10.0` version, the instantiated anonymous module will be outputted and handled by caller, and not only 1 anonymous module instance can be instantiated. Developers have the responsibility to destroy the outputted module instances. + + ```c + WasmEdge_ASTModuleContext *ASTCxt1, *ASTCxt2; + /* + * Assume that `ASTCxt1` and `ASTCxt2` are loaded WASMs from different files or buffers, + * and have both passed the validation. + * Assume that `ExecCxt` is a `WasmEdge_ExecutorContext`. + * Assume that `StoreCxt` is a `WasmEdge_StoreContext`. + */ + WasmEdge_ModuleInstanceContext *ModCxt1 = NULL; + WasmEdge_ModuleInstanceContext *ModCxt2 = NULL; + WasmEdge_Result Res = WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt1, StoreCxt, ASTCxt1); + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + Res = WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt2, StoreCxt, ASTCxt2); + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + ``` 2. WASM module registration with module name - When instantiating and registering a WASM module with module name, developers can use the `WasmEdge_ExecutorRegisterModule()` API before WasmEdge `0.9.1`. - - ```c - WasmEdge_ASTModuleContext *ASTCxt; - /* - * Assume that `ASTCxt` is a loaded WASM from file or buffer and has passed the validation. - * Assume that `ExecCxt` is a `WasmEdge_ExecutorContext`. - * Assume that `StoreCxt` is a `WasmEdge_StoreContext`. - */ - - /* Register the WASM module into store with the export module name "mod". */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - Res = WasmEdge_ExecutorRegisterModule(ExecCxt, StoreCxt, ASTCxt, ModName); - WasmEdge_StringDelete(ModName); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - ``` - - The same feature is implemented in WasmEdge `0.10.0`, but in different API `WasmEdge_ExecutorRegister()`: - - ```c - WasmEdge_ASTModuleContext *ASTCxt; - /* - * Assume that `ASTCxt` is a loaded WASM from file or buffer and has passed the validation. - * Assume that `ExecCxt` is a `WasmEdge_ExecutorContext`. - * Assume that `StoreCxt` is a `WasmEdge_StoreContext`. - */ - - /* Register the WASM module into store with the export module name "mod". */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - /* The output module instance. */ - WasmEdge_ModuleInstanceContext *ModCxt = NULL; - Res = WasmEdge_ExecutorRegister(ExecCxt, &ModCxt, StoreCxt, ASTCxt, ModName); - WasmEdge_StringDelete(ModName); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - ``` - - Developers have the responsibility to destroy the outputted module instances. + When instantiating and registering a WASM module with module name, developers can use the `WasmEdge_ExecutorRegisterModule()` API before WasmEdge `0.9.1`. + + ```c + WasmEdge_ASTModuleContext *ASTCxt; + /* + * Assume that `ASTCxt` is a loaded WASM from file or buffer and has passed the validation. + * Assume that `ExecCxt` is a `WasmEdge_ExecutorContext`. + * Assume that `StoreCxt` is a `WasmEdge_StoreContext`. + */ + + /* Register the WASM module into store with the export module name "mod". */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + Res = WasmEdge_ExecutorRegisterModule(ExecCxt, StoreCxt, ASTCxt, ModName); + WasmEdge_StringDelete(ModName); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + ``` + + The same feature is implemented in WasmEdge `0.10.0`, but in different API `WasmEdge_ExecutorRegister()`: + + ```c + WasmEdge_ASTModuleContext *ASTCxt; + /* + * Assume that `ASTCxt` is a loaded WASM from file or buffer and has passed the validation. + * Assume that `ExecCxt` is a `WasmEdge_ExecutorContext`. + * Assume that `StoreCxt` is a `WasmEdge_StoreContext`. + */ + + /* Register the WASM module into store with the export module name "mod". */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + /* The output module instance. */ + WasmEdge_ModuleInstanceContext *ModCxt = NULL; + Res = WasmEdge_ExecutorRegister(ExecCxt, &ModCxt, StoreCxt, ASTCxt, ModName); + WasmEdge_StringDelete(ModName); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + ``` + + Developers have the responsibility to destroy the outputted module instances. 3. Host module registration - In WasmEdge `0.9.1`, developers can create a `WasmEdge_ImportObjectContext` and register into `Store`. - - ```c - /* Create the import object with the export module name. */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("module"); - WasmEdge_ImportObjectContext *ImpObj = WasmEdge_ImportObjectCreate(ModName); - WasmEdge_StringDelete(ModName); - /* - * ... - * Add the host functions, tables, memories, and globals into the import object. - */ - /* The import module context has already contained the export module name. */ - Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, ImpObj); - if (!WasmEdge_ResultOK(Res)) { - printf("Import object registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - ``` - - After WasmEdge `0.10.0`, developers should use the `WasmEdge_ModuleInstanceContext` instead: - - ```c - /* Create the module instance with the export module name. */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("module"); - WasmEdge_ModuleInstanceContext *ModCxt = WasmEdge_ModuleInstanceCreate(ModName); - WasmEdge_StringDelete(ModName); - /* - * ... - * Add the host functions, tables, memories, and globals into the module instance. - */ - /* The module instance context has already contained the export module name. */ - Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, ModCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Module instance registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - ``` - - Developers have the responsibility to destroy the created module instances. + In WasmEdge `0.9.1`, developers can create a `WasmEdge_ImportObjectContext` and register into `Store`. + + ```c + /* Create the import object with the export module name. */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("module"); + WasmEdge_ImportObjectContext *ImpObj = WasmEdge_ImportObjectCreate(ModName); + WasmEdge_StringDelete(ModName); + /* + * ... + * Add the host functions, tables, memories, and globals into the import object. + */ + /* The import module context has already contained the export module name. */ + Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, ImpObj); + if (!WasmEdge_ResultOK(Res)) { + printf("Import object registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + ``` + + After WasmEdge `0.10.0`, developers should use the `WasmEdge_ModuleInstanceContext` instead: + + ```c + /* Create the module instance with the export module name. */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("module"); + WasmEdge_ModuleInstanceContext *ModCxt = WasmEdge_ModuleInstanceCreate(ModName); + WasmEdge_StringDelete(ModName); + /* + * ... + * Add the host functions, tables, memories, and globals into the module instance. + */ + /* The module instance context has already contained the export module name. */ + Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, ModCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Module instance registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + ``` + + Developers have the responsibility to destroy the created module instances. 4. WASM function invocation - This example uses the [fibonacci.wasm](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm), and the corresponding WAT file is at [fibonacci.wat](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wat). In WasmEdge `0.9.1` version, developers can invoke a WASM function with the export function name: - - ```c - /* Create the store context. The store context holds the instances. */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* Result. */ - WasmEdge_Result Res; - - /* Create the loader context. The configure context can be NULL. */ - WasmEdge_LoaderContext *LoadCxt = WasmEdge_LoaderCreate(NULL); - /* Create the validator context. The configure context can be NULL. */ - WasmEdge_ValidatorContext *ValidCxt = WasmEdge_ValidatorCreate(NULL); - /* Create the executor context. The configure context and the statistics context can be NULL. */ - WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(NULL, NULL); - - /* Load the WASM file or the compiled-WASM file and convert into the AST module context. */ - WasmEdge_ASTModuleContext *ASTCxt = NULL; - Res = WasmEdge_LoaderParseFromFile(LoadCxt, &ASTCxt, "fibonacci.wasm"); - if (!WasmEdge_ResultOK(Res)) { - printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - /* Validate the WASM module. */ - Res = WasmEdge_ValidatorValidate(ValidCxt, ASTCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - /* Instantiate the WASM module into the store context. */ - Res = WasmEdge_ExecutorInstantiate(ExecCxt, StoreCxt, ASTCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - /* Invoke the function which is exported with the function name "fib". */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(18) }; - WasmEdge_Value Returns[1]; - Res = WasmEdge_ExecutorInvoke(ExecCxt, StoreCxt, FuncName, Params, 1, Returns, 1); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - WasmEdge_ASTModuleDelete(ASTCxt); - WasmEdge_LoaderDelete(LoadCxt); - WasmEdge_ValidatorDelete(ValidCxt); - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StoreDelete(StoreCxt); - ``` - - After the WasmEdge `0.10.0`, developers should retrieve the `Function` instance by function name first. - - ```c - /* - * ... - * Ignore the unchanged steps before validation. Please refer to the sample code above. - */ - WasmEdge_ModuleInstanceContext *ModCxt = NULL; - /* Instantiate the WASM module. */ - Res = WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt1, StoreCxt, ASTCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - /* Retrieve the function instance by name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - WasmEdge_FunctionInstanceContext *FuncCxt = WasmEdge_ModuleInstanceFindFunction(ModCxt, FuncName); - WasmEdge_StringDelete(FuncName); - /* Invoke the function. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(18) }; - WasmEdge_Value Returns[1]; - Res = WasmEdge_ExecutorInvoke(ExecCxt, FuncCxt, Params, 1, Returns, 1); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - WasmEdge_ModuleInstanceDelete(ModCxt); - WasmEdge_ASTModuleDelete(ASTCxt); - WasmEdge_LoaderDelete(LoadCxt); - WasmEdge_ValidatorDelete(ValidCxt); - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StoreDelete(StoreCxt); - ``` + This example uses the [fibonacci.wasm](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm), and the corresponding WAT file is at [fibonacci.wat](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wat). In WasmEdge `0.9.1` version, developers can invoke a WASM function with the export function name: + + ```c + /* Create the store context. The store context holds the instances. */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* Result. */ + WasmEdge_Result Res; + + /* Create the loader context. The configure context can be NULL. */ + WasmEdge_LoaderContext *LoadCxt = WasmEdge_LoaderCreate(NULL); + /* Create the validator context. The configure context can be NULL. */ + WasmEdge_ValidatorContext *ValidCxt = WasmEdge_ValidatorCreate(NULL); + /* Create the executor context. The configure context and the statistics context can be NULL. */ + WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(NULL, NULL); + + /* Load the WASM file or the compiled-WASM file and convert into the AST module context. */ + WasmEdge_ASTModuleContext *ASTCxt = NULL; + Res = WasmEdge_LoaderParseFromFile(LoadCxt, &ASTCxt, "fibonacci.wasm"); + if (!WasmEdge_ResultOK(Res)) { + printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + /* Validate the WASM module. */ + Res = WasmEdge_ValidatorValidate(ValidCxt, ASTCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + /* Instantiate the WASM module into the store context. */ + Res = WasmEdge_ExecutorInstantiate(ExecCxt, StoreCxt, ASTCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + /* Invoke the function which is exported with the function name "fib". */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(18) }; + WasmEdge_Value Returns[1]; + Res = WasmEdge_ExecutorInvoke(ExecCxt, StoreCxt, FuncName, Params, 1, Returns, 1); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + WasmEdge_ASTModuleDelete(ASTCxt); + WasmEdge_LoaderDelete(LoadCxt); + WasmEdge_ValidatorDelete(ValidCxt); + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StoreDelete(StoreCxt); + ``` + + After the WasmEdge `0.10.0`, developers should retrieve the `Function` instance by function name first. + + ```c + /* + * ... + * Ignore the unchanged steps before validation. Please refer to the sample code above. + */ + WasmEdge_ModuleInstanceContext *ModCxt = NULL; + /* Instantiate the WASM module. */ + Res = WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt1, StoreCxt, ASTCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + /* Retrieve the function instance by name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + WasmEdge_FunctionInstanceContext *FuncCxt = WasmEdge_ModuleInstanceFindFunction(ModCxt, FuncName); + WasmEdge_StringDelete(FuncName); + /* Invoke the function. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(18) }; + WasmEdge_Value Returns[1]; + Res = WasmEdge_ExecutorInvoke(ExecCxt, FuncCxt, Params, 1, Returns, 1); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + WasmEdge_ModuleInstanceDelete(ModCxt); + WasmEdge_ASTModuleDelete(ASTCxt); + WasmEdge_LoaderDelete(LoadCxt); + WasmEdge_ValidatorDelete(ValidCxt); + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StoreDelete(StoreCxt); + ``` ## Instances retrievement diff --git a/docs/embed/c/reference/upgrade_to_0.11.0.md b/docs/embed/c/reference/upgrade_to_0.11.0.md index f5685192..b42d0404 100644 --- a/docs/embed/c/reference/upgrade_to_0.11.0.md +++ b/docs/embed/c/reference/upgrade_to_0.11.0.md @@ -10,15 +10,15 @@ Due to the WasmEdge C API breaking changes, this document shows the guideline fo 1. Supported the user-defined error code in host functions. - Developers can use the new API `WasmEdge_ResultGen()` to generate a `WasmEdge_Result` struct with `WasmEdge_ErrCategory_UserLevelError` and the error code. With this support, developers can specify the host function error code when failed by themselves. For the examples to specify the user-defined error code, please refer to [the example below](#user-defined-error-code-in-host-functions). + Developers can use the new API `WasmEdge_ResultGen()` to generate a `WasmEdge_Result` struct with `WasmEdge_ErrCategory_UserLevelError` and the error code. With this support, developers can specify the host function error code when failed by themselves. For the examples to specify the user-defined error code, please refer to [the example below](#user-defined-error-code-in-host-functions). 2. Calling frame for the host function extension - In the previous versions, host functions only pass the memory instance into the function body. For supporting the WASM multiple memories proposal and providing the recursive invocation in host functions, the new context `WasmEdge_CallingFrameContext` replaced the memory instance in the second argument of the host function definition. For the examples of the new host function definition, please refer to [the example below](#calling-frame-in-host-functions). + In the previous versions, host functions only pass the memory instance into the function body. For supporting the WASM multiple memories proposal and providing the recursive invocation in host functions, the new context `WasmEdge_CallingFrameContext` replaced the memory instance in the second argument of the host function definition. For the examples of the new host function definition, please refer to [the example below](#calling-frame-in-host-functions). 3. Apply the SONAME and SOVERSION. - When linking the WasmEdge shared library, please notice that `libwasmedge_c.so` is renamed to `libwasmedge.so` after the 0.11.0 release. Please use `-lwasmedge` instead of `-lwasmedge_c` for the linker option. + When linking the WasmEdge shared library, please notice that `libwasmedge_c.so` is renamed to `libwasmedge.so` after the 0.11.0 release. Please use `-lwasmedge` instead of `-lwasmedge_c` for the linker option. ## User Defined Error Code In Host Functions diff --git a/docs/embed/c/reference/upgrade_to_0.12.0.md b/docs/embed/c/reference/upgrade_to_0.12.0.md index cb71e39a..ecd837f8 100644 --- a/docs/embed/c/reference/upgrade_to_0.12.0.md +++ b/docs/embed/c/reference/upgrade_to_0.12.0.md @@ -10,36 +10,36 @@ Due to the WasmEdge C API breaking changes, this document shows the guideline fo 1. Removed the members of the `WasmEdge_HostRegistration` enumeration. - The following members of the `WasmEdge_HostRegistration` enumeration are removed: + The following members of the `WasmEdge_HostRegistration` enumeration are removed: - - `WasmEdge_HostRegistration_WasmEdge_Process` - - `WasmEdge_HostRegistration_WasiNN` - - `WasmEdge_HostRegistration_WasiCrypto_Common` - - `WasmEdge_HostRegistration_WasiCrypto_AsymmetricCommon` - - `WasmEdge_HostRegistration_WasiCrypto_Kx` - - `WasmEdge_HostRegistration_WasiCrypto_Signatures` - - `WasmEdge_HostRegistration_WasiCrypto_Symmetric` + - `WasmEdge_HostRegistration_WasmEdge_Process` + - `WasmEdge_HostRegistration_WasiNN` + - `WasmEdge_HostRegistration_WasiCrypto_Common` + - `WasmEdge_HostRegistration_WasiCrypto_AsymmetricCommon` + - `WasmEdge_HostRegistration_WasiCrypto_Kx` + - `WasmEdge_HostRegistration_WasiCrypto_Signatures` + - `WasmEdge_HostRegistration_WasiCrypto_Symmetric` - The `WasmEdge_VMContext` will create and register the host modules automatically now. If the plug-ins are not loaded, the `WasmEdge_VMContext` will create and register the mock modules to prevent from import failed. + The `WasmEdge_VMContext` will create and register the host modules automatically now. If the plug-ins are not loaded, the `WasmEdge_VMContext` will create and register the mock modules to prevent from import failed. 2. Removed the module instance creation functions of the plug-ins. - The following APIs are removed: + The following APIs are removed: - - `WasmEdge_ModuleInstanceCreateWasiNN()` - - `WasmEdge_ModuleInstanceCreateWasiCryptoCommon()` - - `WasmEdge_ModuleInstanceCreateWasiCryptoAsymmetricCommon()` - - `WasmEdge_ModuleInstanceCreateWasiCryptoKx()` - - `WasmEdge_ModuleInstanceCreateWasiCryptoSignatures()` - - `WasmEdge_ModuleInstanceCreateWasiCryptoSymmetric()` - - `WasmEdge_ModuleInstanceCreateWasmEdgeProcess()` + - `WasmEdge_ModuleInstanceCreateWasiNN()` + - `WasmEdge_ModuleInstanceCreateWasiCryptoCommon()` + - `WasmEdge_ModuleInstanceCreateWasiCryptoAsymmetricCommon()` + - `WasmEdge_ModuleInstanceCreateWasiCryptoKx()` + - `WasmEdge_ModuleInstanceCreateWasiCryptoSignatures()` + - `WasmEdge_ModuleInstanceCreateWasiCryptoSymmetric()` + - `WasmEdge_ModuleInstanceCreateWasmEdgeProcess()` - For the new examples for creating the module instances from plug-ins, please refer to [the example below](#creating-the-module-instance-from-a-plug-in). + For the new examples for creating the module instances from plug-ins, please refer to [the example below](#creating-the-module-instance-from-a-plug-in). 3. New module instance retrieving API of `VM` context. - - Added `WasmEdge_VMGetRegisteredModule()` for retrieving registered named module in VM context quickly. - - Added `WasmEdge_VMListRegisteredModuleLength()` and `WasmEdge_VMListRegisteredModule()` for listing registered named modules in VM context quickly. + - Added `WasmEdge_VMGetRegisteredModule()` for retrieving registered named module in VM context quickly. + - Added `WasmEdge_VMListRegisteredModuleLength()` and `WasmEdge_VMListRegisteredModule()` for listing registered named modules in VM context quickly. ## The `WasmEdge_HostRegistration` for plug-ins is not necessary in VM contexts diff --git a/docs/embed/data/_category_.json b/docs/embed/data/_category_.json index 8cbce21a..07342a1f 100644 --- a/docs/embed/data/_category_.json +++ b/docs/embed/data/_category_.json @@ -1,8 +1,8 @@ { - "label": "Passing Complex Data", - "position": 2, - "link": { - "type": "generated-index", - "description": "Passing Complex Data from the host app to the wasm app" - } + "label": "Passing Complex Data", + "position": 2, + "link": { + "type": "generated-index", + "description": "Passing Complex Data from the host app to the wasm app" + } } diff --git a/docs/embed/go/_category_.json b/docs/embed/go/_category_.json index da899af8..dab0c8dc 100644 --- a/docs/embed/go/_category_.json +++ b/docs/embed/go/_category_.json @@ -1,8 +1,8 @@ { - "label": "Go SDK for Embedding Wasm Functions", - "position": 6, - "link": { - "type": "generated-index", - "description": "In this chapter, we will learn how to Embed WasmEdge in your Go host applications." - } + "label": "Go SDK for Embedding Wasm Functions", + "position": 6, + "link": { + "type": "generated-index", + "description": "In this chapter, we will learn how to Embed WasmEdge in your Go host applications." + } } diff --git a/docs/embed/go/reference/0.10.1.md b/docs/embed/go/reference/0.10.1.md index 3b892774..256751c9 100644 --- a/docs/embed/go/reference/0.10.1.md +++ b/docs/embed/go/reference/0.10.1.md @@ -157,47 +157,47 @@ In WasmEdge-go, the APIs will automatically do the conversion for the built-in t 1. Number types: `i32`, `i64`, `f32`, and `f64` - - Convert the `uint32` and `int32` to `i32` automatically when passing a value into WASM. - - Convert the `uint64` and `int64` to `i64` automatically when passing a value into WASM. - - Convert the `uint` and `int` to `i32` automatically when passing a value into WASM in 32-bit system. - - Convert the `uint` and `int` to `i64` automatically when passing a value into WASM in 64-bit system. - - Convert the `float32` to `f32` automatically when passing a value into WASM. - - Convert the `float64` to `f64` automatically when passing a value into WASM. - - Convert the `i32` from WASM to `int32` when getting a result. - - Convert the `i64` from WASM to `int64` when getting a result. - - Convert the `f32` from WASM to `float32` when getting a result. - - Convert the `f64` from WASM to `float64` when getting a result. + - Convert the `uint32` and `int32` to `i32` automatically when passing a value into WASM. + - Convert the `uint64` and `int64` to `i64` automatically when passing a value into WASM. + - Convert the `uint` and `int` to `i32` automatically when passing a value into WASM in 32-bit system. + - Convert the `uint` and `int` to `i64` automatically when passing a value into WASM in 64-bit system. + - Convert the `float32` to `f32` automatically when passing a value into WASM. + - Convert the `float64` to `f64` automatically when passing a value into WASM. + - Convert the `i32` from WASM to `int32` when getting a result. + - Convert the `i64` from WASM to `int64` when getting a result. + - Convert the `f32` from WASM to `float32` when getting a result. + - Convert the `f64` from WASM to `float64` when getting a result. 2. Number type: `v128` for the `SIMD` proposal - Developers should use the `wasmedge.NewV128()` to generate a `v128` value, and use the `wasmedge.GetV128()` to get the value. + Developers should use the `wasmedge.NewV128()` to generate a `v128` value, and use the `wasmedge.GetV128()` to get the value. - ```go - val := wasmedge.NewV128(uint64(1234), uint64(5678)) - high, low := val.GetVal() - // `high` will be uint64(1234), `low` will be uint64(5678) - ``` + ```go + val := wasmedge.NewV128(uint64(1234), uint64(5678)) + high, low := val.GetVal() + // `high` will be uint64(1234), `low` will be uint64(5678) + ``` 3. Reference types: `FuncRef` and `ExternRef` for the `Reference-Types` proposal - ```go - var funccxt *wasmedge.Function = ... // Create or get function object. - funcref := wasmedge.NewFuncRef(funccxt) - // Create a `FuncRef` with the function object. - - num := 1234 - // `num` is a `int`. - externref := wasmedge.NewExternRef(&num) - // Create an `ExternRef` which reference to the `num`. - num = 5678 - // Modify the `num` to 5678. - numref := externref.GetRef().(*int) - // Get the original reference from the `ExternRef`. - fmt.Println(*numref) - // Will print `5678`. - numref.Release() - // Should call the `Release` method. - ``` + ```go + var funccxt *wasmedge.Function = ... // Create or get function object. + funcref := wasmedge.NewFuncRef(funccxt) + // Create a `FuncRef` with the function object. + + num := 1234 + // `num` is a `int`. + externref := wasmedge.NewExternRef(&num) + // Create an `ExternRef` which reference to the `num`. + num = 5678 + // Modify the `num` to 5678. + numref := externref.GetRef().(*int) + // Get the original reference from the `ExternRef`. + fmt.Println(*numref) + // Will print `5678`. + numref.Release() + // Should call the `Release` method. + ``` ### Results @@ -231,166 +231,166 @@ The WASM data structures are used for creating instances or can be queried from 1. Limit - The `Limit` struct presents the minimum and maximum value data structure. - - ```go - lim1 := wasmedge.NewLimit(12) - fmt.Println(lim1.HasMax()) - // Will print `false`. - fmt.Println(lim1.GetMin()) - // Will print `12`. - - lim2 := wasmedge.NewLimitWithMax(15, 50) - fmt.Println(lim2.HasMax()) - // Will print `true`. - fmt.Println(lim2.GetMin()) - // Will print `15`. - fmt.Println(lim2.GetMax()) - // Will print `50`. - ``` - - For the thread proposal, the `Limit` struct also supports the shared memory description. (`v0.10.1` or upper only) - - ```go - lim3 := wasmedge.NewLimitShared(20) - fmt.Println(lim3.HasMax()) - // Will print `false`. - fmt.Println(lim3.IsShared()) - // Will print `true`. - fmt.Println(lim3.GetMin()) - // Will print `20`. - - lim4 := wasmedge.NewLimitSharedWithMax(30, 40) - fmt.Println(lim4.HasMax()) - // Will print `true`. - fmt.Println(lim4.IsShared()) - // Will print `true`. - fmt.Println(lim4.GetMin()) - // Will print `30`. - fmt.Println(lim4.GetMax()) - // Will print `40`. - ``` + The `Limit` struct presents the minimum and maximum value data structure. + + ```go + lim1 := wasmedge.NewLimit(12) + fmt.Println(lim1.HasMax()) + // Will print `false`. + fmt.Println(lim1.GetMin()) + // Will print `12`. + + lim2 := wasmedge.NewLimitWithMax(15, 50) + fmt.Println(lim2.HasMax()) + // Will print `true`. + fmt.Println(lim2.GetMin()) + // Will print `15`. + fmt.Println(lim2.GetMax()) + // Will print `50`. + ``` + + For the thread proposal, the `Limit` struct also supports the shared memory description. (`v0.10.1` or upper only) + + ```go + lim3 := wasmedge.NewLimitShared(20) + fmt.Println(lim3.HasMax()) + // Will print `false`. + fmt.Println(lim3.IsShared()) + // Will print `true`. + fmt.Println(lim3.GetMin()) + // Will print `20`. + + lim4 := wasmedge.NewLimitSharedWithMax(30, 40) + fmt.Println(lim4.HasMax()) + // Will print `true`. + fmt.Println(lim4.IsShared()) + // Will print `true`. + fmt.Println(lim4.GetMin()) + // Will print `30`. + fmt.Println(lim4.GetMax()) + // Will print `40`. + ``` 2. Function type context - The `FunctionType` is an object holds the function type context and used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `FunctionType` APIs to get the parameter or return value types information. - - ```go - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{ - wasmedge.ValType_ExternRef, - wasmedge.ValType_I32, - wasmedge.ValType_I64, - }, []wasmedge.ValType{ - wasmedge.ValType_F32, - wasmedge.ValType_F64, - }) - - plen := functype.GetParametersLength() - // `plen` will be 3. - rlen := functype.GetReturnsLength() - // `rlen` will be 2. - plist := functype.GetParameters() - // `plist` will be `[]wasmedge.ValType{wasmedge.ValType_ExternRef, wasmedge.ValType_I32, wasmedge.ValType_I64}`. - rlist := functype.GetReturns() - // `rlist` will be `[]wasmedge.ValType{wasmedge.ValType_F32, wasmedge.ValType_F64}`. - - functype.Release() - ``` + The `FunctionType` is an object holds the function type context and used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `FunctionType` APIs to get the parameter or return value types information. + + ```go + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{ + wasmedge.ValType_ExternRef, + wasmedge.ValType_I32, + wasmedge.ValType_I64, + }, []wasmedge.ValType{ + wasmedge.ValType_F32, + wasmedge.ValType_F64, + }) + + plen := functype.GetParametersLength() + // `plen` will be 3. + rlen := functype.GetReturnsLength() + // `rlen` will be 2. + plist := functype.GetParameters() + // `plist` will be `[]wasmedge.ValType{wasmedge.ValType_ExternRef, wasmedge.ValType_I32, wasmedge.ValType_I64}`. + rlist := functype.GetReturns() + // `rlist` will be `[]wasmedge.ValType{wasmedge.ValType_F32, wasmedge.ValType_F64}`. + + functype.Release() + ``` 3. Table type context - The `TableType` is an object holds the table type context and used for `Table` instance creation or getting information from `Table` instances. + The `TableType` is an object holds the table type context and used for `Table` instance creation or getting information from `Table` instances. - ```go - lim := wasmedge.NewLimit(12) - tabtype := wasmedge.NewTableType(wasmedge.RefType_ExternRef, lim) + ```go + lim := wasmedge.NewLimit(12) + tabtype := wasmedge.NewTableType(wasmedge.RefType_ExternRef, lim) - rtype := tabtype.GetRefType() - // `rtype` will be `wasmedge.RefType_ExternRef`. - getlim := tabtype.GetLimit() - // `getlim` will be the same value as `lim`. + rtype := tabtype.GetRefType() + // `rtype` will be `wasmedge.RefType_ExternRef`. + getlim := tabtype.GetLimit() + // `getlim` will be the same value as `lim`. - tabtype.Release() - ``` + tabtype.Release() + ``` 4. Memory type context - The `MemoryType` is an object holds the memory type context and used for `Memory` instance creation or getting information from `Memory` instances. + The `MemoryType` is an object holds the memory type context and used for `Memory` instance creation or getting information from `Memory` instances. - ```go - lim := wasmedge.NewLimit(1) - memtype := wasmedge.NewMemoryType(lim) + ```go + lim := wasmedge.NewLimit(1) + memtype := wasmedge.NewMemoryType(lim) - getlim := memtype.GetLimit() - // `getlim` will be the same value as `lim`. + getlim := memtype.GetLimit() + // `getlim` will be the same value as `lim`. - memtype.Release() - ``` + memtype.Release() + ``` 5. Global type context - The `GlobalType` is an object holds the global type context and used for `Global` instance creation or getting information from `Global` instances. + The `GlobalType` is an object holds the global type context and used for `Global` instance creation or getting information from `Global` instances. - ```go - globtype := wasmedge.NewGlobalType(wasmedge.ValType_F64, wasmedge.ValMut_Var) + ```go + globtype := wasmedge.NewGlobalType(wasmedge.ValType_F64, wasmedge.ValMut_Var) - vtype := globtype.GetValType() - // `vtype` will be `wasmedge.ValType_F64`. - vmut := globtype.GetMutability() - // `vmut` will be `wasmedge.ValMut_Var`. + vtype := globtype.GetValType() + // `vtype` will be `wasmedge.ValType_F64`. + vmut := globtype.GetMutability() + // `vmut` will be `wasmedge.ValMut_Var`. - globtype.Release() - ``` + globtype.Release() + ``` 6. Import type context - The `ImportType` is an object holds the import type context and used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `ImportType` object. The details about querying `ImportType` objects will be introduced in the [AST Module](#ast-module). + The `ImportType` is an object holds the import type context and used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `ImportType` object. The details about querying `ImportType` objects will be introduced in the [AST Module](#ast-module). - ```go - var ast *wasmedge.AST = ... - // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. - imptypelist := ast.ListImports() - // Assume that `imptypelist` is an array listed from the `ast` for the imports. + ```go + var ast *wasmedge.AST = ... + // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. + imptypelist := ast.ListImports() + // Assume that `imptypelist` is an array listed from the `ast` for the imports. - for i, imptype := range imptypelist { - exttype := imptype.GetExternalType() - // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, - // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. + for i, imptype := range imptypelist { + exttype := imptype.GetExternalType() + // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, + // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. - modname := imptype.GetModuleName() - extname := imptype.GetExternalName() - // Get the module name and external name of the imports. + modname := imptype.GetModuleName() + extname := imptype.GetExternalName() + // Get the module name and external name of the imports. - extval := imptype.GetExternalValue() - // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, - // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. - } - ``` + extval := imptype.GetExternalValue() + // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, + // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. + } + ``` 7. Export type context - The `ExportType` is an object holds the export type context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `ExportType` objects will be introduced in the [AST Module](#ast-module). + The `ExportType` is an object holds the export type context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `ExportType` objects will be introduced in the [AST Module](#ast-module). - ```go - var ast *wasmedge.AST = ... - // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. - exptypelist := ast.ListExports() - // Assume that `exptypelist` is an array listed from the `ast` for the exports. + ```go + var ast *wasmedge.AST = ... + // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. + exptypelist := ast.ListExports() + // Assume that `exptypelist` is an array listed from the `ast` for the exports. - for i, exptype := range exptypelist { - exttype := exptype.GetExternalType() - // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, - // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. + for i, exptype := range exptypelist { + exttype := exptype.GetExternalType() + // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, + // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. - extname := exptype.GetExternalName() - // Get the external name of the exports. + extname := exptype.GetExternalName() + // Get the external name of the exports. - extval := exptype.GetExternalValue() - // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, - // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. - } - ``` + extval := exptype.GetExternalValue() + // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, + // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. + } + ``` ### Async @@ -398,35 +398,35 @@ After calling the [asynchronous execution APIs](#asynchronous-execution), develo 1. Get the execution result of the asynchronous execution - Developers can use the `(*Async).GetResult()` API to block and wait for getting the return values. This function will block and wait for the execution. If the execution has finished, this function will return immediately. If the execution failed, this function will return an error. + Developers can use the `(*Async).GetResult()` API to block and wait for getting the return values. This function will block and wait for the execution. If the execution has finished, this function will return immediately. If the execution failed, this function will return an error. - ```go - async := ... // Ignored. Asynchronous execute a function. + ```go + async := ... // Ignored. Asynchronous execute a function. - // Blocking and waiting for the execution and get the return values. - res, err := async.GetResult() - async.Release() - ``` + // Blocking and waiting for the execution and get the return values. + res, err := async.GetResult() + async.Release() + ``` 2. Wait for the asynchronous execution with timeout settings - Besides waiting until the end of execution, developers can set the timeout to wait for. - - ```go - async := ... // Ignored. Asynchronous execute a function. - - // Blocking and waiting for the execution with the timeout(ms). - isend := async.WaitFor(1000) - if isend { - res, err := async.GetResult() - // ... - } else { - async.Cancel() - _, err := async.GetResult() - // The error message in `err` will be "execution interrupted". - } - async.Release() - ``` + Besides waiting until the end of execution, developers can set the timeout to wait for. + + ```go + async := ... // Ignored. Asynchronous execute a function. + + // Blocking and waiting for the execution with the timeout(ms). + isend := async.WaitFor(1000) + if isend { + res, err := async.GetResult() + // ... + } else { + async.Cancel() + _, err := async.GetResult() + // The error message in `err` will be "execution interrupted". + } + async.Release() + ``` ### Configurations @@ -434,156 +434,156 @@ The configuration object, `wasmedge.Configure`, manages the configurations for ` 1. Proposals - WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` object. - - ```go - const ( - IMPORT_EXPORT_MUT_GLOBALS = Proposal(C.WasmEdge_Proposal_ImportExportMutGlobals) - NON_TRAP_FLOAT_TO_INT_CONVERSIONS = Proposal(C.WasmEdge_Proposal_NonTrapFloatToIntConversions) - SIGN_EXTENSION_OPERATORS = Proposal(C.WasmEdge_Proposal_SignExtensionOperators) - MULTI_VALUE = Proposal(C.WasmEdge_Proposal_MultiValue) - BULK_MEMORY_OPERATIONS = Proposal(C.WasmEdge_Proposal_BulkMemoryOperations) - REFERENCE_TYPES = Proposal(C.WasmEdge_Proposal_ReferenceTypes) - SIMD = Proposal(C.WasmEdge_Proposal_SIMD) - TAIL_CALL = Proposal(C.WasmEdge_Proposal_TailCall) - ANNOTATIONS = Proposal(C.WasmEdge_Proposal_Annotations) - MEMORY64 = Proposal(C.WasmEdge_Proposal_Memory64) - THREADS = Proposal(C.WasmEdge_Proposal_Threads) - EXCEPTION_HANDLING = Proposal(C.WasmEdge_Proposal_ExceptionHandling) - FUNCTION_REFERENCES = Proposal(C.WasmEdge_Proposal_FunctionReferences) - ) - ``` - - Developers can add or remove the proposals into the `Configure` object. - - ```go - // By default, the following proposals have turned on initially: - // * IMPORT_EXPORT_MUT_GLOBALS - // * NON_TRAP_FLOAT_TO_INT_CONVERSIONS - // * SIGN_EXTENSION_OPERATORS - // * MULTI_VALUE - // * BULK_MEMORY_OPERATIONS - // * REFERENCE_TYPES - // * SIMD - // For the current WasmEdge version, the following proposals are supported: - // * TAIL_CALL - // * MULTI_MEMORIES - // * THREADS - conf := wasmedge.NewConfigure() - // Developers can also pass the proposals as parameters: - // conf := wasmedge.NewConfigure(wasmedge.SIMD, wasmedge.BULK_MEMORY_OPERATIONS) - conf.AddConfig(wasmedge.SIMD) - conf.RemoveConfig(wasmedge.REFERENCE_TYPES) - is_bulkmem := conf.HasConfig(wasmedge.BULK_MEMORY_OPERATIONS) - // The `is_bulkmem` will be `true`. - conf.Release() - ``` + WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` object. + + ```go + const ( + IMPORT_EXPORT_MUT_GLOBALS = Proposal(C.WasmEdge_Proposal_ImportExportMutGlobals) + NON_TRAP_FLOAT_TO_INT_CONVERSIONS = Proposal(C.WasmEdge_Proposal_NonTrapFloatToIntConversions) + SIGN_EXTENSION_OPERATORS = Proposal(C.WasmEdge_Proposal_SignExtensionOperators) + MULTI_VALUE = Proposal(C.WasmEdge_Proposal_MultiValue) + BULK_MEMORY_OPERATIONS = Proposal(C.WasmEdge_Proposal_BulkMemoryOperations) + REFERENCE_TYPES = Proposal(C.WasmEdge_Proposal_ReferenceTypes) + SIMD = Proposal(C.WasmEdge_Proposal_SIMD) + TAIL_CALL = Proposal(C.WasmEdge_Proposal_TailCall) + ANNOTATIONS = Proposal(C.WasmEdge_Proposal_Annotations) + MEMORY64 = Proposal(C.WasmEdge_Proposal_Memory64) + THREADS = Proposal(C.WasmEdge_Proposal_Threads) + EXCEPTION_HANDLING = Proposal(C.WasmEdge_Proposal_ExceptionHandling) + FUNCTION_REFERENCES = Proposal(C.WasmEdge_Proposal_FunctionReferences) + ) + ``` + + Developers can add or remove the proposals into the `Configure` object. + + ```go + // By default, the following proposals have turned on initially: + // * IMPORT_EXPORT_MUT_GLOBALS + // * NON_TRAP_FLOAT_TO_INT_CONVERSIONS + // * SIGN_EXTENSION_OPERATORS + // * MULTI_VALUE + // * BULK_MEMORY_OPERATIONS + // * REFERENCE_TYPES + // * SIMD + // For the current WasmEdge version, the following proposals are supported: + // * TAIL_CALL + // * MULTI_MEMORIES + // * THREADS + conf := wasmedge.NewConfigure() + // Developers can also pass the proposals as parameters: + // conf := wasmedge.NewConfigure(wasmedge.SIMD, wasmedge.BULK_MEMORY_OPERATIONS) + conf.AddConfig(wasmedge.SIMD) + conf.RemoveConfig(wasmedge.REFERENCE_TYPES) + is_bulkmem := conf.HasConfig(wasmedge.BULK_MEMORY_OPERATIONS) + // The `is_bulkmem` will be `true`. + conf.Release() + ``` 2. Host registrations - This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` objects. - - ```go - const ( - WASI = HostRegistration(C.WasmEdge_HostRegistration_Wasi) - WasmEdge_PROCESS = HostRegistration(C.WasmEdge_HostRegistration_WasmEdge_Process) - // The follows are `v0.10.1` or upper only. - WasiNN = HostRegistration(C.WasmEdge_HostRegistration_WasiNN) - WasiCrypto_Common = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Common) - WasiCrypto_AsymmetricCommon = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_AsymmetricCommon) - WasiCrypto_Kx = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Kx) - WasiCrypto_Signatures = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Signatures) - WasiCrypto_Symmetric = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Symmetric) - ) - ``` - - The details will be introduced in the [preregistrations of VM context](#preregistrations). - - ```go - conf := wasmedge.NewConfigure() - // Developers can also pass the proposals as parameters: - // conf := wasmedge.NewConfigure(wasmedge.WASI) - conf.AddConfig(wasmedge.WASI) - conf.Release() - ``` + This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` objects. + + ```go + const ( + WASI = HostRegistration(C.WasmEdge_HostRegistration_Wasi) + WasmEdge_PROCESS = HostRegistration(C.WasmEdge_HostRegistration_WasmEdge_Process) + // The follows are `v0.10.1` or upper only. + WasiNN = HostRegistration(C.WasmEdge_HostRegistration_WasiNN) + WasiCrypto_Common = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Common) + WasiCrypto_AsymmetricCommon = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_AsymmetricCommon) + WasiCrypto_Kx = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Kx) + WasiCrypto_Signatures = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Signatures) + WasiCrypto_Symmetric = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Symmetric) + ) + ``` + + The details will be introduced in the [preregistrations of VM context](#preregistrations). + + ```go + conf := wasmedge.NewConfigure() + // Developers can also pass the proposals as parameters: + // conf := wasmedge.NewConfigure(wasmedge.WASI) + conf.AddConfig(wasmedge.WASI) + conf.Release() + ``` 3. Maximum memory pages - Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` objects. + Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` objects. - ```go - conf := wasmedge.NewConfigure() + ```go + conf := wasmedge.NewConfigure() - pagesize := conf.GetMaxMemoryPage() - // By default, the maximum memory page size in each memory instances is 65536. - conf.SetMaxMemoryPage(1234) - pagesize := conf.GetMaxMemoryPage() - // `pagesize` will be 1234. + pagesize := conf.GetMaxMemoryPage() + // By default, the maximum memory page size in each memory instances is 65536. + conf.SetMaxMemoryPage(1234) + pagesize := conf.GetMaxMemoryPage() + // `pagesize` will be 1234. - conf.Release() - ``` + conf.Release() + ``` 4. AOT compiler options - The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. - - ```go - const ( - // Disable as many optimizations as possible. - CompilerOptLevel_O0 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O0) - // Optimize quickly without destroying debuggability. - CompilerOptLevel_O1 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O1) - // Optimize for fast execution as much as possible without triggering significant incremental compile time or code size growth. - CompilerOptLevel_O2 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O2) - // Optimize for fast execution as much as possible. - CompilerOptLevel_O3 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O3) - // Optimize for small code size as much as possible without triggering significant incremental compile time or execution time slowdowns. - CompilerOptLevel_Os = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Os) - // Optimize for small code size as much as possible. - CompilerOptLevel_Oz = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Oz) - ) - - const ( - // Native dynamic library format. - CompilerOutputFormat_Native = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Native) - // WebAssembly with AOT compiled codes in custom section. - CompilerOutputFormat_Wasm = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Wasm) - ) - ``` - - These configurations are only effective in `Compiler` contexts. - - ```go - conf := wasmedge.NewConfigure() - - // By default, the optimization level is O3. - conf.SetCompilerOptimizationLevel(wasmedge.CompilerOptLevel_O2) - // By default, the output format is universal WASM. - conf.SetCompilerOutputFormat(wasmedge.CompilerOutputFormat_Native) - // By default, the dump IR is `false`. - conf.SetCompilerDumpIR(true) - // By default, the generic binary is `false`. - conf.SetCompilerGenericBinary(true) - - conf.Release() - ``` + The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. + + ```go + const ( + // Disable as many optimizations as possible. + CompilerOptLevel_O0 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O0) + // Optimize quickly without destroying debuggability. + CompilerOptLevel_O1 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O1) + // Optimize for fast execution as much as possible without triggering significant incremental compile time or code size growth. + CompilerOptLevel_O2 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O2) + // Optimize for fast execution as much as possible. + CompilerOptLevel_O3 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O3) + // Optimize for small code size as much as possible without triggering significant incremental compile time or execution time slowdowns. + CompilerOptLevel_Os = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Os) + // Optimize for small code size as much as possible. + CompilerOptLevel_Oz = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Oz) + ) + + const ( + // Native dynamic library format. + CompilerOutputFormat_Native = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Native) + // WebAssembly with AOT compiled codes in custom section. + CompilerOutputFormat_Wasm = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Wasm) + ) + ``` + + These configurations are only effective in `Compiler` contexts. + + ```go + conf := wasmedge.NewConfigure() + + // By default, the optimization level is O3. + conf.SetCompilerOptimizationLevel(wasmedge.CompilerOptLevel_O2) + // By default, the output format is universal WASM. + conf.SetCompilerOutputFormat(wasmedge.CompilerOutputFormat_Native) + // By default, the dump IR is `false`. + conf.SetCompilerDumpIR(true) + // By default, the generic binary is `false`. + conf.SetCompilerGenericBinary(true) + + conf.Release() + ``` 5. Statistics options - The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` objects. + The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` objects. - ```go - conf := wasmedge.NewConfigure() + ```go + conf := wasmedge.NewConfigure() - // By default, the instruction counting is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsInstructionCounting(true) - // By default, the cost measurement is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsTimeMeasuring(true) - // By default, the time measurement is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsCostMeasuring(true) + // By default, the instruction counting is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsInstructionCounting(true) + // By default, the cost measurement is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsTimeMeasuring(true) + // By default, the time measurement is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsCostMeasuring(true) - conf.Release() - ``` + conf.Release() + ``` ### Statistics @@ -593,46 +593,46 @@ Before using statistics, the statistics configuration must be set. Otherwise, th 1. Instruction counter - The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` object from the `VM` object, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. + The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` object from the `VM` object, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. - ```go - stat := wasmedge.NewStatistics() - // ... After running the WASM functions with the `Statistics` object + ```go + stat := wasmedge.NewStatistics() + // ... After running the WASM functions with the `Statistics` object - count := stat.GetInstrCount() - ips := stat.GetInstrPerSecond() - stat.Release() - ``` + count := stat.GetInstrCount() + ips := stat.GetInstrPerSecond() + stat.Release() + ``` 2. Cost table - The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` object. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. - - ```c - stat := wasmedge.NewStatistics() - - costtable := []uint64{ - 0, 0, - 10, /* 0x02: Block */ - 11, /* 0x03: Loop */ - 12, /* 0x04: If */ - 12, /* 0x05: Else */ - 0, 0, 0, 0, 0, 0, - 20, /* 0x0C: Br */ - 21, /* 0x0D: Br_if */ - 22, /* 0x0E: Br_table */ - 0, - } - // Developers can set the costs of each instruction. The value not covered will be 0. - - WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); - stat.SetCostTable() - stat.SetCostLimit(5000000) - - // ... After running the WASM functions with the `Statistics` object - cost := stat.GetTotalCost() - stat.Release() - ``` + The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` object. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. + + ```c + stat := wasmedge.NewStatistics() + + costtable := []uint64{ + 0, 0, + 10, /* 0x02: Block */ + 11, /* 0x03: Loop */ + 12, /* 0x04: If */ + 12, /* 0x05: Else */ + 0, 0, 0, 0, 0, 0, + 20, /* 0x0C: Br */ + 21, /* 0x0D: Br_if */ + 22, /* 0x0E: Br_table */ + 0, + } + // Developers can set the costs of each instruction. The value not covered will be 0. + + WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); + stat.SetCostTable() + stat.SetCostLimit(5000000) + + // ... After running the WASM functions with the `Statistics` object + cost := stat.GetTotalCost() + stat.Release() + ``` ### Tools Driver (`v0.10.1` or upper only) @@ -692,157 +692,157 @@ The following shows the example of running the WASM for getting the Fibonacci. T 1. Run WASM functions rapidly - Create a new Go project first: + Create a new Go project first: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current `wasmedge_test` directory, and create and edit the Go file `main.go` as following: + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current `wasmedge_test` directory, and create and edit the Go file `main.go` as following: - ```go - package main + ```go + package main - import ( - "fmt" + import ( + "fmt" - "github.com/second-state/WasmEdge-go/wasmedge" - ) + "github.com/second-state/WasmEdge-go/wasmedge" + ) - func main() { - // Set the logging level. - wasmedge.SetLogErrorLevel() - - // Create the configure context and add the WASI support. - // This step is not necessary unless you need WASI support. - conf := wasmedge.NewConfigure(wasmedge.WASI) - // Create VM with the configure. - vm := wasmedge.NewVMWithConfig(conf) - - res, err := vm.RunWasmFile("fibonacci.wasm", "fib", uint32(21)) - if err == nil { - fmt.Println("Get fibonacci[21]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - vm.Release() - conf.Release() - } - ``` - - Then you can build and run the Golang application with the WasmEdge Golang SDK: (the 21 Fibonacci number is 17711 in 0-based index) - - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 - $ go build - $ ./wasmedge_test - Get fibonacci[21]: 17711 - ``` + func main() { + // Set the logging level. + wasmedge.SetLogErrorLevel() -2. Instantiate and run WASM functions manually - - Besides the above example, developers can run the WASM functions step-by-step with `VM` object APIs: - - ```go - package main + // Create the configure context and add the WASI support. + // This step is not necessary unless you need WASI support. + conf := wasmedge.NewConfigure(wasmedge.WASI) + // Create VM with the configure. + vm := wasmedge.NewVMWithConfig(conf) - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) + res, err := vm.RunWasmFile("fibonacci.wasm", "fib", uint32(21)) + if err == nil { + fmt.Println("Get fibonacci[21]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } - func main() { - // Set the logging level. - wasmedge.SetLogErrorLevel() - - // Create VM. - vm := wasmedge.NewVM() - var err error - var res []interface{} - - // Step 1: Load WASM file. - err = vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - // Developers can load, validate, and instantiate another WASM module - // to replace the instantiated one. In this case, the old module will - // be cleared, but the registered modules are still kept. - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // Step 4: Execute WASM functions. Parameters: (funcname, args...) - res, err = vm.Execute("fib", uint32(25)) - // Developers can execute functions repeatedly after instantiation. - if err == nil { - fmt.Println("Get fibonacci[25]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - vm.Release() - } - ``` + vm.Release() + conf.Release() + } + ``` - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + Then you can build and run the Golang application with the WasmEdge Golang SDK: (the 21 Fibonacci number is 17711 in 0-based index) - ```bash - $ go build - $ ./wasmedge_test - Get fibonacci[25]: 121393 - ``` + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 + $ go build + $ ./wasmedge_test + Get fibonacci[21]: 17711 + ``` - The following graph explains the status of the `VM` object. - - ```text - |========================| - |------->| VM: Initiated | - | |========================| - | | - | LoadWasm - | | - | v - | |========================| - |--------| VM: Loaded |<-------| - | |========================| | - | | ^ | - | Validate | | - Cleanup | LoadWasm | - | v | LoadWasm - | |========================| | - |--------| VM: Validated | | - | |========================| | - | | ^ | - | Instantiate | | - | | RegisterModule | - | v | | - | |========================| | - |--------| VM: Instantiated |--------| - |========================| - | ^ - | | - -------------- - Instantiate, Execute, ExecuteRegistered, - ExecuteBindgen, ExecuteBindgenRegistered - ``` +2. Instantiate and run WASM functions manually - The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or import objects in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. + Besides the above example, developers can run the WASM functions step-by-step with `VM` object APIs: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + func main() { + // Set the logging level. + wasmedge.SetLogErrorLevel() + + // Create VM. + vm := wasmedge.NewVM() + var err error + var res []interface{} + + // Step 1: Load WASM file. + err = vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } + + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + // Developers can load, validate, and instantiate another WASM module + // to replace the instantiated one. In this case, the old module will + // be cleared, but the registered modules are still kept. + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // Step 4: Execute WASM functions. Parameters: (funcname, args...) + res, err = vm.Execute("fib", uint32(25)) + // Developers can execute functions repeatedly after instantiation. + if err == nil { + fmt.Println("Get fibonacci[25]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } + + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go build + $ ./wasmedge_test + Get fibonacci[25]: 121393 + ``` + + The following graph explains the status of the `VM` object. + + ```text + |========================| + |------->| VM: Initiated | + | |========================| + | | + | LoadWasm + | | + | v + | |========================| + |--------| VM: Loaded |<-------| + | |========================| | + | | ^ | + | Validate | | + Cleanup | LoadWasm | + | v | LoadWasm + | |========================| | + |--------| VM: Validated | | + | |========================| | + | | ^ | + | Instantiate | | + | | RegisterModule | + | v | | + | |========================| | + |--------| VM: Instantiated |--------| + |========================| + | ^ + | | + -------------- + Instantiate, Execute, ExecuteRegistered, + ExecuteBindgen, ExecuteBindgenRegistered + ``` + + The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or import objects in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. ### VM Creations @@ -878,82 +878,82 @@ WasmEdge provides the following built-in pre-registrations. 1. [WASI (WebAssembly System Interface)](https://github.com/WebAssembly/WASI) - Developers can turn on the WASI support for VM in the `Configure` object. + Developers can turn on the WASI support for VM in the `Configure` object. - ```go - conf := wasmedge.NewConfigure(wasmedge.WASI) - // Or you can set the `wasmedge.WASI` into the configure object through `(*Configure).AddConfig`. - vm := wasmedge.NewVMWithConfig(conf) - vm.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WASI) + // Or you can set the `wasmedge.WASI` into the configure object through `(*Configure).AddConfig`. + vm := wasmedge.NewVMWithConfig(conf) + vm.Release() - // The following API can retrieve the pre-registration import objects from the VM object. - // This API will return `nil` if the corresponding pre-registration is not set into the configuration. - wasiconf := conf.GetImportModule(wasmedge.WASI) - // Initialize the WASI. - wasiconf.InitWasi(/* ... ignored */) + // The following API can retrieve the pre-registration import objects from the VM object. + // This API will return `nil` if the corresponding pre-registration is not set into the configuration. + wasiconf := conf.GetImportModule(wasmedge.WASI) + // Initialize the WASI. + wasiconf.InitWasi(/* ... ignored */) - conf.Release() - ``` + conf.Release() + ``` - And also can create the WASI import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 2. [WasmEdge_Process](https://crates.io/crates/wasmedge_process_interface) - This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` plugin. + This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` plugin. - ```go - conf := wasmedge.NewConfigure(wasmedge.WasmEdge_PROCESS) - vm := wasmedge.NewVMWithConfig(conf) - vm.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WasmEdge_PROCESS) + vm := wasmedge.NewVMWithConfig(conf) + vm.Release() - // The following API can retrieve the pre-registration import objects from the VM object. - // This API will return `nil` if the corresponding pre-registration is not set into the configuration. - procconf := conf.GetImportModule(wasmedge.WasmEdge_PROCESS) - // Initialize the WasmEdge_Process. - procconf.InitWasmEdgeProcess(/* ... ignored */) + // The following API can retrieve the pre-registration import objects from the VM object. + // This API will return `nil` if the corresponding pre-registration is not set into the configuration. + procconf := conf.GetImportModule(wasmedge.WasmEdge_PROCESS) + // Initialize the WasmEdge_Process. + procconf.InitWasmEdgeProcess(/* ... ignored */) - conf.Release() - ``` + conf.Release() + ``` - And also can create the WasmEdge_Process import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WasmEdge_Process import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 3. [WASI-NN proposal](https://github.com/WebAssembly/wasi-nn) (`v0.10.1` or upper only) - Developers can turn on the WASI-NN proposal support for VM in the `Configure` object. + Developers can turn on the WASI-NN proposal support for VM in the `Configure` object. - > Note: Please check that the [dependencies and prerequests](/develop/build-and-run/install#install-plugins-and-extensions) are satisfied. + > Note: Please check that the [dependencies and prerequests](/develop/build-and-run/install#install-plugins-and-extensions) are satisfied. - ```go - conf := wasmedge.NewConfigure(wasmedge.WasiNN) - vm := wasmedge.NewVMWithConfig(conf) - vm.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WasiNN) + vm := wasmedge.NewVMWithConfig(conf) + vm.Release() - // The following API can retrieve the pre-registration import objects from the VM object. - // This API will return `nil` if the corresponding pre-registration is not set into the configuration. - nnmodule := conf.GetImportModule(wasmedge.WasiNN) - conf.Release() - ``` + // The following API can retrieve the pre-registration import objects from the VM object. + // This API will return `nil` if the corresponding pre-registration is not set into the configuration. + nnmodule := conf.GetImportModule(wasmedge.WasiNN) + conf.Release() + ``` - And also can create the WASI-NN module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI-NN module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 4. [WASI-Crypto proposal](https://github.com/WebAssembly/wasi-crypto) (`v0.10.1` or upper only) - Developers can turn on the WASI-Crypto proposal support for VM in the `Configure` object. + Developers can turn on the WASI-Crypto proposal support for VM in the `Configure` object. - > Note: Please check that the [dependencies and prerequests](/develop/build-and-run/install#install-plugins-and-extensions) are satisfied. + > Note: Please check that the [dependencies and prerequests](/develop/build-and-run/install#install-plugins-and-extensions) are satisfied. - ```go - conf := wasmedge.NewConfigure(wasmedge.WasiCrypto_Common, wasmedge.WasiCrypto_AsymmetricCommon, wasmedge.WasiCrypto_Kx, wasmedge.WasiCrypto_Signatures, wasmedge.WasiCrypto_Symmetric) - vm := wasmedge.NewVMWithConfig(conf) - vm.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WasiCrypto_Common, wasmedge.WasiCrypto_AsymmetricCommon, wasmedge.WasiCrypto_Kx, wasmedge.WasiCrypto_Signatures, wasmedge.WasiCrypto_Symmetric) + vm := wasmedge.NewVMWithConfig(conf) + vm.Release() - // The following API can retrieve the pre-registration import objects from the VM object. - // This API will return `nil` if the corresponding pre-registration is not set into the configuration. - nnmodule := conf.GetImportModule(wasmedge.WasiCrypto_Common) - conf.Release() - ``` + // The following API can retrieve the pre-registration import objects from the VM object. + // This API will return `nil` if the corresponding pre-registration is not set into the configuration. + nnmodule := conf.GetImportModule(wasmedge.WasiCrypto_Common) + conf.Release() + ``` - And also can create the WASI-Crypto module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI-Crypto module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). ### Host Module Registrations @@ -978,211 +978,211 @@ In WebAssembly, the instances in WASM modules can be exported and can be importe 1. Register the WASM modules with exported module names - Unless the import objects have already contained the module names, every WASM module should be named uniquely when registering. The following shows the example. + Unless the import objects have already contained the module names, every WASM module should be named uniquely when registering. The following shows the example. - Create a new Go project first: + Create a new Go project first: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. Then create and edit the Go file `main.go` as following: + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. Then create and edit the Go file `main.go` as following: - ```go - package main + ```go + package main - import "github.com/second-state/WasmEdge-go/wasmedge" + import "github.com/second-state/WasmEdge-go/wasmedge" - func main() { - // Create VM. - vm := wasmedge.NewVM() + func main() { + // Create VM. + vm := wasmedge.NewVM() - var err error - err = vm.RegisterWasmFile("module_name", "fibonacci.wasm") - // Developers can register the WASM module from `[]byte` with the - // `(*VM).RegisterWasmBuffer` function, or from `AST` object with - // the `(*VM).RegisterAST` function. - // The result status should be checked. The error will occur if the - // WASM module instantiation failed or the module name conflicts. + var err error + err = vm.RegisterWasmFile("module_name", "fibonacci.wasm") + // Developers can register the WASM module from `[]byte` with the + // `(*VM).RegisterWasmBuffer` function, or from `AST` object with + // the `(*VM).RegisterAST` function. + // The result status should be checked. The error will occur if the + // WASM module instantiation failed or the module name conflicts. - vm.Release() - } - ``` + vm.Release() + } + ``` 2. Execute the functions in registered WASM modules - Edit the Go file `main.go` as following: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - // Create VM. - vm := wasmedge.NewVM() - - var res []interface{} - var err error - // Register the WASM module from file into VM with the module name "mod". - err = vm.RegisterWasmFile("mod", "fibonacci.wasm") - // Developers can register the WASM module from `[]byte` with the - // `(*VM).RegisterWasmBuffer` function, or from `AST` object with - // the `(*VM).RegisterAST` function. - if err != nil { - fmt.Println("WASM registration failed:", err.Error()) - return - } - // The function "fib" in the "fibonacci.wasm" was exported with the module - // name "mod". As the same as host functions, other modules can import the - // function `"mod" "fib"`. - - // Execute WASM functions in registered modules. - // Unlike the execution of functions, the registered functions can be - // invoked without `(*VM).Instantiate` because the WASM module was - // instantiated when registering. - // Developers can also invoke the host functions directly with this API. - res, err = vm.ExecuteRegistered("mod", "fib", int32(25)) - if err == nil { - fmt.Println("Get fibonacci[25]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - vm.Release() - } - ``` - - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) - - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 - $ go build - $ ./wasmedge_test - Get fibonacci[25]: 121393 - ``` + Edit the Go file `main.go` as following: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + func main() { + // Create VM. + vm := wasmedge.NewVM() + + var res []interface{} + var err error + // Register the WASM module from file into VM with the module name "mod". + err = vm.RegisterWasmFile("mod", "fibonacci.wasm") + // Developers can register the WASM module from `[]byte` with the + // `(*VM).RegisterWasmBuffer` function, or from `AST` object with + // the `(*VM).RegisterAST` function. + if err != nil { + fmt.Println("WASM registration failed:", err.Error()) + return + } + // The function "fib" in the "fibonacci.wasm" was exported with the module + // name "mod". As the same as host functions, other modules can import the + // function `"mod" "fib"`. + + // Execute WASM functions in registered modules. + // Unlike the execution of functions, the registered functions can be + // invoked without `(*VM).Instantiate` because the WASM module was + // instantiated when registering. + // Developers can also invoke the host functions directly with this API. + res, err = vm.ExecuteRegistered("mod", "fib", int32(25)) + if err == nil { + fmt.Println("Get fibonacci[25]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } + + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 + $ go build + $ ./wasmedge_test + Get fibonacci[25]: 121393 + ``` ### Asynchronous Execution 1. Asynchronously run WASM functions rapidly - Assume that a new Go project is created as following: - - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + Assume that a new Go project is created as following: - Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - func main() { - // Create VM. - vm := wasmedge.NewVM() - - // Asynchronously run the WASM function from file and get the `wasmedge.Async` object. - async := vm.AsyncRunWasmFile("fibonacci.wasm", "fib", uint32(20)) - - // Block and wait for the execution and get the results. - res, err := async.GetResult() - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - async.Release() - vm.Release() - } - ``` + Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: - Then you can build and run: (the 20th Fibonacci number is 10946 in 0-based index) + ```go + package main - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 - $ go build - $ ./wasmedge_test - Get the result: 10946 - ``` + import ( + "fmt" -2. Instantiate and asynchronously run WASM functions manually + "github.com/second-state/WasmEdge-go/wasmedge" + ) - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + func main() { + // Create VM. + vm := wasmedge.NewVM() - ```go - package main + // Asynchronously run the WASM function from file and get the `wasmedge.Async` object. + async := vm.AsyncRunWasmFile("fibonacci.wasm", "fib", uint32(20)) - import ( - "fmt" + // Block and wait for the execution and get the results. + res, err := async.GetResult() + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + async.Release() + vm.Release() + } + ``` - "github.com/second-state/WasmEdge-go/wasmedge" - ) + Then you can build and run: (the 20th Fibonacci number is 10946 in 0-based index) - func main() { - var err error - var res []interface{} - - // Create VM. - vm := wasmedge.NewVM() - - // Step 1: Load WASM file. - // Developers can load the WASM binary from buffer with the `(*VM).LoadWasmBuffer()` API, - // or from `wasmedge.AST` object with the `(*VM).LoadWasmAST()` API. - err := vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // Step 4: Asynchronously execute the WASM function and get the `wasmedge.Async` object. - async := vm.AsyncExecute("fib", uint32(25)) - - // Block and wait for the execution and get the results. - res, err := async.GetResult() - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - async.Release() - vm.Release() - } - ``` + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 + $ go build + $ ./wasmedge_test + Get the result: 10946 + ``` - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) +2. Instantiate and asynchronously run WASM functions manually - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 - $ go build - $ ./wasmedge_test - Get the result: 121393 - ``` + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + func main() { + var err error + var res []interface{} + + // Create VM. + vm := wasmedge.NewVM() + + // Step 1: Load WASM file. + // Developers can load the WASM binary from buffer with the `(*VM).LoadWasmBuffer()` API, + // or from `wasmedge.AST` object with the `(*VM).LoadWasmAST()` API. + err := vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } + + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // Step 4: Asynchronously execute the WASM function and get the `wasmedge.Async` object. + async := vm.AsyncExecute("fib", uint32(25)) + + // Block and wait for the execution and get the results. + res, err := async.GetResult() + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + async.Release() + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 + $ go build + $ ./wasmedge_test + Get the result: 121393 + ``` ### Instance Tracing @@ -1190,136 +1190,136 @@ Sometimes the developers may have requirements to get the instances of the WASM 1. Store - If the `VM` object is created without assigning a `Store` object, the `VM` context will allocate and own a `Store`. + If the `VM` object is created without assigning a `Store` object, the `VM` context will allocate and own a `Store`. - ```go - vm := wasmedge.NewVM() - store := vm.GetStore() - // The object should __NOT__ be deleted by calling `(*Store).Release`. - vm.Release() - ``` + ```go + vm := wasmedge.NewVM() + store := vm.GetStore() + // The object should __NOT__ be deleted by calling `(*Store).Release`. + vm.Release() + ``` - Developers can also create the `VM` object with a `Store` object. In this case, developers should guarantee that the `Store` object cannot be released before the `VM` object. Please refer to the [Store Objects](#store) for the details about the `Store` APIs. + Developers can also create the `VM` object with a `Store` object. In this case, developers should guarantee that the `Store` object cannot be released before the `VM` object. Please refer to the [Store Objects](#store) for the details about the `Store` APIs. - ```go - store := wasmedge.NewStore() - vm := wasmedge.NewVMWithStore(store) + ```go + store := wasmedge.NewStore() + vm := wasmedge.NewVMWithStore(store) - storemock := vm.GetStore() - // The internal store context of the `store` and the `storemock` are the same. + storemock := vm.GetStore() + // The internal store context of the `store` and the `storemock` are the same. - vm.Release() - store.Release() - ``` + vm.Release() + store.Release() + ``` 2. List exported functions - After the WASM module instantiation, developers can use the `(*VM).Execute` function to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. + After the WASM module instantiation, developers can use the `(*VM).Execute` function to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. - Assume that a new Go project is created as following: + Assume that a new Go project is created as following: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: + Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: - ```go - package main + ```go + package main - import ( - "fmt" + import ( + "fmt" - "github.com/second-state/WasmEdge-go/wasmedge" - ) + "github.com/second-state/WasmEdge-go/wasmedge" + ) - func main() { - // Create VM. - vm := wasmedge.NewVM() - - // Step 1: Load WASM file. - err := vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // List the exported functions for the names and function types. - funcnames, functypes := vm.GetFunctionList() - for _, fname := range funcnames { - fmt.Println("Exported function name:", fname) - } - for _, ftype := range functypes { - // `ftype` is the `FunctionType` object of the same index in the `funcnames` array. - // Developers should __NOT__ call the `ftype.Release()`. - } - - vm.Release() - } - ``` + func main() { + // Create VM. + vm := wasmedge.NewVM() - Then you can build and run: (the only exported function in `fibonacci.wasm` is `fib`) + // Step 1: Load WASM file. + err := vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 - $ go build - $ ./wasmedge_test - Exported function name: fib - ``` + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // List the exported functions for the names and function types. + funcnames, functypes := vm.GetFunctionList() + for _, fname := range funcnames { + fmt.Println("Exported function name:", fname) + } + for _, ftype := range functypes { + // `ftype` is the `FunctionType` object of the same index in the `funcnames` array. + // Developers should __NOT__ call the `ftype.Release()`. + } + + vm.Release() + } + ``` - If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` object from the `VM` object and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. + Then you can build and run: (the only exported function in `fibonacci.wasm` is `fib`) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 + $ go build + $ ./wasmedge_test + Exported function name: fib + ``` + + If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` object from the `VM` object and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. 3. Get function types - The `VM` object provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. + The `VM` object provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. - ```go - // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. - functype := vm.GetFunctionType("fib") - // Developers can get the function types of functions in the registered modules via the - // `(*VM).GetFunctionTypeRegistered` API with the function name and the module name. - // If the function is not found, these APIs will return `nil`. - // Developers should __NOT__ call the `(*FunctionType).Release` function of the returned object. - ``` + ```go + // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. + functype := vm.GetFunctionType("fib") + // Developers can get the function types of functions in the registered modules via the + // `(*VM).GetFunctionTypeRegistered` API with the function name and the module name. + // If the function is not found, these APIs will return `nil`. + // Developers should __NOT__ call the `(*FunctionType).Release` function of the returned object. + ``` 4. Get the active module - After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` object. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `(*VM).GetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. + After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` object. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `(*VM).GetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. - ```go - // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. - mod := vm.GetActiveModule() - // If there's no WASM module instantiated, this API will return `nil`. - // Developers should __NOT__ call the `(*Module).Release` function of the returned module instance. - ``` + ```go + // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. + mod := vm.GetActiveModule() + // If there's no WASM module instantiated, this API will return `nil`. + // Developers should __NOT__ call the `(*Module).Release` function of the returned module instance. + ``` 5. Get the components (`v0.10.1` or upper only) - The `VM` object is composed by the `Loader`, `Validator`, and `Executor` objects. For the developers who want to use these objects without creating another instances, these APIs can help developers to get them from the `VM` object. The get objects are owned by the `VM` object, and developers should not call their release functions. + The `VM` object is composed by the `Loader`, `Validator`, and `Executor` objects. For the developers who want to use these objects without creating another instances, these APIs can help developers to get them from the `VM` object. The get objects are owned by the `VM` object, and developers should not call their release functions. - ```go - loader := vm.GetLoader() - // Developers should __NOT__ call the `(*Loader).Release` function of the returned object. - validator := vm.GetValidator() - // Developers should __NOT__ call the `(*Validator).Release` function of the returned object. - executor := vm.GetExecutor() - // Developers should __NOT__ call the `(*Executor).Release` function of the returned object. - ``` + ```go + loader := vm.GetLoader() + // Developers should __NOT__ call the `(*Loader).Release` function of the returned object. + validator := vm.GetValidator() + // Developers should __NOT__ call the `(*Validator).Release` function of the returned object. + executor := vm.GetExecutor() + // Developers should __NOT__ call the `(*Executor).Release` function of the returned object. + ``` ## WasmEdge Runtime @@ -1507,119 +1507,119 @@ The `Executor` object is the executor for both WASM and compiled-WASM. This obje 1. Instantiate and register an `AST` object as a named `Module` instance - As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` objects, developers can instantiate and register an `AST` objects into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Register the loaded WASM `ast` into store with the export module name "mod". - mod, res := executor.Register(store, ast, "mod") - if err != nil { - fmt.Println("WASM registration FAILED:", err.Error()) - return - } - - // ... - - // Resources deallocations. - executor.Release() - stat.Release() - store.Release() - mod.Release() - ``` + As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` objects, developers can instantiate and register an `AST` objects into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Register the loaded WASM `ast` into store with the export module name "mod". + mod, res := executor.Register(store, ast, "mod") + if err != nil { + fmt.Println("WASM registration FAILED:", err.Error()) + return + } + + // ... + + // Resources deallocations. + executor.Release() + stat.Release() + store.Release() + mod.Release() + ``` 2. Register an existing `Module` instance and export the module name - Besides instantiating and registering an `AST` object, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Create a module instance for host functions. - mod := wasmedge.NewModule("mod") - // ... - // Create and add the host functions, tables, memories, and globals into the module instance. - // ... - - // Register the module instance into store with the exported module name. - // The export module name is in the module instance already. - res := executor.RegisterImport(store, mod) - if err != nil { - fmt.Println("WASM registration FAILED:", err.Error()) - return - } - - // ... - - // Resources deallocations. - executor.Release() - stat.Release() - store.Release() - mod.Release() - ``` + Besides instantiating and registering an `AST` object, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Create a module instance for host functions. + mod := wasmedge.NewModule("mod") + // ... + // Create and add the host functions, tables, memories, and globals into the module instance. + // ... + + // Register the module instance into store with the exported module name. + // The export module name is in the module instance already. + res := executor.RegisterImport(store, mod) + if err != nil { + fmt.Println("WASM registration FAILED:", err.Error()) + return + } + + // ... + + // Resources deallocations. + executor.Release() + stat.Release() + store.Release() + mod.Release() + ``` 3. Instantiate an `AST` object to an anonymous `Module` instance - WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` object for linking. - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Instantiate the WASM module. - mod, err := executor.Instantiate(stpre, ast) - if err != nil { - fmt.Println("WASM instantiation FAILED:", err.Error()) - return - } - - executor.Release() - stat.Release() - store.Release() - mod.Release() - ``` + WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` object for linking. + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Instantiate the WASM module. + mod, err := executor.Instantiate(stpre, ast) + if err != nil { + fmt.Println("WASM instantiation FAILED:", err.Error()) + return + } + + executor.Release() + stat.Release() + store.Release() + mod.Release() + ``` 4. Invoke functions - After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `(*Executor).Invoke` API. + After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `(*Executor).Invoke` API. ### AST Module @@ -1672,529 +1672,529 @@ The instances are the runtime structures of WASM. Developers can retrieve the `M 1. Module instance - After instantiating or registering an `AST` object, developers will get a `Module` instance as the result, and have the responsibility to release it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. + After instantiating or registering an `AST` object, developers will get a `Module` instance as the result, and have the responsibility to release it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. - ```go - // ... - // Instantiate a WASM module via the executor object and get the `mod` as the output module instance. - // ... + ```go + // ... + // Instantiate a WASM module via the executor object and get the `mod` as the output module instance. + // ... - // List the exported instance of the instantiated WASM module. - // Take the function instances for example here. - funcnames := mod.ListFunction() + // List the exported instance of the instantiated WASM module. + // Take the function instances for example here. + funcnames := mod.ListFunction() - // Try to find the exported instance of the instantiated WASM module. - // Take the function instances for example here. - funcinst := mod.FindFunction("fib") - // `funcinst` will be `nil` if the function not found. - // The returned instance is owned by the module instance and should __NOT__ be released. - ``` + // Try to find the exported instance of the instantiated WASM module. + // Take the function instances for example here. + funcinst := mod.FindFunction("fib") + // `funcinst` will be `nil` if the function not found. + // The returned instance is owned by the module instance and should __NOT__ be released. + ``` 2. Function instance - [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` objects for host functions and add them into an `Module` instance for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` objects through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). + [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` objects for host functions and add them into an `Module` instance for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` objects through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). - ```go - funcobj := ... - // `funcobj` is the `*wasmedge.Function` retrieved from the module instance. - functype := funcobj.GetFunctionType() - // The `funcobj` retrieved from the module instance should __NOT__ be released. - // The `functype` retrieved from the `funcobj` should __NOT__ be released. + ```go + funcobj := ... + // `funcobj` is the `*wasmedge.Function` retrieved from the module instance. + functype := funcobj.GetFunctionType() + // The `funcobj` retrieved from the module instance should __NOT__ be released. + // The `functype` retrieved from the `funcobj` should __NOT__ be released. - // For the function object creation, please refer to the `Host Function` guide. - ``` + // For the function object creation, please refer to the `Host Function` guide. + ``` 3. Table instance - In WasmEdge, developers can create the `Table` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Table` objects supply APIs to control the data in table instances. - - ```go - lim := wasmedge.NewLimitWithMax(10, 20) - // Create the table type with limit and the `FuncRef` element type. - tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef, lim) - // Create the table instance with table type. - tabinst := wasmedge.NewTable(tabtype) - // Delete the table type. - tabtype.Release() - - gottabtype := tabinst.GetTableType() - // The `gottabtype` got from table instance is owned by the `tabinst` - // and should __NOT__ be released. - reftype := gottabtype.GetRefType() - // The `reftype` will be `wasmedge.RefType_FuncRef`. - - var gotdata interface{} - data := wasmedge.NewFuncRef(5) - err := tabinst.SetData(data, 3) - // Set the function index 5 to the table[3]. - - // The following line will get an "out of bounds table access" error - // because the position (13) is out of the table size (10): - // err = tabinst.SetData(data, 13) - - gotdata, err = tabinst.GetData(3) - // Get the FuncRef value of the table[3]. - - // The following line will get an "out of bounds table access" error - // because the position (13) is out of the table size (10): - // gotdata, err = tabinst.GetData(13) - - tabsize := tabinst.GetSize() - // `tabsize` will be 10. - err = tabinst.Grow(6) - // Grow the table size of 6, the table size will be 16. - - // The following line will get an "out of bounds table access" error - // because the size (16 + 6) will reach the table limit (20): - // err = tabinst.Grow(6) - - tabinst.Release() - ``` + In WasmEdge, developers can create the `Table` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Table` objects supply APIs to control the data in table instances. -4. Memory instance + ```go + lim := wasmedge.NewLimitWithMax(10, 20) + // Create the table type with limit and the `FuncRef` element type. + tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef, lim) + // Create the table instance with table type. + tabinst := wasmedge.NewTable(tabtype) + // Delete the table type. + tabtype.Release() - In WasmEdge, developers can create the `Memory` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Memory` objects supply APIs to control the data in memory instances. - - ```go - lim := wasmedge.NewLimitWithMax(1, 5) - // Create the memory type with limit. The memory page size is 64KiB. - memtype := wasmedge.NewMemoryType(lim) - // Create the memory instance with memory type. - meminst := wasmedge.NewMemory(memtype) - // Delete the memory type. - memtype.Release() - - data := []byte("A quick brown fox jumps over the lazy dog") - err := meminst.SetData(data, 0x1000, 10) - // Set the data[0:9] to the memory[4096:4105]. - - // The following line will get an "out of bounds memory access" error - // because [65535:65544] is out of 1 page size (65536): - // err = meminst.SetData(data, 0xFFFF, 10) - - var gotdata []byte - gotdata, err = meminst.GetData(0x1000, 10) - // Get the memory[4096:4105]. The `gotdata` will be `[]byte("A quick br"). - // The following line will get an "out of bounds memory access" error - // because [65535:65544] is out of 1 page size (65536): - // gotdata, err = meminst.Getdata(0xFFFF, 10) - - pagesize := meminst.GetPageSize() - // `pagesize` will be 1. - err = meminst.GrowPage(2) - // Grow the page size of 2, the page size of the memory instance will be 3. - - // The following line will get an "out of bounds memory access" error - // because the size (3 + 3) will reach the memory limit (5): - // err = meminst.GetPageSize(3) - - meminst.Release() - ``` - -5. Global instance + gottabtype := tabinst.GetTableType() + // The `gottabtype` got from table instance is owned by the `tabinst` + // and should __NOT__ be released. + reftype := gottabtype.GetRefType() + // The `reftype` will be `wasmedge.RefType_FuncRef`. - In WasmEdge, developers can create the `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Global` objects supply APIs to control the value in global instances. - - ```go - // Create the global type with value type and mutation. - globtype := wasmedge.NewGlobalType(wasmedge.ValType_I64, wasmedge.ValMut_Var) - // Create the global instance with value and global type. - globinst := wasmedge.NewGlobal(globtype, uint64(1000)) - // Delete the global type. - globtype.Release() - - gotglobtype := globinst.GetGlobalType() - // The `gotglobtype` got from global instance is owned by the `globinst` - // and should __NOT__ be released. - valtype := gotglobtype.GetValType() - // The `valtype` will be `wasmedge.ValType_I64`. - valmut := gotglobtype.GetMutability() - // The `valmut` will be `wasmedge.ValMut_Var`. - - globinst.SetValue(uint64(888)) - // Set the value u64(888) to the global. - // This function will do nothing if the value type mismatched or the - // global mutability is `wasmedge.ValMut_Const`. - gotval := globinst.GetValue() - // The `gotbal` will be `interface{}` which the type is `uint64` and - // the value is 888. - - globinst.Release() - ``` + var gotdata interface{} + data := wasmedge.NewFuncRef(5) + err := tabinst.SetData(data, 3) + // Set the function index 5 to the table[3]. -### Host Functions + // The following line will get an "out of bounds table access" error + // because the position (13) is out of the table size (10): + // err = tabinst.SetData(data, 13) -[Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge-go, developers can create the `Function`, `Memory`, `Table`, and `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. + gotdata, err = tabinst.GetData(3) + // Get the FuncRef value of the table[3]. -1. Host function allocation + // The following line will get an "out of bounds table access" error + // because the position (13) is out of the table size (10): + // gotdata, err = tabinst.GetData(13) - Developers can define Go functions with the following function signature as the host function body: + tabsize := tabinst.GetSize() + // `tabsize` will be 10. + err = tabinst.Grow(6) + // Grow the table size of 6, the table size will be 16. - ```go - type hostFunctionSignature func( - data interface{}, mem *Memory, params []interface{}) ([]interface{}, Result) - ``` + // The following line will get an "out of bounds table access" error + // because the size (16 + 6) will reach the table limit (20): + // err = tabinst.Grow(6) - The example of an `add` host function to add 2 `i32` values: + tabinst.Release() + ``` - ```go - func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) - - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res - - // Return - return returns, wasmedge.Result_Success - } - ``` - - Then developers can create `Function` object with the host function body and function type: - - ```go - // Create a function type: {i32, i32} -> {i32}. - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) +4. Memory instance - // Create a function context with the function type and host function body. - // The third parameter is the pointer to the additional data. - // Developers should guarantee the life cycle of the data, and it can be - // `nil` if the external data is not needed. - // The last parameter can be 0 if developers do not need the cost measuring. - func_add := wasmedge.NewFunction(functype, host_add, nil, 0) + In WasmEdge, developers can create the `Memory` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Memory` objects supply APIs to control the data in memory instances. - // If the function object is not added into an module instance object, it should be released. - func_add.Release() - functype.Release() - ``` + ```go + lim := wasmedge.NewLimitWithMax(1, 5) + // Create the memory type with limit. The memory page size is 64KiB. + memtype := wasmedge.NewMemoryType(lim) + // Create the memory instance with memory type. + meminst := wasmedge.NewMemory(memtype) + // Delete the memory type. + memtype.Release() -2. Construct a module instance with host instances + data := []byte("A quick brown fox jumps over the lazy dog") + err := meminst.SetData(data, 0x1000, 10) + // Set the data[0:9] to the memory[4096:4105]. - Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + // The following line will get an "out of bounds memory access" error + // because [65535:65544] is out of 1 page size (65536): + // err = meminst.SetData(data, 0xFFFF, 10) - ```go - // Host function body definition. - func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) + var gotdata []byte + gotdata, err = meminst.GetData(0x1000, 10) + // Get the memory[4096:4105]. The `gotdata` will be `[]byte("A quick br"). + // The following line will get an "out of bounds memory access" error + // because [65535:65544] is out of 1 page size (65536): + // gotdata, err = meminst.Getdata(0xFFFF, 10) - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res + pagesize := meminst.GetPageSize() + // `pagesize` will be 1. + err = meminst.GrowPage(2) + // Grow the page size of 2, the page size of the memory instance will be 3. - // Return - return returns, wasmedge.Result_Success - } + // The following line will get an "out of bounds memory access" error + // because the size (3 + 3) will reach the memory limit (5): + // err = meminst.GetPageSize(3) - // Create a module instance with the module name "module". - mod := wasmedge.NewModule("module") + meminst.Release() + ``` - // Create and add a function instance into the module instance with export name "add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) - functype.Release() - mod.AddFunction("add", hostfunc) - - // Create and add a table instance into the module instance with export name "table". - tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef ,wasmedge.NewLimitWithMax(10, 20)) - hosttab := wasmedge.NewTable(tabtype) - tabtype.Release() - mod.AddTable("table", hosttab) - - // Create and add a memory instance into the module instance with export name "memory". - memtype := wasmedge.NewMemoryType(wasmedge.NewLimitWithMax(1, 2)) - hostmem := wasmedge.NewMemory(memtype) - memtype.Release() - mod.AddMemory("memory", hostmem) - - // Create and add a global instance into the module instance with export name "global". - globtype := wasmedge.NewGlobalType(wasmedge.ValType_I32, wasmedge.ValMut_Var) - hostglob := wasmedge.NewGlobal(globtype, uint32(666)) - globtype.Release() - mod.AddGlobal("global", hostglob) - - // The module instances should be released. - // Developers should __NOT__ release the instances added into the module instance objects. - mod.Release() - ``` +5. Global instance -3. Specified module instance + In WasmEdge, developers can create the `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Global` objects supply APIs to control the value in global instances. + + ```go + // Create the global type with value type and mutation. + globtype := wasmedge.NewGlobalType(wasmedge.ValType_I64, wasmedge.ValMut_Var) + // Create the global instance with value and global type. + globinst := wasmedge.NewGlobal(globtype, uint64(1000)) + // Delete the global type. + globtype.Release() + + gotglobtype := globinst.GetGlobalType() + // The `gotglobtype` got from global instance is owned by the `globinst` + // and should __NOT__ be released. + valtype := gotglobtype.GetValType() + // The `valtype` will be `wasmedge.ValType_I64`. + valmut := gotglobtype.GetMutability() + // The `valmut` will be `wasmedge.ValMut_Var`. + + globinst.SetValue(uint64(888)) + // Set the value u64(888) to the global. + // This function will do nothing if the value type mismatched or the + // global mutability is `wasmedge.ValMut_Const`. + gotval := globinst.GetValue() + // The `gotbal` will be `interface{}` which the type is `uint64` and + // the value is 888. + + globinst.Release() + ``` - `wasmedge.NewWasiModule()` API can create and initialize the `WASI` module instance. +### Host Functions - `wasmedge.NewWasiNNModule()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin (`v0.10.1` or upper only). +[Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge-go, developers can create the `Function`, `Memory`, `Table`, and `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. - `wasmedge.NewWasiCryptoCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin (`v0.10.1` or upper only). +1. Host function allocation - `wasmedge.NewWasiCryptoAsymmetricCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin (`v0.10.1` or upper only). + Developers can define Go functions with the following function signature as the host function body: - `wasmedge.NewWasiCryptoKxModule()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin (`v0.10.1` or upper only). + ```go + type hostFunctionSignature func( + data interface{}, mem *Memory, params []interface{}) ([]interface{}, Result) + ``` - `wasmedge.NewWasiCryptoSignaturesModule()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin (`v0.10.1` or upper only). + The example of an `add` host function to add 2 `i32` values: - `wasmedge.NewWasiCryptoSymmetricModule()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin (`v0.10.1` or upper only). + ```go + func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) - `wasmedge.NewWasmEdgeProcessModule()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res - Developers can create these module instance objects and register them into the `Store` or `VM` objects rather than adjust the settings in the `Configure` objects. + // Return + return returns, wasmedge.Result_Success + } + ``` - > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install#install-plugins-and-extensions) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install#install-plugins-and-extensions) are satisfied. And the 5 modules are recommended to all be created and registered together. + Then developers can create `Function` object with the host function body and function type: - ```go - wasiobj := wasmedge.NewWasiModule( - os.Args[1:], // The args - os.Environ(), // The envs - []string{".:."}, // The mapping preopens - ) - procobj := wasmedge.NewWasmEdgeProcessModule( - []string{"ls", "echo"}, // The allowed commands - false, // Not to allow all commands - ) + ```go + // Create a function type: {i32, i32} -> {i32}. + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) - // Register the WASI and WasmEdge_Process into the VM object. - vm := wasmedge.NewVM() - vm.RegisterImport(wasiobj) - vm.RegisterImport(procobj) + // Create a function context with the function type and host function body. + // The third parameter is the pointer to the additional data. + // Developers should guarantee the life cycle of the data, and it can be + // `nil` if the external data is not needed. + // The last parameter can be 0 if developers do not need the cost measuring. + func_add := wasmedge.NewFunction(functype, host_add, nil, 0) - // ... Execute some WASM functions. + // If the function object is not added into an module instance object, it should be released. + func_add.Release() + functype.Release() + ``` - // Get the WASI exit code. - exitcode := wasiobj.WasiGetExitCode() - // The `exitcode` will be 0 if the WASI function "_start" execution has no error. - // Otherwise, it will return with the related exit code. +2. Construct a module instance with host instances - vm.Release() - // The import objects should be deleted. - wasiobj.Release() - procobj.Release() - ``` + Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + + ```go + // Host function body definition. + func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Return + return returns, wasmedge.Result_Success + } + + // Create a module instance with the module name "module". + mod := wasmedge.NewModule("module") + + // Create and add a function instance into the module instance with export name "add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) + functype.Release() + mod.AddFunction("add", hostfunc) + + // Create and add a table instance into the module instance with export name "table". + tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef ,wasmedge.NewLimitWithMax(10, 20)) + hosttab := wasmedge.NewTable(tabtype) + tabtype.Release() + mod.AddTable("table", hosttab) + + // Create and add a memory instance into the module instance with export name "memory". + memtype := wasmedge.NewMemoryType(wasmedge.NewLimitWithMax(1, 2)) + hostmem := wasmedge.NewMemory(memtype) + memtype.Release() + mod.AddMemory("memory", hostmem) + + // Create and add a global instance into the module instance with export name "global". + globtype := wasmedge.NewGlobalType(wasmedge.ValType_I32, wasmedge.ValMut_Var) + hostglob := wasmedge.NewGlobal(globtype, uint32(666)) + globtype.Release() + mod.AddGlobal("global", hostglob) + + // The module instances should be released. + // Developers should __NOT__ release the instances added into the module instance objects. + mod.Release() + ``` -4. Example +3. Specified module instance - Create a new Go project first: + `wasmedge.NewWasiModule()` API can create and initialize the `WASI` module instance. - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + `wasmedge.NewWasiNNModule()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin (`v0.10.1` or upper only). - Assume that there is a simple WASM from the WAT as following: + `wasmedge.NewWasiCryptoCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin (`v0.10.1` or upper only). - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` + `wasmedge.NewWasiCryptoAsymmetricCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin (`v0.10.1` or upper only). - Create and edit the Go file `main.go` as following: + `wasmedge.NewWasiCryptoKxModule()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin (`v0.10.1` or upper only). - ```go - package main + `wasmedge.NewWasiCryptoSignaturesModule()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin (`v0.10.1` or upper only). - import ( - "fmt" + `wasmedge.NewWasiCryptoSymmetricModule()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin (`v0.10.1` or upper only). - "github.com/second-state/WasmEdge-go/wasmedge" - ) + `wasmedge.NewWasmEdgeProcessModule()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. - // Host function body definition. - func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) - - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res - - // Return - return returns, wasmedge.Result_Success - } - - func main() { - // Create the VM object. - vm := wasmedge.NewVM() - - // The WASM module buffer. - wasmbuf := []byte{ - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, - } - - // Create the module instance with the module name "extern". - impmod := wasmedge.NewModule("extern") - - // Create and add a function instance into the module instance with export name "func-add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) - functype.Release() - impmod.AddFunction("func-add", hostfunc) - - // Register the module instance into VM. - vm.RegisterImport(impmod) - - res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - - impmod.Release() - vm.Release() - } - ``` + Developers can create these module instance objects and register them into the `Store` or `VM` objects rather than adjust the settings in the `Configure` objects. - Then you can build and run the Golang application with the WasmEdge Golang SDK: + > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install#install-plugins-and-extensions) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install#install-plugins-and-extensions) are satisfied. And the 5 modules are recommended to all be created and registered together. - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 - $ go build - $ ./wasmedge_test - Get the result: 6912 - ``` + ```go + wasiobj := wasmedge.NewWasiModule( + os.Args[1:], // The args + os.Environ(), // The envs + []string{".:."}, // The mapping preopens + ) + procobj := wasmedge.NewWasmEdgeProcessModule( + []string{"ls", "echo"}, // The allowed commands + false, // Not to allow all commands + ) -5. Host Data Example + // Register the WASI and WasmEdge_Process into the VM object. + vm := wasmedge.NewVM() + vm.RegisterImport(wasiobj) + vm.RegisterImport(procobj) - Developers can set a external data object to the `Function` object, and access to the object in the function body. Assume that edit the Go file `main.go` above: + // ... Execute some WASM functions. - ```go - package main + // Get the WASI exit code. + exitcode := wasiobj.WasiGetExitCode() + // The `exitcode` will be 0 if the WASI function "_start" execution has no error. + // Otherwise, it will return with the related exit code. - import ( - "fmt" + vm.Release() + // The import objects should be deleted. + wasiobj.Release() + procobj.Release() + ``` - "github.com/second-state/WasmEdge-go/wasmedge" - ) +4. Example - // Host function body definition. - func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) - - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res - - // Also set the result to the data. - *data.(*int32) = res - - // Return - return returns, wasmedge.Result_Success - } - - func main() { - // Create the VM object. - vm := wasmedge.NewVM() - - // The WASM module buffer. - wasmbuf := []byte{ - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, - } - - // The additional data to set into the host function. - var data int32 = 0 - - // Create the module instance with the module name "extern". - impmod := wasmedge.NewImportObject("extern") - - // Create and add a function instance into the module instance with export name "func-add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, &data, 0) - functype.Release() - impmod.AddFunction("func-add", hostfunc) - - // Register the module instance into VM. - vm.RegisterImport(impmod) - - res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - fmt.Println("Data value:", data) - - impmod.Release() - vm.Release() - } - ``` + Create a new Go project first: + + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` + + Assume that there is a simple WASM from the WAT as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + Create and edit the Go file `main.go` as following: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + // Host function body definition. + func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Return + return returns, wasmedge.Result_Success + } + + func main() { + // Create the VM object. + vm := wasmedge.NewVM() + + // The WASM module buffer. + wasmbuf := []byte{ + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, + } + + // Create the module instance with the module name "extern". + impmod := wasmedge.NewModule("extern") + + // Create and add a function instance into the module instance with export name "func-add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) + functype.Release() + impmod.AddFunction("func-add", hostfunc) + + // Register the module instance into VM. + vm.RegisterImport(impmod) + + res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + + impmod.Release() + vm.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 + $ go build + $ ./wasmedge_test + Get the result: 6912 + ``` - Then you can build and run the Golang application with the WasmEdge Golang SDK: +5. Host Data Example - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 - $ go build - $ ./wasmedge_test - Get the result: 6912 - Data value: 6912 - ``` + Developers can set a external data object to the `Function` object, and access to the object in the function body. Assume that edit the Go file `main.go` above: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + // Host function body definition. + func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Also set the result to the data. + *data.(*int32) = res + + // Return + return returns, wasmedge.Result_Success + } + + func main() { + // Create the VM object. + vm := wasmedge.NewVM() + + // The WASM module buffer. + wasmbuf := []byte{ + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, + } + + // The additional data to set into the host function. + var data int32 = 0 + + // Create the module instance with the module name "extern". + impmod := wasmedge.NewImportObject("extern") + + // Create and add a function instance into the module instance with export name "func-add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, &data, 0) + functype.Release() + impmod.AddFunction("func-add", hostfunc) + + // Register the module instance into VM. + vm.RegisterImport(impmod) + + res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + fmt.Println("Data value:", data) + + impmod.Release() + vm.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 + $ go build + $ ./wasmedge_test + Get the result: 6912 + Data value: 6912 + ``` ## WasmEdge AOT Compiler diff --git a/docs/embed/go/reference/0.11.2.md b/docs/embed/go/reference/0.11.2.md index 863e862c..855960ca 100644 --- a/docs/embed/go/reference/0.11.2.md +++ b/docs/embed/go/reference/0.11.2.md @@ -161,47 +161,47 @@ In WasmEdge-go, the APIs will automatically do the conversion for the built-in t 1. Number types: `i32`, `i64`, `f32`, and `f64` - - Convert the `uint32` and `int32` to `i32` automatically when passing a value into WASM. - - Convert the `uint64` and `int64` to `i64` automatically when passing a value into WASM. - - Convert the `uint` and `int` to `i32` automatically when passing a value into WASM in 32-bit system. - - Convert the `uint` and `int` to `i64` automatically when passing a value into WASM in 64-bit system. - - Convert the `float32` to `f32` automatically when passing a value into WASM. - - Convert the `float64` to `f64` automatically when passing a value into WASM. - - Convert the `i32` from WASM to `int32` when getting a result. - - Convert the `i64` from WASM to `int64` when getting a result. - - Convert the `f32` from WASM to `float32` when getting a result. - - Convert the `f64` from WASM to `float64` when getting a result. + - Convert the `uint32` and `int32` to `i32` automatically when passing a value into WASM. + - Convert the `uint64` and `int64` to `i64` automatically when passing a value into WASM. + - Convert the `uint` and `int` to `i32` automatically when passing a value into WASM in 32-bit system. + - Convert the `uint` and `int` to `i64` automatically when passing a value into WASM in 64-bit system. + - Convert the `float32` to `f32` automatically when passing a value into WASM. + - Convert the `float64` to `f64` automatically when passing a value into WASM. + - Convert the `i32` from WASM to `int32` when getting a result. + - Convert the `i64` from WASM to `int64` when getting a result. + - Convert the `f32` from WASM to `float32` when getting a result. + - Convert the `f64` from WASM to `float64` when getting a result. 2. Number type: `v128` for the `SIMD` proposal - Developers should use the `wasmedge.NewV128()` to generate a `v128` value, and use the `wasmedge.GetV128()` to get the value. + Developers should use the `wasmedge.NewV128()` to generate a `v128` value, and use the `wasmedge.GetV128()` to get the value. - ```go - val := wasmedge.NewV128(uint64(1234), uint64(5678)) - high, low := val.GetVal() - // `high` will be uint64(1234), `low` will be uint64(5678) - ``` + ```go + val := wasmedge.NewV128(uint64(1234), uint64(5678)) + high, low := val.GetVal() + // `high` will be uint64(1234), `low` will be uint64(5678) + ``` 3. Reference types: `FuncRef` and `ExternRef` for the `Reference-Types` proposal - ```go - var funccxt *wasmedge.Function = ... // Create or get function object. - funcref := wasmedge.NewFuncRef(funccxt) - // Create a `FuncRef` with the function object. - - num := 1234 - // `num` is a `int`. - externref := wasmedge.NewExternRef(&num) - // Create an `ExternRef` which reference to the `num`. - num = 5678 - // Modify the `num` to 5678. - numref := externref.GetRef().(*int) - // Get the original reference from the `ExternRef`. - fmt.Println(*numref) - // Will print `5678`. - numref.Release() - // Should call the `Release` method. - ``` + ```go + var funccxt *wasmedge.Function = ... // Create or get function object. + funcref := wasmedge.NewFuncRef(funccxt) + // Create a `FuncRef` with the function object. + + num := 1234 + // `num` is a `int`. + externref := wasmedge.NewExternRef(&num) + // Create an `ExternRef` which reference to the `num`. + num = 5678 + // Modify the `num` to 5678. + numref := externref.GetRef().(*int) + // Get the original reference from the `ExternRef`. + fmt.Println(*numref) + // Will print `5678`. + numref.Release() + // Should call the `Release` method. + ``` ### Results @@ -242,166 +242,166 @@ The WASM data structures are used for creating instances or can be queried from 1. Limit - The `Limit` struct presents the minimum and maximum value data structure. - - ```go - lim1 := wasmedge.NewLimit(12) - fmt.Println(lim1.HasMax()) - // Will print `false`. - fmt.Println(lim1.GetMin()) - // Will print `12`. - - lim2 := wasmedge.NewLimitWithMax(15, 50) - fmt.Println(lim2.HasMax()) - // Will print `true`. - fmt.Println(lim2.GetMin()) - // Will print `15`. - fmt.Println(lim2.GetMax()) - // Will print `50`. - ``` - - For the thread proposal, the `Limit` struct also supports the shared memory description. - - ```go - lim3 := wasmedge.NewLimitShared(20) - fmt.Println(lim3.HasMax()) - // Will print `false`. - fmt.Println(lim3.IsShared()) - // Will print `true`. - fmt.Println(lim3.GetMin()) - // Will print `20`. - - lim4 := wasmedge.NewLimitSharedWithMax(30, 40) - fmt.Println(lim4.HasMax()) - // Will print `true`. - fmt.Println(lim4.IsShared()) - // Will print `true`. - fmt.Println(lim4.GetMin()) - // Will print `30`. - fmt.Println(lim4.GetMax()) - // Will print `40`. - ``` + The `Limit` struct presents the minimum and maximum value data structure. + + ```go + lim1 := wasmedge.NewLimit(12) + fmt.Println(lim1.HasMax()) + // Will print `false`. + fmt.Println(lim1.GetMin()) + // Will print `12`. + + lim2 := wasmedge.NewLimitWithMax(15, 50) + fmt.Println(lim2.HasMax()) + // Will print `true`. + fmt.Println(lim2.GetMin()) + // Will print `15`. + fmt.Println(lim2.GetMax()) + // Will print `50`. + ``` + + For the thread proposal, the `Limit` struct also supports the shared memory description. + + ```go + lim3 := wasmedge.NewLimitShared(20) + fmt.Println(lim3.HasMax()) + // Will print `false`. + fmt.Println(lim3.IsShared()) + // Will print `true`. + fmt.Println(lim3.GetMin()) + // Will print `20`. + + lim4 := wasmedge.NewLimitSharedWithMax(30, 40) + fmt.Println(lim4.HasMax()) + // Will print `true`. + fmt.Println(lim4.IsShared()) + // Will print `true`. + fmt.Println(lim4.GetMin()) + // Will print `30`. + fmt.Println(lim4.GetMax()) + // Will print `40`. + ``` 2. Function type context - The `FunctionType` is an object holds the function type context and used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `FunctionType` APIs to get the parameter or return value types information. - - ```go - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{ - wasmedge.ValType_ExternRef, - wasmedge.ValType_I32, - wasmedge.ValType_I64, - }, []wasmedge.ValType{ - wasmedge.ValType_F32, - wasmedge.ValType_F64, - }) - - plen := functype.GetParametersLength() - // `plen` will be 3. - rlen := functype.GetReturnsLength() - // `rlen` will be 2. - plist := functype.GetParameters() - // `plist` will be `[]wasmedge.ValType{wasmedge.ValType_ExternRef, wasmedge.ValType_I32, wasmedge.ValType_I64}`. - rlist := functype.GetReturns() - // `rlist` will be `[]wasmedge.ValType{wasmedge.ValType_F32, wasmedge.ValType_F64}`. - - functype.Release() - ``` + The `FunctionType` is an object holds the function type context and used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `FunctionType` APIs to get the parameter or return value types information. + + ```go + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{ + wasmedge.ValType_ExternRef, + wasmedge.ValType_I32, + wasmedge.ValType_I64, + }, []wasmedge.ValType{ + wasmedge.ValType_F32, + wasmedge.ValType_F64, + }) + + plen := functype.GetParametersLength() + // `plen` will be 3. + rlen := functype.GetReturnsLength() + // `rlen` will be 2. + plist := functype.GetParameters() + // `plist` will be `[]wasmedge.ValType{wasmedge.ValType_ExternRef, wasmedge.ValType_I32, wasmedge.ValType_I64}`. + rlist := functype.GetReturns() + // `rlist` will be `[]wasmedge.ValType{wasmedge.ValType_F32, wasmedge.ValType_F64}`. + + functype.Release() + ``` 3. Table type context - The `TableType` is an object holds the table type context and used for `Table` instance creation or getting information from `Table` instances. + The `TableType` is an object holds the table type context and used for `Table` instance creation or getting information from `Table` instances. - ```go - lim := wasmedge.NewLimit(12) - tabtype := wasmedge.NewTableType(wasmedge.RefType_ExternRef, lim) + ```go + lim := wasmedge.NewLimit(12) + tabtype := wasmedge.NewTableType(wasmedge.RefType_ExternRef, lim) - rtype := tabtype.GetRefType() - // `rtype` will be `wasmedge.RefType_ExternRef`. - getlim := tabtype.GetLimit() - // `getlim` will be the same value as `lim`. + rtype := tabtype.GetRefType() + // `rtype` will be `wasmedge.RefType_ExternRef`. + getlim := tabtype.GetLimit() + // `getlim` will be the same value as `lim`. - tabtype.Release() - ``` + tabtype.Release() + ``` 4. Memory type context - The `MemoryType` is an object holds the memory type context and used for `Memory` instance creation or getting information from `Memory` instances. + The `MemoryType` is an object holds the memory type context and used for `Memory` instance creation or getting information from `Memory` instances. - ```go - lim := wasmedge.NewLimit(1) - memtype := wasmedge.NewMemoryType(lim) + ```go + lim := wasmedge.NewLimit(1) + memtype := wasmedge.NewMemoryType(lim) - getlim := memtype.GetLimit() - // `getlim` will be the same value as `lim`. + getlim := memtype.GetLimit() + // `getlim` will be the same value as `lim`. - memtype.Release() - ``` + memtype.Release() + ``` 5. Global type context - The `GlobalType` is an object holds the global type context and used for `Global` instance creation or getting information from `Global` instances. + The `GlobalType` is an object holds the global type context and used for `Global` instance creation or getting information from `Global` instances. - ```go - globtype := wasmedge.NewGlobalType(wasmedge.ValType_F64, wasmedge.ValMut_Var) + ```go + globtype := wasmedge.NewGlobalType(wasmedge.ValType_F64, wasmedge.ValMut_Var) - vtype := globtype.GetValType() - // `vtype` will be `wasmedge.ValType_F64`. - vmut := globtype.GetMutability() - // `vmut` will be `wasmedge.ValMut_Var`. + vtype := globtype.GetValType() + // `vtype` will be `wasmedge.ValType_F64`. + vmut := globtype.GetMutability() + // `vmut` will be `wasmedge.ValMut_Var`. - globtype.Release() - ``` + globtype.Release() + ``` 6. Import type context - The `ImportType` is an object holds the import type context and used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `ImportType` object. The details about querying `ImportType` objects will be introduced in the [AST Module](#ast-module). + The `ImportType` is an object holds the import type context and used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `ImportType` object. The details about querying `ImportType` objects will be introduced in the [AST Module](#ast-module). - ```go - var ast *wasmedge.AST = ... - // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. - imptypelist := ast.ListImports() - // Assume that `imptypelist` is an array listed from the `ast` for the imports. + ```go + var ast *wasmedge.AST = ... + // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. + imptypelist := ast.ListImports() + // Assume that `imptypelist` is an array listed from the `ast` for the imports. - for i, imptype := range imptypelist { - exttype := imptype.GetExternalType() - // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, - // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. + for i, imptype := range imptypelist { + exttype := imptype.GetExternalType() + // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, + // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. - modname := imptype.GetModuleName() - extname := imptype.GetExternalName() - // Get the module name and external name of the imports. + modname := imptype.GetModuleName() + extname := imptype.GetExternalName() + // Get the module name and external name of the imports. - extval := imptype.GetExternalValue() - // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, - // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. - } - ``` + extval := imptype.GetExternalValue() + // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, + // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. + } + ``` 7. Export type context - The `ExportType` is an object holds the export type context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `ExportType` objects will be introduced in the [AST Module](#ast-module). + The `ExportType` is an object holds the export type context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `ExportType` objects will be introduced in the [AST Module](#ast-module). - ```go - var ast *wasmedge.AST = ... - // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. - exptypelist := ast.ListExports() - // Assume that `exptypelist` is an array listed from the `ast` for the exports. + ```go + var ast *wasmedge.AST = ... + // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. + exptypelist := ast.ListExports() + // Assume that `exptypelist` is an array listed from the `ast` for the exports. - for i, exptype := range exptypelist { - exttype := exptype.GetExternalType() - // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, - // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. + for i, exptype := range exptypelist { + exttype := exptype.GetExternalType() + // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, + // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. - extname := exptype.GetExternalName() - // Get the external name of the exports. + extname := exptype.GetExternalName() + // Get the external name of the exports. - extval := exptype.GetExternalValue() - // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, - // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. - } - ``` + extval := exptype.GetExternalValue() + // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, + // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. + } + ``` ### Async @@ -409,35 +409,35 @@ After calling the [asynchronous execution APIs](#asynchronous-execution), develo 1. Get the execution result of the asynchronous execution - Developers can use the `(*Async).GetResult()` API to block and wait for getting the return values. This function will block and wait for the execution. If the execution has finished, this function will return immediately. If the execution failed, this function will return an error. + Developers can use the `(*Async).GetResult()` API to block and wait for getting the return values. This function will block and wait for the execution. If the execution has finished, this function will return immediately. If the execution failed, this function will return an error. - ```go - async := ... // Ignored. Asynchronous execute a function. + ```go + async := ... // Ignored. Asynchronous execute a function. - // Blocking and waiting for the execution and get the return values. - res, err := async.GetResult() - async.Release() - ``` + // Blocking and waiting for the execution and get the return values. + res, err := async.GetResult() + async.Release() + ``` 2. Wait for the asynchronous execution with timeout settings - Besides waiting until the end of execution, developers can set the timeout to wait for. - - ```go - async := ... // Ignored. Asynchronous execute a function. - - // Blocking and waiting for the execution with the timeout(ms). - isend := async.WaitFor(1000) - if isend { - res, err := async.GetResult() - // ... - } else { - async.Cancel() - _, err := async.GetResult() - // The error message in `err` will be "execution interrupted". - } - async.Release() - ``` + Besides waiting until the end of execution, developers can set the timeout to wait for. + + ```go + async := ... // Ignored. Asynchronous execute a function. + + // Blocking and waiting for the execution with the timeout(ms). + isend := async.WaitFor(1000) + if isend { + res, err := async.GetResult() + // ... + } else { + async.Cancel() + _, err := async.GetResult() + // The error message in `err` will be "execution interrupted". + } + async.Release() + ``` ### Configurations @@ -445,173 +445,173 @@ The configuration object, `wasmedge.Configure`, manages the configurations for ` 1. Proposals - WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` object. - - ```go - const ( - IMPORT_EXPORT_MUT_GLOBALS = Proposal(C.WasmEdge_Proposal_ImportExportMutGlobals) - NON_TRAP_FLOAT_TO_INT_CONVERSIONS = Proposal(C.WasmEdge_Proposal_NonTrapFloatToIntConversions) - SIGN_EXTENSION_OPERATORS = Proposal(C.WasmEdge_Proposal_SignExtensionOperators) - MULTI_VALUE = Proposal(C.WasmEdge_Proposal_MultiValue) - BULK_MEMORY_OPERATIONS = Proposal(C.WasmEdge_Proposal_BulkMemoryOperations) - REFERENCE_TYPES = Proposal(C.WasmEdge_Proposal_ReferenceTypes) - SIMD = Proposal(C.WasmEdge_Proposal_SIMD) - TAIL_CALL = Proposal(C.WasmEdge_Proposal_TailCall) - ANNOTATIONS = Proposal(C.WasmEdge_Proposal_Annotations) - MEMORY64 = Proposal(C.WasmEdge_Proposal_Memory64) - EXCEPTION_HANDLING = Proposal(C.WasmEdge_Proposal_ExceptionHandling) - EXTENDED_CONST = Proposal(C.WasmEdge_Proposal_ExtendedConst) - THREADS = Proposal(C.WasmEdge_Proposal_Threads) - FUNCTION_REFERENCES = Proposal(C.WasmEdge_Proposal_FunctionReferences) - ) - ``` - - Developers can add or remove the proposals into the `Configure` object. - - ```go - // By default, the following proposals have turned on initially: - // * IMPORT_EXPORT_MUT_GLOBALS - // * NON_TRAP_FLOAT_TO_INT_CONVERSIONS - // * SIGN_EXTENSION_OPERATORS - // * MULTI_VALUE - // * BULK_MEMORY_OPERATIONS - // * REFERENCE_TYPES - // * SIMD - // For the current WasmEdge version, the following proposals are supported: - // * TAIL_CALL - // * MULTI_MEMORIES - // * THREADS - // * EXTENDED_CONST - conf := wasmedge.NewConfigure() - // Developers can also pass the proposals as parameters: - // conf := wasmedge.NewConfigure(wasmedge.SIMD, wasmedge.BULK_MEMORY_OPERATIONS) - conf.AddConfig(wasmedge.SIMD) - conf.RemoveConfig(wasmedge.REFERENCE_TYPES) - is_bulkmem := conf.HasConfig(wasmedge.BULK_MEMORY_OPERATIONS) - // The `is_bulkmem` will be `true`. - conf.Release() - ``` + WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` object. + + ```go + const ( + IMPORT_EXPORT_MUT_GLOBALS = Proposal(C.WasmEdge_Proposal_ImportExportMutGlobals) + NON_TRAP_FLOAT_TO_INT_CONVERSIONS = Proposal(C.WasmEdge_Proposal_NonTrapFloatToIntConversions) + SIGN_EXTENSION_OPERATORS = Proposal(C.WasmEdge_Proposal_SignExtensionOperators) + MULTI_VALUE = Proposal(C.WasmEdge_Proposal_MultiValue) + BULK_MEMORY_OPERATIONS = Proposal(C.WasmEdge_Proposal_BulkMemoryOperations) + REFERENCE_TYPES = Proposal(C.WasmEdge_Proposal_ReferenceTypes) + SIMD = Proposal(C.WasmEdge_Proposal_SIMD) + TAIL_CALL = Proposal(C.WasmEdge_Proposal_TailCall) + ANNOTATIONS = Proposal(C.WasmEdge_Proposal_Annotations) + MEMORY64 = Proposal(C.WasmEdge_Proposal_Memory64) + EXCEPTION_HANDLING = Proposal(C.WasmEdge_Proposal_ExceptionHandling) + EXTENDED_CONST = Proposal(C.WasmEdge_Proposal_ExtendedConst) + THREADS = Proposal(C.WasmEdge_Proposal_Threads) + FUNCTION_REFERENCES = Proposal(C.WasmEdge_Proposal_FunctionReferences) + ) + ``` + + Developers can add or remove the proposals into the `Configure` object. + + ```go + // By default, the following proposals have turned on initially: + // * IMPORT_EXPORT_MUT_GLOBALS + // * NON_TRAP_FLOAT_TO_INT_CONVERSIONS + // * SIGN_EXTENSION_OPERATORS + // * MULTI_VALUE + // * BULK_MEMORY_OPERATIONS + // * REFERENCE_TYPES + // * SIMD + // For the current WasmEdge version, the following proposals are supported: + // * TAIL_CALL + // * MULTI_MEMORIES + // * THREADS + // * EXTENDED_CONST + conf := wasmedge.NewConfigure() + // Developers can also pass the proposals as parameters: + // conf := wasmedge.NewConfigure(wasmedge.SIMD, wasmedge.BULK_MEMORY_OPERATIONS) + conf.AddConfig(wasmedge.SIMD) + conf.RemoveConfig(wasmedge.REFERENCE_TYPES) + is_bulkmem := conf.HasConfig(wasmedge.BULK_MEMORY_OPERATIONS) + // The `is_bulkmem` will be `true`. + conf.Release() + ``` 2. Host registrations - This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` objects. - - ```go - const ( - WASI = HostRegistration(C.WasmEdge_HostRegistration_Wasi) - WasmEdge_PROCESS = HostRegistration(C.WasmEdge_HostRegistration_WasmEdge_Process) - WasiNN = HostRegistration(C.WasmEdge_HostRegistration_WasiNN) - WasiCrypto_Common = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Common) - WasiCrypto_AsymmetricCommon = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_AsymmetricCommon) - WasiCrypto_Kx = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Kx) - WasiCrypto_Signatures = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Signatures) - WasiCrypto_Symmetric = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Symmetric) - ) - ``` - - The details will be introduced in the [preregistrations of VM context](#preregistrations). - - ```go - conf := wasmedge.NewConfigure() - // Developers can also pass the proposals as parameters: - // conf := wasmedge.NewConfigure(wasmedge.WASI) - conf.AddConfig(wasmedge.WASI) - conf.Release() - ``` + This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` objects. + + ```go + const ( + WASI = HostRegistration(C.WasmEdge_HostRegistration_Wasi) + WasmEdge_PROCESS = HostRegistration(C.WasmEdge_HostRegistration_WasmEdge_Process) + WasiNN = HostRegistration(C.WasmEdge_HostRegistration_WasiNN) + WasiCrypto_Common = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Common) + WasiCrypto_AsymmetricCommon = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_AsymmetricCommon) + WasiCrypto_Kx = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Kx) + WasiCrypto_Signatures = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Signatures) + WasiCrypto_Symmetric = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Symmetric) + ) + ``` + + The details will be introduced in the [preregistrations of VM context](#preregistrations). + + ```go + conf := wasmedge.NewConfigure() + // Developers can also pass the proposals as parameters: + // conf := wasmedge.NewConfigure(wasmedge.WASI) + conf.AddConfig(wasmedge.WASI) + conf.Release() + ``` 3. Maximum memory pages - Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` objects. + Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` objects. - ```go - conf := wasmedge.NewConfigure() + ```go + conf := wasmedge.NewConfigure() - pagesize := conf.GetMaxMemoryPage() - // By default, the maximum memory page size in each memory instances is 65536. - conf.SetMaxMemoryPage(1234) - pagesize = conf.GetMaxMemoryPage() - // `pagesize` will be 1234. + pagesize := conf.GetMaxMemoryPage() + // By default, the maximum memory page size in each memory instances is 65536. + conf.SetMaxMemoryPage(1234) + pagesize = conf.GetMaxMemoryPage() + // `pagesize` will be 1234. - conf.Release() - ``` + conf.Release() + ``` 4. Forcibly interpreter mode (`v0.11.2` or upper only) - If developers want to execute the WASM file or the AOT compiled WASM in interpreter mode forcibly, they can turn on the configuration. + If developers want to execute the WASM file or the AOT compiled WASM in interpreter mode forcibly, they can turn on the configuration. - ```go - conf := wasmedge.NewConfigure() + ```go + conf := wasmedge.NewConfigure() - is_forceinterp := conf.IsForceInterpreter() - // By default, the `is_forceinterp` will be `false`. - conf.SetForceInterpreter(true) - is_forceinterp = conf.IsForceInterpreter() - /* The `is_forceinterp` will be `true`. */ + is_forceinterp := conf.IsForceInterpreter() + // By default, the `is_forceinterp` will be `false`. + conf.SetForceInterpreter(true) + is_forceinterp = conf.IsForceInterpreter() + /* The `is_forceinterp` will be `true`. */ - conf.Release() - ``` + conf.Release() + ``` 5. AOT compiler options - The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. - - ```go - const ( - // Disable as many optimizations as possible. - CompilerOptLevel_O0 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O0) - // Optimize quickly without destroying debuggability. - CompilerOptLevel_O1 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O1) - // Optimize for fast execution as much as possible without triggering significant incremental compile time or code size growth. - CompilerOptLevel_O2 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O2) - // Optimize for fast execution as much as possible. - CompilerOptLevel_O3 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O3) - // Optimize for small code size as much as possible without triggering significant incremental compile time or execution time slowdowns. - CompilerOptLevel_Os = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Os) - // Optimize for small code size as much as possible. - CompilerOptLevel_Oz = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Oz) - ) - - const ( - // Native dynamic library format. - CompilerOutputFormat_Native = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Native) - // WebAssembly with AOT compiled codes in custom section. - CompilerOutputFormat_Wasm = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Wasm) - ) - ``` - - These configurations are only effective in `Compiler` contexts. - - ```go - conf := wasmedge.NewConfigure() - - // By default, the optimization level is O3. - conf.SetCompilerOptimizationLevel(wasmedge.CompilerOptLevel_O2) - // By default, the output format is universal WASM. - conf.SetCompilerOutputFormat(wasmedge.CompilerOutputFormat_Native) - // By default, the dump IR is `false`. - conf.SetCompilerDumpIR(true) - // By default, the generic binary is `false`. - conf.SetCompilerGenericBinary(true) - - conf.Release() - ``` + The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. + + ```go + const ( + // Disable as many optimizations as possible. + CompilerOptLevel_O0 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O0) + // Optimize quickly without destroying debuggability. + CompilerOptLevel_O1 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O1) + // Optimize for fast execution as much as possible without triggering significant incremental compile time or code size growth. + CompilerOptLevel_O2 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O2) + // Optimize for fast execution as much as possible. + CompilerOptLevel_O3 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O3) + // Optimize for small code size as much as possible without triggering significant incremental compile time or execution time slowdowns. + CompilerOptLevel_Os = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Os) + // Optimize for small code size as much as possible. + CompilerOptLevel_Oz = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Oz) + ) + + const ( + // Native dynamic library format. + CompilerOutputFormat_Native = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Native) + // WebAssembly with AOT compiled codes in custom section. + CompilerOutputFormat_Wasm = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Wasm) + ) + ``` + + These configurations are only effective in `Compiler` contexts. + + ```go + conf := wasmedge.NewConfigure() + + // By default, the optimization level is O3. + conf.SetCompilerOptimizationLevel(wasmedge.CompilerOptLevel_O2) + // By default, the output format is universal WASM. + conf.SetCompilerOutputFormat(wasmedge.CompilerOutputFormat_Native) + // By default, the dump IR is `false`. + conf.SetCompilerDumpIR(true) + // By default, the generic binary is `false`. + conf.SetCompilerGenericBinary(true) + + conf.Release() + ``` 6. Statistics options - The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` objects. + The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` objects. - ```go - conf := wasmedge.NewConfigure() + ```go + conf := wasmedge.NewConfigure() - // By default, the instruction counting is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsInstructionCounting(true) - // By default, the cost measurement is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsTimeMeasuring(true) - // By default, the time measurement is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsCostMeasuring(true) + // By default, the instruction counting is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsInstructionCounting(true) + // By default, the cost measurement is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsTimeMeasuring(true) + // By default, the time measurement is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsCostMeasuring(true) - conf.Release() - ``` + conf.Release() + ``` ### Statistics @@ -621,46 +621,46 @@ Before using statistics, the statistics configuration must be set. Otherwise, th 1. Instruction counter - The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` object from the `VM` object, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. + The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` object from the `VM` object, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. - ```go - stat := wasmedge.NewStatistics() - // ... After running the WASM functions with the `Statistics` object + ```go + stat := wasmedge.NewStatistics() + // ... After running the WASM functions with the `Statistics` object - count := stat.GetInstrCount() - ips := stat.GetInstrPerSecond() - stat.Release() - ``` + count := stat.GetInstrCount() + ips := stat.GetInstrPerSecond() + stat.Release() + ``` 2. Cost table - The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` object. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. - - ```c - stat := wasmedge.NewStatistics() - - costtable := []uint64{ - 0, 0, - 10, /* 0x02: Block */ - 11, /* 0x03: Loop */ - 12, /* 0x04: If */ - 12, /* 0x05: Else */ - 0, 0, 0, 0, 0, 0, - 20, /* 0x0C: Br */ - 21, /* 0x0D: Br_if */ - 22, /* 0x0E: Br_table */ - 0, - } - // Developers can set the costs of each instruction. The value not covered will be 0. - - WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); - stat.SetCostTable() - stat.SetCostLimit(5000000) - - // ... After running the WASM functions with the `Statistics` object - cost := stat.GetTotalCost() - stat.Release() - ``` + The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` object. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. + + ```c + stat := wasmedge.NewStatistics() + + costtable := []uint64{ + 0, 0, + 10, /* 0x02: Block */ + 11, /* 0x03: Loop */ + 12, /* 0x04: If */ + 12, /* 0x05: Else */ + 0, 0, 0, 0, 0, 0, + 20, /* 0x0C: Br */ + 21, /* 0x0D: Br_if */ + 22, /* 0x0E: Br_table */ + 0, + } + // Developers can set the costs of each instruction. The value not covered will be 0. + + WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); + stat.SetCostTable() + stat.SetCostLimit(5000000) + + // ... After running the WASM functions with the `Statistics` object + cost := stat.GetTotalCost() + stat.Release() + ``` ### Tools Driver @@ -720,157 +720,157 @@ The following shows the example of running the WASM for getting the Fibonacci. T 1. Run WASM functions rapidly - Create a new Go project first: - - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` - - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current `wasmedge_test` directory, and create and edit the Go file `main.go` as following: - - ```go - package main - - import ( - "fmt" + Create a new Go project first: - "github.com/second-state/WasmEdge-go/wasmedge" - ) + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - func main() { - // Set the logging level. - wasmedge.SetLogErrorLevel() - - // Create the configure context and add the WASI support. - // This step is not necessary unless you need WASI support. - conf := wasmedge.NewConfigure(wasmedge.WASI) - // Create VM with the configure. - vm := wasmedge.NewVMWithConfig(conf) - - res, err := vm.RunWasmFile("fibonacci.wasm", "fib", uint32(21)) - if err == nil { - fmt.Println("Get fibonacci[21]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - vm.Release() - conf.Release() - } - ``` + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current `wasmedge_test` directory, and create and edit the Go file `main.go` as following: - Then you can build and run the Golang application with the WasmEdge Golang SDK: (the 21 Fibonacci number is 17711 in 0-based index) + ```go + package main - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 - $ go build - $ ./wasmedge_test - Get fibonacci[21]: 17711 - ``` + import ( + "fmt" -2. Instantiate and run WASM functions manually + "github.com/second-state/WasmEdge-go/wasmedge" + ) - Besides the above example, developers can run the WASM functions step-by-step with `VM` object APIs: + func main() { + // Set the logging level. + wasmedge.SetLogErrorLevel() - ```go - package main + // Create the configure context and add the WASI support. + // This step is not necessary unless you need WASI support. + conf := wasmedge.NewConfigure(wasmedge.WASI) + // Create VM with the configure. + vm := wasmedge.NewVMWithConfig(conf) - import ( - "fmt" + res, err := vm.RunWasmFile("fibonacci.wasm", "fib", uint32(21)) + if err == nil { + fmt.Println("Get fibonacci[21]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } - "github.com/second-state/WasmEdge-go/wasmedge" - ) + vm.Release() + conf.Release() + } + ``` - func main() { - // Set the logging level. - wasmedge.SetLogErrorLevel() - - // Create VM. - vm := wasmedge.NewVM() - var err error - var res []interface{} - - // Step 1: Load WASM file. - err = vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - // Developers can load, validate, and instantiate another WASM module - // to replace the instantiated one. In this case, the old module will - // be cleared, but the registered modules are still kept. - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // Step 4: Execute WASM functions. Parameters: (funcname, args...) - res, err = vm.Execute("fib", uint32(25)) - // Developers can execute functions repeatedly after instantiation. - if err == nil { - fmt.Println("Get fibonacci[25]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - vm.Release() - } - ``` + Then you can build and run the Golang application with the WasmEdge Golang SDK: (the 21 Fibonacci number is 17711 in 0-based index) - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 + $ go build + $ ./wasmedge_test + Get fibonacci[21]: 17711 + ``` - ```bash - $ go build - $ ./wasmedge_test - Get fibonacci[25]: 121393 - ``` - - The following graph explains the status of the `VM` object. - - ```text - |========================| - |------->| VM: Initiated | - | |========================| - | | - | LoadWasm - | | - | v - | |========================| - |--------| VM: Loaded |<-------| - | |========================| | - | | ^ | - | Validate | | - Cleanup | LoadWasm | - | v | LoadWasm - | |========================| | - |--------| VM: Validated | | - | |========================| | - | | ^ | - | Instantiate | | - | | RegisterModule | - | v | | - | |========================| | - |--------| VM: Instantiated |--------| - |========================| - | ^ - | | - -------------- - Instantiate, Execute, ExecuteRegistered, - ExecuteBindgen, ExecuteBindgenRegistered - ``` +2. Instantiate and run WASM functions manually - The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or import objects in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. + Besides the above example, developers can run the WASM functions step-by-step with `VM` object APIs: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + func main() { + // Set the logging level. + wasmedge.SetLogErrorLevel() + + // Create VM. + vm := wasmedge.NewVM() + var err error + var res []interface{} + + // Step 1: Load WASM file. + err = vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } + + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + // Developers can load, validate, and instantiate another WASM module + // to replace the instantiated one. In this case, the old module will + // be cleared, but the registered modules are still kept. + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // Step 4: Execute WASM functions. Parameters: (funcname, args...) + res, err = vm.Execute("fib", uint32(25)) + // Developers can execute functions repeatedly after instantiation. + if err == nil { + fmt.Println("Get fibonacci[25]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } + + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go build + $ ./wasmedge_test + Get fibonacci[25]: 121393 + ``` + + The following graph explains the status of the `VM` object. + + ```text + |========================| + |------->| VM: Initiated | + | |========================| + | | + | LoadWasm + | | + | v + | |========================| + |--------| VM: Loaded |<-------| + | |========================| | + | | ^ | + | Validate | | + Cleanup | LoadWasm | + | v | LoadWasm + | |========================| | + |--------| VM: Validated | | + | |========================| | + | | ^ | + | Instantiate | | + | | RegisterModule | + | v | | + | |========================| | + |--------| VM: Instantiated |--------| + |========================| + | ^ + | | + -------------- + Instantiate, Execute, ExecuteRegistered, + ExecuteBindgen, ExecuteBindgenRegistered + ``` + + The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or import objects in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. ### VM Creations @@ -906,82 +906,82 @@ WasmEdge provides the following built-in pre-registrations. 1. [WASI (WebAssembly System Interface)](https://github.com/WebAssembly/WASI) - Developers can turn on the WASI support for VM in the `Configure` object. + Developers can turn on the WASI support for VM in the `Configure` object. - ```go - conf := wasmedge.NewConfigure(wasmedge.WASI) - // Or you can set the `wasmedge.WASI` into the configure object through `(*Configure).AddConfig`. - vm := wasmedge.NewVMWithConfig(conf) - conf.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WASI) + // Or you can set the `wasmedge.WASI` into the configure object through `(*Configure).AddConfig`. + vm := wasmedge.NewVMWithConfig(conf) + conf.Release() - // The following API can retrieve the pre-registration import objects from the VM object. - // This API will return `nil` if the corresponding pre-registration is not set into the configuration. - wasimodule := vm.GetImportModule(wasmedge.WASI) - // Initialize the WASI. - wasimodule.InitWasi(/* ... ignored */) + // The following API can retrieve the pre-registration import objects from the VM object. + // This API will return `nil` if the corresponding pre-registration is not set into the configuration. + wasimodule := vm.GetImportModule(wasmedge.WASI) + // Initialize the WASI. + wasimodule.InitWasi(/* ... ignored */) - vm.Release() - ``` + vm.Release() + ``` - And also can create the WASI import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 2. [WasmEdge_Process](https://crates.io/crates/wasmedge_process_interface) - This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` plugin. + This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` plugin. - ```go - conf := wasmedge.NewConfigure(wasmedge.WasmEdge_PROCESS) - vm := wasmedge.NewVMWithConfig(conf) - conf.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WasmEdge_PROCESS) + vm := wasmedge.NewVMWithConfig(conf) + conf.Release() - // The following API can retrieve the pre-registration import objects from the VM object. - // This API will return `nil` if the corresponding pre-registration is not set into the configuration. - procmodule := vm.GetImportModule(wasmedge.WasmEdge_PROCESS) - // Initialize the WasmEdge_Process. - procmodule.InitWasmEdgeProcess(/* ... ignored */) + // The following API can retrieve the pre-registration import objects from the VM object. + // This API will return `nil` if the corresponding pre-registration is not set into the configuration. + procmodule := vm.GetImportModule(wasmedge.WasmEdge_PROCESS) + // Initialize the WasmEdge_Process. + procmodule.InitWasmEdgeProcess(/* ... ignored */) - vm.Release() - ``` + vm.Release() + ``` - And also can create the WasmEdge_Process import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WasmEdge_Process import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 3. [WASI-NN proposal](https://github.com/WebAssembly/wasi-nn) - Developers can turn on the WASI-NN proposal support for VM in the `Configure` object. + Developers can turn on the WASI-NN proposal support for VM in the `Configure` object. - > Note: Please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. + > Note: Please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. - ```go - conf := wasmedge.NewConfigure(wasmedge.WasiNN) - vm := wasmedge.NewVMWithConfig(conf) - conf.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WasiNN) + vm := wasmedge.NewVMWithConfig(conf) + conf.Release() - // The following API can retrieve the pre-registration import objects from the VM object. - // This API will return `nil` if the corresponding pre-registration is not set into the configuration. - nnmodule := vm.GetImportModule(wasmedge.WasiNN) - vm.Release() - ``` + // The following API can retrieve the pre-registration import objects from the VM object. + // This API will return `nil` if the corresponding pre-registration is not set into the configuration. + nnmodule := vm.GetImportModule(wasmedge.WasiNN) + vm.Release() + ``` - And also can create the WASI-NN module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI-NN module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 4. [WASI-Crypto proposal](https://github.com/WebAssembly/wasi-crypto) - Developers can turn on the WASI-Crypto proposal support for VM in the `Configure` object. + Developers can turn on the WASI-Crypto proposal support for VM in the `Configure` object. - > Note: Please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. + > Note: Please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. - ```go - conf := wasmedge.NewConfigure(wasmedge.WasiCrypto_Common, wasmedge.WasiCrypto_AsymmetricCommon, wasmedge.WasiCrypto_Kx, wasmedge.WasiCrypto_Signatures, wasmedge.WasiCrypto_Symmetric) - vm := wasmedge.NewVMWithConfig(conf) - conf.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WasiCrypto_Common, wasmedge.WasiCrypto_AsymmetricCommon, wasmedge.WasiCrypto_Kx, wasmedge.WasiCrypto_Signatures, wasmedge.WasiCrypto_Symmetric) + vm := wasmedge.NewVMWithConfig(conf) + conf.Release() - // The following API can retrieve the pre-registration import objects from the VM object. - // This API will return `nil` if the corresponding pre-registration is not set into the configuration. - nnmodule := vm.GetImportModule(wasmedge.WasiCrypto_Common) - vm.Release() - ``` + // The following API can retrieve the pre-registration import objects from the VM object. + // This API will return `nil` if the corresponding pre-registration is not set into the configuration. + nnmodule := vm.GetImportModule(wasmedge.WasiCrypto_Common) + vm.Release() + ``` - And also can create the WASI-Crypto module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI-Crypto module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). ### Host Module Registrations @@ -1006,211 +1006,211 @@ In WebAssembly, the instances in WASM modules can be exported and can be importe 1. Register the WASM modules with exported module names - Unless the import objects have already contained the module names, every WASM module should be named uniquely when registering. The following shows the example. + Unless the import objects have already contained the module names, every WASM module should be named uniquely when registering. The following shows the example. - Create a new Go project first: + Create a new Go project first: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. Then create and edit the Go file `main.go` as following: + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. Then create and edit the Go file `main.go` as following: - ```go - package main + ```go + package main - import "github.com/second-state/WasmEdge-go/wasmedge" + import "github.com/second-state/WasmEdge-go/wasmedge" - func main() { - // Create VM. - vm := wasmedge.NewVM() + func main() { + // Create VM. + vm := wasmedge.NewVM() - var err error - err = vm.RegisterWasmFile("module_name", "fibonacci.wasm") - // Developers can register the WASM module from `[]byte` with the - // `(*VM).RegisterWasmBuffer` function, or from `AST` object with - // the `(*VM).RegisterAST` function. - // The result status should be checked. The error will occur if the - // WASM module instantiation failed or the module name conflicts. + var err error + err = vm.RegisterWasmFile("module_name", "fibonacci.wasm") + // Developers can register the WASM module from `[]byte` with the + // `(*VM).RegisterWasmBuffer` function, or from `AST` object with + // the `(*VM).RegisterAST` function. + // The result status should be checked. The error will occur if the + // WASM module instantiation failed or the module name conflicts. - vm.Release() - } - ``` + vm.Release() + } + ``` 2. Execute the functions in registered WASM modules - Edit the Go file `main.go` as following: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - // Create VM. - vm := wasmedge.NewVM() - - var res []interface{} - var err error - // Register the WASM module from file into VM with the module name "mod". - err = vm.RegisterWasmFile("mod", "fibonacci.wasm") - // Developers can register the WASM module from `[]byte` with the - // `(*VM).RegisterWasmBuffer` function, or from `AST` object with - // the `(*VM).RegisterAST` function. - if err != nil { - fmt.Println("WASM registration failed:", err.Error()) - return - } - // The function "fib" in the "fibonacci.wasm" was exported with the module - // name "mod". As the same as host functions, other modules can import the - // function `"mod" "fib"`. - - // Execute WASM functions in registered modules. - // Unlike the execution of functions, the registered functions can be - // invoked without `(*VM).Instantiate` because the WASM module was - // instantiated when registering. - // Developers can also invoke the host functions directly with this API. - res, err = vm.ExecuteRegistered("mod", "fib", int32(25)) - if err == nil { - fmt.Println("Get fibonacci[25]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - vm.Release() - } - ``` - - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) - - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 - $ go build - $ ./wasmedge_test - Get fibonacci[25]: 121393 - ``` + Edit the Go file `main.go` as following: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + func main() { + // Create VM. + vm := wasmedge.NewVM() + + var res []interface{} + var err error + // Register the WASM module from file into VM with the module name "mod". + err = vm.RegisterWasmFile("mod", "fibonacci.wasm") + // Developers can register the WASM module from `[]byte` with the + // `(*VM).RegisterWasmBuffer` function, or from `AST` object with + // the `(*VM).RegisterAST` function. + if err != nil { + fmt.Println("WASM registration failed:", err.Error()) + return + } + // The function "fib" in the "fibonacci.wasm" was exported with the module + // name "mod". As the same as host functions, other modules can import the + // function `"mod" "fib"`. + + // Execute WASM functions in registered modules. + // Unlike the execution of functions, the registered functions can be + // invoked without `(*VM).Instantiate` because the WASM module was + // instantiated when registering. + // Developers can also invoke the host functions directly with this API. + res, err = vm.ExecuteRegistered("mod", "fib", int32(25)) + if err == nil { + fmt.Println("Get fibonacci[25]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } + + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 + $ go build + $ ./wasmedge_test + Get fibonacci[25]: 121393 + ``` ### Asynchronous Execution 1. Asynchronously run WASM functions rapidly - Assume that a new Go project is created as following: - - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` - - Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: + Assume that a new Go project is created as following: - ```go - package main + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - import ( - "fmt" + Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: - "github.com/second-state/WasmEdge-go/wasmedge" - ) + ```go + package main - func main() { - // Create VM. - vm := wasmedge.NewVM() - - // Asynchronously run the WASM function from file and get the `wasmedge.Async` object. - async := vm.AsyncRunWasmFile("fibonacci.wasm", "fib", uint32(20)) - - // Block and wait for the execution and get the results. - res, err := async.GetResult() - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - async.Release() - vm.Release() - } - ``` + import ( + "fmt" - Then you can build and run: (the 20th Fibonacci number is 10946 in 0-based index) + "github.com/second-state/WasmEdge-go/wasmedge" + ) - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 - $ go build - $ ./wasmedge_test - Get the result: 10946 - ``` + func main() { + // Create VM. + vm := wasmedge.NewVM() -2. Instantiate and asynchronously run WASM functions manually + // Asynchronously run the WASM function from file and get the `wasmedge.Async` object. + async := vm.AsyncRunWasmFile("fibonacci.wasm", "fib", uint32(20)) - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + // Block and wait for the execution and get the results. + res, err := async.GetResult() + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + async.Release() + vm.Release() + } + ``` - ```go - package main + Then you can build and run: (the 20th Fibonacci number is 10946 in 0-based index) - import ( - "fmt" + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 + $ go build + $ ./wasmedge_test + Get the result: 10946 + ``` - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - var err error - var res []interface{} - - // Create VM. - vm := wasmedge.NewVM() - - // Step 1: Load WASM file. - // Developers can load the WASM binary from buffer with the `(*VM).LoadWasmBuffer()` API, - // or from `wasmedge.AST` object with the `(*VM).LoadWasmAST()` API. - err := vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // Step 4: Asynchronously execute the WASM function and get the `wasmedge.Async` object. - async := vm.AsyncExecute("fib", uint32(25)) - - // Block and wait for the execution and get the results. - res, err := async.GetResult() - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - async.Release() - vm.Release() - } - ``` +2. Instantiate and asynchronously run WASM functions manually - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) - - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 - $ go build - $ ./wasmedge_test - Get the result: 121393 - ``` + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + func main() { + var err error + var res []interface{} + + // Create VM. + vm := wasmedge.NewVM() + + // Step 1: Load WASM file. + // Developers can load the WASM binary from buffer with the `(*VM).LoadWasmBuffer()` API, + // or from `wasmedge.AST` object with the `(*VM).LoadWasmAST()` API. + err := vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } + + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // Step 4: Asynchronously execute the WASM function and get the `wasmedge.Async` object. + async := vm.AsyncExecute("fib", uint32(25)) + + // Block and wait for the execution and get the results. + res, err := async.GetResult() + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + async.Release() + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 + $ go build + $ ./wasmedge_test + Get the result: 121393 + ``` ### Instance Tracing @@ -1218,136 +1218,136 @@ Sometimes the developers may have requirements to get the instances of the WASM 1. Store - If the `VM` object is created without assigning a `Store` object, the `VM` context will allocate and own a `Store`. + If the `VM` object is created without assigning a `Store` object, the `VM` context will allocate and own a `Store`. - ```go - vm := wasmedge.NewVM() - store := vm.GetStore() - // The object should __NOT__ be deleted by calling `(*Store).Release`. - vm.Release() - ``` + ```go + vm := wasmedge.NewVM() + store := vm.GetStore() + // The object should __NOT__ be deleted by calling `(*Store).Release`. + vm.Release() + ``` - Developers can also create the `VM` object with a `Store` object. In this case, developers should guarantee that the `Store` object cannot be released before the `VM` object. Please refer to the [Store Objects](#store) for the details about the `Store` APIs. + Developers can also create the `VM` object with a `Store` object. In this case, developers should guarantee that the `Store` object cannot be released before the `VM` object. Please refer to the [Store Objects](#store) for the details about the `Store` APIs. - ```go - store := wasmedge.NewStore() - vm := wasmedge.NewVMWithStore(store) + ```go + store := wasmedge.NewStore() + vm := wasmedge.NewVMWithStore(store) - storemock := vm.GetStore() - // The internal store context of the `store` and the `storemock` are the same. + storemock := vm.GetStore() + // The internal store context of the `store` and the `storemock` are the same. - vm.Release() - store.Release() - ``` + vm.Release() + store.Release() + ``` 2. List exported functions - After the WASM module instantiation, developers can use the `(*VM).Execute` function to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. + After the WASM module instantiation, developers can use the `(*VM).Execute` function to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. - Assume that a new Go project is created as following: + Assume that a new Go project is created as following: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: + Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: - ```go - package main + ```go + package main - import ( - "fmt" + import ( + "fmt" - "github.com/second-state/WasmEdge-go/wasmedge" - ) + "github.com/second-state/WasmEdge-go/wasmedge" + ) - func main() { - // Create VM. - vm := wasmedge.NewVM() - - // Step 1: Load WASM file. - err := vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // List the exported functions for the names and function types. - funcnames, functypes := vm.GetFunctionList() - for _, fname := range funcnames { - fmt.Println("Exported function name:", fname) - } - for _, ftype := range functypes { - // `ftype` is the `FunctionType` object of the same index in the `funcnames` array. - // Developers should __NOT__ call the `ftype.Release()`. - } - - vm.Release() - } - ``` + func main() { + // Create VM. + vm := wasmedge.NewVM() - Then you can build and run: (the only exported function in `fibonacci.wasm` is `fib`) + // Step 1: Load WASM file. + err := vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 - $ go build - $ ./wasmedge_test - Exported function name: fib - ``` + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // List the exported functions for the names and function types. + funcnames, functypes := vm.GetFunctionList() + for _, fname := range funcnames { + fmt.Println("Exported function name:", fname) + } + for _, ftype := range functypes { + // `ftype` is the `FunctionType` object of the same index in the `funcnames` array. + // Developers should __NOT__ call the `ftype.Release()`. + } - If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` object from the `VM` object and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. + vm.Release() + } + ``` + + Then you can build and run: (the only exported function in `fibonacci.wasm` is `fib`) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 + $ go build + $ ./wasmedge_test + Exported function name: fib + ``` + + If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` object from the `VM` object and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. 3. Get function types - The `VM` object provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. + The `VM` object provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. - ```go - // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. - functype := vm.GetFunctionType("fib") - // Developers can get the function types of functions in the registered modules via the - // `(*VM).GetFunctionTypeRegistered` API with the function name and the module name. - // If the function is not found, these APIs will return `nil`. - // Developers should __NOT__ call the `(*FunctionType).Release` function of the returned object. - ``` + ```go + // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. + functype := vm.GetFunctionType("fib") + // Developers can get the function types of functions in the registered modules via the + // `(*VM).GetFunctionTypeRegistered` API with the function name and the module name. + // If the function is not found, these APIs will return `nil`. + // Developers should __NOT__ call the `(*FunctionType).Release` function of the returned object. + ``` 4. Get the active module - After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` object. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `(*VM).GetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. + After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` object. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `(*VM).GetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. - ```go - // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. - mod := vm.GetActiveModule() - // If there's no WASM module instantiated, this API will return `nil`. - // Developers should __NOT__ call the `(*Module).Release` function of the returned module instance. - ``` + ```go + // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. + mod := vm.GetActiveModule() + // If there's no WASM module instantiated, this API will return `nil`. + // Developers should __NOT__ call the `(*Module).Release` function of the returned module instance. + ``` 5. Get the components - The `VM` object is composed by the `Loader`, `Validator`, and `Executor` objects. For the developers who want to use these objects without creating another instances, these APIs can help developers to get them from the `VM` object. The get objects are owned by the `VM` object, and developers should not call their release functions. + The `VM` object is composed by the `Loader`, `Validator`, and `Executor` objects. For the developers who want to use these objects without creating another instances, these APIs can help developers to get them from the `VM` object. The get objects are owned by the `VM` object, and developers should not call their release functions. - ```go - loader := vm.GetLoader() - // Developers should __NOT__ call the `(*Loader).Release` function of the returned object. - validator := vm.GetValidator() - // Developers should __NOT__ call the `(*Validator).Release` function of the returned object. - executor := vm.GetExecutor() - // Developers should __NOT__ call the `(*Executor).Release` function of the returned object. - ``` + ```go + loader := vm.GetLoader() + // Developers should __NOT__ call the `(*Loader).Release` function of the returned object. + validator := vm.GetValidator() + // Developers should __NOT__ call the `(*Validator).Release` function of the returned object. + executor := vm.GetExecutor() + // Developers should __NOT__ call the `(*Executor).Release` function of the returned object. + ``` ## WasmEdge Runtime @@ -1535,119 +1535,119 @@ The `Executor` object is the executor for both WASM and compiled-WASM. This obje 1. Instantiate and register an `AST` object as a named `Module` instance - As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` objects, developers can instantiate and register an `AST` objects into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Register the loaded WASM `ast` into store with the export module name "mod". - mod, res := executor.Register(store, ast, "mod") - if err != nil { - fmt.Println("WASM registration FAILED:", err.Error()) - return - } - - // ... - - // Resources deallocations. - executor.Release() - stat.Release() - store.Release() - mod.Release() - ``` + As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` objects, developers can instantiate and register an `AST` objects into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Register the loaded WASM `ast` into store with the export module name "mod". + mod, res := executor.Register(store, ast, "mod") + if err != nil { + fmt.Println("WASM registration FAILED:", err.Error()) + return + } + + // ... + + // Resources deallocations. + executor.Release() + stat.Release() + store.Release() + mod.Release() + ``` 2. Register an existing `Module` instance and export the module name - Besides instantiating and registering an `AST` object, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Create a module instance for host functions. - mod := wasmedge.NewModule("mod") - // ... - // Create and add the host functions, tables, memories, and globals into the module instance. - // ... - - // Register the module instance into store with the exported module name. - // The export module name is in the module instance already. - res := executor.RegisterImport(store, mod) - if err != nil { - fmt.Println("WASM registration FAILED:", err.Error()) - return - } - - // ... - - // Resources deallocations. - executor.Release() - stat.Release() - store.Release() - mod.Release() - ``` + Besides instantiating and registering an `AST` object, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Create a module instance for host functions. + mod := wasmedge.NewModule("mod") + // ... + // Create and add the host functions, tables, memories, and globals into the module instance. + // ... + + // Register the module instance into store with the exported module name. + // The export module name is in the module instance already. + res := executor.RegisterImport(store, mod) + if err != nil { + fmt.Println("WASM registration FAILED:", err.Error()) + return + } + + // ... + + // Resources deallocations. + executor.Release() + stat.Release() + store.Release() + mod.Release() + ``` 3. Instantiate an `AST` object to an anonymous `Module` instance - WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` object for linking. - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Instantiate the WASM module. - mod, err := executor.Instantiate(stpre, ast) - if err != nil { - fmt.Println("WASM instantiation FAILED:", err.Error()) - return - } - - executor.Release() - stat.Release() - store.Release() - mod.Release() - ``` + WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` object for linking. + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Instantiate the WASM module. + mod, err := executor.Instantiate(stpre, ast) + if err != nil { + fmt.Println("WASM instantiation FAILED:", err.Error()) + return + } + + executor.Release() + stat.Release() + store.Release() + mod.Release() + ``` 4. Invoke functions - After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `(*Executor).Invoke` API. + After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `(*Executor).Invoke` API. ### AST Module @@ -1700,667 +1700,667 @@ The instances are the runtime structures of WASM. Developers can retrieve the `M 1. Module instance - After instantiating or registering an `AST` object, developers will get a `Module` instance as the result, and have the responsibility to release it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. + After instantiating or registering an `AST` object, developers will get a `Module` instance as the result, and have the responsibility to release it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. - ```go - // ... - // Instantiate a WASM module via the executor object and get the `mod` as the output module instance. - // ... + ```go + // ... + // Instantiate a WASM module via the executor object and get the `mod` as the output module instance. + // ... - // List the exported instance of the instantiated WASM module. - // Take the function instances for example here. - funcnames := mod.ListFunction() + // List the exported instance of the instantiated WASM module. + // Take the function instances for example here. + funcnames := mod.ListFunction() - // Try to find the exported instance of the instantiated WASM module. - // Take the function instances for example here. - funcinst := mod.FindFunction("fib") - // `funcinst` will be `nil` if the function not found. - // The returned instance is owned by the module instance and should __NOT__ be released. - ``` + // Try to find the exported instance of the instantiated WASM module. + // Take the function instances for example here. + funcinst := mod.FindFunction("fib") + // `funcinst` will be `nil` if the function not found. + // The returned instance is owned by the module instance and should __NOT__ be released. + ``` 2. Function instance - [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` objects for host functions and add them into an `Module` instance for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` objects through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). + [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` objects for host functions and add them into an `Module` instance for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` objects through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). - ```go - funcobj := ... - // `funcobj` is the `*wasmedge.Function` retrieved from the module instance. - functype := funcobj.GetFunctionType() - // The `funcobj` retrieved from the module instance should __NOT__ be released. - // The `functype` retrieved from the `funcobj` should __NOT__ be released. + ```go + funcobj := ... + // `funcobj` is the `*wasmedge.Function` retrieved from the module instance. + functype := funcobj.GetFunctionType() + // The `funcobj` retrieved from the module instance should __NOT__ be released. + // The `functype` retrieved from the `funcobj` should __NOT__ be released. - // For the function object creation, please refer to the `Host Function` guide. - ``` + // For the function object creation, please refer to the `Host Function` guide. + ``` 3. Table instance - In WasmEdge, developers can create the `Table` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Table` objects supply APIs to control the data in table instances. - - ```go - lim := wasmedge.NewLimitWithMax(10, 20) - // Create the table type with limit and the `FuncRef` element type. - tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef, lim) - // Create the table instance with table type. - tabinst := wasmedge.NewTable(tabtype) - // Delete the table type. - tabtype.Release() - - gottabtype := tabinst.GetTableType() - // The `gottabtype` got from table instance is owned by the `tabinst` - // and should __NOT__ be released. - reftype := gottabtype.GetRefType() - // The `reftype` will be `wasmedge.RefType_FuncRef`. - - var gotdata interface{} - data := wasmedge.NewFuncRef(5) - err := tabinst.SetData(data, 3) - // Set the function index 5 to the table[3]. - - // The following line will get an "out of bounds table access" error - // because the position (13) is out of the table size (10): - // err = tabinst.SetData(data, 13) - - gotdata, err = tabinst.GetData(3) - // Get the FuncRef value of the table[3]. - - // The following line will get an "out of bounds table access" error - // because the position (13) is out of the table size (10): - // gotdata, err = tabinst.GetData(13) - - tabsize := tabinst.GetSize() - // `tabsize` will be 10. - err = tabinst.Grow(6) - // Grow the table size of 6, the table size will be 16. - - // The following line will get an "out of bounds table access" error - // because the size (16 + 6) will reach the table limit (20): - // err = tabinst.Grow(6) - - tabinst.Release() - ``` + In WasmEdge, developers can create the `Table` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Table` objects supply APIs to control the data in table instances. -4. Memory instance + ```go + lim := wasmedge.NewLimitWithMax(10, 20) + // Create the table type with limit and the `FuncRef` element type. + tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef, lim) + // Create the table instance with table type. + tabinst := wasmedge.NewTable(tabtype) + // Delete the table type. + tabtype.Release() - In WasmEdge, developers can create the `Memory` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Memory` objects supply APIs to control the data in memory instances. - - ```go - lim := wasmedge.NewLimitWithMax(1, 5) - // Create the memory type with limit. The memory page size is 64KiB. - memtype := wasmedge.NewMemoryType(lim) - // Create the memory instance with memory type. - meminst := wasmedge.NewMemory(memtype) - // Delete the memory type. - memtype.Release() - - data := []byte("A quick brown fox jumps over the lazy dog") - err := meminst.SetData(data, 0x1000, 10) - // Set the data[0:9] to the memory[4096:4105]. - - // The following line will get an "out of bounds memory access" error - // because [65535:65544] is out of 1 page size (65536): - // err = meminst.SetData(data, 0xFFFF, 10) - - var gotdata []byte - gotdata, err = meminst.GetData(0x1000, 10) - // Get the memory[4096:4105]. The `gotdata` will be `[]byte("A quick br"). - // The following line will get an "out of bounds memory access" error - // because [65535:65544] is out of 1 page size (65536): - // gotdata, err = meminst.Getdata(0xFFFF, 10) - - pagesize := meminst.GetPageSize() - // `pagesize` will be 1. - err = meminst.GrowPage(2) - // Grow the page size of 2, the page size of the memory instance will be 3. - - // The following line will get an "out of bounds memory access" error - // because the size (3 + 3) will reach the memory limit (5): - // err = meminst.GetPageSize(3) - - meminst.Release() - ``` + gottabtype := tabinst.GetTableType() + // The `gottabtype` got from table instance is owned by the `tabinst` + // and should __NOT__ be released. + reftype := gottabtype.GetRefType() + // The `reftype` will be `wasmedge.RefType_FuncRef`. -5. Global instance + var gotdata interface{} + data := wasmedge.NewFuncRef(5) + err := tabinst.SetData(data, 3) + // Set the function index 5 to the table[3]. - In WasmEdge, developers can create the `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Global` objects supply APIs to control the value in global instances. - - ```go - // Create the global type with value type and mutation. - globtype := wasmedge.NewGlobalType(wasmedge.ValType_I64, wasmedge.ValMut_Var) - // Create the global instance with value and global type. - globinst := wasmedge.NewGlobal(globtype, uint64(1000)) - // Delete the global type. - globtype.Release() - - gotglobtype := globinst.GetGlobalType() - // The `gotglobtype` got from global instance is owned by the `globinst` - // and should __NOT__ be released. - valtype := gotglobtype.GetValType() - // The `valtype` will be `wasmedge.ValType_I64`. - valmut := gotglobtype.GetMutability() - // The `valmut` will be `wasmedge.ValMut_Var`. - - globinst.SetValue(uint64(888)) - // Set the value u64(888) to the global. - // This function will do nothing if the value type mismatched or the - // global mutability is `wasmedge.ValMut_Const`. - gotval := globinst.GetValue() - // The `gotbal` will be `interface{}` which the type is `uint64` and - // the value is 888. - - globinst.Release() - ``` + // The following line will get an "out of bounds table access" error + // because the position (13) is out of the table size (10): + // err = tabinst.SetData(data, 13) -### Host Functions + gotdata, err = tabinst.GetData(3) + // Get the FuncRef value of the table[3]. -[Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge-go, developers can create the `Function`, `Memory`, `Table`, and `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. + // The following line will get an "out of bounds table access" error + // because the position (13) is out of the table size (10): + // gotdata, err = tabinst.GetData(13) -1. Host function allocation + tabsize := tabinst.GetSize() + // `tabsize` will be 10. + err = tabinst.Grow(6) + // Grow the table size of 6, the table size will be 16. - Developers can define Go functions with the following function signature as the host function body: + // The following line will get an "out of bounds table access" error + // because the size (16 + 6) will reach the table limit (20): + // err = tabinst.Grow(6) - ```go - type hostFunctionSignature func( - data interface{}, callframe *CallingFrame, params []interface{}) ([]interface{}, Result) - ``` + tabinst.Release() + ``` - The example of an `add` host function to add 2 `i32` values: +4. Memory instance - ```go - func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) + In WasmEdge, developers can create the `Memory` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Memory` objects supply APIs to control the data in memory instances. - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res + ```go + lim := wasmedge.NewLimitWithMax(1, 5) + // Create the memory type with limit. The memory page size is 64KiB. + memtype := wasmedge.NewMemoryType(lim) + // Create the memory instance with memory type. + meminst := wasmedge.NewMemory(memtype) + // Delete the memory type. + memtype.Release() - // Return - return returns, wasmedge.Result_Success - } - ``` + data := []byte("A quick brown fox jumps over the lazy dog") + err := meminst.SetData(data, 0x1000, 10) + // Set the data[0:9] to the memory[4096:4105]. - Then developers can create `Function` object with the host function body and function type: + // The following line will get an "out of bounds memory access" error + // because [65535:65544] is out of 1 page size (65536): + // err = meminst.SetData(data, 0xFFFF, 10) - ```go - // Create a function type: {i32, i32} -> {i32}. - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) + var gotdata []byte + gotdata, err = meminst.GetData(0x1000, 10) + // Get the memory[4096:4105]. The `gotdata` will be `[]byte("A quick br"). + // The following line will get an "out of bounds memory access" error + // because [65535:65544] is out of 1 page size (65536): + // gotdata, err = meminst.Getdata(0xFFFF, 10) - // Create a function context with the function type and host function body. - // The third parameter is the pointer to the additional data. - // Developers should guarantee the life cycle of the data, and it can be - // `nil` if the external data is not needed. - // The last parameter can be 0 if developers do not need the cost measuring. - func_add := wasmedge.NewFunction(functype, host_add, nil, 0) + pagesize := meminst.GetPageSize() + // `pagesize` will be 1. + err = meminst.GrowPage(2) + // Grow the page size of 2, the page size of the memory instance will be 3. - // If the function object is not added into an module instance object, it should be released. - func_add.Release() - functype.Release() - ``` + // The following line will get an "out of bounds memory access" error + // because the size (3 + 3) will reach the memory limit (5): + // err = meminst.GetPageSize(3) -2. Calling frame object + meminst.Release() + ``` - The `wasmedge.CallingFrame` is the object to provide developers to access the module instance of the [frame on the top of the calling stack](https://webassembly.github.io/spec/core/exec/runtime.html#activations-and-frames). According to the [WASM spec](https://webassembly.github.io/spec/core/exec/instructions.html#function-calls), a frame with the module instance is pushed into the stack when invoking a function. Therefore, the host functions can access the module instance of the top frame to retrieve the memory instances to read/write data. +5. Global instance - ```go - import ( - "encoding/binary" - "fmt" - ) + In WasmEdge, developers can create the `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Global` objects supply APIs to control the value in global instances. + + ```go + // Create the global type with value type and mutation. + globtype := wasmedge.NewGlobalType(wasmedge.ValType_I64, wasmedge.ValMut_Var) + // Create the global instance with value and global type. + globinst := wasmedge.NewGlobal(globtype, uint64(1000)) + // Delete the global type. + globtype.Release() + + gotglobtype := globinst.GetGlobalType() + // The `gotglobtype` got from global instance is owned by the `globinst` + // and should __NOT__ be released. + valtype := gotglobtype.GetValType() + // The `valtype` will be `wasmedge.ValType_I64`. + valmut := gotglobtype.GetMutability() + // The `valmut` will be `wasmedge.ValMut_Var`. + + globinst.SetValue(uint64(888)) + // Set the value u64(888) to the global. + // This function will do nothing if the value type mismatched or the + // global mutability is `wasmedge.ValMut_Const`. + gotval := globinst.GetValue() + // The `gotbal` will be `interface{}` which the type is `uint64` and + // the value is 888. + + globinst.Release() + ``` - // Host function body definition. - func LoadOffset(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // Function type: {i32} -> {} - offset := params[0].(int32) - - // Get the 0th memory instance of the module of the top frame on the stack. - mem := callframe.GetMemoryByIndex(0) - - data, err := mem.GetData(uint(offset), 4) - if err != nil { - return nil, err - } - fmt.Println("u32 at memory[{}]: {}", offset, binary.LittleEndian.Uint32(data)) - return nil, wasmedge.Result_Success - } - ``` +### Host Functions - Besides using the `(*CallingFrame).GetMemoryByIndex()` API to get the memory instance by index in the module instance, developers can use the `(*CallingFrame).GetModule()` to get the module instance directly. Therefore, developers can retrieve the exported contexts by the `wasmedge.Module` APIs. And also, developers can use the `(*CallingFrame).GetExecutor()` API to get the currently used executor context. +[Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge-go, developers can create the `Function`, `Memory`, `Table`, and `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. -3. User-defined error code of the host functions +1. Host function allocation - In host functions, WasmEdge-Go provides `wasmedge.Result_Success` to return success, `wasmedge.Result_Terminate` to terminate the WASM execution, and `wasmedge.Result_Fail` to return fail. WasmEdge-Go also provides the usage of returning the user-specified codes. Developers can use the `wasmedge.NewResult()` API to generate the `wasmedge.Result` struct with error code, and use the `(*result).GetCode()` API to get the error code. + Developers can define Go functions with the following function signature as the host function body: - > Notice: The error code only supports 24-bit integer (0 ~ 16777216 in `uint32`). The values larger than 24-bit will be truncated. + ```go + type hostFunctionSignature func( + data interface{}, callframe *CallingFrame, params []interface{}) ([]interface{}, Result) + ``` - Create a new Go project first: + The example of an `add` host function to add 2 `i32` values: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```go + func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) - Assume that a simple WASM from the WAT is as following: + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res - ```wasm - (module - (type $t0 (func (param i32))) - (import "extern" "trap" (func $f-trap (type $t0))) - (func (export "trap") (param i32) - local.get 0 - call $f-trap) - ) - ``` + // Return + return returns, wasmedge.Result_Success + } + ``` - And the `main.go` is as following: + Then developers can create `Function` object with the host function body and function type: - ```go - package main + ```go + // Create a function type: {i32, i32} -> {i32}. + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) - import ( - "fmt" + // Create a function context with the function type and host function body. + // The third parameter is the pointer to the additional data. + // Developers should guarantee the life cycle of the data, and it can be + // `nil` if the external data is not needed. + // The last parameter can be 0 if developers do not need the cost measuring. + func_add := wasmedge.NewFunction(functype, host_add, nil, 0) - "github.com/second-state/WasmEdge-go/wasmedge" - ) + // If the function object is not added into an module instance object, it should be released. + func_add.Release() + functype.Release() + ``` - // Host function body definition. - func host_trap(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) - - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res - - // Return - return returns, wasmedge.Result_Success - } - - func main() { - // Create the VM object. - vm := wasmedge.NewVM() - - // The WASM module buffer. - wasmbuf := []byte{ - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x05, 0x01, - /* function type {i32} -> {} */ - 0x60, 0x01, 0x7F, 0x00, - /* Import section */ - 0x02, 0x0F, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "trap" */ - 0x04, 0x74, 0x72, 0x61, 0x70, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x08, 0x01, - /* export name: "trap" */ - 0x04, 0x74, 0x72, 0x61, 0x70, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x08, 0x01, - /* code body */ - 0x06, 0x00, 0x20, 0x00, 0x10, 0x00, 0x0B, - } - - // Create the module instance with the module name "extern". - impmod := wasmedge.NewModule("extern") - - // Create and add a function instance into the module instance with export name "func-add". - functype := wasmedge.NewFunctionType([]wasmedge.ValType{wasmedge.ValType_I32}, []wasmedge.ValType{}) - hostfunc := wasmedge.NewFunction(functype, host_trap, nil, 0) - functype.Release() - impmod.AddFunction("trap", hostfunc) - - // Register the module instance into VM. - vm.RegisterImport(impmod) - - _, err := vm.RunWasmBuffer(wasmbuf, "trap", uint32(5566)) - if err != nil { - fmt.Println("Get the error code:", err.GetCode()) - } - - impmod.Release() - vm.Release() - } - ``` +2. Calling frame object - Then you can build and run the Golang application with the WasmEdge Golang SDK: + The `wasmedge.CallingFrame` is the object to provide developers to access the module instance of the [frame on the top of the calling stack](https://webassembly.github.io/spec/core/exec/runtime.html#activations-and-frames). According to the [WASM spec](https://webassembly.github.io/spec/core/exec/instructions.html#function-calls), a frame with the module instance is pushed into the stack when invoking a function. Therefore, the host functions can access the module instance of the top frame to retrieve the memory instances to read/write data. - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 - $ go build - $ ./wasmedge_test - [2022-08-26 15:06:40.384] [error] user defined failed: user defined error code, Code: 0x15be - [2022-08-26 15:06:40.384] [error] When executing function name: "trap" - Get the error code: 5566 - ``` + ```go + import ( + "encoding/binary" + "fmt" + ) -4. Construct a module instance with host instances + // Host function body definition. + func LoadOffset(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // Function type: {i32} -> {} + offset := params[0].(int32) - Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + // Get the 0th memory instance of the module of the top frame on the stack. + mem := callframe.GetMemoryByIndex(0) - ```go - // Host function body definition. - func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) + data, err := mem.GetData(uint(offset), 4) + if err != nil { + return nil, err + } + fmt.Println("u32 at memory[{}]: {}", offset, binary.LittleEndian.Uint32(data)) + return nil, wasmedge.Result_Success + } + ``` - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res + Besides using the `(*CallingFrame).GetMemoryByIndex()` API to get the memory instance by index in the module instance, developers can use the `(*CallingFrame).GetModule()` to get the module instance directly. Therefore, developers can retrieve the exported contexts by the `wasmedge.Module` APIs. And also, developers can use the `(*CallingFrame).GetExecutor()` API to get the currently used executor context. - // Return - return returns, wasmedge.Result_Success - } +3. User-defined error code of the host functions - // Create a module instance with the module name "module". - mod := wasmedge.NewModule("module") + In host functions, WasmEdge-Go provides `wasmedge.Result_Success` to return success, `wasmedge.Result_Terminate` to terminate the WASM execution, and `wasmedge.Result_Fail` to return fail. WasmEdge-Go also provides the usage of returning the user-specified codes. Developers can use the `wasmedge.NewResult()` API to generate the `wasmedge.Result` struct with error code, and use the `(*result).GetCode()` API to get the error code. + + > Notice: The error code only supports 24-bit integer (0 ~ 16777216 in `uint32`). The values larger than 24-bit will be truncated. + + Create a new Go project first: + + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` + + Assume that a simple WASM from the WAT is as following: + + ```wasm + (module + (type $t0 (func (param i32))) + (import "extern" "trap" (func $f-trap (type $t0))) + (func (export "trap") (param i32) + local.get 0 + call $f-trap) + ) + ``` + + And the `main.go` is as following: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + // Host function body definition. + func host_trap(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Return + return returns, wasmedge.Result_Success + } + + func main() { + // Create the VM object. + vm := wasmedge.NewVM() + + // The WASM module buffer. + wasmbuf := []byte{ + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x05, 0x01, + /* function type {i32} -> {} */ + 0x60, 0x01, 0x7F, 0x00, + /* Import section */ + 0x02, 0x0F, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "trap" */ + 0x04, 0x74, 0x72, 0x61, 0x70, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x08, 0x01, + /* export name: "trap" */ + 0x04, 0x74, 0x72, 0x61, 0x70, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x08, 0x01, + /* code body */ + 0x06, 0x00, 0x20, 0x00, 0x10, 0x00, 0x0B, + } + + // Create the module instance with the module name "extern". + impmod := wasmedge.NewModule("extern") + + // Create and add a function instance into the module instance with export name "func-add". + functype := wasmedge.NewFunctionType([]wasmedge.ValType{wasmedge.ValType_I32}, []wasmedge.ValType{}) + hostfunc := wasmedge.NewFunction(functype, host_trap, nil, 0) + functype.Release() + impmod.AddFunction("trap", hostfunc) + + // Register the module instance into VM. + vm.RegisterImport(impmod) + + _, err := vm.RunWasmBuffer(wasmbuf, "trap", uint32(5566)) + if err != nil { + fmt.Println("Get the error code:", err.GetCode()) + } + + impmod.Release() + vm.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 + $ go build + $ ./wasmedge_test + [2022-08-26 15:06:40.384] [error] user defined failed: user defined error code, Code: 0x15be + [2022-08-26 15:06:40.384] [error] When executing function name: "trap" + Get the error code: 5566 + ``` - // Create and add a function instance into the module instance with export name "add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) - functype.Release() - mod.AddFunction("add", hostfunc) - - // Create and add a table instance into the module instance with export name "table". - tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef ,wasmedge.NewLimitWithMax(10, 20)) - hosttab := wasmedge.NewTable(tabtype) - tabtype.Release() - mod.AddTable("table", hosttab) - - // Create and add a memory instance into the module instance with export name "memory". - memtype := wasmedge.NewMemoryType(wasmedge.NewLimitWithMax(1, 2)) - hostmem := wasmedge.NewMemory(memtype) - memtype.Release() - mod.AddMemory("memory", hostmem) - - // Create and add a global instance into the module instance with export name "global". - globtype := wasmedge.NewGlobalType(wasmedge.ValType_I32, wasmedge.ValMut_Var) - hostglob := wasmedge.NewGlobal(globtype, uint32(666)) - globtype.Release() - mod.AddGlobal("global", hostglob) - - // The module instances should be released. - // Developers should __NOT__ release the instances added into the module instance objects. - mod.Release() - ``` +4. Construct a module instance with host instances + + Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + + ```go + // Host function body definition. + func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Return + return returns, wasmedge.Result_Success + } + + // Create a module instance with the module name "module". + mod := wasmedge.NewModule("module") + + // Create and add a function instance into the module instance with export name "add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) + functype.Release() + mod.AddFunction("add", hostfunc) + + // Create and add a table instance into the module instance with export name "table". + tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef ,wasmedge.NewLimitWithMax(10, 20)) + hosttab := wasmedge.NewTable(tabtype) + tabtype.Release() + mod.AddTable("table", hosttab) + + // Create and add a memory instance into the module instance with export name "memory". + memtype := wasmedge.NewMemoryType(wasmedge.NewLimitWithMax(1, 2)) + hostmem := wasmedge.NewMemory(memtype) + memtype.Release() + mod.AddMemory("memory", hostmem) + + // Create and add a global instance into the module instance with export name "global". + globtype := wasmedge.NewGlobalType(wasmedge.ValType_I32, wasmedge.ValMut_Var) + hostglob := wasmedge.NewGlobal(globtype, uint32(666)) + globtype.Release() + mod.AddGlobal("global", hostglob) + + // The module instances should be released. + // Developers should __NOT__ release the instances added into the module instance objects. + mod.Release() + ``` 5. Specified module instance - `wasmedge.NewWasiModule()` API can create and initialize the `WASI` module instance. + `wasmedge.NewWasiModule()` API can create and initialize the `WASI` module instance. - `wasmedge.NewWasiNNModule()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin. + `wasmedge.NewWasiNNModule()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin. - `wasmedge.NewWasiCryptoCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin. + `wasmedge.NewWasiCryptoCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin. - `wasmedge.NewWasiCryptoAsymmetricCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin. + `wasmedge.NewWasiCryptoAsymmetricCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin. - `wasmedge.NewWasiCryptoKxModule()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin. + `wasmedge.NewWasiCryptoKxModule()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin. - `wasmedge.NewWasiCryptoSignaturesModule()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin. + `wasmedge.NewWasiCryptoSignaturesModule()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin. - `wasmedge.NewWasiCryptoSymmetricModule()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin. + `wasmedge.NewWasiCryptoSymmetricModule()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin. - `wasmedge.NewWasmEdgeProcessModule()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. + `wasmedge.NewWasmEdgeProcessModule()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. - Developers can create these module instance objects and register them into the `Store` or `VM` objects rather than adjust the settings in the `Configure` objects. + Developers can create these module instance objects and register them into the `Store` or `VM` objects rather than adjust the settings in the `Configure` objects. - > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. And the 5 modules are recommended to all be created and registered together. + > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. And the 5 modules are recommended to all be created and registered together. - ```go - wasiobj := wasmedge.NewWasiModule( - os.Args[1:], // The args - os.Environ(), // The envs - []string{".:."}, // The mapping preopens - ) - procobj := wasmedge.NewWasmEdgeProcessModule( - []string{"ls", "echo"}, // The allowed commands - false, // Not to allow all commands - ) + ```go + wasiobj := wasmedge.NewWasiModule( + os.Args[1:], // The args + os.Environ(), // The envs + []string{".:."}, // The mapping preopens + ) + procobj := wasmedge.NewWasmEdgeProcessModule( + []string{"ls", "echo"}, // The allowed commands + false, // Not to allow all commands + ) - // Register the WASI and WasmEdge_Process into the VM object. - vm := wasmedge.NewVM() - vm.RegisterImport(wasiobj) - vm.RegisterImport(procobj) + // Register the WASI and WasmEdge_Process into the VM object. + vm := wasmedge.NewVM() + vm.RegisterImport(wasiobj) + vm.RegisterImport(procobj) - // ... Execute some WASM functions. + // ... Execute some WASM functions. - // Get the WASI exit code. - exitcode := wasiobj.WasiGetExitCode() - // The `exitcode` will be 0 if the WASI function "_start" execution has no error. - // Otherwise, it will return with the related exit code. + // Get the WASI exit code. + exitcode := wasiobj.WasiGetExitCode() + // The `exitcode` will be 0 if the WASI function "_start" execution has no error. + // Otherwise, it will return with the related exit code. - vm.Release() - // The import objects should be deleted. - wasiobj.Release() - procobj.Release() - ``` + vm.Release() + // The import objects should be deleted. + wasiobj.Release() + procobj.Release() + ``` 6. Example - Assume that there is a simple WASM from the WAT as following: - - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` - - Assume that edit the Go file `main.go` above: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - // Host function body definition. - func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) - - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res - - // Return - return returns, wasmedge.Result_Success - } - - func main() { - // Create the VM object. - vm := wasmedge.NewVM() - - // The WASM module buffer. - wasmbuf := []byte{ - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, - } - - // Create the module instance with the module name "extern". - impmod := wasmedge.NewModule("extern") - - // Create and add a function instance into the module instance with export name "func-add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) - functype.Release() - impmod.AddFunction("func-add", hostfunc) - - // Register the module instance into VM. - vm.RegisterImport(impmod) - - res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - - impmod.Release() - vm.Release() - } - ``` - - Then you can build and run the Golang application with the WasmEdge Golang SDK: - - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 - $ go build - $ ./wasmedge_test - Get the result: 6912 - ``` + Assume that there is a simple WASM from the WAT as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + Assume that edit the Go file `main.go` above: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + // Host function body definition. + func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Return + return returns, wasmedge.Result_Success + } + + func main() { + // Create the VM object. + vm := wasmedge.NewVM() + + // The WASM module buffer. + wasmbuf := []byte{ + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, + } + + // Create the module instance with the module name "extern". + impmod := wasmedge.NewModule("extern") + + // Create and add a function instance into the module instance with export name "func-add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) + functype.Release() + impmod.AddFunction("func-add", hostfunc) + + // Register the module instance into VM. + vm.RegisterImport(impmod) + + res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + + impmod.Release() + vm.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 + $ go build + $ ./wasmedge_test + Get the result: 6912 + ``` 7. Host Data Example - Developers can set a external data object to the `Function` object, and access to the object in the function body. Assume that edit the Go file `main.go` above: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - // Host function body definition. - func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) - - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res - - // Also set the result to the data. - *data.(*int32) = res - - // Return - return returns, wasmedge.Result_Success - } - - func main() { - // Create the VM object. - vm := wasmedge.NewVM() - - // The WASM module buffer. - wasmbuf := []byte{ - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, - } - - // The additional data to set into the host function. - var data int32 = 0 - - // Create the module instance with the module name "extern". - impmod := wasmedge.NewImportObject("extern") - - // Create and add a function instance into the module instance with export name "func-add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, &data, 0) - functype.Release() - impmod.AddFunction("func-add", hostfunc) - - // Register the module instance into VM. - vm.RegisterImport(impmod) - - res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - fmt.Println("Data value:", data) - - impmod.Release() - vm.Release() - } - ``` - - Then you can build and run the Golang application with the WasmEdge Golang SDK: - - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 - $ go build - $ ./wasmedge_test - Get the result: 6912 - Data value: 6912 - ``` + Developers can set a external data object to the `Function` object, and access to the object in the function body. Assume that edit the Go file `main.go` above: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + // Host function body definition. + func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Also set the result to the data. + *data.(*int32) = res + + // Return + return returns, wasmedge.Result_Success + } + + func main() { + // Create the VM object. + vm := wasmedge.NewVM() + + // The WASM module buffer. + wasmbuf := []byte{ + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, + } + + // The additional data to set into the host function. + var data int32 = 0 + + // Create the module instance with the module name "extern". + impmod := wasmedge.NewImportObject("extern") + + // Create and add a function instance into the module instance with export name "func-add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, &data, 0) + functype.Release() + impmod.AddFunction("func-add", hostfunc) + + // Register the module instance into VM. + vm.RegisterImport(impmod) + + res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + fmt.Println("Data value:", data) + + impmod.Release() + vm.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 + $ go build + $ ./wasmedge_test + Get the result: 6912 + Data value: 6912 + ``` ## WasmEdge AOT Compiler diff --git a/docs/embed/go/reference/0.12.0.md b/docs/embed/go/reference/0.12.0.md index 9d8b0ed1..0648fea5 100644 --- a/docs/embed/go/reference/0.12.0.md +++ b/docs/embed/go/reference/0.12.0.md @@ -162,47 +162,47 @@ In WasmEdge-go, the APIs will automatically do the conversion for the built-in t 1. Number types: `i32`, `i64`, `f32`, and `f64` - - Convert the `uint32` and `int32` to `i32` automatically when passing a value into WASM. - - Convert the `uint64` and `int64` to `i64` automatically when passing a value into WASM. - - Convert the `uint` and `int` to `i32` automatically when passing a value into WASM in 32-bit system. - - Convert the `uint` and `int` to `i64` automatically when passing a value into WASM in 64-bit system. - - Convert the `float32` to `f32` automatically when passing a value into WASM. - - Convert the `float64` to `f64` automatically when passing a value into WASM. - - Convert the `i32` from WASM to `int32` when getting a result. - - Convert the `i64` from WASM to `int64` when getting a result. - - Convert the `f32` from WASM to `float32` when getting a result. - - Convert the `f64` from WASM to `float64` when getting a result. + - Convert the `uint32` and `int32` to `i32` automatically when passing a value into WASM. + - Convert the `uint64` and `int64` to `i64` automatically when passing a value into WASM. + - Convert the `uint` and `int` to `i32` automatically when passing a value into WASM in 32-bit system. + - Convert the `uint` and `int` to `i64` automatically when passing a value into WASM in 64-bit system. + - Convert the `float32` to `f32` automatically when passing a value into WASM. + - Convert the `float64` to `f64` automatically when passing a value into WASM. + - Convert the `i32` from WASM to `int32` when getting a result. + - Convert the `i64` from WASM to `int64` when getting a result. + - Convert the `f32` from WASM to `float32` when getting a result. + - Convert the `f64` from WASM to `float64` when getting a result. 2. Number type: `v128` for the `SIMD` proposal - Developers should use the `wasmedge.NewV128()` to generate a `v128` value, and use the `wasmedge.GetV128()` to get the value. + Developers should use the `wasmedge.NewV128()` to generate a `v128` value, and use the `wasmedge.GetV128()` to get the value. - ```go - val := wasmedge.NewV128(uint64(1234), uint64(5678)) - high, low := val.GetVal() - // `high` will be uint64(1234), `low` will be uint64(5678) - ``` + ```go + val := wasmedge.NewV128(uint64(1234), uint64(5678)) + high, low := val.GetVal() + // `high` will be uint64(1234), `low` will be uint64(5678) + ``` 3. Reference types: `FuncRef` and `ExternRef` for the `Reference-Types` proposal - ```go - var funccxt *wasmedge.Function = ... // Create or get function object. - funcref := wasmedge.NewFuncRef(funccxt) - // Create a `FuncRef` with the function object. - - num := 1234 - // `num` is a `int`. - externref := wasmedge.NewExternRef(&num) - // Create an `ExternRef` which reference to the `num`. - num = 5678 - // Modify the `num` to 5678. - numref := externref.GetRef().(*int) - // Get the original reference from the `ExternRef`. - fmt.Println(*numref) - // Will print `5678`. - numref.Release() - // Should call the `Release` method. - ``` + ```go + var funccxt *wasmedge.Function = ... // Create or get function object. + funcref := wasmedge.NewFuncRef(funccxt) + // Create a `FuncRef` with the function object. + + num := 1234 + // `num` is a `int`. + externref := wasmedge.NewExternRef(&num) + // Create an `ExternRef` which reference to the `num`. + num = 5678 + // Modify the `num` to 5678. + numref := externref.GetRef().(*int) + // Get the original reference from the `ExternRef`. + fmt.Println(*numref) + // Will print `5678`. + numref.Release() + // Should call the `Release` method. + ``` ### Results @@ -243,166 +243,166 @@ The WASM data structures are used for creating instances or can be queried from 1. Limit - The `Limit` struct presents the minimum and maximum value data structure. - - ```go - lim1 := wasmedge.NewLimit(12) - fmt.Println(lim1.HasMax()) - // Will print `false`. - fmt.Println(lim1.GetMin()) - // Will print `12`. - - lim2 := wasmedge.NewLimitWithMax(15, 50) - fmt.Println(lim2.HasMax()) - // Will print `true`. - fmt.Println(lim2.GetMin()) - // Will print `15`. - fmt.Println(lim2.GetMax()) - // Will print `50`. - ``` - - For the thread proposal, the `Limit` struct also supports the shared memory description. - - ```go - lim3 := wasmedge.NewLimitShared(20) - fmt.Println(lim3.HasMax()) - // Will print `false`. - fmt.Println(lim3.IsShared()) - // Will print `true`. - fmt.Println(lim3.GetMin()) - // Will print `20`. - - lim4 := wasmedge.NewLimitSharedWithMax(30, 40) - fmt.Println(lim4.HasMax()) - // Will print `true`. - fmt.Println(lim4.IsShared()) - // Will print `true`. - fmt.Println(lim4.GetMin()) - // Will print `30`. - fmt.Println(lim4.GetMax()) - // Will print `40`. - ``` + The `Limit` struct presents the minimum and maximum value data structure. + + ```go + lim1 := wasmedge.NewLimit(12) + fmt.Println(lim1.HasMax()) + // Will print `false`. + fmt.Println(lim1.GetMin()) + // Will print `12`. + + lim2 := wasmedge.NewLimitWithMax(15, 50) + fmt.Println(lim2.HasMax()) + // Will print `true`. + fmt.Println(lim2.GetMin()) + // Will print `15`. + fmt.Println(lim2.GetMax()) + // Will print `50`. + ``` + + For the thread proposal, the `Limit` struct also supports the shared memory description. + + ```go + lim3 := wasmedge.NewLimitShared(20) + fmt.Println(lim3.HasMax()) + // Will print `false`. + fmt.Println(lim3.IsShared()) + // Will print `true`. + fmt.Println(lim3.GetMin()) + // Will print `20`. + + lim4 := wasmedge.NewLimitSharedWithMax(30, 40) + fmt.Println(lim4.HasMax()) + // Will print `true`. + fmt.Println(lim4.IsShared()) + // Will print `true`. + fmt.Println(lim4.GetMin()) + // Will print `30`. + fmt.Println(lim4.GetMax()) + // Will print `40`. + ``` 2. Function type context - The `FunctionType` is an object holds the function type context and used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `FunctionType` APIs to get the parameter or return value types information. - - ```go - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{ - wasmedge.ValType_ExternRef, - wasmedge.ValType_I32, - wasmedge.ValType_I64, - }, []wasmedge.ValType{ - wasmedge.ValType_F32, - wasmedge.ValType_F64, - }) - - plen := functype.GetParametersLength() - // `plen` will be 3. - rlen := functype.GetReturnsLength() - // `rlen` will be 2. - plist := functype.GetParameters() - // `plist` will be `[]wasmedge.ValType{wasmedge.ValType_ExternRef, wasmedge.ValType_I32, wasmedge.ValType_I64}`. - rlist := functype.GetReturns() - // `rlist` will be `[]wasmedge.ValType{wasmedge.ValType_F32, wasmedge.ValType_F64}`. - - functype.Release() - ``` + The `FunctionType` is an object holds the function type context and used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `FunctionType` APIs to get the parameter or return value types information. + + ```go + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{ + wasmedge.ValType_ExternRef, + wasmedge.ValType_I32, + wasmedge.ValType_I64, + }, []wasmedge.ValType{ + wasmedge.ValType_F32, + wasmedge.ValType_F64, + }) + + plen := functype.GetParametersLength() + // `plen` will be 3. + rlen := functype.GetReturnsLength() + // `rlen` will be 2. + plist := functype.GetParameters() + // `plist` will be `[]wasmedge.ValType{wasmedge.ValType_ExternRef, wasmedge.ValType_I32, wasmedge.ValType_I64}`. + rlist := functype.GetReturns() + // `rlist` will be `[]wasmedge.ValType{wasmedge.ValType_F32, wasmedge.ValType_F64}`. + + functype.Release() + ``` 3. Table type context - The `TableType` is an object holds the table type context and used for `Table` instance creation or getting information from `Table` instances. + The `TableType` is an object holds the table type context and used for `Table` instance creation or getting information from `Table` instances. - ```go - lim := wasmedge.NewLimit(12) - tabtype := wasmedge.NewTableType(wasmedge.RefType_ExternRef, lim) + ```go + lim := wasmedge.NewLimit(12) + tabtype := wasmedge.NewTableType(wasmedge.RefType_ExternRef, lim) - rtype := tabtype.GetRefType() - // `rtype` will be `wasmedge.RefType_ExternRef`. - getlim := tabtype.GetLimit() - // `getlim` will be the same value as `lim`. + rtype := tabtype.GetRefType() + // `rtype` will be `wasmedge.RefType_ExternRef`. + getlim := tabtype.GetLimit() + // `getlim` will be the same value as `lim`. - tabtype.Release() - ``` + tabtype.Release() + ``` 4. Memory type context - The `MemoryType` is an object holds the memory type context and used for `Memory` instance creation or getting information from `Memory` instances. + The `MemoryType` is an object holds the memory type context and used for `Memory` instance creation or getting information from `Memory` instances. - ```go - lim := wasmedge.NewLimit(1) - memtype := wasmedge.NewMemoryType(lim) + ```go + lim := wasmedge.NewLimit(1) + memtype := wasmedge.NewMemoryType(lim) - getlim := memtype.GetLimit() - // `getlim` will be the same value as `lim`. + getlim := memtype.GetLimit() + // `getlim` will be the same value as `lim`. - memtype.Release() - ``` + memtype.Release() + ``` 5. Global type context - The `GlobalType` is an object holds the global type context and used for `Global` instance creation or getting information from `Global` instances. + The `GlobalType` is an object holds the global type context and used for `Global` instance creation or getting information from `Global` instances. - ```go - globtype := wasmedge.NewGlobalType(wasmedge.ValType_F64, wasmedge.ValMut_Var) + ```go + globtype := wasmedge.NewGlobalType(wasmedge.ValType_F64, wasmedge.ValMut_Var) - vtype := globtype.GetValType() - // `vtype` will be `wasmedge.ValType_F64`. - vmut := globtype.GetMutability() - // `vmut` will be `wasmedge.ValMut_Var`. + vtype := globtype.GetValType() + // `vtype` will be `wasmedge.ValType_F64`. + vmut := globtype.GetMutability() + // `vmut` will be `wasmedge.ValMut_Var`. - globtype.Release() - ``` + globtype.Release() + ``` 6. Import type context - The `ImportType` is an object holds the import type context and used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `ImportType` object. The details about querying `ImportType` objects will be introduced in the [AST Module](#ast-module). + The `ImportType` is an object holds the import type context and used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `ImportType` object. The details about querying `ImportType` objects will be introduced in the [AST Module](#ast-module). - ```go - var ast *wasmedge.AST = ... - // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. - imptypelist := ast.ListImports() - // Assume that `imptypelist` is an array listed from the `ast` for the imports. + ```go + var ast *wasmedge.AST = ... + // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. + imptypelist := ast.ListImports() + // Assume that `imptypelist` is an array listed from the `ast` for the imports. - for i, imptype := range imptypelist { - exttype := imptype.GetExternalType() - // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, - // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. + for i, imptype := range imptypelist { + exttype := imptype.GetExternalType() + // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, + // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. - modname := imptype.GetModuleName() - extname := imptype.GetExternalName() - // Get the module name and external name of the imports. + modname := imptype.GetModuleName() + extname := imptype.GetExternalName() + // Get the module name and external name of the imports. - extval := imptype.GetExternalValue() - // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, - // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. - } - ``` + extval := imptype.GetExternalValue() + // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, + // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. + } + ``` 7. Export type context - The `ExportType` is an object holds the export type context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `ExportType` objects will be introduced in the [AST Module](#ast-module). + The `ExportType` is an object holds the export type context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `ExportType` objects will be introduced in the [AST Module](#ast-module). - ```go - var ast *wasmedge.AST = ... - // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. - exptypelist := ast.ListExports() - // Assume that `exptypelist` is an array listed from the `ast` for the exports. + ```go + var ast *wasmedge.AST = ... + // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. + exptypelist := ast.ListExports() + // Assume that `exptypelist` is an array listed from the `ast` for the exports. - for i, exptype := range exptypelist { - exttype := exptype.GetExternalType() - // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, - // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. + for i, exptype := range exptypelist { + exttype := exptype.GetExternalType() + // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, + // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. - extname := exptype.GetExternalName() - // Get the external name of the exports. + extname := exptype.GetExternalName() + // Get the external name of the exports. - extval := exptype.GetExternalValue() - // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, - // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. - } - ``` + extval := exptype.GetExternalValue() + // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, + // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. + } + ``` ### Async @@ -410,35 +410,35 @@ After calling the [asynchronous execution APIs](#asynchronous-execution), develo 1. Get the execution result of the asynchronous execution - Developers can use the `(*Async).GetResult()` API to block and wait for getting the return values. This function will block and wait for the execution. If the execution has finished, this function will return immediately. If the execution failed, this function will return an error. + Developers can use the `(*Async).GetResult()` API to block and wait for getting the return values. This function will block and wait for the execution. If the execution has finished, this function will return immediately. If the execution failed, this function will return an error. - ```go - async := ... // Ignored. Asynchronous execute a function. + ```go + async := ... // Ignored. Asynchronous execute a function. - // Blocking and waiting for the execution and get the return values. - res, err := async.GetResult() - async.Release() - ``` + // Blocking and waiting for the execution and get the return values. + res, err := async.GetResult() + async.Release() + ``` 2. Wait for the asynchronous execution with timeout settings - Besides waiting until the end of execution, developers can set the timeout to wait for. - - ```go - async := ... // Ignored. Asynchronous execute a function. - - // Blocking and waiting for the execution with the timeout(ms). - isend := async.WaitFor(1000) - if isend { - res, err := async.GetResult() - // ... - } else { - async.Cancel() - _, err := async.GetResult() - // The error message in `err` will be "execution interrupted". - } - async.Release() - ``` + Besides waiting until the end of execution, developers can set the timeout to wait for. + + ```go + async := ... // Ignored. Asynchronous execute a function. + + // Blocking and waiting for the execution with the timeout(ms). + isend := async.WaitFor(1000) + if isend { + res, err := async.GetResult() + // ... + } else { + async.Cancel() + _, err := async.GetResult() + // The error message in `err` will be "execution interrupted". + } + async.Release() + ``` ### Configurations @@ -446,168 +446,168 @@ The configuration object, `wasmedge.Configure`, manages the configurations for ` 1. Proposals - WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` object. - - ```go - const ( - IMPORT_EXPORT_MUT_GLOBALS = Proposal(C.WasmEdge_Proposal_ImportExportMutGlobals) - NON_TRAP_FLOAT_TO_INT_CONVERSIONS = Proposal(C.WasmEdge_Proposal_NonTrapFloatToIntConversions) - SIGN_EXTENSION_OPERATORS = Proposal(C.WasmEdge_Proposal_SignExtensionOperators) - MULTI_VALUE = Proposal(C.WasmEdge_Proposal_MultiValue) - BULK_MEMORY_OPERATIONS = Proposal(C.WasmEdge_Proposal_BulkMemoryOperations) - REFERENCE_TYPES = Proposal(C.WasmEdge_Proposal_ReferenceTypes) - SIMD = Proposal(C.WasmEdge_Proposal_SIMD) - TAIL_CALL = Proposal(C.WasmEdge_Proposal_TailCall) - ANNOTATIONS = Proposal(C.WasmEdge_Proposal_Annotations) - MEMORY64 = Proposal(C.WasmEdge_Proposal_Memory64) - EXCEPTION_HANDLING = Proposal(C.WasmEdge_Proposal_ExceptionHandling) - EXTENDED_CONST = Proposal(C.WasmEdge_Proposal_ExtendedConst) - THREADS = Proposal(C.WasmEdge_Proposal_Threads) - FUNCTION_REFERENCES = Proposal(C.WasmEdge_Proposal_FunctionReferences) - ) - ``` - - Developers can add or remove the proposals into the `Configure` object. - - ```go - // By default, the following proposals have turned on initially: - // * IMPORT_EXPORT_MUT_GLOBALS - // * NON_TRAP_FLOAT_TO_INT_CONVERSIONS - // * SIGN_EXTENSION_OPERATORS - // * MULTI_VALUE - // * BULK_MEMORY_OPERATIONS - // * REFERENCE_TYPES - // * SIMD - // For the current WasmEdge version, the following proposals are supported: - // * TAIL_CALL - // * MULTI_MEMORIES - // * THREADS - // * EXTENDED_CONST - conf := wasmedge.NewConfigure() - // Developers can also pass the proposals as parameters: - // conf := wasmedge.NewConfigure(wasmedge.SIMD, wasmedge.BULK_MEMORY_OPERATIONS) - conf.AddConfig(wasmedge.SIMD) - conf.RemoveConfig(wasmedge.REFERENCE_TYPES) - is_bulkmem := conf.HasConfig(wasmedge.BULK_MEMORY_OPERATIONS) - // The `is_bulkmem` will be `true`. - conf.Release() - ``` + WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` object. + + ```go + const ( + IMPORT_EXPORT_MUT_GLOBALS = Proposal(C.WasmEdge_Proposal_ImportExportMutGlobals) + NON_TRAP_FLOAT_TO_INT_CONVERSIONS = Proposal(C.WasmEdge_Proposal_NonTrapFloatToIntConversions) + SIGN_EXTENSION_OPERATORS = Proposal(C.WasmEdge_Proposal_SignExtensionOperators) + MULTI_VALUE = Proposal(C.WasmEdge_Proposal_MultiValue) + BULK_MEMORY_OPERATIONS = Proposal(C.WasmEdge_Proposal_BulkMemoryOperations) + REFERENCE_TYPES = Proposal(C.WasmEdge_Proposal_ReferenceTypes) + SIMD = Proposal(C.WasmEdge_Proposal_SIMD) + TAIL_CALL = Proposal(C.WasmEdge_Proposal_TailCall) + ANNOTATIONS = Proposal(C.WasmEdge_Proposal_Annotations) + MEMORY64 = Proposal(C.WasmEdge_Proposal_Memory64) + EXCEPTION_HANDLING = Proposal(C.WasmEdge_Proposal_ExceptionHandling) + EXTENDED_CONST = Proposal(C.WasmEdge_Proposal_ExtendedConst) + THREADS = Proposal(C.WasmEdge_Proposal_Threads) + FUNCTION_REFERENCES = Proposal(C.WasmEdge_Proposal_FunctionReferences) + ) + ``` + + Developers can add or remove the proposals into the `Configure` object. + + ```go + // By default, the following proposals have turned on initially: + // * IMPORT_EXPORT_MUT_GLOBALS + // * NON_TRAP_FLOAT_TO_INT_CONVERSIONS + // * SIGN_EXTENSION_OPERATORS + // * MULTI_VALUE + // * BULK_MEMORY_OPERATIONS + // * REFERENCE_TYPES + // * SIMD + // For the current WasmEdge version, the following proposals are supported: + // * TAIL_CALL + // * MULTI_MEMORIES + // * THREADS + // * EXTENDED_CONST + conf := wasmedge.NewConfigure() + // Developers can also pass the proposals as parameters: + // conf := wasmedge.NewConfigure(wasmedge.SIMD, wasmedge.BULK_MEMORY_OPERATIONS) + conf.AddConfig(wasmedge.SIMD) + conf.RemoveConfig(wasmedge.REFERENCE_TYPES) + is_bulkmem := conf.HasConfig(wasmedge.BULK_MEMORY_OPERATIONS) + // The `is_bulkmem` will be `true`. + conf.Release() + ``` 2. Host registrations - This configuration is used for the `VM` context to turn on the `WASI` supports and only effective in `VM` contexts. + This configuration is used for the `VM` context to turn on the `WASI` supports and only effective in `VM` contexts. - The element of this enum is reserved for the other built-in host functions (such as `wasi-socket`) in the future. + The element of this enum is reserved for the other built-in host functions (such as `wasi-socket`) in the future. - ```go - const ( - WASI = HostRegistration(C.WasmEdge_HostRegistration_Wasi) - ) - ``` + ```go + const ( + WASI = HostRegistration(C.WasmEdge_HostRegistration_Wasi) + ) + ``` - The details will be introduced in the [preregistrations of VM context](#built-in-host-modules-and-plug-in-preregistrations). + The details will be introduced in the [preregistrations of VM context](#built-in-host-modules-and-plug-in-preregistrations). - ```go - conf := wasmedge.NewConfigure() - // Developers can also pass the proposals as parameters: - // conf := wasmedge.NewConfigure(wasmedge.WASI) - conf.AddConfig(wasmedge.WASI) - conf.Release() - ``` + ```go + conf := wasmedge.NewConfigure() + // Developers can also pass the proposals as parameters: + // conf := wasmedge.NewConfigure(wasmedge.WASI) + conf.AddConfig(wasmedge.WASI) + conf.Release() + ``` 3. Maximum memory pages - Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` objects. + Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` objects. - ```go - conf := wasmedge.NewConfigure() + ```go + conf := wasmedge.NewConfigure() - pagesize := conf.GetMaxMemoryPage() - // By default, the maximum memory page size in each memory instances is 65536. - conf.SetMaxMemoryPage(1234) - pagesize = conf.GetMaxMemoryPage() - // `pagesize` will be 1234. + pagesize := conf.GetMaxMemoryPage() + // By default, the maximum memory page size in each memory instances is 65536. + conf.SetMaxMemoryPage(1234) + pagesize = conf.GetMaxMemoryPage() + // `pagesize` will be 1234. - conf.Release() - ``` + conf.Release() + ``` 4. Forcibly interpreter mode - If developers want to execute the WASM file or the AOT compiled WASM in interpreter mode forcibly, they can turn on the configuration. + If developers want to execute the WASM file or the AOT compiled WASM in interpreter mode forcibly, they can turn on the configuration. - ```go - conf := wasmedge.NewConfigure() + ```go + conf := wasmedge.NewConfigure() - is_forceinterp := conf.IsForceInterpreter() - // By default, the `is_forceinterp` will be `false`. - conf.SetForceInterpreter(true) - is_forceinterp = conf.IsForceInterpreter() - /* The `is_forceinterp` will be `true`. */ + is_forceinterp := conf.IsForceInterpreter() + // By default, the `is_forceinterp` will be `false`. + conf.SetForceInterpreter(true) + is_forceinterp = conf.IsForceInterpreter() + /* The `is_forceinterp` will be `true`. */ - conf.Release() - ``` + conf.Release() + ``` 5. AOT compiler options - The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. - - ```go - const ( - // Disable as many optimizations as possible. - CompilerOptLevel_O0 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O0) - // Optimize quickly without destroying debuggability. - CompilerOptLevel_O1 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O1) - // Optimize for fast execution as much as possible without triggering significant incremental compile time or code size growth. - CompilerOptLevel_O2 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O2) - // Optimize for fast execution as much as possible. - CompilerOptLevel_O3 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O3) - // Optimize for small code size as much as possible without triggering significant incremental compile time or execution time slowdowns. - CompilerOptLevel_Os = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Os) - // Optimize for small code size as much as possible. - CompilerOptLevel_Oz = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Oz) - ) - - const ( - // Native dynamic library format. - CompilerOutputFormat_Native = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Native) - // WebAssembly with AOT compiled codes in custom section. - CompilerOutputFormat_Wasm = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Wasm) - ) - ``` - - These configurations are only effective in `Compiler` contexts. - - ```go - conf := wasmedge.NewConfigure() - - // By default, the optimization level is O3. - conf.SetCompilerOptimizationLevel(wasmedge.CompilerOptLevel_O2) - // By default, the output format is universal WASM. - conf.SetCompilerOutputFormat(wasmedge.CompilerOutputFormat_Native) - // By default, the dump IR is `false`. - conf.SetCompilerDumpIR(true) - // By default, the generic binary is `false`. - conf.SetCompilerGenericBinary(true) - - conf.Release() - ``` + The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. + + ```go + const ( + // Disable as many optimizations as possible. + CompilerOptLevel_O0 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O0) + // Optimize quickly without destroying debuggability. + CompilerOptLevel_O1 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O1) + // Optimize for fast execution as much as possible without triggering significant incremental compile time or code size growth. + CompilerOptLevel_O2 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O2) + // Optimize for fast execution as much as possible. + CompilerOptLevel_O3 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O3) + // Optimize for small code size as much as possible without triggering significant incremental compile time or execution time slowdowns. + CompilerOptLevel_Os = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Os) + // Optimize for small code size as much as possible. + CompilerOptLevel_Oz = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Oz) + ) + + const ( + // Native dynamic library format. + CompilerOutputFormat_Native = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Native) + // WebAssembly with AOT compiled codes in custom section. + CompilerOutputFormat_Wasm = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Wasm) + ) + ``` + + These configurations are only effective in `Compiler` contexts. + + ```go + conf := wasmedge.NewConfigure() + + // By default, the optimization level is O3. + conf.SetCompilerOptimizationLevel(wasmedge.CompilerOptLevel_O2) + // By default, the output format is universal WASM. + conf.SetCompilerOutputFormat(wasmedge.CompilerOutputFormat_Native) + // By default, the dump IR is `false`. + conf.SetCompilerDumpIR(true) + // By default, the generic binary is `false`. + conf.SetCompilerGenericBinary(true) + + conf.Release() + ``` 6. Statistics options - The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` objects. + The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` objects. - ```go - conf := wasmedge.NewConfigure() + ```go + conf := wasmedge.NewConfigure() - // By default, the instruction counting is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsInstructionCounting(true) - // By default, the cost measurement is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsTimeMeasuring(true) - // By default, the time measurement is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsCostMeasuring(true) + // By default, the instruction counting is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsInstructionCounting(true) + // By default, the cost measurement is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsTimeMeasuring(true) + // By default, the time measurement is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsCostMeasuring(true) - conf.Release() - ``` + conf.Release() + ``` ### Statistics @@ -617,46 +617,46 @@ Before using statistics, the statistics configuration must be set. Otherwise, th 1. Instruction counter - The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` object from the `VM` object, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. + The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` object from the `VM` object, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. - ```go - stat := wasmedge.NewStatistics() - // ... After running the WASM functions with the `Statistics` object + ```go + stat := wasmedge.NewStatistics() + // ... After running the WASM functions with the `Statistics` object - count := stat.GetInstrCount() - ips := stat.GetInstrPerSecond() - stat.Release() - ``` + count := stat.GetInstrCount() + ips := stat.GetInstrPerSecond() + stat.Release() + ``` 2. Cost table - The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` object. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. - - ```c - stat := wasmedge.NewStatistics() - - costtable := []uint64{ - 0, 0, - 10, /* 0x02: Block */ - 11, /* 0x03: Loop */ - 12, /* 0x04: If */ - 12, /* 0x05: Else */ - 0, 0, 0, 0, 0, 0, - 20, /* 0x0C: Br */ - 21, /* 0x0D: Br_if */ - 22, /* 0x0E: Br_table */ - 0, - } - // Developers can set the costs of each instruction. The value not covered will be 0. - - WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); - stat.SetCostTable() - stat.SetCostLimit(5000000) - - // ... After running the WASM functions with the `Statistics` object - cost := stat.GetTotalCost() - stat.Release() - ``` + The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` object. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. + + ```c + stat := wasmedge.NewStatistics() + + costtable := []uint64{ + 0, 0, + 10, /* 0x02: Block */ + 11, /* 0x03: Loop */ + 12, /* 0x04: If */ + 12, /* 0x05: Else */ + 0, 0, 0, 0, 0, 0, + 20, /* 0x0C: Br */ + 21, /* 0x0D: Br_if */ + 22, /* 0x0E: Br_table */ + 0, + } + // Developers can set the costs of each instruction. The value not covered will be 0. + + WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); + stat.SetCostTable() + stat.SetCostLimit(5000000) + + // ... After running the WASM functions with the `Statistics` object + cost := stat.GetTotalCost() + stat.Release() + ``` ### Tools Driver @@ -716,157 +716,157 @@ The following shows the example of running the WASM for getting the Fibonacci. T 1. Run WASM functions rapidly - Create a new Go project first: - - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` - - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current `wasmedge_test` directory, and create and edit the Go file `main.go` as following: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) + Create a new Go project first: - func main() { - // Set the logging level. - wasmedge.SetLogErrorLevel() - - // Create the configure context and add the WASI support. - // This step is not necessary unless you need WASI support. - conf := wasmedge.NewConfigure(wasmedge.WASI) - // Create VM with the configure. - vm := wasmedge.NewVMWithConfig(conf) - - res, err := vm.RunWasmFile("fibonacci.wasm", "fib", uint32(21)) - if err == nil { - fmt.Println("Get fibonacci[21]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - vm.Release() - conf.Release() - } - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Then you can build and run the Golang application with the WasmEdge Golang SDK: (the 21 Fibonacci number is 17711 in 0-based index) + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current `wasmedge_test` directory, and create and edit the Go file `main.go` as following: - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 - $ go build - $ ./wasmedge_test - Get fibonacci[21]: 17711 - ``` + ```go + package main -2. Instantiate and run WASM functions manually + import ( + "fmt" - Besides the above example, developers can run the WASM functions step-by-step with `VM` object APIs: + "github.com/second-state/WasmEdge-go/wasmedge" + ) - ```go - package main + func main() { + // Set the logging level. + wasmedge.SetLogErrorLevel() - import ( - "fmt" + // Create the configure context and add the WASI support. + // This step is not necessary unless you need WASI support. + conf := wasmedge.NewConfigure(wasmedge.WASI) + // Create VM with the configure. + vm := wasmedge.NewVMWithConfig(conf) - "github.com/second-state/WasmEdge-go/wasmedge" - ) + res, err := vm.RunWasmFile("fibonacci.wasm", "fib", uint32(21)) + if err == nil { + fmt.Println("Get fibonacci[21]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } - func main() { - // Set the logging level. - wasmedge.SetLogErrorLevel() - - // Create VM. - vm := wasmedge.NewVM() - var err error - var res []interface{} - - // Step 1: Load WASM file. - err = vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - // Developers can load, validate, and instantiate another WASM module - // to replace the instantiated one. In this case, the old module will - // be cleared, but the registered modules are still kept. - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // Step 4: Execute WASM functions. Parameters: (funcname, args...) - res, err = vm.Execute("fib", uint32(25)) - // Developers can execute functions repeatedly after instantiation. - if err == nil { - fmt.Println("Get fibonacci[25]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - vm.Release() - } - ``` + vm.Release() + conf.Release() + } + ``` - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + Then you can build and run the Golang application with the WasmEdge Golang SDK: (the 21 Fibonacci number is 17711 in 0-based index) - ```bash - $ go build - $ ./wasmedge_test - Get fibonacci[25]: 121393 - ``` + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 + $ go build + $ ./wasmedge_test + Get fibonacci[21]: 17711 + ``` - The following graph explains the status of the `VM` object. - - ```text - |========================| - |------->| VM: Initiated | - | |========================| - | | - | LoadWasm - | | - | v - | |========================| - |--------| VM: Loaded |<-------| - | |========================| | - | | ^ | - | Validate | | - Cleanup | LoadWasm | - | v | LoadWasm - | |========================| | - |--------| VM: Validated | | - | |========================| | - | | ^ | - | Instantiate | | - | | RegisterModule | - | v | | - | |========================| | - |--------| VM: Instantiated |--------| - |========================| - | ^ - | | - -------------- - Instantiate, Execute, ExecuteRegistered, - ExecuteBindgen, ExecuteBindgenRegistered - ``` +2. Instantiate and run WASM functions manually - The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or import objects in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. + Besides the above example, developers can run the WASM functions step-by-step with `VM` object APIs: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + func main() { + // Set the logging level. + wasmedge.SetLogErrorLevel() + + // Create VM. + vm := wasmedge.NewVM() + var err error + var res []interface{} + + // Step 1: Load WASM file. + err = vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } + + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + // Developers can load, validate, and instantiate another WASM module + // to replace the instantiated one. In this case, the old module will + // be cleared, but the registered modules are still kept. + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // Step 4: Execute WASM functions. Parameters: (funcname, args...) + res, err = vm.Execute("fib", uint32(25)) + // Developers can execute functions repeatedly after instantiation. + if err == nil { + fmt.Println("Get fibonacci[25]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } + + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go build + $ ./wasmedge_test + Get fibonacci[25]: 121393 + ``` + + The following graph explains the status of the `VM` object. + + ```text + |========================| + |------->| VM: Initiated | + | |========================| + | | + | LoadWasm + | | + | v + | |========================| + |--------| VM: Loaded |<-------| + | |========================| | + | | ^ | + | Validate | | + Cleanup | LoadWasm | + | v | LoadWasm + | |========================| | + |--------| VM: Validated | | + | |========================| | + | | ^ | + | Instantiate | | + | | RegisterModule | + | v | | + | |========================| | + |--------| VM: Instantiated |--------| + |========================| + | ^ + | | + -------------- + Instantiate, Execute, ExecuteRegistered, + ExecuteBindgen, ExecuteBindgenRegistered + ``` + + The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or import objects in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. ### VM Creations @@ -902,65 +902,65 @@ WasmEdge provides the following built-in host modules and plug-in pre-registrati 1. [WASI (WebAssembly System Interface)](https://github.com/WebAssembly/WASI) - Developers can turn on the WASI support for VM in the `Configure` object. + Developers can turn on the WASI support for VM in the `Configure` object. - ```go - conf := wasmedge.NewConfigure(wasmedge.WASI) - // Or you can set the `wasmedge.WASI` into the configure object through `(*Configure).AddConfig`. - vm := wasmedge.NewVMWithConfig(conf) - conf.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WASI) + // Or you can set the `wasmedge.WASI` into the configure object through `(*Configure).AddConfig`. + vm := wasmedge.NewVMWithConfig(conf) + conf.Release() - // The following API can retrieve the built-in registered module instances from the VM object. - // This API will return `nil` if the corresponding configuration is not set when creating the VM object. - wasiconf := vm.GetImportModule(wasmedge.WASI) - // Initialize the WASI. - wasiconf.InitWasi(/* ... ignored */) + // The following API can retrieve the built-in registered module instances from the VM object. + // This API will return `nil` if the corresponding configuration is not set when creating the VM object. + wasiconf := vm.GetImportModule(wasmedge.WASI) + // Initialize the WASI. + wasiconf.InitWasi(/* ... ignored */) - vm.Release() - ``` + vm.Release() + ``` - And also can create the WASI import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 2. Plug-ins - There may be several plug-ins in the default plug-in paths if users [installed WasmEdge plug-ins by the installer](/contribute/internal.md#plugins). + There may be several plug-ins in the default plug-in paths if users [installed WasmEdge plug-ins by the installer](/contribute/internal.md#plugins). - Before using the plug-ins, developers should [load the plug-ins from paths](#load-plug-ins-from-paths). + Before using the plug-ins, developers should [load the plug-ins from paths](#load-plug-ins-from-paths). - The `VM` object will automatically create and register the module of the loaded plug-ins when creation. Furthermore, the following host modules will be mocked if the plug-in not loaded: + The `VM` object will automatically create and register the module of the loaded plug-ins when creation. Furthermore, the following host modules will be mocked if the plug-in not loaded: - - `wasi_ephemeral_crypto_asymmetric_common` (for the `WASI-Crypto`) - - `wasi_ephemeral_crypto_common` (for the `WASI-Crypto`) - - `wasi_ephemeral_crypto_kx` (for the `WASI-Crypto`) - - `wasi_ephemeral_crypto_signatures` (for the `WASI-Crypto`) - - `wasi_ephemeral_crypto_symmetric` (for the `WASI-Crypto`) - - `wasi_ephemeral_nn` - - `wasi_snapshot_preview1` - - `wasmedge_httpsreq` - - `wasmedge_process` + - `wasi_ephemeral_crypto_asymmetric_common` (for the `WASI-Crypto`) + - `wasi_ephemeral_crypto_common` (for the `WASI-Crypto`) + - `wasi_ephemeral_crypto_kx` (for the `WASI-Crypto`) + - `wasi_ephemeral_crypto_signatures` (for the `WASI-Crypto`) + - `wasi_ephemeral_crypto_symmetric` (for the `WASI-Crypto`) + - `wasi_ephemeral_nn` + - `wasi_snapshot_preview1` + - `wasmedge_httpsreq` + - `wasmedge_process` - When the WASM want to invoke these host functions but the corresponding plug-in not installed, WasmEdge will print the error message and return an error. + When the WASM want to invoke these host functions but the corresponding plug-in not installed, WasmEdge will print the error message and return an error. - ```go - // Load the plug-ins in the default paths first. - wasmedge.LoadPluginDefaultPaths() + ```go + // Load the plug-ins in the default paths first. + wasmedge.LoadPluginDefaultPaths() - // Create the VM object with the WASI configuration. - conf := wasmedge.NewConfigure(wasmedge.WASI) - vm := wasmedge.NewVMWithConfig(conf) - conf.Release() + // Create the VM object with the WASI configuration. + conf := wasmedge.NewConfigure(wasmedge.WASI) + vm := wasmedge.NewVMWithConfig(conf) + conf.Release() - // The following API can retrieve the registered modules in the VM objects, includes the built-in WASI and the plug-ins. - // This API will return `NULL` if the module instance not found. + // The following API can retrieve the registered modules in the VM objects, includes the built-in WASI and the plug-ins. + // This API will return `NULL` if the module instance not found. - // The `wasimodule` will not be `nil` because the configuration was set. - wasimodule := vm.GetRegisteredModule("wasi_snapshot_preview1") + // The `wasimodule` will not be `nil` because the configuration was set. + wasimodule := vm.GetRegisteredModule("wasi_snapshot_preview1") - // The `wasinnmodule` will not be `nil` even if the wasi_nn plug-in is not installed, because the VM context will mock and register the host modules. - wasinnmodule := vm.GetRegisteredModule("wasi_ephemeral_nn") + // The `wasinnmodule` will not be `nil` even if the wasi_nn plug-in is not installed, because the VM context will mock and register the host modules. + wasinnmodule := vm.GetRegisteredModule("wasi_ephemeral_nn") - vm.Release() - ``` + vm.Release() + ``` ### Host Module Registrations @@ -985,211 +985,211 @@ In WebAssembly, the instances in WASM modules can be exported and can be importe 1. Register the WASM modules with exported module names - Unless the import objects have already contained the module names, every WASM module should be named uniquely when registering. The following shows the example. + Unless the import objects have already contained the module names, every WASM module should be named uniquely when registering. The following shows the example. - Create a new Go project first: + Create a new Go project first: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. Then create and edit the Go file `main.go` as following: + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. Then create and edit the Go file `main.go` as following: - ```go - package main + ```go + package main - import "github.com/second-state/WasmEdge-go/wasmedge" + import "github.com/second-state/WasmEdge-go/wasmedge" - func main() { - // Create VM. - vm := wasmedge.NewVM() + func main() { + // Create VM. + vm := wasmedge.NewVM() - var err error - err = vm.RegisterWasmFile("module_name", "fibonacci.wasm") - // Developers can register the WASM module from `[]byte` with the - // `(*VM).RegisterWasmBuffer` function, or from `AST` object with - // the `(*VM).RegisterAST` function. - // The result status should be checked. The error will occur if the - // WASM module instantiation failed or the module name conflicts. + var err error + err = vm.RegisterWasmFile("module_name", "fibonacci.wasm") + // Developers can register the WASM module from `[]byte` with the + // `(*VM).RegisterWasmBuffer` function, or from `AST` object with + // the `(*VM).RegisterAST` function. + // The result status should be checked. The error will occur if the + // WASM module instantiation failed or the module name conflicts. - vm.Release() - } - ``` + vm.Release() + } + ``` 2. Execute the functions in registered WASM modules - Edit the Go file `main.go` as following: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - // Create VM. - vm := wasmedge.NewVM() - - var res []interface{} - var err error - // Register the WASM module from file into VM with the module name "mod". - err = vm.RegisterWasmFile("mod", "fibonacci.wasm") - // Developers can register the WASM module from `[]byte` with the - // `(*VM).RegisterWasmBuffer` function, or from `AST` object with - // the `(*VM).RegisterAST` function. - if err != nil { - fmt.Println("WASM registration failed:", err.Error()) - return - } - // The function "fib" in the "fibonacci.wasm" was exported with the module - // name "mod". As the same as host functions, other modules can import the - // function `"mod" "fib"`. - - // Execute WASM functions in registered modules. - // Unlike the execution of functions, the registered functions can be - // invoked without `(*VM).Instantiate` because the WASM module was - // instantiated when registering. - // Developers can also invoke the host functions directly with this API. - res, err = vm.ExecuteRegistered("mod", "fib", int32(25)) - if err == nil { - fmt.Println("Get fibonacci[25]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - vm.Release() - } - ``` - - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) - - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 - $ go build - $ ./wasmedge_test - Get fibonacci[25]: 121393 - ``` + Edit the Go file `main.go` as following: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + func main() { + // Create VM. + vm := wasmedge.NewVM() + + var res []interface{} + var err error + // Register the WASM module from file into VM with the module name "mod". + err = vm.RegisterWasmFile("mod", "fibonacci.wasm") + // Developers can register the WASM module from `[]byte` with the + // `(*VM).RegisterWasmBuffer` function, or from `AST` object with + // the `(*VM).RegisterAST` function. + if err != nil { + fmt.Println("WASM registration failed:", err.Error()) + return + } + // The function "fib" in the "fibonacci.wasm" was exported with the module + // name "mod". As the same as host functions, other modules can import the + // function `"mod" "fib"`. + + // Execute WASM functions in registered modules. + // Unlike the execution of functions, the registered functions can be + // invoked without `(*VM).Instantiate` because the WASM module was + // instantiated when registering. + // Developers can also invoke the host functions directly with this API. + res, err = vm.ExecuteRegistered("mod", "fib", int32(25)) + if err == nil { + fmt.Println("Get fibonacci[25]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } + + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 + $ go build + $ ./wasmedge_test + Get fibonacci[25]: 121393 + ``` ### Asynchronous Execution 1. Asynchronously run WASM functions rapidly - Assume that a new Go project is created as following: + Assume that a new Go project is created as following: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: + Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: - ```go - package main + ```go + package main - import ( - "fmt" + import ( + "fmt" - "github.com/second-state/WasmEdge-go/wasmedge" - ) + "github.com/second-state/WasmEdge-go/wasmedge" + ) - func main() { - // Create VM. - vm := wasmedge.NewVM() - - // Asynchronously run the WASM function from file and get the `wasmedge.Async` object. - async := vm.AsyncRunWasmFile("fibonacci.wasm", "fib", uint32(20)) - - // Block and wait for the execution and get the results. - res, err := async.GetResult() - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - async.Release() - vm.Release() - } - ``` + func main() { + // Create VM. + vm := wasmedge.NewVM() - Then you can build and run: (the 20th Fibonacci number is 10946 in 0-based index) + // Asynchronously run the WASM function from file and get the `wasmedge.Async` object. + async := vm.AsyncRunWasmFile("fibonacci.wasm", "fib", uint32(20)) - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 - $ go build - $ ./wasmedge_test - Get the result: 10946 - ``` + // Block and wait for the execution and get the results. + res, err := async.GetResult() + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + async.Release() + vm.Release() + } + ``` -2. Instantiate and asynchronously run WASM functions manually + Then you can build and run: (the 20th Fibonacci number is 10946 in 0-based index) - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 + $ go build + $ ./wasmedge_test + Get the result: 10946 + ``` - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - var err error - var res []interface{} - - // Create VM. - vm := wasmedge.NewVM() - - // Step 1: Load WASM file. - // Developers can load the WASM binary from buffer with the `(*VM).LoadWasmBuffer()` API, - // or from `wasmedge.AST` object with the `(*VM).LoadWasmAST()` API. - err := vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // Step 4: Asynchronously execute the WASM function and get the `wasmedge.Async` object. - async := vm.AsyncExecute("fib", uint32(25)) - - // Block and wait for the execution and get the results. - res, err := async.GetResult() - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - async.Release() - vm.Release() - } - ``` +2. Instantiate and asynchronously run WASM functions manually - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) - - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 - $ go build - $ ./wasmedge_test - Get the result: 121393 - ``` + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + func main() { + var err error + var res []interface{} + + // Create VM. + vm := wasmedge.NewVM() + + // Step 1: Load WASM file. + // Developers can load the WASM binary from buffer with the `(*VM).LoadWasmBuffer()` API, + // or from `wasmedge.AST` object with the `(*VM).LoadWasmAST()` API. + err := vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } + + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // Step 4: Asynchronously execute the WASM function and get the `wasmedge.Async` object. + async := vm.AsyncExecute("fib", uint32(25)) + + // Block and wait for the execution and get the results. + res, err := async.GetResult() + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + async.Release() + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 + $ go build + $ ./wasmedge_test + Get the result: 121393 + ``` ### Instance Tracing @@ -1197,148 +1197,148 @@ Sometimes the developers may have requirements to get the instances of the WASM 1. Store - If the `VM` object is created without assigning a `Store` object, the `VM` context will allocate and own a `Store`. + If the `VM` object is created without assigning a `Store` object, the `VM` context will allocate and own a `Store`. - ```go - vm := wasmedge.NewVM() - store := vm.GetStore() - // The object should __NOT__ be deleted by calling `(*Store).Release`. - vm.Release() - ``` + ```go + vm := wasmedge.NewVM() + store := vm.GetStore() + // The object should __NOT__ be deleted by calling `(*Store).Release`. + vm.Release() + ``` - Developers can also create the `VM` object with a `Store` object. In this case, developers should guarantee that the `Store` object cannot be released before the `VM` object. Please refer to the [Store Objects](#store) for the details about the `Store` APIs. + Developers can also create the `VM` object with a `Store` object. In this case, developers should guarantee that the `Store` object cannot be released before the `VM` object. Please refer to the [Store Objects](#store) for the details about the `Store` APIs. - ```go - store := wasmedge.NewStore() - vm := wasmedge.NewVMWithStore(store) + ```go + store := wasmedge.NewStore() + vm := wasmedge.NewVMWithStore(store) - storemock := vm.GetStore() - // The internal store context of the `store` and the `storemock` are the same. + storemock := vm.GetStore() + // The internal store context of the `store` and the `storemock` are the same. - vm.Release() - store.Release() - ``` + vm.Release() + store.Release() + ``` 2. List exported functions - After the WASM module instantiation, developers can use the `(*VM).Execute` function to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. + After the WASM module instantiation, developers can use the `(*VM).Execute` function to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. - Assume that a new Go project is created as following: + Assume that a new Go project is created as following: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: + Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: - ```go - package main + ```go + package main - import ( - "fmt" + import ( + "fmt" - "github.com/second-state/WasmEdge-go/wasmedge" - ) + "github.com/second-state/WasmEdge-go/wasmedge" + ) - func main() { - // Create VM. - vm := wasmedge.NewVM() - - // Step 1: Load WASM file. - err := vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // List the exported functions for the names and function types. - funcnames, functypes := vm.GetFunctionList() - for _, fname := range funcnames { - fmt.Println("Exported function name:", fname) - } - for _, ftype := range functypes { - // `ftype` is the `FunctionType` object of the same index in the `funcnames` array. - // Developers should __NOT__ call the `ftype.Release()`. - } - - vm.Release() - } - ``` + func main() { + // Create VM. + vm := wasmedge.NewVM() - Then you can build and run: (the only exported function in `fibonacci.wasm` is `fib`) + // Step 1: Load WASM file. + err := vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 - $ go build - $ ./wasmedge_test - Exported function name: fib - ``` + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // List the exported functions for the names and function types. + funcnames, functypes := vm.GetFunctionList() + for _, fname := range funcnames { + fmt.Println("Exported function name:", fname) + } + for _, ftype := range functypes { + // `ftype` is the `FunctionType` object of the same index in the `funcnames` array. + // Developers should __NOT__ call the `ftype.Release()`. + } + + vm.Release() + } + ``` + + Then you can build and run: (the only exported function in `fibonacci.wasm` is `fib`) - If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` object from the `VM` object and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 + $ go build + $ ./wasmedge_test + Exported function name: fib + ``` + + If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` object from the `VM` object and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. 3. Get function types - The `VM` object provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. + The `VM` object provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. - ```go - // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. - functype := vm.GetFunctionType("fib") - // Developers can get the function types of functions in the registered modules via the - // `(*VM).GetFunctionTypeRegistered` API with the function name and the module name. - // If the function is not found, these APIs will return `nil`. - // Developers should __NOT__ call the `(*FunctionType).Release` function of the returned object. - ``` + ```go + // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. + functype := vm.GetFunctionType("fib") + // Developers can get the function types of functions in the registered modules via the + // `(*VM).GetFunctionTypeRegistered` API with the function name and the module name. + // If the function is not found, these APIs will return `nil`. + // Developers should __NOT__ call the `(*FunctionType).Release` function of the returned object. + ``` 4. Get the active module - After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` object. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `(*VM).GetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. + After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` object. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `(*VM).GetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. - ```go - // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. - mod := vm.GetActiveModule() - // If there's no WASM module instantiated, this API will return `nil`. - // Developers should __NOT__ call the `(*Module).Release` function of the returned module instance. - ``` + ```go + // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. + mod := vm.GetActiveModule() + // If there's no WASM module instantiated, this API will return `nil`. + // Developers should __NOT__ call the `(*Module).Release` function of the returned module instance. + ``` 5. List and get the registered modules - To list and retrieve the registered modules in the `VM` object, besides accessing the `store` object of the `VM`, developers can use the following APIs. + To list and retrieve the registered modules in the `VM` object, besides accessing the `store` object of the `VM`, developers can use the following APIs. - ```go - // Assume that the `vm` is the created `wasmedge.VM` object. - modnames := vm.ListRegisteredModule() - for _, name := range modnames { - fmt.Println("Registered module name: ", name) - } - ``` + ```go + // Assume that the `vm` is the created `wasmedge.VM` object. + modnames := vm.ListRegisteredModule() + for _, name := range modnames { + fmt.Println("Registered module name: ", name) + } + ``` 6. Get the components - The `VM` object is composed by the `Loader`, `Validator`, and `Executor` objects. For the developers who want to use these objects without creating another instances, these APIs can help developers to get them from the `VM` object. The get objects are owned by the `VM` object, and developers should not call their release functions. + The `VM` object is composed by the `Loader`, `Validator`, and `Executor` objects. For the developers who want to use these objects without creating another instances, these APIs can help developers to get them from the `VM` object. The get objects are owned by the `VM` object, and developers should not call their release functions. - ```go - loader := vm.GetLoader() - // Developers should __NOT__ call the `(*Loader).Release` function of the returned object. - validator := vm.GetValidator() - // Developers should __NOT__ call the `(*Validator).Release` function of the returned object. - executor := vm.GetExecutor() - // Developers should __NOT__ call the `(*Executor).Release` function of the returned object. - ``` + ```go + loader := vm.GetLoader() + // Developers should __NOT__ call the `(*Loader).Release` function of the returned object. + validator := vm.GetValidator() + // Developers should __NOT__ call the `(*Validator).Release` function of the returned object. + executor := vm.GetExecutor() + // Developers should __NOT__ call the `(*Executor).Release` function of the returned object. + ``` ## WasmEdge Runtime @@ -1526,119 +1526,119 @@ The `Executor` object is the executor for both WASM and compiled-WASM. This obje 1. Instantiate and register an `AST` object as a named `Module` instance - As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` objects, developers can instantiate and register an `AST` objects into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Register the loaded WASM `ast` into store with the export module name "mod". - mod, res := executor.Register(store, ast, "mod") - if err != nil { - fmt.Println("WASM registration FAILED:", err.Error()) - return - } - - // ... - - // Resources deallocations. - executor.Release() - stat.Release() - store.Release() - mod.Release() - ``` + As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` objects, developers can instantiate and register an `AST` objects into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Register the loaded WASM `ast` into store with the export module name "mod". + mod, res := executor.Register(store, ast, "mod") + if err != nil { + fmt.Println("WASM registration FAILED:", err.Error()) + return + } + + // ... + + // Resources deallocations. + executor.Release() + stat.Release() + store.Release() + mod.Release() + ``` 2. Register an existing `Module` instance and export the module name - Besides instantiating and registering an `AST` object, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Create a module instance for host functions. - mod := wasmedge.NewModule("mod") - // ... - // Create and add the host functions, tables, memories, and globals into the module instance. - // ... - - // Register the module instance into store with the exported module name. - // The export module name is in the module instance already. - res := executor.RegisterImport(store, mod) - if err != nil { - fmt.Println("WASM registration FAILED:", err.Error()) - return - } - - // ... - - // Resources deallocations. - executor.Release() - stat.Release() - store.Release() - mod.Release() - ``` + Besides instantiating and registering an `AST` object, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Create a module instance for host functions. + mod := wasmedge.NewModule("mod") + // ... + // Create and add the host functions, tables, memories, and globals into the module instance. + // ... + + // Register the module instance into store with the exported module name. + // The export module name is in the module instance already. + res := executor.RegisterImport(store, mod) + if err != nil { + fmt.Println("WASM registration FAILED:", err.Error()) + return + } + + // ... + + // Resources deallocations. + executor.Release() + stat.Release() + store.Release() + mod.Release() + ``` 3. Instantiate an `AST` object to an anonymous `Module` instance - WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` object for linking. - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Instantiate the WASM module. - mod, err := executor.Instantiate(stpre, ast) - if err != nil { - fmt.Println("WASM instantiation FAILED:", err.Error()) - return - } - - executor.Release() - stat.Release() - store.Release() - mod.Release() - ``` + WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` object for linking. + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Instantiate the WASM module. + mod, err := executor.Instantiate(stpre, ast) + if err != nil { + fmt.Println("WASM instantiation FAILED:", err.Error()) + return + } + + executor.Release() + stat.Release() + store.Release() + mod.Release() + ``` 4. Invoke functions - After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `(*Executor).Invoke` API. + After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `(*Executor).Invoke` API. ### AST Module @@ -1691,667 +1691,667 @@ The instances are the runtime structures of WASM. Developers can retrieve the `M 1. Module instance - After instantiating or registering an `AST` object, developers will get a `Module` instance as the result, and have the responsibility to release it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. + After instantiating or registering an `AST` object, developers will get a `Module` instance as the result, and have the responsibility to release it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. - ```go - // ... - // Instantiate a WASM module via the executor object and get the `mod` as the output module instance. - // ... + ```go + // ... + // Instantiate a WASM module via the executor object and get the `mod` as the output module instance. + // ... - // List the exported instance of the instantiated WASM module. - // Take the function instances for example here. - funcnames := mod.ListFunction() + // List the exported instance of the instantiated WASM module. + // Take the function instances for example here. + funcnames := mod.ListFunction() - // Try to find the exported instance of the instantiated WASM module. - // Take the function instances for example here. - funcinst := mod.FindFunction("fib") - // `funcinst` will be `nil` if the function not found. - // The returned instance is owned by the module instance and should __NOT__ be released. - ``` + // Try to find the exported instance of the instantiated WASM module. + // Take the function instances for example here. + funcinst := mod.FindFunction("fib") + // `funcinst` will be `nil` if the function not found. + // The returned instance is owned by the module instance and should __NOT__ be released. + ``` 2. Function instance - [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` objects for host functions and add them into an `Module` instance for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` objects through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). + [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` objects for host functions and add them into an `Module` instance for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` objects through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). - ```go - funcobj := ... - // `funcobj` is the `*wasmedge.Function` retrieved from the module instance. - functype := funcobj.GetFunctionType() - // The `funcobj` retrieved from the module instance should __NOT__ be released. - // The `functype` retrieved from the `funcobj` should __NOT__ be released. + ```go + funcobj := ... + // `funcobj` is the `*wasmedge.Function` retrieved from the module instance. + functype := funcobj.GetFunctionType() + // The `funcobj` retrieved from the module instance should __NOT__ be released. + // The `functype` retrieved from the `funcobj` should __NOT__ be released. - // For the function object creation, please refer to the `Host Function` guide. - ``` + // For the function object creation, please refer to the `Host Function` guide. + ``` 3. Table instance - In WasmEdge, developers can create the `Table` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Table` objects supply APIs to control the data in table instances. - - ```go - lim := wasmedge.NewLimitWithMax(10, 20) - // Create the table type with limit and the `FuncRef` element type. - tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef, lim) - // Create the table instance with table type. - tabinst := wasmedge.NewTable(tabtype) - // Delete the table type. - tabtype.Release() - - gottabtype := tabinst.GetTableType() - // The `gottabtype` got from table instance is owned by the `tabinst` - // and should __NOT__ be released. - reftype := gottabtype.GetRefType() - // The `reftype` will be `wasmedge.RefType_FuncRef`. - - var gotdata interface{} - data := wasmedge.NewFuncRef(5) - err := tabinst.SetData(data, 3) - // Set the function index 5 to the table[3]. - - // The following line will get an "out of bounds table access" error - // because the position (13) is out of the table size (10): - // err = tabinst.SetData(data, 13) - - gotdata, err = tabinst.GetData(3) - // Get the FuncRef value of the table[3]. - - // The following line will get an "out of bounds table access" error - // because the position (13) is out of the table size (10): - // gotdata, err = tabinst.GetData(13) - - tabsize := tabinst.GetSize() - // `tabsize` will be 10. - err = tabinst.Grow(6) - // Grow the table size of 6, the table size will be 16. - - // The following line will get an "out of bounds table access" error - // because the size (16 + 6) will reach the table limit (20): - // err = tabinst.Grow(6) - - tabinst.Release() - ``` + In WasmEdge, developers can create the `Table` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Table` objects supply APIs to control the data in table instances. -4. Memory instance + ```go + lim := wasmedge.NewLimitWithMax(10, 20) + // Create the table type with limit and the `FuncRef` element type. + tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef, lim) + // Create the table instance with table type. + tabinst := wasmedge.NewTable(tabtype) + // Delete the table type. + tabtype.Release() - In WasmEdge, developers can create the `Memory` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Memory` objects supply APIs to control the data in memory instances. - - ```go - lim := wasmedge.NewLimitWithMax(1, 5) - // Create the memory type with limit. The memory page size is 64KiB. - memtype := wasmedge.NewMemoryType(lim) - // Create the memory instance with memory type. - meminst := wasmedge.NewMemory(memtype) - // Delete the memory type. - memtype.Release() - - data := []byte("A quick brown fox jumps over the lazy dog") - err := meminst.SetData(data, 0x1000, 10) - // Set the data[0:9] to the memory[4096:4105]. - - // The following line will get an "out of bounds memory access" error - // because [65535:65544] is out of 1 page size (65536): - // err = meminst.SetData(data, 0xFFFF, 10) - - var gotdata []byte - gotdata, err = meminst.GetData(0x1000, 10) - // Get the memory[4096:4105]. The `gotdata` will be `[]byte("A quick br"). - // The following line will get an "out of bounds memory access" error - // because [65535:65544] is out of 1 page size (65536): - // gotdata, err = meminst.Getdata(0xFFFF, 10) - - pagesize := meminst.GetPageSize() - // `pagesize` will be 1. - err = meminst.GrowPage(2) - // Grow the page size of 2, the page size of the memory instance will be 3. - - // The following line will get an "out of bounds memory access" error - // because the size (3 + 3) will reach the memory limit (5): - // err = meminst.GetPageSize(3) - - meminst.Release() - ``` + gottabtype := tabinst.GetTableType() + // The `gottabtype` got from table instance is owned by the `tabinst` + // and should __NOT__ be released. + reftype := gottabtype.GetRefType() + // The `reftype` will be `wasmedge.RefType_FuncRef`. -5. Global instance + var gotdata interface{} + data := wasmedge.NewFuncRef(5) + err := tabinst.SetData(data, 3) + // Set the function index 5 to the table[3]. - In WasmEdge, developers can create the `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Global` objects supply APIs to control the value in global instances. - - ```go - // Create the global type with value type and mutation. - globtype := wasmedge.NewGlobalType(wasmedge.ValType_I64, wasmedge.ValMut_Var) - // Create the global instance with value and global type. - globinst := wasmedge.NewGlobal(globtype, uint64(1000)) - // Delete the global type. - globtype.Release() - - gotglobtype := globinst.GetGlobalType() - // The `gotglobtype` got from global instance is owned by the `globinst` - // and should __NOT__ be released. - valtype := gotglobtype.GetValType() - // The `valtype` will be `wasmedge.ValType_I64`. - valmut := gotglobtype.GetMutability() - // The `valmut` will be `wasmedge.ValMut_Var`. - - globinst.SetValue(uint64(888)) - // Set the value u64(888) to the global. - // This function will do nothing if the value type mismatched or the - // global mutability is `wasmedge.ValMut_Const`. - gotval := globinst.GetValue() - // The `gotbal` will be `interface{}` which the type is `uint64` and - // the value is 888. - - globinst.Release() - ``` + // The following line will get an "out of bounds table access" error + // because the position (13) is out of the table size (10): + // err = tabinst.SetData(data, 13) -### Host Functions + gotdata, err = tabinst.GetData(3) + // Get the FuncRef value of the table[3]. -[Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge-go, developers can create the `Function`, `Memory`, `Table`, and `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. + // The following line will get an "out of bounds table access" error + // because the position (13) is out of the table size (10): + // gotdata, err = tabinst.GetData(13) -1. Host function allocation + tabsize := tabinst.GetSize() + // `tabsize` will be 10. + err = tabinst.Grow(6) + // Grow the table size of 6, the table size will be 16. - Developers can define Go functions with the following function signature as the host function body: + // The following line will get an "out of bounds table access" error + // because the size (16 + 6) will reach the table limit (20): + // err = tabinst.Grow(6) - ```go - type hostFunctionSignature func( - data interface{}, callframe *CallingFrame, params []interface{}) ([]interface{}, Result) - ``` + tabinst.Release() + ``` - The example of an `add` host function to add 2 `i32` values: +4. Memory instance - ```go - func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) + In WasmEdge, developers can create the `Memory` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Memory` objects supply APIs to control the data in memory instances. - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res + ```go + lim := wasmedge.NewLimitWithMax(1, 5) + // Create the memory type with limit. The memory page size is 64KiB. + memtype := wasmedge.NewMemoryType(lim) + // Create the memory instance with memory type. + meminst := wasmedge.NewMemory(memtype) + // Delete the memory type. + memtype.Release() - // Return - return returns, wasmedge.Result_Success - } - ``` + data := []byte("A quick brown fox jumps over the lazy dog") + err := meminst.SetData(data, 0x1000, 10) + // Set the data[0:9] to the memory[4096:4105]. - Then developers can create `Function` object with the host function body and function type: + // The following line will get an "out of bounds memory access" error + // because [65535:65544] is out of 1 page size (65536): + // err = meminst.SetData(data, 0xFFFF, 10) - ```go - // Create a function type: {i32, i32} -> {i32}. - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) + var gotdata []byte + gotdata, err = meminst.GetData(0x1000, 10) + // Get the memory[4096:4105]. The `gotdata` will be `[]byte("A quick br"). + // The following line will get an "out of bounds memory access" error + // because [65535:65544] is out of 1 page size (65536): + // gotdata, err = meminst.Getdata(0xFFFF, 10) - // Create a function context with the function type and host function body. - // The third parameter is the pointer to the additional data. - // Developers should guarantee the life cycle of the data, and it can be - // `nil` if the external data is not needed. - // The last parameter can be 0 if developers do not need the cost measuring. - func_add := wasmedge.NewFunction(functype, host_add, nil, 0) + pagesize := meminst.GetPageSize() + // `pagesize` will be 1. + err = meminst.GrowPage(2) + // Grow the page size of 2, the page size of the memory instance will be 3. - // If the function object is not added into an module instance object, it should be released. - func_add.Release() - functype.Release() - ``` + // The following line will get an "out of bounds memory access" error + // because the size (3 + 3) will reach the memory limit (5): + // err = meminst.GetPageSize(3) -2. Calling frame object + meminst.Release() + ``` - The `wasmedge.CallingFrame` is the object to provide developers to access the module instance of the [frame on the top of the calling stack](https://webassembly.github.io/spec/core/exec/runtime.html#activations-and-frames). According to the [WASM spec](https://webassembly.github.io/spec/core/exec/instructions.html#function-calls), a frame with the module instance is pushed into the stack when invoking a function. Therefore, the host functions can access the module instance of the top frame to retrieve the memory instances to read/write data. +5. Global instance - ```go - import ( - "encoding/binary" - "fmt" - ) + In WasmEdge, developers can create the `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Global` objects supply APIs to control the value in global instances. + + ```go + // Create the global type with value type and mutation. + globtype := wasmedge.NewGlobalType(wasmedge.ValType_I64, wasmedge.ValMut_Var) + // Create the global instance with value and global type. + globinst := wasmedge.NewGlobal(globtype, uint64(1000)) + // Delete the global type. + globtype.Release() + + gotglobtype := globinst.GetGlobalType() + // The `gotglobtype` got from global instance is owned by the `globinst` + // and should __NOT__ be released. + valtype := gotglobtype.GetValType() + // The `valtype` will be `wasmedge.ValType_I64`. + valmut := gotglobtype.GetMutability() + // The `valmut` will be `wasmedge.ValMut_Var`. + + globinst.SetValue(uint64(888)) + // Set the value u64(888) to the global. + // This function will do nothing if the value type mismatched or the + // global mutability is `wasmedge.ValMut_Const`. + gotval := globinst.GetValue() + // The `gotbal` will be `interface{}` which the type is `uint64` and + // the value is 888. + + globinst.Release() + ``` - // Host function body definition. - func LoadOffset(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // Function type: {i32} -> {} - offset := params[0].(int32) - - // Get the 0th memory instance of the module of the top frame on the stack. - mem := callframe.GetMemoryByIndex(0) - - data, err := mem.GetData(uint(offset), 4) - if err != nil { - return nil, err - } - fmt.Println("u32 at memory[{}]: {}", offset, binary.LittleEndian.Uint32(data)) - return nil, wasmedge.Result_Success - } - ``` +### Host Functions - Besides using the `(*CallingFrame).GetMemoryByIndex()` API to get the memory instance by index in the module instance, developers can use the `(*CallingFrame).GetModule()` to get the module instance directly. Therefore, developers can retrieve the exported contexts by the `wasmedge.Module` APIs. And also, developers can use the `(*CallingFrame).GetExecutor()` API to get the currently used executor context. +[Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge-go, developers can create the `Function`, `Memory`, `Table`, and `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. -3. User-defined error code of the host functions +1. Host function allocation - In host functions, WasmEdge-Go provides `wasmedge.Result_Success` to return success, `wasmedge.Result_Terminate` to terminate the WASM execution, and `wasmedge.Result_Fail` to return fail. WasmEdge-Go also provides the usage of returning the user-specified codes. Developers can use the `wasmedge.NewResult()` API to generate the `wasmedge.Result` struct with error code, and use the `(*result).GetCode()` API to get the error code. + Developers can define Go functions with the following function signature as the host function body: - > Notice: The error code only supports 24-bit integer (0 ~ 16777216 in `uint32`). The values larger than 24-bit will be truncated. + ```go + type hostFunctionSignature func( + data interface{}, callframe *CallingFrame, params []interface{}) ([]interface{}, Result) + ``` - Create a new Go project first: + The example of an `add` host function to add 2 `i32` values: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```go + func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) - Assume that a simple WASM from the WAT is as following: + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res - ```wasm - (module - (type $t0 (func (param i32))) - (import "extern" "trap" (func $f-trap (type $t0))) - (func (export "trap") (param i32) - local.get 0 - call $f-trap) - ) - ``` + // Return + return returns, wasmedge.Result_Success + } + ``` - And the `main.go` is as following: + Then developers can create `Function` object with the host function body and function type: - ```go - package main + ```go + // Create a function type: {i32, i32} -> {i32}. + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) - import ( - "fmt" + // Create a function context with the function type and host function body. + // The third parameter is the pointer to the additional data. + // Developers should guarantee the life cycle of the data, and it can be + // `nil` if the external data is not needed. + // The last parameter can be 0 if developers do not need the cost measuring. + func_add := wasmedge.NewFunction(functype, host_add, nil, 0) - "github.com/second-state/WasmEdge-go/wasmedge" - ) + // If the function object is not added into an module instance object, it should be released. + func_add.Release() + functype.Release() + ``` - // Host function body definition. - func host_trap(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) - - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res - - // Return - return returns, wasmedge.Result_Success - } - - func main() { - // Create the VM object. - vm := wasmedge.NewVM() - - // The WASM module buffer. - wasmbuf := []byte{ - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x05, 0x01, - /* function type {i32} -> {} */ - 0x60, 0x01, 0x7F, 0x00, - /* Import section */ - 0x02, 0x0F, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "trap" */ - 0x04, 0x74, 0x72, 0x61, 0x70, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x08, 0x01, - /* export name: "trap" */ - 0x04, 0x74, 0x72, 0x61, 0x70, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x08, 0x01, - /* code body */ - 0x06, 0x00, 0x20, 0x00, 0x10, 0x00, 0x0B, - } - - // Create the module instance with the module name "extern". - impmod := wasmedge.NewModule("extern") - - // Create and add a function instance into the module instance with export name "func-add". - functype := wasmedge.NewFunctionType([]wasmedge.ValType{wasmedge.ValType_I32}, []wasmedge.ValType{}) - hostfunc := wasmedge.NewFunction(functype, host_trap, nil, 0) - functype.Release() - impmod.AddFunction("trap", hostfunc) - - // Register the module instance into VM. - vm.RegisterImport(impmod) - - _, err := vm.RunWasmBuffer(wasmbuf, "trap", uint32(5566)) - if err != nil { - fmt.Println("Get the error code:", err.GetCode()) - } - - impmod.Release() - vm.Release() - } - ``` +2. Calling frame object - Then you can build and run the Golang application with the WasmEdge Golang SDK: + The `wasmedge.CallingFrame` is the object to provide developers to access the module instance of the [frame on the top of the calling stack](https://webassembly.github.io/spec/core/exec/runtime.html#activations-and-frames). According to the [WASM spec](https://webassembly.github.io/spec/core/exec/instructions.html#function-calls), a frame with the module instance is pushed into the stack when invoking a function. Therefore, the host functions can access the module instance of the top frame to retrieve the memory instances to read/write data. - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 - $ go build - $ ./wasmedge_test - [2022-08-26 15:06:40.384] [error] user defined failed: user defined error code, Code: 0x15be - [2022-08-26 15:06:40.384] [error] When executing function name: "trap" - Get the error code: 5566 - ``` + ```go + import ( + "encoding/binary" + "fmt" + ) -4. Construct a module instance with host instances + // Host function body definition. + func LoadOffset(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // Function type: {i32} -> {} + offset := params[0].(int32) - Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + // Get the 0th memory instance of the module of the top frame on the stack. + mem := callframe.GetMemoryByIndex(0) - ```go - // Host function body definition. - func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) + data, err := mem.GetData(uint(offset), 4) + if err != nil { + return nil, err + } + fmt.Println("u32 at memory[{}]: {}", offset, binary.LittleEndian.Uint32(data)) + return nil, wasmedge.Result_Success + } + ``` - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res + Besides using the `(*CallingFrame).GetMemoryByIndex()` API to get the memory instance by index in the module instance, developers can use the `(*CallingFrame).GetModule()` to get the module instance directly. Therefore, developers can retrieve the exported contexts by the `wasmedge.Module` APIs. And also, developers can use the `(*CallingFrame).GetExecutor()` API to get the currently used executor context. - // Return - return returns, wasmedge.Result_Success - } +3. User-defined error code of the host functions - // Create a module instance with the module name "module". - mod := wasmedge.NewModule("module") + In host functions, WasmEdge-Go provides `wasmedge.Result_Success` to return success, `wasmedge.Result_Terminate` to terminate the WASM execution, and `wasmedge.Result_Fail` to return fail. WasmEdge-Go also provides the usage of returning the user-specified codes. Developers can use the `wasmedge.NewResult()` API to generate the `wasmedge.Result` struct with error code, and use the `(*result).GetCode()` API to get the error code. + + > Notice: The error code only supports 24-bit integer (0 ~ 16777216 in `uint32`). The values larger than 24-bit will be truncated. + + Create a new Go project first: + + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` + + Assume that a simple WASM from the WAT is as following: + + ```wasm + (module + (type $t0 (func (param i32))) + (import "extern" "trap" (func $f-trap (type $t0))) + (func (export "trap") (param i32) + local.get 0 + call $f-trap) + ) + ``` + + And the `main.go` is as following: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + // Host function body definition. + func host_trap(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Return + return returns, wasmedge.Result_Success + } + + func main() { + // Create the VM object. + vm := wasmedge.NewVM() + + // The WASM module buffer. + wasmbuf := []byte{ + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x05, 0x01, + /* function type {i32} -> {} */ + 0x60, 0x01, 0x7F, 0x00, + /* Import section */ + 0x02, 0x0F, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "trap" */ + 0x04, 0x74, 0x72, 0x61, 0x70, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x08, 0x01, + /* export name: "trap" */ + 0x04, 0x74, 0x72, 0x61, 0x70, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x08, 0x01, + /* code body */ + 0x06, 0x00, 0x20, 0x00, 0x10, 0x00, 0x0B, + } + + // Create the module instance with the module name "extern". + impmod := wasmedge.NewModule("extern") + + // Create and add a function instance into the module instance with export name "func-add". + functype := wasmedge.NewFunctionType([]wasmedge.ValType{wasmedge.ValType_I32}, []wasmedge.ValType{}) + hostfunc := wasmedge.NewFunction(functype, host_trap, nil, 0) + functype.Release() + impmod.AddFunction("trap", hostfunc) + + // Register the module instance into VM. + vm.RegisterImport(impmod) + + _, err := vm.RunWasmBuffer(wasmbuf, "trap", uint32(5566)) + if err != nil { + fmt.Println("Get the error code:", err.GetCode()) + } + + impmod.Release() + vm.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 + $ go build + $ ./wasmedge_test + [2022-08-26 15:06:40.384] [error] user defined failed: user defined error code, Code: 0x15be + [2022-08-26 15:06:40.384] [error] When executing function name: "trap" + Get the error code: 5566 + ``` - // Create and add a function instance into the module instance with export name "add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) - functype.Release() - mod.AddFunction("add", hostfunc) - - // Create and add a table instance into the module instance with export name "table". - tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef ,wasmedge.NewLimitWithMax(10, 20)) - hosttab := wasmedge.NewTable(tabtype) - tabtype.Release() - mod.AddTable("table", hosttab) - - // Create and add a memory instance into the module instance with export name "memory". - memtype := wasmedge.NewMemoryType(wasmedge.NewLimitWithMax(1, 2)) - hostmem := wasmedge.NewMemory(memtype) - memtype.Release() - mod.AddMemory("memory", hostmem) - - // Create and add a global instance into the module instance with export name "global". - globtype := wasmedge.NewGlobalType(wasmedge.ValType_I32, wasmedge.ValMut_Var) - hostglob := wasmedge.NewGlobal(globtype, uint32(666)) - globtype.Release() - mod.AddGlobal("global", hostglob) - - // The module instances should be released. - // Developers should __NOT__ release the instances added into the module instance objects. - mod.Release() - ``` +4. Construct a module instance with host instances + + Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + + ```go + // Host function body definition. + func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Return + return returns, wasmedge.Result_Success + } + + // Create a module instance with the module name "module". + mod := wasmedge.NewModule("module") + + // Create and add a function instance into the module instance with export name "add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) + functype.Release() + mod.AddFunction("add", hostfunc) + + // Create and add a table instance into the module instance with export name "table". + tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef ,wasmedge.NewLimitWithMax(10, 20)) + hosttab := wasmedge.NewTable(tabtype) + tabtype.Release() + mod.AddTable("table", hosttab) + + // Create and add a memory instance into the module instance with export name "memory". + memtype := wasmedge.NewMemoryType(wasmedge.NewLimitWithMax(1, 2)) + hostmem := wasmedge.NewMemory(memtype) + memtype.Release() + mod.AddMemory("memory", hostmem) + + // Create and add a global instance into the module instance with export name "global". + globtype := wasmedge.NewGlobalType(wasmedge.ValType_I32, wasmedge.ValMut_Var) + hostglob := wasmedge.NewGlobal(globtype, uint32(666)) + globtype.Release() + mod.AddGlobal("global", hostglob) + + // The module instances should be released. + // Developers should __NOT__ release the instances added into the module instance objects. + mod.Release() + ``` 5. Specified module instance - `wasmedge.NewWasiModule()` API can create and initialize the `WASI` module instance. + `wasmedge.NewWasiModule()` API can create and initialize the `WASI` module instance. - `wasmedge.NewWasiNNModule()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin. + `wasmedge.NewWasiNNModule()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin. - `wasmedge.NewWasiCryptoCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin. + `wasmedge.NewWasiCryptoCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin. - `wasmedge.NewWasiCryptoAsymmetricCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin. + `wasmedge.NewWasiCryptoAsymmetricCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin. - `wasmedge.NewWasiCryptoKxModule()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin. + `wasmedge.NewWasiCryptoKxModule()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin. - `wasmedge.NewWasiCryptoSignaturesModule()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin. + `wasmedge.NewWasiCryptoSignaturesModule()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin. - `wasmedge.NewWasiCryptoSymmetricModule()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin. + `wasmedge.NewWasiCryptoSymmetricModule()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin. - `wasmedge.NewWasmEdgeProcessModule()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. + `wasmedge.NewWasmEdgeProcessModule()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. - Developers can create these module instance objects and register them into the `Store` or `VM` objects rather than adjust the settings in the `Configure` objects. + Developers can create these module instance objects and register them into the `Store` or `VM` objects rather than adjust the settings in the `Configure` objects. - > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. And the 5 modules are recommended to all be created and registered together. + > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. And the 5 modules are recommended to all be created and registered together. - ```go - wasiobj := wasmedge.NewWasiModule( - os.Args[1:], // The args - os.Environ(), // The envs - []string{".:."}, // The mapping preopens - ) - procobj := wasmedge.NewWasmEdgeProcessModule( - []string{"ls", "echo"}, // The allowed commands - false, // Not to allow all commands - ) + ```go + wasiobj := wasmedge.NewWasiModule( + os.Args[1:], // The args + os.Environ(), // The envs + []string{".:."}, // The mapping preopens + ) + procobj := wasmedge.NewWasmEdgeProcessModule( + []string{"ls", "echo"}, // The allowed commands + false, // Not to allow all commands + ) - // Register the WASI and WasmEdge_Process into the VM object. - vm := wasmedge.NewVM() - vm.RegisterImport(wasiobj) - vm.RegisterImport(procobj) + // Register the WASI and WasmEdge_Process into the VM object. + vm := wasmedge.NewVM() + vm.RegisterImport(wasiobj) + vm.RegisterImport(procobj) - // ... Execute some WASM functions. + // ... Execute some WASM functions. - // Get the WASI exit code. - exitcode := wasiobj.WasiGetExitCode() - // The `exitcode` will be 0 if the WASI function "_start" execution has no error. - // Otherwise, it will return with the related exit code. + // Get the WASI exit code. + exitcode := wasiobj.WasiGetExitCode() + // The `exitcode` will be 0 if the WASI function "_start" execution has no error. + // Otherwise, it will return with the related exit code. - vm.Release() - // The import objects should be deleted. - wasiobj.Release() - procobj.Release() - ``` + vm.Release() + // The import objects should be deleted. + wasiobj.Release() + procobj.Release() + ``` 6. Example - Assume that there is a simple WASM from the WAT as following: - - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` - - Assume that edit the Go file `main.go` above: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - // Host function body definition. - func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) - - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res - - // Return - return returns, wasmedge.Result_Success - } - - func main() { - // Create the VM object. - vm := wasmedge.NewVM() - - // The WASM module buffer. - wasmbuf := []byte{ - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, - } - - // Create the module instance with the module name "extern". - impmod := wasmedge.NewModule("extern") - - // Create and add a function instance into the module instance with export name "func-add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) - functype.Release() - impmod.AddFunction("func-add", hostfunc) - - // Register the module instance into VM. - vm.RegisterImport(impmod) - - res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - - impmod.Release() - vm.Release() - } - ``` - - Then you can build and run the Golang application with the WasmEdge Golang SDK: - - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 - $ go build - $ ./wasmedge_test - Get the result: 6912 - ``` + Assume that there is a simple WASM from the WAT as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + Assume that edit the Go file `main.go` above: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + // Host function body definition. + func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Return + return returns, wasmedge.Result_Success + } + + func main() { + // Create the VM object. + vm := wasmedge.NewVM() + + // The WASM module buffer. + wasmbuf := []byte{ + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, + } + + // Create the module instance with the module name "extern". + impmod := wasmedge.NewModule("extern") + + // Create and add a function instance into the module instance with export name "func-add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) + functype.Release() + impmod.AddFunction("func-add", hostfunc) + + // Register the module instance into VM. + vm.RegisterImport(impmod) + + res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + + impmod.Release() + vm.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 + $ go build + $ ./wasmedge_test + Get the result: 6912 + ``` 7. Host Data Example - Developers can set a external data object to the `Function` object, and access to the object in the function body. Assume that edit the Go file `main.go` above: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - // Host function body definition. - func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) - - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res - - // Also set the result to the data. - *data.(*int32) = res - - // Return - return returns, wasmedge.Result_Success - } - - func main() { - // Create the VM object. - vm := wasmedge.NewVM() - - // The WASM module buffer. - wasmbuf := []byte{ - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, - } - - // The additional data to set into the host function. - var data int32 = 0 - - // Create the module instance with the module name "extern". - impmod := wasmedge.NewImportObject("extern") - - // Create and add a function instance into the module instance with export name "func-add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, &data, 0) - functype.Release() - impmod.AddFunction("func-add", hostfunc) - - // Register the module instance into VM. - vm.RegisterImport(impmod) - - res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - fmt.Println("Data value:", data) - - impmod.Release() - vm.Release() - } - ``` - - Then you can build and run the Golang application with the WasmEdge Golang SDK: - - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 - $ go build - $ ./wasmedge_test - Get the result: 6912 - Data value: 6912 - ``` + Developers can set a external data object to the `Function` object, and access to the object in the function body. Assume that edit the Go file `main.go` above: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + // Host function body definition. + func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Also set the result to the data. + *data.(*int32) = res + + // Return + return returns, wasmedge.Result_Success + } + + func main() { + // Create the VM object. + vm := wasmedge.NewVM() + + // The WASM module buffer. + wasmbuf := []byte{ + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, + } + + // The additional data to set into the host function. + var data int32 = 0 + + // Create the module instance with the module name "extern". + impmod := wasmedge.NewImportObject("extern") + + // Create and add a function instance into the module instance with export name "func-add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, &data, 0) + functype.Release() + impmod.AddFunction("func-add", hostfunc) + + // Register the module instance into VM. + vm.RegisterImport(impmod) + + res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + fmt.Println("Data value:", data) + + impmod.Release() + vm.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 + $ go build + $ ./wasmedge_test + Get the result: 6912 + Data value: 6912 + ``` ### Plug-ins diff --git a/docs/embed/go/reference/0.9.1.md b/docs/embed/go/reference/0.9.1.md index ef96c73e..46998d02 100644 --- a/docs/embed/go/reference/0.9.1.md +++ b/docs/embed/go/reference/0.9.1.md @@ -476,46 +476,46 @@ In WasmEdge-go, the APIs will automatically do the conversion for the built-in t 1. Number types: `i32`, `i64`, `f32`, and `f64` - - Convert the `uint32` and `int32` to `i32` automatically when passing a value into WASM. - - Convert the `uint64` and `int64` to `i64` automatically when passing a value into WASM. - - Convert the `uint` and `int` to `i32` automatically when passing a value into WASM in 32-bit system. - - Convert the `uint` and `int` to `i64` automatically when passing a value into WASM in 64-bit system. - - Convert the `float32` to `f32` automatically when passing a value into WASM. - - Convert the `float64` to `f64` automatically when passing a value into WASM. - - Convert the `i32` from WASM to `int32` when getting a result. - - Convert the `i64` from WASM to `int64` when getting a result. - - Convert the `f32` from WASM to `float32` when getting a result. - - Convert the `f64` from WASM to `float64` when getting a result. + - Convert the `uint32` and `int32` to `i32` automatically when passing a value into WASM. + - Convert the `uint64` and `int64` to `i64` automatically when passing a value into WASM. + - Convert the `uint` and `int` to `i32` automatically when passing a value into WASM in 32-bit system. + - Convert the `uint` and `int` to `i64` automatically when passing a value into WASM in 64-bit system. + - Convert the `float32` to `f32` automatically when passing a value into WASM. + - Convert the `float64` to `f64` automatically when passing a value into WASM. + - Convert the `i32` from WASM to `int32` when getting a result. + - Convert the `i64` from WASM to `int64` when getting a result. + - Convert the `f32` from WASM to `float32` when getting a result. + - Convert the `f64` from WASM to `float64` when getting a result. 2. Number type: `v128` for the `SIMD` proposal - Developers should use the `wasmedge.NewV128()` to generate a `v128` value, and use the `wasmedge.GetV128()` to get the value. + Developers should use the `wasmedge.NewV128()` to generate a `v128` value, and use the `wasmedge.GetV128()` to get the value. - ```go - val := wasmedge.NewV128(uint64(1234), uint64(5678)) - high, low := val.GetVal() - // `high` will be uint64(1234), `low` will be uint64(5678) - ``` + ```go + val := wasmedge.NewV128(uint64(1234), uint64(5678)) + high, low := val.GetVal() + // `high` will be uint64(1234), `low` will be uint64(5678) + ``` 3. Reference types: `FuncRef` and `ExternRef` for the `Reference-Types` proposal - ```go - funcref := wasmedge.NewFuncRef(10) - // Create a `FuncRef` with function index 10. - - num := 1234 - // `num` is a `int`. - externref := wasmedge.NewExternRef(&num) - // Create an `ExternRef` which reference to the `num`. - num = 5678 - // Modify the `num` to 5678. - numref := externref.GetRef().(*int) - // Get the original reference from the `ExternRef`. - fmt.Println(*numref) - // Will print `5678`. - numref.Release() - // Should call the `Release` method. - ``` + ```go + funcref := wasmedge.NewFuncRef(10) + // Create a `FuncRef` with function index 10. + + num := 1234 + // `num` is a `int`. + externref := wasmedge.NewExternRef(&num) + // Create an `ExternRef` which reference to the `num`. + num = 5678 + // Modify the `num` to 5678. + numref := externref.GetRef().(*int) + // Get the original reference from the `ExternRef`. + fmt.Println(*numref) + // Will print `5678`. + numref.Release() + // Should call the `Release` method. + ``` ### Results @@ -549,144 +549,144 @@ The WASM data structures are used for creating instances or can be queried from 1. Limit - The `Limit` struct presents the minimum and maximum value data structure. - - ```go - lim1 := wasmedge.NewLimit(12) - fmt.Println(lim1.HasMax()) - // Will print `false`. - fmt.Println(lim1.GetMin()) - // Will print `12`. - - lim2 := wasmedge.NewLimitWithMax(15, 50) - fmt.Println(lim2.HasMax()) - // Will print `true`. - fmt.Println(lim2.GetMin()) - // Will print `15`. - fmt.Println(lim2.GetMax()) - // Will print `50`. - ``` + The `Limit` struct presents the minimum and maximum value data structure. + + ```go + lim1 := wasmedge.NewLimit(12) + fmt.Println(lim1.HasMax()) + // Will print `false`. + fmt.Println(lim1.GetMin()) + // Will print `12`. + + lim2 := wasmedge.NewLimitWithMax(15, 50) + fmt.Println(lim2.HasMax()) + // Will print `true`. + fmt.Println(lim2.GetMin()) + // Will print `15`. + fmt.Println(lim2.GetMax()) + // Will print `50`. + ``` 2. Function type context - The `FunctionType` is an object holds the function type context and used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `FunctionType` APIs to get the parameter or return value types information. - - ```go - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{ - wasmedge.ValType_ExternRef, - wasmedge.ValType_I32, - wasmedge.ValType_I64, - }, []wasmedge.ValType{ - wasmedge.ValType_F32, - wasmedge.ValType_F64, - }) - - plen := functype.GetParametersLength() - // `plen` will be 3. - rlen := functype.GetReturnsLength() - // `rlen` will be 2. - plist := functype.GetParameters() - // `plist` will be `[]wasmedge.ValType{wasmedge.ValType_ExternRef, wasmedge.ValType_I32, wasmedge.ValType_I64}`. - rlist := functype.GetReturns() - // `rlist` will be `[]wasmedge.ValType{wasmedge.ValType_F32, wasmedge.ValType_F64}`. - - functype.Release() - ``` + The `FunctionType` is an object holds the function type context and used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `FunctionType` APIs to get the parameter or return value types information. + + ```go + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{ + wasmedge.ValType_ExternRef, + wasmedge.ValType_I32, + wasmedge.ValType_I64, + }, []wasmedge.ValType{ + wasmedge.ValType_F32, + wasmedge.ValType_F64, + }) + + plen := functype.GetParametersLength() + // `plen` will be 3. + rlen := functype.GetReturnsLength() + // `rlen` will be 2. + plist := functype.GetParameters() + // `plist` will be `[]wasmedge.ValType{wasmedge.ValType_ExternRef, wasmedge.ValType_I32, wasmedge.ValType_I64}`. + rlist := functype.GetReturns() + // `rlist` will be `[]wasmedge.ValType{wasmedge.ValType_F32, wasmedge.ValType_F64}`. + + functype.Release() + ``` 3. Table type context - The `TableType` is an object holds the table type context and used for `Table` instance creation or getting information from `Table` instances. + The `TableType` is an object holds the table type context and used for `Table` instance creation or getting information from `Table` instances. - ```go - lim := wasmedge.NewLimit(12) - tabtype := wasmedge.NewTableType(wasmedge.RefType_ExternRef, lim) + ```go + lim := wasmedge.NewLimit(12) + tabtype := wasmedge.NewTableType(wasmedge.RefType_ExternRef, lim) - rtype := tabtype.GetRefType() - // `rtype` will be `wasmedge.RefType_ExternRef`. - getlim := tabtype.GetLimit() - // `getlim` will be the same value as `lim`. + rtype := tabtype.GetRefType() + // `rtype` will be `wasmedge.RefType_ExternRef`. + getlim := tabtype.GetLimit() + // `getlim` will be the same value as `lim`. - tabtype.Release() - ``` + tabtype.Release() + ``` 4. Memory type context - The `MemoryType` is an object holds the memory type context and used for `Memory` instance creation or getting information from `Memory` instances. + The `MemoryType` is an object holds the memory type context and used for `Memory` instance creation or getting information from `Memory` instances. - ```go - lim := wasmedge.NewLimit(1) - memtype := wasmedge.NewMemoryType(lim) + ```go + lim := wasmedge.NewLimit(1) + memtype := wasmedge.NewMemoryType(lim) - getlim := memtype.GetLimit() - // `getlim` will be the same value as `lim`. + getlim := memtype.GetLimit() + // `getlim` will be the same value as `lim`. - memtype.Release() - ``` + memtype.Release() + ``` 5. Global type context - The `GlobalType` is an object holds the global type context and used for `Global` instance creation or getting information from `Global` instances. + The `GlobalType` is an object holds the global type context and used for `Global` instance creation or getting information from `Global` instances. - ```go - globtype := wasmedge.NewGlobalType(wasmedge.ValType_F64, wasmedge.ValMut_Var) + ```go + globtype := wasmedge.NewGlobalType(wasmedge.ValType_F64, wasmedge.ValMut_Var) - vtype := globtype.GetValType() - // `vtype` will be `wasmedge.ValType_F64`. - vmut := globtype.GetMutability() - // `vmut` will be `wasmedge.ValMut_Var`. + vtype := globtype.GetValType() + // `vtype` will be `wasmedge.ValType_F64`. + vmut := globtype.GetMutability() + // `vmut` will be `wasmedge.ValMut_Var`. - globtype.Release() - ``` + globtype.Release() + ``` 6. Import type context - The `ImportType` is an object holds the import type context and used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `ImportType` object. The details about querying `ImportType` objects will be introduced in the [AST Module](#ast-module). + The `ImportType` is an object holds the import type context and used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `ImportType` object. The details about querying `ImportType` objects will be introduced in the [AST Module](#ast-module). - ```go - var ast *wasmedge.AST = ... - // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. - imptypelist := ast.ListImports() - // Assume that `imptypelist` is an array listed from the `ast` for the imports. + ```go + var ast *wasmedge.AST = ... + // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. + imptypelist := ast.ListImports() + // Assume that `imptypelist` is an array listed from the `ast` for the imports. - for i, imptype := range imptypelist { - exttype := imptype.GetExternalType() - // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, - // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. + for i, imptype := range imptypelist { + exttype := imptype.GetExternalType() + // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, + // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. - modname := imptype.GetModuleName() - extname := imptype.GetExternalName() - // Get the module name and external name of the imports. + modname := imptype.GetModuleName() + extname := imptype.GetExternalName() + // Get the module name and external name of the imports. - extval := imptype.GetExternalValue() - // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, - // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. - } - ``` + extval := imptype.GetExternalValue() + // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, + // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. + } + ``` 7. Export type context - The `ExportType` is an object holds the export type context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `ExportType` objects will be introduced in the [AST Module](#ast-module). + The `ExportType` is an object holds the export type context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `ExportType` objects will be introduced in the [AST Module](#ast-module). - ```go - var ast *wasmedge.AST = ... - // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. - exptypelist := ast.ListExports() - // Assume that `exptypelist` is an array listed from the `ast` for the exports. + ```go + var ast *wasmedge.AST = ... + // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. + exptypelist := ast.ListExports() + // Assume that `exptypelist` is an array listed from the `ast` for the exports. - for i, exptype := range exptypelist { - exttype := exptype.GetExternalType() - // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, - // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. + for i, exptype := range exptypelist { + exttype := exptype.GetExternalType() + // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, + // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. - extname := exptype.GetExternalName() - // Get the external name of the exports. + extname := exptype.GetExternalName() + // Get the external name of the exports. - extval := exptype.GetExternalValue() - // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, - // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. - } - ``` + extval := exptype.GetExternalValue() + // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, + // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. + } + ``` ### Async @@ -694,35 +694,35 @@ After calling the [asynchronous execution APIs](#asynchronous-execution), develo 1. Get the execution result of the asynchronous execution - Developers can use the `(*Async).GetResult()` API to block and wait for getting the return values. This function will block and wait for the execution. If the execution has finished, this function will return immediately. If the execution failed, this function will return an error. + Developers can use the `(*Async).GetResult()` API to block and wait for getting the return values. This function will block and wait for the execution. If the execution has finished, this function will return immediately. If the execution failed, this function will return an error. - ```go - async := ... // Ignored. Asynchronous execute a function. + ```go + async := ... // Ignored. Asynchronous execute a function. - // Blocking and waiting for the execution and get the return values. - res, err := async.GetResult() - async.Release() - ``` + // Blocking and waiting for the execution and get the return values. + res, err := async.GetResult() + async.Release() + ``` 2. Wait for the asynchronous execution with timeout settings - Besides waiting until the end of execution, developers can set the timeout to wait for. + Besides waiting until the end of execution, developers can set the timeout to wait for. - ```go - async := ... // Ignored. Asynchronous execute a function. + ```go + async := ... // Ignored. Asynchronous execute a function. - // Blocking and waiting for the execution with the timeout(ms). - isend := async.WaitFor(1000) - if isend { - res, err := async.GetResult() - // ... - } else { - async.Cancel() - _, err := async.GetResult() - // The error message in `err` will be "execution interrupted". - } - async.Release() - ``` + // Blocking and waiting for the execution with the timeout(ms). + isend := async.WaitFor(1000) + if isend { + res, err := async.GetResult() + // ... + } else { + async.Cancel() + _, err := async.GetResult() + // The error message in `err` will be "execution interrupted". + } + async.Release() + ``` ### Configurations @@ -730,145 +730,145 @@ The configuration object, `wasmedge.Configure`, manages the configurations for ` 1. Proposals - WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` object. - - ```go - const ( - IMPORT_EXPORT_MUT_GLOBALS = Proposal(C.WasmEdge_Proposal_ImportExportMutGlobals) - NON_TRAP_FLOAT_TO_INT_CONVERSIONS = Proposal(C.WasmEdge_Proposal_NonTrapFloatToIntConversions) - SIGN_EXTENSION_OPERATORS = Proposal(C.WasmEdge_Proposal_SignExtensionOperators) - MULTI_VALUE = Proposal(C.WasmEdge_Proposal_MultiValue) - BULK_MEMORY_OPERATIONS = Proposal(C.WasmEdge_Proposal_BulkMemoryOperations) - REFERENCE_TYPES = Proposal(C.WasmEdge_Proposal_ReferenceTypes) - SIMD = Proposal(C.WasmEdge_Proposal_SIMD) - TAIL_CALL = Proposal(C.WasmEdge_Proposal_TailCall) - ANNOTATIONS = Proposal(C.WasmEdge_Proposal_Annotations) - MEMORY64 = Proposal(C.WasmEdge_Proposal_Memory64) - THREADS = Proposal(C.WasmEdge_Proposal_Threads) - EXCEPTION_HANDLING = Proposal(C.WasmEdge_Proposal_ExceptionHandling) - FUNCTION_REFERENCES = Proposal(C.WasmEdge_Proposal_FunctionReferences) - ) - ``` - - Developers can add or remove the proposals into the `Configure` object. - - ```go - // By default, the following proposals have turned on initially: - // * IMPORT_EXPORT_MUT_GLOBALS - // * NON_TRAP_FLOAT_TO_INT_CONVERSIONS - // * SIGN_EXTENSION_OPERATORS - // * MULTI_VALUE - // * BULK_MEMORY_OPERATIONS - // * REFERENCE_TYPES - // * SIMD - conf := wasmedge.NewConfigure() - // Developers can also pass the proposals as parameters: - // conf := wasmedge.NewConfigure(wasmedge.SIMD, wasmedge.BULK_MEMORY_OPERATIONS) - conf.AddConfig(wasmedge.SIMD) - conf.RemoveConfig(wasmedge.REFERENCE_TYPES) - is_bulkmem := conf.HasConfig(wasmedge.BULK_MEMORY_OPERATIONS) - // The `is_bulkmem` will be `true`. - conf.Release() - ``` + WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` object. + + ```go + const ( + IMPORT_EXPORT_MUT_GLOBALS = Proposal(C.WasmEdge_Proposal_ImportExportMutGlobals) + NON_TRAP_FLOAT_TO_INT_CONVERSIONS = Proposal(C.WasmEdge_Proposal_NonTrapFloatToIntConversions) + SIGN_EXTENSION_OPERATORS = Proposal(C.WasmEdge_Proposal_SignExtensionOperators) + MULTI_VALUE = Proposal(C.WasmEdge_Proposal_MultiValue) + BULK_MEMORY_OPERATIONS = Proposal(C.WasmEdge_Proposal_BulkMemoryOperations) + REFERENCE_TYPES = Proposal(C.WasmEdge_Proposal_ReferenceTypes) + SIMD = Proposal(C.WasmEdge_Proposal_SIMD) + TAIL_CALL = Proposal(C.WasmEdge_Proposal_TailCall) + ANNOTATIONS = Proposal(C.WasmEdge_Proposal_Annotations) + MEMORY64 = Proposal(C.WasmEdge_Proposal_Memory64) + THREADS = Proposal(C.WasmEdge_Proposal_Threads) + EXCEPTION_HANDLING = Proposal(C.WasmEdge_Proposal_ExceptionHandling) + FUNCTION_REFERENCES = Proposal(C.WasmEdge_Proposal_FunctionReferences) + ) + ``` + + Developers can add or remove the proposals into the `Configure` object. + + ```go + // By default, the following proposals have turned on initially: + // * IMPORT_EXPORT_MUT_GLOBALS + // * NON_TRAP_FLOAT_TO_INT_CONVERSIONS + // * SIGN_EXTENSION_OPERATORS + // * MULTI_VALUE + // * BULK_MEMORY_OPERATIONS + // * REFERENCE_TYPES + // * SIMD + conf := wasmedge.NewConfigure() + // Developers can also pass the proposals as parameters: + // conf := wasmedge.NewConfigure(wasmedge.SIMD, wasmedge.BULK_MEMORY_OPERATIONS) + conf.AddConfig(wasmedge.SIMD) + conf.RemoveConfig(wasmedge.REFERENCE_TYPES) + is_bulkmem := conf.HasConfig(wasmedge.BULK_MEMORY_OPERATIONS) + // The `is_bulkmem` will be `true`. + conf.Release() + ``` 2. Host registrations - This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` objects. + This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` objects. - ```go - const ( - WASI = HostRegistration(C.WasmEdge_HostRegistration_Wasi) - WasmEdge_PROCESS = HostRegistration(C.WasmEdge_HostRegistration_WasmEdge_Process) - ) - ``` + ```go + const ( + WASI = HostRegistration(C.WasmEdge_HostRegistration_Wasi) + WasmEdge_PROCESS = HostRegistration(C.WasmEdge_HostRegistration_WasmEdge_Process) + ) + ``` - The details will be introduced in the [preregistrations of VM context](#preregistrations). + The details will be introduced in the [preregistrations of VM context](#preregistrations). - ```go - conf := wasmedge.NewConfigure() - // Developers can also pass the proposals as parameters: - // conf := wasmedge.NewConfigure(wasmedge.WASI) - conf.AddConfig(wasmedge.WASI) - conf.Release() - ``` + ```go + conf := wasmedge.NewConfigure() + // Developers can also pass the proposals as parameters: + // conf := wasmedge.NewConfigure(wasmedge.WASI) + conf.AddConfig(wasmedge.WASI) + conf.Release() + ``` 3. Maximum memory pages - Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` objects. + Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` objects. - ```go - conf := wasmedge.NewConfigure() + ```go + conf := wasmedge.NewConfigure() - pagesize := conf.GetMaxMemoryPage() - // By default, the maximum memory page size in each memory instances is 65536. - conf.SetMaxMemoryPage(1234) - pagesize := conf.GetMaxMemoryPage() - // `pagesize` will be 1234. + pagesize := conf.GetMaxMemoryPage() + // By default, the maximum memory page size in each memory instances is 65536. + conf.SetMaxMemoryPage(1234) + pagesize := conf.GetMaxMemoryPage() + // `pagesize` will be 1234. - conf.Release() - ``` + conf.Release() + ``` 4. AOT compiler options - The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. - - ```go - const ( - // Disable as many optimizations as possible. - CompilerOptLevel_O0 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O0) - // Optimize quickly without destroying debuggability. - CompilerOptLevel_O1 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O1) - // Optimize for fast execution as much as possible without triggering significant incremental compile time or code size growth. - CompilerOptLevel_O2 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O2) - // Optimize for fast execution as much as possible. - CompilerOptLevel_O3 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O3) - // Optimize for small code size as much as possible without triggering significant incremental compile time or execution time slowdowns. - CompilerOptLevel_Os = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Os) - // Optimize for small code size as much as possible. - CompilerOptLevel_Oz = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Oz) - ) - - const ( - // Native dynamic library format. - CompilerOutputFormat_Native = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Native) - // WebAssembly with AOT compiled codes in custom section. - CompilerOutputFormat_Wasm = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Wasm) - ) - ``` + The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. + + ```go + const ( + // Disable as many optimizations as possible. + CompilerOptLevel_O0 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O0) + // Optimize quickly without destroying debuggability. + CompilerOptLevel_O1 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O1) + // Optimize for fast execution as much as possible without triggering significant incremental compile time or code size growth. + CompilerOptLevel_O2 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O2) + // Optimize for fast execution as much as possible. + CompilerOptLevel_O3 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O3) + // Optimize for small code size as much as possible without triggering significant incremental compile time or execution time slowdowns. + CompilerOptLevel_Os = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Os) + // Optimize for small code size as much as possible. + CompilerOptLevel_Oz = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Oz) + ) - These configurations are only effective in `Compiler` contexts. + const ( + // Native dynamic library format. + CompilerOutputFormat_Native = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Native) + // WebAssembly with AOT compiled codes in custom section. + CompilerOutputFormat_Wasm = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Wasm) + ) + ``` - ```go - conf := wasmedge.NewConfigure() + These configurations are only effective in `Compiler` contexts. - // By default, the optimization level is O3. - conf.SetCompilerOptimizationLevel(wasmedge.CompilerOptLevel_O2) - // By default, the output format is universal WASM. - conf.SetCompilerOutputFormat(wasmedge.CompilerOutputFormat_Native) - // By default, the dump IR is `false`. - conf.SetCompilerDumpIR(true) - // By default, the generic binary is `false`. - conf.SetCompilerGenericBinary(true) + ```go + conf := wasmedge.NewConfigure() - conf.Release() - ``` + // By default, the optimization level is O3. + conf.SetCompilerOptimizationLevel(wasmedge.CompilerOptLevel_O2) + // By default, the output format is universal WASM. + conf.SetCompilerOutputFormat(wasmedge.CompilerOutputFormat_Native) + // By default, the dump IR is `false`. + conf.SetCompilerDumpIR(true) + // By default, the generic binary is `false`. + conf.SetCompilerGenericBinary(true) + + conf.Release() + ``` 5. Statistics options - The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` objects. + The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` objects. - ```go - conf := wasmedge.NewConfigure() + ```go + conf := wasmedge.NewConfigure() - // By default, the instruction counting is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsInstructionCounting(true) - // By default, the cost measurement is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsTimeMeasuring(true) - // By default, the time measurement is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsCostMeasuring(true) + // By default, the instruction counting is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsInstructionCounting(true) + // By default, the cost measurement is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsTimeMeasuring(true) + // By default, the time measurement is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsCostMeasuring(true) - conf.Release() - ``` + conf.Release() + ``` ### Statistics @@ -878,46 +878,46 @@ Before using statistics, the statistics configuration must be set. Otherwise, th 1. Instruction counter - The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` object from the `VM` object, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. + The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` object from the `VM` object, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. - ```go - stat := wasmedge.NewStatistics() - // ... After running the WASM functions with the `Statistics` object + ```go + stat := wasmedge.NewStatistics() + // ... After running the WASM functions with the `Statistics` object - count := stat.GetInstrCount() - ips := stat.GetInstrPerSecond() - stat.Release() - ``` + count := stat.GetInstrCount() + ips := stat.GetInstrPerSecond() + stat.Release() + ``` 2. Cost table - The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` object. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. - - ```c - stat := wasmedge.NewStatistics() - - costtable := []uint64{ - 0, 0, - 10, /* 0x02: Block */ - 11, /* 0x03: Loop */ - 12, /* 0x04: If */ - 12, /* 0x05: Else */ - 0, 0, 0, 0, 0, 0, - 20, /* 0x0C: Br */ - 21, /* 0x0D: Br_if */ - 22, /* 0x0E: Br_table */ - 0, - } - // Developers can set the costs of each instruction. The value not covered will be 0. - - WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); - stat.SetCostTable() - stat.SetCostLimit(5000000) - - // ... After running the WASM functions with the `Statistics` object - cost := stat.GetTotalCost() - stat.Release() - ``` + The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` object. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. + + ```c + stat := wasmedge.NewStatistics() + + costtable := []uint64{ + 0, 0, + 10, /* 0x02: Block */ + 11, /* 0x03: Loop */ + 12, /* 0x04: If */ + 12, /* 0x05: Else */ + 0, 0, 0, 0, 0, 0, + 20, /* 0x0C: Br */ + 21, /* 0x0D: Br_if */ + 22, /* 0x0E: Br_table */ + 0, + } + // Developers can set the costs of each instruction. The value not covered will be 0. + + WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); + stat.SetCostTable() + stat.SetCostLimit(5000000) + + // ... After running the WASM functions with the `Statistics` object + cost := stat.GetTotalCost() + stat.Release() + ``` ## WasmEdge VM @@ -947,157 +947,157 @@ The following shows the example of running the WASM for getting the Fibonacci. T 1. Run WASM functions rapidly - Create a new Go project first: - - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` - - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current `wasmedge_test` directory, and create and edit the Go file `main.go` as following: - - ```go - package main - - import ( - "fmt" + Create a new Go project first: - "github.com/second-state/WasmEdge-go/wasmedge" - ) + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - func main() { - // Set the logging level. - wasmedge.SetLogErrorLevel() + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current `wasmedge_test` directory, and create and edit the Go file `main.go` as following: - // Create the configure context and add the WASI support. - // This step is not necessary unless you need WASI support. - conf := wasmedge.NewConfigure(wasmedge.WASI) - // Create VM with the configure. - vm := wasmedge.NewVMWithConfig(conf) - - res, err := vm.RunWasmFile("fibonacci.wasm", "fib", uint32(21)) - if err == nil { - fmt.Println("Get fibonacci[21]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } + ```go + package main - vm.Release() - conf.Release() - } - ``` + import ( + "fmt" - Then you can build and run the Golang application with the WasmEdge Golang SDK: (the 21 Fibonacci number is 17711 in 0-based index) + "github.com/second-state/WasmEdge-go/wasmedge" + ) - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 - $ go build - $ ./wasmedge_test - Get fibonacci[21]: 17711 - ``` + func main() { + // Set the logging level. + wasmedge.SetLogErrorLevel() + + // Create the configure context and add the WASI support. + // This step is not necessary unless you need WASI support. + conf := wasmedge.NewConfigure(wasmedge.WASI) + // Create VM with the configure. + vm := wasmedge.NewVMWithConfig(conf) + + res, err := vm.RunWasmFile("fibonacci.wasm", "fib", uint32(21)) + if err == nil { + fmt.Println("Get fibonacci[21]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } + + vm.Release() + conf.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: (the 21 Fibonacci number is 17711 in 0-based index) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 + $ go build + $ ./wasmedge_test + Get fibonacci[21]: 17711 + ``` 2. Instantiate and run WASM functions manually - Besides the above example, developers can run the WASM functions step-by-step with `VM` object APIs: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - // Set the logging level. - wasmedge.SetLogErrorLevel() - - // Create VM. - vm := wasmedge.NewVM() - var err error - var res []interface{} - - // Step 1: Load WASM file. - err = vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - // Developers can load, validate, and instantiate another WASM module - // to replace the instantiated one. In this case, the old module will - // be cleared, but the registered modules are still kept. - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // Step 4: Execute WASM functions. Parameters: (funcname, args...) - res, err = vm.Execute("fib", uint32(25)) - // Developers can execute functions repeatedly after instantiation. - if err == nil { - fmt.Println("Get fibonacci[25]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } + Besides the above example, developers can run the WASM functions step-by-step with `VM` object APIs: - vm.Release() - } - ``` - - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + ```go + package main - ```bash - $ go build - $ ./wasmedge_test - Get fibonacci[25]: 121393 - ``` + import ( + "fmt" - The following graph explains the status of the `VM` object. - - ```text - |========================| - |------->| VM: Initiated | - | |========================| - | | - | LoadWasm - | | - | v - | |========================| - |--------| VM: Loaded |<-------| - | |========================| | - | | ^ | - | Validate | | - Cleanup | LoadWasm | - | v | LoadWasm - | |========================| | - |--------| VM: Validated | | - | |========================| | - | | ^ | - | Instantiate | | - | | RegisterModule | - | v | | - | |========================| | - |--------| VM: Instantiated |--------| - |========================| - | ^ - | | - -------------- - Instantiate, Execute, ExecuteRegistered, - ExecuteBindgen, ExecuteBindgenRegistered - ``` + "github.com/second-state/WasmEdge-go/wasmedge" + ) - The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or import objects in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. + func main() { + // Set the logging level. + wasmedge.SetLogErrorLevel() + + // Create VM. + vm := wasmedge.NewVM() + var err error + var res []interface{} + + // Step 1: Load WASM file. + err = vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } + + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + // Developers can load, validate, and instantiate another WASM module + // to replace the instantiated one. In this case, the old module will + // be cleared, but the registered modules are still kept. + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // Step 4: Execute WASM functions. Parameters: (funcname, args...) + res, err = vm.Execute("fib", uint32(25)) + // Developers can execute functions repeatedly after instantiation. + if err == nil { + fmt.Println("Get fibonacci[25]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } + + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go build + $ ./wasmedge_test + Get fibonacci[25]: 121393 + ``` + + The following graph explains the status of the `VM` object. + + ```text + |========================| + |------->| VM: Initiated | + | |========================| + | | + | LoadWasm + | | + | v + | |========================| + |--------| VM: Loaded |<-------| + | |========================| | + | | ^ | + | Validate | | + Cleanup | LoadWasm | + | v | LoadWasm + | |========================| | + |--------| VM: Validated | | + | |========================| | + | | ^ | + | Instantiate | | + | | RegisterModule | + | v | | + | |========================| | + |--------| VM: Instantiated |--------| + |========================| + | ^ + | | + -------------- + Instantiate, Execute, ExecuteRegistered, + ExecuteBindgen, ExecuteBindgenRegistered + ``` + + The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or import objects in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. ### VM Creations @@ -1133,44 +1133,44 @@ WasmEdge provides the following built-in pre-registrations. 1. [WASI (WebAssembly System Interface)](https://github.com/WebAssembly/WASI) - Developers can turn on the WASI support for VM in the `Configure` object. + Developers can turn on the WASI support for VM in the `Configure` object. - ```go - conf := wasmedge.NewConfigure(wasmedge.WASI) - // Or you can set the `wasmedge.WASI` into the configure object through `(*Configure).AddConfig`. - vm := wasmedge.NewVMWithConfig(conf) - vm.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WASI) + // Or you can set the `wasmedge.WASI` into the configure object through `(*Configure).AddConfig`. + vm := wasmedge.NewVMWithConfig(conf) + vm.Release() - // The following API can retrieve the pre-registration import objects from the VM object. - // This API will return `nil` if the corresponding pre-registration is not set into the configuration. - wasiconf := conf.GetImportObject(wasmedge.WASI) - // Initialize the WASI. - wasiconf.InitWasi(/* ... ignored */) + // The following API can retrieve the pre-registration import objects from the VM object. + // This API will return `nil` if the corresponding pre-registration is not set into the configuration. + wasiconf := conf.GetImportObject(wasmedge.WASI) + // Initialize the WASI. + wasiconf.InitWasi(/* ... ignored */) - conf.Release() - ``` + conf.Release() + ``` - And also can create the WASI import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 2. [WasmEdge_Process](https://crates.io/crates/wasmedge_process_interface) - This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` host functions. + This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` host functions. - ```go - conf := wasmedge.NewConfigure(wasmedge.WasmEdge_PROCESS) - vm := wasmedge.NewVMWithConfig(conf) - vm.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WasmEdge_PROCESS) + vm := wasmedge.NewVMWithConfig(conf) + vm.Release() - // The following API can retrieve the pre-registration import objects from the VM object. - // This API will return `nil` if the corresponding pre-registration is not set into the configuration. - procconf := conf.GetImportObject(wasmedge.WasmEdge_PROCESS) - // Initialize the WasmEdge_Process. - procconf.InitWasmEdgeProcess(/* ... ignored */) + // The following API can retrieve the pre-registration import objects from the VM object. + // This API will return `nil` if the corresponding pre-registration is not set into the configuration. + procconf := conf.GetImportObject(wasmedge.WasmEdge_PROCESS) + // Initialize the WasmEdge_Process. + procconf.InitWasmEdgeProcess(/* ... ignored */) - conf.Release() - ``` + conf.Release() + ``` - And also can create the WasmEdge_Process import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WasmEdge_Process import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). ### Host Module Registrations @@ -1195,211 +1195,211 @@ In WebAssembly, the instances in WASM modules can be exported and can be importe 1. Register the WASM modules with exported module names - Unless the import objects have already contained the module names, every WASM module should be named uniquely when registering. The following shows the example. + Unless the import objects have already contained the module names, every WASM module should be named uniquely when registering. The following shows the example. - Create a new Go project first: + Create a new Go project first: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. Then create and edit the Go file `main.go` as following: + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. Then create and edit the Go file `main.go` as following: - ```go - package main + ```go + package main - import "github.com/second-state/WasmEdge-go/wasmedge" + import "github.com/second-state/WasmEdge-go/wasmedge" - func main() { - // Create VM. - vm := wasmedge.NewVM() + func main() { + // Create VM. + vm := wasmedge.NewVM() - var err error - err = vm.RegisterWasmFile("module_name", "fibonacci.wasm") - // Developers can register the WASM module from `[]byte` with the - // `(*VM).RegisterWasmBuffer` function, or from `AST` object with - // the `(*VM).RegisterAST` function. - // The result status should be checked. The error will occur if the - // WASM module instantiation failed or the module name conflicts. + var err error + err = vm.RegisterWasmFile("module_name", "fibonacci.wasm") + // Developers can register the WASM module from `[]byte` with the + // `(*VM).RegisterWasmBuffer` function, or from `AST` object with + // the `(*VM).RegisterAST` function. + // The result status should be checked. The error will occur if the + // WASM module instantiation failed or the module name conflicts. - vm.Release() - } - ``` + vm.Release() + } + ``` 2. Execute the functions in registered WASM modules - Edit the Go file `main.go` as following: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - // Create VM. - vm := wasmedge.NewVM() - - var res []interface{} - var err error - // Register the WASM module from file into VM with the module name "mod". - err = vm.RegisterWasmFile("mod", "fibonacci.wasm") - // Developers can register the WASM module from `[]byte` with the - // `(*VM).RegisterWasmBuffer` function, or from `AST` object with - // the `(*VM).RegisterAST` function. - if err != nil { - fmt.Println("WASM registration failed:", err.Error()) - return - } - // The function "fib" in the "fibonacci.wasm" was exported with the module - // name "mod". As the same as host functions, other modules can import the - // function `"mod" "fib"`. - - // Execute WASM functions in registered modules. - // Unlike the execution of functions, the registered functions can be - // invoked without `(*VM).Instantiate` because the WASM module was - // instantiated when registering. - // Developers can also invoke the host functions directly with this API. - res, err = vm.ExecuteRegistered("mod", "fib", int32(25)) - if err == nil { - fmt.Println("Get fibonacci[25]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } + Edit the Go file `main.go` as following: - vm.Release() - } - ``` + ```go + package main - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + import ( + "fmt" - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 - $ go build - $ ./wasmedge_test - Get fibonacci[25]: 121393 - ``` + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + func main() { + // Create VM. + vm := wasmedge.NewVM() + + var res []interface{} + var err error + // Register the WASM module from file into VM with the module name "mod". + err = vm.RegisterWasmFile("mod", "fibonacci.wasm") + // Developers can register the WASM module from `[]byte` with the + // `(*VM).RegisterWasmBuffer` function, or from `AST` object with + // the `(*VM).RegisterAST` function. + if err != nil { + fmt.Println("WASM registration failed:", err.Error()) + return + } + // The function "fib" in the "fibonacci.wasm" was exported with the module + // name "mod". As the same as host functions, other modules can import the + // function `"mod" "fib"`. + + // Execute WASM functions in registered modules. + // Unlike the execution of functions, the registered functions can be + // invoked without `(*VM).Instantiate` because the WASM module was + // instantiated when registering. + // Developers can also invoke the host functions directly with this API. + res, err = vm.ExecuteRegistered("mod", "fib", int32(25)) + if err == nil { + fmt.Println("Get fibonacci[25]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } + + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 + $ go build + $ ./wasmedge_test + Get fibonacci[25]: 121393 + ``` ### Asynchronous Execution 1. Asynchronously run WASM functions rapidly - Assume that a new Go project is created as following: + Assume that a new Go project is created as following: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: + Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: - ```go - package main + ```go + package main - import ( - "fmt" + import ( + "fmt" - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - // Create VM. - vm := wasmedge.NewVM() + "github.com/second-state/WasmEdge-go/wasmedge" + ) - // Asynchronously run the WASM function from file and get the `wasmedge.Async` object. - async := vm.AsyncRunWasmFile("fibonacci.wasm", "fib", uint32(20)) + func main() { + // Create VM. + vm := wasmedge.NewVM() + + // Asynchronously run the WASM function from file and get the `wasmedge.Async` object. + async := vm.AsyncRunWasmFile("fibonacci.wasm", "fib", uint32(20)) + + // Block and wait for the execution and get the results. + res, err := async.GetResult() + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + async.Release() + vm.Release() + } + ``` + + Then you can build and run: (the 20th Fibonacci number is 10946 in 0-based index) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 + $ go build + $ ./wasmedge_test + Get the result: 10946 + ``` - // Block and wait for the execution and get the results. - res, err := async.GetResult() - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - async.Release() - vm.Release() - } - ``` +2. Instantiate and asynchronously run WASM functions manually - Then you can build and run: (the 20th Fibonacci number is 10946 in 0-based index) + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 - $ go build - $ ./wasmedge_test - Get the result: 10946 - ``` - -2. Instantiate and asynchronously run WASM functions manually + ```go + package main - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - var err error - var res []interface{} - - // Create VM. - vm := wasmedge.NewVM() - - // Step 1: Load WASM file. - // Developers can load the WASM binary from buffer with the `(*VM).LoadWasmBuffer()` API, - // or from `wasmedge.AST` object with the `(*VM).LoadWasmAST()` API. - err := vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // Step 4: Asynchronously execute the WASM function and get the `wasmedge.Async` object. - async := vm.AsyncExecute("fib", uint32(25)) - - // Block and wait for the execution and get the results. - res, err := async.GetResult() - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - async.Release() - vm.Release() - } - ``` + import ( + "fmt" - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + "github.com/second-state/WasmEdge-go/wasmedge" + ) - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 - $ go build - $ ./wasmedge_test - Get the result: 121393 - ``` + func main() { + var err error + var res []interface{} + + // Create VM. + vm := wasmedge.NewVM() + + // Step 1: Load WASM file. + // Developers can load the WASM binary from buffer with the `(*VM).LoadWasmBuffer()` API, + // or from `wasmedge.AST` object with the `(*VM).LoadWasmAST()` API. + err := vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } + + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // Step 4: Asynchronously execute the WASM function and get the `wasmedge.Async` object. + async := vm.AsyncExecute("fib", uint32(25)) + + // Block and wait for the execution and get the results. + res, err := async.GetResult() + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + async.Release() + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 + $ go build + $ ./wasmedge_test + Get the result: 121393 + ``` ### Instance Tracing @@ -1407,112 +1407,112 @@ Sometimes the developers may have requirements to get the instances of the WASM 1. Store - If the `VM` object is created without assigning a `Store` object, the `VM` context will allocate and own a `Store`. + If the `VM` object is created without assigning a `Store` object, the `VM` context will allocate and own a `Store`. - ```go - vm := wasmedge.NewVM() - store := vm.GetStore() - // The object should __NOT__ be deleted by calling `(*Store).Release`. - vm.Release() - ``` + ```go + vm := wasmedge.NewVM() + store := vm.GetStore() + // The object should __NOT__ be deleted by calling `(*Store).Release`. + vm.Release() + ``` - Developers can also create the `VM` object with a `Store` object. In this case, developers should guarantee that the `Store` object cannot be released before the `VM` object. Please refer to the [Store Objects](#store) for the details about the `Store` APIs. + Developers can also create the `VM` object with a `Store` object. In this case, developers should guarantee that the `Store` object cannot be released before the `VM` object. Please refer to the [Store Objects](#store) for the details about the `Store` APIs. - ```go - store := wasmedge.NewStore() - vm := wasmedge.NewVMWithStore(store) + ```go + store := wasmedge.NewStore() + vm := wasmedge.NewVMWithStore(store) - storemock := vm.GetStore() - // The internal store context of the `store` and the `storemock` are the same. + storemock := vm.GetStore() + // The internal store context of the `store` and the `storemock` are the same. - vm.Release() - store.Release() - ``` + vm.Release() + store.Release() + ``` 2. List exported functions - After the WASM module instantiation, developers can use the `(*VM).Execute` function to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. + After the WASM module instantiation, developers can use the `(*VM).Execute` function to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. - Assume that a new Go project is created as following: + Assume that a new Go project is created as following: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - // Create VM. - vm := wasmedge.NewVM() - - // Step 1: Load WASM file. - err := vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // List the exported functions for the names and function types. - funcnames, functypes := vm.GetFunctionList() - for _, fname := range funcnames { - fmt.Println("Exported function name:", fname) - } - for _, ftype := range functypes { - // `ftype` is the `FunctionType` object of the same index in the `funcnames` array. - // Developers should __NOT__ call the `ftype.Release()`. - } - - vm.Release() - } - ``` + Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: - Then you can build and run: (the only exported function in `fibonacci.wasm` is `fib`) + ```go + package main - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 - $ go build - $ ./wasmedge_test - Exported function name: fib - ``` + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) - If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` object from the `VM` object and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. + func main() { + // Create VM. + vm := wasmedge.NewVM() + + // Step 1: Load WASM file. + err := vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } + + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // List the exported functions for the names and function types. + funcnames, functypes := vm.GetFunctionList() + for _, fname := range funcnames { + fmt.Println("Exported function name:", fname) + } + for _, ftype := range functypes { + // `ftype` is the `FunctionType` object of the same index in the `funcnames` array. + // Developers should __NOT__ call the `ftype.Release()`. + } + + vm.Release() + } + ``` + + Then you can build and run: (the only exported function in `fibonacci.wasm` is `fib`) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 + $ go build + $ ./wasmedge_test + Exported function name: fib + ``` + + If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` object from the `VM` object and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. 3. Get function types - The `VM` object provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. + The `VM` object provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. - ```go - // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. - functype := vm.GetFunctionType("fib") - // Developers can get the function types of functions in the registered modules via the - // `(*VM).GetFunctionTypeRegistered` API with the function name and the module name. - // If the function is not found, these APIs will return `nil`. - // Developers should __NOT__ call the `(*FunctionType).Release` function of the returned object. - ``` + ```go + // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. + functype := vm.GetFunctionType("fib") + // Developers can get the function types of functions in the registered modules via the + // `(*VM).GetFunctionTypeRegistered` API with the function name and the module name. + // If the function is not found, these APIs will return `nil`. + // Developers should __NOT__ call the `(*FunctionType).Release` function of the returned object. + ``` ## WasmEdge Runtime @@ -1693,80 +1693,80 @@ The `Executor` object is the executor for both WASM and compiled-WASM. This obje 1. Register modules - As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` objects, developers can register `ImportObject` or `AST` objects into the `Store` object by the `Executor` APIs. For the details of import objects, please refer to the [Host Functions](#host-functions)). - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Register the loaded WASM `ast` into store with the export module name "mod". - res := executor.RegisterModule(store, ast, "mod") - if err != nil { - fmt.Println("WASM registration FAILED:", err.Error()) - return - } - - // Assume that the `impobj` is the `*wasmedge.ImportObject` for host functions. - impobj := ... - err = executor.RegisterImport(store, impobj) - if err != nil { - fmt.Println("Import object registration FAILED:", err.Error()) - return - } - - executor.Release() - stat.Release() - store.Release() - impobj.Release() - ``` + As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` objects, developers can register `ImportObject` or `AST` objects into the `Store` object by the `Executor` APIs. For the details of import objects, please refer to the [Host Functions](#host-functions)). + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Register the loaded WASM `ast` into store with the export module name "mod". + res := executor.RegisterModule(store, ast, "mod") + if err != nil { + fmt.Println("WASM registration FAILED:", err.Error()) + return + } + + // Assume that the `impobj` is the `*wasmedge.ImportObject` for host functions. + impobj := ... + err = executor.RegisterImport(store, impobj) + if err != nil { + fmt.Println("Import object registration FAILED:", err.Error()) + return + } + + executor.Release() + stat.Release() + store.Release() + impobj.Release() + ``` 2. Instantiate modules - WASM or compiled-WASM modules should be instantiated before the function invocation. Note that developers can only instantiate one module into the `Store` object, and in that case, the old instantiated module will be cleaned. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` object. - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Instantiate the WASM module. - err := executor.Instantiate(stpre, ast) - if err != nil { - fmt.Println("WASM instantiation FAILED:", err.Error()) - return - } - - executor.Release() - stat.Release() - store.Release() - ``` + WASM or compiled-WASM modules should be instantiated before the function invocation. Note that developers can only instantiate one module into the `Store` object, and in that case, the old instantiated module will be cleaned. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` object. + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Instantiate the WASM module. + err := executor.Instantiate(stpre, ast) + if err != nil { + fmt.Println("WASM instantiation FAILED:", err.Error()) + return + } + + executor.Release() + stat.Release() + store.Release() + ``` 3. Invoke functions - As the same as function invocation via the `VM` object, developers can invoke the functions of the instantiated or registered modules. The APIs, `(*Executor).Invoke` and `(*Executor).InvokeRegistered`, are similar as the APIs of the `VM` object. Please refer to the [VM context workflows](#wasm-execution-example-with-vm-object) for details. + As the same as function invocation via the `VM` object, developers can invoke the functions of the instantiated or registered modules. The APIs, `(*Executor).Invoke` and `(*Executor).InvokeRegistered`, are similar as the APIs of the `VM` object. Please refer to the [VM context workflows](#wasm-execution-example-with-vm-object) for details. ### AST Module @@ -1797,60 +1797,60 @@ ast.Release() 1. List instances - ```go - store := wasmedge.NewStore() - // ... - // Instantiate a WASM module via the `*wasmedge.Executor` object. - // ... - - // Try to list the exported functions of the instantiated WASM module. - // Take the function instances for example here. - funcnames := store.ListFunction() - for _, name := range funcnames { - fmt.Println("Exported function name:", name) - } + ```go + store := wasmedge.NewStore() + // ... + // Instantiate a WASM module via the `*wasmedge.Executor` object. + // ... - store.Release() - ``` + // Try to list the exported functions of the instantiated WASM module. + // Take the function instances for example here. + funcnames := store.ListFunction() + for _, name := range funcnames { + fmt.Println("Exported function name:", name) + } - Developers can list the function instance exported names of the registered modules via the `(*Store).ListFunctionRegistered()` API with the module name. + store.Release() + ``` + + Developers can list the function instance exported names of the registered modules via the `(*Store).ListFunctionRegistered()` API with the module name. 2. Find instances - ```go - store := wasmedge.NewStore() - // ... - // Instantiate a WASM module via the `*wasmedge.Executor` object. - // ... + ```go + store := wasmedge.NewStore() + // ... + // Instantiate a WASM module via the `*wasmedge.Executor` object. + // ... - // Try to find the exported functions of the instantiated WASM module. - // Take the function instances for example here. - funcobj := store.FindFunction("fib") - // `funcobj` will be `nil` if the function not found. + // Try to find the exported functions of the instantiated WASM module. + // Take the function instances for example here. + funcobj := store.FindFunction("fib") + // `funcobj` will be `nil` if the function not found. - store.Release() - ``` + store.Release() + ``` - Developers can retrieve the exported function instances of the registered modules via the `(*Store).FindFunctionRegistered` API with the module name. + Developers can retrieve the exported function instances of the registered modules via the `(*Store).FindFunctionRegistered` API with the module name. 3. List registered modules - With the module names, developers can list the exported instances of the registered modules with their names. + With the module names, developers can list the exported instances of the registered modules with their names. - ```go - store := wasmedge.NewStore() - // ... - // Instantiate a WASM module via the `*wasmedge.Executor` object. - // ... + ```go + store := wasmedge.NewStore() + // ... + // Instantiate a WASM module via the `*wasmedge.Executor` object. + // ... - // Try to list the registered WASM modules. - modnames := store.ListModule() - for _, name := range modnames { - fmt.Println("Registered module names:", name) - } + // Try to list the registered WASM modules. + modnames := store.ListModule() + for _, name := range modnames { + fmt.Println("Registered module names:", name) + } - store.Release() - ``` + store.Release() + ``` ### Instances @@ -1858,133 +1858,133 @@ The instances are the runtime structures of WASM. Developers can retrieve the in 1. Function instance - [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` objects for host functions and add them into an `ImportObject` object for registering into a `VM` or a `Store`. For both host functions and the functions get from `Store`, developers can retrieve the `FunctionType` from the `Function` objects. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). + [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` objects for host functions and add them into an `ImportObject` object for registering into a `VM` or a `Store`. For both host functions and the functions get from `Store`, developers can retrieve the `FunctionType` from the `Function` objects. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). - ```go - funcinst := ... - // `funcobj` is the `*wasmedge.Function` retrieved from the store object. - functype := funcobj.GetFunctionType() - // The `funcobj` retrieved from the store object should __NOT__ be released. - // The `functype` retrieved from the `funcobj` should __NOT__ be released. - ``` + ```go + funcinst := ... + // `funcobj` is the `*wasmedge.Function` retrieved from the store object. + functype := funcobj.GetFunctionType() + // The `funcobj` retrieved from the store object should __NOT__ be released. + // The `functype` retrieved from the `funcobj` should __NOT__ be released. + ``` 2. Table instance - In WasmEdge, developers can create the `Table` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Table` objects supply APIs to control the data in table instances. - - ```go - lim := wasmedge.NewLimitWithMax(10, 20) - // Create the table type with limit and the `FuncRef` element type. - tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef, lim) - // Create the table instance with table type. - tabinst := wasmedge.NewTable(tabtype) - // Delete the table type. - tabtype.Release() - - gottabtype := tabinst.GetTableType() - // The `gottabtype` got from table instance is owned by the `tabinst` - // and should __NOT__ be released. - reftype := gottabtype.GetRefType() - // The `reftype` will be `wasmedge.RefType_FuncRef`. - - var gotdata interface{} - data := wasmedge.NewFuncRef(5) - err := tabinst.SetData(data, 3) - // Set the function index 5 to the table[3]. - - // The following line will get an "out of bounds table access" error - // because the position (13) is out of the table size (10): - // err = tabinst.SetData(data, 13) - - gotdata, err = tabinst.GetData(3) - // Get the FuncRef value of the table[3]. - - // The following line will get an "out of bounds table access" error - // because the position (13) is out of the table size (10): - // gotdata, err = tabinst.GetData(13) - - tabsize := tabinst.GetSize() - // `tabsize` will be 10. - err = tabinst.Grow(6) - // Grow the table size of 6, the table size will be 16. - - // The following line will get an "out of bounds table access" error - // because the size (16 + 6) will reach the table limit (20): - // err = tabinst.Grow(6) - - tabinst.Release() - ``` + In WasmEdge, developers can create the `Table` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Table` objects supply APIs to control the data in table instances. + + ```go + lim := wasmedge.NewLimitWithMax(10, 20) + // Create the table type with limit and the `FuncRef` element type. + tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef, lim) + // Create the table instance with table type. + tabinst := wasmedge.NewTable(tabtype) + // Delete the table type. + tabtype.Release() + + gottabtype := tabinst.GetTableType() + // The `gottabtype` got from table instance is owned by the `tabinst` + // and should __NOT__ be released. + reftype := gottabtype.GetRefType() + // The `reftype` will be `wasmedge.RefType_FuncRef`. + + var gotdata interface{} + data := wasmedge.NewFuncRef(5) + err := tabinst.SetData(data, 3) + // Set the function index 5 to the table[3]. + + // The following line will get an "out of bounds table access" error + // because the position (13) is out of the table size (10): + // err = tabinst.SetData(data, 13) + + gotdata, err = tabinst.GetData(3) + // Get the FuncRef value of the table[3]. + + // The following line will get an "out of bounds table access" error + // because the position (13) is out of the table size (10): + // gotdata, err = tabinst.GetData(13) + + tabsize := tabinst.GetSize() + // `tabsize` will be 10. + err = tabinst.Grow(6) + // Grow the table size of 6, the table size will be 16. + + // The following line will get an "out of bounds table access" error + // because the size (16 + 6) will reach the table limit (20): + // err = tabinst.Grow(6) + + tabinst.Release() + ``` 3. Memory instance - In WasmEdge, developers can create the `Memory` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Memory` objects supply APIs to control the data in memory instances. - - ```go - lim := wasmedge.NewLimitWithMax(1, 5) - // Create the memory type with limit. The memory page size is 64KiB. - memtype := wasmedge.NewMemoryType(lim) - // Create the memory instance with memory type. - meminst := wasmedge.NewMemory(memtype) - // Delete the memory type. - memtype.Release() - - data := []byte("A quick brown fox jumps over the lazy dog") - err := meminst.SetData(data, 0x1000, 10) - // Set the data[0:9] to the memory[4096:4105]. - - // The following line will get an "out of bounds memory access" error - // because [65535:65544] is out of 1 page size (65536): - // err = meminst.SetData(data, 0xFFFF, 10) - - var gotdata []byte - gotdata, err = meminst.GetData(0x1000, 10) - // Get the memory[4096:4105]. The `gotdata` will be `[]byte("A quick br"). - // The following line will get an "out of bounds memory access" error - // because [65535:65544] is out of 1 page size (65536): - // gotdata, err = meminst.Getdata(0xFFFF, 10) - - pagesize := meminst.GetPageSize() - // `pagesize` will be 1. - err = meminst.GrowPage(2) - // Grow the page size of 2, the page size of the memory instance will be 3. - - // The following line will get an "out of bounds memory access" error - // because the size (3 + 3) will reach the memory limit (5): - // err = meminst.GetPageSize(3) - - meminst.Release() - ``` + In WasmEdge, developers can create the `Memory` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Memory` objects supply APIs to control the data in memory instances. + + ```go + lim := wasmedge.NewLimitWithMax(1, 5) + // Create the memory type with limit. The memory page size is 64KiB. + memtype := wasmedge.NewMemoryType(lim) + // Create the memory instance with memory type. + meminst := wasmedge.NewMemory(memtype) + // Delete the memory type. + memtype.Release() + + data := []byte("A quick brown fox jumps over the lazy dog") + err := meminst.SetData(data, 0x1000, 10) + // Set the data[0:9] to the memory[4096:4105]. + + // The following line will get an "out of bounds memory access" error + // because [65535:65544] is out of 1 page size (65536): + // err = meminst.SetData(data, 0xFFFF, 10) + + var gotdata []byte + gotdata, err = meminst.GetData(0x1000, 10) + // Get the memory[4096:4105]. The `gotdata` will be `[]byte("A quick br"). + // The following line will get an "out of bounds memory access" error + // because [65535:65544] is out of 1 page size (65536): + // gotdata, err = meminst.Getdata(0xFFFF, 10) + + pagesize := meminst.GetPageSize() + // `pagesize` will be 1. + err = meminst.GrowPage(2) + // Grow the page size of 2, the page size of the memory instance will be 3. + + // The following line will get an "out of bounds memory access" error + // because the size (3 + 3) will reach the memory limit (5): + // err = meminst.GetPageSize(3) + + meminst.Release() + ``` 4. Global instance - In WasmEdge, developers can create the `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Global` objects supply APIs to control the value in global instances. - - ```go - // Create the global type with value type and mutation. - globtype := wasmedge.NewGlobalType(wasmedge.ValType_I64, wasmedge.ValMut_Var) - // Create the global instance with value and global type. - globinst := wasmedge.NewGlobal(globtype, uint64(1000)) - // Delete the global type. - globtype.Release() - - gotglobtype := globinst.GetGlobalType() - // The `gotglobtype` got from global instance is owned by the `globinst` - // and should __NOT__ be released. - valtype := gotglobtype.GetValType() - // The `valtype` will be `wasmedge.ValType_I64`. - valmut := gotglobtype.GetMutability() - // The `valmut` will be `wasmedge.ValMut_Var`. - - globinst.SetValue(uint64(888)) - // Set the value u64(888) to the global. - // This function will do nothing if the value type mismatched or the - // global mutability is `wasmedge.ValMut_Const`. - gotval := globinst.GetValue() - // The `gotbal` will be `interface{}` which the type is `uint64` and - // the value is 888. - - globinst.Release() - ``` + In WasmEdge, developers can create the `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Global` objects supply APIs to control the value in global instances. + + ```go + // Create the global type with value type and mutation. + globtype := wasmedge.NewGlobalType(wasmedge.ValType_I64, wasmedge.ValMut_Var) + // Create the global instance with value and global type. + globinst := wasmedge.NewGlobal(globtype, uint64(1000)) + // Delete the global type. + globtype.Release() + + gotglobtype := globinst.GetGlobalType() + // The `gotglobtype` got from global instance is owned by the `globinst` + // and should __NOT__ be released. + valtype := gotglobtype.GetValType() + // The `valtype` will be `wasmedge.ValType_I64`. + valmut := gotglobtype.GetMutability() + // The `valmut` will be `wasmedge.ValMut_Var`. + + globinst.SetValue(uint64(888)) + // Set the value u64(888) to the global. + // This function will do nothing if the value type mismatched or the + // global mutability is `wasmedge.ValMut_Const`. + gotval := globinst.GetValue() + // The `gotbal` will be `interface{}` which the type is `uint64` and + // the value is 888. + + globinst.Release() + ``` ### Host Functions @@ -1992,355 +1992,355 @@ The instances are the runtime structures of WASM. Developers can retrieve the in 1. Host function allocation - Developers can define Go functions with the following function signature as the host function body: + Developers can define Go functions with the following function signature as the host function body: - ```go - type hostFunctionSignature func( - data interface{}, mem *Memory, params []interface{}) ([]interface{}, Result) - ``` - - The example of an `add` host function to add 2 `i32` values: + ```go + type hostFunctionSignature func( + data interface{}, mem *Memory, params []interface{}) ([]interface{}, Result) + ``` - ```go - func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) + The example of an `add` host function to add 2 `i32` values: - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res + ```go + func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) - // Return - return returns, wasmedge.Result_Success - } - ``` - - Then developers can create `Function` object with the host function body and function type: - - ```go - // Create a function type: {i32, i32} -> {i32}. - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - - // Create a function context with the function type and host function body. - // The third parameter is the pointer to the additional data. - // Developers should guarantee the life cycle of the data, and it can be - // `nil` if the external data is not needed. - // The last parameter can be 0 if developers do not need the cost measuring. - func_add := wasmedge.NewFunction(functype, host_add, nil, 0) - - // If the function object is not added into an import object object, it should be released. - func_add.Release() - functype.Release() - ``` - -2. Import object object + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res - The `ImportObject` object holds an exporting module name and the instances. Developers can add the `Function`, `Memory`, `Table`, and `Global` instances with their exporting names. + // Return + return returns, wasmedge.Result_Success + } + ``` - ```go - // Host function body definition. - func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) + Then developers can create `Function` object with the host function body and function type: - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res + ```go + // Create a function type: {i32, i32} -> {i32}. + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) - // Return - return returns, wasmedge.Result_Success - } + // Create a function context with the function type and host function body. + // The third parameter is the pointer to the additional data. + // Developers should guarantee the life cycle of the data, and it can be + // `nil` if the external data is not needed. + // The last parameter can be 0 if developers do not need the cost measuring. + func_add := wasmedge.NewFunction(functype, host_add, nil, 0) - // Create the import object with the module name "module". - impobj := wasmedge.NewImportObject("module") - - // Create and add a function instance into the import object with export name "add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) - functype.Release() - impobj.AddFunction("add", hostfunc) - - // Create and add a table instance into the import object with export name "table". - tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef ,wasmedge.NewLimitWithMax(10, 20)) - hosttab := wasmedge.NewTable(tabtype) - tabtype.Release() - impobj.AddTable("table", hosttab) - - // Create and add a memory instance into the import object with export name "memory". - memtype := wasmedge.NewMemoryType(wasmedge.NewLimitWithMax(1, 2)) - hostmem := wasmedge.NewMemory(memtype) - memtype.Release() - impobj.AddMemory("memory", hostmem) - - // Create and add a global instance into the import object with export name "global". - globtype := wasmedge.NewGlobalType(wasmedge.ValType_I32, wasmedge.ValMut_Var) - hostglob := wasmedge.NewGlobal(globtype, uint32(666)) - globtype.Release() - impobj.AddGlobal("global", hostglob) - - // The import objects should be released. - // Developers should __NOT__ release the instances added into the import object objects. - impobj.Release() - ``` + // If the function object is not added into an import object object, it should be released. + func_add.Release() + functype.Release() + ``` -3. Specified import object +2. Import object object - `wasmedge.NewWasiImportObject()` API can create and initialize the `WASI` import object. `wasmedge.NewWasmEdgeProcessImportObject()` API can create and initialize the `wasmedge_process` import object. Developers can create these import object objects and register them into the `Store` or `VM` objects rather than adjust the settings in the `Configure` objects. - - ```go - wasiobj := wasmedge.NewWasiImportObject( - os.Args[1:], // The args - os.Environ(), // The envs - []string{".:."}, // The mapping preopens - ) - procobj := wasmedge.NewWasmEdgeProcessImportObject( - []string{"ls", "echo"}, // The allowed commands - false, // Not to allow all commands - ) - - // Register the WASI and WasmEdge_Process into the VM object. - vm := wasmedge.NewVM() - vm.RegisterImport(wasiobj) - vm.RegisterImport(procobj) - - // ... Execute some WASM functions. - - // Get the WASI exit code. - exitcode := wasiobj.WasiGetExitCode() - // The `exitcode` will be 0 if the WASI function "_start" execution has no error. - // Otherwise, it will return with the related exit code. - - vm.Release() - // The import objects should be deleted. - wasiobj.Release() - procobj.Release() - ``` + The `ImportObject` object holds an exporting module name and the instances. Developers can add the `Function`, `Memory`, `Table`, and `Global` instances with their exporting names. -4. Example + ```go + // Host function body definition. + func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) - Create a new Go project first: + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + // Return + return returns, wasmedge.Result_Success + } - Assume that there is a simple WASM from the WAT as following: - - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` + // Create the import object with the module name "module". + impobj := wasmedge.NewImportObject("module") - Create and edit the Go file `main.go` as following: + // Create and add a function instance into the import object with export name "add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) + functype.Release() + impobj.AddFunction("add", hostfunc) + + // Create and add a table instance into the import object with export name "table". + tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef ,wasmedge.NewLimitWithMax(10, 20)) + hosttab := wasmedge.NewTable(tabtype) + tabtype.Release() + impobj.AddTable("table", hosttab) + + // Create and add a memory instance into the import object with export name "memory". + memtype := wasmedge.NewMemoryType(wasmedge.NewLimitWithMax(1, 2)) + hostmem := wasmedge.NewMemory(memtype) + memtype.Release() + impobj.AddMemory("memory", hostmem) + + // Create and add a global instance into the import object with export name "global". + globtype := wasmedge.NewGlobalType(wasmedge.ValType_I32, wasmedge.ValMut_Var) + hostglob := wasmedge.NewGlobal(globtype, uint32(666)) + globtype.Release() + impobj.AddGlobal("global", hostglob) + + // The import objects should be released. + // Developers should __NOT__ release the instances added into the import object objects. + impobj.Release() + ``` - ```go - package main +3. Specified import object - import ( - "fmt" + `wasmedge.NewWasiImportObject()` API can create and initialize the `WASI` import object. `wasmedge.NewWasmEdgeProcessImportObject()` API can create and initialize the `wasmedge_process` import object. Developers can create these import object objects and register them into the `Store` or `VM` objects rather than adjust the settings in the `Configure` objects. - "github.com/second-state/WasmEdge-go/wasmedge" - ) + ```go + wasiobj := wasmedge.NewWasiImportObject( + os.Args[1:], // The args + os.Environ(), // The envs + []string{".:."}, // The mapping preopens + ) + procobj := wasmedge.NewWasmEdgeProcessImportObject( + []string{"ls", "echo"}, // The allowed commands + false, // Not to allow all commands + ) - // Host function body definition. - func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) + // Register the WASI and WasmEdge_Process into the VM object. + vm := wasmedge.NewVM() + vm.RegisterImport(wasiobj) + vm.RegisterImport(procobj) - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res + // ... Execute some WASM functions. - // Return - return returns, wasmedge.Result_Success - } + // Get the WASI exit code. + exitcode := wasiobj.WasiGetExitCode() + // The `exitcode` will be 0 if the WASI function "_start" execution has no error. + // Otherwise, it will return with the related exit code. - func main() { - // Create the VM object. - vm := wasmedge.NewVM() - - // The WASM module buffer. - wasmbuf := []byte{ - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, - } - - // Create the import object with the module name "extern". - impobj := wasmedge.NewImportObject("extern") - - // Create and add a function instance into the import object with export name "func-add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) - functype.Release() - impobj.AddFunction("func-add", hostfunc) - - // Register the import object into VM. - vm.RegisterImport(impobj) - - res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } + vm.Release() + // The import objects should be deleted. + wasiobj.Release() + procobj.Release() + ``` - impobj.Release() - vm.Release() - } - ``` +4. Example - Then you can build and run the Golang application with the WasmEdge Golang SDK: + Create a new Go project first: - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 - $ go build - $ ./wasmedge_test - Get the result: 6912 - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` -5. Host Data Example + Assume that there is a simple WASM from the WAT as following: - Developers can set a external data object to the function object, and access to the object in the function body. Assume that edit the Go file `main.go` above: + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` - ```go - package main + Create and edit the Go file `main.go` as following: - import ( - "fmt" + ```go + package main - "github.com/second-state/WasmEdge-go/wasmedge" - ) + import ( + "fmt" - // Host function body definition. - func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) + "github.com/second-state/WasmEdge-go/wasmedge" + ) - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res + // Host function body definition. + func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Return + return returns, wasmedge.Result_Success + } + + func main() { + // Create the VM object. + vm := wasmedge.NewVM() + + // The WASM module buffer. + wasmbuf := []byte{ + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, + } + + // Create the import object with the module name "extern". + impobj := wasmedge.NewImportObject("extern") + + // Create and add a function instance into the import object with export name "func-add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) + functype.Release() + impobj.AddFunction("func-add", hostfunc) + + // Register the import object into VM. + vm.RegisterImport(impobj) + + res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + + impobj.Release() + vm.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 + $ go build + $ ./wasmedge_test + Get the result: 6912 + ``` - // Also set the result to the data. - *data.(*int32) = res +5. Host Data Example - // Return - return returns, wasmedge.Result_Success - } + Developers can set a external data object to the function object, and access to the object in the function body. Assume that edit the Go file `main.go` above: - func main() { - // Create the VM object. - vm := wasmedge.NewVM() - - // The WASM module buffer. - wasmbuf := []byte{ - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, - } - - // The additional data to set into the host function. - var data int32 = 0 - - // Create the import object with the module name "extern". - impobj := wasmedge.NewImportObject("extern") - - // Create and add a function instance into the import object with export name "func-add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, &data, 0) - functype.Release() - impobj.AddFunction("func-add", hostfunc) - - // Register the import object into VM. - vm.RegisterImport(impobj) - - res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - fmt.Println("Data value:", data) + ```go + package main - impobj.Release() - vm.Release() - } - ``` + import ( + "fmt" - Then you can build and run the Golang application with the WasmEdge Golang SDK: + "github.com/second-state/WasmEdge-go/wasmedge" + ) - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 - $ go build - $ ./wasmedge_test - Get the result: 6912 - Data value: 6912 - ``` + // Host function body definition. + func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Also set the result to the data. + *data.(*int32) = res + + // Return + return returns, wasmedge.Result_Success + } + + func main() { + // Create the VM object. + vm := wasmedge.NewVM() + + // The WASM module buffer. + wasmbuf := []byte{ + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, + } + + // The additional data to set into the host function. + var data int32 = 0 + + // Create the import object with the module name "extern". + impobj := wasmedge.NewImportObject("extern") + + // Create and add a function instance into the import object with export name "func-add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, &data, 0) + functype.Release() + impobj.AddFunction("func-add", hostfunc) + + // Register the import object into VM. + vm.RegisterImport(impobj) + + res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + fmt.Println("Data value:", data) + + impobj.Release() + vm.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 + $ go build + $ ./wasmedge_test + Get the result: 6912 + Data value: 6912 + ``` ## WasmEdge AOT Compiler diff --git a/docs/embed/go/reference/_category_.json b/docs/embed/go/reference/_category_.json index e4d7816c..11da2c8a 100644 --- a/docs/embed/go/reference/_category_.json +++ b/docs/embed/go/reference/_category_.json @@ -1,8 +1,8 @@ { - "label": "API Reference", - "position": 7, - "link": { - "type": "generated-index", - "description": "In this chapter, we will discuss the WasmEdge Go API Reference ." - } + "label": "API Reference", + "position": 7, + "link": { + "type": "generated-index", + "description": "In this chapter, we will discuss the WasmEdge Go API Reference ." + } } diff --git a/docs/embed/go/reference/upgrade_to_0.10.0.md b/docs/embed/go/reference/upgrade_to_0.10.0.md index 69606235..f9751d37 100644 --- a/docs/embed/go/reference/upgrade_to_0.10.0.md +++ b/docs/embed/go/reference/upgrade_to_0.10.0.md @@ -12,53 +12,53 @@ Due to the WasmEdge-Go API breaking changes, this document shows the guideline o 1. Merged the `ImportObject` into the `Module`. - The `ImportObject` struct which is for the host functions is merged into `Module`. Developers can use the related APIs to construct host modules. - - - `wasmedge.NewImportObject()` is changed to `wasmedge.NewModule()`. - - `(*wasmedge.ImportObject).Release()` is changed to `(*wasmedge.Module).Release()`. - - `(*wasmedge.ImportObject).AddFunction()` is changed to `(*wasmedge.Module).AddFunction()`. - - `(*wasmedge.ImportObject).AddTable()` is changed to `(*wasmedge.Module).AddTable()`. - - `(*wasmedge.ImportObject).AddMemory()` is changed to `(*wasmedge.Module).AddMemory()`. - - `(*wasmedge.ImportObject).AddGlobal()` is changed to `(*wasmedge.Module).AddGlobal()`. - - `(*wasmedge.ImportObject).NewWasiImportObject()` is changed to `(*wasmedge.Module).NewWasiModule()`. - - `(*wasmedge.ImportObject).NewWasmEdgeProcessImportObject()` is changed to `(*wasmedge.Module).NewWasmEdgeProcessModule()`. - - `(*wasmedge.ImportObject).InitWASI()` is changed to `(*wasmedge.Module).InitWASI()`. - - `(*wasmedge.ImportObject).InitWasmEdgeProcess()` is changed to `(*wasmedge.Module).InitWasmEdgeProcess()`. - - `(*wasmedge.ImportObject).WasiGetExitCode()` is changed to `(*wasmedge.Module).WasiGetExitCode`. - - `(*wasmedge.VM).RegisterImport()` is changed to `(*wasmedge.VM).RegisterModule()`. - - `(*wasmedge.VM).GetImportObject()` is changed to `(*wasmedge.VM).GetImportModule()`. - - For the new host function examples, please refer to [the example below](#host-functions). + The `ImportObject` struct which is for the host functions is merged into `Module`. Developers can use the related APIs to construct host modules. + + - `wasmedge.NewImportObject()` is changed to `wasmedge.NewModule()`. + - `(*wasmedge.ImportObject).Release()` is changed to `(*wasmedge.Module).Release()`. + - `(*wasmedge.ImportObject).AddFunction()` is changed to `(*wasmedge.Module).AddFunction()`. + - `(*wasmedge.ImportObject).AddTable()` is changed to `(*wasmedge.Module).AddTable()`. + - `(*wasmedge.ImportObject).AddMemory()` is changed to `(*wasmedge.Module).AddMemory()`. + - `(*wasmedge.ImportObject).AddGlobal()` is changed to `(*wasmedge.Module).AddGlobal()`. + - `(*wasmedge.ImportObject).NewWasiImportObject()` is changed to `(*wasmedge.Module).NewWasiModule()`. + - `(*wasmedge.ImportObject).NewWasmEdgeProcessImportObject()` is changed to `(*wasmedge.Module).NewWasmEdgeProcessModule()`. + - `(*wasmedge.ImportObject).InitWASI()` is changed to `(*wasmedge.Module).InitWASI()`. + - `(*wasmedge.ImportObject).InitWasmEdgeProcess()` is changed to `(*wasmedge.Module).InitWasmEdgeProcess()`. + - `(*wasmedge.ImportObject).WasiGetExitCode()` is changed to `(*wasmedge.Module).WasiGetExitCode`. + - `(*wasmedge.VM).RegisterImport()` is changed to `(*wasmedge.VM).RegisterModule()`. + - `(*wasmedge.VM).GetImportObject()` is changed to `(*wasmedge.VM).GetImportModule()`. + + For the new host function examples, please refer to [the example below](#host-functions). 2. Used the pointer to `Function` instead of the index in the `FuncRef` value type. - For the better performance and security, the `FuncRef` related APIs used the `*wasmedge.Function` for the parameters and returns. + For the better performance and security, the `FuncRef` related APIs used the `*wasmedge.Function` for the parameters and returns. - - `wasmedge.NewFuncRef()` is changed to use the `*Function` as it's argument. - - Added `(wasmedge.FuncRef).GetRef()` to retrieve the `*Function`. + - `wasmedge.NewFuncRef()` is changed to use the `*Function` as it's argument. + - Added `(wasmedge.FuncRef).GetRef()` to retrieve the `*Function`. 3. Supported multiple anonymous WASM module instantiation. - In the version before `v0.9.2`, WasmEdge only supports 1 anonymous WASM module to be instantiated at one time. If developers instantiate a new WASM module, the old one will be replaced. After the `v0.10.0` version, developers can instantiate multiple anonymous WASM module by `Executor` and get the `Module` instance. But for the source code using the `VM` APIs, the behavior is not changed. For the new examples of instantiating multiple anonymous WASM modules, please refer to [the example below](#wasmedge-executor-changes). + In the version before `v0.9.2`, WasmEdge only supports 1 anonymous WASM module to be instantiated at one time. If developers instantiate a new WASM module, the old one will be replaced. After the `v0.10.0` version, developers can instantiate multiple anonymous WASM module by `Executor` and get the `Module` instance. But for the source code using the `VM` APIs, the behavior is not changed. For the new examples of instantiating multiple anonymous WASM modules, please refer to [the example below](#wasmedge-executor-changes). 4. Behavior changed of `Store`. - The `Function`, `Table`, `Memory`, and `Global` instances retrievement from the `Store` is moved to the `Module` instance. The `Store` only manage the module linking when instantiation and the named module searching after the `v0.10.0` version. + The `Function`, `Table`, `Memory`, and `Global` instances retrievement from the `Store` is moved to the `Module` instance. The `Store` only manage the module linking when instantiation and the named module searching after the `v0.10.0` version. - - `(*wasmedge.Store).ListFunction()` and `(*wasmedge.Store).ListFunctionRegistered()` is replaced by `(*wasmedge.Module).ListFunction()`. - - `(*wasmedge.Store).ListTable()` and `(*wasmedge.Store).ListTableRegistered()` is replaced by `(*wasmedge.Module).ListTable()`. - - `(*wasmedge.Store).ListMemory()` and `(*wasmedge.Store).ListMemoryRegistered()` is replaced by `(*wasmedge.Module).ListMemory()`. - - `(*wasmedge.Store).ListGlobal()` and `(*wasmedge.Store).ListGlobalRegistered()` is replaced by `(*wasmedge.Module).ListGlobal()`. - - `(*wasmedge.Store).FindFunction()` and `(*wasmedge.Store).FindFunctionRegistered()` is replaced by `(*wasmedge.Module).FindFunction()`. - - `(*wasmedge.Store).FindTable()` and `(*wasmedge.Store).FindTableRegistered()` is replaced by `(*wasmedge.Module).FindTable()`. - - `(*wasmedge.Store).FindMemory()` and `(*wasmedge.Store).FindMemoryRegistered()` is replaced by `(*wasmedge.Module).FindMemory()`. - - `(*wasmedge.Store).FindGlobal()` and `(*wasmedge.Store).FindGlobalRegistered()` is replaced by `(*wasmedge.Module).FindGlobal()`. + - `(*wasmedge.Store).ListFunction()` and `(*wasmedge.Store).ListFunctionRegistered()` is replaced by `(*wasmedge.Module).ListFunction()`. + - `(*wasmedge.Store).ListTable()` and `(*wasmedge.Store).ListTableRegistered()` is replaced by `(*wasmedge.Module).ListTable()`. + - `(*wasmedge.Store).ListMemory()` and `(*wasmedge.Store).ListMemoryRegistered()` is replaced by `(*wasmedge.Module).ListMemory()`. + - `(*wasmedge.Store).ListGlobal()` and `(*wasmedge.Store).ListGlobalRegistered()` is replaced by `(*wasmedge.Module).ListGlobal()`. + - `(*wasmedge.Store).FindFunction()` and `(*wasmedge.Store).FindFunctionRegistered()` is replaced by `(*wasmedge.Module).FindFunction()`. + - `(*wasmedge.Store).FindTable()` and `(*wasmedge.Store).FindTableRegistered()` is replaced by `(*wasmedge.Module).FindTable()`. + - `(*wasmedge.Store).FindMemory()` and `(*wasmedge.Store).FindMemoryRegistered()` is replaced by `(*wasmedge.Module).FindMemory()`. + - `(*wasmedge.Store).FindGlobal()` and `(*wasmedge.Store).FindGlobalRegistered()` is replaced by `(*wasmedge.Module).FindGlobal()`. - For the new examples of retrieving instances, please refer to [the example below](#instances-retrievement). + For the new examples of retrieving instances, please refer to [the example below](#instances-retrievement). 5. The `Module`-based resource management. - Except the creation of `Module` instance for the host functions, the `Executor` will output a `Module` instance after instantiation. No matter the anonymous or named modules, developers have the responsibility to destroy them by `(*wasmedge.Module).Release()` API. The `Store` will link to the named `Module` instance after registering. After the destroyment of a `Module` instance, the `Store` will unlink to that automatically; after the destroyment of the `Store`, the all `Module` instances the `Store` linked to will unlink to that `Store` automatically. + Except the creation of `Module` instance for the host functions, the `Executor` will output a `Module` instance after instantiation. No matter the anonymous or named modules, developers have the responsibility to destroy them by `(*wasmedge.Module).Release()` API. The `Store` will link to the named `Module` instance after registering. After the destroyment of a `Module` instance, the `Store` will unlink to that automatically; after the destroyment of the `Store`, the all `Module` instances the `Store` linked to will unlink to that `Store` automatically. ## WasmEdge-Go VM changes @@ -133,198 +133,198 @@ globinst := mod.FindGlobal("global_i32") 1. WASM module instantiation - In WasmEdge-Go `v0.9.2` version, developers can instantiate a WASM module by the `Executor` API: - - ```go - var ast *wasmedge.AST - // Assume that `ast` is a loaded WASM from file or buffer and has passed the validation. - // Assume that `executor` is a `*wasmedge.Executor`. - // Assume that `store` is a `*wasmedge.Store`. - err := executor.Instantiate(store, ast) - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - } - ``` - - Then the WASM module is instantiated into an anonymous module instance and handled by the `Store`. If a new WASM module is instantiated by this API, the old instantiated module instance will be cleaned. After the WasmEdge-Go `v0.10.0` version, the instantiated anonymous module will be outputted and handled by caller, and not only 1 anonymous module instance can be instantiated. Developers have the responsibility to release the outputted module instances. - - ```go - var ast1 *wasmedge.AST - var ast2 *wasmedge.AST - // Assume that `ast1` and `ast2` are loaded WASMs from different files or buffers, - // and have both passed the validation. - // Assume that `executor` is a `*wasmedge.Executor`. - // Assume that `store` is a `*wasmedge.Store`. - mod1, err1 := executor.Instantiate(store, ast1) - if err1 != nil { - fmt.Println("Instantiation FAILED:", err1.Error()) - } - mod2, err2 := executor.Instantiate(store, ast2) - if err2 != nil { - fmt.Println("Instantiation FAILED:", err2.Error()) - } - mod1.Release() - mod2.Release() - ``` + In WasmEdge-Go `v0.9.2` version, developers can instantiate a WASM module by the `Executor` API: + + ```go + var ast *wasmedge.AST + // Assume that `ast` is a loaded WASM from file or buffer and has passed the validation. + // Assume that `executor` is a `*wasmedge.Executor`. + // Assume that `store` is a `*wasmedge.Store`. + err := executor.Instantiate(store, ast) + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + } + ``` + + Then the WASM module is instantiated into an anonymous module instance and handled by the `Store`. If a new WASM module is instantiated by this API, the old instantiated module instance will be cleaned. After the WasmEdge-Go `v0.10.0` version, the instantiated anonymous module will be outputted and handled by caller, and not only 1 anonymous module instance can be instantiated. Developers have the responsibility to release the outputted module instances. + + ```go + var ast1 *wasmedge.AST + var ast2 *wasmedge.AST + // Assume that `ast1` and `ast2` are loaded WASMs from different files or buffers, + // and have both passed the validation. + // Assume that `executor` is a `*wasmedge.Executor`. + // Assume that `store` is a `*wasmedge.Store`. + mod1, err1 := executor.Instantiate(store, ast1) + if err1 != nil { + fmt.Println("Instantiation FAILED:", err1.Error()) + } + mod2, err2 := executor.Instantiate(store, ast2) + if err2 != nil { + fmt.Println("Instantiation FAILED:", err2.Error()) + } + mod1.Release() + mod2.Release() + ``` 2. WASM module registration with module name - When instantiating and registering a WASM module with module name, developers can use the `(*wasmedge.Executor).RegisterModule()` API before WasmEdge-Go `v0.9.2`. + When instantiating and registering a WASM module with module name, developers can use the `(*wasmedge.Executor).RegisterModule()` API before WasmEdge-Go `v0.9.2`. - ```go - var ast *wasmedge.AST - // Assume that `ast` is a loaded WASM from file or buffer and has passed the validation. - // Assume that `executor` is a `*wasmedge.Executor`. - // Assume that `store` is a `*wasmedge.Store`. + ```go + var ast *wasmedge.AST + // Assume that `ast` is a loaded WASM from file or buffer and has passed the validation. + // Assume that `executor` is a `*wasmedge.Executor`. + // Assume that `store` is a `*wasmedge.Store`. - // Register the WASM module into store with the export module name "mod". - err := executor.RegisterModule(store, ast, "mod") - if err != nil { - fmt.Println("WASM registration FAILED:", err.Error()) - } - ``` + // Register the WASM module into store with the export module name "mod". + err := executor.RegisterModule(store, ast, "mod") + if err != nil { + fmt.Println("WASM registration FAILED:", err.Error()) + } + ``` - The same feature is implemented in WasmEdge-Go `v0.10.0`, but in different API `(*wasmedge.Executor).Register()`: + The same feature is implemented in WasmEdge-Go `v0.10.0`, but in different API `(*wasmedge.Executor).Register()`: - ```go - var ast *wasmedge.AST - // Assume that `ast` is a loaded WASM from file or buffer and has passed the validation. - // Assume that `executor` is a `*wasmedge.Executor`. - // Assume that `store` is a `*wasmedge.Store`. + ```go + var ast *wasmedge.AST + // Assume that `ast` is a loaded WASM from file or buffer and has passed the validation. + // Assume that `executor` is a `*wasmedge.Executor`. + // Assume that `store` is a `*wasmedge.Store`. - // Register the WASM module into store with the export module name "mod". - mod, err := executor.Register(store, ast, "mod") - if err != nil { - fmt.Println("WASM registration FAILED:", err.Error()) - } - mod.Release() - ``` + // Register the WASM module into store with the export module name "mod". + mod, err := executor.Register(store, ast, "mod") + if err != nil { + fmt.Println("WASM registration FAILED:", err.Error()) + } + mod.Release() + ``` - Developers have the responsibility to release the outputted module instances. + Developers have the responsibility to release the outputted module instances. 3. Host module registration - In WasmEdge-Go `v0.9.2`, developers can create an `ImportObject` and register into `Store`. + In WasmEdge-Go `v0.9.2`, developers can create an `ImportObject` and register into `Store`. - ```go - // Create the import object with the export module name. - impobj := wasmedge.NewImportObject("module") + ```go + // Create the import object with the export module name. + impobj := wasmedge.NewImportObject("module") - // ... - // Add the host functions, tables, memories, and globals into the import object. + // ... + // Add the host functions, tables, memories, and globals into the import object. - // The import object has already contained the export module name. - err := executor.RegisterImport(store, impobj) - if err != nil { - fmt.Println("Import object registration FAILED:", err.Error()) - } - ``` + // The import object has already contained the export module name. + err := executor.RegisterImport(store, impobj) + if err != nil { + fmt.Println("Import object registration FAILED:", err.Error()) + } + ``` - After WasmEdge-Go `v0.10.0`, developers should use the `Module` instance instead: + After WasmEdge-Go `v0.10.0`, developers should use the `Module` instance instead: - ```go - // Create the module instance with the export module name. - impmod := wasmedge.NewModule("module") + ```go + // Create the module instance with the export module name. + impmod := wasmedge.NewModule("module") - // ... - // Add the host functions, tables, memories, and globals into the module instance. + // ... + // Add the host functions, tables, memories, and globals into the module instance. - // The module instance has already contained the export module name. - err := executor.RegisterImport(store, impmod) - if err != nil { - fmt.Println("Module instance registration FAILED:", err.Error()) - } - ``` + // The module instance has already contained the export module name. + err := executor.RegisterImport(store, impmod) + if err != nil { + fmt.Println("Module instance registration FAILED:", err.Error()) + } + ``` - Developers have the responsibility to release the created module instances. + Developers have the responsibility to release the created module instances. 4. WASM function invocation - This example uses the [fibonacci.wasm](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm), and the corresponding WAT file is at [fibonacci.wat](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wat). In WasmEdge-Go `v0.9.2` version, developers can invoke a WASM function with the export function name: - - ```go - // Create the store object. The store object holds the instances. - store := wasmedge.NewStore() - // Error. - var err error - // AST object. - var ast *wasmedge.AST - // Return values. - var res []interface{} - - // Create the loader object. - loader := wasmedge.NewLoader() - // Create the validator object. - validator := wasmedge.NewValidator() - // Create the executor object. - executor := wasmedge.NewExecutor() - - // Load the WASM file or the compiled-WASM file and convert into the AST object. - ast, err = loader.LoadFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - // Validate the WASM module. - err = validator.Validate(ast) - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - // Instantiate the WASM module into the Store object. - err = executor.Instantiate(store, ast) - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - // Invoke the function which is exported with the function name "fib". - res, err = executor.Invoke(store, "fib", int32(30)) - if err == nil { - fmt.Println("Get fibonacci[30]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - ast.Release() - loader.Release() - validator.Release() - executor.Release() - store.Release() - ``` - - After the WasmEdge-Go `v0.10.0`, developers should retrieve the `Function` instance by function name first. - - ```go - // ... - // Ignore the unchanged steps before validation. Please refer to the sample code above. - - var mod *wasmedge.Module - // Instantiate the WASM module and get the output module instance. - mod, err = executor.Instantiate(store, ast) - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - // Retrieve the function instance by name. - funcinst := mod.FindFunction("fib") - if funcinst == nil { - fmt.Println("Run FAILED: Function name `fib` not found") - return - } - res, err = executor.Invoke(store, funcinst, int32(30)) - if err == nil { - fmt.Println("Get fibonacci[30]:", res[0].(int32)) - } else { - fmt.Println("Run FAILED:", err.Error()) - } - - ast.Release() - mod.Release() - loader.Release() - validator.Release() - executor.Release() - store.Release() - ``` + This example uses the [fibonacci.wasm](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm), and the corresponding WAT file is at [fibonacci.wat](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wat). In WasmEdge-Go `v0.9.2` version, developers can invoke a WASM function with the export function name: + + ```go + // Create the store object. The store object holds the instances. + store := wasmedge.NewStore() + // Error. + var err error + // AST object. + var ast *wasmedge.AST + // Return values. + var res []interface{} + + // Create the loader object. + loader := wasmedge.NewLoader() + // Create the validator object. + validator := wasmedge.NewValidator() + // Create the executor object. + executor := wasmedge.NewExecutor() + + // Load the WASM file or the compiled-WASM file and convert into the AST object. + ast, err = loader.LoadFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } + // Validate the WASM module. + err = validator.Validate(ast) + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + // Instantiate the WASM module into the Store object. + err = executor.Instantiate(store, ast) + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + // Invoke the function which is exported with the function name "fib". + res, err = executor.Invoke(store, "fib", int32(30)) + if err == nil { + fmt.Println("Get fibonacci[30]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } + + ast.Release() + loader.Release() + validator.Release() + executor.Release() + store.Release() + ``` + + After the WasmEdge-Go `v0.10.0`, developers should retrieve the `Function` instance by function name first. + + ```go + // ... + // Ignore the unchanged steps before validation. Please refer to the sample code above. + + var mod *wasmedge.Module + // Instantiate the WASM module and get the output module instance. + mod, err = executor.Instantiate(store, ast) + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + // Retrieve the function instance by name. + funcinst := mod.FindFunction("fib") + if funcinst == nil { + fmt.Println("Run FAILED: Function name `fib` not found") + return + } + res, err = executor.Invoke(store, funcinst, int32(30)) + if err == nil { + fmt.Println("Get fibonacci[30]:", res[0].(int32)) + } else { + fmt.Println("Run FAILED:", err.Error()) + } + + ast.Release() + mod.Release() + loader.Release() + validator.Release() + executor.Release() + store.Release() + ``` ## Instances retrievement diff --git a/docs/embed/go/reference/upgrade_to_0.11.0.md b/docs/embed/go/reference/upgrade_to_0.11.0.md index e0731b9b..8df10fa2 100644 --- a/docs/embed/go/reference/upgrade_to_0.11.0.md +++ b/docs/embed/go/reference/upgrade_to_0.11.0.md @@ -10,15 +10,15 @@ Due to the WasmEdge C API breaking changes, this document shows the guideline fo 1. Supported the user-defined error code in host functions. - Developers can use the new API `WasmEdge_ResultGen()` to generate a `WasmEdge_Result` struct with `WasmEdge_ErrCategory_UserLevelError` and the error code. With this support, developers can specify the host function error code when failed by themselves. For the examples to specify the user-defined error code, please refer to [the example below](#user-defined-error-code-in-host-functions). + Developers can use the new API `WasmEdge_ResultGen()` to generate a `WasmEdge_Result` struct with `WasmEdge_ErrCategory_UserLevelError` and the error code. With this support, developers can specify the host function error code when failed by themselves. For the examples to specify the user-defined error code, please refer to [the example below](#user-defined-error-code-in-host-functions). 2. Calling frame for the host function extension - In the previous versions, host functions only pass the memory instance into the function body. For supporting the WASM multiple memories proposal and providing the recursive invocation in host functions, the new context `WasmEdge_CallingFrameContext` replaced the memory instance in the second argument of the host function definition. For the examples of the new host function definition, please refer to [the example below](#calling-frame-in-host-functions). + In the previous versions, host functions only pass the memory instance into the function body. For supporting the WASM multiple memories proposal and providing the recursive invocation in host functions, the new context `WasmEdge_CallingFrameContext` replaced the memory instance in the second argument of the host function definition. For the examples of the new host function definition, please refer to [the example below](#calling-frame-in-host-functions). 3. Apply the SONAME and SOVERSION. - When linking the WasmEdge shared library, please notice that `libwasmedge_c.so` is renamed to `libwasmedge.so` after the 0.11.0 release. Please use `-lwasmedge` instead of `-lwasmedge_c` for the linker option. + When linking the WasmEdge shared library, please notice that `libwasmedge_c.so` is renamed to `libwasmedge.so` after the 0.11.0 release. Please use `-lwasmedge` instead of `-lwasmedge_c` for the linker option. ## User Defined Error Code In Host Functions diff --git a/docs/embed/go/reference/upgrade_to_0.12.0.md b/docs/embed/go/reference/upgrade_to_0.12.0.md index 55e9c1c0..5ae5b5fc 100644 --- a/docs/embed/go/reference/upgrade_to_0.12.0.md +++ b/docs/embed/go/reference/upgrade_to_0.12.0.md @@ -10,36 +10,36 @@ Due to the WasmEdge-Go API breaking changes, this document shows the guideline o 1. Removed the members of the `wasmedge.HostRegistration` related const values. - The following const values are removed: + The following const values are removed: - - `wasmedge.WasmEdge_Process` - - `wasmedge.WasiNN` - - `wasmedge.WasiCrypto_Common` - - `wasmedge.WasiCrypto_AsymmetricCommon` - - `wasmedge.WasiCrypto_Kx` - - `wasmedge.WasiCrypto_Signatures` - - `wasmedge.WasiCrypto_Symmetric` + - `wasmedge.WasmEdge_Process` + - `wasmedge.WasiNN` + - `wasmedge.WasiCrypto_Common` + - `wasmedge.WasiCrypto_AsymmetricCommon` + - `wasmedge.WasiCrypto_Kx` + - `wasmedge.WasiCrypto_Signatures` + - `wasmedge.WasiCrypto_Symmetric` - The `wasmedge.VM` objects will create and register the host modules automatically now. If the plug-ins are not loaded, the `VM` objects will create and register the mock modules to prevent from import failed. + The `wasmedge.VM` objects will create and register the host modules automatically now. If the plug-ins are not loaded, the `VM` objects will create and register the mock modules to prevent from import failed. 2. Removed the module instance creation functions of the plug-ins. - The following APIs are removed: + The following APIs are removed: - - `wasmedge.NewWasiNNModule()` - - `wasmedge.NewWasiCryptoCommonModule()` - - `wasmedge.NewWasiCryptoAsymmetricCommonModule()` - - `wasmedge.NewWasiCryptoKxModule()` - - `wasmedge.NewWasiCryptoSignaturesModule()` - - `wasmedge.NewWasiCryptoSymmetricModule()` - - `wasmedge.NewWasmEdgeProcessModule()` + - `wasmedge.NewWasiNNModule()` + - `wasmedge.NewWasiCryptoCommonModule()` + - `wasmedge.NewWasiCryptoAsymmetricCommonModule()` + - `wasmedge.NewWasiCryptoKxModule()` + - `wasmedge.NewWasiCryptoSignaturesModule()` + - `wasmedge.NewWasiCryptoSymmetricModule()` + - `wasmedge.NewWasmEdgeProcessModule()` - For the new examples for creating the module instances from plug-ins, please refer to [the example below](#creating-the-module-instance-from-a-plug-in). + For the new examples for creating the module instances from plug-ins, please refer to [the example below](#creating-the-module-instance-from-a-plug-in). 3. New module instance retrieving API of `VM` objects. - - Added `(*wasmedge.VM).GetRegisteredModule()` for retrieving registered named module in `VM` objects quickly. - - Added `(*wasmedge.VM).ListRegisteredModule()` for listing registered named modules in `VM` objects quickly. + - Added `(*wasmedge.VM).GetRegisteredModule()` for retrieving registered named module in `VM` objects quickly. + - Added `(*wasmedge.VM).ListRegisteredModule()` for listing registered named modules in `VM` objects quickly. ## The `wasmedge.HostRegistration` const values for plug-ins are not necessary in VM objects diff --git a/docs/embed/java/_category_.json b/docs/embed/java/_category_.json index 77287c91..9f7dfab7 100644 --- a/docs/embed/java/_category_.json +++ b/docs/embed/java/_category_.json @@ -1,8 +1,8 @@ { - "label": "Java SDK for Embedding Wasm Functions", - "position": 7, - "link": { - "type": "generated-index", - "description": "In this chapter, we will learn how to Embed WasmEdge in your Java host applications." - } + "label": "Java SDK for Embedding Wasm Functions", + "position": 7, + "link": { + "type": "generated-index", + "description": "In this chapter, we will learn how to Embed WasmEdge in your Java host applications." + } } diff --git a/docs/embed/python/_category_.json b/docs/embed/python/_category_.json index 6b0ca4b7..310950f1 100644 --- a/docs/embed/python/_category_.json +++ b/docs/embed/python/_category_.json @@ -1,8 +1,8 @@ { - "label": "Python SDK for Embedding Wasm Functions", - "position": 10, - "link": { - "type": "generated-index", - "description": "In this chapter, we will learn how to Embed WasmEdge in your Python host applications." - } + "label": "Python SDK for Embedding Wasm Functions", + "position": 10, + "link": { + "type": "generated-index", + "description": "In this chapter, we will learn how to Embed WasmEdge in your Python host applications." + } } diff --git a/docs/embed/quick-start/_category_.json b/docs/embed/quick-start/_category_.json index b4fa999a..2bf3c000 100644 --- a/docs/embed/quick-start/_category_.json +++ b/docs/embed/quick-start/_category_.json @@ -1,8 +1,8 @@ { - "label": "Quick Start", - "position": 1, - "link": { - "type": "generated-index", - "description": "In this chapter, we will introduce how to install and run the Wasm app quickly with WasmEdge runtime." - } + "label": "Quick Start", + "position": 1, + "link": { + "type": "generated-index", + "description": "In this chapter, we will introduce how to install and run the Wasm app quickly with WasmEdge runtime." + } } diff --git a/docs/embed/rust/_category_.json b/docs/embed/rust/_category_.json index e0d6e8a1..1d21b2a7 100644 --- a/docs/embed/rust/_category_.json +++ b/docs/embed/rust/_category_.json @@ -1,8 +1,8 @@ { - "label": "Rust SDK for Embedding Wasm Functions", - "position": 5, - "link": { - "type": "generated-index", - "description": "we will learn how to Embed WasmEdge in your Rust host applications" - } + "label": "Rust SDK for Embedding Wasm Functions", + "position": 5, + "link": { + "type": "generated-index", + "description": "we will learn how to Embed WasmEdge in your Rust host applications" + } } diff --git a/docs/embed/rust/intro.md b/docs/embed/rust/intro.md index a8b3dd5a..907b3e0c 100644 --- a/docs/embed/rust/intro.md +++ b/docs/embed/rust/intro.md @@ -24,21 +24,21 @@ WasmEdge Rust SDK consists of four crates. In the diagram below, the blue rectan - Deploy WasmEdge library in your local environment. - Since this crate depends on the WasmEdge C API, it needs to be installed in your system first. Please refer to [WasmEdge Installation and Uninstallation](https://wasmedge.org/book/en/quick_start/install.html) to install the WasmEdge library. The versioning table below shows the version of the WasmEdge library required by each version of the `wasmedge-sdk` crate. - - | wasmedge-sdk | WasmEdge lib | wasmedge-sys | wasmedge-types | wasmedge-macro | - | :-: | :-: | :-: | :-: | :-: | - | 0.8.1 | 0.12.1 | 0.13.1 | 0.4.1 | 0.3.0 | - | 0.8.0 | 0.12.0 | 0.13.0 | 0.4.1 | 0.3.0 | - | 0.7.1 | 0.11.2 | 0.12.2 | 0.3.1 | 0.3.0 | - | 0.7.0 | 0.11.2 | 0.12 | 0.3.1 | 0.3.0 | - | 0.6.0 | 0.11.2 | 0.11 | 0.3.0 | 0.2.0 | - | 0.5.0 | 0.11.1 | 0.10 | 0.3.0 | 0.1.0 | - | 0.4.0 | 0.11.0 | 0.9 | 0.2.1 | - | - | 0.3.0 | 0.10.1 | 0.8 | 0.2 | - | - | 0.1.0 | 0.10.0 | 0.7 | 0.1 | - | - - WasmEdge Rust SDK can automatically search the following paths for the WasmEdge library: + Since this crate depends on the WasmEdge C API, it needs to be installed in your system first. Please refer to [WasmEdge Installation and Uninstallation](https://wasmedge.org/book/en/quick_start/install.html) to install the WasmEdge library. The versioning table below shows the version of the WasmEdge library required by each version of the `wasmedge-sdk` crate. + + | wasmedge-sdk | WasmEdge lib | wasmedge-sys | wasmedge-types | wasmedge-macro | + | :-: | :-: | :-: | :-: | :-: | + | 0.8.1 | 0.12.1 | 0.13.1 | 0.4.1 | 0.3.0 | + | 0.8.0 | 0.12.0 | 0.13.0 | 0.4.1 | 0.3.0 | + | 0.7.1 | 0.11.2 | 0.12.2 | 0.3.1 | 0.3.0 | + | 0.7.0 | 0.11.2 | 0.12 | 0.3.1 | 0.3.0 | + | 0.6.0 | 0.11.2 | 0.11 | 0.3.0 | 0.2.0 | + | 0.5.0 | 0.11.1 | 0.10 | 0.3.0 | 0.1.0 | + | 0.4.0 | 0.11.0 | 0.9 | 0.2.1 | - | + | 0.3.0 | 0.10.1 | 0.8 | 0.2 | - | + | 0.1.0 | 0.10.0 | 0.7 | 0.1 | - | + + WasmEdge Rust SDK can automatically search the following paths for the WasmEdge library: - `/usr/local` (Linux/macOS) - `$HOME/.wasmedge` (Linux/macOS) @@ -47,9 +47,9 @@ WasmEdge Rust SDK consists of four crates. In the diagram below, the blue rectan - Add `wasmedge-sdk` crate to your `Cargo.toml` file. Note that, according to the version table, the version of `wasmedge-sdk` matching `WasmEdge v0.12.0` is `0.8.0`. - ```toml - wasmedge-sdk = "0.8.0" - ``` + ```toml + wasmedge-sdk = "0.8.0" + ``` **Notice:** The minimum supported Rust version is 1.67. diff --git a/docs/embed/use-case/_category_.json b/docs/embed/use-case/_category_.json index c8f3cebe..4a2db315 100644 --- a/docs/embed/use-case/_category_.json +++ b/docs/embed/use-case/_category_.json @@ -1,8 +1,8 @@ { - "label": "Use Cases", - "position": 11, - "link": { - "type": "generated-index", - "description": "In this chapter, we will discuss how popular software applications embed WasmEdge to support extended functionalities." - } + "label": "Use Cases", + "position": 11, + "link": { + "type": "generated-index", + "description": "In this chapter, we will discuss how popular software applications embed WasmEdge to support extended functionalities." + } } diff --git a/i18n/zh/code.json b/i18n/zh/code.json index b04a7573..bb559672 100644 --- a/i18n/zh/code.json +++ b/i18n/zh/code.json @@ -1,273 +1,273 @@ { - "theme.ErrorPageContent.title": { - "message": "页面已崩溃。", - "description": "The title of the fallback page when the page crashed" - }, - "theme.ErrorPageContent.tryAgain": { - "message": "重试", - "description": "The label of the button to try again when the page crashed" - }, - "theme.NotFound.title": { - "message": "找不到页面", - "description": "The title of the 404 page" - }, - "theme.NotFound.p1": { - "message": "我们找不到您要找的页面。", - "description": "The first paragraph of the 404 page" - }, - "theme.NotFound.p2": { - "message": "请联系原始链接来源网站的所有者,并告知他们链接已损坏。", - "description": "The 2nd paragraph of the 404 page" - }, - "theme.admonition.note": { - "message": "备注", - "description": "The default label used for the Note admonition (:::note)" - }, - "theme.admonition.tip": { - "message": "提示", - "description": "The default label used for the Tip admonition (:::tip)" - }, - "theme.admonition.danger": { - "message": "危险", - "description": "The default label used for the Danger admonition (:::danger)" - }, - "theme.admonition.info": { - "message": "信息", - "description": "The default label used for the Info admonition (:::info)" - }, - "theme.admonition.caution": { - "message": "警告", - "description": "The default label used for the Caution admonition (:::caution)" - }, - "theme.BackToTopButton.buttonAriaLabel": { - "message": "回到顶部", - "description": "The ARIA label for the back to top button" - }, - "theme.blog.archive.title": { - "message": "历史博文", - "description": "The page & hero title of the blog archive page" - }, - "theme.blog.archive.description": { - "message": "历史博文", - "description": "The page & hero description of the blog archive page" - }, - "theme.blog.paginator.navAriaLabel": { - "message": "博文列表分页导航", - "description": "The ARIA label for the blog pagination" - }, - "theme.blog.paginator.newerEntries": { - "message": "较新的博文", - "description": "The label used to navigate to the newer blog posts page (previous page)" - }, - "theme.blog.paginator.olderEntries": { - "message": "较旧的博文", - "description": "The label used to navigate to the older blog posts page (next page)" - }, - "theme.blog.post.paginator.navAriaLabel": { - "message": "博文分页导航", - "description": "The ARIA label for the blog posts pagination" - }, - "theme.blog.post.paginator.newerPost": { - "message": "较新一篇", - "description": "The blog post button label to navigate to the newer/previous post" - }, - "theme.blog.post.paginator.olderPost": { - "message": "较旧一篇", - "description": "The blog post button label to navigate to the older/next post" - }, - "theme.blog.post.plurals": { - "message": "{count} 篇博文", - "description": "Pluralized label for \"{count} posts\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)" - }, - "theme.blog.tagTitle": { - "message": "{nPosts} 含有标签「{tagName}」", - "description": "The title of the page for a blog tag" - }, - "theme.tags.tagsPageLink": { - "message": "查看所有标签", - "description": "The label of the link targeting the tag list page" - }, - "theme.colorToggle.ariaLabel": { - "message": "切换浅色/暗黑模式(当前为{mode})", - "description": "The ARIA label for the navbar color mode toggle" - }, - "theme.colorToggle.ariaLabel.mode.dark": { - "message": "暗黑模式", - "description": "The name for the dark color mode" - }, - "theme.colorToggle.ariaLabel.mode.light": { - "message": "浅色模式", - "description": "The name for the light color mode" - }, - "theme.docs.breadcrumbs.navAriaLabel": { - "message": "页面路径", - "description": "The ARIA label for the breadcrumbs" - }, - "theme.docs.DocCard.categoryDescription": { - "message": "{count} 个项目", - "description": "The default description for a category card in the generated index about how many items this category includes" - }, - "theme.docs.paginator.navAriaLabel": { - "message": "文档分页导航", - "description": "The ARIA label for the docs pagination" - }, - "theme.docs.paginator.previous": { - "message": "上一页", - "description": "The label used to navigate to the previous doc" - }, - "theme.docs.paginator.next": { - "message": "下一页", - "description": "The label used to navigate to the next doc" - }, - "theme.docs.tagDocListPageTitle.nDocsTagged": { - "message": "{count} 篇文档带有标签", - "description": "Pluralized label for \"{count} docs tagged\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)" - }, - "theme.docs.tagDocListPageTitle": { - "message": "{nDocsTagged}「{tagName}」", - "description": "The title of the page for a docs tag" - }, - "theme.docs.versionBadge.label": { - "message": "版本:{versionLabel}" - }, - "theme.docs.versions.unreleasedVersionLabel": { - "message": "此为 {siteTitle} {versionLabel} 版尚未发行的文档。", - "description": "The label used to tell the user that he's browsing an unreleased doc version" - }, - "theme.docs.versions.unmaintainedVersionLabel": { - "message": "此为 {siteTitle} {versionLabel} 版的文档,现已不再积极维护。", - "description": "The label used to tell the user that he's browsing an unmaintained doc version" - }, - "theme.docs.versions.latestVersionSuggestionLabel": { - "message": "最新的文档请参阅 {latestVersionLink} ({versionLabel})。", - "description": "The label used to tell the user to check the latest version" - }, - "theme.docs.versions.latestVersionLinkLabel": { - "message": "最新版本", - "description": "The label used for the latest version suggestion link label" - }, - "theme.common.editThisPage": { - "message": "编辑此页", - "description": "The link label to edit the current page" - }, - "theme.common.headingLinkTitle": { - "message": "{heading}的直接链接", - "description": "Title for link to heading" - }, - "theme.lastUpdated.atDate": { - "message": "于 {date} ", - "description": "The words used to describe on which date a page has been last updated" - }, - "theme.lastUpdated.byUser": { - "message": "由 {user} ", - "description": "The words used to describe by who the page has been last updated" - }, - "theme.lastUpdated.lastUpdatedAtBy": { - "message": "最后{byUser}{atDate}更新", - "description": "The sentence used to display when a page has been last updated, and by who" - }, - "theme.navbar.mobileVersionsDropdown.label": { - "message": "选择版本", - "description": "The label for the navbar versions dropdown on mobile view" - }, - "theme.tags.tagsListLabel": { - "message": "标签:", - "description": "The label alongside a tag list" - }, - "theme.AnnouncementBar.closeButtonAriaLabel": { - "message": "关闭", - "description": "The ARIA label for close button of announcement bar" - }, - "theme.blog.sidebar.navAriaLabel": { - "message": "最近博文导航", - "description": "The ARIA label for recent posts in the blog sidebar" - }, - "theme.CodeBlock.copied": { - "message": "复制成功", - "description": "The copied button label on code blocks" - }, - "theme.CodeBlock.copyButtonAriaLabel": { - "message": "复制代码到剪贴板", - "description": "The ARIA label for copy code blocks button" - }, - "theme.CodeBlock.copy": { - "message": "复制", - "description": "The copy button label on code blocks" - }, - "theme.CodeBlock.wordWrapToggle": { - "message": "切换自动换行", - "description": "The title attribute for toggle word wrapping button of code block lines" - }, - "theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel": { - "message": "打开/收起侧边栏菜单「{label}」", - "description": "The ARIA label to toggle the collapsible sidebar category" - }, - "theme.NavBar.navAriaLabel": { - "message": "主导航", - "description": "The ARIA label for the main navigation" - }, - "theme.navbar.mobileLanguageDropdown.label": { - "message": "选择语言", - "description": "The label for the mobile language switcher dropdown" - }, - "theme.TOCCollapsible.toggleButtonLabel": { - "message": "本页总览", - "description": "The label used by the button on the collapsible TOC component" - }, - "theme.blog.post.readMore": { - "message": "阅读更多", - "description": "The label used in blog post item excerpts to link to full blog posts" - }, - "theme.blog.post.readMoreLabel": { - "message": "阅读 {title} 的全文", - "description": "The ARIA label for the link to full blog posts from excerpts" - }, - "theme.blog.post.readingTime.plurals": { - "message": "阅读需 {readingTime} 分钟", - "description": "Pluralized label for \"{readingTime} min read\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)" - }, - "theme.docs.breadcrumbs.home": { - "message": "主页面", - "description": "The ARIA label for the home page in the breadcrumbs" - }, - "theme.docs.sidebar.collapseButtonTitle": { - "message": "收起侧边栏", - "description": "The title attribute for collapse button of doc sidebar" - }, - "theme.docs.sidebar.collapseButtonAriaLabel": { - "message": "收起侧边栏", - "description": "The title attribute for collapse button of doc sidebar" - }, - "theme.docs.sidebar.navAriaLabel": { - "message": "文档侧边栏", - "description": "The ARIA label for the sidebar navigation" - }, - "theme.docs.sidebar.closeSidebarButtonAriaLabel": { - "message": "关闭导航栏", - "description": "The ARIA label for close button of mobile sidebar" - }, - "theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": { - "message": "← 回到主菜单", - "description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)" - }, - "theme.docs.sidebar.toggleSidebarButtonAriaLabel": { - "message": "切换导航栏", - "description": "The ARIA label for hamburger menu button of mobile navigation" - }, - "theme.docs.sidebar.expandButtonTitle": { - "message": "展开侧边栏", - "description": "The ARIA label and title attribute for expand button of doc sidebar" - }, - "theme.docs.sidebar.expandButtonAriaLabel": { - "message": "展开侧边栏", - "description": "The ARIA label and title attribute for expand button of doc sidebar" - }, - "theme.common.skipToMainContent": { - "message": "跳到主要内容", - "description": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation" - }, - "theme.tags.tagsPageTitle": { - "message": "标签", - "description": "The title of the tag list page" - } + "theme.ErrorPageContent.title": { + "message": "页面已崩溃。", + "description": "The title of the fallback page when the page crashed" + }, + "theme.ErrorPageContent.tryAgain": { + "message": "重试", + "description": "The label of the button to try again when the page crashed" + }, + "theme.NotFound.title": { + "message": "找不到页面", + "description": "The title of the 404 page" + }, + "theme.NotFound.p1": { + "message": "我们找不到您要找的页面。", + "description": "The first paragraph of the 404 page" + }, + "theme.NotFound.p2": { + "message": "请联系原始链接来源网站的所有者,并告知他们链接已损坏。", + "description": "The 2nd paragraph of the 404 page" + }, + "theme.admonition.note": { + "message": "备注", + "description": "The default label used for the Note admonition (:::note)" + }, + "theme.admonition.tip": { + "message": "提示", + "description": "The default label used for the Tip admonition (:::tip)" + }, + "theme.admonition.danger": { + "message": "危险", + "description": "The default label used for the Danger admonition (:::danger)" + }, + "theme.admonition.info": { + "message": "信息", + "description": "The default label used for the Info admonition (:::info)" + }, + "theme.admonition.caution": { + "message": "警告", + "description": "The default label used for the Caution admonition (:::caution)" + }, + "theme.BackToTopButton.buttonAriaLabel": { + "message": "回到顶部", + "description": "The ARIA label for the back to top button" + }, + "theme.blog.archive.title": { + "message": "历史博文", + "description": "The page & hero title of the blog archive page" + }, + "theme.blog.archive.description": { + "message": "历史博文", + "description": "The page & hero description of the blog archive page" + }, + "theme.blog.paginator.navAriaLabel": { + "message": "博文列表分页导航", + "description": "The ARIA label for the blog pagination" + }, + "theme.blog.paginator.newerEntries": { + "message": "较新的博文", + "description": "The label used to navigate to the newer blog posts page (previous page)" + }, + "theme.blog.paginator.olderEntries": { + "message": "较旧的博文", + "description": "The label used to navigate to the older blog posts page (next page)" + }, + "theme.blog.post.paginator.navAriaLabel": { + "message": "博文分页导航", + "description": "The ARIA label for the blog posts pagination" + }, + "theme.blog.post.paginator.newerPost": { + "message": "较新一篇", + "description": "The blog post button label to navigate to the newer/previous post" + }, + "theme.blog.post.paginator.olderPost": { + "message": "较旧一篇", + "description": "The blog post button label to navigate to the older/next post" + }, + "theme.blog.post.plurals": { + "message": "{count} 篇博文", + "description": "Pluralized label for \"{count} posts\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)" + }, + "theme.blog.tagTitle": { + "message": "{nPosts} 含有标签「{tagName}」", + "description": "The title of the page for a blog tag" + }, + "theme.tags.tagsPageLink": { + "message": "查看所有标签", + "description": "The label of the link targeting the tag list page" + }, + "theme.colorToggle.ariaLabel": { + "message": "切换浅色/暗黑模式(当前为{mode})", + "description": "The ARIA label for the navbar color mode toggle" + }, + "theme.colorToggle.ariaLabel.mode.dark": { + "message": "暗黑模式", + "description": "The name for the dark color mode" + }, + "theme.colorToggle.ariaLabel.mode.light": { + "message": "浅色模式", + "description": "The name for the light color mode" + }, + "theme.docs.breadcrumbs.navAriaLabel": { + "message": "页面路径", + "description": "The ARIA label for the breadcrumbs" + }, + "theme.docs.DocCard.categoryDescription": { + "message": "{count} 个项目", + "description": "The default description for a category card in the generated index about how many items this category includes" + }, + "theme.docs.paginator.navAriaLabel": { + "message": "文档分页导航", + "description": "The ARIA label for the docs pagination" + }, + "theme.docs.paginator.previous": { + "message": "上一页", + "description": "The label used to navigate to the previous doc" + }, + "theme.docs.paginator.next": { + "message": "下一页", + "description": "The label used to navigate to the next doc" + }, + "theme.docs.tagDocListPageTitle.nDocsTagged": { + "message": "{count} 篇文档带有标签", + "description": "Pluralized label for \"{count} docs tagged\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)" + }, + "theme.docs.tagDocListPageTitle": { + "message": "{nDocsTagged}「{tagName}」", + "description": "The title of the page for a docs tag" + }, + "theme.docs.versionBadge.label": { + "message": "版本:{versionLabel}" + }, + "theme.docs.versions.unreleasedVersionLabel": { + "message": "此为 {siteTitle} {versionLabel} 版尚未发行的文档。", + "description": "The label used to tell the user that he's browsing an unreleased doc version" + }, + "theme.docs.versions.unmaintainedVersionLabel": { + "message": "此为 {siteTitle} {versionLabel} 版的文档,现已不再积极维护。", + "description": "The label used to tell the user that he's browsing an unmaintained doc version" + }, + "theme.docs.versions.latestVersionSuggestionLabel": { + "message": "最新的文档请参阅 {latestVersionLink} ({versionLabel})。", + "description": "The label used to tell the user to check the latest version" + }, + "theme.docs.versions.latestVersionLinkLabel": { + "message": "最新版本", + "description": "The label used for the latest version suggestion link label" + }, + "theme.common.editThisPage": { + "message": "编辑此页", + "description": "The link label to edit the current page" + }, + "theme.common.headingLinkTitle": { + "message": "{heading}的直接链接", + "description": "Title for link to heading" + }, + "theme.lastUpdated.atDate": { + "message": "于 {date} ", + "description": "The words used to describe on which date a page has been last updated" + }, + "theme.lastUpdated.byUser": { + "message": "由 {user} ", + "description": "The words used to describe by who the page has been last updated" + }, + "theme.lastUpdated.lastUpdatedAtBy": { + "message": "最后{byUser}{atDate}更新", + "description": "The sentence used to display when a page has been last updated, and by who" + }, + "theme.navbar.mobileVersionsDropdown.label": { + "message": "选择版本", + "description": "The label for the navbar versions dropdown on mobile view" + }, + "theme.tags.tagsListLabel": { + "message": "标签:", + "description": "The label alongside a tag list" + }, + "theme.AnnouncementBar.closeButtonAriaLabel": { + "message": "关闭", + "description": "The ARIA label for close button of announcement bar" + }, + "theme.blog.sidebar.navAriaLabel": { + "message": "最近博文导航", + "description": "The ARIA label for recent posts in the blog sidebar" + }, + "theme.CodeBlock.copied": { + "message": "复制成功", + "description": "The copied button label on code blocks" + }, + "theme.CodeBlock.copyButtonAriaLabel": { + "message": "复制代码到剪贴板", + "description": "The ARIA label for copy code blocks button" + }, + "theme.CodeBlock.copy": { + "message": "复制", + "description": "The copy button label on code blocks" + }, + "theme.CodeBlock.wordWrapToggle": { + "message": "切换自动换行", + "description": "The title attribute for toggle word wrapping button of code block lines" + }, + "theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel": { + "message": "打开/收起侧边栏菜单「{label}」", + "description": "The ARIA label to toggle the collapsible sidebar category" + }, + "theme.NavBar.navAriaLabel": { + "message": "主导航", + "description": "The ARIA label for the main navigation" + }, + "theme.navbar.mobileLanguageDropdown.label": { + "message": "选择语言", + "description": "The label for the mobile language switcher dropdown" + }, + "theme.TOCCollapsible.toggleButtonLabel": { + "message": "本页总览", + "description": "The label used by the button on the collapsible TOC component" + }, + "theme.blog.post.readMore": { + "message": "阅读更多", + "description": "The label used in blog post item excerpts to link to full blog posts" + }, + "theme.blog.post.readMoreLabel": { + "message": "阅读 {title} 的全文", + "description": "The ARIA label for the link to full blog posts from excerpts" + }, + "theme.blog.post.readingTime.plurals": { + "message": "阅读需 {readingTime} 分钟", + "description": "Pluralized label for \"{readingTime} min read\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)" + }, + "theme.docs.breadcrumbs.home": { + "message": "主页面", + "description": "The ARIA label for the home page in the breadcrumbs" + }, + "theme.docs.sidebar.collapseButtonTitle": { + "message": "收起侧边栏", + "description": "The title attribute for collapse button of doc sidebar" + }, + "theme.docs.sidebar.collapseButtonAriaLabel": { + "message": "收起侧边栏", + "description": "The title attribute for collapse button of doc sidebar" + }, + "theme.docs.sidebar.navAriaLabel": { + "message": "文档侧边栏", + "description": "The ARIA label for the sidebar navigation" + }, + "theme.docs.sidebar.closeSidebarButtonAriaLabel": { + "message": "关闭导航栏", + "description": "The ARIA label for close button of mobile sidebar" + }, + "theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": { + "message": "← 回到主菜单", + "description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)" + }, + "theme.docs.sidebar.toggleSidebarButtonAriaLabel": { + "message": "切换导航栏", + "description": "The ARIA label for hamburger menu button of mobile navigation" + }, + "theme.docs.sidebar.expandButtonTitle": { + "message": "展开侧边栏", + "description": "The ARIA label and title attribute for expand button of doc sidebar" + }, + "theme.docs.sidebar.expandButtonAriaLabel": { + "message": "展开侧边栏", + "description": "The ARIA label and title attribute for expand button of doc sidebar" + }, + "theme.common.skipToMainContent": { + "message": "跳到主要内容", + "description": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation" + }, + "theme.tags.tagsPageTitle": { + "message": "标签", + "description": "The title of the tag list page" + } } diff --git a/i18n/zh/docusaurus-plugin-content-blog/options.json b/i18n/zh/docusaurus-plugin-content-blog/options.json index 159eb3bb..9239ff70 100644 --- a/i18n/zh/docusaurus-plugin-content-blog/options.json +++ b/i18n/zh/docusaurus-plugin-content-blog/options.json @@ -1,14 +1,14 @@ { - "title": { - "message": "Blog", - "description": "The title for the blog used in SEO" - }, - "description": { - "message": "Blog", - "description": "The description for the blog used in SEO" - }, - "sidebar.title": { - "message": "Recent posts", - "description": "The label for the left sidebar" - } + "title": { + "message": "Blog", + "description": "The title for the blog used in SEO" + }, + "description": { + "message": "Blog", + "description": "The description for the blog used in SEO" + }, + "sidebar.title": { + "message": "Recent posts", + "description": "The label for the left sidebar" + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current.json b/i18n/zh/docusaurus-plugin-content-docs/current.json index 542b8ae8..c1a9e3ed 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current.json @@ -1,246 +1,246 @@ { - "version.label": { - "message": "Next", - "description": "The label for version current" - }, - "sidebar.developSidebar.category.Getting Started with WasmEdge": { - "message": "Getting Started with WasmEdge", - "description": "The label for category Getting Started with WasmEdge in sidebar developSidebar" - }, - "sidebar.developSidebar.category.Getting Started with WasmEdge.link.generated-index.description": { - "message": "In this chapter, we will show you how to get WasmEdge up and running quickly.", - "description": "The generated-index page description for category Getting Started with WasmEdge in sidebar developSidebar" - }, - "sidebar.developSidebar.category.What is WasmEdge": { - "message": "What is WasmEdge", - "description": "The label for category What is WasmEdge in sidebar developSidebar" - }, - "sidebar.developSidebar.category.What is WasmEdge.link.generated-index.description": { - "message": "WasmEdge is a WebAssembly runtime optimized for cloud-native and edge-native applications. It is a safe, fast, lightweight, and portable alternative to Linux containers in the cloud. It is also an ideal runtime for serverless functions, user-defined functions, embedded functions in application platforms and data pipelines.", - "description": "The generated-index page description for category What is WasmEdge in sidebar developSidebar" - }, - "sidebar.developSidebar.category.WasmEdge Extensions": { - "message": "WasmEdge Extensions", - "description": "The label for category WasmEdge Extensions in sidebar developSidebar" - }, - "sidebar.developSidebar.category.WasmEdge Extensions.link.generated-index.description": { - "message": "WasmEdge supports all standard WebAssembly and WASI specifications. In addition, it supports features and APIs that are crucial for the cloud-native use cases. WasmEdge is a superset of standard Wasm. Through its extension SDK, developers can easily add features they need to the WasmEdge Runtime as plugins.", - "description": "The generated-index page description for category WasmEdge Extensions in sidebar developSidebar" - }, - "sidebar.developSidebar.category.Building and running WasmEdge apps": { - "message": "Building and running WasmEdge apps", - "description": "The label for category Building and running WasmEdge apps in sidebar developSidebar" - }, - "sidebar.developSidebar.category.Building and running WasmEdge apps.link.generated-index.description": { - "message": "In this chapter, we will discuss WasmEdge CLIs and how to leverage Docker + Wasm to run build, share, and run your Wasm apps.", - "description": "The generated-index page description for category Building and running WasmEdge apps in sidebar developSidebar" - }, - "sidebar.developSidebar.category.Develop Wasm Apps in Rust": { - "message": "Develop Wasm Apps in Rust", - "description": "The label for category Develop Wasm Apps in Rust in sidebar developSidebar" - }, - "sidebar.developSidebar.category.Develop Wasm Apps in Rust.link.generated-index.description": { - "message": "Rust is the first class citizen in WebAssembly ecosystem. In this chapter, we will learn how to create Wasm apps in Rust.", - "description": "The generated-index page description for category Develop Wasm Apps in Rust in sidebar developSidebar" - }, - "sidebar.developSidebar.category.4.3 HTTP services": { - "message": "4.3 HTTP services", - "description": "The label for category 4.3 HTTP services in sidebar developSidebar" - }, - "sidebar.developSidebar.category.4.3 HTTP services.link.generated-index.description": { - "message": "Create HTTPs request in Rust and running in WasmEdge.", - "description": "The generated-index page description for category 4.3 HTTP services in sidebar developSidebar" - }, - "sidebar.developSidebar.category.4.4 Socket networking": { - "message": "4.4 Socket networking", - "description": "The label for category 4.4 Socket networking in sidebar developSidebar" - }, - "sidebar.developSidebar.category.4.4 Socket networking.link.generated-index.description": { - "message": "Run Tokio-based async Rust applications in WasmEdge.", - "description": "The generated-index page description for category 4.4 Socket networking in sidebar developSidebar" - }, - "sidebar.developSidebar.category.4.5 AI Inference": { - "message": "4.5 AI Inference", - "description": "The label for category 4.5 AI Inference in sidebar developSidebar" - }, - "sidebar.developSidebar.category.4.5 AI Inference.link.generated-index.description": { - "message": "Run AI Inference function based on TensorFlow, OpenVINO, Pytorch, and TensorFlow-lite in WasmEdge.", - "description": "The generated-index page description for category 4.5 AI Inference in sidebar developSidebar" - }, - "sidebar.developSidebar.category.Develop Wasm Apps in JavaScript": { - "message": "Develop Wasm Apps in JavaScript", - "description": "The label for category Develop Wasm Apps in JavaScript in sidebar developSidebar" - }, - "sidebar.developSidebar.category.Develop Wasm Apps in JavaScript.link.generated-index.description": { - "message": "Yes! You could run JavaScript programs in WasmEdge.", - "description": "The generated-index page description for category Develop Wasm Apps in JavaScript in sidebar developSidebar" - }, - "sidebar.developSidebar.category.HTTP service": { - "message": "HTTP service", - "description": "The label for category HTTP service in sidebar developSidebar" - }, - "sidebar.developSidebar.category.HTTP service.link.generated-index.description": { - "message": "The QuickJS WasmEdge Runtime supports Node.js's `http` and `fetch` APIs.", - "description": "The generated-index page description for category HTTP service in sidebar developSidebar" - }, - "sidebar.developSidebar.category.Develop Wasm Apps in C/C++": { - "message": "Develop Wasm Apps in C/C++", - "description": "The label for category Develop Wasm Apps in C/C++ in sidebar developSidebar" - }, - "sidebar.developSidebar.category.Develop Wasm Apps in C/C++.link.generated-index.description": { - "message": "In this chapter, we will learn how to create Wasm apps in C/C++.", - "description": "The generated-index page description for category Develop Wasm Apps in C/C++ in sidebar developSidebar" - }, - "sidebar.developSidebar.category.Develop Wasm Apps in Go": { - "message": "Develop Wasm Apps in Go", - "description": "The label for category Develop Wasm Apps in Go in sidebar developSidebar" - }, - "sidebar.developSidebar.category.Develop Wasm Apps in Go.link.generated-index.description": { - "message": "In this chapter, we will learn how to create Wasm apps in Go.", - "description": "The generated-index page description for category Develop Wasm Apps in Go in sidebar developSidebar" - }, - "sidebar.developSidebar.category.Deploy WasmEdge apps in Kubernetes": { - "message": "Deploy WasmEdge apps in Kubernetes", - "description": "The label for category Deploy WasmEdge apps in Kubernetes in sidebar developSidebar" - }, - "sidebar.developSidebar.category.Deploy WasmEdge apps in Kubernetes.link.generated-index.description": { - "message": "In this chapter, we will introduce how to depoloy Wasm app using the exisiting container toolings.", - "description": "The generated-index page description for category Deploy WasmEdge apps in Kubernetes in sidebar developSidebar" - }, - "sidebar.developSidebar.category.Low level runtime support": { - "message": "Low level runtime support", - "description": "The label for category Low level runtime support in sidebar developSidebar" - }, - "sidebar.developSidebar.category.Low level runtime support.link.generated-index.description": { - "message": "In this chapter, we will introduce integrations between WasmEdge and low level runtimes,like containerd and crun.", - "description": "The generated-index page description for category Low level runtime support in sidebar developSidebar" - }, - "sidebar.developSidebar.category.Use Cases": { - "message": "Use Cases", - "description": "The label for category Use Cases in sidebar developSidebar" - }, - "sidebar.developSidebar.category.Use Cases.link.generated-index.description": { - "message": "In this chapter, we will introduce how to use K8s variations to depoloy Wasm app.", - "description": "The generated-index page description for category Use Cases in sidebar developSidebar" - }, - "sidebar.embedSidebar.category.Quick Start": { - "message": "Quick Start", - "description": "The label for category Quick Start in sidebar embedSidebar" - }, - "sidebar.embedSidebar.category.Quick Start.link.generated-index.description": { - "message": "In this chapter, we will introduce how to install and run the Wasm app quickly with WasmEdge runtime.", - "description": "The generated-index page description for category Quick Start in sidebar embedSidebar" - }, - "sidebar.embedSidebar.category.Passing Complex Data": { - "message": "Passing Complex Data", - "description": "The label for category Passing Complex Data in sidebar embedSidebar" - }, - "sidebar.embedSidebar.category.Passing Complex Data.link.generated-index.description": { - "message": "Passing Complex Data from the host app to the wasm app", - "description": "The generated-index page description for category Passing Complex Data in sidebar embedSidebar" - }, - "sidebar.embedSidebar.category.C SDK for Embedding Wasm Functions": { - "message": "C SDK for Embedding Wasm Functions", - "description": "The label for category C SDK for Embedding Wasm Functions in sidebar embedSidebar" - }, - "sidebar.embedSidebar.category.C SDK for Embedding Wasm Functions.link.generated-index.description": { - "message": "In this chapter, we will learn how to embed WasmEdge with the C API.", - "description": "The generated-index page description for category C SDK for Embedding Wasm Functions in sidebar embedSidebar" - }, - "sidebar.embedSidebar.category.API Reference": { - "message": "API Reference", - "description": "The label for category API Reference in sidebar embedSidebar" - }, - "sidebar.embedSidebar.category.API Reference.link.generated-index.description": { - "message": "In this chapter, we will discuss the WasmEdge Go API Reference .", - "description": "The generated-index page description for category API Reference in sidebar embedSidebar" - }, - "sidebar.embedSidebar.category.Rust SDK for Embedding Wasm Functions": { - "message": "Rust SDK for Embedding Wasm Functions", - "description": "The label for category Rust SDK for Embedding Wasm Functions in sidebar embedSidebar" - }, - "sidebar.embedSidebar.category.Rust SDK for Embedding Wasm Functions.link.generated-index.description": { - "message": "we will learn how to Embed WasmEdge in your Rust host applications", - "description": "The generated-index page description for category Rust SDK for Embedding Wasm Functions in sidebar embedSidebar" - }, - "sidebar.embedSidebar.category.Go SDK for Embedding Wasm Functions": { - "message": "Go SDK for Embedding Wasm Functions", - "description": "The label for category Go SDK for Embedding Wasm Functions in sidebar embedSidebar" - }, - "sidebar.embedSidebar.category.Go SDK for Embedding Wasm Functions.link.generated-index.description": { - "message": "In this chapter, we will learn how to Embed WasmEdge in your Go host applications.", - "description": "The generated-index page description for category Go SDK for Embedding Wasm Functions in sidebar embedSidebar" - }, - "sidebar.embedSidebar.category.Java SDK for Embedding Wasm Functions": { - "message": "Java SDK for Embedding Wasm Functions", - "description": "The label for category Java SDK for Embedding Wasm Functions in sidebar embedSidebar" - }, - "sidebar.embedSidebar.category.Java SDK for Embedding Wasm Functions.link.generated-index.description": { - "message": "In this chapter, we will learn how to Embed WasmEdge in your Java host applications.", - "description": "The generated-index page description for category Java SDK for Embedding Wasm Functions in sidebar embedSidebar" - }, - "sidebar.embedSidebar.category.C++ SDK for Embedding Wasm Functions": { - "message": "C++ SDK for Embedding Wasm Functions", - "description": "The label for category C++ SDK for Embedding Wasm Functions in sidebar embedSidebar" - }, - "sidebar.embedSidebar.category.C++ SDK for Embedding Wasm Functions.link.generated-index.description": { - "message": "In this chapter, we will learn how to Embed WasmEdge in your C++ host applications.", - "description": "The generated-index page description for category C++ SDK for Embedding Wasm Functions in sidebar embedSidebar" - }, - "sidebar.embedSidebar.category.Python SDK for Embedding Wasm Functions": { - "message": "Python SDK for Embedding Wasm Functions", - "description": "The label for category Python SDK for Embedding Wasm Functions in sidebar embedSidebar" - }, - "sidebar.embedSidebar.category.Python SDK for Embedding Wasm Functions.link.generated-index.description": { - "message": "In this chapter, we will learn how to Embed WasmEdge in your Python host applications.", - "description": "The generated-index page description for category Python SDK for Embedding Wasm Functions in sidebar embedSidebar" - }, - "sidebar.embedSidebar.category.WasmEdge Use Cases": { - "message": "WasmEdge Use Cases", - "description": "The label for category WasmEdge Use Cases in sidebar embedSidebar" - }, - "sidebar.embedSidebar.category.WasmEdge Use Cases.link.generated-index.description": { - "message": "In this chapter, we will discuss use cases for embedding WasmEdge.", - "description": "The generated-index page description for category WasmEdge Use Cases in sidebar embedSidebar" - }, - "sidebar.contributeSidebar.category.Build WasmEdge from source": { - "message": "Build WasmEdge from source", - "description": "The label for category Build WasmEdge from source in sidebar contributeSidebar" - }, - "sidebar.contributeSidebar.category.Build WasmEdge from source.link.generated-index.description": { - "message": "we will learn how to the WasmEdge Plugin System.", - "description": "The generated-index page description for category Build WasmEdge from source in sidebar contributeSidebar" - }, - "sidebar.contributeSidebar.category.Build WasmEdge": { - "message": "Build WasmEdge", - "description": "The label for category Build WasmEdge in sidebar contributeSidebar" - }, - "sidebar.contributeSidebar.category.Build WasmEdge.link.generated-index.description": { - "message": "we will learn how to build WasmEdge from source on different OSes.", - "description": "The generated-index page description for category Build WasmEdge in sidebar contributeSidebar" - }, - "sidebar.contributeSidebar.category.Build and Run WasmEdge on Android": { - "message": "Build and Run WasmEdge on Android", - "description": "The label for category Build and Run WasmEdge on Android in sidebar contributeSidebar" - }, - "sidebar.contributeSidebar.category.Build and Run WasmEdge on Android.link.generated-index.description": { - "message": "we will learn how to build and run WasmEdge on Android.", - "description": "The generated-index page description for category Build and Run WasmEdge on Android in sidebar contributeSidebar" - }, - "sidebar.contributeSidebar.category.WasmEdge Plugin": { - "message": "WasmEdge Plugin", - "description": "The label for category WasmEdge Plugin in sidebar contributeSidebar" - }, - "sidebar.contributeSidebar.category.WasmEdge Plugin.link.generated-index.description": { - "message": "In this chapter, we will learn how to build WasmEdge Plugins from source", - "description": "The generated-index page description for category WasmEdge Plugin in sidebar contributeSidebar" - }, - "sidebar.contributeSidebar.category.WasmEdge Plugin System": { - "message": "WasmEdge Plugin System", - "description": "The label for category WasmEdge Plugin System in sidebar contributeSidebar" - }, - "sidebar.contributeSidebar.category.WasmEdge Plugin System.link.generated-index.description": { - "message": "we will learn how to the WasmEdge Plugin System.", - "description": "The generated-index page description for category WasmEdge Plugin System in sidebar contributeSidebar" - } + "version.label": { + "message": "Next", + "description": "The label for version current" + }, + "sidebar.developSidebar.category.Getting Started with WasmEdge": { + "message": "Getting Started with WasmEdge", + "description": "The label for category Getting Started with WasmEdge in sidebar developSidebar" + }, + "sidebar.developSidebar.category.Getting Started with WasmEdge.link.generated-index.description": { + "message": "In this chapter, we will show you how to get WasmEdge up and running quickly.", + "description": "The generated-index page description for category Getting Started with WasmEdge in sidebar developSidebar" + }, + "sidebar.developSidebar.category.What is WasmEdge": { + "message": "What is WasmEdge", + "description": "The label for category What is WasmEdge in sidebar developSidebar" + }, + "sidebar.developSidebar.category.What is WasmEdge.link.generated-index.description": { + "message": "WasmEdge is a WebAssembly runtime optimized for cloud-native and edge-native applications. It is a safe, fast, lightweight, and portable alternative to Linux containers in the cloud. It is also an ideal runtime for serverless functions, user-defined functions, embedded functions in application platforms and data pipelines.", + "description": "The generated-index page description for category What is WasmEdge in sidebar developSidebar" + }, + "sidebar.developSidebar.category.WasmEdge Extensions": { + "message": "WasmEdge Extensions", + "description": "The label for category WasmEdge Extensions in sidebar developSidebar" + }, + "sidebar.developSidebar.category.WasmEdge Extensions.link.generated-index.description": { + "message": "WasmEdge supports all standard WebAssembly and WASI specifications. In addition, it supports features and APIs that are crucial for the cloud-native use cases. WasmEdge is a superset of standard Wasm. Through its extension SDK, developers can easily add features they need to the WasmEdge Runtime as plugins.", + "description": "The generated-index page description for category WasmEdge Extensions in sidebar developSidebar" + }, + "sidebar.developSidebar.category.Building and running WasmEdge apps": { + "message": "Building and running WasmEdge apps", + "description": "The label for category Building and running WasmEdge apps in sidebar developSidebar" + }, + "sidebar.developSidebar.category.Building and running WasmEdge apps.link.generated-index.description": { + "message": "In this chapter, we will discuss WasmEdge CLIs and how to leverage Docker + Wasm to run build, share, and run your Wasm apps.", + "description": "The generated-index page description for category Building and running WasmEdge apps in sidebar developSidebar" + }, + "sidebar.developSidebar.category.Develop Wasm Apps in Rust": { + "message": "Develop Wasm Apps in Rust", + "description": "The label for category Develop Wasm Apps in Rust in sidebar developSidebar" + }, + "sidebar.developSidebar.category.Develop Wasm Apps in Rust.link.generated-index.description": { + "message": "Rust is the first class citizen in WebAssembly ecosystem. In this chapter, we will learn how to create Wasm apps in Rust.", + "description": "The generated-index page description for category Develop Wasm Apps in Rust in sidebar developSidebar" + }, + "sidebar.developSidebar.category.4.3 HTTP services": { + "message": "4.3 HTTP services", + "description": "The label for category 4.3 HTTP services in sidebar developSidebar" + }, + "sidebar.developSidebar.category.4.3 HTTP services.link.generated-index.description": { + "message": "Create HTTPs request in Rust and running in WasmEdge.", + "description": "The generated-index page description for category 4.3 HTTP services in sidebar developSidebar" + }, + "sidebar.developSidebar.category.4.4 Socket networking": { + "message": "4.4 Socket networking", + "description": "The label for category 4.4 Socket networking in sidebar developSidebar" + }, + "sidebar.developSidebar.category.4.4 Socket networking.link.generated-index.description": { + "message": "Run Tokio-based async Rust applications in WasmEdge.", + "description": "The generated-index page description for category 4.4 Socket networking in sidebar developSidebar" + }, + "sidebar.developSidebar.category.4.5 AI Inference": { + "message": "4.5 AI Inference", + "description": "The label for category 4.5 AI Inference in sidebar developSidebar" + }, + "sidebar.developSidebar.category.4.5 AI Inference.link.generated-index.description": { + "message": "Run AI Inference function based on TensorFlow, OpenVINO, Pytorch, and TensorFlow-lite in WasmEdge.", + "description": "The generated-index page description for category 4.5 AI Inference in sidebar developSidebar" + }, + "sidebar.developSidebar.category.Develop Wasm Apps in JavaScript": { + "message": "Develop Wasm Apps in JavaScript", + "description": "The label for category Develop Wasm Apps in JavaScript in sidebar developSidebar" + }, + "sidebar.developSidebar.category.Develop Wasm Apps in JavaScript.link.generated-index.description": { + "message": "Yes! You could run JavaScript programs in WasmEdge.", + "description": "The generated-index page description for category Develop Wasm Apps in JavaScript in sidebar developSidebar" + }, + "sidebar.developSidebar.category.HTTP service": { + "message": "HTTP service", + "description": "The label for category HTTP service in sidebar developSidebar" + }, + "sidebar.developSidebar.category.HTTP service.link.generated-index.description": { + "message": "The QuickJS WasmEdge Runtime supports Node.js's `http` and `fetch` APIs.", + "description": "The generated-index page description for category HTTP service in sidebar developSidebar" + }, + "sidebar.developSidebar.category.Develop Wasm Apps in C/C++": { + "message": "Develop Wasm Apps in C/C++", + "description": "The label for category Develop Wasm Apps in C/C++ in sidebar developSidebar" + }, + "sidebar.developSidebar.category.Develop Wasm Apps in C/C++.link.generated-index.description": { + "message": "In this chapter, we will learn how to create Wasm apps in C/C++.", + "description": "The generated-index page description for category Develop Wasm Apps in C/C++ in sidebar developSidebar" + }, + "sidebar.developSidebar.category.Develop Wasm Apps in Go": { + "message": "Develop Wasm Apps in Go", + "description": "The label for category Develop Wasm Apps in Go in sidebar developSidebar" + }, + "sidebar.developSidebar.category.Develop Wasm Apps in Go.link.generated-index.description": { + "message": "In this chapter, we will learn how to create Wasm apps in Go.", + "description": "The generated-index page description for category Develop Wasm Apps in Go in sidebar developSidebar" + }, + "sidebar.developSidebar.category.Deploy WasmEdge apps in Kubernetes": { + "message": "Deploy WasmEdge apps in Kubernetes", + "description": "The label for category Deploy WasmEdge apps in Kubernetes in sidebar developSidebar" + }, + "sidebar.developSidebar.category.Deploy WasmEdge apps in Kubernetes.link.generated-index.description": { + "message": "In this chapter, we will introduce how to depoloy Wasm app using the exisiting container toolings.", + "description": "The generated-index page description for category Deploy WasmEdge apps in Kubernetes in sidebar developSidebar" + }, + "sidebar.developSidebar.category.Low level runtime support": { + "message": "Low level runtime support", + "description": "The label for category Low level runtime support in sidebar developSidebar" + }, + "sidebar.developSidebar.category.Low level runtime support.link.generated-index.description": { + "message": "In this chapter, we will introduce integrations between WasmEdge and low level runtimes,like containerd and crun.", + "description": "The generated-index page description for category Low level runtime support in sidebar developSidebar" + }, + "sidebar.developSidebar.category.Use Cases": { + "message": "Use Cases", + "description": "The label for category Use Cases in sidebar developSidebar" + }, + "sidebar.developSidebar.category.Use Cases.link.generated-index.description": { + "message": "In this chapter, we will introduce how to use K8s variations to depoloy Wasm app.", + "description": "The generated-index page description for category Use Cases in sidebar developSidebar" + }, + "sidebar.embedSidebar.category.Quick Start": { + "message": "Quick Start", + "description": "The label for category Quick Start in sidebar embedSidebar" + }, + "sidebar.embedSidebar.category.Quick Start.link.generated-index.description": { + "message": "In this chapter, we will introduce how to install and run the Wasm app quickly with WasmEdge runtime.", + "description": "The generated-index page description for category Quick Start in sidebar embedSidebar" + }, + "sidebar.embedSidebar.category.Passing Complex Data": { + "message": "Passing Complex Data", + "description": "The label for category Passing Complex Data in sidebar embedSidebar" + }, + "sidebar.embedSidebar.category.Passing Complex Data.link.generated-index.description": { + "message": "Passing Complex Data from the host app to the wasm app", + "description": "The generated-index page description for category Passing Complex Data in sidebar embedSidebar" + }, + "sidebar.embedSidebar.category.C SDK for Embedding Wasm Functions": { + "message": "C SDK for Embedding Wasm Functions", + "description": "The label for category C SDK for Embedding Wasm Functions in sidebar embedSidebar" + }, + "sidebar.embedSidebar.category.C SDK for Embedding Wasm Functions.link.generated-index.description": { + "message": "In this chapter, we will learn how to embed WasmEdge with the C API.", + "description": "The generated-index page description for category C SDK for Embedding Wasm Functions in sidebar embedSidebar" + }, + "sidebar.embedSidebar.category.API Reference": { + "message": "API Reference", + "description": "The label for category API Reference in sidebar embedSidebar" + }, + "sidebar.embedSidebar.category.API Reference.link.generated-index.description": { + "message": "In this chapter, we will discuss the WasmEdge Go API Reference .", + "description": "The generated-index page description for category API Reference in sidebar embedSidebar" + }, + "sidebar.embedSidebar.category.Rust SDK for Embedding Wasm Functions": { + "message": "Rust SDK for Embedding Wasm Functions", + "description": "The label for category Rust SDK for Embedding Wasm Functions in sidebar embedSidebar" + }, + "sidebar.embedSidebar.category.Rust SDK for Embedding Wasm Functions.link.generated-index.description": { + "message": "we will learn how to Embed WasmEdge in your Rust host applications", + "description": "The generated-index page description for category Rust SDK for Embedding Wasm Functions in sidebar embedSidebar" + }, + "sidebar.embedSidebar.category.Go SDK for Embedding Wasm Functions": { + "message": "Go SDK for Embedding Wasm Functions", + "description": "The label for category Go SDK for Embedding Wasm Functions in sidebar embedSidebar" + }, + "sidebar.embedSidebar.category.Go SDK for Embedding Wasm Functions.link.generated-index.description": { + "message": "In this chapter, we will learn how to Embed WasmEdge in your Go host applications.", + "description": "The generated-index page description for category Go SDK for Embedding Wasm Functions in sidebar embedSidebar" + }, + "sidebar.embedSidebar.category.Java SDK for Embedding Wasm Functions": { + "message": "Java SDK for Embedding Wasm Functions", + "description": "The label for category Java SDK for Embedding Wasm Functions in sidebar embedSidebar" + }, + "sidebar.embedSidebar.category.Java SDK for Embedding Wasm Functions.link.generated-index.description": { + "message": "In this chapter, we will learn how to Embed WasmEdge in your Java host applications.", + "description": "The generated-index page description for category Java SDK for Embedding Wasm Functions in sidebar embedSidebar" + }, + "sidebar.embedSidebar.category.C++ SDK for Embedding Wasm Functions": { + "message": "C++ SDK for Embedding Wasm Functions", + "description": "The label for category C++ SDK for Embedding Wasm Functions in sidebar embedSidebar" + }, + "sidebar.embedSidebar.category.C++ SDK for Embedding Wasm Functions.link.generated-index.description": { + "message": "In this chapter, we will learn how to Embed WasmEdge in your C++ host applications.", + "description": "The generated-index page description for category C++ SDK for Embedding Wasm Functions in sidebar embedSidebar" + }, + "sidebar.embedSidebar.category.Python SDK for Embedding Wasm Functions": { + "message": "Python SDK for Embedding Wasm Functions", + "description": "The label for category Python SDK for Embedding Wasm Functions in sidebar embedSidebar" + }, + "sidebar.embedSidebar.category.Python SDK for Embedding Wasm Functions.link.generated-index.description": { + "message": "In this chapter, we will learn how to Embed WasmEdge in your Python host applications.", + "description": "The generated-index page description for category Python SDK for Embedding Wasm Functions in sidebar embedSidebar" + }, + "sidebar.embedSidebar.category.WasmEdge Use Cases": { + "message": "WasmEdge Use Cases", + "description": "The label for category WasmEdge Use Cases in sidebar embedSidebar" + }, + "sidebar.embedSidebar.category.WasmEdge Use Cases.link.generated-index.description": { + "message": "In this chapter, we will discuss use cases for embedding WasmEdge.", + "description": "The generated-index page description for category WasmEdge Use Cases in sidebar embedSidebar" + }, + "sidebar.contributeSidebar.category.Build WasmEdge from source": { + "message": "Build WasmEdge from source", + "description": "The label for category Build WasmEdge from source in sidebar contributeSidebar" + }, + "sidebar.contributeSidebar.category.Build WasmEdge from source.link.generated-index.description": { + "message": "we will learn how to the WasmEdge Plugin System.", + "description": "The generated-index page description for category Build WasmEdge from source in sidebar contributeSidebar" + }, + "sidebar.contributeSidebar.category.Build WasmEdge": { + "message": "Build WasmEdge", + "description": "The label for category Build WasmEdge in sidebar contributeSidebar" + }, + "sidebar.contributeSidebar.category.Build WasmEdge.link.generated-index.description": { + "message": "we will learn how to build WasmEdge from source on different OSes.", + "description": "The generated-index page description for category Build WasmEdge in sidebar contributeSidebar" + }, + "sidebar.contributeSidebar.category.Build and Run WasmEdge on Android": { + "message": "Build and Run WasmEdge on Android", + "description": "The label for category Build and Run WasmEdge on Android in sidebar contributeSidebar" + }, + "sidebar.contributeSidebar.category.Build and Run WasmEdge on Android.link.generated-index.description": { + "message": "we will learn how to build and run WasmEdge on Android.", + "description": "The generated-index page description for category Build and Run WasmEdge on Android in sidebar contributeSidebar" + }, + "sidebar.contributeSidebar.category.WasmEdge Plugin": { + "message": "WasmEdge Plugin", + "description": "The label for category WasmEdge Plugin in sidebar contributeSidebar" + }, + "sidebar.contributeSidebar.category.WasmEdge Plugin.link.generated-index.description": { + "message": "In this chapter, we will learn how to build WasmEdge Plugins from source", + "description": "The generated-index page description for category WasmEdge Plugin in sidebar contributeSidebar" + }, + "sidebar.contributeSidebar.category.WasmEdge Plugin System": { + "message": "WasmEdge Plugin System", + "description": "The label for category WasmEdge Plugin System in sidebar contributeSidebar" + }, + "sidebar.contributeSidebar.category.WasmEdge Plugin System.link.generated-index.description": { + "message": "we will learn how to the WasmEdge Plugin System.", + "description": "The generated-index page description for category WasmEdge Plugin System in sidebar contributeSidebar" + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/community.md b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/community.md index 126c837b..1a78e997 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/community.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/community.md @@ -10,10 +10,10 @@ Everyone is welcome to join the WasmEdge community. If you have any questions, feel free to open a GitHub issue on a related project or to join the following channels: -- Mailing list: Send an email to [WasmEdge@googlegroups.com](https://groups.google.com/g/wasmedge/) -- Discord: Join the [WasmEdge Discord server](https://discord.gg/h4KDyB8XTt)! -- Slack: Join the #WasmEdge channel on the [CNCF Slack](https://slack.cncf.io/) -- Twitter: Follow @realwasmedge on [Twitter](https://twitter.com/realwasmedge) +- Mailing list: Send an email to [WasmEdge@googlegroups.com](https://groups.google.com/g/wasmedge/) +- Discord: Join the [WasmEdge Discord server](https://discord.gg/h4KDyB8XTt)! +- Slack: Join the #WasmEdge channel on the [CNCF Slack](https://slack.cncf.io/) +- Twitter: Follow @realwasmedge on [Twitter](https://twitter.com/realwasmedge) ## Community Meeting diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/contribute.md b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/contribute.md index f3cb57a2..adc5181a 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/contribute.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/contribute.md @@ -63,8 +63,8 @@ Before opening any issue, please look up the existing [issues](https://github.co When reporting issues, always include: -- Version of your system -- Configuration files of WasmEdge +- Version of your system +- Configuration files of WasmEdge Because the issues are open to the public, when submitting the log and configuration files, be sure to remove any sensitive information, e.g. user name, password, IP address, and company name. You can replace those parts with "REDACTED" or other strings like "\*\*\*\*". Be sure to include the steps to reproduce the problem if applicable. It can help us understand and fix your issue faster. diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/installer.md b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/installer.md index f9e52b7e..453ab167 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/installer.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/installer.md @@ -48,115 +48,115 @@ The real installer handles all stuff. It supports python2.7 (not tested on earli ### Help Msg -- Short Option: `-h` -- Full Option: `--help` -- Description: Show this help message and exit. +- Short Option: `-h` +- Full Option: `--help` +- Description: Show this help message and exit. ### Verbose -- Short Option: `-D` -- Full Option: `--debug` -- Description: Enable verbosity debug +- Short Option: `-D` +- Full Option: `--debug` +- Description: Enable verbosity debug ### Specify the version of WasmEdge to install -- Short Option: `-v VERSION` -- Full Option: `--version VERSION` -- Description: Install the given VERSION of WasmEdge -- Available Value: VERSION `0.11.2` or other valid release versions. -- Note - In the case of supplied an invalid or nonexistent version, the installer exists with an error. +- Short Option: `-v VERSION` +- Full Option: `--version VERSION` +- Description: Install the given VERSION of WasmEdge +- Available Value: VERSION `0.11.2` or other valid release versions. +- Note - In the case of supplied an invalid or nonexistent version, the installer exists with an error. ### Installation path -- Short Option: `-p PATH` -- Full Option: `--path PATH` -- Description: Install WasmEdge into the given PATH. The default Path is `$HOME/.wasmedge`. -- Note - In any path other than the ones starting with `/usr` are treated as non system paths in the internals of the installer. The consequences are different directory structures for both. -- Note - If the path not exists, the folder will be created. +- Short Option: `-p PATH` +- Full Option: `--path PATH` +- Description: Install WasmEdge into the given PATH. The default Path is `$HOME/.wasmedge`. +- Note - In any path other than the ones starting with `/usr` are treated as non system paths in the internals of the installer. The consequences are different directory structures for both. +- Note - If the path not exists, the folder will be created. ### Uninstallation #### Run uninstaller before installing -- Short Option: `-r {yes,no}` -- Full Option: `--remove-old {yes, no}` -- Description: Run the uninstaller script before installing. Default `yes`. +- Short Option: `-r {yes,no}` +- Full Option: `--remove-old {yes, no}` +- Description: Run the uninstaller script before installing. Default `yes`. #### Use a specific version of the uninstaller -- Short Option: `-u UNINSTALL_SCRIPT_TAG` -- Full Option: `--uninstall-script-tag UNINSTALL_SCRIPT_TAG` -- Description: Use the given GitHub tag to uninstall the script +- Short Option: `-u UNINSTALL_SCRIPT_TAG` +- Full Option: `--uninstall-script-tag UNINSTALL_SCRIPT_TAG` +- Description: Use the given GitHub tag to uninstall the script ### Install Extensions -- Short Option: `-e [EXTENSIONS [EXTENSIONS ...]]` -- Full Option: `--extension [EXTENSIONS [EXTENSIONS ...]]` -- Description: Install wasmedge-extension tools. -- Available Value (case sensitive): Supported Extensions `'tensorflow', 'image', 'all'`. +- Short Option: `-e [EXTENSIONS [EXTENSIONS ...]]` +- Full Option: `--extension [EXTENSIONS [EXTENSIONS ...]]` +- Description: Install wasmedge-extension tools. +- Available Value (case sensitive): Supported Extensions `'tensorflow', 'image', 'all'`. #### Tensorflow Extensions Library Version -- Full Option: `--tf-version TF_VERSION` -- Description: Install the given VERSION of the library of the Tensorflow and Tensorflow lite extension. Only available when the `Extensions` is set to `all` or `tensorflow`. -- Note - It's the same as the WasmEdge version if not specified. +- Full Option: `--tf-version TF_VERSION` +- Description: Install the given VERSION of the library of the Tensorflow and Tensorflow lite extension. Only available when the `Extensions` is set to `all` or `tensorflow`. +- Note - It's the same as the WasmEdge version if not specified. #### Tensorflow Extensions Dependencies Version -- Full Option: `--tf-deps-version TF_DEPS_VERSION` -- Description: Install the given VERSION of the dependencies of the Tensorflow and Tensorflow lite extension. Only available when the `Extensions` is set to `all` or `tensorflow`. -- Note - It's the same as the WasmEdge version if not specified. +- Full Option: `--tf-deps-version TF_DEPS_VERSION` +- Description: Install the given VERSION of the dependencies of the Tensorflow and Tensorflow lite extension. Only available when the `Extensions` is set to `all` or `tensorflow`. +- Note - It's the same as the WasmEdge version if not specified. #### Tensorflow Extensions Tools Version -- Full Option: `--tf-tools-version TF_TOOLS_VERSION` -- Description: Install the given VERSION of the tools of the Tensorflow and Tensorflow lite extension. Only available when the `Extensions` is set to `all` or `tensorflow`. -- Note - It's the same as the WasmEdge version if not specified. +- Full Option: `--tf-tools-version TF_TOOLS_VERSION` +- Description: Install the given VERSION of the tools of the Tensorflow and Tensorflow lite extension. Only available when the `Extensions` is set to `all` or `tensorflow`. +- Note - It's the same as the WasmEdge version if not specified. #### Image Extensions Version -- Full Option: `--image-version IMAGE_VERSION` -- Description: Install the given VERSION of the Image extension. Only available when the `Extensions` is set to `all` or `image`. -- Note - It's the same as the WasmEdge version if not specified. +- Full Option: `--image-version IMAGE_VERSION` +- Description: Install the given VERSION of the Image extension. Only available when the `Extensions` is set to `all` or `image`. +- Note - It's the same as the WasmEdge version if not specified. ### Plugins -- Note - Currently `--plugins` is an experimental option. +- Note - Currently `--plugins` is an experimental option. -- Full Option: `--plugins wasi_crypto:0.11.0` +- Full Option: `--plugins wasi_crypto:0.11.0` -- Note - The format for this argument is `:`. `` is not compulsory. For example `--plugins wasi_crypto` is a valid option. -- Note - `` is cases sensitive. Allowed values are stated [here](https://wasmedge.org/docs/contribute/plugin/intro) in the `Rust Crate` column. The logic is that the release name should be the same. -- Note - It's the same as the WasmEdge version if not specified. +- Note - The format for this argument is `:`. `` is not compulsory. For example `--plugins wasi_crypto` is a valid option. +- Note - `` is cases sensitive. Allowed values are stated [here](https://wasmedge.org/docs/contribute/plugin/intro) in the `Rust Crate` column. The logic is that the release name should be the same. +- Note - It's the same as the WasmEdge version if not specified. ### DIST -- Full Option: `--dist ubuntu20.04` or `--dist manylinux2014` -- Note - the `ubuntu20.04` and `manylinux2014` values are case insensitive and only these two are currently supported. -- Note - Specifying `--dist` value for `Darwin` has no effect. -- Note - For `Linux` platform if the distribution matches exactly as `Ubuntu 20.04` which is checked using `lsb_release` and python's `platform.dist()` functionality then it is set to `ubuntu20.04` if not specified, else it is used without questioning. However different release packages for WasmEdge are available only after `0.11.1` release below which there is no effect of specifying this option. +- Full Option: `--dist ubuntu20.04` or `--dist manylinux2014` +- Note - the `ubuntu20.04` and `manylinux2014` values are case insensitive and only these two are currently supported. +- Note - Specifying `--dist` value for `Darwin` has no effect. +- Note - For `Linux` platform if the distribution matches exactly as `Ubuntu 20.04` which is checked using `lsb_release` and python's `platform.dist()` functionality then it is set to `ubuntu20.04` if not specified, else it is used without questioning. However different release packages for WasmEdge are available only after `0.11.1` release below which there is no effect of specifying this option. ### Platform and OS -- Full Option: `--platform PLATFORM` or `--os OS` -- Description: Install the given `PLATFORM` or `OS` version of WasmEdge. This value should be case insensitive to make the maximum compatibility. -- Available Value (case insensitive): "Linux", "Darwin", "Windows". +- Full Option: `--platform PLATFORM` or `--os OS` +- Description: Install the given `PLATFORM` or `OS` version of WasmEdge. This value should be case insensitive to make the maximum compatibility. +- Available Value (case insensitive): "Linux", "Darwin", "Windows". ### Machine and Arch -- Full Option: `--machine MACHINE` or `--arch ARCH` -- Description: Install the given `MACHINE` or `ARCH` version of WasmEdge. -- Available Value: "x86_64", "aarch64". +- Full Option: `--machine MACHINE` or `--arch ARCH` +- Description: Install the given `MACHINE` or `ARCH` version of WasmEdge. +- Available Value: "x86_64", "aarch64". ## Behavior -- If there exists an installation at `$HOME/.wasmedge` which is to be noted as the default installation path, it is removed with or without uninstaller's invocation. -- WasmEdge installation appends all the files it installs to a file which is located in the installer directory named `env` with it's path as `$INSTALLATION_PATH/env` +- If there exists an installation at `$HOME/.wasmedge` which is to be noted as the default installation path, it is removed with or without uninstaller's invocation. +- WasmEdge installation appends all the files it installs to a file which is located in the installer directory named `env` with it's path as `$INSTALLATION_PATH/env` ### Shell and it's configuration -- Source string in shell configuration is given as `. $INSTALLATION_PATH/env` so that it exports the necessary environment variables for WasmEdge. -- Shell configuration file is appended with source string if it cannot find the source string in that file. -- Currently it detects only `Bash` and `zsh` shells. -- If the above shells are found, then their respective configuration files `$HOME/.bashrc` and `$HOME/.zshrc` are updated along with `$HOME/.zprofile` and `$HOME/.bash_profile` in case of Linux. -- In case of `Darwin`, only `$HOME/.zprofile` is updated with the source string. +- Source string in shell configuration is given as `. $INSTALLATION_PATH/env` so that it exports the necessary environment variables for WasmEdge. +- Shell configuration file is appended with source string if it cannot find the source string in that file. +- Currently it detects only `Bash` and `zsh` shells. +- If the above shells are found, then their respective configuration files `$HOME/.bashrc` and `$HOME/.zshrc` are updated along with `$HOME/.zprofile` and `$HOME/.bash_profile` in case of Linux. +- In case of `Darwin`, only `$HOME/.zprofile` is updated with the source string. diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/overview.md b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/overview.md index 055a4e58..f9b4c814 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/overview.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/overview.md @@ -9,25 +9,25 @@ Contribution is always welcome! The WebAssembly ecosystem is still in its early To help new contributors understand WasmEdge development workflow, this guide will include -- [Build WasmEdge and WasmEdge plug-in from source on different platforms](/category/build-wasmedge-from-source) -- [WasmEdge Plug-in system introduction](/category/wasmedge-plugin-system) -- [Test WasmEdge](test.md) -- [WasmEdge Fuzzing](fuzzing.md) -- [WasmEdge internal explanation](internal.md) -- [WasmEdge installer system explanation](installer.md) -- [contributing steps](contribute.md) -- [WasmEdge release process](release.md) -- [Join WasmEdge community](community.md) +- [Build WasmEdge and WasmEdge plug-in from source on different platforms](/category/build-wasmedge-from-source) +- [WasmEdge Plug-in system introduction](/category/wasmedge-plugin-system) +- [Test WasmEdge](test.md) +- [WasmEdge Fuzzing](fuzzing.md) +- [WasmEdge internal explanation](internal.md) +- [WasmEdge installer system explanation](installer.md) +- [contributing steps](contribute.md) +- [WasmEdge release process](release.md) +- [Join WasmEdge community](community.md) ## Ideas for contributions If you're looking for something to contribute, we have issues -- labeled with [`good first issue`](https://github.com/WasmEdge/WasmEdge/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22), which are recommendations for developers to contribute to WasmEdge by working on some easy tasks. These tasks will help contributors to learn the WasmEdge development workflow. +- labeled with [`good first issue`](https://github.com/WasmEdge/WasmEdge/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22), which are recommendations for developers to contribute to WasmEdge by working on some easy tasks. These tasks will help contributors to learn the WasmEdge development workflow. -- labeled with [`help wanted`](https://github.com/WasmEdge/WasmEdge/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22), for which are we need suggestions and opinions from the community. +- labeled with [`help wanted`](https://github.com/WasmEdge/WasmEdge/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22), for which are we need suggestions and opinions from the community. -- [Roadmap](https://github.com/WasmEdge/WasmEdge/blob/master/docs/ROADMAP.md) for every year, which elaborates the new features in the coming days. You're also welcome to pick one. +- [Roadmap](https://github.com/WasmEdge/WasmEdge/blob/master/docs/ROADMAP.md) for every year, which elaborates the new features in the coming days. You're also welcome to pick one. If you find something is missing, don't hesitate to create an issue and let us know. Again, WasmEdge is open in development. diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/plugin/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/plugin/_category_.json index 68e10756..fcdcda0b 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/plugin/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/plugin/_category_.json @@ -1,8 +1,8 @@ { - "label": "WasmEdge Plugin System", - "position": 3, - "link": { - "type": "generated-index", - "description": "we will learn how to the WasmEdge Plugin System." - } + "label": "WasmEdge Plugin System", + "position": 3, + "link": { + "type": "generated-index", + "description": "we will learn how to the WasmEdge Plugin System." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/release.md b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/release.md index c9b27154..ed7439ca 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/release.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/release.md @@ -6,62 +6,62 @@ sidebar_position: 9 ## Create the releasing process issue of the new version -- [ ] Keep adding the new features, issues, documents, and builds check list into the issue. -- [ ] Add the GitHub project of the new version. +- [ ] Keep adding the new features, issues, documents, and builds check list into the issue. +- [ ] Add the GitHub project of the new version. ## Write Changelog -- [ ] Make sure every change is written in the changelog. -- [ ] Make sure the `Changelog.md` has the correct version number and the release date. -- [ ] Copy the changelog of this version to `.CurrentChangelog.md`. (Our release CI will take this file as the release notes.) -- [ ] Record the contributor lists. -- [ ] Create a pull request, make sure the CI are all passed, and merge it. +- [ ] Make sure every change is written in the changelog. +- [ ] Make sure the `Changelog.md` has the correct version number and the release date. +- [ ] Copy the changelog of this version to `.CurrentChangelog.md`. (Our release CI will take this file as the release notes.) +- [ ] Record the contributor lists. +- [ ] Create a pull request, make sure the CI are all passed, and merge it. ## Create the Alpha Pre-Release -- [ ] In this step, the main features are completed. No more major feature will be merged after the first Alpha pre-release. -- [ ] Make sure that the features in the releasing process issue are completed. -- [ ] Use git tag to create a new release tag `major.minor.patch-alpha.version`. And push this tag to GitHub. -- [ ] Wait for the CI builds and pushes the release binaries and release notes to the GitHub release page. -- [ ] Check the `Pre-release` checkbox and publish the pre-release. -- [ ] This step will automatically close and turn into Beta or RC phase in about 3 days if there's no critical issues. +- [ ] In this step, the main features are completed. No more major feature will be merged after the first Alpha pre-release. +- [ ] Make sure that the features in the releasing process issue are completed. +- [ ] Use git tag to create a new release tag `major.minor.patch-alpha.version`. And push this tag to GitHub. +- [ ] Wait for the CI builds and pushes the release binaries and release notes to the GitHub release page. +- [ ] Check the `Pre-release` checkbox and publish the pre-release. +- [ ] This step will automatically close and turn into Beta or RC phase in about 3 days if there's no critical issues. ## Create the Beta Pre-Release -- [ ] This step is for the issue fixing if needed. No more feature will be accepted. -- [ ] Make sure that all the features in the releasing process issue are completed. -- [ ] Use git tag to create a new release tag `major.minor.patch-beta.version`. And push this tag to GitHub. -- [ ] Wait for the CI builds and pushes the release binaries and release notes to the GitHub release page. -- [ ] Check the `Pre-release` checkbox and publish the pre-release. -- [ ] This step will automatically close and turn into RC phase in about 3 days if there's no critical issues. +- [ ] This step is for the issue fixing if needed. No more feature will be accepted. +- [ ] Make sure that all the features in the releasing process issue are completed. +- [ ] Use git tag to create a new release tag `major.minor.patch-beta.version`. And push this tag to GitHub. +- [ ] Wait for the CI builds and pushes the release binaries and release notes to the GitHub release page. +- [ ] Check the `Pre-release` checkbox and publish the pre-release. +- [ ] This step will automatically close and turn into RC phase in about 3 days if there's no critical issues. ## Create the RC Pre-Release -- [ ] In this step, the issue fixing is finished. The `RC` pre-releases are for the installation, bindings, and packages testing. -- [ ] Make sure that all the issues in the releasing process issue are completed. -- [ ] Update `WASMEDGE_CAPI_VERSION` in `CMakeLists.txt`. -- [ ] Update `wasmedge_version` in `docs/.env`. -- [ ] Use git tag to create a new release tag `major.minor.patch-rc.version`. And push this tag to GitHub. -- [ ] Wait for the CI builds and pushes the release binaries and release notes to the GitHub release page. -- [ ] Check the `Pre-release` checkbox and publish the pre-release. -- [ ] This step will automatically close and announce the official release in about 3 days if there's no critical issues. +- [ ] In this step, the issue fixing is finished. The `RC` pre-releases are for the installation, bindings, and packages testing. +- [ ] Make sure that all the issues in the releasing process issue are completed. +- [ ] Update `WASMEDGE_CAPI_VERSION` in `CMakeLists.txt`. +- [ ] Update `wasmedge_version` in `docs/.env`. +- [ ] Use git tag to create a new release tag `major.minor.patch-rc.version`. And push this tag to GitHub. +- [ ] Wait for the CI builds and pushes the release binaries and release notes to the GitHub release page. +- [ ] Check the `Pre-release` checkbox and publish the pre-release. +- [ ] This step will automatically close and announce the official release in about 3 days if there's no critical issues. ## Create the Official Release -- [ ] Make sure the `Changelog.md` and `.CurrentChangelog.md` have the correct version number and the release date. -- [ ] Use git tag to create a new release tag `major.minor.patch`. And push this tag to GitHub. -- [ ] Wait for the CI builds and push the release binaries and release notes to the GitHub release page. -- [ ] Publish the release. -- [ ] Close the releasing process issue and the GitHub project. +- [ ] Make sure the `Changelog.md` and `.CurrentChangelog.md` have the correct version number and the release date. +- [ ] Use git tag to create a new release tag `major.minor.patch`. And push this tag to GitHub. +- [ ] Wait for the CI builds and push the release binaries and release notes to the GitHub release page. +- [ ] Publish the release. +- [ ] Close the releasing process issue and the GitHub project. ## Update the Extensions The following projects will be updated with the `Alpha`, `Beta`, and `RC` pre-releases and the official release: -- [ ] [WasmEdge-Image](https://github.com/second-state/WasmEdge-image) -- [ ] [WasmEdge-TensorFlow-Deps](https://github.com/second-state/WasmEdge-tensorflow-deps) -- [ ] [WasmEdge-TensorFlow](https://github.com/second-state/WasmEdge-tensorflow) -- [ ] [WasmEdge-TensorFlow-Tools](https://github.com/second-state/WasmEdge-tensorflow-tools) -- [ ] [WasmEdge-Go SDK](https://github.com/second-state/WasmEdge-go) -- [ ] [WasmEdge-core NAPI package](https://github.com/second-state/wasmedge-core) -- [ ] [WasmEdge-extensions NAPI package](https://github.com/second-state/wasmedge-extensions) +- [ ] [WasmEdge-Image](https://github.com/second-state/WasmEdge-image) +- [ ] [WasmEdge-TensorFlow-Deps](https://github.com/second-state/WasmEdge-tensorflow-deps) +- [ ] [WasmEdge-TensorFlow](https://github.com/second-state/WasmEdge-tensorflow) +- [ ] [WasmEdge-TensorFlow-Tools](https://github.com/second-state/WasmEdge-tensorflow-tools) +- [ ] [WasmEdge-Go SDK](https://github.com/second-state/WasmEdge-go) +- [ ] [WasmEdge-core NAPI package](https://github.com/second-state/wasmedge-core) +- [ ] [WasmEdge-extensions NAPI package](https://github.com/second-state/wasmedge-extensions) diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/_category_.json index c7ebe24d..c1d7a28b 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/_category_.json @@ -1,8 +1,8 @@ { - "label": "Build WasmEdge from source", - "position": 2, - "link": { - "type": "generated-index", - "description": "we will learn how to the WasmEdge Plugin System." - } + "label": "Build WasmEdge from source", + "position": 2, + "link": { + "type": "generated-index", + "description": "we will learn how to the WasmEdge Plugin System." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/build_from_src.md b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/build_from_src.md index 7b51d92b..20e4c355 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/build_from_src.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/build_from_src.md @@ -6,15 +6,15 @@ sidebar_position: 1 Please follow this guide to build and test WasmEdge from the source code. -- [Linux](../source/os/linux.md) -- [MacOS](../source/os/macos.md) -- [Windows](../source/os/windows.md) -- [Android](../../category/build-and-run-wasmedge-on-android) -- [OpenWrt](../source/os/openwrt.md) -- [RISC-V](../source/os/riscv64.md) -- [OpenHarmony](../source/os/openharmony.md) -- [seL4](../source/os/sel4) -- [Raspberry Pi](../source/os/raspberrypi.md) +- [Linux](../source/os/linux.md) +- [MacOS](../source/os/macos.md) +- [Windows](../source/os/windows.md) +- [Android](../../category/build-and-run-wasmedge-on-android) +- [OpenWrt](../source/os/openwrt.md) +- [RISC-V](../source/os/riscv64.md) +- [OpenHarmony](../source/os/openharmony.md) +- [seL4](../source/os/sel4) +- [Raspberry Pi](../source/os/raspberrypi.md) > If you just want the latest builds from the `HEAD` of the `master` branch, and do not want to build it yourself, you can download the release package directly from our Github Action's CI artifact. [Here is an example](https://github.com/WasmEdge/WasmEdge/actions/runs/1521549504#artifacts). @@ -23,18 +23,18 @@ Please follow this guide to build and test WasmEdge from the source code. WasmEdge provides various tools for enabling different runtime environments for optimal performance. You can find that there are several wasmedge related tools: 1. `wasmedge` is the general wasm runtime. - - `wasmedge` executes a `WASM` file in the interpreter mode or a compiled `WASM` file in the ahead-of-time compilation mode. - - To disable building all tools, you can set the CMake option `WASMEDGE_BUILD_TOOLS` to `OFF`. + - `wasmedge` executes a `WASM` file in the interpreter mode or a compiled `WASM` file in the ahead-of-time compilation mode. + - To disable building all tools, you can set the CMake option `WASMEDGE_BUILD_TOOLS` to `OFF`. 2. `wasmedgec` is the ahead-of-time `WASM` compiler. - - `wasmedgec` compiles a general `WASM` file into a compiled `WASM` file. - - To disable building the ahead-of-time compiler only, you can set the CMake option `WASMEDGE_BUILD_AOT_RUNTIME` to `OFF`. + - `wasmedgec` compiles a general `WASM` file into a compiled `WASM` file. + - To disable building the ahead-of-time compiler only, you can set the CMake option `WASMEDGE_BUILD_AOT_RUNTIME` to `OFF`. 3. `libwasmedge.so` is the WasmEdge C API shared library. (`libwasmedge.dylib` on MacOS and `wasmedge.dll` on Windows) - - `libwasmedge.so`, `libwasmedge.dylib`, or `wasmedge.dll` provides the C API for the ahead-of-time compiler and the WASM runtime. - - The APIs related to the ahead-of-time compiler will always fail if the CMake option `WASMEDGE_BUILD_AOT_RUNTIME` is set as `OFF`. - - To disable building just the shared library, you can set the CMake option `WASMEDGE_BUILD_SHARED_LIB` to `OFF`. + - `libwasmedge.so`, `libwasmedge.dylib`, or `wasmedge.dll` provides the C API for the ahead-of-time compiler and the WASM runtime. + - The APIs related to the ahead-of-time compiler will always fail if the CMake option `WASMEDGE_BUILD_AOT_RUNTIME` is set as `OFF`. + - To disable building just the shared library, you can set the CMake option `WASMEDGE_BUILD_SHARED_LIB` to `OFF`. 4. `ssvm-qitc` is for AI applications and supports the ONNC runtime for AI models in the ONNX format. - - If you want to try `ssvm-qitc`, please refer to [ONNC-Wasm](https://github.com/ONNC/onnc-wasm) project to set up the working environment and tryout several examples. - - And here is our [tutorial for ONNC-Wasm project(YouTube Video)](https://www.youtube.com/watch?v=cbiPuHMS-iQ). + - If you want to try `ssvm-qitc`, please refer to [ONNC-Wasm](https://github.com/ONNC/onnc-wasm) project to set up the working environment and tryout several examples. + - And here is our [tutorial for ONNC-Wasm project(YouTube Video)](https://www.youtube.com/watch?v=cbiPuHMS-iQ). ## CMake Building Options @@ -43,24 +43,24 @@ Developers can set the CMake options to customize the WasmEdge building. 1. `WASMEDGE_BUILD_TESTS`: build the WasmEdge tests. Default is `OFF`. 2. `WASMEDGE_BUILD_AOT_RUNTIME`: build with the Ahead-of-Time compiler supporting. Default is `ON`. 3. `WASMEDGE_BUILD_SHARED_LIB`: build the WasmEdge shared library (`libwasmedge.so`, `libwasmedge.dylib`, or `wasmedge.dll`). Default is `ON`. - - By default, the WasmEdge shared library will link to the LLVM shared library. + - By default, the WasmEdge shared library will link to the LLVM shared library. 4. `WASMEDGE_BUILD_STATIC_LIB`: build the WasmEdge static library (`libwasmedge.a`, Linux and MacOS platforms, experimental). Default is `OFF`. - - If this option is set as `ON`, the option `WASMEDGE_FORCE_DISABLE_LTO` will forcefully be set as `ON`. - - If this option is set as `ON`, the `libz` and `libtinfo` on Linux platforms will be statically linked. - - For linking with `libwasmedge.a`, developers should also add the `-ldl`, `-pthread`, `-lm`, and `-lstdc++` linker options on both Linux and MacOS platforms, and `-lrt` on Linux platforms. + - If this option is set as `ON`, the option `WASMEDGE_FORCE_DISABLE_LTO` will forcefully be set as `ON`. + - If this option is set as `ON`, the `libz` and `libtinfo` on Linux platforms will be statically linked. + - For linking with `libwasmedge.a`, developers should also add the `-ldl`, `-pthread`, `-lm`, and `-lstdc++` linker options on both Linux and MacOS platforms, and `-lrt` on Linux platforms. 5. `WASMEDGE_BUILD_TOOLS`: build the `wasmedge` and `wasmedgec` tools. Default is `ON`. - - The `wasmedge` and `wasmedgec` tools will link to the WasmEdge shared library by default. - - If this option is set as `ON` and `WASMEDGE_BUILD_AOT_RUNTIME` is set as `OFF`, the `wasmedgec` tool for the AOT compiler will not be built. - - If this option is set as `ON` but the option `WASMEDGE_LINK_TOOLS_STATIC` is set as `OFF`, the option `WASMEDGE_BUILD_SHARED_LIB` will forcefully be set as `ON`. - - If this option and the option `WASMEDGE_LINK_TOOLS_STATIC` are both set as `ON`, the `WASMEDGE_LINK_LLVM_STATIC` and `WASMEDGE_BUILD_STATIC_LIB` will both be set as `ON`, and the `wasmedge` and `wasmedgec` tools will link to the WasmEdge static library instead. In this case, the plugins will not work in tools. + - The `wasmedge` and `wasmedgec` tools will link to the WasmEdge shared library by default. + - If this option is set as `ON` and `WASMEDGE_BUILD_AOT_RUNTIME` is set as `OFF`, the `wasmedgec` tool for the AOT compiler will not be built. + - If this option is set as `ON` but the option `WASMEDGE_LINK_TOOLS_STATIC` is set as `OFF`, the option `WASMEDGE_BUILD_SHARED_LIB` will forcefully be set as `ON`. + - If this option and the option `WASMEDGE_LINK_TOOLS_STATIC` are both set as `ON`, the `WASMEDGE_LINK_LLVM_STATIC` and `WASMEDGE_BUILD_STATIC_LIB` will both be set as `ON`, and the `wasmedge` and `wasmedgec` tools will link to the WasmEdge static library instead. In this case, the plugins will not work in tools. 6. `WASMEDGE_BUILD_PLUGINS`: build the WasmEdge plugins. Default is `ON`. 7. `WASMEDGE_BUILD_EXAMPLE`: build the WasmEdge examples. Default is `OFF`. 8. `WASMEDGE_PLUGIN_WASI_NN_BACKEND`: build the WasmEdge WASI-NN plugin (Linux platforms only). Default is empty. - - This option is useless if the option `WASMEDGE_BUILD_PLUGINS` is set as `OFF`. - - To build the WASI-NN plugin with backend, please use `-DWASMEDGE_PLUGIN_WASI_NN_BACKEND=`. - - To build the WASI-NN plugin with multiple backends, please use `-DWASMEDGE_PLUGIN_WASI_NN_BACKEND=,`. + - This option is useless if the option `WASMEDGE_BUILD_PLUGINS` is set as `OFF`. + - To build the WASI-NN plugin with backend, please use `-DWASMEDGE_PLUGIN_WASI_NN_BACKEND=`. + - To build the WASI-NN plugin with multiple backends, please use `-DWASMEDGE_PLUGIN_WASI_NN_BACKEND=,`. 9. `WASMEDGE_PLUGIN_WASI_CRYPTO`: build the WasmEdge WASI-Crypto plugin (Linux platforms only). Default is `OFF`. - - This option is useless if the option `WASMEDGE_BUILD_PLUGINS` is set as `OFF`. + - This option is useless if the option `WASMEDGE_BUILD_PLUGINS` is set as `OFF`. 10. `WASMEDGE_FORCE_DISABLE_LTO`: forcefully turn off the link time optimization. Default is `OFF`. 11. `WASMEDGE_LINK_LLVM_STATIC`: link the LLVM and lld libraries statically (Linux and MacOS platforms only, experimental). Default is `OFF`. 12. `WASMEDGE_LINK_TOOLS_STATIC`: make the `wasmedge` and `wasmedgec` tools to link the WasmEdge library and LLVM libraries statically (Linux and MacOS platforms only, experimental). Default is `OFF`. @@ -70,9 +70,9 @@ Developers can set the CMake options to customize the WasmEdge building. Developers can follow the steps to build WasmEdge with plug-ins from source. -- [WASI-NN (OpenVINO and PyTorch backends)](../source/plugin/was_nn.md) -- [WASI-Crypto](../source/plugin/wasi_crypto.md) -- [WasmEdge-HttpsReq](../source/plugin/httpsreq.md) +- [WASI-NN (OpenVINO and PyTorch backends)](../source/plugin/was_nn.md) +- [WASI-Crypto](../source/plugin/wasi_crypto.md) +- [WasmEdge-HttpsReq](../source/plugin/httpsreq.md) ## Run Tests diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/_category_.json index 179d75c2..9a6f5295 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/_category_.json @@ -1,8 +1,8 @@ { - "label": "Build WasmEdge", - "position": 3, - "link": { - "type": "generated-index", - "description": "we will learn how to build WasmEdge from source on different OSes." - } + "label": "Build WasmEdge", + "position": 3, + "link": { + "type": "generated-index", + "description": "we will learn how to build WasmEdge from source on different OSes." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/android/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/android/_category_.json index 4ba8cccb..9859abb6 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/android/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/android/_category_.json @@ -1,8 +1,8 @@ { - "label": "Build and Run WasmEdge on Android", - "position": 4, - "link": { - "type": "generated-index", - "description": "we will learn how to build and run WasmEdge on Android." - } + "label": "Build and Run WasmEdge on Android", + "position": 4, + "link": { + "type": "generated-index", + "description": "we will learn how to build and run WasmEdge on Android." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/android/build.md b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/android/build.md index 2cb6c6b4..b9d6de86 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/android/build.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/android/build.md @@ -6,16 +6,16 @@ sidebar_position: 1 The WasmEdge Runtime releases come with pre-built binaries for the Android OS. Why WasmEdge on Android? -- Native speed & sandbox safety for Android apps -- Support multiple dev languages — eg C, [Rust](/category/develop-wasm-apps-in-rust), [Go](../../../../category/develop-wasm-apps-in-go) & [JS](../../../../category/develop-wasm-apps-in-javascript) -- [Embed 3rd party functions](../../../../embed/overview.md) in your android app -- [Kubernetes managed](../../../../category/deploy-wasmedge-apps-in-kubernetes) android apps +- Native speed & sandbox safety for Android apps +- Support multiple dev languages — eg C, [Rust](/category/develop-wasm-apps-in-rust), [Go](../../../../category/develop-wasm-apps-in-go) & [JS](../../../../category/develop-wasm-apps-in-javascript) +- [Embed 3rd party functions](../../../../embed/overview.md) in your android app +- [Kubernetes managed](../../../../category/deploy-wasmedge-apps-in-kubernetes) android apps However, the WasmEdge installer does not support Android. The user must download the release files to a computer, and then use the `adb` tool to transfer the files to an Android device or simulator. We will show you how to do that. -- [WasmEdge CLI tools for Android](./cli.md) -- [Call WasmEdge functions from an NDK native app](./ndk.md) -- [Call WasmEdge functions from an Android APK app](./apk.md) +- [WasmEdge CLI tools for Android](./cli.md) +- [Call WasmEdge functions from an NDK native app](./ndk.md) +- [Call WasmEdge functions from an Android APK app](./apk.md) ## Build from source for Android platforms @@ -27,11 +27,11 @@ Please follow this guide to build and test WasmEdge from source code with Androi We recommend developers to [use our Docker images](../linux.md##prepare-the-environment) and follow the steps to prepare the building environment. -- Download and extract the [Android NDK 23b](https://developer.android.com/ndk/downloads). -- Check the cmake for [CMake 3.21](https://cmake.org/download/) or greater version. -- Download and install the [ADB platform tools](https://developer.android.com/studio/releases/platform-tools). - - If you use the debian or ubuntu Linux distributions, you can install the ADB platform tools via `apt`. -- An Android device which is [enabled developer options and USB debugging](https://developer.android.com/studio/debug/dev-options) and with at least Android 6.0 or higher system version. +- Download and extract the [Android NDK 23b](https://developer.android.com/ndk/downloads). +- Check the cmake for [CMake 3.21](https://cmake.org/download/) or greater version. +- Download and install the [ADB platform tools](https://developer.android.com/studio/releases/platform-tools). + - If you use the debian or ubuntu Linux distributions, you can install the ADB platform tools via `apt`. +- An Android device which is [enabled developer options and USB debugging](https://developer.android.com/studio/debug/dev-options) and with at least Android 6.0 or higher system version. ## Build WasmEdge for Android platforms @@ -60,19 +60,19 @@ Run the build script in WasmEdge source code. This script will automatically bui 1. Connect the device by using a USB cable or Wi-Fi. Then you can check the attached devices via the `adb devices` command. - ```bash - $ adb devices - List of devices attached - 0a388e93 device - ``` + ```bash + $ adb devices + List of devices attached + 0a388e93 device + ``` 2. Use the `adb push` command to push the entire `build/tools/wasmedge` folder into the `/data/local/tmp` folder on your Android device. - ```bash - cp -r examples build/tools/wasmedge/examples - cd build - adb push ./tools/wasmedge /data/local/tmp - ``` + ```bash + cp -r examples build/tools/wasmedge/examples + cd build + adb push ./tools/wasmedge /data/local/tmp + ``` ### Run WasmEdge CLI on Android platforms @@ -103,5 +103,5 @@ Hello 1 2 3 ## Notice -- For the Android 10 or greater versions, SELinux will disallow the untrusted applications' `exec()` system call to execute the binaries in `home` or `/data/local/tmp` folder. -- The Android SELinux policy will disallow the untrusted applications to access the `/data/local/tmp` folder. +- For the Android 10 or greater versions, SELinux will disallow the untrusted applications' `exec()` system call to execute the binaries in `home` or `/data/local/tmp` folder. +- The Android SELinux policy will disallow the untrusted applications to access the `/data/local/tmp` folder. diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/linux.md b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/linux.md index ed10f96a..a95e2f23 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/linux.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/linux.md @@ -31,8 +31,8 @@ For the developers who don't want to use docker, they can setup the environment Please check that these dependencies are satisfied. -- LLVM 12.0.0 (>= 10.0.0) -- (Optional) GCC 11.1.0 (>= 9.4.0), install it if you prefer to use GCC toolchain. +- LLVM 12.0.0 (>= 10.0.0) +- (Optional) GCC 11.1.0 (>= 9.4.0), install it if you prefer to use GCC toolchain. #### For Ubuntu 22.04 diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/macos.md b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/macos.md index 4a324328..d1ea98c5 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/macos.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/macos.md @@ -6,13 +6,13 @@ sidebar_position: 2 Currently, WasmEdge project on MacOS supports both Intel and M1 models. However, we only test and develop on `Catalina`, `Big Sur`, and `Monterey`. -- Model: - - Intel - - M1 -- Operating System - - Monterey - - Big Sur - - Catalina +- Model: + - Intel + - M1 +- Operating System + - Monterey + - Big Sur + - Catalina If you would like to develop WasmEdge on MacOS, please follow this guide to build and test from source code. @@ -27,7 +27,7 @@ cd WasmEdge WasmEdge will try to use the latest LLVM release to create our nightly build. If you want to build from source, you may need to install these dependencies by yourself. -- LLVM 14.0.1 (>= 10.0.0) +- LLVM 14.0.1 (>= 10.0.0) ```bash # Tools and libraries @@ -63,6 +63,6 @@ DYLD_LIBRARY_PATH=$(pwd)/lib/api ctest The following tests can not pass on macos, we are investigating these issues: -- wasmedgeWasiSocketTests +- wasmedgeWasiSocketTests But we have an open issue working on it. Don't hesitate to leave your feedback for [this issue](https://github.com/WasmEdge/WasmEdge/issues/2438). diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/sel4.md b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/sel4.md index 346762b9..91df66bb 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/sel4.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/sel4.md @@ -23,8 +23,8 @@ This demo is based on the seL4 simulator on Linux. Hardware: -- at least 4GB of RAM -- at least 20GB of disk storage (the wasmedge_sel4 directory will contain over 11 GB of data after the following installation completes) +- at least 4GB of RAM +- at least 20GB of disk storage (the wasmedge_sel4 directory will contain over 11 GB of data after the following installation completes) Software: Ubuntu 20.04 with dev tools packages (ep. Python) installed. We recommend the [GitHub Actions Ubuntu 20.04 VM](https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md) (See a list of [installed apt packages](https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md#installed-apt-packages)). Or, you could use our Docker image (see the [Dockerfile](https://github.com/second-state/wasmedge-seL4/blob/main/docs/Dockerfile.sel4_build)). diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/windows.md b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/windows.md index 10e82486..4bf7423a 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/windows.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/os/windows.md @@ -17,9 +17,9 @@ cd WasmEdge WasmEdge requires LLVM 13 and you may need to install these following dependencies by yourself. -- [Chocolatey](https://chocolatey.org/install), we use it to install `cmake`, `ninja`, and `vswhere`. -- [Windows SDK 19041](https://blogs.windows.com/windowsdeveloper/2020/05/12/start-developing-on-windows-10-version-2004-today/) -- LLVM 13.0.1, you can find the pre-built files [here](https://github.com/WasmEdge/llvm-windows/releases) or you can just follow the `instructions/commands` to download automatically. +- [Chocolatey](https://chocolatey.org/install), we use it to install `cmake`, `ninja`, and `vswhere`. +- [Windows SDK 19041](https://blogs.windows.com/windowsdeveloper/2020/05/12/start-developing-on-windows-10-version-2004-today/) +- LLVM 13.0.1, you can find the pre-built files [here](https://github.com/WasmEdge/llvm-windows/releases) or you can just follow the `instructions/commands` to download automatically. ```powershell # Install the required tools diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/plugin/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/plugin/_category_.json index b1220477..a1ee81d9 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/plugin/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/contribute/source/plugin/_category_.json @@ -1,8 +1,8 @@ { - "label": "WasmEdge Plugin", - "position": 4, - "link": { - "type": "generated-index", - "description": "In this chapter, we will learn how to build WasmEdge Plugins from source" - } + "label": "WasmEdge Plugin", + "position": 4, + "link": { + "type": "generated-index", + "description": "In this chapter, we will learn how to build WasmEdge Plugins from source" + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/build-and-run/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/develop/build-and-run/_category_.json index 1d363972..e4898c85 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/build-and-run/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/build-and-run/_category_.json @@ -1,8 +1,8 @@ { - "label": "Building and running WasmEdge apps", - "position": 3, - "link": { - "type": "generated-index", - "description": "In this chapter, we will discuss WasmEdge CLIs and how to leverage Docker + Wasm to run build, share, and run your Wasm apps." - } + "label": "Building and running WasmEdge apps", + "position": 3, + "link": { + "type": "generated-index", + "description": "In this chapter, we will discuss WasmEdge CLIs and how to leverage Docker + Wasm to run build, share, and run your Wasm apps." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/build-and-run/aot.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/build-and-run/aot.md index ae994e2e..6cb6ab58 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/build-and-run/aot.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/build-and-run/aot.md @@ -116,30 +116,30 @@ The options of the `wasmedgec` CLI tool are as follows. 2. `-h|--help`: Show the help messages. Will ignore other arguments below. 3. (Optional) `--dump`: Dump the LLVM IR to `wasm.ll` and `wasm-opt.ll`. 4. (Optional) `--interruptible`: Generate the binary which supports interruptible execution. - - By default, the AOT-compiled WASM not supports [interruptions in asynchronous executions]. + - By default, the AOT-compiled WASM not supports [interruptions in asynchronous executions]. 5. (Optional) Statistics information: - - By default, the AOT-compiled WASM not supports all statistics even if the options are turned on when running the `wasmedge` tool. - - Use `--enable-time-measuring` to generate code for enabling the statistics of time measuring in execution. - - Use `--enable-gas-measuring` to generate code for enabling the statistics of gas measuring in execution. - - Use `--enable-instruction-count` to generate code for enabling the statistics of counting WebAssembly instructions. - - Or use `--enable-all-statistics` to generate code for enabling all of the statistics. + - By default, the AOT-compiled WASM not supports all statistics even if the options are turned on when running the `wasmedge` tool. + - Use `--enable-time-measuring` to generate code for enabling the statistics of time measuring in execution. + - Use `--enable-gas-measuring` to generate code for enabling the statistics of gas measuring in execution. + - Use `--enable-instruction-count` to generate code for enabling the statistics of counting WebAssembly instructions. + - Or use `--enable-all-statistics` to generate code for enabling all of the statistics. 6. (Optional) `--generic-binary`: Generate the generic binary of the current host CPU architecture. 7. (Optional) WebAssembly proposals: - - Use `--disable-import-export-mut-globals` to disable the [Import/Export of Mutable Globals](https://github.com/WebAssembly/mutable-global) proposal (Default `ON`). - - Use `--disable-non-trap-float-to-int` to disable the [Non-Trapping Float-to-Int Conversions](https://github.com/WebAssembly/nontrapping-float-to-int-conversions) proposal (Default `ON`). - - Use `--disable-sign-extension-operators` to disable the [Sign-Extension Operators](https://github.com/WebAssembly/sign-extension-ops) proposal (Default `ON`). - - Use `--disable-multi-value` to disable the [Multi-value](https://github.com/WebAssembly/multi-value) proposal (Default `ON`). - - Use `--disable-bulk-memory` to disable the [Bulk Memory Operations](https://github.com/WebAssembly/bulk-memory-operations) proposal (Default `ON`). - - Use `--disable-reference-types` to disable the [Reference Types](https://github.com/WebAssembly/reference-types) proposal (Default `ON`). - - Use `--disable-simd` to disable the [Fixed-width SIMD](https://github.com/webassembly/simd) proposal (Default `ON`). - - Use `--enable-multi-memory` to enable the [Multiple Memories](https://github.com/WebAssembly/multi-memory) proposal (Default `OFF`). - - Use `--enable-tail-call` to enable the [Tail call](https://github.com/WebAssembly/tail-call) proposal (Default `OFF`). - - Use `--enable-extended-const` to enable the [Extended Constant Expressions](https://github.com/WebAssembly/extended-const) proposal (Default `OFF`). - - Use `--enable-threads` to enable the [Threads](https://github.com/webassembly/threads) proposal (Default `OFF`). - - Use `--enable-all` to enable ALL proposals above. + - Use `--disable-import-export-mut-globals` to disable the [Import/Export of Mutable Globals](https://github.com/WebAssembly/mutable-global) proposal (Default `ON`). + - Use `--disable-non-trap-float-to-int` to disable the [Non-Trapping Float-to-Int Conversions](https://github.com/WebAssembly/nontrapping-float-to-int-conversions) proposal (Default `ON`). + - Use `--disable-sign-extension-operators` to disable the [Sign-Extension Operators](https://github.com/WebAssembly/sign-extension-ops) proposal (Default `ON`). + - Use `--disable-multi-value` to disable the [Multi-value](https://github.com/WebAssembly/multi-value) proposal (Default `ON`). + - Use `--disable-bulk-memory` to disable the [Bulk Memory Operations](https://github.com/WebAssembly/bulk-memory-operations) proposal (Default `ON`). + - Use `--disable-reference-types` to disable the [Reference Types](https://github.com/WebAssembly/reference-types) proposal (Default `ON`). + - Use `--disable-simd` to disable the [Fixed-width SIMD](https://github.com/webassembly/simd) proposal (Default `ON`). + - Use `--enable-multi-memory` to enable the [Multiple Memories](https://github.com/WebAssembly/multi-memory) proposal (Default `OFF`). + - Use `--enable-tail-call` to enable the [Tail call](https://github.com/WebAssembly/tail-call) proposal (Default `OFF`). + - Use `--enable-extended-const` to enable the [Extended Constant Expressions](https://github.com/WebAssembly/extended-const) proposal (Default `OFF`). + - Use `--enable-threads` to enable the [Threads](https://github.com/webassembly/threads) proposal (Default `OFF`). + - Use `--enable-all` to enable ALL proposals above. 8. (Optional) `--optimize`: Select the LLVM optimization level. - - Use `--optimize LEVEL` to set the optimization level. The `LEVEL` should be one of `0`, `1`, `2`, `3`, `s`, or `z`. - - The default value will be `2`, which means `O2`. + - Use `--optimize LEVEL` to set the optimization level. The `LEVEL` should be one of `0`, `1`, `2`, `3`, `s`, or `z`. + - The default value will be `2`, which means `O2`. 9. Input WASM file (`/path/to/wasm/file`). 10. Output path (`/path/to/output/file`). - By default, the `wasmedgec` tool will output the universal Wasm format, which embeds a native code section into the Wasm file. diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/build-and-run/cli.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/build-and-run/cli.md index 5ed0f650..f8a8aa18 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/build-and-run/cli.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/build-and-run/cli.md @@ -8,8 +8,8 @@ After intalling WasmEdge, you can use the `wasmedge` CLI to execute a compiled w The `wasmedge` binary is a command line interface (CLI) program that runs WebAssembly programs. -- If the WebAssembly program contains a `main()` function, `wasmedge` would execute it as a standalone program in the command mode. -- If the WebAssembly program contains one or more exported public functions, `wasmedge` could invoke individual functions in the reactor mode. +- If the WebAssembly program contains a `main()` function, `wasmedge` would execute it as a standalone program in the command mode. +- If the WebAssembly program contains one or more exported public functions, `wasmedge` could invoke individual functions in the reactor mode. By default, the `wasmedge` will execute WebAssembly programs in interpreter mode, and [execute the AOT-compiled `.so`, `.dylib`, `.dll`, or `.wasm` (universal output format) in AOT mode](aot.md). If you want to accelerate the WASM execution, we recommend to [compile the WebAssembly with the AOT compiler](aot.md) first. @@ -30,12 +30,12 @@ USAGE If users install the WasmEdge from the install script with the option `-e tf,image`, the WasmEdge CLI tools with TensorFlow and TensorFlow-Lite extensions will be installed. -- `wasmedge-tensorflow` CLI tool - - The `wasmedge` tool with TensorFlow, TensorFlow-Lite, and `wasmedge-image` extensions. - - Only on `x86_64` and `aarch64` Linux platforms and `x86_64` MacOS. -- `wasmedge-tensorflow-lite` CLI tool - - The `wasmedge` tool with TensorFlow-Lite, and `wasmedge-image` extensions. - - Only on `x86_64` and `aarch64` Linux platforms, Android, and `x86_64` MacOS. +- `wasmedge-tensorflow` CLI tool + - The `wasmedge` tool with TensorFlow, TensorFlow-Lite, and `wasmedge-image` extensions. + - Only on `x86_64` and `aarch64` Linux platforms and `x86_64` MacOS. +- `wasmedge-tensorflow-lite` CLI tool + - The `wasmedge` tool with TensorFlow-Lite, and `wasmedge-image` extensions. + - Only on `x86_64` and `aarch64` Linux platforms, Android, and `x86_64` MacOS. The `wasmedge` CLI tool will execute the WebAssembly in ahead-of-time(AOT) mode and interpreter mode. It depends on if you use `wasmedgec` to AoT compile the wasm file. @@ -46,35 +46,35 @@ The options of the `wasmedge` CLI tool are as follows. 1. `-v|--version`: Show the version information. Will ignore other arguments below. 2. `-h|--help`: Show the help messages. Will ignore other arguments below. 3. (Optional) `--reactor`: Enable the reactor mode. - - In the reactor mode, `wasmedge` runs a specified function exported by the WebAssembly program. - - WasmEdge will execute the function which name should be given in `ARG[0]`. - - If there's exported function which names `_initialize`, the function will be executed with the empty parameter at first. + - In the reactor mode, `wasmedge` runs a specified function exported by the WebAssembly program. + - WasmEdge will execute the function which name should be given in `ARG[0]`. + - If there's exported function which names `_initialize`, the function will be executed with the empty parameter at first. 4. (Optional) `--dir`: Bind directories into WASI virtual filesystem. - - Use `--dir guest_path:host_path` to bind the host path into the guest path in WASI virtual system. + - Use `--dir guest_path:host_path` to bind the host path into the guest path in WASI virtual system. 5. (Optional) `--env`: Assign the environment variables in WASI. - - Use `--env ENV_NAME=VALUE` to assign the environment variable. + - Use `--env ENV_NAME=VALUE` to assign the environment variable. 6. (Optional) Statistics information: - - Use `--enable-time-measuring` to show the execution time. - - Use `--enable-gas-measuring` to show the amount of used gas. - - Use `--enable-instruction-count` to display the number of executed instructions. - - Or use `--enable-all-statistics` to enable all of the statistics options. + - Use `--enable-time-measuring` to show the execution time. + - Use `--enable-gas-measuring` to show the amount of used gas. + - Use `--enable-instruction-count` to display the number of executed instructions. + - Or use `--enable-all-statistics` to enable all of the statistics options. 7. (Optional) Resource limitations: - - Use `--time-limit MILLISECOND_TIME` to limit the execution time. Default value is `0` as no limitation. - - Use `--gas-limit GAS_LIMIT` to limit the execution cost. - - Use `--memory-page-limit PAGE_COUNT` to set the limitation of pages(as size of 64 KiB) in every memory instance. + - Use `--time-limit MILLISECOND_TIME` to limit the execution time. Default value is `0` as no limitation. + - Use `--gas-limit GAS_LIMIT` to limit the execution cost. + - Use `--memory-page-limit PAGE_COUNT` to set the limitation of pages(as size of 64 KiB) in every memory instance. 8. (Optional) WebAssembly proposals: - - Use `--disable-import-export-mut-globals` to disable the [Import/Export of Mutable Globals](https://github.com/WebAssembly/mutable-global) proposal (Default `ON`). - - Use `--disable-non-trap-float-to-int` to disable the [Non-Trapping Float-to-Int Conversions](https://github.com/WebAssembly/nontrapping-float-to-int-conversions) proposal (Default `ON`). - - Use `--disable-sign-extension-operators` to disable the [Sign-Extension Operators](https://github.com/WebAssembly/sign-extension-ops) proposal (Default `ON`). - - Use `--disable-multi-value` to disable the [Multi-value](https://github.com/WebAssembly/multi-value) proposal (Default `ON`). - - Use `--disable-bulk-memory` to disable the [Bulk Memory Operations](https://github.com/WebAssembly/bulk-memory-operations) proposal (Default `ON`). - - Use `--disable-reference-types` to disable the [Reference Types](https://github.com/WebAssembly/reference-types) proposal (Default `ON`). - - Use `--disable-simd` to disable the [Fixed-width SIMD](https://github.com/webassembly/simd) proposal (Default `ON`). - - Use `--enable-multi-memory` to enable the [Multiple Memories](https://github.com/WebAssembly/multi-memory) proposal (Default `OFF`). - - Use `--enable-tail-call` to enable the [Tail call](https://github.com/WebAssembly/tail-call) proposal (Default `OFF`). - - Use `--enable-extended-const` to enable the [Extended Constant Expressions](https://github.com/WebAssembly/extended-const) proposal (Default `OFF`). - - Use `--enable-threads` to enable the [Threads](https://github.com/webassembly/threads) proposal (Default `OFF`). - - Use `--enable-all` to enable ALL proposals above. + - Use `--disable-import-export-mut-globals` to disable the [Import/Export of Mutable Globals](https://github.com/WebAssembly/mutable-global) proposal (Default `ON`). + - Use `--disable-non-trap-float-to-int` to disable the [Non-Trapping Float-to-Int Conversions](https://github.com/WebAssembly/nontrapping-float-to-int-conversions) proposal (Default `ON`). + - Use `--disable-sign-extension-operators` to disable the [Sign-Extension Operators](https://github.com/WebAssembly/sign-extension-ops) proposal (Default `ON`). + - Use `--disable-multi-value` to disable the [Multi-value](https://github.com/WebAssembly/multi-value) proposal (Default `ON`). + - Use `--disable-bulk-memory` to disable the [Bulk Memory Operations](https://github.com/WebAssembly/bulk-memory-operations) proposal (Default `ON`). + - Use `--disable-reference-types` to disable the [Reference Types](https://github.com/WebAssembly/reference-types) proposal (Default `ON`). + - Use `--disable-simd` to disable the [Fixed-width SIMD](https://github.com/webassembly/simd) proposal (Default `ON`). + - Use `--enable-multi-memory` to enable the [Multiple Memories](https://github.com/WebAssembly/multi-memory) proposal (Default `OFF`). + - Use `--enable-tail-call` to enable the [Tail call](https://github.com/WebAssembly/tail-call) proposal (Default `OFF`). + - Use `--enable-extended-const` to enable the [Extended Constant Expressions](https://github.com/WebAssembly/extended-const) proposal (Default `OFF`). + - Use `--enable-threads` to enable the [Threads](https://github.com/webassembly/threads) proposal (Default `OFF`). + - Use `--enable-all` to enable ALL proposals above. 9. WASM file (`/path/to/wasm/file`). 10. (Optional) `ARG` command line arguments array. - In reactor mode, the first argument will be the function name, and the arguments after `ARG[0]` will be parameters of wasm function `ARG[0]`. @@ -213,8 +213,8 @@ The output will be: It is possible to use WasmEdge as a high-performance, secure, extensible, easy to deploy, and [Kubernetes-compliant](https://github.com/second-state/wasmedge-containers-examples) JavaScript runtime. There is no need to build a JavaScript app. You just need to download the WasmEdge JavaScript runtime for Node.js. -- [Download the wasmedge_quickjs.wasm file here](https://github.com/second-state/wasmedge-quickjs/releases/download/v0.5.0-alpha/wasmedge_quickjs.wasm) -- [Download the modules.zip file here](https://github.com/second-state/wasmedge-quickjs/releases/download/v0.5.0-alpha/modules.zip) and then unzip it into the current folder as `./modules/` +- [Download the wasmedge_quickjs.wasm file here](https://github.com/second-state/wasmedge-quickjs/releases/download/v0.5.0-alpha/wasmedge_quickjs.wasm) +- [Download the modules.zip file here](https://github.com/second-state/wasmedge-quickjs/releases/download/v0.5.0-alpha/modules.zip) and then unzip it into the current folder as `./modules/` ```bash wget https://github.com/second-state/wasmedge-quickjs/releases/download/v0.5.0-alpha/wasmedge_quickjs.wasm @@ -254,17 +254,17 @@ The Docker images in this section are mostly used for development purposes. They The `wasmedge/slim:{version}` Docker images provide a slim WasmEdge images built with [DockerSlim](https://dockersl.im) every releases. -- Image `wasmedge/slim-runtime:{version}` includes only WasmEdge runtime with `wasmedge` command. -- Image `wasmedge/slim:{version}` includes the following command line utilities: - - `wasmedge` - - `wasmedgec` -- Image `wasmedge/slim-tf:{version}` includes the following command line utilities: - - `wasmedge` - - `wasmedgec` - - `wasmedge-tensorflow-lite` - - `wasmedge-tensorflow` - - `show-tflite-tensor` -- The working directory of the release docker image is `/app`. +- Image `wasmedge/slim-runtime:{version}` includes only WasmEdge runtime with `wasmedge` command. +- Image `wasmedge/slim:{version}` includes the following command line utilities: + - `wasmedge` + - `wasmedgec` +- Image `wasmedge/slim-tf:{version}` includes the following command line utilities: + - `wasmedge` + - `wasmedgec` + - `wasmedge-tensorflow-lite` + - `wasmedge-tensorflow` + - `show-tflite-tensor` +- The working directory of the release docker image is `/app`. ### Examples diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/build-and-run/docker_wasm.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/build-and-run/docker_wasm.md index 1b346bdf..da1192f6 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/build-and-run/docker_wasm.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/build-and-run/docker_wasm.md @@ -10,9 +10,9 @@ Together with Docker's capability to containerize developer and deployment envir In this guide, we will cover how to: -- [Create and run a Rust program](#create-and-run-a-rust-program) -- [Create and run a node.js server](#create-and-run-a-node-js-server) -- [Create and deploy a database driven microservice in Rust](#create-and-deploy-a-database-driven-microservice-in-rust) +- [Create and run a Rust program](#create-and-run-a-rust-program) +- [Create and run a node.js server](#create-and-run-a-node-js-server) +- [Create and deploy a database driven microservice in Rust](#create-and-deploy-a-database-driven-microservice-in-rust) ## Prerequisite @@ -90,8 +90,8 @@ That's it. To see more Dockerized Rust example apps for WasmEdge, check out the following. -- [Use Rust standard libraries](https://github.com/second-state/rust-examples/tree/main/wasi) -- [Create a HTTP server in hyper and tokio](https://github.com/second-state/rust-examples/tree/main/server) +- [Use Rust standard libraries](https://github.com/second-state/rust-examples/tree/main/wasi) +- [Create a HTTP server in hyper and tokio](https://github.com/second-state/rust-examples/tree/main/server) ## Create and run a node.js server @@ -170,8 +170,8 @@ That's it. ### Further reading -- [Use the fetch() API](https://github.com/second-state/wasmedge-quickjs/blob/main/example_js/wasi_http_fetch.js) -- [Image classification using Tensorflow Lite](https://github.com/second-state/wasmedge-quickjs/tree/main/example_js/tensorflow_lite_demo) +- [Use the fetch() API](https://github.com/second-state/wasmedge-quickjs/blob/main/example_js/wasi_http_fetch.js) +- [Image classification using Tensorflow Lite](https://github.com/second-state/wasmedge-quickjs/tree/main/example_js/tensorflow_lite_demo) ## Create and deploy a database driven microservice in Rust @@ -196,37 +196,37 @@ There is a [docker-compose.yml](https://github.com/second-state/microservice-rus ```yaml services: - client: - image: nginx:alpine - ports: - - 8090:80 - volumes: - - ./client:/usr/share/nginx/html - server: - image: demo-microservice - platform: wasi/wasm - build: - context: . - ports: - - 8080:8080 - environment: - DATABASE_URL: mysql://root:whalehello@db:3306/mysql - RUST_BACKTRACE: full - restart: unless-stopped - runtime: io.containerd.wasmedge.v1 - db: - image: mariadb:10.9 - environment: - MYSQL_ROOT_PASSWORD: whalehello + client: + image: nginx:alpine + ports: + - 8090:80 + volumes: + - ./client:/usr/share/nginx/html + server: + image: demo-microservice + platform: wasi/wasm + build: + context: . + ports: + - 8080:8080 + environment: + DATABASE_URL: mysql://root:whalehello@db:3306/mysql + RUST_BACKTRACE: full + restart: unless-stopped + runtime: io.containerd.wasmedge.v1 + db: + image: mariadb:10.9 + environment: + MYSQL_ROOT_PASSWORD: whalehello ``` -- The `client` container is an Nginx web server - - Linux container with mapped HTTP port and volume for the static HTML/JS files -- The `server` container is a Rust container for the business logic - - The Wasm container is built from [Rust source code](https://github.com/second-state/microservice-rust-mysql/blob/main/src/main.rs) using this [Dockerfile](https://github.com/second-state/microservice-rust-mysql/blob/main/Dockerfile) - - Wasm container with mapped web service port and an environment variable for the database connection string -- The `db` container is a MySQL database - - Linux container with a pre-set database password +- The `client` container is an Nginx web server + - Linux container with mapped HTTP port and volume for the static HTML/JS files +- The `server` container is a Rust container for the business logic + - The Wasm container is built from [Rust source code](https://github.com/second-state/microservice-rust-mysql/blob/main/src/main.rs) using this [Dockerfile](https://github.com/second-state/microservice-rust-mysql/blob/main/Dockerfile) + - Wasm container with mapped web service port and an environment variable for the database connection string +- The `db` container is a MySQL database + - Linux container with a pre-set database password ### Deploy diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/c/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/develop/c/_category_.json index 78a09085..0164f010 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/c/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/c/_category_.json @@ -1,8 +1,8 @@ { - "label": "Develop Wasm Apps in C/C++", - "position": 6, - "link": { - "type": "generated-index", - "description": "In this chapter, we will learn how to create Wasm apps in C/C++." - } + "label": "Develop Wasm Apps in C/C++", + "position": 6, + "link": { + "type": "generated-index", + "description": "In this chapter, we will learn how to create Wasm apps in C/C++." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/_category_.json index 7597f9d6..d197597f 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/_category_.json @@ -1,8 +1,8 @@ { - "label": "Deploy WasmEdge apps in Kubernetes", - "position": 8, - "link": { - "type": "generated-index", - "description": "In this chapter, we will introduce how to depoloy Wasm app using the exisiting container toolings." - } + "label": "Deploy WasmEdge apps in Kubernetes", + "position": 8, + "link": { + "type": "generated-index", + "description": "In this chapter, we will introduce how to depoloy Wasm app using the exisiting container toolings." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/cri-runtime/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/cri-runtime/_category_.json index 5f5618c4..d7375102 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/cri-runtime/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/cri-runtime/_category_.json @@ -1,8 +1,8 @@ { - "label": "High level runtime support", - "position": 6, - "link": { - "type": "generated-index", - "description": "In this chapter, we will introduce integrations between WasmEdge and high level runtimes,like containerd and CRI-O." - } + "label": "High level runtime support", + "position": 6, + "link": { + "type": "generated-index", + "description": "In this chapter, we will introduce integrations between WasmEdge and high level runtimes,like containerd and CRI-O." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/cri-runtime/containerd-crun.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/cri-runtime/containerd-crun.md index 42457aba..9d177001 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/cri-runtime/containerd-crun.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/cri-runtime/containerd-crun.md @@ -8,14 +8,14 @@ sidebar_position: 2 The [GitHub repo](https://github.com/second-state/wasmedge-containers-examples/) contains scripts and Github Actions for running our example apps on containerd. -- Simple WebAssembly example [Quick start](https://github.com/second-state/wasmedge-containers-examples/blob/main/containerd/README.md) | [Github Actions](https://github.com/second-state/wasmedge-containers-examples/blob/main/.github/workflows/containerd.yml) -- HTTP service example [Quick start](https://github.com/second-state/wasmedge-containers-examples/blob/main/containerd/http_server/README.md) | [Github Actions](https://github.com/second-state/wasmedge-containers-examples/blob/main/.github/workflows/containerd-server.yml) +- Simple WebAssembly example [Quick start](https://github.com/second-state/wasmedge-containers-examples/blob/main/containerd/README.md) | [Github Actions](https://github.com/second-state/wasmedge-containers-examples/blob/main/.github/workflows/containerd.yml) +- HTTP service example [Quick start](https://github.com/second-state/wasmedge-containers-examples/blob/main/containerd/http_server/README.md) | [Github Actions](https://github.com/second-state/wasmedge-containers-examples/blob/main/.github/workflows/containerd-server.yml) In the sections below, we will explain the steps in the quick start scripts. -- [Install containerd](#install-containerd) -- [Example 1: Simple WebAssembly](#run-a-simple-webassembly-app) -- [Example 2: HTTP server in WebAssembly](#run-a-http-server-app) +- [Install containerd](#install-containerd) +- [Example 1: Simple WebAssembly](#run-a-simple-webassembly-app) +- [Example 2: HTTP server in WebAssembly](#run-a-http-server-app) ## Install containerd diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/cri-runtime/crio-crun.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/cri-runtime/crio-crun.md index 3a57aed0..3cc6282d 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/cri-runtime/crio-crun.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/cri-runtime/crio-crun.md @@ -8,15 +8,15 @@ sidebar_position: 3 The [GitHub repo](https://github.com/second-state/wasmedge-containers-examples/) contains scripts and Github Actions for running our example apps on CRI-O. -- Simple WebAssembly example [Quick start](https://github.com/second-state/wasmedge-containers-examples/blob/main/crio/README.md) | [Github Actions](https://github.com/second-state/wasmedge-containers-examples/blob/main/.github/workflows/crio.yml) -- HTTP service example [Quick start](https://github.com/second-state/wasmedge-containers-examples/blob/main/crio/http_server/README.md) | [Github Actions](https://github.com/second-state/wasmedge-containers-examples/blob/main/.github/workflows/crio-server.yml) +- Simple WebAssembly example [Quick start](https://github.com/second-state/wasmedge-containers-examples/blob/main/crio/README.md) | [Github Actions](https://github.com/second-state/wasmedge-containers-examples/blob/main/.github/workflows/crio.yml) +- HTTP service example [Quick start](https://github.com/second-state/wasmedge-containers-examples/blob/main/crio/http_server/README.md) | [Github Actions](https://github.com/second-state/wasmedge-containers-examples/blob/main/.github/workflows/crio-server.yml) In the sections below, we will explain the steps in the quick start scripts. -- [Install CRI-O](#install-cri-o) -- [Configure CRI-O and crun](#configure-cri-o-to-use-crun) -- [Example 1: Simple WebAssembly](#run-a-simple-webassembly-app) -- [Example 2: HTTP server in WebAssembly](#run-a-http-server-app) +- [Install CRI-O](#install-cri-o) +- [Configure CRI-O and crun](#configure-cri-o-to-use-crun) +- [Example 1: Simple WebAssembly](#run-a-simple-webassembly-app) +- [Example 2: HTTP server in WebAssembly](#run-a-http-server-app) ## Install CRI-O diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/intro.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/intro.md index b5bde11c..094bb1d2 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/intro.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/intro.md @@ -34,8 +34,8 @@ In this section, we will show how to manage Wasm App in the three different ways We will cover two different demos in most cases. We have build them from Rust source code, build OCI images around them, and then publish the images to Docker Hub. You can find the more container example [here](https://github.com/second-state/wasmedge-containers-examples). -- [A simple WASI example](https://github.com/second-state/wasmedge-containers-examples/blob/main/simple_wasi_app.md) -- [A HTTP server example](https://github.com/second-state/wasmedge-containers-examples/blob/main/http_server_wasi_app.md) +- [A simple WASI example](https://github.com/second-state/wasmedge-containers-examples/blob/main/simple_wasi_app.md) +- [A HTTP server example](https://github.com/second-state/wasmedge-containers-examples/blob/main/http_server_wasi_app.md) Since we have already built and published those demo apps on Docker Hub, you could also pull the images from Docker Hub. If you want to build your own Wasm image, please refer to this article. diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/kubernetes/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/kubernetes/_category_.json index 08e44877..771170f8 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/kubernetes/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/kubernetes/_category_.json @@ -1,8 +1,8 @@ { - "label": "Use Cases", - "position": 6, - "link": { - "type": "generated-index", - "description": "In this chapter, we will introduce how to use K8s variations to depoloy Wasm app." - } + "label": "Use Cases", + "position": 6, + "link": { + "type": "generated-index", + "description": "In this chapter, we will introduce how to use K8s variations to depoloy Wasm app." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/kubernetes/kubernetes-containerd-crun.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/kubernetes/kubernetes-containerd-crun.md index 6850460f..43a9e1c5 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/kubernetes/kubernetes-containerd-crun.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/kubernetes/kubernetes-containerd-crun.md @@ -8,8 +8,8 @@ sidebar_position: 1 The [GitHub repo](https://github.com/second-state/wasmedge-containers-examples/) contains scripts and Github Actions for running our example apps on Kubernetes + containerd + crun. -- Simple WebAssembly example [Quick start](https://github.com/second-state/wasmedge-containers-examples/blob/main/kubernetes_containerd/README.md) | [Github Actions](https://github.com/second-state/wasmedge-containers-examples/blob/main/.github/workflows/kubernetes-containerd.yml) -- WebAssembly-based HTTP service [Quick start](https://github.com/second-state/wasmedge-containers-examples/blob/main/kubernetes_containerd/http_server/README.md) | [Github Actions](https://github.com/second-state/wasmedge-containers-examples/blob/main/.github/workflows/kubernetes-containerd-server.yml) +- Simple WebAssembly example [Quick start](https://github.com/second-state/wasmedge-containers-examples/blob/main/kubernetes_containerd/README.md) | [Github Actions](https://github.com/second-state/wasmedge-containers-examples/blob/main/.github/workflows/kubernetes-containerd.yml) +- WebAssembly-based HTTP service [Quick start](https://github.com/second-state/wasmedge-containers-examples/blob/main/kubernetes_containerd/http_server/README.md) | [Github Actions](https://github.com/second-state/wasmedge-containers-examples/blob/main/.github/workflows/kubernetes-containerd-server.yml) In the rest of this section, we will explain the steps in detail. diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/kubernetes/kubernetes-cri-o.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/kubernetes/kubernetes-cri-o.md index 3c09c8c6..d613fc34 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/kubernetes/kubernetes-cri-o.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/kubernetes/kubernetes-cri-o.md @@ -8,8 +8,8 @@ sidebar_position: 2 The [WasmEdge Containers Example](https://github.com/second-state/wasmedge-containers-examples/) contains scripts and Github Actions for running our example apps on Kubernetes + CRI-O + crun. -- Simple WebAssembly example [Quick start](https://github.com/second-state/wasmedge-containers-examples/blob/main/kubernetes_crio/README.md) | [Github Actions](https://github.com/second-state/wasmedge-containers-examples/blob/main/.github/workflows/kubernetes-crio.yml) -- WebAssembly-based HTTP service [Quick start](https://github.com/second-state/wasmedge-containers-examples/blob/main/kubernetes_crio/http_server/README.md) | [Github Actions](https://github.com/second-state/wasmedge-containers-examples/blob/main/.github/workflows/kubernetes-crio-server.yml) +- Simple WebAssembly example [Quick start](https://github.com/second-state/wasmedge-containers-examples/blob/main/kubernetes_crio/README.md) | [Github Actions](https://github.com/second-state/wasmedge-containers-examples/blob/main/.github/workflows/kubernetes-crio.yml) +- WebAssembly-based HTTP service [Quick start](https://github.com/second-state/wasmedge-containers-examples/blob/main/kubernetes_crio/http_server/README.md) | [Github Actions](https://github.com/second-state/wasmedge-containers-examples/blob/main/.github/workflows/kubernetes-crio-server.yml) In the rest of this section, we will explain the steps in detail. We will assume that you have already [installed and configured CRI-O](../oci-runtime/crun.md) to work with WasmEdge container images. @@ -107,24 +107,24 @@ pod "wasi-demo-2" deleted apiVersion: v1 kind: Pod metadata: - name: http-server - namespace: default - annotations: - module.wasm.image/variant: compat-smart + name: http-server + namespace: default + annotations: + module.wasm.image/variant: compat-smart spec: - hostNetwork: true - containers: - - name: http-server - image: wasmedge/example-wasi-http:latest - command: ['/http_server.wasm'] - ports: - - containerPort: 1234 - protocol: TCP - livenessProbe: - tcpSocket: - port: 1234 - initialDelaySeconds: 3 - periodSeconds: 30 + hostNetwork: true + containers: + - name: http-server + image: wasmedge/example-wasi-http:latest + command: ['/http_server.wasm'] + ports: + - containerPort: 1234 + protocol: TCP + livenessProbe: + tcpSocket: + port: 1234 + initialDelaySeconds: 3 + periodSeconds: 30 ``` Run the WebAssembly-based image from Docker Hub using the above `k8s-http_server.yaml` file in the Kubernetes cluster as follows. diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/kubernetes/openyurt.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/kubernetes/openyurt.md index d517fa98..283fd19c 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/kubernetes/openyurt.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/kubernetes/openyurt.md @@ -31,7 +31,7 @@ Find the difference between `yurtctl convert/revert` and `yurtctl init/join`, yo [Conversion between OpenYurt and Kubernetes:`yurtctl convert/revert`](https://openyurt.io/docs/v0.6.0/installation/yurtctl-convert-revert) -- Close the swap space of the master and node firstly. +- Close the swap space of the master and node firstly. ```bash sudo swapoff -a @@ -39,7 +39,7 @@ sudo swapoff -a free -m ``` -- Configure the file /etc/hosts of two nodes as the following. +- Configure the file /etc/hosts of two nodes as the following. ```bash 192.168.3.169 oy-master @@ -48,7 +48,7 @@ free -m 121.43.113.152 oy-node ``` -- Load the br_netfilter Kernel module and modify the Kernel parameter. +- Load the br_netfilter Kernel module and modify the Kernel parameter. ```bash //load the module @@ -63,7 +63,7 @@ EOF sudo sysctl --system ``` -- Setup the value of rp-filter (adjusting the value of two parameters in `/etc/sysctl.d/10-network-security.conf` from 2 to 1 and setting up the value of /proc/sys/net/ipv4/ip_forward to 1) +- Setup the value of rp-filter (adjusting the value of two parameters in `/etc/sysctl.d/10-network-security.conf` from 2 to 1 and setting up the value of /proc/sys/net/ipv4/ip_forward to 1) ```bash sudo vi /etc/sysctl.d/10-network-security.conf @@ -118,7 +118,7 @@ curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/insta We need a crun binary that supports WasmEdge on the edge node. For now, the most straightforward approach is to build it yourself from the source. First, let's ensure that crun dependencies are installed on your Ubuntu 20.04. For other Linux distributions, please see [here](https://github.com/containers/crun#readme). -- Dependencies are required for the build +- Dependencies are required for the build ```bash sudo apt update @@ -127,7 +127,7 @@ sudo apt install -y make git gcc build-essential pkgconf libtool \ go-md2man libtool autoconf python3 automake ``` -- Configure, build, and install a crun binary with WasmEdge support. +- Configure, build, and install a crun binary with WasmEdge support. ```bash git clone https://github.com/containers/crun diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/kubernetes/superedge.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/kubernetes/superedge.md index e7f90edc..31333e1c 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/kubernetes/superedge.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/kubernetes/superedge.md @@ -10,7 +10,7 @@ SuperEdge is an open-source container management system for edge computing. It e ## Install Superedge -- Download the installation package +- Download the installation package > Choose installation package according to your installation node CPU architecture [amd64, arm64] @@ -18,13 +18,13 @@ SuperEdge is an open-source container management system for edge computing. It e arch=amd64 version=v0.6.0 && rm -rf edgeadm-linux-* && wget https://superedge-1253687700.cos.ap-guangzhou.myqcloud.com/$version/$arch/edgeadm-linux-containerd-$arch-$version.tgz && tar -xzvf edgeadm-linux-* && cd edgeadm-linux-$arch-$version && ./edgeadm ``` -- Install edge Kubernetes master node with containerd runtime +- Install edge Kubernetes master node with containerd runtime ```bash ./edgeadm init --kubernetes-version=1.18.2 --image-repository superedge.tencentcloudcr.com/superedge --service-cidr=10.96.0.0/12 --pod-network-cidr=192.168.0.0/16 --install-pkg-path ./kube-linux-*.tar.gz --apiserver-cert-extra-sans= --apiserver-advertise-address= --enable-edge=true --runtime=containerd ``` -- Join edge node with containerd runtime +- Join edge node with containerd runtime ```bash ./edgeadm join :Port --token xxxx --discovery-token-ca-cert-hash sha256:xxxxxxxxxx --install-pkg-path --enable-edge=true --runtime=containerd diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/oci-runtime/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/oci-runtime/_category_.json index d411b440..3f736f91 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/oci-runtime/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/oci-runtime/_category_.json @@ -1,8 +1,8 @@ { - "label": "Low level runtime support", - "position": 5, - "link": { - "type": "generated-index", - "description": "In this chapter, we will introduce integrations between WasmEdge and low level runtimes,like containerd and crun." - } + "label": "Low level runtime support", + "position": 5, + "link": { + "type": "generated-index", + "description": "In this chapter, we will introduce integrations between WasmEdge and low level runtimes,like containerd and crun." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/oci-runtime/crun.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/oci-runtime/crun.md index ca139099..3733ffa0 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/oci-runtime/crun.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/oci-runtime/crun.md @@ -39,8 +39,8 @@ Next, you can run Wasm apps on your [fedora machine](/develop/getting-started/qu The [GitHub repo](https://github.com/second-state/wasmedge-containers-examples/) contains scripts and Github Actions for running our example apps on CRI-O. -- Simple WebAssembly example [Quick start](https://github.com/second-state/wasmedge-containers-examples/blob/main/crio/README.md) | [Github Actions](https://github.com/second-state/wasmedge-containers-examples/blob/main/.github/workflows/crio.yml) -- HTTP service example [Quick start](https://github.com/second-state/wasmedge-containers-examples/blob/main/crio/http_server/README.md) | [Github Actions](https://github.com/second-state/wasmedge-containers-examples/blob/main/.github/workflows/crio-server.yml) +- Simple WebAssembly example [Quick start](https://github.com/second-state/wasmedge-containers-examples/blob/main/crio/README.md) | [Github Actions](https://github.com/second-state/wasmedge-containers-examples/blob/main/.github/workflows/crio.yml) +- HTTP service example [Quick start](https://github.com/second-state/wasmedge-containers-examples/blob/main/crio/http_server/README.md) | [Github Actions](https://github.com/second-state/wasmedge-containers-examples/blob/main/.github/workflows/crio-server.yml) ### Prerequisites diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/using-wasmedge-in-docker.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/using-wasmedge-in-docker.md index c3617ff0..df4dbe10 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/using-wasmedge-in-docker.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/deploy/using-wasmedge-in-docker.md @@ -8,11 +8,11 @@ sidebar_position: 5 An easy way to run WebAssembly applications in the Docker ecosystem is to simply embed the WebAssembly bytecode file in a Linux container image. Specifically, we trim down the Linux OS inside the container to the point where it is just enough to support the `wasmedge` runtime. This approach has many advantages. -- It works seamlessly with any tool in the Docker or container ecosystem since the WebAssembly application is wrapped in a regular container. -- The memory footprint of the entire image of Linux OS and WasmEdge can be reduced to as low as 4MB. -- The attack surface of the slimmed Linux OS is dramatically reduced from a regular Linux OS. -- The overall application security is managed by the WebAssembly sandbox. The risk for software supply chain attack is greatly reduced since the WebAssembly sandbox only has access to explicitly declared capabilities. -- The above three advantages are amplified if the application is complex. For example, a WasmEdge AI inference application would NOT require a Python install. A WasmEdge node.js application would NOT require a Node.js and v8 install. +- It works seamlessly with any tool in the Docker or container ecosystem since the WebAssembly application is wrapped in a regular container. +- The memory footprint of the entire image of Linux OS and WasmEdge can be reduced to as low as 4MB. +- The attack surface of the slimmed Linux OS is dramatically reduced from a regular Linux OS. +- The overall application security is managed by the WebAssembly sandbox. The risk for software supply chain attack is greatly reduced since the WebAssembly sandbox only has access to explicitly declared capabilities. +- The above three advantages are amplified if the application is complex. For example, a WasmEdge AI inference application would NOT require a Python install. A WasmEdge node.js application would NOT require a Node.js and v8 install. However, this approach still requires starting up a Linux container. The containerized Linux OS, however slim, still takes 80% of the total image size. There is still a lot of room for optimization. The performance and security of this approach would not be as great as running WebAssembly applications directly in [crun](/develop/deploy/oci-runtime/crun.md) or in a [containerd shim](/develop/deploy/cri-runtime/containerd.md). @@ -20,17 +20,17 @@ However, this approach still requires starting up a Linux container. The contain The `wasmedge/slim:{version}` Docker images provide a slim WasmEdge images built with [DockerSlim](https://dockersl.im) every releases. -- Image `wasmedge/slim-runtime:{version}` includes only WasmEdge runtime with `wasmedge` command. -- Image `wasmedge/slim:{version}` includes the following command line utilities: - - `wasmedge` - - `wasmedgec` -- Image `wasmedge/slim-tf:{version}` includes the following command line utilities: - - `wasmedge` - - `wasmedgec` - - `wasmedge-tensorflow-lite` - - `wasmedge-tensorflow` - - `show-tflite-tensor` -- The working directory of the release docker image is `/app`. +- Image `wasmedge/slim-runtime:{version}` includes only WasmEdge runtime with `wasmedge` command. +- Image `wasmedge/slim:{version}` includes the following command line utilities: + - `wasmedge` + - `wasmedgec` +- Image `wasmedge/slim-tf:{version}` includes the following command line utilities: + - `wasmedge` + - `wasmedgec` + - `wasmedge-tensorflow-lite` + - `wasmedge-tensorflow` + - `show-tflite-tensor` +- The working directory of the release docker image is `/app`. ## Run a simple WebAssembly app @@ -96,20 +96,20 @@ echo: name=WasmEdge With WasmEdge QuickJS support for the Node.js API, we can run a lightweight and secure node.js server from Docker CLI. The slim Linux + WasmEdge + Node.js support image size is less than 15MB as opposed to over 350MB for a standard Node.js image. You will need to do the following. -- [Download the WasmEdge QuickJS runtime](https://github.com/second-state/wasmedge-quickjs/releases/download/v0.4.0-alpha/wasmedge_quickjs.wasm) here. You will have the `wasmedge_quickjs.wasm` file. -- [Download the modules](https://github.com/second-state/wasmedge-quickjs/tree/main/modules) directory from the WasmEdge QuickJS repo. -- Create a JavaScript file for the server. Below is an example `http_echo.js` file you can use. +- [Download the WasmEdge QuickJS runtime](https://github.com/second-state/wasmedge-quickjs/releases/download/v0.4.0-alpha/wasmedge_quickjs.wasm) here. You will have the `wasmedge_quickjs.wasm` file. +- [Download the modules](https://github.com/second-state/wasmedge-quickjs/tree/main/modules) directory from the WasmEdge QuickJS repo. +- Create a JavaScript file for the server. Below is an example `http_echo.js` file you can use. ```javascript import { createServer, request, fetch } from 'http'; createServer((req, resp) => { - req.on('data', (body) => { - resp.write('echo:'); - resp.end(body); - }); + req.on('data', (body) => { + resp.write('echo:'); + resp.end(body); + }); }).listen(8001, () => { - print('listen 8001 ...\n'); + print('listen 8001 ...\n'); }); ``` diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/_category_.json index 044dba0b..affe9a3b 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/_category_.json @@ -1,8 +1,8 @@ { - "label": "Getting Started with WasmEdge", - "position": 2, - "link": { - "type": "generated-index", - "description": "In this chapter, we will show you how to get WasmEdge up and running quickly." - } + "label": "Getting Started with WasmEdge", + "position": 2, + "link": { + "type": "generated-index", + "description": "In this chapter, we will show you how to get WasmEdge up and running quickly." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/quick_start_docker.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/quick_start_docker.md index 4616756e..faec4c7d 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/quick_start_docker.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/quick_start_docker.md @@ -13,9 +13,9 @@ If you are not using Docker Desktop, [get started here](quick_start). We will cover the following examples. -- [Run a standalone Wasm app](#run-a-standalone-wasm-app) -- [Run an HTTP server](#run-an-http-server) -- [Run a JavaScript server (node.js)](#run-a-javascript-based-server) +- [Run a standalone Wasm app](#run-a-standalone-wasm-app) +- [Run an HTTP server](#run-an-http-server) +- [Run a JavaScript server (node.js)](#run-a-javascript-based-server) In this quick start guide, we cover how to run Wasm container apps using Docker commands. If you are interested in how to build, publish, and compose Wasm container apps from source code, check out the [Docker + wasm chapter](../build-and-run/docker_wasm). @@ -38,13 +38,13 @@ Hello WasmEdge! To learn more about how to create Wasm apps in Rust -- [Basic Rust examples for WasmEdge](https://github.com/second-state/rust-examples) -- [Rust developer guides](../../category/develop-wasm-apps-in-rust) - - AI inference with PyTorch and Tensorflow - - HTTP and HTTPS client - - MySQL database client - - Redis client - - Kafka client +- [Basic Rust examples for WasmEdge](https://github.com/second-state/rust-examples) +- [Rust developer guides](../../category/develop-wasm-apps-in-rust) + - AI inference with PyTorch and Tensorflow + - HTTP and HTTPS client + - MySQL database client + - Redis client + - Kafka client ## Run an HTTP server @@ -69,13 +69,13 @@ Hello WasmEdge To learn more about how to create Wasm services in Rust -- [Rust developer guides](../../category/develop-wasm-apps-in-rust) -- [HTTP application examples](https://github.com/WasmEdge/wasmedge_hyper_demo) -- [Database application examples](https://github.com/WasmEdge/wasmedge-db-examples) -- Lightweight microservices in Rust and WasmEdge - - [WasmEdge + Nginx + MySQL](https://github.com/second-state/microservice-rust-mysql) - - [WasmEdge + Kafka + MySQL](https://github.com/docker/awesome-compose/tree/master/wasmedge-kafka-mysql) - - [Dapr + WasmEdge](https://github.com/second-state/dapr-wasm) +- [Rust developer guides](../../category/develop-wasm-apps-in-rust) +- [HTTP application examples](https://github.com/WasmEdge/wasmedge_hyper_demo) +- [Database application examples](https://github.com/WasmEdge/wasmedge-db-examples) +- Lightweight microservices in Rust and WasmEdge + - [WasmEdge + Nginx + MySQL](https://github.com/second-state/microservice-rust-mysql) + - [WasmEdge + Kafka + MySQL](https://github.com/docker/awesome-compose/tree/master/wasmedge-kafka-mysql) + - [Dapr + WasmEdge](https://github.com/second-state/dapr-wasm) ## Run a JavaScript-based server @@ -95,16 +95,16 @@ Hello WasmEdge To learn more about how to run JavaScript apps in WasmEdge. -- [The WasmEdge QuickJS runtime](https://github.com/second-state/wasmedge-quickjs) -- [AI inference application examples](https://github.com/second-state/wasmedge-quickjs/tree/main/example_js/tensorflow_lite_demo) -- [Web service client examples with fetch()](https://github.com/second-state/wasmedge-quickjs/blob/main/example_js/wasi_http_fetch.js) +- [The WasmEdge QuickJS runtime](https://github.com/second-state/wasmedge-quickjs) +- [AI inference application examples](https://github.com/second-state/wasmedge-quickjs/tree/main/example_js/tensorflow_lite_demo) +- [Web service client examples with fetch()](https://github.com/second-state/wasmedge-quickjs/blob/main/example_js/wasi_http_fetch.js) ## Next steps -- [Learn more about building and managing Wasm containers in Docker](../build-and-run/docker_wasm) -- [Basic Rust examples for WasmEdge](https://github.com/second-state/rust-examples) -- [Rust developer guides](../../category/develop-wasm-apps-in-rust) -- Use Docker Compose to build and Rust-based microservices - - [WasmEdge / MySQL / Nginx](https://github.com/docker/awesome-compose/tree/master/wasmedge-mysql-nginx) - Sample Wasm-based web application with a static HTML frontend, using a MySQL (MariaDB) database. The frontend connects to a Wasm microservice written in Rust, that runs using the WasmEdge runtime. - - [WasmEdge / Kafka / MySQL](https://github.com/docker/awesome-compose/tree/master/wasmedge-kafka-mysql) - Sample Wasm-based microservice that subscribes to a Kafka (Redpanda) queue topic, and transforms and saves any incoming message into a MySQL (MariaDB) database. -- Write Wasm apps in your favorite languages, like [Rust](../../category/develop-wasm-apps-in-rust), [C/C++](../../category/develop-wasm-apps-in-cc), [JavaScript](../../category/develop-wasm-apps-in-javascript), [Go](../../category/develop-wasm-apps-in-go), and many other languages. +- [Learn more about building and managing Wasm containers in Docker](../build-and-run/docker_wasm) +- [Basic Rust examples for WasmEdge](https://github.com/second-state/rust-examples) +- [Rust developer guides](../../category/develop-wasm-apps-in-rust) +- Use Docker Compose to build and Rust-based microservices + - [WasmEdge / MySQL / Nginx](https://github.com/docker/awesome-compose/tree/master/wasmedge-mysql-nginx) - Sample Wasm-based web application with a static HTML frontend, using a MySQL (MariaDB) database. The frontend connects to a Wasm microservice written in Rust, that runs using the WasmEdge runtime. + - [WasmEdge / Kafka / MySQL](https://github.com/docker/awesome-compose/tree/master/wasmedge-kafka-mysql) - Sample Wasm-based microservice that subscribes to a Kafka (Redpanda) queue topic, and transforms and saves any incoming message into a MySQL (MariaDB) database. +- Write Wasm apps in your favorite languages, like [Rust](../../category/develop-wasm-apps-in-rust), [C/C++](../../category/develop-wasm-apps-in-cc), [JavaScript](../../category/develop-wasm-apps-in-javascript), [Go](../../category/develop-wasm-apps-in-go), and many other languages. diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/quick_start_redhat.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/quick_start_redhat.md index 5e2540e1..5c104e77 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/quick_start_redhat.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/quick_start_redhat.md @@ -13,9 +13,9 @@ If you are not using OpenShift / Podman, [get started here](quick_start). We will cover the following examples. -- [Run a standalone Wasm app](#run-a-standalone-wasm-app) -- [Run an HTTP server](#run-an-http-server) -- [Run a JavaScript server (node.js)](#run-a-javascript-based-server) +- [Run a standalone Wasm app](#run-a-standalone-wasm-app) +- [Run an HTTP server](#run-an-http-server) +- [Run a JavaScript server (node.js)](#run-a-javascript-based-server) ## Install @@ -38,13 +38,13 @@ Hello WasmEdge! To learn more about how to create Wasm apps in Rust -- [Basic Rust examples for WasmEdge](https://github.com/second-state/rust-examples) -- [Rust developer guides](../../category/develop-wasm-apps-in-rust) - - AI inference with PyTorch and Tensorflow - - HTTP and HTTPS client - - MySQL database client - - Redis client - - Kafka client +- [Basic Rust examples for WasmEdge](https://github.com/second-state/rust-examples) +- [Rust developer guides](../../category/develop-wasm-apps-in-rust) + - AI inference with PyTorch and Tensorflow + - HTTP and HTTPS client + - MySQL database client + - Redis client + - Kafka client ## Run an HTTP server @@ -69,13 +69,13 @@ Hello WasmEdge To learn more about how to create Wasm services in Rust -- [Rust developer guides](../../category/develop-wasm-apps-in-rust) -- [HTTP application examples](https://github.com/WasmEdge/wasmedge_hyper_demo) -- [Database application examples](https://github.com/WasmEdge/wasmedge-db-examples) -- Lightweight microservices in Rust and WasmEdge - - [WasmEdge + Nginx + MySQL](https://github.com/second-state/microservice-rust-mysql) - - [WasmEdge + Kafka + MySQL](https://github.com/docker/awesome-compose/tree/master/wasmedge-kafka-mysql) - - [Dapr + WasmEdge](https://github.com/second-state/dapr-wasm) +- [Rust developer guides](../../category/develop-wasm-apps-in-rust) +- [HTTP application examples](https://github.com/WasmEdge/wasmedge_hyper_demo) +- [Database application examples](https://github.com/WasmEdge/wasmedge-db-examples) +- Lightweight microservices in Rust and WasmEdge + - [WasmEdge + Nginx + MySQL](https://github.com/second-state/microservice-rust-mysql) + - [WasmEdge + Kafka + MySQL](https://github.com/docker/awesome-compose/tree/master/wasmedge-kafka-mysql) + - [Dapr + WasmEdge](https://github.com/second-state/dapr-wasm) ## Run a JavaScript-based server @@ -95,12 +95,12 @@ Hello WasmEdge To learn more about how to run JavaScript apps in WasmEdge. -- [The WasmEdge QuickJS runtime](https://github.com/second-state/wasmedge-quickjs) -- [AI inference application examples](https://github.com/second-state/wasmedge-quickjs/tree/main/example_js/tensorflow_lite_demo) -- [Web service client examples with fetch()](https://github.com/second-state/wasmedge-quickjs/blob/main/example_js/wasi_http_fetch.js) +- [The WasmEdge QuickJS runtime](https://github.com/second-state/wasmedge-quickjs) +- [AI inference application examples](https://github.com/second-state/wasmedge-quickjs/tree/main/example_js/tensorflow_lite_demo) +- [Web service client examples with fetch()](https://github.com/second-state/wasmedge-quickjs/blob/main/example_js/wasi_http_fetch.js) ## Next steps -- [Basic Rust examples for WasmEdge](https://github.com/second-state/rust-examples) -- [Rust developer guides](../../category/develop-wasm-apps-in-rust) -- Write Wasm apps in your favorite languages, like [Rust](../../category/develop-wasm-apps-in-rust), [C/C++](../../category/develop-wasm-apps-in-cc), [JavaScript](../../category/develop-wasm-apps-in-javascript), [Go](../../category/develop-wasm-apps-in-go), and many other languages. +- [Basic Rust examples for WasmEdge](https://github.com/second-state/rust-examples) +- [Rust developer guides](../../category/develop-wasm-apps-in-rust) +- Write Wasm apps in your favorite languages, like [Rust](../../category/develop-wasm-apps-in-rust), [C/C++](../../category/develop-wasm-apps-in-cc), [JavaScript](../../category/develop-wasm-apps-in-javascript), [Go](../../category/develop-wasm-apps-in-go), and many other languages. diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/go/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/develop/go/_category_.json index ad3c25d0..be67498f 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/go/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/go/_category_.json @@ -1,8 +1,8 @@ { - "label": "Develop Wasm Apps in Go", - "position": 7, - "link": { - "type": "generated-index", - "description": "In this chapter, we will learn how to create Wasm apps in Go." - } + "label": "Develop Wasm Apps in Go", + "position": 7, + "link": { + "type": "generated-index", + "description": "In this chapter, we will learn how to create Wasm apps in Go." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/_category_.json index 84584be5..a737e4ee 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/_category_.json @@ -1,8 +1,8 @@ { - "label": "Develop Wasm Apps in JavaScript", - "position": 5, - "link": { - "type": "generated-index", - "description": "Yes! You could run JavaScript programs in WasmEdge." - } + "label": "Develop Wasm Apps in JavaScript", + "position": 5, + "link": { + "type": "generated-index", + "description": "Yes! You could run JavaScript programs in WasmEdge." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/es6.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/es6.md index 64d6036b..d64d94d0 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/es6.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/es6.md @@ -8,9 +8,9 @@ The WasmEdge QuickJS runtime supports ES6 modules. In fact, the rollup commands ## Prerequisites -- [WasmEdge installed](../build-and-run/install) -- Download the WasmEdge QuickJS Runtime - - Run `curl -OL https://github.com/second-state/wasmedge-quickjs/releases/download/v0.4.0-alpha/wasmedge_quickjs.wasm` to download +- [WasmEdge installed](../build-and-run/install) +- Download the WasmEdge QuickJS Runtime + - Run `curl -OL https://github.com/second-state/wasmedge-quickjs/releases/download/v0.4.0-alpha/wasmedge_quickjs.wasm` to download ## Run the example @@ -37,7 +37,7 @@ The [module_def.js](https://github.com/second-state/wasmedge-quickjs/blob/main/e ```javascript function hello() { - console.log('hello from module_def.js'); + console.log('hello from module_def.js'); } export { hello }; @@ -47,8 +47,8 @@ The [module_def_async.js](https://github.com/second-state/wasmedge-quickjs/blob/ ```javascript export async function hello() { - console.log('hello from module_def_async.js'); - return 'module_def_async.js : return value'; + console.log('hello from module_def_async.js'); + return 'module_def_async.js : return value'; } export var something = 'async thing'; @@ -62,9 +62,9 @@ import { hello as module_def_hello } from './module_def.js'; module_def_hello(); var f = async () => { - let { hello, something } = await import('./module_def_async.js'); - await hello(); - console.log('./module_def_async.js `something` is ', something); + let { hello, something } = await import('./module_def_async.js'); + await hello(); + console.log('./module_def_async.js `something` is ', something); }; f(); diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/hello_world.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/hello_world.md index 9d9fbf91..891b774e 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/hello_world.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/hello_world.md @@ -6,12 +6,12 @@ sidebar_position: 2 ## Prerequisites -- [WasmEdge installed](../build-and-run/install) -- Download the WasmEdge QuickJS Runtime - - Run `curl -OL https://github.com/second-state/wasmedge-quickjs/releases/download/v0.4.0-alpha/wasmedge_quickjs.wasm` to download -- Optional: [Rust](https://www.rust-lang.org/tools/install) installed, if you want to build the program yourself -- Optional: `wasm32-wasi` target of the Rust toolchain added, if you want to build the program yourself - - Run `rustup target add wasm32-wasi` after installed Rust. +- [WasmEdge installed](../build-and-run/install) +- Download the WasmEdge QuickJS Runtime + - Run `curl -OL https://github.com/second-state/wasmedge-quickjs/releases/download/v0.4.0-alpha/wasmedge_quickjs.wasm` to download +- Optional: [Rust](https://www.rust-lang.org/tools/install) installed, if you want to build the program yourself +- Optional: `wasm32-wasi` target of the Rust toolchain added, if you want to build the program yourself + - Run `rustup target add wasm32-wasi` after installed Rust. ## Quick start @@ -30,7 +30,7 @@ import * as std from 'std'; args = args.slice(1); print('Hello', ...args); setTimeout(() => { - print('timeout 2s'); + print('timeout 2s'); }, 2000); ``` diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/intro.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/intro.md index 4d8a155b..972e7154 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/intro.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/intro.md @@ -14,21 +14,21 @@ In cloud-native use cases, developers often want to use JavaScript to write busi ## Why run JavaScript in WasmEdge -- Lightweight and secure JS runtime. Compared with V8 and Node.js, WasmEdge itself is a lightweight, high performance JavaScript runtime。 -- No need for Linux containers. WasmEdge could be a secure container without tons of dependencies. -- Node.js compatible. See the status [here](https://github.com/WasmEdge/WasmEdge/issues/1535). -- Use Rust to implement JS APIs. See the tutorial here. +- Lightweight and secure JS runtime. Compared with V8 and Node.js, WasmEdge itself is a lightweight, high performance JavaScript runtime。 +- No need for Linux containers. WasmEdge could be a secure container without tons of dependencies. +- Node.js compatible. See the status [here](https://github.com/WasmEdge/WasmEdge/issues/1535). +- Use Rust to implement JS APIs. See the tutorial here. In this section, we will demonstrate how to run and enhance JavaScript in WasmEdge. -- [Getting started](hello_world) demonstrates how to run simple JavaScript programs in WasmEdge. -- [Node.js compatibility](nodejs) describes Node.js APIs support in WasmEdge QuickJS. -- [Networking sockets](networking) shows how to create non-blocking (async) HTTP clients, including the `fetch` API, and server applications in JavaScript. -- [ES6 modules](es6) shows how to incorporate ES6 modules in WasmEdge. -- [Node.js and NPM modules](npm) shows how to incorporate NPM modules in WasmEdge. -- [Built-in modules](modules) shows how to add JavaScript functions into the WasmEdge runtime as built-in API functions. -- [Use Rust to implement JS API](rust) discusses how to use Rust to implement and support a JavaScript API. -- [React SSR](ssr) shows example React SSR applications, including streaming SSR support. +- [Getting started](hello_world) demonstrates how to run simple JavaScript programs in WasmEdge. +- [Node.js compatibility](nodejs) describes Node.js APIs support in WasmEdge QuickJS. +- [Networking sockets](networking) shows how to create non-blocking (async) HTTP clients, including the `fetch` API, and server applications in JavaScript. +- [ES6 modules](es6) shows how to incorporate ES6 modules in WasmEdge. +- [Node.js and NPM modules](npm) shows how to incorporate NPM modules in WasmEdge. +- [Built-in modules](modules) shows how to add JavaScript functions into the WasmEdge runtime as built-in API functions. +- [Use Rust to implement JS API](rust) discusses how to use Rust to implement and support a JavaScript API. +- [React SSR](ssr) shows example React SSR applications, including streaming SSR support. ## A note on v8 diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/modules.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/modules.md index a1f1ac4e..ddcfed91 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/modules.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/modules.md @@ -10,9 +10,9 @@ In this article, we will use the [wasmedge-quickjs/modules](https://github.com/s Before we started, you also need -- [WasmEdge installed](../build-and-run/install) -- Download the WasmEdge QuickJS Runtime - - Run `curl -OL https://github.com/second-state/wasmedge-quickjs/releases/download/v0.4.0-alpha/wasmedge_quickjs.wasm` to download +- [WasmEdge installed](../build-and-run/install) +- Download the WasmEdge QuickJS Runtime + - Run `curl -OL https://github.com/second-state/wasmedge-quickjs/releases/download/v0.4.0-alpha/wasmedge_quickjs.wasm` to download Then, git clone of fork [the example repo](https://github.com/second-state/wasmedge-quickjs). @@ -41,7 +41,7 @@ The two JavaScript files in the `modules` directory provide two simple functions ```javascript export function hello_mod_1() { - console.log('hello from "my_mod_1.js"'); + console.log('hello from "my_mod_1.js"'); } ``` @@ -49,7 +49,7 @@ And the [modules/my_mod_2.js](https://github.com/second-state/wasmedge-quickjs/b ```javascript export function hello_mod_2() { - console.log('hello from "my_mod_2.js"'); + console.log('hello from "my_mod_2.js"'); } ``` diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/networking.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/networking.md index 443251da..f329564c 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/networking.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/networking.md @@ -8,17 +8,17 @@ The QuickJS WasmEdge Runtime supports Node.js's `http` and `fetch` APIs via the The networking API in WasmEdge is non-blocking and hence supports asynchronous I/O intensive applications. With this API, the JavaScript program can open multiple connections concurrently. It polls those connections, or registers async callback functions, to process data whenever data comes in, without waiting for any one connection to complete its data transfer. That allows the single-threaded application to handle multiple multiple concurrent requests. -- [Fetch client](#fetch-client) -- [HTTP server](#http-server) -- [HTTP client](#http-client) -- [TCP server](#tcp-server) -- [TCP client](#tcp-client) +- [Fetch client](#fetch-client) +- [HTTP server](#http-server) +- [HTTP client](#http-client) +- [TCP server](#tcp-server) +- [TCP client](#tcp-client) ## Prerequisites -- [WasmEdge installed](/develop/build-and-run/install.md) +- [WasmEdge installed](/develop/build-and-run/install.md) -- Download the WasmEdge QuickJS Runtime +- Download the WasmEdge QuickJS Runtime ```bash curl -OL https://github.com/second-state/wasmedge-quickjs/releases/download/v0.4.0-alpha/wasmedge_quickjs.wasm @@ -32,12 +32,12 @@ The [example_js/wasi_http_fetch.js](https://github.com/second-state/wasmedge-qui ```javascript async function test_fetch() { - try { - let r = await fetch('http://httpbin.org/get?id=1'); - print('test_fetch\n', await r.text()); - } catch (e) { - print(e); - } + try { + let r = await fetch('http://httpbin.org/get?id=1'); + print('test_fetch\n', await r.text()); + } catch (e) { + print(e); + } } test_fetch(); ``` @@ -46,15 +46,15 @@ The code snippet below shows how to do an sync HTTP POST to a remote server. ```javascript async function test_fetch_post() { - try { - let r = await fetch('http://httpbin.org/post', { - method: 'post', - body: 'post_body', - }); - print('test_fetch_post\n', await r.text()); - } catch (e) { - print(e); - } + try { + let r = await fetch('http://httpbin.org/post', { + method: 'post', + body: 'post_body', + }); + print('test_fetch_post\n', await r.text()); + } catch (e) { + print(e); + } } test_fetch_post(); ``` @@ -63,16 +63,16 @@ An async HTTP PUT request is as follows. ```javascript async function test_fetch_put() { - try { - let r = await fetch('http://httpbin.org/put', { - method: 'put', - body: JSON.stringify({ a: 1 }), - headers: { 'Context-type': 'application/json' }, - }); - print('test_fetch_put\n', await r.text()); - } catch (e) { - print(e); - } + try { + let r = await fetch('http://httpbin.org/put', { + method: 'put', + body: JSON.stringify({ a: 1 }), + headers: { 'Context-type': 'application/json' }, + }); + print('test_fetch_put\n', await r.text()); + } catch (e) { + print(e); + } } test_fetch_put(); ``` @@ -93,12 +93,12 @@ If you want to run microservices in the WasmEdge runtime, you will need to creat import { createServer, request, fetch } from 'http'; createServer((req, resp) => { - req.on('data', (body) => { - resp.write('echo:'); - resp.end(body); - }); + req.on('data', (body) => { + resp.write('echo:'); + resp.end(body); + }); }).listen(8001, () => { - print('listen 8001 ...\n'); + print('listen 8001 ...\n'); }); ``` @@ -108,21 +108,21 @@ Once the HTTP server starts, you can connect to it and send in a request using t ```javascript async function test_request() { - let client = request( - { href: 'http://127.0.0.1:8001/request', method: 'POST' }, - (resp) => { - var data = ''; - resp.on('data', (chunk) => { - data += chunk; - }); - resp.on('end', () => { - print('request client recv:', data); - print(); - }); - }, - ); - - client.end('hello server'); + let client = request( + { href: 'http://127.0.0.1:8001/request', method: 'POST' }, + (resp) => { + var data = ''; + resp.on('data', (chunk) => { + data += chunk; + }); + resp.on('end', () => { + print('request client recv:', data); + print(); + }); + }, + ); + + client.end('hello server'); } ``` @@ -130,12 +130,12 @@ Of course, you can also use the simpler `fetch` API. ```javascript async function test_fetch() { - let resp = await fetch('http://127.0.0.1:8001/fetch', { - method: 'POST', - body: 'hello server', - }); - print('fetch client recv:', await resp.text()); - print(); + let resp = await fetch('http://127.0.0.1:8001/fetch', { + method: 'POST', + body: 'hello server', + }); + print('fetch client recv:', await resp.text()); + print(); } ``` @@ -154,16 +154,16 @@ import * as net from 'wasi_net'; import { TextDecoder } from 'util'; async function server_start() { - print('listen 8000 ...'); - try { - let s = new net.WasiTcpServer(8000); - for (var i = 0; i < 100; i++) { - let cs = await s.accept(); - handle_client(cs); - } - } catch (e) { - print('server accept error:', e); + print('listen 8000 ...'); + try { + let s = new net.WasiTcpServer(8000); + for (var i = 0; i < 100; i++) { + let cs = await s.accept(); + handle_client(cs); } + } catch (e) { + print('server accept error:', e); + } } server_start(); @@ -173,21 +173,21 @@ The `handle_client()` function contains the logic on how to process and respond ```javascript async function handle_client(cs) { - print('server accept:', cs.peer()); - try { - while (true) { - let d = await cs.read(); - if (d == undefined || d.byteLength <= 0) { - break; - } - let s = new TextDecoder().decode(d); - print('server recv:', s); - cs.write('echo:' + s); - } - } catch (e) { - print('server handle_client error:', e); + print('server accept:', cs.peer()); + try { + while (true) { + let d = await cs.read(); + if (d == undefined || d.byteLength <= 0) { + break; + } + let s = new TextDecoder().decode(d); + print('server recv:', s); + cs.write('echo:' + s); } - print('server: conn close'); + } catch (e) { + print('server handle_client error:', e); + } + print('server: conn close'); } ``` @@ -197,18 +197,18 @@ The TCP client uses WasmEdge's `WasiTcpConn` API to send in a request and receiv ```javascript async function connect_test() { - try { - let ss = await net.WasiTcpConn.connect('127.0.0.1:8000'); - ss.write('hello'); - let msg = (await ss.read()) || ''; - print('client recv:', new TextDecoder().decode(msg)); - } catch (e) { - print('client catch:', e); - } finally { - nextTick(() => { - exit(0); - }); - } + try { + let ss = await net.WasiTcpConn.connect('127.0.0.1:8000'); + ss.write('hello'); + let msg = (await ss.read()) || ''; + print('client recv:', new TextDecoder().decode(msg)); + } catch (e) { + print('client catch:', e); + } finally { + nextTick(() => { + exit(0); + }); + } } connect_test(); diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/nodejs.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/nodejs.md index e85e6fc7..0771104e 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/nodejs.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/nodejs.md @@ -24,16 +24,16 @@ The progress of Node.js support in WasmEdge QuickJS is **[tracked in this issue] Some Node.js functions can be implemented in pure JavaScript using the [modules](modules) approach. For example, -- The [querystring](https://github.com/second-state/wasmedge-quickjs/blob/main/modules/querystring.js) functions just perform string manipulations. -- The [buffer](https://github.com/second-state/wasmedge-quickjs/blob/main/modules/buffer.js) functions manage and encode arrays and memory structures. -- The [encoding](https://github.com/second-state/wasmedge-quickjs/blob/main/modules/encoding.js) and [http](https://github.com/second-state/wasmedge-quickjs/blob/main/modules/http.js) functions support corresponding Node.js APIs by wrapping around [Rust internal modules](rust). +- The [querystring](https://github.com/second-state/wasmedge-quickjs/blob/main/modules/querystring.js) functions just perform string manipulations. +- The [buffer](https://github.com/second-state/wasmedge-quickjs/blob/main/modules/buffer.js) functions manage and encode arrays and memory structures. +- The [encoding](https://github.com/second-state/wasmedge-quickjs/blob/main/modules/encoding.js) and [http](https://github.com/second-state/wasmedge-quickjs/blob/main/modules/http.js) functions support corresponding Node.js APIs by wrapping around [Rust internal modules](rust). ## The Rust internal modules Other Node.js functions must be implemented in Rust using the [internal_module](rust) approach. There are two reasons for that. First, some Node.js API functions are CPU intensive (e.g., encoding) and is most efficiently implemented in Rust. Second, some Node.js API functions require access to the underlying system (e.g., networking and file system) through native host functions. -- The [core](https://github.com/second-state/wasmedge-quickjs/blob/main/src/internal_module/core.rs) module provides OS level functions such as `timeout`. -- The [encoding](https://github.com/second-state/wasmedge-quickjs/blob/main/src/internal_module/encoding.rs) module provides high-performance encoding and decoding functions, which are in turn [wrapped into Node.js encoding APIs](https://github.com/second-state/wasmedge-quickjs/blob/main/modules/encoding.js). -- The [wasi_net_module](https://github.com/second-state/wasmedge-quickjs/blob/main/src/internal_module/wasi_net_module.rs) provides JavaScript networking functions implemented via the Rust-based WasmEdge WASI socket API. It is then wrapped into the [Node.js http module](https://github.com/second-state/wasmedge-quickjs/blob/main/modules/http.js). +- The [core](https://github.com/second-state/wasmedge-quickjs/blob/main/src/internal_module/core.rs) module provides OS level functions such as `timeout`. +- The [encoding](https://github.com/second-state/wasmedge-quickjs/blob/main/src/internal_module/encoding.rs) module provides high-performance encoding and decoding functions, which are in turn [wrapped into Node.js encoding APIs](https://github.com/second-state/wasmedge-quickjs/blob/main/modules/encoding.js). +- The [wasi_net_module](https://github.com/second-state/wasmedge-quickjs/blob/main/src/internal_module/wasi_net_module.rs) provides JavaScript networking functions implemented via the Rust-based WasmEdge WASI socket API. It is then wrapped into the [Node.js http module](https://github.com/second-state/wasmedge-quickjs/blob/main/modules/http.js). Node.js compatibility support in WasmEdge QuickJS is a work in progress. It is a great way for new developers to get familiar with WasmEdge QuickJS. Join us! diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/npm.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/npm.md index 6af93c1b..7de847e7 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/npm.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/npm.md @@ -8,9 +8,9 @@ With [rollup.js](https://rollupjs.org/guide/en/), we can run CommonJS (CJS) and ## Prerequisites -- [WasmEdge installed](../build-and-run/install) -- Download the WasmEdge QuickJS Runtime - - Run `curl -OL https://github.com/second-state/wasmedge-quickjs/releases/download/v0.4.0-alpha/wasmedge_quickjs.wasm` to download +- [WasmEdge installed](../build-and-run/install) +- Download the WasmEdge QuickJS Runtime + - Run `curl -OL https://github.com/second-state/wasmedge-quickjs/releases/download/v0.4.0-alpha/wasmedge_quickjs.wasm` to download ## Run the example @@ -55,31 +55,31 @@ const builtins = require('rollup-plugin-node-builtins'); const plugin_async = require('rollup-plugin-async'); const babelOptions = { - presets: ['@babel/preset-react'], + presets: ['@babel/preset-react'], }; module.exports = [ - { - input: './npm_main.js', - output: { - inlineDynamicImports: true, - file: 'dist/npm_main.mjs', - format: 'esm', - }, - external: ['process', 'wasi_net', 'std'], - plugins: [ - plugin_async(), - nodeResolve(), - commonjs({ ignoreDynamicRequires: false }), - babel(babelOptions), - globals(), - builtins(), - replace({ - 'process.env.NODE_ENV': JSON.stringify('production'), - 'process.env.NODE_DEBUG': JSON.stringify(''), - }), - ], + { + input: './npm_main.js', + output: { + inlineDynamicImports: true, + file: 'dist/npm_main.mjs', + format: 'esm', }, + external: ['process', 'wasi_net', 'std'], + plugins: [ + plugin_async(), + nodeResolve(), + commonjs({ ignoreDynamicRequires: false }), + babel(babelOptions), + globals(), + builtins(), + replace({ + 'process.env.NODE_ENV': JSON.stringify('production'), + 'process.env.NODE_DEBUG': JSON.stringify(''), + }), + ], + }, ]; ``` @@ -87,27 +87,27 @@ The [package.json](https://github.com/second-state/wasmedge-quickjs/blob/main/ex ```json { - "dependencies": { - "mathjs": "^9.5.1", - "md5": "^2.3.0" - }, - "devDependencies": { - "@babel/core": "^7.16.5", - "@babel/preset-env": "^7.16.5", - "@babel/preset-react": "^7.16.5", - "@rollup/plugin-babel": "^5.3.0", - "@rollup/plugin-commonjs": "^21.0.1", - "@rollup/plugin-node-resolve": "^7.1.3", - "@rollup/plugin-replace": "^3.0.0", - "rollup": "^2.60.1", - "rollup-plugin-babel": "^4.4.0", - "rollup-plugin-node-builtins": "^2.1.2", - "rollup-plugin-node-globals": "^1.4.0", - "rollup-plugin-async": "^1.2.0" - }, - "scripts": { - "build": "rollup -c rollup.config.js" - } + "dependencies": { + "mathjs": "^9.5.1", + "md5": "^2.3.0" + }, + "devDependencies": { + "@babel/core": "^7.16.5", + "@babel/preset-env": "^7.16.5", + "@babel/preset-react": "^7.16.5", + "@rollup/plugin-babel": "^5.3.0", + "@rollup/plugin-commonjs": "^21.0.1", + "@rollup/plugin-node-resolve": "^7.1.3", + "@rollup/plugin-replace": "^3.0.0", + "rollup": "^2.60.1", + "rollup-plugin-babel": "^4.4.0", + "rollup-plugin-node-builtins": "^2.1.2", + "rollup-plugin-node-globals": "^1.4.0", + "rollup-plugin-async": "^1.2.0" + }, + "scripts": { + "build": "rollup -c rollup.config.js" + } } ``` diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/rust.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/rust.md index c0fcc554..a0a735b8 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/rust.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/rust.md @@ -10,12 +10,12 @@ For JavaScript developers, incorporating Rust functions into JavaScript APIs is ## Prerequisites -- [WasmEdge installed](../build-and-run/install) -- Download the WasmEdge QuickJS Runtime - - Run `curl -OL https://github.com/second-state/wasmedge-quickjs/releases/download/v0.4.0-alpha/wasmedge_quickjs.wasm` to download -- [Rust](https://www.rust-lang.org/tools/install) installed -- `wasm32-wasi` target of the Rust toolchain added - - Run `rustup target add wasm32-wasi` after installed Rust. +- [WasmEdge installed](../build-and-run/install) +- Download the WasmEdge QuickJS Runtime + - Run `curl -OL https://github.com/second-state/wasmedge-quickjs/releases/download/v0.4.0-alpha/wasmedge_quickjs.wasm` to download +- [Rust](https://www.rust-lang.org/tools/install) installed +- `wasm32-wasi` target of the Rust toolchain added + - Run `rustup target add wasm32-wasi` after installed Rust. ## A simple example diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/ssr.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/ssr.md index 6280a485..8b386162 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/ssr.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/ssr.md @@ -12,9 +12,9 @@ In this article, we will show you how to use the WasmEdge QuickJS runtime to imp We will start from a complete tutorial to create and deploy a simple React Streaming SSR web application, and then move on to a full React 18 demo. -- [Getting started with React streaming SSR](#getting-started) -- [A full React 18 app](#a-full-react-18-app) -- [Appendix: the create-react-app template](#appendix-the-create-react-app-template) +- [Getting started with React streaming SSR](#getting-started) +- [A full React 18 app](#a-full-react-18-app) +- [Appendix: the create-react-app template](#appendix-the-create-react-app-template) ## Getting started @@ -27,36 +27,36 @@ import React, { Suspense } from 'react'; import * as LazyPage from './LazyPage.jsx'; async function sleep(ms) { - return new Promise((r, _) => { - setTimeout(() => r(), ms); - }); + return new Promise((r, _) => { + setTimeout(() => r(), ms); + }); } async function loadLazyPage() { - await sleep(2000); - return LazyPage; + await sleep(2000); + return LazyPage; } class LazyHome extends React.Component { - render() { - let LazyPage1 = React.lazy(() => loadLazyPage()); - return ( - - - - Title - - -
-
This is LazyHome
- loading...
}> - - - - - - ); - } + render() { + let LazyPage1 = React.lazy(() => loadLazyPage()); + return ( + + + + Title + + +
+
This is LazyHome
+ loading...
}> + + + + + + ); + } } export default LazyHome; @@ -68,13 +68,13 @@ The [LazyPage.jsx](https://github.com/second-state/wasmedge-quickjs/blob/main/ex import React from 'react'; class LazyPage extends React.Component { - render() { - return ( -
-
This is lazy page
-
- ); - } + render() { + return ( +
+
This is lazy page
+
+ ); + } } export default LazyPage; @@ -90,10 +90,10 @@ import { createServer } from 'http'; import LazyHome from './component/LazyHome.jsx'; createServer((req, res) => { - res.setHeader('Content-type', 'text/html; charset=utf-8'); - renderToPipeableStream().pipe(res); + res.setHeader('Content-type', 'text/html; charset=utf-8'); + renderToPipeableStream().pipe(res); }).listen(8001, () => { - print('listen 8001...'); + print('listen 8001...'); }); ``` @@ -153,67 +153,67 @@ import App from './component/App.js'; import { DataProvider } from './component/data.js'; let assets = { - 'main.js': '/main.js', - 'main.css': '/main.css', + 'main.js': '/main.js', + 'main.css': '/main.css', }; const css = std.loadFile('./public/main.css'); function createServerData() { - let done = false; - let promise = null; - return { - read() { - if (done) { - return; - } - if (promise) { - throw promise; - } - promise = new Promise((resolve) => { - setTimeout(() => { - done = true; - promise = null; - resolve(); - }, 2000); - }); - throw promise; - }, - }; + let done = false; + let promise = null; + return { + read() { + if (done) { + return; + } + if (promise) { + throw promise; + } + promise = new Promise((resolve) => { + setTimeout(() => { + done = true; + promise = null; + resolve(); + }, 2000); + }); + throw promise; + }, + }; } createServer((req, res) => { - print(req.url); - if (req.url == '/main.css') { - res.setHeader('Content-Type', 'text/css; charset=utf-8'); - res.end(css); - } else if (req.url == '/favicon.ico') { - res.end(); - } else { - res.setHeader('Content-type', 'text/html'); - - res.on('error', (e) => { - print('res error', e); - }); - let data = createServerData(); - print('createServerData'); - - const stream = renderToPipeableStream( - - - , - { - onShellReady: () => { - stream.pipe(res); - }, - onShellError: (e) => { - print('onShellError:', e); - }, - }, - ); - } + print(req.url); + if (req.url == '/main.css') { + res.setHeader('Content-Type', 'text/css; charset=utf-8'); + res.end(css); + } else if (req.url == '/favicon.ico') { + res.end(); + } else { + res.setHeader('Content-type', 'text/html'); + + res.on('error', (e) => { + print('res error', e); + }); + let data = createServerData(); + print('createServerData'); + + const stream = renderToPipeableStream( + + + , + { + onShellReady: () => { + stream.pipe(res); + }, + onShellError: (e) => { + print('onShellError:', e); + }, + }, + ); + } }).listen(8002, () => { - print('listen 8002...'); + print('listen 8002...'); }); ``` @@ -326,10 +326,10 @@ import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.hydrate( - - - , - document.getElementById('root'), + + + , + document.getElementById('root'), ); ``` @@ -364,95 +364,95 @@ import * as net from 'wasi_net'; import App from '../src/App.js'; async function handle_client(cs) { - print('open:', cs.peer()); - let buffer = new http.Buffer(); + print('open:', cs.peer()); + let buffer = new http.Buffer(); - while (true) { - try { - let d = await cs.read(); - if (d == undefined || d.byteLength <= 0) { - return; - } - buffer.append(d); - let req = buffer.parseRequest(); - if (req instanceof http.WasiRequest) { - handle_req(cs, req); - break; - } - } catch (e) { - print(e); - } + while (true) { + try { + let d = await cs.read(); + if (d == undefined || d.byteLength <= 0) { + return; + } + buffer.append(d); + let req = buffer.parseRequest(); + if (req instanceof http.WasiRequest) { + handle_req(cs, req); + break; + } + } catch (e) { + print(e); } - print('end:', cs.peer()); + } + print('end:', cs.peer()); } function enlargeArray(oldArr, newLength) { - let newArr = new Uint8Array(newLength); - oldArr && newArr.set(oldArr, 0); - return newArr; + let newArr = new Uint8Array(newLength); + oldArr && newArr.set(oldArr, 0); + return newArr; } async function handle_req(s, req) { - print('uri:', req.uri); - - let resp = new http.WasiResponse(); - let content = ''; - if (req.uri == '/') { - const app = ReactDOMServer.renderToString(); - content = std.loadFile('./build/index.html'); - content = content.replace( - '
', - `
${app}
`, - ); - } else { - let chunk = 1000; // Chunk size of each reading - let length = 0; // The whole length of the file - let byteArray = null; // File content as Uint8Array - - // Read file into byteArray by chunk - let file = std.open('./build' + req.uri, 'r'); - while (true) { - byteArray = enlargeArray(byteArray, length + chunk); - let readLen = file.read(byteArray.buffer, length, chunk); - length += readLen; - if (readLen < chunk) { - break; - } - } - content = byteArray.slice(0, length).buffer; - file.close(); - } - let contentType = 'text/html; charset=utf-8'; - if (req.uri.endsWith('.css')) { - contentType = 'text/css; charset=utf-8'; - } else if (req.uri.endsWith('.js')) { - contentType = 'text/javascript; charset=utf-8'; - } else if (req.uri.endsWith('.json')) { - contentType = 'text/json; charset=utf-8'; - } else if (req.uri.endsWith('.ico')) { - contentType = 'image/vnd.microsoft.icon'; - } else if (req.uri.endsWith('.png')) { - contentType = 'image/png'; + print('uri:', req.uri); + + let resp = new http.WasiResponse(); + let content = ''; + if (req.uri == '/') { + const app = ReactDOMServer.renderToString(); + content = std.loadFile('./build/index.html'); + content = content.replace( + '
', + `
${app}
`, + ); + } else { + let chunk = 1000; // Chunk size of each reading + let length = 0; // The whole length of the file + let byteArray = null; // File content as Uint8Array + + // Read file into byteArray by chunk + let file = std.open('./build' + req.uri, 'r'); + while (true) { + byteArray = enlargeArray(byteArray, length + chunk); + let readLen = file.read(byteArray.buffer, length, chunk); + length += readLen; + if (readLen < chunk) { + break; + } } - resp.headers = { - 'Content-Type': contentType, - }; + content = byteArray.slice(0, length).buffer; + file.close(); + } + let contentType = 'text/html; charset=utf-8'; + if (req.uri.endsWith('.css')) { + contentType = 'text/css; charset=utf-8'; + } else if (req.uri.endsWith('.js')) { + contentType = 'text/javascript; charset=utf-8'; + } else if (req.uri.endsWith('.json')) { + contentType = 'text/json; charset=utf-8'; + } else if (req.uri.endsWith('.ico')) { + contentType = 'image/vnd.microsoft.icon'; + } else if (req.uri.endsWith('.png')) { + contentType = 'image/png'; + } + resp.headers = { + 'Content-Type': contentType, + }; - let r = resp.encode(content); - s.write(r); + let r = resp.encode(content); + s.write(r); } async function server_start() { - print('listen 8002...'); - try { - let s = new net.WasiTcpServer(8002); - for (var i = 0; ; i++) { - let cs = await s.accept(); - handle_client(cs); - } - } catch (e) { - print(e); + print('listen 8002...'); + try { + let s = new net.WasiTcpServer(8002); + for (var i = 0; ; i++) { + let cs = await s.accept(); + handle_client(cs); } + } catch (e) { + print(e); + } } server_start(); @@ -460,9 +460,9 @@ server_start(); The server renders the `` component, and then sends the rendered HTML string back to the browser. Three important things are taking place here. -- ReactDOMServer's `renderToString` is used to render the `` to an HTML string. -- The `index.html` file from the app's `build` output directory is loaded as a template. The app's content is injected into the `
` element with an id of `"root"`. It is then sent back as HTTP response. -- Other files from the `build` directory are read and served as needed at the requests of the browser. +- ReactDOMServer's `renderToString` is used to render the `` to an HTML string. +- The `index.html` file from the app's `build` output directory is loaded as a template. The app's content is injected into the `
` element with an id of `"root"`. It is then sent back as HTTP response. +- Other files from the `build` directory are read and served as needed at the requests of the browser. ### Step 3 — Build and deploy @@ -472,7 +472,7 @@ Create a new Babel configuration file named `.babelrc.json` in the project's roo ```json { - "presets": ["@babel/preset-env", "@babel/preset-react"] + "presets": ["@babel/preset-env", "@babel/preset-react"] } ``` @@ -481,39 +481,39 @@ Create a webpack config for the server that uses Babel Loader to transpile the c ```js const path = require('path'); module.exports = { - entry: './server/index.js', - externals: [ - { wasi_http: 'wasi_http' }, - { wasi_net: 'wasi_net' }, - { std: 'std' }, - ], - output: { - path: path.resolve('server-build'), - filename: 'index.js', - chunkFormat: 'module', - library: { - type: 'module', - }, - }, - experiments: { - outputModule: true, - }, - module: { - rules: [ - { - test: /\.js$/, - use: 'babel-loader', - }, - { - test: /\.css$/, - use: ['css-loader'], - }, - { - test: /\.svg$/, - use: ['svg-url-loader'], - }, - ], + entry: './server/index.js', + externals: [ + { wasi_http: 'wasi_http' }, + { wasi_net: 'wasi_net' }, + { std: 'std' }, + ], + output: { + path: path.resolve('server-build'), + filename: 'index.js', + chunkFormat: 'module', + library: { + type: 'module', }, + }, + experiments: { + outputModule: true, + }, + module: { + rules: [ + { + test: /\.js$/, + use: 'babel-loader', + }, + { + test: /\.css$/, + use: ['css-loader'], + }, + { + test: /\.svg$/, + use: ['svg-url-loader'], + }, + ], + }, }; ``` @@ -537,8 +537,8 @@ Now, revisit `package.json` and add helper npm scripts. Add `dev:build-server`, }, ``` -- The `dev:build-server` script sets the environment to `"development"` and invokes webpack with the configuration file you created earlier. -- The `dev:start-server` script runs the WasmEdge server from the `wasmedge` CLI tool to serve the built output. The `wasmedge_quickjs.wasm` program contains the QuickJS runtime. [Learn more](hello_world) +- The `dev:build-server` script sets the environment to `"development"` and invokes webpack with the configuration file you created earlier. +- The `dev:start-server` script runs the WasmEdge server from the `wasmedge` CLI tool to serve the built output. The `wasmedge_quickjs.wasm` program contains the QuickJS runtime. [Learn more](hello_world) Now you can run the following commands to build the client-side app, bundle and transpile the server code, and start up the server on `:8002`. @@ -583,35 +583,35 @@ const css = require('rollup-plugin-import-css'); const svg = require('rollup-plugin-svg'); const babelOptions = { - babelrc: false, - presets: ['@babel/preset-react'], - babelHelpers: 'bundled', + babelrc: false, + presets: ['@babel/preset-react'], + babelHelpers: 'bundled', }; module.exports = [ - { - input: './server/index.js', - output: { - file: 'server-build/index.js', - format: 'esm', - }, - external: ['std', 'wasi_net', 'wasi_http'], - plugins: [ - plugin_async(), - babel(babelOptions), - nodeResolve({ preferBuiltins: true }), - commonjs({ ignoreDynamicRequires: false }), - css(), - svg({ base64: true }), - globals(), - builtins(), - replace({ - preventAssignment: true, - 'process.env.NODE_ENV': JSON.stringify('production'), - 'process.env.NODE_DEBUG': JSON.stringify(''), - }), - ], + { + input: './server/index.js', + output: { + file: 'server-build/index.js', + format: 'esm', }, + external: ['std', 'wasi_net', 'wasi_http'], + plugins: [ + plugin_async(), + babel(babelOptions), + nodeResolve({ preferBuiltins: true }), + commonjs({ ignoreDynamicRequires: false }), + css(), + svg({ base64: true }), + globals(), + builtins(), + replace({ + preventAssignment: true, + 'process.env.NODE_ENV': JSON.stringify('production'), + 'process.env.NODE_DEBUG': JSON.stringify(''), + }), + ], + }, ]; ``` @@ -651,8 +651,8 @@ Now, revisit `package.json` and add helper npm scripts. Add `dev:build-server`, }, ``` -- The `dev:build-server` script sets the environment to `"development"` and invokes webpack with the configuration file you created earlier. -- The `dev:start-server` script runs the WasmEdge server from the `wasmedge` CLI tool to serve the built output. The `wasmedge_quickjs.wasm` program contains the QuickJS runtime. [Learn more](hello_world) +- The `dev:build-server` script sets the environment to `"development"` and invokes webpack with the configuration file you created earlier. +- The `dev:start-server` script runs the WasmEdge server from the `wasmedge` CLI tool to serve the built output. The `wasmedge_quickjs.wasm` program contains the QuickJS runtime. [Learn more](hello_world) Now you can run the following commands to build the client-side app, bundle and transpile the server code, and start up the server on `:8002`. diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/tensorflow.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/tensorflow.md index 80717e92..86c3b743 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/tensorflow.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/javascript/tensorflow.md @@ -22,7 +22,7 @@ let img_rgb = img.to_rgb().resize(192, 192); let rgb_pix = img_rgb.pixels(); let session = new TensorflowLiteSession( - __dirname + '/lite-model_aiy_vision_classifier_food_V1_1.tflite', + __dirname + '/lite-model_aiy_vision_classifier_food_V1_1.tflite', ); session.add_input('input', rgb_pix); session.run(); @@ -31,16 +31,16 @@ let output_view = new Uint8Array(output); let max = 0; let max_idx = 0; for (var i in output_view) { - let v = output_view[i]; - if (v > max) { - max = v; - max_idx = i; - } + let v = output_view[i]; + if (v > max) { + max = v; + max_idx = i; + } } let label_file = std.open(__dirname + '/aiy_food_V1_labelmap.txt', 'r'); let label = ''; for (var i = 0; i <= max_idx; i++) { - label = label_file.getline(); + label = label_file.getline(); } label_file.close(); diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/overview.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/overview.md index 76678931..5bfcb8b3 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/overview.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/overview.md @@ -11,17 +11,17 @@ WasmEdge Runtime 为 WebAssembly 字节码程序提供了一个定义明确的 我们将带领你了解什么是 WasmEdge,以及如何用不同的语言开发 Wasm 应用程序。我们将在这一本书中涵盖以下内容。 -- [快速入门](/category/getting-started-with-wasmEdge) -- 介绍[WasmEdge Runtime](/category/what-is-wasmedge) -- [建立和运行 WasmEdge 应用程序](/category/building-and-running-wasmedge-apps) -- 使用你的编程语言中开发 WebAssembly 应用程序,包括[Rust](/category/develop-wasm-apps-in-rust)、[C/C++](/category/develop-wasm-apps-in-cc)、[JavaScript](/category/develop-wasm-apps-in-javascript) 和 [Go](/category/develop-wasm-apps-in-go) 。 -- [使用现有的容器工具部署 Wasm 应用程序](/category/deploy-wasmedge-apps in-kubernetes) +- [快速入门](/category/getting-started-with-wasmEdge) +- 介绍[WasmEdge Runtime](/category/what-is-wasmedge) +- [建立和运行 WasmEdge 应用程序](/category/building-and-running-wasmedge-apps) +- 使用你的编程语言中开发 WebAssembly 应用程序,包括[Rust](/category/develop-wasm-apps-in-rust)、[C/C++](/category/develop-wasm-apps-in-cc)、[JavaScript](/category/develop-wasm-apps-in-javascript) 和 [Go](/category/develop-wasm-apps-in-go) 。 +- [使用现有的容器工具部署 Wasm 应用程序](/category/deploy-wasmedge-apps in-kubernetes) 除了这份指南以外,我们还有关于嵌入 WasmEdge 到 Host 程序和如何为 WasmEdge 做贡献的指南。 如果您发现一些问题或有任何反馈,您可以通过以下方式与我们联系。 -- [Discord Chat](https://discord.gg/U4B5sFTkFc) -- [创建一个 GitHub Issue 以获得技术支持](https://github.com/WasmEdge/WasmEdge/issues) -- [提交一个 GitHub Discussion](https://github.com/WasmEdge/WasmEdge/discussions) -- [在 Twitter 上关注 @realwasmedge](https://twitter.com/realwasmedge) +- [Discord Chat](https://discord.gg/U4B5sFTkFc) +- [创建一个 GitHub Issue 以获得技术支持](https://github.com/WasmEdge/WasmEdge/issues) +- [提交一个 GitHub Discussion](https://github.com/WasmEdge/WasmEdge/discussions) +- [在 Twitter 上关注 @realwasmedge](https://twitter.com/realwasmedge) diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/_category_.json index d27abb5a..3ad69ec2 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/_category_.json @@ -1,8 +1,8 @@ { - "label": "Develop Wasm Apps in Rust", - "position": 4, - "link": { - "type": "generated-index", - "description": "Rust is the first class citizen in WebAssembly ecosystem. In this chapter, we will learn how to create Wasm apps in Rust." - } + "label": "Develop Wasm Apps in Rust", + "position": 4, + "link": { + "type": "generated-index", + "description": "Rust is the first class citizen in WebAssembly ecosystem. In this chapter, we will learn how to create Wasm apps in Rust." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/ai_inference/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/ai_inference/_category_.json index c3d25162..342bc64e 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/ai_inference/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/ai_inference/_category_.json @@ -1,8 +1,8 @@ { - "label": "4.7 AI Inference", - "position": 8, - "link": { - "type": "generated-index", - "description": "Run AI Inference function based on TensorFlow, OpenVINO, Pytorch, and TensorFlow-lite in WasmEdge." - } + "label": "4.7 AI Inference", + "position": 8, + "link": { + "type": "generated-index", + "description": "Run AI Inference function based on TensorFlow, OpenVINO, Pytorch, and TensorFlow-lite in WasmEdge." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/command.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/command.md index 57edaba6..61774dfc 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/command.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/command.md @@ -10,8 +10,8 @@ Now, why limit ourselves to standard library functions? The same approach can be The command line program can -- Take input via command line arguments, as well as the `STDIN` stream. -- Return value and data via the `STDOUT` stream. +- Take input via command line arguments, as well as the `STDIN` stream. +- Return value and data via the `STDOUT` stream. Application developers for WasmEdge can use our Rust interface crate to access this functionality. In `Cargo.toml`, make sure that you have this dependency. diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/dapr.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/dapr.md index a5bdec4d..ef8f4247 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/dapr.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/dapr.md @@ -16,8 +16,8 @@ Before we started, make sure [you have Rust and WasmEdge installed](setup). You also need to install the following tools. -- [Dapr CLI installed](https://docs.dapr.io/getting-started/install-dapr-cli/) -- the [MySQL](https://dev.mysql.com/doc/mysql-installation-excerpt/5.7/en/) or [MariaDB](https://mariadb.com/kb/en/getting-installing-and-upgrading-mariadb/) or [TiDB](https://docs.pingcap.com/tidb/dev/quick-start-with-tidb) databases installed +- [Dapr CLI installed](https://docs.dapr.io/getting-started/install-dapr-cli/) +- the [MySQL](https://dev.mysql.com/doc/mysql-installation-excerpt/5.7/en/) or [MariaDB](https://mariadb.com/kb/en/getting-installing-and-upgrading-mariadb/) or [TiDB](https://docs.pingcap.com/tidb/dev/quick-start-with-tidb) databases installed ## The template project explanation @@ -29,15 +29,15 @@ This application consists of three microservices and a standalone web page that The WasmEdge's Dapr SDK is used to access Dapr sidecars from the microservice apps. Specifically, the [grayscale](https://github.com/second-state/dapr-wasm/tree/main/image-api-grayscale) microservice takes an image from an HTTP POST, turns it into grayscale, and returns the result image data in the HTTP response. -- It uses Dapr to discover and invoke the [events](https://github.com/second-state/dapr-wasm/tree/main/events-service) microservice to record every successful user request. -- It also stores each user’s IP address and last timestamp data in its Dapr sidecar’s state database. That allows the service to rate limit users if needed. +- It uses Dapr to discover and invoke the [events](https://github.com/second-state/dapr-wasm/tree/main/events-service) microservice to record every successful user request. +- It also stores each user’s IP address and last timestamp data in its Dapr sidecar’s state database. That allows the service to rate limit users if needed. The [classify](https://github.com/second-state/dapr-wasm/tree/main/image-api-classify) microservices takes an image from an HTTP POST, runs a Tensorflow model against it to classify the object on the image, and returns the result as a text label in the HTTP response. You can learn more about AI inference in Rust and WasmEdge [here](https://wasmedge.org/docs/category/ai-inference). It uses its own Dapr sidecar the same way as the [grayscale](https://github.com/second-state/dapr-wasm/tree/main/image-api-grayscale) microservice. The [events](https://github.com/second-state/dapr-wasm/tree/main/events-service) microservice takes JSON data from a HTTP POST and saves it to an external MySQL database for later analysis. -- It uses Dapr to make itself discoverable by name by other microservices that need to record events. -- It also uses its Dapr sidecar to store secrets such as the MySQL database credentials. +- It uses Dapr to make itself discoverable by name by other microservices that need to record events. +- It also uses its Dapr sidecar to store secrets such as the MySQL database credentials. Ok, enough concepts for the template project. Let's go ahead. diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/hello_world.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/hello_world.md index 9e74de9b..caa105a0 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/hello_world.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/hello_world.md @@ -71,8 +71,8 @@ $ wasmedge --reactor target/wasm32-wasi/debug/add.wasm add 2 2 Of course, in most cases, you will not call functions using CLI arguments. Instead, you will probably need to use a [language SDK from WasmEdge] to call the function, pass call parameters, and receive return values. Below are some SDK examples for complex call parameters and return values. -- [Use wasmedge-bindgen in a Go host app] -- [Use direct memory passing in a Go host app] +- [Use wasmedge-bindgen in a Go host app] +- [Use direct memory passing in a Go host app] ## Improve the Performance diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/http_service/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/http_service/_category_.json index bf05105e..57873f50 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/http_service/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/http_service/_category_.json @@ -1,8 +1,8 @@ { - "label": "4.3 HTTP services", - "position": 4, - "link": { - "type": "generated-index", - "description": "Create HTTP request with your familiar Rust framework and running in WasmEdge." - } + "label": "4.3 HTTP services", + "position": 4, + "link": { + "type": "generated-index", + "description": "Create HTTP request with your familiar Rust framework and running in WasmEdge." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/socket_networking/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/socket_networking/_category_.json index 13a90768..b2b28efd 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/socket_networking/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/rust/socket_networking/_category_.json @@ -1,8 +1,8 @@ { - "label": "4.4 Socket networking", - "position": 5, - "link": { - "type": "generated-index", - "description": "Run Tokio-based async Rust applications in WasmEdge." - } + "label": "4.4 Socket networking", + "position": 5, + "link": { + "type": "generated-index", + "description": "Run Tokio-based async Rust applications in WasmEdge." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/wasmedge/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/develop/wasmedge/_category_.json index c15c105e..e0373089 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/wasmedge/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/wasmedge/_category_.json @@ -1,8 +1,8 @@ { - "label": "What is WasmEdge", - "position": 2, - "link": { - "type": "generated-index", - "description": "WasmEdge is a WebAssembly runtime optimized for cloud-native and edge-native applications. It is a safe, fast, lightweight, and portable alternative to Linux containers in the cloud. It is also an ideal runtime for serverless functions, user-defined functions, embedded functions in application platforms and data pipelines." - } + "label": "What is WasmEdge", + "position": 2, + "link": { + "type": "generated-index", + "description": "WasmEdge is a WebAssembly runtime optimized for cloud-native and edge-native applications. It is a safe, fast, lightweight, and portable alternative to Linux containers in the cloud. It is also an ideal runtime for serverless functions, user-defined functions, embedded functions in application platforms and data pipelines." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/wasmedge/extensions/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/develop/wasmedge/extensions/_category_.json index 61c4df95..9c8bd3cc 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/wasmedge/extensions/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/wasmedge/extensions/_category_.json @@ -1,8 +1,8 @@ { - "label": "WasmEdge Extensions", - "position": 2, - "link": { - "type": "generated-index", - "description": "WasmEdge supports all standard WebAssembly and WASI specifications. In addition, it supports features and APIs that are crucial for the cloud-native use cases. WasmEdge is a superset of standard Wasm. Through its extension SDK, developers can easily add features they need to the WasmEdge Runtime as plugins." - } + "label": "WasmEdge Extensions", + "position": 2, + "link": { + "type": "generated-index", + "description": "WasmEdge supports all standard WebAssembly and WASI specifications. In addition, it supports features and APIs that are crucial for the cloud-native use cases. WasmEdge is a superset of standard Wasm. Through its extension SDK, developers can easily add features they need to the WasmEdge Runtime as plugins." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/wasmedge/extensions/proposals.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/wasmedge/extensions/proposals.md index 6c17f4d4..3b5507d2 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/wasmedge/extensions/proposals.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/wasmedge/extensions/proposals.md @@ -24,10 +24,10 @@ WasmEdge supports the following [WebAssembly proposals](https://github.com/WebAs The following proposals is under development and may be supported in the future: -- [Component Model][] -- [Exception handling][] -- [Garbage collection][] -- [WebAssembly C and C++ API][] +- [Component Model][] +- [Exception handling][] +- [Garbage collection][] +- [WebAssembly C and C++ API][] [Import/Export of Mutable Globals]: https://github.com/WebAssembly/mutable-global [Non-trapping float-to-int conversions]: https://github.com/WebAssembly/nontrapping-float-to-int-conversions @@ -58,7 +58,7 @@ WasmEdge implements the following [WASI proposals](https://github.com/WebAssembl The following proposals is under development and may be supported in the future: -- WebAssembly GC Proposal +- WebAssembly GC Proposal [Sockets]: https://github.com/WebAssembly/wasi-sockets [Crypto]: https://github.com/WebAssembly/wasi-crypto diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/wasmedge/extensions/unique_extensions.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/wasmedge/extensions/unique_extensions.md index b97475a8..59c189c4 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/wasmedge/extensions/unique_extensions.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/wasmedge/extensions/unique_extensions.md @@ -8,12 +8,12 @@ A challenge for running Wasm apps on the server side is the lack of support for Through its support for networking socket and related APIs, WasmEdge can run Rust applications that -- [provide HTTP services](https://github.com/WasmEdge/wasmedge_hyper_demo) -- [access external web services](https://github.com/WasmEdge/wasmedge_reqwest_demo) -- [connect to databases](https://github.com/WasmEdge/wasmedge-db-examples) -- [connect to messging queues](https://github.com/docker/awesome-compose/tree/master/wasmedge-kafka-mysql) -- [support database driven microservices](https://github.com/second-state/microservice-rust-mysql) -- [support microservices with Dapr sidecars](https://github.com/second-state/dapr-wasm) +- [provide HTTP services](https://github.com/WasmEdge/wasmedge_hyper_demo) +- [access external web services](https://github.com/WasmEdge/wasmedge_reqwest_demo) +- [connect to databases](https://github.com/WasmEdge/wasmedge-db-examples) +- [connect to messging queues](https://github.com/docker/awesome-compose/tree/master/wasmedge-kafka-mysql) +- [support database driven microservices](https://github.com/second-state/microservice-rust-mysql) +- [support microservices with Dapr sidecars](https://github.com/second-state/dapr-wasm) Furthermore, the networking socket APIs also allow us to support the node.js API, including both the `server` and `fetch()`, in WasmEdge's JavaScript runtime. diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/wasmedge/features.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/wasmedge/features.md index cb6597c7..aae2f015 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/wasmedge/features.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/wasmedge/features.md @@ -10,32 +10,32 @@ WasmEdge ([a sandbox project under CNCF](https://www.cncf.io/projects/wasmedge/) Taking advantage of [the LLVM-based AoT compiler](../build-and-run/aot), WasmEdge is the fastest WebAssembly runtime on the market. -- [A Lightweight Design for High-performance Serverless Computing](https://arxiv.org/abs/2010.07115), published on IEEE Software, Jan 2021. [https://arxiv.org/abs/2010.07115](https://arxiv.org/abs/2010.07115) -- [Performance Analysis for Arm vs. x86 CPUs in the Cloud](https://www.infoq.com/articles/arm-vs-x86-cloud-performance/), published on infoQ.com, Jan 2021. [https://www.infoq.com/articles/arm-vs-x86-cloud-performance/](https://www.infoq.com/articles/arm-vs-x86-cloud-performance/) -- [WasmEdge is the fastest WebAssembly Runtime in Suborbital Reactr test suite](https://blog.suborbital.dev/suborbital-wasmedge), Dec 2021 +- [A Lightweight Design for High-performance Serverless Computing](https://arxiv.org/abs/2010.07115), published on IEEE Software, Jan 2021. [https://arxiv.org/abs/2010.07115](https://arxiv.org/abs/2010.07115) +- [Performance Analysis for Arm vs. x86 CPUs in the Cloud](https://www.infoq.com/articles/arm-vs-x86-cloud-performance/), published on infoQ.com, Jan 2021. [https://www.infoq.com/articles/arm-vs-x86-cloud-performance/](https://www.infoq.com/articles/arm-vs-x86-cloud-performance/) +- [WasmEdge is the fastest WebAssembly Runtime in Suborbital Reactr test suite](https://blog.suborbital.dev/suborbital-wasmedge), Dec 2021 ## Cloud-native Extensions Besides WASI and the standard WebAssembly proposal, WasmEdge has some cloud-native extensions. -- non-blocking network sockets and web services with Rust, C, and JavaScript SDK -- MySQL-based database driver -- Key value store -- Gas meter for resource limitation -- WasmEdge-bindgen for complex para passing -- AI inference with TensorFlow Lite, Pytorch, and OpenVINO +- non-blocking network sockets and web services with Rust, C, and JavaScript SDK +- MySQL-based database driver +- Key value store +- Gas meter for resource limitation +- WasmEdge-bindgen for complex para passing +- AI inference with TensorFlow Lite, Pytorch, and OpenVINO ## JavaScript Support Through the [WasmEdge-Quickjs](https://github.com/second-state/wasmedge-quickjs) project, WasmEdge could run a JavaScript program, lowering the bar for developing a Wasm app. -- ES6 module and std API support -- NPM module support -- Native JS API in Rust -- Node.js API Support -- Async networking -- Fetch API -- React SSR +- ES6 module and std API support +- NPM module support +- Native JS API in Rust +- Node.js API Support +- Async networking +- Fetch API +- React SSR ## Cloud native orchestration @@ -55,15 +55,15 @@ WasmEdge supports a wide range of operating systems and hardware platforms. It a WasmEdge now supports: -- Linux (x86_64 and aarch64) -- MacOS (x86_64 and M1) -- Windows -- Android -- seL4 -- OpenWrt -- OpenHarmony -- Raspberry Pi -- RISC-V (WIP) +- Linux (x86_64 and aarch64) +- MacOS (x86_64 and M1) +- Windows +- Android +- seL4 +- OpenWrt +- OpenHarmony +- Raspberry Pi +- RISC-V (WIP) ## Easy extensible diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c++/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c++/_category_.json index 76bbd452..c10014ae 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c++/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c++/_category_.json @@ -1,8 +1,8 @@ { - "label": "C++ SDK for Embedding Wasm Functions", - "position": 9, - "link": { - "type": "generated-index", - "description": "In this chapter, we will learn how to Embed WasmEdge in your C++ host applications." - } + "label": "C++ SDK for Embedding Wasm Functions", + "position": 9, + "link": { + "type": "generated-index", + "description": "In this chapter, we will learn how to Embed WasmEdge in your C++ host applications." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/_category_.json index 2d615f6a..1a27ae33 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/_category_.json @@ -1,8 +1,8 @@ { - "label": "C SDK for Embedding Wasm Functions", - "position": 4, - "link": { - "type": "generated-index", - "description": "In this chapter, we will learn how to embed WasmEdge with the C API." - } + "label": "C SDK for Embedding Wasm Functions", + "position": 4, + "link": { + "type": "generated-index", + "description": "In this chapter, we will learn how to embed WasmEdge with the C API." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/externref.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/externref.md index 40863e15..9034ecc9 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/externref.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/externref.md @@ -216,25 +216,25 @@ int main() { 1. Install the WasmEdge shared library. - Please refer to the [Installation](/develop/build-and-run/install) for details. + Please refer to the [Installation](/develop/build-and-run/install) for details. 2. Prepare the WASM file and the `main.c` source file as above. 3. Compile - ```bash - gcc main.c -lwasmedge - # Or you can use g++ for the C++ case, or use the clang. - ``` + ```bash + gcc main.c -lwasmedge + # Or you can use g++ for the C++ case, or use the clang. + ``` 4. Run the Test - ```bash - $ ./a.out - Test 1 -- `call_add` -- 1234 + 5678 = 6912 - Test 2 -- `call_mul` -- 789 * 4321 = 3409269 - Test 3 -- `call_mul` -- 8256 ^ 2 = 68161536 - ``` + ```bash + $ ./a.out + Test 1 -- `call_add` -- 1234 + 5678 = 6912 + Test 2 -- `call_mul` -- 789 * 4321 = 3409269 + Test 3 -- `call_mul` -- 8256 ^ 2 = 68161536 + ``` ## Wasm module with External References diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/intro.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/intro.md index 475f032a..429515e3 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/intro.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/intro.md @@ -114,14 +114,14 @@ sys 0m0.011s ## API References -- [0.12.0](/embed/c/reference/0.12.0) -- [0.11.2](/embed/c/reference/0.11.2) -- [0.10.1](/embed/c/reference/0.10.1) -- [0.9.1](/embed/c/reference/0.9.1) +- [0.12.0](/embed/c/reference/0.12.0) +- [0.11.2](/embed/c/reference/0.11.2) +- [0.10.1](/embed/c/reference/0.10.1) +- [0.9.1](/embed/c/reference/0.9.1) ## Examples -- Link with the [WasmEdge library](/embed/c/library) -- Use the [external reference](/embed/c/externref) of WebAssembly input and output in C/C++ -- Implement the [host functions](/embed/c/host_function) in C/C++ -- [Multiple WASM Module Example](/embed/c/multiple_modules.md) +- Link with the [WasmEdge library](/embed/c/library) +- Use the [external reference](/embed/c/externref) of WebAssembly input and output in C/C++ +- Implement the [host functions](/embed/c/host_function) in C/C++ +- [Multiple WASM Module Example](/embed/c/multiple_modules.md) diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/multiple_modules.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/multiple_modules.md index b5476a21..6f8e2a63 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/multiple_modules.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/multiple_modules.md @@ -75,466 +75,466 @@ With the `WasmEdge_VMContext`, developers can instantiate and execute WASM quick 1. Register and instantiate the `lib.wasm` from file directly - ```c - #include - #include - - int main() { - /* The result. */ - WasmEdge_Result Res; - - /* The params and returns. */ - WasmEdge_Value Params[2], Returns[1]; - - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* Register the `lib.wasm` from file with the module name "math". */ - WasmEdge_String ModuleName = WasmEdge_StringCreateByCString("math"); - Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModuleName, "lib.wasm"); - WasmEdge_StringDelete(ModuleName); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Register lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* Instantiate the `test.wasm`. */ - /* - * Developers can use the APIs such as `WasmEdge_VMRunWasmFromFile` to - * instantiate and execute quickly. - */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "test.wasm"); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Load test.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Validate test.wasm error: %s\n", - WasmEdge_ResultGetMessage(Res)); - return -1; - } - Res = WasmEdge_VMInstantiate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Instantiate test.wasm error: %s\n", - WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* Invoke the functions. */ - /* Invoke the "add_and_square" to calculate (123 + 456)^2 */ - WasmEdge_String FuncName = - WasmEdge_StringCreateByCString("add_and_square"); - Params[0] = WasmEdge_ValueGenI32(123); - Params[1] = WasmEdge_ValueGenI32(456); - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); - WasmEdge_StringDelete(FuncName); - if (WasmEdge_ResultOK(Res)) { - printf("Get the '(%d + %d)^2' result: %d\n", 123, 456, - WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execute 'add_and_square' error: %s\n", - WasmEdge_ResultGetMessage(Res)); - } - /* Invoke the "sum_of_squares" to calculate (77^2 + 88^2) */ - FuncName = WasmEdge_StringCreateByCString("sum_of_squares"); - Params[0] = WasmEdge_ValueGenI32(77); - Params[1] = WasmEdge_ValueGenI32(88); - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); - WasmEdge_StringDelete(FuncName); - if (WasmEdge_ResultOK(Res)) { - printf("Get the '%d^2 + %d^2' result: %d\n", 77, 88, - WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execute 'sum_of_squares' error: %s\n", - WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - return 0; - } - ``` - - Then compile and execute: - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the '(123 + 456)^2' result: 335241 - Get the '77^2 + 88^2' result: 13673 - ``` + ```c + #include + #include + + int main() { + /* The result. */ + WasmEdge_Result Res; + + /* The params and returns. */ + WasmEdge_Value Params[2], Returns[1]; + + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* Register the `lib.wasm` from file with the module name "math". */ + WasmEdge_String ModuleName = WasmEdge_StringCreateByCString("math"); + Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModuleName, "lib.wasm"); + WasmEdge_StringDelete(ModuleName); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Register lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* Instantiate the `test.wasm`. */ + /* + * Developers can use the APIs such as `WasmEdge_VMRunWasmFromFile` to + * instantiate and execute quickly. + */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "test.wasm"); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Load test.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Validate test.wasm error: %s\n", + WasmEdge_ResultGetMessage(Res)); + return -1; + } + Res = WasmEdge_VMInstantiate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Instantiate test.wasm error: %s\n", + WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* Invoke the functions. */ + /* Invoke the "add_and_square" to calculate (123 + 456)^2 */ + WasmEdge_String FuncName = + WasmEdge_StringCreateByCString("add_and_square"); + Params[0] = WasmEdge_ValueGenI32(123); + Params[1] = WasmEdge_ValueGenI32(456); + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); + WasmEdge_StringDelete(FuncName); + if (WasmEdge_ResultOK(Res)) { + printf("Get the '(%d + %d)^2' result: %d\n", 123, 456, + WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execute 'add_and_square' error: %s\n", + WasmEdge_ResultGetMessage(Res)); + } + /* Invoke the "sum_of_squares" to calculate (77^2 + 88^2) */ + FuncName = WasmEdge_StringCreateByCString("sum_of_squares"); + Params[0] = WasmEdge_ValueGenI32(77); + Params[1] = WasmEdge_ValueGenI32(88); + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); + WasmEdge_StringDelete(FuncName); + if (WasmEdge_ResultOK(Res)) { + printf("Get the '%d^2 + %d^2' result: %d\n", 77, 88, + WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execute 'sum_of_squares' error: %s\n", + WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + return 0; + } + ``` + + Then compile and execute: + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the '(123 + 456)^2' result: 335241 + Get the '77^2 + 88^2' result: 13673 + ``` 2. Register and instantiate the `lib.wasm` from buffer - ```c - #include - #include - - int main() { - /* The result. */ - WasmEdge_Result Res; - - /* The params and returns. */ - WasmEdge_Value Params[2], Returns[1]; - - /* The `lib.wasm` buffer example. */ - /* Developers can also load the buffer from file. */ - uint8_t WASM[] = {/* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Function section */ - 0x03, 0x03, 0x02, 0x00, 0x00, - /* Export section */ - 0x07, 0x0D, 0x02, - /* export function: "add" */ - 0x03, 0x61, 0x64, 0x64, 0x00, 0x00, - /* export function: "mul" */ - 0x03, 0x6D, 0x75, 0x6C, 0x00, 0x01, - /* Code section */ - 0x0A, 0x11, 0x02, - /* "add" code body */ - 0x07, 0x00, 0x20, 0x00, 0x20, 0x01, 0x6A, 0x0B, - /* "mul" code body */ - 0x07, 0x00, 0x20, 0x00, 0x20, 0x01, 0x6C, 0x0B}; - - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* Register the `lib.wasm` from the buffer with the module name "math". */ - WasmEdge_String ModuleName = WasmEdge_StringCreateByCString("math"); - Res = WasmEdge_VMRegisterModuleFromBuffer(VMCxt, ModuleName, WASM, - sizeof(WASM)); - WasmEdge_StringDelete(ModuleName); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Register lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* Instantiate the `test.wasm`. */ - /* - * Developers can use the APIs such as `WasmEdge_VMRunWasmFromFile` to - * instantiate and execute quickly. - */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "test.wasm"); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Load test.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Validate test.wasm error: %s\n", - WasmEdge_ResultGetMessage(Res)); - return -1; - } - Res = WasmEdge_VMInstantiate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Instantiate test.wasm error: %s\n", - WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* Invoke the functions. */ - /* Invoke the "add_and_square" to calculate (123 + 456)^2 */ - WasmEdge_String FuncName = - WasmEdge_StringCreateByCString("add_and_square"); - Params[0] = WasmEdge_ValueGenI32(123); - Params[1] = WasmEdge_ValueGenI32(456); - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); - WasmEdge_StringDelete(FuncName); - if (WasmEdge_ResultOK(Res)) { - printf("Get the '(%d + %d)^2' result: %d\n", 123, 456, - WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execute 'add_and_square' error: %s\n", - WasmEdge_ResultGetMessage(Res)); - } - /* Invoke the "sum_of_squares" to calculate (77^2 + 88^2) */ - FuncName = WasmEdge_StringCreateByCString("sum_of_squares"); - Params[0] = WasmEdge_ValueGenI32(77); - Params[1] = WasmEdge_ValueGenI32(88); - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); - WasmEdge_StringDelete(FuncName); - if (WasmEdge_ResultOK(Res)) { - printf("Get the '%d^2 + %d^2' result: %d\n", 77, 88, - WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execute 'sum_of_squares' error: %s\n", - WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - return 0; - } - ``` - - Then compile and execute: - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the '(123 + 456)^2' result: 335241 - Get the '77^2 + 88^2' result: 13673 - ``` + ```c + #include + #include + + int main() { + /* The result. */ + WasmEdge_Result Res; + + /* The params and returns. */ + WasmEdge_Value Params[2], Returns[1]; + + /* The `lib.wasm` buffer example. */ + /* Developers can also load the buffer from file. */ + uint8_t WASM[] = {/* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Function section */ + 0x03, 0x03, 0x02, 0x00, 0x00, + /* Export section */ + 0x07, 0x0D, 0x02, + /* export function: "add" */ + 0x03, 0x61, 0x64, 0x64, 0x00, 0x00, + /* export function: "mul" */ + 0x03, 0x6D, 0x75, 0x6C, 0x00, 0x01, + /* Code section */ + 0x0A, 0x11, 0x02, + /* "add" code body */ + 0x07, 0x00, 0x20, 0x00, 0x20, 0x01, 0x6A, 0x0B, + /* "mul" code body */ + 0x07, 0x00, 0x20, 0x00, 0x20, 0x01, 0x6C, 0x0B}; + + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* Register the `lib.wasm` from the buffer with the module name "math". */ + WasmEdge_String ModuleName = WasmEdge_StringCreateByCString("math"); + Res = WasmEdge_VMRegisterModuleFromBuffer(VMCxt, ModuleName, WASM, + sizeof(WASM)); + WasmEdge_StringDelete(ModuleName); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Register lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* Instantiate the `test.wasm`. */ + /* + * Developers can use the APIs such as `WasmEdge_VMRunWasmFromFile` to + * instantiate and execute quickly. + */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "test.wasm"); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Load test.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Validate test.wasm error: %s\n", + WasmEdge_ResultGetMessage(Res)); + return -1; + } + Res = WasmEdge_VMInstantiate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Instantiate test.wasm error: %s\n", + WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* Invoke the functions. */ + /* Invoke the "add_and_square" to calculate (123 + 456)^2 */ + WasmEdge_String FuncName = + WasmEdge_StringCreateByCString("add_and_square"); + Params[0] = WasmEdge_ValueGenI32(123); + Params[1] = WasmEdge_ValueGenI32(456); + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); + WasmEdge_StringDelete(FuncName); + if (WasmEdge_ResultOK(Res)) { + printf("Get the '(%d + %d)^2' result: %d\n", 123, 456, + WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execute 'add_and_square' error: %s\n", + WasmEdge_ResultGetMessage(Res)); + } + /* Invoke the "sum_of_squares" to calculate (77^2 + 88^2) */ + FuncName = WasmEdge_StringCreateByCString("sum_of_squares"); + Params[0] = WasmEdge_ValueGenI32(77); + Params[1] = WasmEdge_ValueGenI32(88); + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); + WasmEdge_StringDelete(FuncName); + if (WasmEdge_ResultOK(Res)) { + printf("Get the '%d^2 + %d^2' result: %d\n", 77, 88, + WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execute 'sum_of_squares' error: %s\n", + WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + return 0; + } + ``` + + Then compile and execute: + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the '(123 + 456)^2' result: 335241 + Get the '77^2 + 88^2' result: 13673 + ``` 3. Load the `lib.wasm` to an AST Context first - ```c - #include - #include - - int main() { - /* The result. */ - WasmEdge_Result Res; - - /* The params and returns. */ - WasmEdge_Value Params[2], Returns[1]; - - /* Assume that the `lib.wasm` has loaded first. */ - WasmEdge_LoaderContext *LoadCxt = WasmEdge_LoaderCreate(NULL); - WasmEdge_ASTModuleContext *LibASTCxt = NULL; - Res = WasmEdge_LoaderParseFromFile(LoadCxt, &LibASTCxt, "lib.wasm"); - WasmEdge_LoaderDelete(LoadCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Load lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* Register the loaded AST context with the module name "math". */ - WasmEdge_String ModuleName = WasmEdge_StringCreateByCString("math"); - Res = - WasmEdge_VMRegisterModuleFromASTModule(VMCxt, ModuleName, LibASTCxt); - WasmEdge_StringDelete(ModuleName); - WasmEdge_ASTModuleDelete(LibASTCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Register lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* Instantiate the `test.wasm`. */ - /* - * Developers can use the APIs such as `WasmEdge_VMRunWasmFromFile` to - * instantiate and execute quickly. - */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "test.wasm"); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Load test.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Validate test.wasm error: %s\n", - WasmEdge_ResultGetMessage(Res)); - return -1; - } - Res = WasmEdge_VMInstantiate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - printf("Instantiate test.wasm error: %s\n", - WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* Invoke the functions. */ - /* Invoke the "add_and_square" to calculate (123 + 456)^2 */ - WasmEdge_String FuncName = - WasmEdge_StringCreateByCString("add_and_square"); - Params[0] = WasmEdge_ValueGenI32(123); - Params[1] = WasmEdge_ValueGenI32(456); - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); - WasmEdge_StringDelete(FuncName); - if (WasmEdge_ResultOK(Res)) { - printf("Get the '(%d + %d)^2' result: %d\n", 123, 456, - WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execute 'add_and_square' error: %s\n", - WasmEdge_ResultGetMessage(Res)); - } - /* Invoke the "sum_of_squares" to calculate (77^2 + 88^2) */ - FuncName = WasmEdge_StringCreateByCString("sum_of_squares"); - Params[0] = WasmEdge_ValueGenI32(77); - Params[1] = WasmEdge_ValueGenI32(88); - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); - WasmEdge_StringDelete(FuncName); - if (WasmEdge_ResultOK(Res)) { - printf("Get the '%d^2 + %d^2' result: %d\n", 77, 88, - WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execute 'sum_of_squares' error: %s\n", - WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - return 0; - } - ``` - - Then compile and execute: - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the '(123 + 456)^2' result: 335241 - Get the '77^2 + 88^2' result: 13673 - ``` + ```c + #include + #include + + int main() { + /* The result. */ + WasmEdge_Result Res; + + /* The params and returns. */ + WasmEdge_Value Params[2], Returns[1]; + + /* Assume that the `lib.wasm` has loaded first. */ + WasmEdge_LoaderContext *LoadCxt = WasmEdge_LoaderCreate(NULL); + WasmEdge_ASTModuleContext *LibASTCxt = NULL; + Res = WasmEdge_LoaderParseFromFile(LoadCxt, &LibASTCxt, "lib.wasm"); + WasmEdge_LoaderDelete(LoadCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Load lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* Register the loaded AST context with the module name "math". */ + WasmEdge_String ModuleName = WasmEdge_StringCreateByCString("math"); + Res = + WasmEdge_VMRegisterModuleFromASTModule(VMCxt, ModuleName, LibASTCxt); + WasmEdge_StringDelete(ModuleName); + WasmEdge_ASTModuleDelete(LibASTCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Register lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* Instantiate the `test.wasm`. */ + /* + * Developers can use the APIs such as `WasmEdge_VMRunWasmFromFile` to + * instantiate and execute quickly. + */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "test.wasm"); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Load test.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Validate test.wasm error: %s\n", + WasmEdge_ResultGetMessage(Res)); + return -1; + } + Res = WasmEdge_VMInstantiate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + printf("Instantiate test.wasm error: %s\n", + WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* Invoke the functions. */ + /* Invoke the "add_and_square" to calculate (123 + 456)^2 */ + WasmEdge_String FuncName = + WasmEdge_StringCreateByCString("add_and_square"); + Params[0] = WasmEdge_ValueGenI32(123); + Params[1] = WasmEdge_ValueGenI32(456); + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); + WasmEdge_StringDelete(FuncName); + if (WasmEdge_ResultOK(Res)) { + printf("Get the '(%d + %d)^2' result: %d\n", 123, 456, + WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execute 'add_and_square' error: %s\n", + WasmEdge_ResultGetMessage(Res)); + } + /* Invoke the "sum_of_squares" to calculate (77^2 + 88^2) */ + FuncName = WasmEdge_StringCreateByCString("sum_of_squares"); + Params[0] = WasmEdge_ValueGenI32(77); + Params[1] = WasmEdge_ValueGenI32(88); + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); + WasmEdge_StringDelete(FuncName); + if (WasmEdge_ResultOK(Res)) { + printf("Get the '%d^2 + %d^2' result: %d\n", 77, 88, + WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execute 'sum_of_squares' error: %s\n", + WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + return 0; + } + ``` + + Then compile and execute: + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the '(123 + 456)^2' result: 335241 + Get the '77^2 + 88^2' result: 13673 + ``` 4. Instantiate the `lib.wasm` first - ```c - #include - #include - - int main() { - /* The result. */ - WasmEdge_Result Res; - - /* The params and returns. */ - WasmEdge_Value Params[2], Returns[1]; - - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* Assume that the `lib.wasm` has instantiated first. */ - WasmEdge_LoaderContext *LoadCxt = WasmEdge_LoaderCreate(NULL); - WasmEdge_ValidatorContext *ValidCxt = WasmEdge_ValidatorCreate(NULL); - WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(NULL, NULL); - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - WasmEdge_ASTModuleContext *LibASTCxt = NULL; - WasmEdge_ModuleInstanceContext *LibInstCxt = NULL; - Res = WasmEdge_LoaderParseFromFile(LoadCxt, &LibASTCxt, "lib.wasm"); - WasmEdge_LoaderDelete(LoadCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Load lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - Res = WasmEdge_ValidatorValidate(ValidCxt, LibASTCxt); - WasmEdge_ValidatorDelete(ValidCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_ASTModuleDelete(LibASTCxt); - printf("Validate lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - /* - * The module name is determined when instantiation. - * If use the `WasmEdge_ExecutorInstantiate` API, the module name will be - * "". - */ - WasmEdge_String ModuleName = WasmEdge_StringCreateByCString("math"); - Res = WasmEdge_ExecutorRegister(ExecCxt, &LibInstCxt, StoreCxt, LibASTCxt, - ModuleName); - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_ASTModuleDelete(LibASTCxt); - WasmEdge_StringDelete(ModuleName); - WasmEdge_StoreDelete(StoreCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiate lib.wasm error: %s\n", - WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* Register the module instance with the module name "math". */ - /* The module name has determined when instantiating the `lib.wasm`. */ - Res = WasmEdge_VMRegisterModuleFromImport(VMCxt, LibInstCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - WasmEdge_ModuleInstanceDelete(LibInstCxt); - printf("Register lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* Instantiate the `test.wasm`. */ - /* - * Developers can use the APIs such as `WasmEdge_VMRunWasmFromFile` to - * instantiate and execute quickly. - */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "test.wasm"); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - WasmEdge_ModuleInstanceDelete(LibInstCxt); - printf("Load test.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - WasmEdge_ModuleInstanceDelete(LibInstCxt); - printf("Validate test.wasm error: %s\n", - WasmEdge_ResultGetMessage(Res)); - return -1; - } - Res = WasmEdge_VMInstantiate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - WasmEdge_VMDelete(VMCxt); - WasmEdge_ModuleInstanceDelete(LibInstCxt); - printf("Instantiate test.wasm error: %s\n", - WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* Invoke the functions. */ - /* Invoke the "add_and_square" to calculate (123 + 456)^2 */ - WasmEdge_String FuncName = - WasmEdge_StringCreateByCString("add_and_square"); - Params[0] = WasmEdge_ValueGenI32(123); - Params[1] = WasmEdge_ValueGenI32(456); - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); - WasmEdge_StringDelete(FuncName); - if (WasmEdge_ResultOK(Res)) { - printf("Get the '(%d + %d)^2' result: %d\n", 123, 456, - WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execute 'add_and_square' error: %s\n", - WasmEdge_ResultGetMessage(Res)); - } - /* Invoke the "sum_of_squares" to calculate (77^2 + 88^2) */ - FuncName = WasmEdge_StringCreateByCString("sum_of_squares"); - Params[0] = WasmEdge_ValueGenI32(77); - Params[1] = WasmEdge_ValueGenI32(88); - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); - WasmEdge_StringDelete(FuncName); - if (WasmEdge_ResultOK(Res)) { - printf("Get the '%d^2 + %d^2' result: %d\n", 77, 88, - WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execute 'sum_of_squares' error: %s\n", - WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - /* The imported module instance should be destroyed. */ - WasmEdge_ModuleInstanceDelete(LibInstCxt); - return 0; - } - ``` - - Then compile and execute: - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the '(123 + 456)^2' result: 335241 - Get the '77^2 + 88^2' result: 13673 - ``` + ```c + #include + #include + + int main() { + /* The result. */ + WasmEdge_Result Res; + + /* The params and returns. */ + WasmEdge_Value Params[2], Returns[1]; + + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* Assume that the `lib.wasm` has instantiated first. */ + WasmEdge_LoaderContext *LoadCxt = WasmEdge_LoaderCreate(NULL); + WasmEdge_ValidatorContext *ValidCxt = WasmEdge_ValidatorCreate(NULL); + WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(NULL, NULL); + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + WasmEdge_ASTModuleContext *LibASTCxt = NULL; + WasmEdge_ModuleInstanceContext *LibInstCxt = NULL; + Res = WasmEdge_LoaderParseFromFile(LoadCxt, &LibASTCxt, "lib.wasm"); + WasmEdge_LoaderDelete(LoadCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Load lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + Res = WasmEdge_ValidatorValidate(ValidCxt, LibASTCxt); + WasmEdge_ValidatorDelete(ValidCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_ASTModuleDelete(LibASTCxt); + printf("Validate lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + /* + * The module name is determined when instantiation. + * If use the `WasmEdge_ExecutorInstantiate` API, the module name will be + * "". + */ + WasmEdge_String ModuleName = WasmEdge_StringCreateByCString("math"); + Res = WasmEdge_ExecutorRegister(ExecCxt, &LibInstCxt, StoreCxt, LibASTCxt, + ModuleName); + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_ASTModuleDelete(LibASTCxt); + WasmEdge_StringDelete(ModuleName); + WasmEdge_StoreDelete(StoreCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiate lib.wasm error: %s\n", + WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* Register the module instance with the module name "math". */ + /* The module name has determined when instantiating the `lib.wasm`. */ + Res = WasmEdge_VMRegisterModuleFromImport(VMCxt, LibInstCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + WasmEdge_ModuleInstanceDelete(LibInstCxt); + printf("Register lib.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* Instantiate the `test.wasm`. */ + /* + * Developers can use the APIs such as `WasmEdge_VMRunWasmFromFile` to + * instantiate and execute quickly. + */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "test.wasm"); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + WasmEdge_ModuleInstanceDelete(LibInstCxt); + printf("Load test.wasm error: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + WasmEdge_ModuleInstanceDelete(LibInstCxt); + printf("Validate test.wasm error: %s\n", + WasmEdge_ResultGetMessage(Res)); + return -1; + } + Res = WasmEdge_VMInstantiate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + WasmEdge_VMDelete(VMCxt); + WasmEdge_ModuleInstanceDelete(LibInstCxt); + printf("Instantiate test.wasm error: %s\n", + WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* Invoke the functions. */ + /* Invoke the "add_and_square" to calculate (123 + 456)^2 */ + WasmEdge_String FuncName = + WasmEdge_StringCreateByCString("add_and_square"); + Params[0] = WasmEdge_ValueGenI32(123); + Params[1] = WasmEdge_ValueGenI32(456); + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); + WasmEdge_StringDelete(FuncName); + if (WasmEdge_ResultOK(Res)) { + printf("Get the '(%d + %d)^2' result: %d\n", 123, 456, + WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execute 'add_and_square' error: %s\n", + WasmEdge_ResultGetMessage(Res)); + } + /* Invoke the "sum_of_squares" to calculate (77^2 + 88^2) */ + FuncName = WasmEdge_StringCreateByCString("sum_of_squares"); + Params[0] = WasmEdge_ValueGenI32(77); + Params[1] = WasmEdge_ValueGenI32(88); + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 2, Returns, 1); + WasmEdge_StringDelete(FuncName); + if (WasmEdge_ResultOK(Res)) { + printf("Get the '%d^2 + %d^2' result: %d\n", 77, 88, + WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execute 'sum_of_squares' error: %s\n", + WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + /* The imported module instance should be destroyed. */ + WasmEdge_ModuleInstanceDelete(LibInstCxt); + return 0; + } + ``` + + Then compile and execute: + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the '(123 + 456)^2' result: 335241 + Get the '77^2 + 88^2' result: 13673 + ``` ## Linking WASM Modules By the Executor Context diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/0.10.1.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/0.10.1.md index 8aeb0ed0..e91cb0db 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/0.10.1.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/0.10.1.md @@ -10,41 +10,41 @@ sidebar_position: 5 ## Table of Contents -- [WasmEdge Installation](#wasmedge-installation) - - [Download And Install](#download-and-install) - - [Compile Sources](#compile-sources) -- [WasmEdge Basics](#wasmedge-basics) - - [Version](#version) - - [Logging Settings](#logging-settings) - - [Value Types](#value-types) - - [Strings](#strings) - - [Results](#results) - - [Contexts](#contexts) - - [WASM data structures](#wasm-data-structures) - - [Async](#async) - - [Configurations](#configurations) - - [Statistics](#statistics) - - [Tools driver](#tools-driver) -- [WasmEdge VM](#wasmedge-vm) - - [WASM Execution Example With VM Context](#wasm-execution-example-with-vm-context) - - [VM Creations](#vm-creations) - - [Preregistrations](#preregistrations) - - [Host Module Registrations](#host-module-registrations) - - [WASM Registrations And Executions](#wasm-registrations-and-executions) - - [Asynchronous execution](#asynchronous-execution) - - [Instance Tracing](#instance-tracing) -- [WasmEdge Runtime](#wasmedge-runtime) - - [WASM Execution Example Step-By-Step](#wasm-execution-example-step-by-step) - - [Loader](#loader) - - [Validator](#validator) - - [Executor](#executor) - - [AST Module](#ast-module) - - [Store](#store) - - [Instances](#instances) - - [Host Functions](#host-functions) -- [WasmEdge AOT Compiler](#wasmedge-aot-compiler) - - [Compilation Example](#compilation-example) - - [Compiler Options](#compiler-options) +- [WasmEdge Installation](#wasmedge-installation) + - [Download And Install](#download-and-install) + - [Compile Sources](#compile-sources) +- [WasmEdge Basics](#wasmedge-basics) + - [Version](#version) + - [Logging Settings](#logging-settings) + - [Value Types](#value-types) + - [Strings](#strings) + - [Results](#results) + - [Contexts](#contexts) + - [WASM data structures](#wasm-data-structures) + - [Async](#async) + - [Configurations](#configurations) + - [Statistics](#statistics) + - [Tools driver](#tools-driver) +- [WasmEdge VM](#wasmedge-vm) + - [WASM Execution Example With VM Context](#wasm-execution-example-with-vm-context) + - [VM Creations](#vm-creations) + - [Preregistrations](#preregistrations) + - [Host Module Registrations](#host-module-registrations) + - [WASM Registrations And Executions](#wasm-registrations-and-executions) + - [Asynchronous execution](#asynchronous-execution) + - [Instance Tracing](#instance-tracing) +- [WasmEdge Runtime](#wasmedge-runtime) + - [WASM Execution Example Step-By-Step](#wasm-execution-example-step-by-step) + - [Loader](#loader) + - [Validator](#validator) + - [Executor](#executor) + - [AST Module](#ast-module) + - [Store](#store) + - [Instances](#instances) + - [Host Functions](#host-functions) +- [WasmEdge AOT Compiler](#wasmedge-aot-compiler) + - [Compilation Example](#compilation-example) + - [Compiler Options](#compiler-options) ## WasmEdge Installation @@ -64,27 +64,27 @@ After the installation of WasmEdge, the following guide can help you to test for 1. Prepare the test C file (and assumed saved as `test.c`): - ```c - #include - #include - int main() { - printf("WasmEdge version: %s\n", WasmEdge_VersionGet()); - return 0; - } - ``` + ```c + #include + #include + int main() { + printf("WasmEdge version: %s\n", WasmEdge_VersionGet()); + return 0; + } + ``` 2. Compile the file with `gcc` or `clang`. - ```bash - gcc test.c -lwasmedge_c - ``` + ```bash + gcc test.c -lwasmedge_c + ``` 3. Run and get the expected output. - ```bash - $ ./a.out - WasmEdge version: 0.10.1 - ``` + ```bash + $ ./a.out + WasmEdge version: 0.10.1 + ``` ## WasmEdge Basics @@ -112,53 +112,53 @@ In WasmEdge, developers should convert the values to `WasmEdge_Value` objects th 1. Number types: `i32`, `i64`, `f32`, `f64`, and `v128` for the `SIMD` proposal - ```c - WasmEdge_Value Val; - Val = WasmEdge_ValueGenI32(123456); - printf("%d\n", WasmEdge_ValueGetI32(Val)); - /* Will print "123456" */ - Val = WasmEdge_ValueGenI64(1234567890123LL); - printf("%ld\n", WasmEdge_ValueGetI64(Val)); - /* Will print "1234567890123" */ - Val = WasmEdge_ValueGenF32(123.456f); - printf("%f\n", WasmEdge_ValueGetF32(Val)); - /* Will print "123.456001" */ - Val = WasmEdge_ValueGenF64(123456.123456789); - printf("%.10f\n", WasmEdge_ValueGetF64(Val)); - /* Will print "123456.1234567890" */ - ``` + ```c + WasmEdge_Value Val; + Val = WasmEdge_ValueGenI32(123456); + printf("%d\n", WasmEdge_ValueGetI32(Val)); + /* Will print "123456" */ + Val = WasmEdge_ValueGenI64(1234567890123LL); + printf("%ld\n", WasmEdge_ValueGetI64(Val)); + /* Will print "1234567890123" */ + Val = WasmEdge_ValueGenF32(123.456f); + printf("%f\n", WasmEdge_ValueGetF32(Val)); + /* Will print "123.456001" */ + Val = WasmEdge_ValueGenF64(123456.123456789); + printf("%.10f\n", WasmEdge_ValueGetF64(Val)); + /* Will print "123456.1234567890" */ + ``` 2. Reference types: `funcref` and `externref` for the `Reference-Types` proposal - ```c - WasmEdge_Value Val; - void *Ptr; - bool IsNull; - uint32_t Num = 10; - /* Generate a externref to NULL. */ - Val = WasmEdge_ValueGenNullRef(WasmEdge_RefType_ExternRef); - IsNull = WasmEdge_ValueIsNullRef(Val); - /* The `IsNull` will be `TRUE`. */ - Ptr = WasmEdge_ValueGetExternRef(Val); - /* The `Ptr` will be `NULL`. */ - - /* Get the function instance by creation or from module instance. */ - const WasmEdge_FunctionInstanceContext *FuncCxt = ...; - /* Generate a funcref with the given function instance context. */ - Val = WasmEdge_ValueGenFuncRef(FuncCxt); - const WasmEdge_FunctionInstanceContext *GotFuncCxt = WasmEdge_ValueGetFuncRef(Val); - /* The `GotFuncCxt` will be the same as `FuncCxt`. */ - - /* Generate a externref to `Num`. */ - Val = WasmEdge_ValueGenExternRef(&Num); - Ptr = WasmEdge_ValueGetExternRef(Val); - /* The `Ptr` will be `&Num`. */ - printf("%u\n", *(uint32_t *)Ptr); - /* Will print "10" */ - Num += 55; - printf("%u\n", *(uint32_t *)Ptr); - /* Will print "65" */ - ``` + ```c + WasmEdge_Value Val; + void *Ptr; + bool IsNull; + uint32_t Num = 10; + /* Generate a externref to NULL. */ + Val = WasmEdge_ValueGenNullRef(WasmEdge_RefType_ExternRef); + IsNull = WasmEdge_ValueIsNullRef(Val); + /* The `IsNull` will be `TRUE`. */ + Ptr = WasmEdge_ValueGetExternRef(Val); + /* The `Ptr` will be `NULL`. */ + + /* Get the function instance by creation or from module instance. */ + const WasmEdge_FunctionInstanceContext *FuncCxt = ...; + /* Generate a funcref with the given function instance context. */ + Val = WasmEdge_ValueGenFuncRef(FuncCxt); + const WasmEdge_FunctionInstanceContext *GotFuncCxt = WasmEdge_ValueGetFuncRef(Val); + /* The `GotFuncCxt` will be the same as `FuncCxt`. */ + + /* Generate a externref to `Num`. */ + Val = WasmEdge_ValueGenExternRef(&Num); + Ptr = WasmEdge_ValueGetExternRef(Val); + /* The `Ptr` will be `&Num`. */ + printf("%u\n", *(uint32_t *)Ptr); + /* Will print "10" */ + Num += 55; + printf("%u\n", *(uint32_t *)Ptr); + /* Will print "65" */ + ``` ### Strings @@ -166,49 +166,49 @@ The `WasmEdge_String` object is for the instance names when invoking a WASM func 1. Create a `WasmEdge_String` from a C string (`const char *` with NULL termination) or a buffer with length. - The content of the C string or buffer will be copied into the `WasmEdge_String` object. + The content of the C string or buffer will be copied into the `WasmEdge_String` object. - ```c - char Buf[4] = {50, 55, 60, 65}; - WasmEdge_String Str1 = WasmEdge_StringCreateByCString("test"); - WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); - /* The objects should be deleted by `WasmEdge_StringDelete()`. */ - WasmEdge_StringDelete(Str1); - WasmEdge_StringDelete(Str2); - ``` + ```c + char Buf[4] = {50, 55, 60, 65}; + WasmEdge_String Str1 = WasmEdge_StringCreateByCString("test"); + WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); + /* The objects should be deleted by `WasmEdge_StringDelete()`. */ + WasmEdge_StringDelete(Str1); + WasmEdge_StringDelete(Str2); + ``` 2. Wrap a `WasmEdge_String` to a buffer with length. - The content will not be copied, and the caller should guarantee the life cycle of the input buffer. + The content will not be copied, and the caller should guarantee the life cycle of the input buffer. - ```c - const char CStr[] = "test"; - WasmEdge_String Str = WasmEdge_StringWrap(CStr, 4); - /* The object should __NOT__ be deleted by `WasmEdge_StringDelete()`. */ - ``` + ```c + const char CStr[] = "test"; + WasmEdge_String Str = WasmEdge_StringWrap(CStr, 4); + /* The object should __NOT__ be deleted by `WasmEdge_StringDelete()`. */ + ``` 3. String comparison - ```c - const char CStr[] = "abcd"; - char Buf[4] = {0x61, 0x62, 0x63, 0x64}; - WasmEdge_String Str1 = WasmEdge_StringWrap(CStr, 4); - WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); - bool IsEq = WasmEdge_StringIsEqual(Str1, Str2); - /* The `IsEq` will be `TRUE`. */ - WasmEdge_StringDelete(Str2); - ``` + ```c + const char CStr[] = "abcd"; + char Buf[4] = {0x61, 0x62, 0x63, 0x64}; + WasmEdge_String Str1 = WasmEdge_StringWrap(CStr, 4); + WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); + bool IsEq = WasmEdge_StringIsEqual(Str1, Str2); + /* The `IsEq` will be `TRUE`. */ + WasmEdge_StringDelete(Str2); + ``` 4. Convert to C string - ```c - char Buf[256]; - WasmEdge_String Str = WasmEdge_StringCreateByCString("test_wasmedge_string"); - uint32_t StrLength = WasmEdge_StringCopy(Str, Buf, sizeof(Buf)); - /* StrLength will be 20 */ - printf("String: %s\n", Buf); - /* Will print "test_wasmedge_string". */ - ``` + ```c + char Buf[256]; + WasmEdge_String Str = WasmEdge_StringCreateByCString("test_wasmedge_string"); + uint32_t StrLength = WasmEdge_StringCopy(Str, Buf, sizeof(Buf)); + /* StrLength will be 20 */ + printf("String: %s\n", Buf); + /* Will print "test_wasmedge_string". */ + ``` ### Results @@ -243,145 +243,145 @@ The WASM data structures are used for creating instances or can be queried from 1. Limit - The `WasmEdge_Limit` struct is defined in the header: + The `WasmEdge_Limit` struct is defined in the header: - ```c - /// Struct of WASM limit. - typedef struct WasmEdge_Limit { - /// Boolean to describe has max value or not. - bool HasMax; - /// Boolean to describe is shared memory or not. - bool Shared; - /// Minimum value. - uint32_t Min; - /// Maximum value. Will be ignored if the `HasMax` is false. - uint32_t Max; - } WasmEdge_Limit; - ``` + ```c + /// Struct of WASM limit. + typedef struct WasmEdge_Limit { + /// Boolean to describe has max value or not. + bool HasMax; + /// Boolean to describe is shared memory or not. + bool Shared; + /// Minimum value. + uint32_t Min; + /// Maximum value. Will be ignored if the `HasMax` is false. + uint32_t Max; + } WasmEdge_Limit; + ``` - Developers can initialize the struct by assigning it's value, and the `Max` value is needed to be larger or equal to the `Min` value. The API `WasmEdge_LimitIsEqual()` is provided to compare with 2 `WasmEdge_Limit` structs. + Developers can initialize the struct by assigning it's value, and the `Max` value is needed to be larger or equal to the `Min` value. The API `WasmEdge_LimitIsEqual()` is provided to compare with 2 `WasmEdge_Limit` structs. 2. Function type context - The `Function Type` context is used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `Function Type` context APIs to get the parameter or return value types information. + The `Function Type` context is used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `Function Type` context APIs to get the parameter or return value types information. - ```c - enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I64 }; - enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_FuncRef }; - WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + ```c + enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I64 }; + enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_FuncRef }; + WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - enum WasmEdge_ValType Buf[16]; - uint32_t ParamLen = WasmEdge_FunctionTypeGetParametersLength(FuncTypeCxt); - /* `ParamLen` will be 2. */ - uint32_t GotParamLen = WasmEdge_FunctionTypeGetParameters(FuncTypeCxt, Buf, 16); - /* `GotParamLen` will be 2, and `Buf[0]` and `Buf[1]` will be the same as `ParamList`. */ - uint32_t ReturnLen = WasmEdge_FunctionTypeGetReturnsLength(FuncTypeCxt); - /* `ReturnLen` will be 1. */ - uint32_t GotReturnLen = WasmEdge_FunctionTypeGetReturns(FuncTypeCxt, Buf, 16); - /* `GotReturnLen` will be 1, and `Buf[0]` will be the same as `ReturnList`. */ + enum WasmEdge_ValType Buf[16]; + uint32_t ParamLen = WasmEdge_FunctionTypeGetParametersLength(FuncTypeCxt); + /* `ParamLen` will be 2. */ + uint32_t GotParamLen = WasmEdge_FunctionTypeGetParameters(FuncTypeCxt, Buf, 16); + /* `GotParamLen` will be 2, and `Buf[0]` and `Buf[1]` will be the same as `ParamList`. */ + uint32_t ReturnLen = WasmEdge_FunctionTypeGetReturnsLength(FuncTypeCxt); + /* `ReturnLen` will be 1. */ + uint32_t GotReturnLen = WasmEdge_FunctionTypeGetReturns(FuncTypeCxt, Buf, 16); + /* `GotReturnLen` will be 1, and `Buf[0]` will be the same as `ReturnList`. */ - WasmEdge_FunctionTypeDelete(FuncTypeCxt); - ``` + WasmEdge_FunctionTypeDelete(FuncTypeCxt); + ``` 3. Table type context - The `Table Type` context is used for `Table` instance creation or getting information from `Table` instances. + The `Table Type` context is used for `Table` instance creation or getting information from `Table` instances. - ```c - WasmEdge_Limit TabLim = {.HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_TableTypeCreate(WasmEdge_RefType_ExternRef, TabLim); + ```c + WasmEdge_Limit TabLim = {.HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_TableTypeCreate(WasmEdge_RefType_ExternRef, TabLim); - enum WasmEdge_RefType GotRefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); - /* `GotRefType` will be WasmEdge_RefType_ExternRef. */ - WasmEdge_Limit GotTabLim = WasmEdge_TableTypeGetLimit(TabTypeCxt); - /* `GotTabLim` will be the same value as `TabLim`. */ + enum WasmEdge_RefType GotRefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); + /* `GotRefType` will be WasmEdge_RefType_ExternRef. */ + WasmEdge_Limit GotTabLim = WasmEdge_TableTypeGetLimit(TabTypeCxt); + /* `GotTabLim` will be the same value as `TabLim`. */ - WasmEdge_TableTypeDelete(TabTypeCxt); - ``` + WasmEdge_TableTypeDelete(TabTypeCxt); + ``` 4. Memory type context - The `Memory Type` context is used for `Memory` instance creation or getting information from `Memory` instances. + The `Memory Type` context is used for `Memory` instance creation or getting information from `Memory` instances. - ```c - WasmEdge_Limit MemLim = {.HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLim); + ```c + WasmEdge_Limit MemLim = {.HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLim); - WasmEdge_Limit GotMemLim = WasmEdge_MemoryTypeGetLimit(MemTypeCxt); - /* `GotMemLim` will be the same value as `MemLim`. */ + WasmEdge_Limit GotMemLim = WasmEdge_MemoryTypeGetLimit(MemTypeCxt); + /* `GotMemLim` will be the same value as `MemLim`. */ - WasmEdge_MemoryTypeDelete(MemTypeCxt) - ``` + WasmEdge_MemoryTypeDelete(MemTypeCxt) + ``` 5. Global type context - The `Global Type` context is used for `Global` instance creation or getting information from `Global` instances. + The `Global Type` context is used for `Global` instance creation or getting information from `Global` instances. - ```c - WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate(WasmEdge_ValType_F64, WasmEdge_Mutability_Var); + ```c + WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate(WasmEdge_ValType_F64, WasmEdge_Mutability_Var); - WasmEdge_ValType GotValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); - /* `GotValType` will be WasmEdge_ValType_F64. */ - WasmEdge_Mutability GotValMut = WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); - /* `GotValMut` will be WasmEdge_Mutability_Var. */ + WasmEdge_ValType GotValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); + /* `GotValType` will be WasmEdge_ValType_F64. */ + WasmEdge_Mutability GotValMut = WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); + /* `GotValMut` will be WasmEdge_Mutability_Var. */ - WasmEdge_GlobalTypeDelete(GlobTypeCxt); - ``` + WasmEdge_GlobalTypeDelete(GlobTypeCxt); + ``` 6. Import type context - The `Import Type` context is used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `Import Type` context. The details about querying `Import Type` contexts will be introduced in the [AST Module](#ast-module). + The `Import Type` context is used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `Import Type` context. The details about querying `Import Type` contexts will be introduced in the [AST Module](#ast-module). - ```c - WasmEdge_ASTModuleContext *ASTCxt = ...; - /* Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the result of loading a WASM file. */ - const WasmEdge_ImportTypeContext *ImpType = ...; - /* Assume that `ImpType` is queried from the `ASTCxt` for the import. */ + ```c + WasmEdge_ASTModuleContext *ASTCxt = ...; + /* Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the result of loading a WASM file. */ + const WasmEdge_ImportTypeContext *ImpType = ...; + /* Assume that `ImpType` is queried from the `ASTCxt` for the import. */ - enum WasmEdge_ExternalType ExtType = WasmEdge_ImportTypeGetExternalType(ImpType); - /* - * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, `WasmEdge_ExternalType_Table`, - * `WasmEdge_ExternalType_Memory`, or `WasmEdge_ExternalType_Global`. - */ - WasmEdge_String ModName = WasmEdge_ImportTypeGetModuleName(ImpType); - WasmEdge_String ExtName = WasmEdge_ImportTypeGetExternalName(ImpType); - /* The `ModName` and `ExtName` should not be destroyed and the string buffers are binded into the `ASTCxt`. */ - const WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_ImportTypeGetFunctionType(ASTCxt, ImpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Function`, the `FuncTypeCxt` will be NULL. */ - const WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_ImportTypeGetTableType(ASTCxt, ImpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` will be NULL. */ - const WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_ImportTypeGetMemoryType(ASTCxt, ImpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` will be NULL. */ - const WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_ImportTypeGetGlobalType(ASTCxt, ImpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` will be NULL. */ - ``` + enum WasmEdge_ExternalType ExtType = WasmEdge_ImportTypeGetExternalType(ImpType); + /* + * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, `WasmEdge_ExternalType_Table`, + * `WasmEdge_ExternalType_Memory`, or `WasmEdge_ExternalType_Global`. + */ + WasmEdge_String ModName = WasmEdge_ImportTypeGetModuleName(ImpType); + WasmEdge_String ExtName = WasmEdge_ImportTypeGetExternalName(ImpType); + /* The `ModName` and `ExtName` should not be destroyed and the string buffers are binded into the `ASTCxt`. */ + const WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_ImportTypeGetFunctionType(ASTCxt, ImpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Function`, the `FuncTypeCxt` will be NULL. */ + const WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_ImportTypeGetTableType(ASTCxt, ImpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` will be NULL. */ + const WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_ImportTypeGetMemoryType(ASTCxt, ImpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` will be NULL. */ + const WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_ImportTypeGetGlobalType(ASTCxt, ImpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` will be NULL. */ + ``` 7. Export type context - The `Export Type` context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `Export Type` contexts will be introduced in the [AST Module](#ast-module). + The `Export Type` context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `Export Type` contexts will be introduced in the [AST Module](#ast-module). - ```c - WasmEdge_ASTModuleContext *ASTCxt = ...; - /* Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the result of loading a WASM file. */ - const WasmEdge_ExportTypeContext *ExpType = ...; - /* Assume that `ExpType` is queried from the `ASTCxt` for the export. */ + ```c + WasmEdge_ASTModuleContext *ASTCxt = ...; + /* Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the result of loading a WASM file. */ + const WasmEdge_ExportTypeContext *ExpType = ...; + /* Assume that `ExpType` is queried from the `ASTCxt` for the export. */ - enum WasmEdge_ExternalType ExtType = WasmEdge_ExportTypeGetExternalType(ExpType); - /* - * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, `WasmEdge_ExternalType_Table`, - * `WasmEdge_ExternalType_Memory`, or `WasmEdge_ExternalType_Global`. - */ - WasmEdge_String ExtName = WasmEdge_ExportTypeGetExternalName(ExpType); - /* The `ExtName` should not be destroyed and the string buffer is binded into the `ASTCxt`. */ - const WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_ExportTypeGetFunctionType(ASTCxt, ExpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Function`, the `FuncTypeCxt` will be NULL. */ - const WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_ExportTypeGetTableType(ASTCxt, ExpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` will be NULL. */ - const WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_ExportTypeGetMemoryType(ASTCxt, ExpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` will be NULL. */ - const WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_ExportTypeGetGlobalType(ASTCxt, ExpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` will be NULL. */ - ``` + enum WasmEdge_ExternalType ExtType = WasmEdge_ExportTypeGetExternalType(ExpType); + /* + * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, `WasmEdge_ExternalType_Table`, + * `WasmEdge_ExternalType_Memory`, or `WasmEdge_ExternalType_Global`. + */ + WasmEdge_String ExtName = WasmEdge_ExportTypeGetExternalName(ExpType); + /* The `ExtName` should not be destroyed and the string buffer is binded into the `ASTCxt`. */ + const WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_ExportTypeGetFunctionType(ASTCxt, ExpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Function`, the `FuncTypeCxt` will be NULL. */ + const WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_ExportTypeGetTableType(ASTCxt, ExpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` will be NULL. */ + const WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_ExportTypeGetMemoryType(ASTCxt, ExpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` will be NULL. */ + const WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_ExportTypeGetGlobalType(ASTCxt, ExpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` will be NULL. */ + ``` ### Async @@ -389,54 +389,54 @@ After calling the [asynchronous execution APIs](#asynchronous-execution), develo 1. Wait for the asynchronous execution - Developers can wait the execution until finished: - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution. */ - WasmEdge_AsyncWait(Async); - WasmEdge_AsyncDelete(Async); - ``` - - Or developers can wait for a time limit. If the time limit exceeded, developers can choose to cancel the execution. For the interruptible execution in AOT mode, developers should set `TRUE` through the `WasmEdge_ConfigureCompilerSetInterruptible()` API into the configure context for the AOT compiler. - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution for 1 second. */ - bool IsEnd = WasmEdge_AsyncWaitFor(Async, 1000); - if (IsEnd) { - /* The execution finished. Developers can get the result. */ - WasmEdge_Result Res = WasmEdge_AsyncGet(/* ... Ignored */); - } else { - /* The time limit exceeded. Developers can keep waiting or cancel the execution. */ - WasmEdge_AsyncCancel(Async); - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, 0, NULL); - /* The result error code will be `WasmEdge_ErrCode_Interrupted`. */ - } - WasmEdge_AsyncDelete(Async); - ``` + Developers can wait the execution until finished: + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution. */ + WasmEdge_AsyncWait(Async); + WasmEdge_AsyncDelete(Async); + ``` + + Or developers can wait for a time limit. If the time limit exceeded, developers can choose to cancel the execution. For the interruptible execution in AOT mode, developers should set `TRUE` through the `WasmEdge_ConfigureCompilerSetInterruptible()` API into the configure context for the AOT compiler. + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution for 1 second. */ + bool IsEnd = WasmEdge_AsyncWaitFor(Async, 1000); + if (IsEnd) { + /* The execution finished. Developers can get the result. */ + WasmEdge_Result Res = WasmEdge_AsyncGet(/* ... Ignored */); + } else { + /* The time limit exceeded. Developers can keep waiting or cancel the execution. */ + WasmEdge_AsyncCancel(Async); + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, 0, NULL); + /* The result error code will be `WasmEdge_ErrCode_Interrupted`. */ + } + WasmEdge_AsyncDelete(Async); + ``` 2. Get the execution result of the asynchronous execution - Developers can use the `WasmEdge_AsyncGetReturnsLength()` API to get the return value list length. This function will block and wait for the execution. If the execution has finished, this function will return the length immediately. If the execution failed, this function will return `0`. This function can help the developers to create the buffer to get the return values. If developers have already known the buffer length, they can skip this function and use the `WasmEdge_AsyncGet()` API to get the result. + Developers can use the `WasmEdge_AsyncGetReturnsLength()` API to get the return value list length. This function will block and wait for the execution. If the execution has finished, this function will return the length immediately. If the execution failed, this function will return `0`. This function can help the developers to create the buffer to get the return values. If developers have already known the buffer length, they can skip this function and use the `WasmEdge_AsyncGet()` API to get the result. - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution and get the return value list length. */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - WasmEdge_AsyncDelete(Async); - ``` + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution and get the return value list length. */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + WasmEdge_AsyncDelete(Async); + ``` - The `WasmEdge_AsyncGet()` API will block and wait for the execution. If the execution has finished, this function will fill the return values into the buffer and return the execution result immediately. + The `WasmEdge_AsyncGet()` API will block and wait for the execution. If the execution has finished, this function will fill the return values into the buffer and return the execution result immediately. - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution and get the return values. */ - const uint32_t BUF_LEN = 256; - WasmEdge_Value Buf[BUF_LEN]; - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Buf, BUF_LEN); - WasmEdge_AsyncDelete(Async); - ``` + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution and get the return values. */ + const uint32_t BUF_LEN = 256; + WasmEdge_Value Buf[BUF_LEN]; + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Buf, BUF_LEN); + WasmEdge_AsyncDelete(Async); + ``` ### Configurations @@ -444,156 +444,156 @@ The configuration context, `WasmEdge_ConfigureContext`, manages the configuratio 1. Proposals - WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` context. - - ```c - enum WasmEdge_Proposal { - WasmEdge_Proposal_ImportExportMutGlobals = 0, - WasmEdge_Proposal_NonTrapFloatToIntConversions, - WasmEdge_Proposal_SignExtensionOperators, - WasmEdge_Proposal_MultiValue, - WasmEdge_Proposal_BulkMemoryOperations, - WasmEdge_Proposal_ReferenceTypes, - WasmEdge_Proposal_SIMD, - WasmEdge_Proposal_TailCall, - WasmEdge_Proposal_MultiMemories, - WasmEdge_Proposal_Annotations, - WasmEdge_Proposal_Memory64, - WasmEdge_Proposal_ExceptionHandling, - WasmEdge_Proposal_ExtendedConst, - WasmEdge_Proposal_Threads, - WasmEdge_Proposal_FunctionReferences - }; - ``` - - Developers can add or remove the proposals into the `Configure` context. - - ```c - /* - * By default, the following proposals have turned on initially: - * * Import/Export of mutable globals - * * Non-trapping float-to-int conversions - * * Sign-extension operators - * * Multi-value returns - * * Bulk memory operations - * * Reference types - * * Fixed-width SIMD - * - * For the current WasmEdge version, the following proposals are supported - * (turned of by default) additionally: - * * Tail-call - * * Multiple memories - * * Extended-const - * * Threads - */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddProposal(ConfCxt, WasmEdge_Proposal_MultiMemories); - WasmEdge_ConfigureRemoveProposal(ConfCxt, WasmEdge_Proposal_ReferenceTypes); - bool IsBulkMem = WasmEdge_ConfigureHasProposal(ConfCxt, WasmEdge_Proposal_BulkMemoryOperations); - /* The `IsBulkMem` will be `TRUE`. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` context. + + ```c + enum WasmEdge_Proposal { + WasmEdge_Proposal_ImportExportMutGlobals = 0, + WasmEdge_Proposal_NonTrapFloatToIntConversions, + WasmEdge_Proposal_SignExtensionOperators, + WasmEdge_Proposal_MultiValue, + WasmEdge_Proposal_BulkMemoryOperations, + WasmEdge_Proposal_ReferenceTypes, + WasmEdge_Proposal_SIMD, + WasmEdge_Proposal_TailCall, + WasmEdge_Proposal_MultiMemories, + WasmEdge_Proposal_Annotations, + WasmEdge_Proposal_Memory64, + WasmEdge_Proposal_ExceptionHandling, + WasmEdge_Proposal_ExtendedConst, + WasmEdge_Proposal_Threads, + WasmEdge_Proposal_FunctionReferences + }; + ``` + + Developers can add or remove the proposals into the `Configure` context. + + ```c + /* + * By default, the following proposals have turned on initially: + * * Import/Export of mutable globals + * * Non-trapping float-to-int conversions + * * Sign-extension operators + * * Multi-value returns + * * Bulk memory operations + * * Reference types + * * Fixed-width SIMD + * + * For the current WasmEdge version, the following proposals are supported + * (turned of by default) additionally: + * * Tail-call + * * Multiple memories + * * Extended-const + * * Threads + */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddProposal(ConfCxt, WasmEdge_Proposal_MultiMemories); + WasmEdge_ConfigureRemoveProposal(ConfCxt, WasmEdge_Proposal_ReferenceTypes); + bool IsBulkMem = WasmEdge_ConfigureHasProposal(ConfCxt, WasmEdge_Proposal_BulkMemoryOperations); + /* The `IsBulkMem` will be `TRUE`. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 2. Host registrations - This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` contexts. + This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` contexts. - ```c - enum WasmEdge_HostRegistration { - WasmEdge_HostRegistration_Wasi = 0, - WasmEdge_HostRegistration_WasmEdge_Process - }; - ``` + ```c + enum WasmEdge_HostRegistration { + WasmEdge_HostRegistration_Wasi = 0, + WasmEdge_HostRegistration_WasmEdge_Process + }; + ``` - The details will be introduced in the [preregistrations of VM context](#preregistrations). + The details will be introduced in the [preregistrations of VM context](#preregistrations). - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - bool IsHostWasi = WasmEdge_ConfigureHasHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The `IsHostWasi` will be `FALSE`. */ - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - IsHostWasi = WasmEdge_ConfigureHasHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The `IsHostWasi` will be `TRUE`. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + bool IsHostWasi = WasmEdge_ConfigureHasHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The `IsHostWasi` will be `FALSE`. */ + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + IsHostWasi = WasmEdge_ConfigureHasHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The `IsHostWasi` will be `TRUE`. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 3. Maximum memory pages - Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` contexts. + Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` contexts. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - uint32_t PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); - /* By default, the maximum memory page size is 65536. */ - WasmEdge_ConfigureSetMaxMemoryPage(ConfCxt, 1024); - /* Limit the memory size of each memory instance with not larger than 1024 pages (64 MiB). */ - PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); - /* The `PageSize` will be 1024. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + uint32_t PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); + /* By default, the maximum memory page size is 65536. */ + WasmEdge_ConfigureSetMaxMemoryPage(ConfCxt, 1024); + /* Limit the memory size of each memory instance with not larger than 1024 pages (64 MiB). */ + PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); + /* The `PageSize` will be 1024. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 4. AOT compiler options - The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. - - ```c - enum WasmEdge_CompilerOptimizationLevel { - // Disable as many optimizations as possible. - WasmEdge_CompilerOptimizationLevel_O0 = 0, - // Optimize quickly without destroying debuggability. - WasmEdge_CompilerOptimizationLevel_O1, - // Optimize for fast execution as much as possible without triggering - // significant incremental compile time or code size growth. - WasmEdge_CompilerOptimizationLevel_O2, - // Optimize for fast execution as much as possible. - WasmEdge_CompilerOptimizationLevel_O3, - // Optimize for small code size as much as possible without triggering - // significant incremental compile time or execution time slowdowns. - WasmEdge_CompilerOptimizationLevel_Os, - // Optimize for small code size as much as possible. - WasmEdge_CompilerOptimizationLevel_Oz - }; - - enum WasmEdge_CompilerOutputFormat { - // Native dynamic library format. - WasmEdge_CompilerOutputFormat_Native = 0, - // WebAssembly with AOT compiled codes in custom section. - WasmEdge_CompilerOutputFormat_Wasm - }; - ``` - - These configurations are only effective in `Compiler` contexts. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - /* By default, the optimization level is O3. */ - WasmEdge_ConfigureCompilerSetOptimizationLevel(ConfCxt, WasmEdge_CompilerOptimizationLevel_O2); - /* By default, the output format is universal WASM. */ - WasmEdge_ConfigureCompilerSetOutputFormat(ConfCxt, WasmEdge_CompilerOutputFormat_Native); - /* By default, the dump IR is `FALSE`. */ - WasmEdge_ConfigureCompilerSetDumpIR(ConfCxt, TRUE); - /* By default, the generic binary is `FALSE`. */ - WasmEdge_ConfigureCompilerSetGenericBinary(ConfCxt, TRUE); - /* By default, the interruptible is `FALSE`. - /* Set this option to `TRUE` to support the interruptible execution in AOT mode. */ - WasmEdge_ConfigureCompilerSetInterruptible(ConfCxt, TRUE); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. + + ```c + enum WasmEdge_CompilerOptimizationLevel { + // Disable as many optimizations as possible. + WasmEdge_CompilerOptimizationLevel_O0 = 0, + // Optimize quickly without destroying debuggability. + WasmEdge_CompilerOptimizationLevel_O1, + // Optimize for fast execution as much as possible without triggering + // significant incremental compile time or code size growth. + WasmEdge_CompilerOptimizationLevel_O2, + // Optimize for fast execution as much as possible. + WasmEdge_CompilerOptimizationLevel_O3, + // Optimize for small code size as much as possible without triggering + // significant incremental compile time or execution time slowdowns. + WasmEdge_CompilerOptimizationLevel_Os, + // Optimize for small code size as much as possible. + WasmEdge_CompilerOptimizationLevel_Oz + }; + + enum WasmEdge_CompilerOutputFormat { + // Native dynamic library format. + WasmEdge_CompilerOutputFormat_Native = 0, + // WebAssembly with AOT compiled codes in custom section. + WasmEdge_CompilerOutputFormat_Wasm + }; + ``` + + These configurations are only effective in `Compiler` contexts. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + /* By default, the optimization level is O3. */ + WasmEdge_ConfigureCompilerSetOptimizationLevel(ConfCxt, WasmEdge_CompilerOptimizationLevel_O2); + /* By default, the output format is universal WASM. */ + WasmEdge_ConfigureCompilerSetOutputFormat(ConfCxt, WasmEdge_CompilerOutputFormat_Native); + /* By default, the dump IR is `FALSE`. */ + WasmEdge_ConfigureCompilerSetDumpIR(ConfCxt, TRUE); + /* By default, the generic binary is `FALSE`. */ + WasmEdge_ConfigureCompilerSetGenericBinary(ConfCxt, TRUE); + /* By default, the interruptible is `FALSE`. + /* Set this option to `TRUE` to support the interruptible execution in AOT mode. */ + WasmEdge_ConfigureCompilerSetInterruptible(ConfCxt, TRUE); + WasmEdge_ConfigureDelete(ConfCxt); + ``` 5. Statistics options - The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` contexts. + The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` contexts. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - /* By default, the instruction counting is `FALSE` when running a compiled-WASM or a pure-WASM. */ - WasmEdge_ConfigureStatisticsSetInstructionCounting(ConfCxt, TRUE); - /* By default, the cost measurement is `FALSE` when running a compiled-WASM or a pure-WASM. */ - WasmEdge_ConfigureStatisticsSetCostMeasuring(ConfCxt, TRUE); - /* By default, the time measurement is `FALSE` when running a compiled-WASM or a pure-WASM. */ - WasmEdge_ConfigureStatisticsSetTimeMeasuring(ConfCxt, TRUE); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + /* By default, the instruction counting is `FALSE` when running a compiled-WASM or a pure-WASM. */ + WasmEdge_ConfigureStatisticsSetInstructionCounting(ConfCxt, TRUE); + /* By default, the cost measurement is `FALSE` when running a compiled-WASM or a pure-WASM. */ + WasmEdge_ConfigureStatisticsSetCostMeasuring(ConfCxt, TRUE); + /* By default, the time measurement is `FALSE` when running a compiled-WASM or a pure-WASM. */ + WasmEdge_ConfigureStatisticsSetTimeMeasuring(ConfCxt, TRUE); + WasmEdge_ConfigureDelete(ConfCxt); + ``` ### Statistics @@ -603,47 +603,47 @@ Before using statistics, the statistics configuration must be set. Otherwise, th 1. Instruction counter - The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` context from the `VM` context, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. + The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` context from the `VM` context, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. - ```c - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* - * ... - * After running the WASM functions with the `Statistics` context - */ - uint32_t Count = WasmEdge_StatisticsGetInstrCount(StatCxt); - double IPS = WasmEdge_StatisticsGetInstrPerSecond(StatCxt); - WasmEdge_StatisticsDelete(StatCxt); - ``` + ```c + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* + * ... + * After running the WASM functions with the `Statistics` context + */ + uint32_t Count = WasmEdge_StatisticsGetInstrCount(StatCxt); + double IPS = WasmEdge_StatisticsGetInstrPerSecond(StatCxt); + WasmEdge_StatisticsDelete(StatCxt); + ``` 2. Cost table - The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` context. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. - - ```c - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - uint64_t CostTable[16] = { - 0, 0, - 10, /* 0x02: Block */ - 11, /* 0x03: Loop */ - 12, /* 0x04: If */ - 12, /* 0x05: Else */ - 0, 0, 0, 0, 0, 0, - 20, /* 0x0C: Br */ - 21, /* 0x0D: Br_if */ - 22, /* 0x0E: Br_table */ - 0 - }; - /* Developers can set the costs of each instruction. The value not covered will be 0. */ - WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); - WasmEdge_StatisticsSetCostLimit(StatCxt, 5000000); - /* - * ... - * After running the WASM functions with the `Statistics` context - */ - uint64_t Cost = WasmEdge_StatisticsGetTotalCost(StatCxt); - WasmEdge_StatisticsDelete(StatCxt); - ``` + The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` context. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. + + ```c + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + uint64_t CostTable[16] = { + 0, 0, + 10, /* 0x02: Block */ + 11, /* 0x03: Loop */ + 12, /* 0x04: If */ + 12, /* 0x05: Else */ + 0, 0, 0, 0, 0, 0, + 20, /* 0x0C: Br */ + 21, /* 0x0D: Br_if */ + 22, /* 0x0E: Br_table */ + 0 + }; + /* Developers can set the costs of each instruction. The value not covered will be 0. */ + WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); + WasmEdge_StatisticsSetCostLimit(StatCxt, 5000000); + /* + * ... + * After running the WASM functions with the `Statistics` context + */ + uint64_t Cost = WasmEdge_StatisticsGetTotalCost(StatCxt); + WasmEdge_StatisticsDelete(StatCxt); + ``` ### Tools Driver @@ -695,161 +695,161 @@ The following shows the example of running the WASM for getting the Fibonacci. T 1. Run WASM functions rapidly - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - /* Create the configure context and add the WASI support. */ - /* This step is not necessary unless you need WASI support. */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The configure and store context to the VM creation can be NULL. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(5) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromFile(VMCxt, "fibonacci.wasm", FuncName, Params, 1, Returns, 1); - /* - * Developers can run the WASM binary from buffer with the `WasmEdge_VMRunWasmFromBuffer()` API, - * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMRunWasmFromASTModule()` API. - */ - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 5th Fibonacci number is 8 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get the result: 8 - ``` + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + /* Create the configure context and add the WASI support. */ + /* This step is not necessary unless you need WASI support. */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The configure and store context to the VM creation can be NULL. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(5) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromFile(VMCxt, "fibonacci.wasm", FuncName, Params, 1, Returns, 1); + /* + * Developers can run the WASM binary from buffer with the `WasmEdge_VMRunWasmFromBuffer()` API, + * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMRunWasmFromASTModule()` API. + */ + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` + + Then you can compile and run: (the 5th Fibonacci number is 8 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get the result: 8 + ``` 2. Instantiate and run WASM functions manually - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: - - ```c - #include - #include - int main() { - /* Create the configure context and add the WASI support. */ - /* This step is not necessary unless you need the WASI support. */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The configure and store context to the VM creation can be NULL. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(10) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Step 1: Load WASM file. */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - /* - * Developers can load the WASM binary from buffer with the `WasmEdge_VMLoadWasmFromBuffer()` API, - * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMLoadWasmFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 2: Validate the WASM module. */ - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 3: Instantiate the WASM module. */ - Res = WasmEdge_VMInstantiate(VMCxt); - /* - * Developers can load, validate, and instantiate another WASM module to replace the - * instantiated one. In this case, the old module will be cleared, but the registered - * modules are still kept. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 4: Execute WASM functions. You can execute functions repeatedly after instantiation. */ - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 1, Returns, 1); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 10th Fibonacci number is 89 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get the result: 89 - ``` - - The following graph explains the status of the `VM` context. - - ```text - |========================| - |------->| VM: Initiated | - | |========================| - | | - | LoadWasm - | | - | v - | |========================| - |--------| VM: Loaded |<-------| - | |========================| | - | | ^ | - | Validate | | - Cleanup | LoadWasm | - | v | LoadWasm - | |========================| | - |--------| VM: Validated | | - | |========================| | - | | ^ | - | Instantiate | | - | | RegisterModule | - | v | | - | |========================| | - |--------| VM: Instantiated |--------| - |========================| - | ^ - | | - -------------- - Instantiate, Execute, ExecuteRegistered - ``` - - The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or module instances in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```c + #include + #include + int main() { + /* Create the configure context and add the WASI support. */ + /* This step is not necessary unless you need the WASI support. */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The configure and store context to the VM creation can be NULL. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(10) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Step 1: Load WASM file. */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + /* + * Developers can load the WASM binary from buffer with the `WasmEdge_VMLoadWasmFromBuffer()` API, + * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMLoadWasmFromASTModule()` API. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 2: Validate the WASM module. */ + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 3: Instantiate the WASM module. */ + Res = WasmEdge_VMInstantiate(VMCxt); + /* + * Developers can load, validate, and instantiate another WASM module to replace the + * instantiated one. In this case, the old module will be cleared, but the registered + * modules are still kept. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 4: Execute WASM functions. You can execute functions repeatedly after instantiation. */ + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 1, Returns, 1); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` + + Then you can compile and run: (the 10th Fibonacci number is 89 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get the result: 89 + ``` + + The following graph explains the status of the `VM` context. + + ```text + |========================| + |------->| VM: Initiated | + | |========================| + | | + | LoadWasm + | | + | v + | |========================| + |--------| VM: Loaded |<-------| + | |========================| | + | | ^ | + | Validate | | + Cleanup | LoadWasm | + | v | LoadWasm + | |========================| | + |--------| VM: Validated | | + | |========================| | + | | ^ | + | Instantiate | | + | | RegisterModule | + | v | | + | |========================| | + |--------| VM: Instantiated |--------| + |========================| + | ^ + | | + -------------- + Instantiate, Execute, ExecuteRegistered + ``` + + The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or module instances in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. ### VM Creations @@ -877,88 +877,88 @@ WasmEdge provides the following built-in pre-registrations. 1. [WASI (WebAssembly System Interface)](https://github.com/WebAssembly/WASI) - Developers can turn on the WASI support for VM in the `Configure` context. + Developers can turn on the WASI support for VM in the `Configure` context. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - /* The following API can retrieve the pre-registration module instances from the VM context. */ - /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration. */ - WasmEdge_ModuleInstanceContext *WasiModule = - WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_Wasi); - /* Initialize the WASI. */ - WasmEdge_ModuleInstanceInitWASI(WasiModule, /* ... ignored */ ); - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + /* The following API can retrieve the pre-registration module instances from the VM context. */ + /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration. */ + WasmEdge_ModuleInstanceContext *WasiModule = + WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_Wasi); + /* Initialize the WASI. */ + WasmEdge_ModuleInstanceInitWASI(WasiModule, /* ... ignored */ ); + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + ``` - And also can create the WASI module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 2. [WasmEdge_Process](https://crates.io/crates/wasmedge_process_interface) - This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` plugin. + This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` plugin. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasmEdge_Process); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - /* The following API can retrieve the pre-registration module instances from the VM context. */ - /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration or the plugin load failed. */ - WasmEdge_ModuleInstanceContext *ProcModule = - WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_WasmEdge_Process); - /* Initialize the WasmEdge_Process. */ - WasmEdge_ModuleInstanceInitWasmEdgeProcess(ProcModule, /* ... ignored */ ); - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasmEdge_Process); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + /* The following API can retrieve the pre-registration module instances from the VM context. */ + /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration or the plugin load failed. */ + WasmEdge_ModuleInstanceContext *ProcModule = + WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_WasmEdge_Process); + /* Initialize the WasmEdge_Process. */ + WasmEdge_ModuleInstanceInitWasmEdgeProcess(ProcModule, /* ... ignored */ ); + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + ``` - And also can create the WasmEdge_Process module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WasmEdge_Process module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 3. [WASI-NN proposal](https://github.com/WebAssembly/wasi-nn) (`0.10.1` or upper only) - Developers can turn on the WASI-NN proposal support for VM in the `Configure` context. + Developers can turn on the WASI-NN proposal support for VM in the `Configure` context. - > Note: Please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. + > Note: Please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiNN); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - /* The following API can retrieve the pre-registration module instances from the VM context. */ - /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration or the plugin load failed. */ - WasmEdge_ModuleInstanceContext *NNModule = - WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_WasiNN); - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiNN); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + /* The following API can retrieve the pre-registration module instances from the VM context. */ + /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration or the plugin load failed. */ + WasmEdge_ModuleInstanceContext *NNModule = + WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_WasiNN); + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + ``` - And also can create the WASI-NN module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI-NN module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 4. [WASI-Crypto proposal](https://github.com/WebAssembly/wasi-crypto) (`0.10.1` or upper only) - Developers can turn on the WASI-Crypto proposal support for VM in the `Configure` context. - - > Note: Please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - /* The WASI-Crypto related configures are suggested to turn on together. */ - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Common); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiCrypto_AsymmetricCommon); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Kx); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Signatures); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Symmetric); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - /* The following API can retrieve the pre-registration module instances from the VM context. */ - /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration or the plugin load failed. */ - WasmEdge_ModuleInstanceContext *CryptoCommonModule = - WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_WasiCrypto_Common); - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - ``` - - And also can create the WASI-Crypto module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + Developers can turn on the WASI-Crypto proposal support for VM in the `Configure` context. + + > Note: Please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + /* The WASI-Crypto related configures are suggested to turn on together. */ + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Common); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiCrypto_AsymmetricCommon); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Kx); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Signatures); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Symmetric); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + /* The following API can retrieve the pre-registration module instances from the VM context. */ + /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration or the plugin load failed. */ + WasmEdge_ModuleInstanceContext *CryptoCommonModule = + WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_WasiCrypto_Common); + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + ``` + + And also can create the WASI-Crypto module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). ### Host Module Registrations @@ -985,225 +985,225 @@ In WebAssembly, the instances in WASM modules can be exported and can be importe 1. Register the WASM modules with exported module names - Unless the module instances have already contained the module names, every WASM module should be named uniquely when registering. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. + Unless the module instances have already contained the module names, every WASM module should be named uniquely when registering. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. + + ```c + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + WasmEdge_Result Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); + /* + * Developers can register the WASM module from buffer with the `WasmEdge_VMRegisterModuleFromBuffer()` API, + * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMRegisterModuleFromASTModule()` API. + */ + /* + * The result status should be checked. + * The error will occur if the WASM module instantiation failed or the module name conflicts. + */ + WasmEdge_StringDelete(ModName); + WasmEdge_VMDelete(VMCxt); + ``` + +2. Execute the functions in registered WASM modules - ```c - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - WasmEdge_Result Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); - /* + Assume that the C file `test.c` is as follows: + + ```c + #include + #include + int main() { + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(20) }; + WasmEdge_Value Returns[1]; + /* Names. */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Register the WASM module into VM. */ + Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); + /* * Developers can register the WASM module from buffer with the `WasmEdge_VMRegisterModuleFromBuffer()` API, * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMRegisterModuleFromASTModule()` API. */ - /* - * The result status should be checked. - * The error will occur if the WASM module instantiation failed or the module name conflicts. + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* + * The function "fib" in the "fibonacci.wasm" was exported with the module name "mod". + * As the same as host functions, other modules can import the function `"mod" "fib"`. */ - WasmEdge_StringDelete(ModName); - WasmEdge_VMDelete(VMCxt); - ``` -2. Execute the functions in registered WASM modules + /* + * Execute WASM functions in registered modules. + * Unlike the execution of functions, the registered functions can be invoked without + * `WasmEdge_VMInstantiate()` because the WASM module was instantiated when registering. + * Developers can also invoke the host functions directly with this API. + */ + Res = WasmEdge_VMExecuteRegistered(VMCxt, ModName, FuncName, Params, 1, Returns, 1); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + WasmEdge_StringDelete(ModName); + WasmEdge_StringDelete(FuncName); + WasmEdge_VMDelete(VMCxt); + return 0; + } + ``` + + Then you can compile and run: (the 20th Fibonacci number is 89 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get the result: 10946 + ``` - Assume that the C file `test.c` is as follows: - - ```c - #include - #include - int main() { - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(20) }; - WasmEdge_Value Returns[1]; - /* Names. */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Register the WASM module into VM. */ - Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); - /* - * Developers can register the WASM module from buffer with the `WasmEdge_VMRegisterModuleFromBuffer()` API, - * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMRegisterModuleFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* - * The function "fib" in the "fibonacci.wasm" was exported with the module name "mod". - * As the same as host functions, other modules can import the function `"mod" "fib"`. +### Asynchronous Execution + +1. Asynchronously run WASM functions rapidly + + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(20) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Asynchronously run the WASM function from file and get the `WasmEdge_Async` object. */ + WasmEdge_Async *Async = WasmEdge_VMAsyncRunWasmFromFile(VMCxt, "fibonacci.wasm", FuncName, Params, 1); + /* + * Developers can run the WASM binary from buffer with the `WasmEdge_VMAsyncRunWasmFromBuffer()` API, + * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMAsyncRunWasmFromASTModule()` API. */ - /* - * Execute WASM functions in registered modules. - * Unlike the execution of functions, the registered functions can be invoked without - * `WasmEdge_VMInstantiate()` because the WASM module was instantiated when registering. - * Developers can also invoke the host functions directly with this API. + /* Wait for the execution. */ + WasmEdge_AsyncWait(Async); + /* + * Developers can also use the `WasmEdge_AsyncGetReturnsLength()` or `WasmEdge_AsyncGet()` APIs + * to wait for the asynchronous execution. These APIs will wait until the execution finished. */ - Res = WasmEdge_VMExecuteRegistered(VMCxt, ModName, FuncName, Params, 1, Returns, 1); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - WasmEdge_StringDelete(ModName); - WasmEdge_StringDelete(FuncName); - WasmEdge_VMDelete(VMCxt); - return 0; - } - ``` - - Then you can compile and run: (the 20th Fibonacci number is 89 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get the result: 10946 - ``` -### Asynchronous Execution + /* Check the return values length. */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + /* The `Arity` should be 1. Developers can skip this step if they have known the return arity. */ -1. Asynchronously run WASM functions rapidly + /* Get the result. */ + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Returns, Arity); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_AsyncDelete(Async); + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(20) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Asynchronously run the WASM function from file and get the `WasmEdge_Async` object. */ - WasmEdge_Async *Async = WasmEdge_VMAsyncRunWasmFromFile(VMCxt, "fibonacci.wasm", FuncName, Params, 1); - /* - * Developers can run the WASM binary from buffer with the `WasmEdge_VMAsyncRunWasmFromBuffer()` API, - * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMAsyncRunWasmFromASTModule()` API. - */ - - /* Wait for the execution. */ - WasmEdge_AsyncWait(Async); - /* - * Developers can also use the `WasmEdge_AsyncGetReturnsLength()` or `WasmEdge_AsyncGet()` APIs - * to wait for the asynchronous execution. These APIs will wait until the execution finished. - */ - - /* Check the return values length. */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - /* The `Arity` should be 1. Developers can skip this step if they have known the return arity. */ - - /* Get the result. */ - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Returns, Arity); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_AsyncDelete(Async); - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 20th Fibonacci number is 10946 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get the result: 10946 - ``` + Then you can compile and run: (the 20th Fibonacci number is 10946 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get the result: 10946 + ``` 2. Instantiate and asynchronously run WASM functions manually - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: - - ```c - #include - #include - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(25) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Step 1: Load WASM file. */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - /* - * Developers can load the WASM binary from buffer with the `WasmEdge_VMLoadWasmFromBuffer()` API, - * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMLoadWasmFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 2: Validate the WASM module. */ - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 3: Instantiate the WASM module. */ - Res = WasmEdge_VMInstantiate(VMCxt); - /* - * Developers can load, validate, and instantiate another WASM module to replace the - * instantiated one. In this case, the old module will be cleared, but the registered - * modules are still kept. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 4: Asynchronously execute the WASM function and get the `WasmEdge_Async` object. */ - WasmEdge_Async *Async = WasmEdge_VMAsyncExecute(VMCxt, FuncName, Params, 1); - /* - * Developers can execute functions repeatedly after instantiation. - * For invoking the registered functions, you can use the `WasmEdge_VMAsyncExecuteRegistered()` API. - */ - - /* Wait and check the return values length. */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - /* The `Arity` should be 1. Developers can skip this step if they have known the return arity. */ - - /* Get the result. */ - Res = WasmEdge_AsyncGet(Async, Returns, Arity); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_AsyncDelete(Async); - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - } - ``` - - Then you can compile and run: (the 25th Fibonacci number is 121393 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get the result: 121393 - ``` + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```c + #include + #include + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(25) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Step 1: Load WASM file. */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + /* + * Developers can load the WASM binary from buffer with the `WasmEdge_VMLoadWasmFromBuffer()` API, + * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMLoadWasmFromASTModule()` API. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 2: Validate the WASM module. */ + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 3: Instantiate the WASM module. */ + Res = WasmEdge_VMInstantiate(VMCxt); + /* + * Developers can load, validate, and instantiate another WASM module to replace the + * instantiated one. In this case, the old module will be cleared, but the registered + * modules are still kept. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 4: Asynchronously execute the WASM function and get the `WasmEdge_Async` object. */ + WasmEdge_Async *Async = WasmEdge_VMAsyncExecute(VMCxt, FuncName, Params, 1); + /* + * Developers can execute functions repeatedly after instantiation. + * For invoking the registered functions, you can use the `WasmEdge_VMAsyncExecuteRegistered()` API. + */ + + /* Wait and check the return values length. */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + /* The `Arity` should be 1. Developers can skip this step if they have known the return arity. */ + + /* Get the result. */ + Res = WasmEdge_AsyncGet(Async, Returns, Arity); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_AsyncDelete(Async); + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + } + ``` + + Then you can compile and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get the result: 121393 + ``` ### Instance Tracing @@ -1211,126 +1211,126 @@ Sometimes the developers may have requirements to get the instances of the WASM 1. Store - If the `VM` context is created without assigning a `Store` context, the `VM` context will allocate and own a `Store` context. + If the `VM` context is created without assigning a `Store` context, the `VM` context will allocate and own a `Store` context. - ```c - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - WasmEdge_StoreContext *StoreCxt = WasmEdge_VMGetStoreContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_StoreDelete()`. */ - WasmEdge_VMDelete(VMCxt); - ``` + ```c + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + WasmEdge_StoreContext *StoreCxt = WasmEdge_VMGetStoreContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_StoreDelete()`. */ + WasmEdge_VMDelete(VMCxt); + ``` - Developers can also create the `VM` context with a `Store` context. In this case, developers should guarantee the life cycle of the `Store` context. Please refer to the [Store Contexts](#store) for the details about the `Store` context APIs. + Developers can also create the `VM` context with a `Store` context. In this case, developers should guarantee the life cycle of the `Store` context. Please refer to the [Store Contexts](#store) for the details about the `Store` context APIs. - ```c - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); - WasmEdge_StoreContext *StoreCxtMock = WasmEdge_VMGetStoreContext(VMCxt); - /* The `StoreCxt` and the `StoreCxtMock` are the same. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StoreDelete(StoreCxt); - ``` + ```c + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); + WasmEdge_StoreContext *StoreCxtMock = WasmEdge_VMGetStoreContext(VMCxt); + /* The `StoreCxt` and the `StoreCxtMock` are the same. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StoreDelete(StoreCxt); + ``` 2. List exported functions - After the WASM module instantiation, developers can use the `WasmEdge_VMExecute()` API to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); - - WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - WasmEdge_VMValidate(VMCxt); - WasmEdge_VMInstantiate(VMCxt); - - /* List the exported functions. */ - /* Get the number of exported functions. */ - uint32_t FuncNum = WasmEdge_VMGetFunctionListLength(VMCxt); - /* Create the name buffers and the function type buffers. */ - const uint32_t BUF_LEN = 256; - WasmEdge_String FuncNames[BUF_LEN]; - WasmEdge_FunctionTypeContext *FuncTypes[BUF_LEN]; - /* - * Get the export function list. - * If the function list length is larger than the buffer length, the overflowed data will be discarded. - * The `FuncNames` and `FuncTypes` can be NULL if developers don't need them. - */ - uint32_t RealFuncNum = WasmEdge_VMGetFunctionList(VMCxt, FuncNames, FuncTypes, BUF_LEN); - - for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { - char Buf[BUF_LEN]; - uint32_t Size = WasmEdge_StringCopy(FuncNames[I], Buf, sizeof(Buf)); - printf("Get exported function string length: %u, name: %s\n", Size, Buf); - /* - * The function names should be __NOT__ destroyed. - * The returned function type contexts should __NOT__ be destroyed. - */ - } - return 0; - } - ``` - - Then you can compile and run: (the only exported function in `fibonacci.wasm` is `fib`) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get exported function string length: 3, name: fib - ``` - - If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` context from the `VM` context and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. + After the WASM module instantiation, developers can use the `WasmEdge_VMExecute()` API to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); + + WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + WasmEdge_VMValidate(VMCxt); + WasmEdge_VMInstantiate(VMCxt); + + /* List the exported functions. */ + /* Get the number of exported functions. */ + uint32_t FuncNum = WasmEdge_VMGetFunctionListLength(VMCxt); + /* Create the name buffers and the function type buffers. */ + const uint32_t BUF_LEN = 256; + WasmEdge_String FuncNames[BUF_LEN]; + WasmEdge_FunctionTypeContext *FuncTypes[BUF_LEN]; + /* + * Get the export function list. + * If the function list length is larger than the buffer length, the overflowed data will be discarded. + * The `FuncNames` and `FuncTypes` can be NULL if developers don't need them. + */ + uint32_t RealFuncNum = WasmEdge_VMGetFunctionList(VMCxt, FuncNames, FuncTypes, BUF_LEN); + + for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { + char Buf[BUF_LEN]; + uint32_t Size = WasmEdge_StringCopy(FuncNames[I], Buf, sizeof(Buf)); + printf("Get exported function string length: %u, name: %s\n", Size, Buf); + /* + * The function names should be __NOT__ destroyed. + * The returned function type contexts should __NOT__ be destroyed. + */ + } + return 0; + } + ``` + + Then you can compile and run: (the only exported function in `fibonacci.wasm` is `fib`) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get exported function string length: 3, name: fib + ``` + + If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` context from the `VM` context and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. 3. Get function types - The `VM` context provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. + The `VM` context provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. - ```c - /* - * ... - * Assume that a WASM module is instantiated in `VMCxt`. - */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - const WasmEdge_FunctionTypeContext *FuncType = WasmEdge_VMGetFunctionType(VMCxt, FuncName); - /* - * Developers can get the function types of functions in the registered modules - * via the `WasmEdge_VMGetFunctionTypeRegistered()` API with the module name. - * If the function is not found, these APIs will return `NULL`. - * The returned function type contexts should __NOT__ be destroyed. - */ - WasmEdge_StringDelete(FuncName); - ``` + ```c + /* + * ... + * Assume that a WASM module is instantiated in `VMCxt`. + */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + const WasmEdge_FunctionTypeContext *FuncType = WasmEdge_VMGetFunctionType(VMCxt, FuncName); + /* + * Developers can get the function types of functions in the registered modules + * via the `WasmEdge_VMGetFunctionTypeRegistered()` API with the module name. + * If the function is not found, these APIs will return `NULL`. + * The returned function type contexts should __NOT__ be destroyed. + */ + WasmEdge_StringDelete(FuncName); + ``` 4. Get the active module - After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` context. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `WasmEdge_VMGetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. + After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` context. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `WasmEdge_VMGetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. - ```c - /* - * ... - * Assume that a WASM module is instantiated in `VMCxt`. - */ - const WasmEdge_ModuleInstanceContext *ModCxt = WasmEdge_VMGetActiveModule(VMCxt); - /* - * If there's no WASM module instantiated, this API will return `NULL`. - * The returned module instance context should __NOT__ be destroyed. - */ - ``` + ```c + /* + * ... + * Assume that a WASM module is instantiated in `VMCxt`. + */ + const WasmEdge_ModuleInstanceContext *ModCxt = WasmEdge_VMGetActiveModule(VMCxt); + /* + * If there's no WASM module instantiated, this API will return `NULL`. + * The returned module instance context should __NOT__ be destroyed. + */ + ``` 5. Get the components - The `VM` context is composed by the `Loader`, `Validator`, and `Executor` contexts. For the developers who want to use these contexts without creating another instances, these APIs can help developers to get them from the `VM` context. The get contexts are owned by the `VM` context, and developers should not call their delete functions. + The `VM` context is composed by the `Loader`, `Validator`, and `Executor` contexts. For the developers who want to use these contexts without creating another instances, these APIs can help developers to get them from the `VM` context. The get contexts are owned by the `VM` context, and developers should not call their delete functions. - ```c - WasmEdge_LoaderContext *LoadCxt = WasmEdge_VMGetLoaderContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_LoaderDelete()`. */ - WasmEdge_ValidatorContext *ValidCxt = WasmEdge_VMGetValidatorContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_ValidatorDelete()`. */ - WasmEdge_ExecutorContext *ExecCxt = WasmEdge_VMGetExecutorContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_ExecutorDelete()`. */ - ``` + ```c + WasmEdge_LoaderContext *LoadCxt = WasmEdge_VMGetLoaderContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_LoaderDelete()`. */ + WasmEdge_ValidatorContext *ValidCxt = WasmEdge_VMGetValidatorContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_ValidatorDelete()`. */ + WasmEdge_ExecutorContext *ExecCxt = WasmEdge_VMGetExecutorContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_ExecutorDelete()`. */ + ``` ## WasmEdge Runtime @@ -1500,129 +1500,129 @@ The `Executor` context is the executor for both WASM and compiled-WASM. This obj 1. Instantiate and register an `AST module` as a named `Module` instance - As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` contexts, developers can instantiate and register an `AST module` contexts into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). - - ```c - /* - * ... - * Assume that the `ASTCxt` is the output AST module context from the loader context - * and has passed the validation. - * Assume that the `ConfCxt` is the configure context. - */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* Create the executor context. The configure and the statistics contexts can be NULL. */ - WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* Create the store context. The store context is the object to link the modules for imports and exports. */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* Result. */ - WasmEdge_Result Res; - - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - /* The output module instance. */ - WasmEdge_ModuleInstanceContext *ModCxt = NULL; - /* Register the WASM module into the store with the export module name "mod". */ - Res = WasmEdge_ExecutorRegister(ExecCxt, &ModCxt, StoreCxt, ASTCxt, ModName); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - WasmEdge_StringDelete(ModName); - - /* ... */ - - /* After the execution, the resources should be released. */ - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_ModuleInstanceDelete(ModCxt); - ``` + As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` contexts, developers can instantiate and register an `AST module` contexts into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader context + * and has passed the validation. + * Assume that the `ConfCxt` is the configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* Create the executor context. The configure and the statistics contexts can be NULL. */ + WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* Create the store context. The store context is the object to link the modules for imports and exports. */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* Result. */ + WasmEdge_Result Res; + + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + /* The output module instance. */ + WasmEdge_ModuleInstanceContext *ModCxt = NULL; + /* Register the WASM module into the store with the export module name "mod". */ + Res = WasmEdge_ExecutorRegister(ExecCxt, &ModCxt, StoreCxt, ASTCxt, ModName); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + WasmEdge_StringDelete(ModName); + + /* ... */ + + /* After the execution, the resources should be released. */ + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_ModuleInstanceDelete(ModCxt); + ``` 2. Register an existing `Module` instance and export the module name - Besides instantiating and registering an `AST module` contexts, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). - - ```c - /* + Besides instantiating and registering an `AST module` contexts, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader context + * and has passed the validation. + * Assume that the `ConfCxt` is the configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* Create the executor context. The configure and the statistics contexts can be NULL. */ + WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* Create the store context. The store context is the object to link the modules for imports and exports. */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* Result. */ + WasmEdge_Result Res; + + /* Create a module instance for host functions. */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("host-module"); + WasmEdge_ModuleInstanceContext *HostModCxt = WasmEdge_ModuleInstanceCreate(ModName); + WasmEdge_StringDelete(ModName); + /* * ... - * Assume that the `ASTCxt` is the output AST module context from the loader context - * and has passed the validation. - * Assume that the `ConfCxt` is the configure context. + * Create and add the host functions, tables, memories, and globals into the module instance. */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* Create the executor context. The configure and the statistics contexts can be NULL. */ - WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* Create the store context. The store context is the object to link the modules for imports and exports. */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* Result. */ - WasmEdge_Result Res; - - /* Create a module instance for host functions. */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("host-module"); - WasmEdge_ModuleInstanceContext *HostModCxt = WasmEdge_ModuleInstanceCreate(ModName); - WasmEdge_StringDelete(ModName); - /* - * ... - * Create and add the host functions, tables, memories, and globals into the module instance. - */ - /* Register the module instance into store with the exported module name. */ - /* The export module name is in the module instance already. */ - Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, HostModCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } + /* Register the module instance into store with the exported module name. */ + /* The export module name is in the module instance already. */ + Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, HostModCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } - /* ... */ + /* ... */ - /* After the execution, the resources should be released. */ - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_ModuleInstanceDelete(ModCxt); - ``` + /* After the execution, the resources should be released. */ + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_ModuleInstanceDelete(ModCxt); + ``` 3. Instantiate an `AST module` to an anonymous `Module` instance - WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` context for linking. - - ```c - /* - * ... - * Assume that the `ASTCxt` is the output AST module context from the loader context - * and has passed the validation. - * Assume that the `ConfCxt` is the configure context. - */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* Create the executor context. The configure and the statistics contexts can be NULL. */ - WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* Create the store context. The store context is the object to link the modules for imports and exports. */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - - /* The output module instance. */ - WasmEdge_ModuleInstanceContext *ModCxt = NULL; - /* Instantiate the WASM module. */ - WasmEdge_Result Res = WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt, StoreCxt, ASTCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM instantiation failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* ... */ - - /* After the execution, the resources should be released. */ - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_ModuleInstanceDelete(ModCxt); - ``` + WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` context for linking. + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader context + * and has passed the validation. + * Assume that the `ConfCxt` is the configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* Create the executor context. The configure and the statistics contexts can be NULL. */ + WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* Create the store context. The store context is the object to link the modules for imports and exports. */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + + /* The output module instance. */ + WasmEdge_ModuleInstanceContext *ModCxt = NULL; + /* Instantiate the WASM module. */ + WasmEdge_Result Res = WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt, StoreCxt, ASTCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM instantiation failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* ... */ + + /* After the execution, the resources should be released. */ + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_ModuleInstanceDelete(ModCxt); + ``` 4. Invoke functions - After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `WasmEdge_ExecutorInvoke()` API. + After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `WasmEdge_ExecutorInvoke()` API. ### AST Module @@ -1692,179 +1692,179 @@ The instances are the runtime structures of WASM. Developers can retrieve the `M 1. Module instance - After instantiating or registering an `AST module` context, developers will get a `Module` instance as the result, and have the responsibility to destroy it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. - - ```c - /* - * ... - * Instantiate a WASM module via the executor context and get the `ModCxt` as the output module instance. - */ - - /* Try to list the exported instance of the instantiated WASM module. */ - /* Take the function instances for example here. */ - uint32_t FuncNum = WasmEdge_ModuleInstanceListFunctionLength(ModCxt); - /* Create the name buffers. */ - const uint32_t BUF_LEN = 256; - WasmEdge_String FuncNames[BUF_LEN]; - /* If the list length is larger than the buffer length, the overflowed data will be discarded. */ - uint32_t RealFuncNum = WasmEdge_ModuleInstanceListFunction(ModCxt, FuncNames, BUF_LEN); - for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { - /* Working with the function name `FuncNames[I]` ... */ - /* The function names should __NOT__ be destroyed. */ - } - - /* Try to find the exported instance of the instantiated WASM module. */ - /* Take the function instances for example here. */ - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - WasmEdge_FunctionInstanceContext *FuncCxt = WasmEdge_ModuleInstanceFindFunction(ModCxt, FuncName); - /* `FuncCxt` will be `NULL` if the function not found. */ - /* The returned instance is owned by the module instance context and should __NOT__ be destroyed. */ - WasmEdge_StringDelete(FuncName); - ``` + After instantiating or registering an `AST module` context, developers will get a `Module` instance as the result, and have the responsibility to destroy it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. + + ```c + /* + * ... + * Instantiate a WASM module via the executor context and get the `ModCxt` as the output module instance. + */ + + /* Try to list the exported instance of the instantiated WASM module. */ + /* Take the function instances for example here. */ + uint32_t FuncNum = WasmEdge_ModuleInstanceListFunctionLength(ModCxt); + /* Create the name buffers. */ + const uint32_t BUF_LEN = 256; + WasmEdge_String FuncNames[BUF_LEN]; + /* If the list length is larger than the buffer length, the overflowed data will be discarded. */ + uint32_t RealFuncNum = WasmEdge_ModuleInstanceListFunction(ModCxt, FuncNames, BUF_LEN); + for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { + /* Working with the function name `FuncNames[I]` ... */ + /* The function names should __NOT__ be destroyed. */ + } + + /* Try to find the exported instance of the instantiated WASM module. */ + /* Take the function instances for example here. */ + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + WasmEdge_FunctionInstanceContext *FuncCxt = WasmEdge_ModuleInstanceFindFunction(ModCxt, FuncName); + /* `FuncCxt` will be `NULL` if the function not found. */ + /* The returned instance is owned by the module instance context and should __NOT__ be destroyed. */ + WasmEdge_StringDelete(FuncName); + ``` 2. Function instance - [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` contexts for host functions and add them into an `Module` instance context for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` contexts through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). + [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` contexts for host functions and add them into an `Module` instance context for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` contexts through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). - ```c - /* Retrieve the function instance from the module instance context. */ - WasmEdge_FunctionInstanceContext *FuncCxt = ...; - WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_FunctionInstanceGetFunctionType(FuncCxt); - /* The `FuncTypeCxt` is owned by the `FuncCxt` and should __NOT__ be destroyed. */ + ```c + /* Retrieve the function instance from the module instance context. */ + WasmEdge_FunctionInstanceContext *FuncCxt = ...; + WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_FunctionInstanceGetFunctionType(FuncCxt); + /* The `FuncTypeCxt` is owned by the `FuncCxt` and should __NOT__ be destroyed. */ - /* For the function instance creation, please refer to the `Host Function` guide. */ - ``` + /* For the function instance creation, please refer to the `Host Function` guide. */ + ``` 3. Table instance - In WasmEdge, developers can create the `Table` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Table` contexts supply APIs to control the data in table instances. - - ```c - WasmEdge_Limit TabLimit = {.HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - /* Create the table type with limit and the `FuncRef` element type. */ - WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TabLimit); - /* Create the table instance with table type. */ - WasmEdge_TableInstanceContext *HostTable = WasmEdge_TableInstanceCreate(TabTypeCxt); - /* Delete the table type. */ - WasmEdge_TableTypeDelete(TabTypeCxt); - WasmEdge_Result Res; - WasmEdge_Value Data; - - TabTypeCxt = WasmEdge_TableInstanceGetTableType(HostTable); - /* The `TabTypeCxt` got from table instance is owned by the `HostTable` and should __NOT__ be destroyed. */ - enum WasmEdge_RefType RefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); - /* `RefType` will be `WasmEdge_RefType_FuncRef`. */ - Data = WasmEdge_ValueGenFuncRef(5); - Res = WasmEdge_TableInstanceSetData(HostTable, Data, 3); - /* Set the function index 5 to the table[3]. */ - /* - * This will get an "out of bounds table access" error - * because the position (13) is out of the table size (10): - * Res = WasmEdge_TableInstanceSetData(HostTable, Data, 13); - */ - Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 3); - /* Get the FuncRef value of the table[3]. */ - /* - * This will get an "out of bounds table access" error - * because the position (13) is out of the table size (10): - * Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 13); - */ + In WasmEdge, developers can create the `Table` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Table` contexts supply APIs to control the data in table instances. + + ```c + WasmEdge_Limit TabLimit = {.HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + /* Create the table type with limit and the `FuncRef` element type. */ + WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TabLimit); + /* Create the table instance with table type. */ + WasmEdge_TableInstanceContext *HostTable = WasmEdge_TableInstanceCreate(TabTypeCxt); + /* Delete the table type. */ + WasmEdge_TableTypeDelete(TabTypeCxt); + WasmEdge_Result Res; + WasmEdge_Value Data; + + TabTypeCxt = WasmEdge_TableInstanceGetTableType(HostTable); + /* The `TabTypeCxt` got from table instance is owned by the `HostTable` and should __NOT__ be destroyed. */ + enum WasmEdge_RefType RefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); + /* `RefType` will be `WasmEdge_RefType_FuncRef`. */ + Data = WasmEdge_ValueGenFuncRef(5); + Res = WasmEdge_TableInstanceSetData(HostTable, Data, 3); + /* Set the function index 5 to the table[3]. */ + /* + * This will get an "out of bounds table access" error + * because the position (13) is out of the table size (10): + * Res = WasmEdge_TableInstanceSetData(HostTable, Data, 13); + */ + Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 3); + /* Get the FuncRef value of the table[3]. */ + /* + * This will get an "out of bounds table access" error + * because the position (13) is out of the table size (10): + * Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 13); + */ - uint32_t Size = WasmEdge_TableInstanceGetSize(HostTable); - /* `Size` will be 10. */ - Res = WasmEdge_TableInstanceGrow(HostTable, 6); - /* Grow the table size of 6, the table size will be 16. */ - /* - * This will get an "out of bounds table access" error because - * the size (16 + 6) will reach the table limit(20): - * Res = WasmEdge_TableInstanceGrow(HostTable, 6); - */ + uint32_t Size = WasmEdge_TableInstanceGetSize(HostTable); + /* `Size` will be 10. */ + Res = WasmEdge_TableInstanceGrow(HostTable, 6); + /* Grow the table size of 6, the table size will be 16. */ + /* + * This will get an "out of bounds table access" error because + * the size (16 + 6) will reach the table limit(20): + * Res = WasmEdge_TableInstanceGrow(HostTable, 6); + */ - WasmEdge_TableInstanceDelete(HostTable); - ``` + WasmEdge_TableInstanceDelete(HostTable); + ``` 4. Memory instance - In WasmEdge, developers can create the `Memory` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Memory` contexts supply APIs to control the data in memory instances. - - ```c - WasmEdge_Limit MemLimit = {.HasMax = true, .Shared = false, .Min = 1, .Max = 5}; - /* Create the memory type with limit. The memory page size is 64KiB. */ - WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLimit); - /* Create the memory instance with memory type. */ - WasmEdge_MemoryInstanceContext *HostMemory = WasmEdge_MemoryInstanceCreate(MemTypeCxt); - /* Delete the memory type. */ - WasmEdge_MemoryTypeDelete(MemTypeCxt); - WasmEdge_Result Res; - uint8_t Buf[256]; - - Buf[0] = 0xAA; - Buf[1] = 0xBB; - Buf[2] = 0xCC; - Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0x1000, 3); - /* Set the data[0:2] to the memory[4096:4098]. */ - /* - * This will get an "out of bounds memory access" error - * because [65535:65537] is out of 1 page size (65536): - * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); - */ - Buf[0] = 0; - Buf[1] = 0; - Buf[2] = 0; - Res = WasmEdge_MemoryInstanceGetData(HostMemory, Buf, 0x1000, 3); - /* Get the memory[4096:4098]. Buf[0:2] will be `{0xAA, 0xBB, 0xCC}`. */ - /* - * This will get an "out of bounds memory access" error - * because [65535:65537] is out of 1 page size (65536): - * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); - */ + In WasmEdge, developers can create the `Memory` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Memory` contexts supply APIs to control the data in memory instances. + + ```c + WasmEdge_Limit MemLimit = {.HasMax = true, .Shared = false, .Min = 1, .Max = 5}; + /* Create the memory type with limit. The memory page size is 64KiB. */ + WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLimit); + /* Create the memory instance with memory type. */ + WasmEdge_MemoryInstanceContext *HostMemory = WasmEdge_MemoryInstanceCreate(MemTypeCxt); + /* Delete the memory type. */ + WasmEdge_MemoryTypeDelete(MemTypeCxt); + WasmEdge_Result Res; + uint8_t Buf[256]; + + Buf[0] = 0xAA; + Buf[1] = 0xBB; + Buf[2] = 0xCC; + Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0x1000, 3); + /* Set the data[0:2] to the memory[4096:4098]. */ + /* + * This will get an "out of bounds memory access" error + * because [65535:65537] is out of 1 page size (65536): + * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); + */ + Buf[0] = 0; + Buf[1] = 0; + Buf[2] = 0; + Res = WasmEdge_MemoryInstanceGetData(HostMemory, Buf, 0x1000, 3); + /* Get the memory[4096:4098]. Buf[0:2] will be `{0xAA, 0xBB, 0xCC}`. */ + /* + * This will get an "out of bounds memory access" error + * because [65535:65537] is out of 1 page size (65536): + * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); + */ - uint32_t PageSize = WasmEdge_MemoryInstanceGetPageSize(HostMemory); - /* `PageSize` will be 1. */ - Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 2); - /* Grow the page size of 2, the page size of the memory instance will be 3. */ - /* - * This will get an "out of bounds memory access" error because - * the page size (3 + 3) will reach the memory limit(5): - * Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 3); - */ + uint32_t PageSize = WasmEdge_MemoryInstanceGetPageSize(HostMemory); + /* `PageSize` will be 1. */ + Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 2); + /* Grow the page size of 2, the page size of the memory instance will be 3. */ + /* + * This will get an "out of bounds memory access" error because + * the page size (3 + 3) will reach the memory limit(5): + * Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 3); + */ - WasmEdge_MemoryInstanceDelete(HostMemory); - ``` + WasmEdge_MemoryInstanceDelete(HostMemory); + ``` 5. Global instance - In WasmEdge, developers can create the `Global` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Global` contexts supply APIs to control the value in global instances. - - ```c - WasmEdge_Value Val = WasmEdge_ValueGenI64(1000); - /* Create the global type with value type and mutation. */ - WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate(WasmEdge_ValType_I64, WasmEdge_Mutability_Var); - /* Create the global instance with value and global type. */ - WasmEdge_GlobalInstanceContext *HostGlobal = WasmEdge_GlobalInstanceCreate(GlobTypeCxt, Val); - /* Delete the global type. */ - WasmEdge_GlobalTypeDelete(GlobTypeCxt); - WasmEdge_Result Res; - - GlobTypeCxt = WasmEdge_GlobalInstanceGetGlobalType(HostGlobal); - /* The `GlobTypeCxt` got from global instance is owned by the `HostGlobal` and should __NOT__ be destroyed. */ - enum WasmEdge_ValType ValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); - /* `ValType` will be `WasmEdge_ValType_I64`. */ - enum WasmEdge_Mutability ValMut = WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); - /* `ValMut` will be `WasmEdge_Mutability_Var`. */ - - WasmEdge_GlobalInstanceSetValue(HostGlobal, WasmEdge_ValueGenI64(888)); - /* - * Set the value u64(888) to the global. - * This function will do nothing if the value type mismatched or - * the global mutability is `WasmEdge_Mutability_Const`. - */ - WasmEdge_Value GlobVal = WasmEdge_GlobalInstanceGetValue(HostGlobal); - /* Get the value (888 now) of the global context. */ + In WasmEdge, developers can create the `Global` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Global` contexts supply APIs to control the value in global instances. + + ```c + WasmEdge_Value Val = WasmEdge_ValueGenI64(1000); + /* Create the global type with value type and mutation. */ + WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate(WasmEdge_ValType_I64, WasmEdge_Mutability_Var); + /* Create the global instance with value and global type. */ + WasmEdge_GlobalInstanceContext *HostGlobal = WasmEdge_GlobalInstanceCreate(GlobTypeCxt, Val); + /* Delete the global type. */ + WasmEdge_GlobalTypeDelete(GlobTypeCxt); + WasmEdge_Result Res; + + GlobTypeCxt = WasmEdge_GlobalInstanceGetGlobalType(HostGlobal); + /* The `GlobTypeCxt` got from global instance is owned by the `HostGlobal` and should __NOT__ be destroyed. */ + enum WasmEdge_ValType ValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); + /* `ValType` will be `WasmEdge_ValType_I64`. */ + enum WasmEdge_Mutability ValMut = WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); + /* `ValMut` will be `WasmEdge_Mutability_Var`. */ + + WasmEdge_GlobalInstanceSetValue(HostGlobal, WasmEdge_ValueGenI64(888)); + /* + * Set the value u64(888) to the global. + * This function will do nothing if the value type mismatched or + * the global mutability is `WasmEdge_Mutability_Const`. + */ + WasmEdge_Value GlobVal = WasmEdge_GlobalInstanceGetValue(HostGlobal); + /* Get the value (888 now) of the global context. */ - WasmEdge_GlobalInstanceDelete(HostGlobal); - ``` + WasmEdge_GlobalInstanceDelete(HostGlobal); + ``` ### Host Functions @@ -1872,402 +1872,402 @@ The instances are the runtime structures of WASM. Developers can retrieve the `M 1. Host function allocation - Developers can define C functions with the following function signature as the host function body: - - ```c - typedef WasmEdge_Result (*WasmEdge_HostFunc_t)( - void *Data, - WasmEdge_MemoryInstanceContext *MemCxt, - const WasmEdge_Value *Params, - WasmEdge_Value *Returns); - ``` - - The example of an `add` host function to add 2 `i32` values: - - ```c - WasmEdge_Result Add(void *, WasmEdge_MemoryInstanceContext *, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - /* - * Params: {i32, i32} - * Returns: {i32} - * Developers should take care about the function type. - */ - /* Retrieve the value 1. */ - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - /* Retrieve the value 2. */ - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - /* Output value 1 is Val1 + Val2. */ - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - /* Return the status of success. */ - return WasmEdge_Result_Success; - } - ``` - - Then developers can create `Function` context with the host function body and the function type: - - ```c - enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; - enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; - /* Create a function type: {i32, i32} -> {i32}. */ - WasmEdge_FunctionTypeContext *HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - /* - * Create a function context with the function type and host function body. - * The `Cost` parameter can be 0 if developers do not need the cost measuring. + Developers can define C functions with the following function signature as the host function body: + + ```c + typedef WasmEdge_Result (*WasmEdge_HostFunc_t)( + void *Data, + WasmEdge_MemoryInstanceContext *MemCxt, + const WasmEdge_Value *Params, + WasmEdge_Value *Returns); + ``` + + The example of an `add` host function to add 2 `i32` values: + + ```c + WasmEdge_Result Add(void *, WasmEdge_MemoryInstanceContext *, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + /* + * Params: {i32, i32} + * Returns: {i32} + * Developers should take care about the function type. */ - WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - /* - * The third parameter is the pointer to the additional data. - * Developers should guarantee the life cycle of the data, and it can be - * `NULL` if the external data is not needed. - */ - WasmEdge_FunctionTypeDelete(HostType); + /* Retrieve the value 1. */ + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + /* Retrieve the value 2. */ + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + /* Output value 1 is Val1 + Val2. */ + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + /* Return the status of success. */ + return WasmEdge_Result_Success; + } + ``` + + Then developers can create `Function` context with the host function body and the function type: + + ```c + enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; + enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; + /* Create a function type: {i32, i32} -> {i32}. */ + WasmEdge_FunctionTypeContext *HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + /* + * Create a function context with the function type and host function body. + * The `Cost` parameter can be 0 if developers do not need the cost measuring. + */ + WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + /* + * The third parameter is the pointer to the additional data. + * Developers should guarantee the life cycle of the data, and it can be + * `NULL` if the external data is not needed. + */ + WasmEdge_FunctionTypeDelete(HostType); - /* If the function instance is not added into a module instance context, it should be deleted. */ - WasmEdge_FunctionInstanceDelete(HostFunc); - ``` + /* If the function instance is not added into a module instance context, it should be deleted. */ + WasmEdge_FunctionInstanceDelete(HostFunc); + ``` 2. Construct a module instance with host instances - Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. - - ```c - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - return WasmEdge_Result_Success; - } - - /* Create a module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("module"); - WasmEdge_ModuleInstanceContext *HostModCxt = WasmEdge_ModuleInstanceCreate(ExportName); - WasmEdge_StringDelete(ExportName); - - /* Create and add a function instance into the module instance. */ - enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; - enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - /* - * The third parameter is the pointer to the additional data object. - * Developers should guarantee the life cycle of the data, and it can be - * `NULL` if the external data is not needed. - */ - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("add"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, FuncName, HostFunc); - WasmEdge_StringDelete(FuncName); - - /* Create and add a table instance into the import object. */ - WasmEdge_Limit TableLimit = {.HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - WasmEdge_TableTypeContext *HostTType = - WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TableLimit); - WasmEdge_TableInstanceContext *HostTable = WasmEdge_TableInstanceCreate(HostTType); - WasmEdge_TableTypeDelete(HostTType); - WasmEdge_String TableName = WasmEdge_StringCreateByCString("table"); - WasmEdge_ModuleInstanceAddTable(HostModCxt, TableName, HostTable); - WasmEdge_StringDelete(TableName); - - /* Create and add a memory instance into the import object. */ - WasmEdge_Limit MemoryLimit = {.HasMax = true, .Shared = false, .Min = 1, .Max = 2}; - WasmEdge_MemoryTypeContext *HostMType = WasmEdge_MemoryTypeCreate(MemoryLimit); - WasmEdge_MemoryInstanceContext *HostMemory = WasmEdge_MemoryInstanceCreate(HostMType); - WasmEdge_MemoryTypeDelete(HostMType); - WasmEdge_String MemoryName = WasmEdge_StringCreateByCString("memory"); - WasmEdge_ModuleInstanceAddMemory(HostModCxt, MemoryName, HostMemory); - WasmEdge_StringDelete(MemoryName); - - /* Create and add a global instance into the module instance. */ - WasmEdge_GlobalTypeContext *HostGType = - WasmEdge_GlobalTypeCreate(WasmEdge_ValType_I32, WasmEdge_Mutability_Var); - WasmEdge_GlobalInstanceContext *HostGlobal = - WasmEdge_GlobalInstanceCreate(HostGType, WasmEdge_ValueGenI32(666)); - WasmEdge_GlobalTypeDelete(HostGType); - WasmEdge_String GlobalName = WasmEdge_StringCreateByCString("global"); - WasmEdge_ModuleInstanceAddGlobal(HostModCxt, GlobalName, HostGlobal); - WasmEdge_StringDelete(GlobalName); - - /* - * The module instance should be deleted. - * Developers should __NOT__ destroy the instances added into the module instance contexts. - */ - WasmEdge_ModuleInstanceDelete(HostModCxt); - ``` + Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + + ```c + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + return WasmEdge_Result_Success; + } + + /* Create a module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("module"); + WasmEdge_ModuleInstanceContext *HostModCxt = WasmEdge_ModuleInstanceCreate(ExportName); + WasmEdge_StringDelete(ExportName); + + /* Create and add a function instance into the module instance. */ + enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; + enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + /* + * The third parameter is the pointer to the additional data object. + * Developers should guarantee the life cycle of the data, and it can be + * `NULL` if the external data is not needed. + */ + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("add"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, FuncName, HostFunc); + WasmEdge_StringDelete(FuncName); + + /* Create and add a table instance into the import object. */ + WasmEdge_Limit TableLimit = {.HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + WasmEdge_TableTypeContext *HostTType = + WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TableLimit); + WasmEdge_TableInstanceContext *HostTable = WasmEdge_TableInstanceCreate(HostTType); + WasmEdge_TableTypeDelete(HostTType); + WasmEdge_String TableName = WasmEdge_StringCreateByCString("table"); + WasmEdge_ModuleInstanceAddTable(HostModCxt, TableName, HostTable); + WasmEdge_StringDelete(TableName); + + /* Create and add a memory instance into the import object. */ + WasmEdge_Limit MemoryLimit = {.HasMax = true, .Shared = false, .Min = 1, .Max = 2}; + WasmEdge_MemoryTypeContext *HostMType = WasmEdge_MemoryTypeCreate(MemoryLimit); + WasmEdge_MemoryInstanceContext *HostMemory = WasmEdge_MemoryInstanceCreate(HostMType); + WasmEdge_MemoryTypeDelete(HostMType); + WasmEdge_String MemoryName = WasmEdge_StringCreateByCString("memory"); + WasmEdge_ModuleInstanceAddMemory(HostModCxt, MemoryName, HostMemory); + WasmEdge_StringDelete(MemoryName); + + /* Create and add a global instance into the module instance. */ + WasmEdge_GlobalTypeContext *HostGType = + WasmEdge_GlobalTypeCreate(WasmEdge_ValType_I32, WasmEdge_Mutability_Var); + WasmEdge_GlobalInstanceContext *HostGlobal = + WasmEdge_GlobalInstanceCreate(HostGType, WasmEdge_ValueGenI32(666)); + WasmEdge_GlobalTypeDelete(HostGType); + WasmEdge_String GlobalName = WasmEdge_StringCreateByCString("global"); + WasmEdge_ModuleInstanceAddGlobal(HostModCxt, GlobalName, HostGlobal); + WasmEdge_StringDelete(GlobalName); + + /* + * The module instance should be deleted. + * Developers should __NOT__ destroy the instances added into the module instance contexts. + */ + WasmEdge_ModuleInstanceDelete(HostModCxt); + ``` 3. Specified module instance - `WasmEdge_ModuleInstanceCreateWASI()` API can create and initialize the `WASI` module instance. + `WasmEdge_ModuleInstanceCreateWASI()` API can create and initialize the `WASI` module instance. - `WasmEdge_ModuleInstanceCreateWasiNN()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin (`0.10.1` or upper only). + `WasmEdge_ModuleInstanceCreateWasiNN()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin (`0.10.1` or upper only). - `WasmEdge_ModuleInstanceCreateWasiCryptoCommon()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin (`0.10.1` or upper only). + `WasmEdge_ModuleInstanceCreateWasiCryptoCommon()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin (`0.10.1` or upper only). - `WasmEdge_ModuleInstanceCreateWasiCryptoAsymmetricCommon()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin (`0.10.1` or upper only). + `WasmEdge_ModuleInstanceCreateWasiCryptoAsymmetricCommon()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin (`0.10.1` or upper only). - `WasmEdge_ModuleInstanceCreateWasiCryptoKx()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin (`0.10.1` or upper only). + `WasmEdge_ModuleInstanceCreateWasiCryptoKx()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin (`0.10.1` or upper only). - `WasmEdge_ModuleInstanceCreateWasiCryptoSignatures()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin (`0.10.1` or upper only). + `WasmEdge_ModuleInstanceCreateWasiCryptoSignatures()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin (`0.10.1` or upper only). - `WasmEdge_ModuleInstanceCreateWasiCryptoSymmetric()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin (`0.10.1` or upper only). + `WasmEdge_ModuleInstanceCreateWasiCryptoSymmetric()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin (`0.10.1` or upper only). - `WasmEdge_ModuleInstanceCreateWasmEdgeProcess()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. + `WasmEdge_ModuleInstanceCreateWasmEdgeProcess()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. - Developers can create these module instance contexts and register them into the `Store` or `VM` contexts rather than adjust the settings in the `Configure` contexts. + Developers can create these module instance contexts and register them into the `Store` or `VM` contexts rather than adjust the settings in the `Configure` contexts. - > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. And the 5 modules are recommended to all be created and registered together. + > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. And the 5 modules are recommended to all be created and registered together. - ```c - WasmEdge_ModuleInstanceContext *WasiModCxt = WasmEdge_ModuleInstanceCreateWASI( /* ... ignored */ ); - WasmEdge_ModuleInstanceContext *ProcModCxt = WasmEdge_ModuleInstanceCreateWasmEdgeProcess( /* ... ignored */ ); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - /* Register the WASI and WasmEdge_Process into the VM context. */ - WasmEdge_VMRegisterModuleFromImport(VMCxt, WasiModCxt); - WasmEdge_VMRegisterModuleFromImport(VMCxt, ProcModCxt); - /* Get the WASI exit code. */ - uint32_t ExitCode = WasmEdge_ModuleInstanceWASIGetExitCode(WasiModCxt); - /* - * The `ExitCode` will be EXIT_SUCCESS if the execution has no error. - * Otherwise, it will return with the related exit code. - */ - WasmEdge_VMDelete(VMCxt); - /* The module instances should be deleted. */ - WasmEdge_ModuleInstanceDelete(WasiModCxt); - WasmEdge_ModuleInstanceDelete(ProcModCxt); - ``` + ```c + WasmEdge_ModuleInstanceContext *WasiModCxt = WasmEdge_ModuleInstanceCreateWASI( /* ... ignored */ ); + WasmEdge_ModuleInstanceContext *ProcModCxt = WasmEdge_ModuleInstanceCreateWasmEdgeProcess( /* ... ignored */ ); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + /* Register the WASI and WasmEdge_Process into the VM context. */ + WasmEdge_VMRegisterModuleFromImport(VMCxt, WasiModCxt); + WasmEdge_VMRegisterModuleFromImport(VMCxt, ProcModCxt); + /* Get the WASI exit code. */ + uint32_t ExitCode = WasmEdge_ModuleInstanceWASIGetExitCode(WasiModCxt); + /* + * The `ExitCode` will be EXIT_SUCCESS if the execution has no error. + * Otherwise, it will return with the related exit code. + */ + WasmEdge_VMDelete(VMCxt); + /* The module instances should be deleted. */ + WasmEdge_ModuleInstanceDelete(WasiModCxt); + WasmEdge_ModuleInstanceDelete(ProcModCxt); + ``` 4. Example - Assume that a simple WASM from the WAT as following: - - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` - - And the `test.c` as following: - - ```c - #include - #include - - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - printf("Host function \"Add\": %d + %d\n", Val1, Val2); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - return WasmEdge_Result_Success; - } - - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The WASM module buffer. */ - uint8_t WASM[] = { - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B - }; - - /* Create the module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); - WasmEdge_ModuleInstanceContext *HostModCxt = WasmEdge_ModuleInstanceCreate(ExportName); - enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; - enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; - WasmEdge_FunctionTypeContext *HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); - WasmEdge_StringDelete(HostFuncName); - - WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[2] = { WasmEdge_ValueGenI32(1234), WasmEdge_ValueGenI32(5678) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( - VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - WasmEdge_ModuleInstanceDelete(HostModCxt); - return 0; - } - ``` - - Then you can compile and run: (the result of 1234 + 5678 is 6912) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Host function "Add": 1234 + 5678 - Get the result: 6912 - ``` + Assume that a simple WASM from the WAT as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + And the `test.c` as following: + + ```c + #include + #include + + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + printf("Host function \"Add\": %d + %d\n", Val1, Val2); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + return WasmEdge_Result_Success; + } + + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The WASM module buffer. */ + uint8_t WASM[] = { + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B + }; + + /* Create the module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); + WasmEdge_ModuleInstanceContext *HostModCxt = WasmEdge_ModuleInstanceCreate(ExportName); + enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; + enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; + WasmEdge_FunctionTypeContext *HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); + WasmEdge_StringDelete(HostFuncName); + + WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[2] = { WasmEdge_ValueGenI32(1234), WasmEdge_ValueGenI32(5678) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( + VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + WasmEdge_ModuleInstanceDelete(HostModCxt); + return 0; + } + ``` + + Then you can compile and run: (the result of 1234 + 5678 is 6912) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Host function "Add": 1234 + 5678 + Get the result: 6912 + ``` 5. Host Data Example - Developers can set a external data object to the `Function` context, and access to the object in the function body. Assume that a simple WASM from the WAT as following: - - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` - - And the `test.c` as following: - - ```c - #include - #include - - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - printf("Host function \"Add\": %d + %d\n", Val1, Val2); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - /* Also set the result to the data. */ - int32_t *DataPtr = (int32_t *)Data; - *DataPtr = Val1 + Val2; - return WasmEdge_Result_Success; - } - - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The WASM module buffer. */ - uint8_t WASM[] = { - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B - }; - - /* The external data object: an integer. */ - int32_t Data; - - /* Create the module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); - WasmEdge_ModuleInstanceContext *HostModCxt = WasmEdge_ModuleInstanceCreate(ExportName); - enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; - enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; - WasmEdge_FunctionTypeContext *HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, &Data, 0); - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); - WasmEdge_StringDelete(HostFuncName); - - WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[2] = { WasmEdge_ValueGenI32(1234), WasmEdge_ValueGenI32(5678) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( - VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - printf("Data value: %d\n", Data); - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - WasmEdge_ModuleInstanceDelete(HostModCxt); - return 0; - } - ``` - - Then you can compile and run: (the result of 1234 + 5678 is 6912) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Host function "Add": 1234 + 5678 - Get the result: 6912 - Data value: 6912 - ``` + Developers can set a external data object to the `Function` context, and access to the object in the function body. Assume that a simple WASM from the WAT as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + And the `test.c` as following: + + ```c + #include + #include + + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + printf("Host function \"Add\": %d + %d\n", Val1, Val2); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + /* Also set the result to the data. */ + int32_t *DataPtr = (int32_t *)Data; + *DataPtr = Val1 + Val2; + return WasmEdge_Result_Success; + } + + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The WASM module buffer. */ + uint8_t WASM[] = { + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B + }; + + /* The external data object: an integer. */ + int32_t Data; + + /* Create the module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); + WasmEdge_ModuleInstanceContext *HostModCxt = WasmEdge_ModuleInstanceCreate(ExportName); + enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; + enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; + WasmEdge_FunctionTypeContext *HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, &Data, 0); + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); + WasmEdge_StringDelete(HostFuncName); + + WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[2] = { WasmEdge_ValueGenI32(1234), WasmEdge_ValueGenI32(5678) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( + VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + printf("Data value: %d\n", Data); + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + WasmEdge_ModuleInstanceDelete(HostModCxt); + return 0; + } + ``` + + Then you can compile and run: (the result of 1234 + 5678 is 6912) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Host function "Add": 1234 + 5678 + Get the result: 6912 + Data value: 6912 + ``` ## WasmEdge AOT Compiler diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/0.11.2.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/0.11.2.md index e5b5eab0..be0909bc 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/0.11.2.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/0.11.2.md @@ -16,42 +16,42 @@ sidebar_position: 3 ## Table of Contents -- [WasmEdge Installation](#wasmedge-installation) - - [Download And Install](#download-and-install) - - [Compile Sources](#compile-sources) - - [ABI Compatibility](#abi-compatibility) -- [WasmEdge Basics](#wasmedge-basics) - - [Version](#version) - - [Logging Settings](#logging-settings) - - [Value Types](#value-types) - - [Strings](#strings) - - [Results](#results) - - [Contexts](#contexts) - - [WASM data structures](#wasm-data-structures) - - [Async](#async) - - [Configurations](#configurations) - - [Statistics](#statistics) - - [Tools driver](#tools-driver) -- [WasmEdge VM](#wasmedge-vm) - - [WASM Execution Example With VM Context](#wasm-execution-example-with-vm-context) - - [VM Creations](#vm-creations) - - [Preregistrations](#preregistrations) - - [Host Module Registrations](#host-module-registrations) - - [WASM Registrations And Executions](#wasm-registrations-and-executions) - - [Asynchronous execution](#asynchronous-execution) - - [Instance Tracing](#instance-tracing) -- [WasmEdge Runtime](#wasmedge-runtime) - - [WASM Execution Example Step-By-Step](#wasm-execution-example-step-by-step) - - [Loader](#loader) - - [Validator](#validator) - - [Executor](#executor) - - [AST Module](#ast-module) - - [Store](#store) - - [Instances](#instances) - - [Host Functions](#host-functions) -- [WasmEdge AOT Compiler](#wasmedge-aot-compiler) - - [Compilation Example](#compilation-example) - - [Compiler Options](#compiler-options) +- [WasmEdge Installation](#wasmedge-installation) + - [Download And Install](#download-and-install) + - [Compile Sources](#compile-sources) + - [ABI Compatibility](#abi-compatibility) +- [WasmEdge Basics](#wasmedge-basics) + - [Version](#version) + - [Logging Settings](#logging-settings) + - [Value Types](#value-types) + - [Strings](#strings) + - [Results](#results) + - [Contexts](#contexts) + - [WASM data structures](#wasm-data-structures) + - [Async](#async) + - [Configurations](#configurations) + - [Statistics](#statistics) + - [Tools driver](#tools-driver) +- [WasmEdge VM](#wasmedge-vm) + - [WASM Execution Example With VM Context](#wasm-execution-example-with-vm-context) + - [VM Creations](#vm-creations) + - [Preregistrations](#preregistrations) + - [Host Module Registrations](#host-module-registrations) + - [WASM Registrations And Executions](#wasm-registrations-and-executions) + - [Asynchronous execution](#asynchronous-execution) + - [Instance Tracing](#instance-tracing) +- [WasmEdge Runtime](#wasmedge-runtime) + - [WASM Execution Example Step-By-Step](#wasm-execution-example-step-by-step) + - [Loader](#loader) + - [Validator](#validator) + - [Executor](#executor) + - [AST Module](#ast-module) + - [Store](#store) + - [Instances](#instances) + - [Host Functions](#host-functions) +- [WasmEdge AOT Compiler](#wasmedge-aot-compiler) + - [Compilation Example](#compilation-example) + - [Compiler Options](#compiler-options) ## WasmEdge Installation @@ -71,27 +71,27 @@ After the installation of WasmEdge, the following guide can help you to test for 1. Prepare the test C file (and assumed saved as `test.c`): - ```c - #include - #include - int main() { - printf("WasmEdge version: %s\n", WasmEdge_VersionGet()); - return 0; - } - ``` + ```c + #include + #include + int main() { + printf("WasmEdge version: %s\n", WasmEdge_VersionGet()); + return 0; + } + ``` 2. Compile the file with `gcc` or `clang`. - ```bash - gcc test.c -lwasmedge - ``` + ```bash + gcc test.c -lwasmedge + ``` 3. Run and get the expected output. - ```bash - $ ./a.out - WasmEdge version: 0.11.2 - ``` + ```bash + $ ./a.out + WasmEdge version: 0.11.2 + ``` ### ABI Compatibility @@ -133,54 +133,54 @@ In WasmEdge, developers should convert the values to `WasmEdge_Value` objects th 1. Number types: `i32`, `i64`, `f32`, `f64`, and `v128` for the `SIMD` proposal - ```c - WasmEdge_Value Val; - Val = WasmEdge_ValueGenI32(123456); - printf("%d\n", WasmEdge_ValueGetI32(Val)); - /* Will print "123456" */ - Val = WasmEdge_ValueGenI64(1234567890123LL); - printf("%ld\n", WasmEdge_ValueGetI64(Val)); - /* Will print "1234567890123" */ - Val = WasmEdge_ValueGenF32(123.456f); - printf("%f\n", WasmEdge_ValueGetF32(Val)); - /* Will print "123.456001" */ - Val = WasmEdge_ValueGenF64(123456.123456789); - printf("%.10f\n", WasmEdge_ValueGetF64(Val)); - /* Will print "123456.1234567890" */ - ``` + ```c + WasmEdge_Value Val; + Val = WasmEdge_ValueGenI32(123456); + printf("%d\n", WasmEdge_ValueGetI32(Val)); + /* Will print "123456" */ + Val = WasmEdge_ValueGenI64(1234567890123LL); + printf("%ld\n", WasmEdge_ValueGetI64(Val)); + /* Will print "1234567890123" */ + Val = WasmEdge_ValueGenF32(123.456f); + printf("%f\n", WasmEdge_ValueGetF32(Val)); + /* Will print "123.456001" */ + Val = WasmEdge_ValueGenF64(123456.123456789); + printf("%.10f\n", WasmEdge_ValueGetF64(Val)); + /* Will print "123456.1234567890" */ + ``` 2. Reference types: `funcref` and `externref` for the `Reference-Types` proposal - ```c - WasmEdge_Value Val; - void *Ptr; - bool IsNull; - uint32_t Num = 10; - /* Generate a externref to NULL. */ - Val = WasmEdge_ValueGenNullRef(WasmEdge_RefType_ExternRef); - IsNull = WasmEdge_ValueIsNullRef(Val); - /* The `IsNull` will be `TRUE`. */ - Ptr = WasmEdge_ValueGetExternRef(Val); - /* The `Ptr` will be `NULL`. */ - - /* Get the function instance by creation or from module instance. */ - const WasmEdge_FunctionInstanceContext *FuncCxt = ...; - /* Generate a funcref with the given function instance context. */ - Val = WasmEdge_ValueGenFuncRef(FuncCxt); - const WasmEdge_FunctionInstanceContext *GotFuncCxt = - WasmEdge_ValueGetFuncRef(Val); - /* The `GotFuncCxt` will be the same as `FuncCxt`. */ - - /* Generate a externref to `Num`. */ - Val = WasmEdge_ValueGenExternRef(&Num); - Ptr = WasmEdge_ValueGetExternRef(Val); - /* The `Ptr` will be `&Num`. */ - printf("%u\n", *(uint32_t *)Ptr); - /* Will print "10" */ - Num += 55; - printf("%u\n", *(uint32_t *)Ptr); - /* Will print "65" */ - ``` + ```c + WasmEdge_Value Val; + void *Ptr; + bool IsNull; + uint32_t Num = 10; + /* Generate a externref to NULL. */ + Val = WasmEdge_ValueGenNullRef(WasmEdge_RefType_ExternRef); + IsNull = WasmEdge_ValueIsNullRef(Val); + /* The `IsNull` will be `TRUE`. */ + Ptr = WasmEdge_ValueGetExternRef(Val); + /* The `Ptr` will be `NULL`. */ + + /* Get the function instance by creation or from module instance. */ + const WasmEdge_FunctionInstanceContext *FuncCxt = ...; + /* Generate a funcref with the given function instance context. */ + Val = WasmEdge_ValueGenFuncRef(FuncCxt); + const WasmEdge_FunctionInstanceContext *GotFuncCxt = + WasmEdge_ValueGetFuncRef(Val); + /* The `GotFuncCxt` will be the same as `FuncCxt`. */ + + /* Generate a externref to `Num`. */ + Val = WasmEdge_ValueGenExternRef(&Num); + Ptr = WasmEdge_ValueGetExternRef(Val); + /* The `Ptr` will be `&Num`. */ + printf("%u\n", *(uint32_t *)Ptr); + /* Will print "10" */ + Num += 55; + printf("%u\n", *(uint32_t *)Ptr); + /* Will print "65" */ + ``` ### Strings @@ -188,50 +188,50 @@ The `WasmEdge_String` object is for the instance names when invoking a WASM func 1. Create a `WasmEdge_String` from a C string (`const char *` with NULL termination) or a buffer with length. - The content of the C string or buffer will be copied into the `WasmEdge_String` object. + The content of the C string or buffer will be copied into the `WasmEdge_String` object. - ```c - char Buf[4] = {50, 55, 60, 65}; - WasmEdge_String Str1 = WasmEdge_StringCreateByCString("test"); - WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); - /* The objects should be deleted by `WasmEdge_StringDelete()`. */ - WasmEdge_StringDelete(Str1); - WasmEdge_StringDelete(Str2); - ``` + ```c + char Buf[4] = {50, 55, 60, 65}; + WasmEdge_String Str1 = WasmEdge_StringCreateByCString("test"); + WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); + /* The objects should be deleted by `WasmEdge_StringDelete()`. */ + WasmEdge_StringDelete(Str1); + WasmEdge_StringDelete(Str2); + ``` 2. Wrap a `WasmEdge_String` to a buffer with length. - The content will not be copied, and the caller should guarantee the life cycle of the input buffer. + The content will not be copied, and the caller should guarantee the life cycle of the input buffer. - ```c - const char CStr[] = "test"; - WasmEdge_String Str = WasmEdge_StringWrap(CStr, 4); - /* The object should __NOT__ be deleted by `WasmEdge_StringDelete()`. */ - ``` + ```c + const char CStr[] = "test"; + WasmEdge_String Str = WasmEdge_StringWrap(CStr, 4); + /* The object should __NOT__ be deleted by `WasmEdge_StringDelete()`. */ + ``` 3. String comparison - ```c - const char CStr[] = "abcd"; - char Buf[4] = {0x61, 0x62, 0x63, 0x64}; - WasmEdge_String Str1 = WasmEdge_StringWrap(CStr, 4); - WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); - bool IsEq = WasmEdge_StringIsEqual(Str1, Str2); - /* The `IsEq` will be `TRUE`. */ - WasmEdge_StringDelete(Str2); - ``` + ```c + const char CStr[] = "abcd"; + char Buf[4] = {0x61, 0x62, 0x63, 0x64}; + WasmEdge_String Str1 = WasmEdge_StringWrap(CStr, 4); + WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); + bool IsEq = WasmEdge_StringIsEqual(Str1, Str2); + /* The `IsEq` will be `TRUE`. */ + WasmEdge_StringDelete(Str2); + ``` 4. Convert to C string - ```c - char Buf[256]; - WasmEdge_String Str = - WasmEdge_StringCreateByCString("test_wasmedge_string"); - uint32_t StrLength = WasmEdge_StringCopy(Str, Buf, sizeof(Buf)); - /* StrLength will be 20 */ - printf("String: %s\n", Buf); - /* Will print "test_wasmedge_string". */ - ``` + ```c + char Buf[256]; + WasmEdge_String Str = + WasmEdge_StringCreateByCString("test_wasmedge_string"); + uint32_t StrLength = WasmEdge_StringCopy(Str, Buf, sizeof(Buf)); + /* StrLength will be 20 */ + printf("String: %s\n", Buf); + /* Will print "test_wasmedge_string". */ + ``` ### Results @@ -275,204 +275,204 @@ The WASM data structures are used for creating instances or can be queried from 1. Limit - The `WasmEdge_Limit` struct is defined in the header: + The `WasmEdge_Limit` struct is defined in the header: - ```c - /// Struct of WASM limit. - typedef struct WasmEdge_Limit { - /// Boolean to describe has max value or not. - bool HasMax; - /// Boolean to describe is shared memory or not. - bool Shared; - /// Minimum value. - uint32_t Min; - /// Maximum value. Will be ignored if the `HasMax` is false. - uint32_t Max; - } WasmEdge_Limit; - ``` + ```c + /// Struct of WASM limit. + typedef struct WasmEdge_Limit { + /// Boolean to describe has max value or not. + bool HasMax; + /// Boolean to describe is shared memory or not. + bool Shared; + /// Minimum value. + uint32_t Min; + /// Maximum value. Will be ignored if the `HasMax` is false. + uint32_t Max; + } WasmEdge_Limit; + ``` - Developers can initialize the struct by assigning it's value, and the `Max` value is needed to be larger or equal to the `Min` value. The API `WasmEdge_LimitIsEqual()` is provided to compare with 2 `WasmEdge_Limit` structs. + Developers can initialize the struct by assigning it's value, and the `Max` value is needed to be larger or equal to the `Min` value. The API `WasmEdge_LimitIsEqual()` is provided to compare with 2 `WasmEdge_Limit` structs. 2. Function type context - The `Function Type` context is used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `Function Type` context APIs to get the parameter or return value types information. - - ```c - enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, - WasmEdge_ValType_I64}; - enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_FuncRef}; - WasmEdge_FunctionTypeContext *FuncTypeCxt = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - - enum WasmEdge_ValType Buf[16]; - uint32_t ParamLen = WasmEdge_FunctionTypeGetParametersLength(FuncTypeCxt); - /* `ParamLen` will be 2. */ - uint32_t GotParamLen = - WasmEdge_FunctionTypeGetParameters(FuncTypeCxt, Buf, 16); - /* `GotParamLen` will be 2, and `Buf[0]` and `Buf[1]` will be the same as - * `ParamList`. */ - uint32_t ReturnLen = WasmEdge_FunctionTypeGetReturnsLength(FuncTypeCxt); - /* `ReturnLen` will be 1. */ - uint32_t GotReturnLen = - WasmEdge_FunctionTypeGetReturns(FuncTypeCxt, Buf, 16); - /* `GotReturnLen` will be 1, and `Buf[0]` will be the same as `ReturnList`. - */ - - WasmEdge_FunctionTypeDelete(FuncTypeCxt); - ``` + The `Function Type` context is used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `Function Type` context APIs to get the parameter or return value types information. + + ```c + enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, + WasmEdge_ValType_I64}; + enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_FuncRef}; + WasmEdge_FunctionTypeContext *FuncTypeCxt = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + + enum WasmEdge_ValType Buf[16]; + uint32_t ParamLen = WasmEdge_FunctionTypeGetParametersLength(FuncTypeCxt); + /* `ParamLen` will be 2. */ + uint32_t GotParamLen = + WasmEdge_FunctionTypeGetParameters(FuncTypeCxt, Buf, 16); + /* `GotParamLen` will be 2, and `Buf[0]` and `Buf[1]` will be the same as + * `ParamList`. */ + uint32_t ReturnLen = WasmEdge_FunctionTypeGetReturnsLength(FuncTypeCxt); + /* `ReturnLen` will be 1. */ + uint32_t GotReturnLen = + WasmEdge_FunctionTypeGetReturns(FuncTypeCxt, Buf, 16); + /* `GotReturnLen` will be 1, and `Buf[0]` will be the same as `ReturnList`. + */ + + WasmEdge_FunctionTypeDelete(FuncTypeCxt); + ``` 3. Table type context - The `Table Type` context is used for `Table` instance creation or getting information from `Table` instances. + The `Table Type` context is used for `Table` instance creation or getting information from `Table` instances. - ```c - WasmEdge_Limit TabLim = { - .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - WasmEdge_TableTypeContext *TabTypeCxt = - WasmEdge_TableTypeCreate(WasmEdge_RefType_ExternRef, TabLim); + ```c + WasmEdge_Limit TabLim = { + .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + WasmEdge_TableTypeContext *TabTypeCxt = + WasmEdge_TableTypeCreate(WasmEdge_RefType_ExternRef, TabLim); - enum WasmEdge_RefType GotRefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); - /* `GotRefType` will be WasmEdge_RefType_ExternRef. */ - WasmEdge_Limit GotTabLim = WasmEdge_TableTypeGetLimit(TabTypeCxt); - /* `GotTabLim` will be the same value as `TabLim`. */ + enum WasmEdge_RefType GotRefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); + /* `GotRefType` will be WasmEdge_RefType_ExternRef. */ + WasmEdge_Limit GotTabLim = WasmEdge_TableTypeGetLimit(TabTypeCxt); + /* `GotTabLim` will be the same value as `TabLim`. */ - WasmEdge_TableTypeDelete(TabTypeCxt); - ``` + WasmEdge_TableTypeDelete(TabTypeCxt); + ``` 4. Memory type context - The `Memory Type` context is used for `Memory` instance creation or getting information from `Memory` instances. + The `Memory Type` context is used for `Memory` instance creation or getting information from `Memory` instances. - ```c - WasmEdge_Limit MemLim = { - .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLim); + ```c + WasmEdge_Limit MemLim = { + .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLim); - WasmEdge_Limit GotMemLim = WasmEdge_MemoryTypeGetLimit(MemTypeCxt); - /* `GotMemLim` will be the same value as `MemLim`. */ + WasmEdge_Limit GotMemLim = WasmEdge_MemoryTypeGetLimit(MemTypeCxt); + /* `GotMemLim` will be the same value as `MemLim`. */ - WasmEdge_MemoryTypeDelete(MemTypeCxt) - ``` + WasmEdge_MemoryTypeDelete(MemTypeCxt) + ``` 5. Global type context - The `Global Type` context is used for `Global` instance creation or getting information from `Global` instances. + The `Global Type` context is used for `Global` instance creation or getting information from `Global` instances. - ```c - WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate( - WasmEdge_ValType_F64, WasmEdge_Mutability_Var); + ```c + WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate( + WasmEdge_ValType_F64, WasmEdge_Mutability_Var); - WasmEdge_ValType GotValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); - /* `GotValType` will be WasmEdge_ValType_F64. */ - WasmEdge_Mutability GotValMut = - WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); - /* `GotValMut` will be WasmEdge_Mutability_Var. */ + WasmEdge_ValType GotValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); + /* `GotValType` will be WasmEdge_ValType_F64. */ + WasmEdge_Mutability GotValMut = + WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); + /* `GotValMut` will be WasmEdge_Mutability_Var. */ - WasmEdge_GlobalTypeDelete(GlobTypeCxt); - ``` + WasmEdge_GlobalTypeDelete(GlobTypeCxt); + ``` 6. Import type context - The `Import Type` context is used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `Import Type` context. The details about querying `Import Type` contexts will be introduced in the [AST Module](#ast-module). - - ```c - WasmEdge_ASTModuleContext *ASTCxt = ...; - /* - * Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the - * result of loading a WASM file. - */ - const WasmEdge_ImportTypeContext *ImpType = ...; - /* Assume that `ImpType` is queried from the `ASTCxt` for the import. */ - - enum WasmEdge_ExternalType ExtType = - WasmEdge_ImportTypeGetExternalType(ImpType); - /* - * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, - * `WasmEdge_ExternalType_Table`, `WasmEdge_ExternalType_Memory`, or - * `WasmEdge_ExternalType_Global`. - */ - WasmEdge_String ModName = WasmEdge_ImportTypeGetModuleName(ImpType); - WasmEdge_String ExtName = WasmEdge_ImportTypeGetExternalName(ImpType); - /* - * The `ModName` and `ExtName` should not be destroyed and the string - * buffers are binded into the `ASTCxt`. - */ - const WasmEdge_FunctionTypeContext *FuncTypeCxt = - WasmEdge_ImportTypeGetFunctionType(ASTCxt, ImpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Function`, the - * `FuncTypeCxt` will be NULL. - */ - const WasmEdge_TableTypeContext *TabTypeCxt = - WasmEdge_ImportTypeGetTableType(ASTCxt, ImpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` - * will be NULL. - */ - const WasmEdge_MemoryTypeContext *MemTypeCxt = - WasmEdge_ImportTypeGetMemoryType(ASTCxt, ImpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` - * will be NULL. - */ - const WasmEdge_GlobalTypeContext *GlobTypeCxt = - WasmEdge_ImportTypeGetGlobalType(ASTCxt, ImpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` - * will be NULL. - */ - ``` + The `Import Type` context is used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `Import Type` context. The details about querying `Import Type` contexts will be introduced in the [AST Module](#ast-module). + + ```c + WasmEdge_ASTModuleContext *ASTCxt = ...; + /* + * Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the + * result of loading a WASM file. + */ + const WasmEdge_ImportTypeContext *ImpType = ...; + /* Assume that `ImpType` is queried from the `ASTCxt` for the import. */ + + enum WasmEdge_ExternalType ExtType = + WasmEdge_ImportTypeGetExternalType(ImpType); + /* + * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, + * `WasmEdge_ExternalType_Table`, `WasmEdge_ExternalType_Memory`, or + * `WasmEdge_ExternalType_Global`. + */ + WasmEdge_String ModName = WasmEdge_ImportTypeGetModuleName(ImpType); + WasmEdge_String ExtName = WasmEdge_ImportTypeGetExternalName(ImpType); + /* + * The `ModName` and `ExtName` should not be destroyed and the string + * buffers are binded into the `ASTCxt`. + */ + const WasmEdge_FunctionTypeContext *FuncTypeCxt = + WasmEdge_ImportTypeGetFunctionType(ASTCxt, ImpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Function`, the + * `FuncTypeCxt` will be NULL. + */ + const WasmEdge_TableTypeContext *TabTypeCxt = + WasmEdge_ImportTypeGetTableType(ASTCxt, ImpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` + * will be NULL. + */ + const WasmEdge_MemoryTypeContext *MemTypeCxt = + WasmEdge_ImportTypeGetMemoryType(ASTCxt, ImpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` + * will be NULL. + */ + const WasmEdge_GlobalTypeContext *GlobTypeCxt = + WasmEdge_ImportTypeGetGlobalType(ASTCxt, ImpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` + * will be NULL. + */ + ``` 7. Export type context - The `Export Type` context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `Export Type` contexts will be introduced in the [AST Module](#ast-module). - - ```c - WasmEdge_ASTModuleContext *ASTCxt = ...; - /* - * Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the - * result of loading a WASM file. - */ - const WasmEdge_ExportTypeContext *ExpType = ...; - /* Assume that `ExpType` is queried from the `ASTCxt` for the export. */ - - enum WasmEdge_ExternalType ExtType = - WasmEdge_ExportTypeGetExternalType(ExpType); - /* - * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, - * `WasmEdge_ExternalType_Table`, `WasmEdge_ExternalType_Memory`, or - * `WasmEdge_ExternalType_Global`. - */ - WasmEdge_String ExtName = WasmEdge_ExportTypeGetExternalName(ExpType); - /* - * The `ExtName` should not be destroyed and the string buffer is binded - * into the `ASTCxt`. - */ - const WasmEdge_FunctionTypeContext *FuncTypeCxt = - WasmEdge_ExportTypeGetFunctionType(ASTCxt, ExpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Function`, the - * `FuncTypeCxt` will be NULL. - */ - const WasmEdge_TableTypeContext *TabTypeCxt = - WasmEdge_ExportTypeGetTableType(ASTCxt, ExpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` - * will be NULL. - */ - const WasmEdge_MemoryTypeContext *MemTypeCxt = - WasmEdge_ExportTypeGetMemoryType(ASTCxt, ExpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` - * will be NULL. - */ - const WasmEdge_GlobalTypeContext *GlobTypeCxt = - WasmEdge_ExportTypeGetGlobalType(ASTCxt, ExpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` - * will be NULL. - */ - ``` + The `Export Type` context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `Export Type` contexts will be introduced in the [AST Module](#ast-module). + + ```c + WasmEdge_ASTModuleContext *ASTCxt = ...; + /* + * Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the + * result of loading a WASM file. + */ + const WasmEdge_ExportTypeContext *ExpType = ...; + /* Assume that `ExpType` is queried from the `ASTCxt` for the export. */ + + enum WasmEdge_ExternalType ExtType = + WasmEdge_ExportTypeGetExternalType(ExpType); + /* + * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, + * `WasmEdge_ExternalType_Table`, `WasmEdge_ExternalType_Memory`, or + * `WasmEdge_ExternalType_Global`. + */ + WasmEdge_String ExtName = WasmEdge_ExportTypeGetExternalName(ExpType); + /* + * The `ExtName` should not be destroyed and the string buffer is binded + * into the `ASTCxt`. + */ + const WasmEdge_FunctionTypeContext *FuncTypeCxt = + WasmEdge_ExportTypeGetFunctionType(ASTCxt, ExpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Function`, the + * `FuncTypeCxt` will be NULL. + */ + const WasmEdge_TableTypeContext *TabTypeCxt = + WasmEdge_ExportTypeGetTableType(ASTCxt, ExpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` + * will be NULL. + */ + const WasmEdge_MemoryTypeContext *MemTypeCxt = + WasmEdge_ExportTypeGetMemoryType(ASTCxt, ExpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` + * will be NULL. + */ + const WasmEdge_GlobalTypeContext *GlobTypeCxt = + WasmEdge_ExportTypeGetGlobalType(ASTCxt, ExpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` + * will be NULL. + */ + ``` ### Async @@ -480,60 +480,60 @@ After calling the [asynchronous execution APIs](#asynchronous-execution), develo 1. Wait for the asynchronous execution - Developers can wait the execution until finished: - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution. */ - WasmEdge_AsyncWait(Async); - WasmEdge_AsyncDelete(Async); - ``` - - Or developers can wait for a time limit. If the time limit exceeded, developers can choose to cancel the execution. For the interruptible execution in AOT mode, developers should set `TRUE` through the `WasmEdge_ConfigureCompilerSetInterruptible()` API into the configure context for the AOT compiler. - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution for 1 second. */ - bool IsEnd = WasmEdge_AsyncWaitFor(Async, 1000); - if (IsEnd) { - /* The execution finished. Developers can get the result. */ - WasmEdge_Result Res = WasmEdge_AsyncGet(/* ... Ignored */); - } else { - /* - * The time limit exceeded. Developers can keep waiting or cancel the - * execution. - */ - WasmEdge_AsyncCancel(Async); - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, 0, NULL); - /* The result error code will be `WasmEdge_ErrCode_Interrupted`. */ - } - WasmEdge_AsyncDelete(Async); - ``` + Developers can wait the execution until finished: + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution. */ + WasmEdge_AsyncWait(Async); + WasmEdge_AsyncDelete(Async); + ``` + + Or developers can wait for a time limit. If the time limit exceeded, developers can choose to cancel the execution. For the interruptible execution in AOT mode, developers should set `TRUE` through the `WasmEdge_ConfigureCompilerSetInterruptible()` API into the configure context for the AOT compiler. + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution for 1 second. */ + bool IsEnd = WasmEdge_AsyncWaitFor(Async, 1000); + if (IsEnd) { + /* The execution finished. Developers can get the result. */ + WasmEdge_Result Res = WasmEdge_AsyncGet(/* ... Ignored */); + } else { + /* + * The time limit exceeded. Developers can keep waiting or cancel the + * execution. + */ + WasmEdge_AsyncCancel(Async); + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, 0, NULL); + /* The result error code will be `WasmEdge_ErrCode_Interrupted`. */ + } + WasmEdge_AsyncDelete(Async); + ``` 2. Get the execution result of the asynchronous execution - Developers can use the `WasmEdge_AsyncGetReturnsLength()` API to get the return value list length. This function will block and wait for the execution. If the execution has finished, this function will return the length immediately. If the execution failed, this function will return `0`. This function can help the developers to create the buffer to get the return values. If developers have already known the buffer length, they can skip this function and use the `WasmEdge_AsyncGet()` API to get the result. - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* - * Blocking and waiting for the execution and get the return value list - * length. - */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - WasmEdge_AsyncDelete(Async); - ``` - - The `WasmEdge_AsyncGet()` API will block and wait for the execution. If the execution has finished, this function will fill the return values into the buffer and return the execution result immediately. - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution and get the return values. */ - const uint32_t BUF_LEN = 256; - WasmEdge_Value Buf[BUF_LEN]; - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Buf, BUF_LEN); - WasmEdge_AsyncDelete(Async); - ``` + Developers can use the `WasmEdge_AsyncGetReturnsLength()` API to get the return value list length. This function will block and wait for the execution. If the execution has finished, this function will return the length immediately. If the execution failed, this function will return `0`. This function can help the developers to create the buffer to get the return values. If developers have already known the buffer length, they can skip this function and use the `WasmEdge_AsyncGet()` API to get the result. + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* + * Blocking and waiting for the execution and get the return value list + * length. + */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + WasmEdge_AsyncDelete(Async); + ``` + + The `WasmEdge_AsyncGet()` API will block and wait for the execution. If the execution has finished, this function will fill the return values into the buffer and return the execution result immediately. + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution and get the return values. */ + const uint32_t BUF_LEN = 256; + WasmEdge_Value Buf[BUF_LEN]; + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Buf, BUF_LEN); + WasmEdge_AsyncDelete(Async); + ``` ### Configurations @@ -541,189 +541,189 @@ The configuration context, `WasmEdge_ConfigureContext`, manages the configuratio 1. Proposals - WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` context. - - ```c - enum WasmEdge_Proposal { - WasmEdge_Proposal_ImportExportMutGlobals = 0, - WasmEdge_Proposal_NonTrapFloatToIntConversions, - WasmEdge_Proposal_SignExtensionOperators, - WasmEdge_Proposal_MultiValue, - WasmEdge_Proposal_BulkMemoryOperations, - WasmEdge_Proposal_ReferenceTypes, - WasmEdge_Proposal_SIMD, - WasmEdge_Proposal_TailCall, - WasmEdge_Proposal_MultiMemories, - WasmEdge_Proposal_Annotations, - WasmEdge_Proposal_Memory64, - WasmEdge_Proposal_ExceptionHandling, - WasmEdge_Proposal_ExtendedConst, - WasmEdge_Proposal_Threads, - WasmEdge_Proposal_FunctionReferences - }; - ``` - - Developers can add or remove the proposals into the `Configure` context. - - ```c - /* - * By default, the following proposals have turned on initially: - * * Import/Export of mutable globals - * * Non-trapping float-to-int conversions - * * Sign-extension operators - * * Multi-value returns - * * Bulk memory operations - * * Reference types - * * Fixed-width SIMD - * - * For the current WasmEdge version, the following proposals are supported - * (turned off by default) additionally: - * * Tail-call - * * Multiple memories - * * Extended-const - * * Threads - */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddProposal(ConfCxt, WasmEdge_Proposal_MultiMemories); - WasmEdge_ConfigureRemoveProposal(ConfCxt, WasmEdge_Proposal_ReferenceTypes); - bool IsBulkMem = WasmEdge_ConfigureHasProposal( - ConfCxt, WasmEdge_Proposal_BulkMemoryOperations); - /* The `IsBulkMem` will be `TRUE`. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` context. + + ```c + enum WasmEdge_Proposal { + WasmEdge_Proposal_ImportExportMutGlobals = 0, + WasmEdge_Proposal_NonTrapFloatToIntConversions, + WasmEdge_Proposal_SignExtensionOperators, + WasmEdge_Proposal_MultiValue, + WasmEdge_Proposal_BulkMemoryOperations, + WasmEdge_Proposal_ReferenceTypes, + WasmEdge_Proposal_SIMD, + WasmEdge_Proposal_TailCall, + WasmEdge_Proposal_MultiMemories, + WasmEdge_Proposal_Annotations, + WasmEdge_Proposal_Memory64, + WasmEdge_Proposal_ExceptionHandling, + WasmEdge_Proposal_ExtendedConst, + WasmEdge_Proposal_Threads, + WasmEdge_Proposal_FunctionReferences + }; + ``` + + Developers can add or remove the proposals into the `Configure` context. + + ```c + /* + * By default, the following proposals have turned on initially: + * * Import/Export of mutable globals + * * Non-trapping float-to-int conversions + * * Sign-extension operators + * * Multi-value returns + * * Bulk memory operations + * * Reference types + * * Fixed-width SIMD + * + * For the current WasmEdge version, the following proposals are supported + * (turned off by default) additionally: + * * Tail-call + * * Multiple memories + * * Extended-const + * * Threads + */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddProposal(ConfCxt, WasmEdge_Proposal_MultiMemories); + WasmEdge_ConfigureRemoveProposal(ConfCxt, WasmEdge_Proposal_ReferenceTypes); + bool IsBulkMem = WasmEdge_ConfigureHasProposal( + ConfCxt, WasmEdge_Proposal_BulkMemoryOperations); + /* The `IsBulkMem` will be `TRUE`. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 2. Host registrations - This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` contexts. - - ```c - enum WasmEdge_HostRegistration { - WasmEdge_HostRegistration_Wasi = 0, - WasmEdge_HostRegistration_WasmEdge_Process - }; - ``` - - The details will be introduced in the [preregistrations of VM context](#preregistrations). - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - bool IsHostWasi = WasmEdge_ConfigureHasHostRegistration( - ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The `IsHostWasi` will be `FALSE`. */ - WasmEdge_ConfigureAddHostRegistration(ConfCxt, - WasmEdge_HostRegistration_Wasi); - IsHostWasi = WasmEdge_ConfigureHasHostRegistration( - ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The `IsHostWasi` will be `TRUE`. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` contexts. + + ```c + enum WasmEdge_HostRegistration { + WasmEdge_HostRegistration_Wasi = 0, + WasmEdge_HostRegistration_WasmEdge_Process + }; + ``` + + The details will be introduced in the [preregistrations of VM context](#preregistrations). + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + bool IsHostWasi = WasmEdge_ConfigureHasHostRegistration( + ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The `IsHostWasi` will be `FALSE`. */ + WasmEdge_ConfigureAddHostRegistration(ConfCxt, + WasmEdge_HostRegistration_Wasi); + IsHostWasi = WasmEdge_ConfigureHasHostRegistration( + ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The `IsHostWasi` will be `TRUE`. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 3. Maximum memory pages - Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` contexts. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - uint32_t PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); - /* By default, the maximum memory page size is 65536. */ - WasmEdge_ConfigureSetMaxMemoryPage(ConfCxt, 1024); - /* - * Limit the memory size of each memory instance with not larger than 1024 - * pages (64 MiB). - */ - PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); - /* The `PageSize` will be 1024. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` contexts. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + uint32_t PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); + /* By default, the maximum memory page size is 65536. */ + WasmEdge_ConfigureSetMaxMemoryPage(ConfCxt, 1024); + /* + * Limit the memory size of each memory instance with not larger than 1024 + * pages (64 MiB). + */ + PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); + /* The `PageSize` will be 1024. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 4. Forcibly interpreter mode (`0.11.2` or upper only) - If developers want to execute the WASM file or the AOT compiled WASM in interpreter mode forcibly, they can turn on the configuration. + If developers want to execute the WASM file or the AOT compiled WASM in interpreter mode forcibly, they can turn on the configuration. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - bool IsForceInterp = WasmEdge_ConfigureIsForceInterpreter(ConfCxt); - /* By default, The `IsForceInterp` will be `FALSE`. */ - WasmEdge_ConfigureSetForceInterpreter(ConfCxt, TRUE); - IsForceInterp = WasmEdge_ConfigureIsForceInterpreter(ConfCxt); - /* The `IsForceInterp` will be `TRUE`. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + bool IsForceInterp = WasmEdge_ConfigureIsForceInterpreter(ConfCxt); + /* By default, The `IsForceInterp` will be `FALSE`. */ + WasmEdge_ConfigureSetForceInterpreter(ConfCxt, TRUE); + IsForceInterp = WasmEdge_ConfigureIsForceInterpreter(ConfCxt); + /* The `IsForceInterp` will be `TRUE`. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 5. AOT compiler options - The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. - - ```c - enum WasmEdge_CompilerOptimizationLevel { - // Disable as many optimizations as possible. - WasmEdge_CompilerOptimizationLevel_O0 = 0, - // Optimize quickly without destroying debuggability. - WasmEdge_CompilerOptimizationLevel_O1, - // Optimize for fast execution as much as possible without triggering - // significant incremental compile time or code size growth. - WasmEdge_CompilerOptimizationLevel_O2, - // Optimize for fast execution as much as possible. - WasmEdge_CompilerOptimizationLevel_O3, - // Optimize for small code size as much as possible without triggering - // significant incremental compile time or execution time slowdowns. - WasmEdge_CompilerOptimizationLevel_Os, - // Optimize for small code size as much as possible. - WasmEdge_CompilerOptimizationLevel_Oz - }; - - enum WasmEdge_CompilerOutputFormat { - // Native dynamic library format. - WasmEdge_CompilerOutputFormat_Native = 0, - // WebAssembly with AOT compiled codes in custom section. - WasmEdge_CompilerOutputFormat_Wasm - }; - ``` - - These configurations are only effective in `Compiler` contexts. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - /* By default, the optimization level is O3. */ - WasmEdge_ConfigureCompilerSetOptimizationLevel( - ConfCxt, WasmEdge_CompilerOptimizationLevel_O2); - /* By default, the output format is universal WASM. */ - WasmEdge_ConfigureCompilerSetOutputFormat( - ConfCxt, WasmEdge_CompilerOutputFormat_Native); - /* By default, the dump IR is `FALSE`. */ - WasmEdge_ConfigureCompilerSetDumpIR(ConfCxt, TRUE); - /* By default, the generic binary is `FALSE`. */ - WasmEdge_ConfigureCompilerSetGenericBinary(ConfCxt, TRUE); - /* By default, the interruptible is `FALSE`. - /* Set this option to `TRUE` to support the interruptible execution in AOT - mode. */ - WasmEdge_ConfigureCompilerSetInterruptible(ConfCxt, TRUE); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. + + ```c + enum WasmEdge_CompilerOptimizationLevel { + // Disable as many optimizations as possible. + WasmEdge_CompilerOptimizationLevel_O0 = 0, + // Optimize quickly without destroying debuggability. + WasmEdge_CompilerOptimizationLevel_O1, + // Optimize for fast execution as much as possible without triggering + // significant incremental compile time or code size growth. + WasmEdge_CompilerOptimizationLevel_O2, + // Optimize for fast execution as much as possible. + WasmEdge_CompilerOptimizationLevel_O3, + // Optimize for small code size as much as possible without triggering + // significant incremental compile time or execution time slowdowns. + WasmEdge_CompilerOptimizationLevel_Os, + // Optimize for small code size as much as possible. + WasmEdge_CompilerOptimizationLevel_Oz + }; + + enum WasmEdge_CompilerOutputFormat { + // Native dynamic library format. + WasmEdge_CompilerOutputFormat_Native = 0, + // WebAssembly with AOT compiled codes in custom section. + WasmEdge_CompilerOutputFormat_Wasm + }; + ``` + + These configurations are only effective in `Compiler` contexts. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + /* By default, the optimization level is O3. */ + WasmEdge_ConfigureCompilerSetOptimizationLevel( + ConfCxt, WasmEdge_CompilerOptimizationLevel_O2); + /* By default, the output format is universal WASM. */ + WasmEdge_ConfigureCompilerSetOutputFormat( + ConfCxt, WasmEdge_CompilerOutputFormat_Native); + /* By default, the dump IR is `FALSE`. */ + WasmEdge_ConfigureCompilerSetDumpIR(ConfCxt, TRUE); + /* By default, the generic binary is `FALSE`. */ + WasmEdge_ConfigureCompilerSetGenericBinary(ConfCxt, TRUE); + /* By default, the interruptible is `FALSE`. + /* Set this option to `TRUE` to support the interruptible execution in AOT + mode. */ + WasmEdge_ConfigureCompilerSetInterruptible(ConfCxt, TRUE); + WasmEdge_ConfigureDelete(ConfCxt); + ``` 6. Statistics options - The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` contexts. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - /* - * By default, the instruction counting is `FALSE` when running a - * compiled-WASM or a pure-WASM. - */ - WasmEdge_ConfigureStatisticsSetInstructionCounting(ConfCxt, TRUE); - /* - * By default, the cost measurement is `FALSE` when running a compiled-WASM - * or a pure-WASM. - */ - WasmEdge_ConfigureStatisticsSetCostMeasuring(ConfCxt, TRUE); - /* - * By default, the time measurement is `FALSE` when running a compiled-WASM - * or a pure-WASM. - */ - WasmEdge_ConfigureStatisticsSetTimeMeasuring(ConfCxt, TRUE); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` contexts. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + /* + * By default, the instruction counting is `FALSE` when running a + * compiled-WASM or a pure-WASM. + */ + WasmEdge_ConfigureStatisticsSetInstructionCounting(ConfCxt, TRUE); + /* + * By default, the cost measurement is `FALSE` when running a compiled-WASM + * or a pure-WASM. + */ + WasmEdge_ConfigureStatisticsSetCostMeasuring(ConfCxt, TRUE); + /* + * By default, the time measurement is `FALSE` when running a compiled-WASM + * or a pure-WASM. + */ + WasmEdge_ConfigureStatisticsSetTimeMeasuring(ConfCxt, TRUE); + WasmEdge_ConfigureDelete(ConfCxt); + ``` ### Statistics @@ -733,50 +733,50 @@ Before using statistics, the statistics configuration must be set. Otherwise, th 1. Instruction counter - The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` context from the `VM` context, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. + The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` context from the `VM` context, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. - ```c - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* - * ... - * After running the WASM functions with the `Statistics` context - */ - uint32_t Count = WasmEdge_StatisticsGetInstrCount(StatCxt); - double IPS = WasmEdge_StatisticsGetInstrPerSecond(StatCxt); - WasmEdge_StatisticsDelete(StatCxt); - ``` + ```c + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* + * ... + * After running the WASM functions with the `Statistics` context + */ + uint32_t Count = WasmEdge_StatisticsGetInstrCount(StatCxt); + double IPS = WasmEdge_StatisticsGetInstrPerSecond(StatCxt); + WasmEdge_StatisticsDelete(StatCxt); + ``` 2. Cost table - The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` context. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. - - ```c - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - uint64_t CostTable[16] = { - 0, 0, - 10, /* 0x02: Block */ - 11, /* 0x03: Loop */ - 12, /* 0x04: If */ - 12, /* 0x05: Else */ - 0, 0, 0, 0, 0, 0, - 20, /* 0x0C: Br */ - 21, /* 0x0D: Br_if */ - 22, /* 0x0E: Br_table */ - 0 - }; - /* - * Developers can set the costs of each instruction. The value not - * covered will be 0. - */ - WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); - WasmEdge_StatisticsSetCostLimit(StatCxt, 5000000); - /* - * ... - * After running the WASM functions with the `Statistics` context - */ - uint64_t Cost = WasmEdge_StatisticsGetTotalCost(StatCxt); - WasmEdge_StatisticsDelete(StatCxt); - ``` + The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` context. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. + + ```c + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + uint64_t CostTable[16] = { + 0, 0, + 10, /* 0x02: Block */ + 11, /* 0x03: Loop */ + 12, /* 0x04: If */ + 12, /* 0x05: Else */ + 0, 0, 0, 0, 0, 0, + 20, /* 0x0C: Br */ + 21, /* 0x0D: Br_if */ + 22, /* 0x0E: Br_table */ + 0 + }; + /* + * Developers can set the costs of each instruction. The value not + * covered will be 0. + */ + WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); + WasmEdge_StatisticsSetCostLimit(StatCxt, 5000000); + /* + * ... + * After running the WASM functions with the `Statistics` context + */ + uint64_t Cost = WasmEdge_StatisticsGetTotalCost(StatCxt); + WasmEdge_StatisticsDelete(StatCxt); + ``` ### Tools Driver @@ -828,172 +828,172 @@ The following shows the example of running the WASM for getting the Fibonacci. T 1. Run WASM functions rapidly - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - /* Create the configure context and add the WASI support. */ - /* This step is not necessary unless you need WASI support. */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, - WasmEdge_HostRegistration_Wasi); - /* The configure and store context to the VM creation can be NULL. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(5)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromFile( - VMCxt, "fibonacci.wasm", FuncName, Params, 1, Returns, 1); - /* - * Developers can run the WASM binary from buffer with the - * `WasmEdge_VMRunWasmFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMRunWasmFromASTModule()` API. - */ - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 5th Fibonacci number is 8 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the result: 8 - ``` + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + /* Create the configure context and add the WASI support. */ + /* This step is not necessary unless you need WASI support. */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, + WasmEdge_HostRegistration_Wasi); + /* The configure and store context to the VM creation can be NULL. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(5)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromFile( + VMCxt, "fibonacci.wasm", FuncName, Params, 1, Returns, 1); + /* + * Developers can run the WASM binary from buffer with the + * `WasmEdge_VMRunWasmFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMRunWasmFromASTModule()` API. + */ + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` + + Then you can compile and run: (the 5th Fibonacci number is 8 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the result: 8 + ``` 2. Instantiate and run WASM functions manually - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: - - ```c - #include - #include - int main() { - /* Create the configure context and add the WASI support. */ - /* This step is not necessary unless you need the WASI support. */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, - WasmEdge_HostRegistration_Wasi); - /* The configure and store context to the VM creation can be NULL. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(10)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Step 1: Load WASM file. */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - /* - * Developers can load the WASM binary from buffer with the - * `WasmEdge_VMLoadWasmFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMLoadWasmFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 2: Validate the WASM module. */ - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 3: Instantiate the WASM module. */ - Res = WasmEdge_VMInstantiate(VMCxt); - /* - * Developers can load, validate, and instantiate another WASM module to - * replace the instantiated one. In this case, the old module will be - * cleared, but the registered modules are still kept. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", - WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* - * Step 4: Execute WASM functions. You can execute functions repeatedly - * after instantiation. - */ - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 1, Returns, 1); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 10th Fibonacci number is 89 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the result: 89 - ``` - - The following graph explains the status of the `VM` context. - - ```text - |========================| - |------->| VM: Initiated | - | |========================| - | | - | LoadWasm - | | - | v - | |========================| - |--------| VM: Loaded |<-------| - | |========================| | - | | ^ | - | Validate | | - Cleanup | LoadWasm | - | v | LoadWasm - | |========================| | - |--------| VM: Validated | | - | |========================| | - | | ^ | - | Instantiate | | - | | RegisterModule | - | v | | - | |========================| | - |--------| VM: Instantiated |--------| - |========================| - | ^ - | | - -------------- - Instantiate, Execute, ExecuteRegistered - ``` - - The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or module instances in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```c + #include + #include + int main() { + /* Create the configure context and add the WASI support. */ + /* This step is not necessary unless you need the WASI support. */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, + WasmEdge_HostRegistration_Wasi); + /* The configure and store context to the VM creation can be NULL. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(10)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Step 1: Load WASM file. */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + /* + * Developers can load the WASM binary from buffer with the + * `WasmEdge_VMLoadWasmFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMLoadWasmFromASTModule()` API. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 2: Validate the WASM module. */ + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 3: Instantiate the WASM module. */ + Res = WasmEdge_VMInstantiate(VMCxt); + /* + * Developers can load, validate, and instantiate another WASM module to + * replace the instantiated one. In this case, the old module will be + * cleared, but the registered modules are still kept. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", + WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* + * Step 4: Execute WASM functions. You can execute functions repeatedly + * after instantiation. + */ + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 1, Returns, 1); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` + + Then you can compile and run: (the 10th Fibonacci number is 89 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the result: 89 + ``` + + The following graph explains the status of the `VM` context. + + ```text + |========================| + |------->| VM: Initiated | + | |========================| + | | + | LoadWasm + | | + | v + | |========================| + |--------| VM: Loaded |<-------| + | |========================| | + | | ^ | + | Validate | | + Cleanup | LoadWasm | + | v | LoadWasm + | |========================| | + |--------| VM: Validated | | + | |========================| | + | | ^ | + | Instantiate | | + | | RegisterModule | + | v | | + | |========================| | + |--------| VM: Instantiated |--------| + |========================| + | ^ + | | + -------------- + Instantiate, Execute, ExecuteRegistered + ``` + + The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or module instances in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. ### VM Creations @@ -1024,124 +1024,124 @@ WasmEdge provides the following built-in pre-registrations. 1. [WASI (WebAssembly System Interface)](https://github.com/WebAssembly/WASI) - Developers can turn on the WASI support for VM in the `Configure` context. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, - WasmEdge_HostRegistration_Wasi); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - /* - * The following API can retrieve the pre-registration module instances from - * the VM context. - */ - /* - * This API will return `NULL` if the corresponding pre-registration is not - * set into the configuration. - */ - WasmEdge_ModuleInstanceContext *WasiModule = - WasmEdge_VMGetImportModuleContext(VMCxt, - WasmEdge_HostRegistration_Wasi); - /* Initialize the WASI. */ - WasmEdge_ModuleInstanceInitWASI(WasiModule, /* ... ignored */); - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - ``` - - And also can create the WASI module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + Developers can turn on the WASI support for VM in the `Configure` context. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, + WasmEdge_HostRegistration_Wasi); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + /* + * The following API can retrieve the pre-registration module instances from + * the VM context. + */ + /* + * This API will return `NULL` if the corresponding pre-registration is not + * set into the configuration. + */ + WasmEdge_ModuleInstanceContext *WasiModule = + WasmEdge_VMGetImportModuleContext(VMCxt, + WasmEdge_HostRegistration_Wasi); + /* Initialize the WASI. */ + WasmEdge_ModuleInstanceInitWASI(WasiModule, /* ... ignored */); + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + ``` + + And also can create the WASI module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 2. [WasmEdge_Process](https://crates.io/crates/wasmedge_process_interface) - This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` plugin. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration( - ConfCxt, WasmEdge_HostRegistration_WasmEdge_Process); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - /* - * The following API can retrieve the pre-registration module instances from - * the VM context. - */ - /* - * This API will return `NULL` if the corresponding pre-registration is not - * set into the configuration or the plugin load failed. - */ - WasmEdge_ModuleInstanceContext *ProcModule = - WasmEdge_VMGetImportModuleContext( - VMCxt, WasmEdge_HostRegistration_WasmEdge_Process); - /* Initialize the WasmEdge_Process. */ - WasmEdge_ModuleInstanceInitWasmEdgeProcess(ProcModule, /* ... ignored */); - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - ``` - - And also can create the WasmEdge_Process module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` plugin. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration( + ConfCxt, WasmEdge_HostRegistration_WasmEdge_Process); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + /* + * The following API can retrieve the pre-registration module instances from + * the VM context. + */ + /* + * This API will return `NULL` if the corresponding pre-registration is not + * set into the configuration or the plugin load failed. + */ + WasmEdge_ModuleInstanceContext *ProcModule = + WasmEdge_VMGetImportModuleContext( + VMCxt, WasmEdge_HostRegistration_WasmEdge_Process); + /* Initialize the WasmEdge_Process. */ + WasmEdge_ModuleInstanceInitWasmEdgeProcess(ProcModule, /* ... ignored */); + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + ``` + + And also can create the WasmEdge_Process module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 3. [WASI-NN proposal](https://github.com/WebAssembly/wasi-nn) - Developers can turn on the WASI-NN proposal support for VM in the `Configure` context. - - > Note: Please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, - WasmEdge_HostRegistration_WasiNN); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - /* - * The following API can retrieve the pre-registration module instances from - * the VM context. - */ - /* - * This API will return `NULL` if the corresponding pre-registration is not - * set into the configuration or the plugin load failed. - */ - WasmEdge_ModuleInstanceContext *NNModule = - WasmEdge_VMGetImportModuleContext(VMCxt, - WasmEdge_HostRegistration_WasiNN); - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - ``` - - And also can create the WASI-NN module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + Developers can turn on the WASI-NN proposal support for VM in the `Configure` context. + + > Note: Please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, + WasmEdge_HostRegistration_WasiNN); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + /* + * The following API can retrieve the pre-registration module instances from + * the VM context. + */ + /* + * This API will return `NULL` if the corresponding pre-registration is not + * set into the configuration or the plugin load failed. + */ + WasmEdge_ModuleInstanceContext *NNModule = + WasmEdge_VMGetImportModuleContext(VMCxt, + WasmEdge_HostRegistration_WasiNN); + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + ``` + + And also can create the WASI-NN module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 4. [WASI-Crypto proposal](https://github.com/WebAssembly/wasi-crypto) - Developers can turn on the WASI-Crypto proposal support for VM in the `Configure` context. - - > Note: Please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - /* The WASI-Crypto related configures are suggested to turn on together. */ - WasmEdge_ConfigureAddHostRegistration( - ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Common); - WasmEdge_ConfigureAddHostRegistration( - ConfCxt, WasmEdge_HostRegistration_WasiCrypto_AsymmetricCommon); - WasmEdge_ConfigureAddHostRegistration( - ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Kx); - WasmEdge_ConfigureAddHostRegistration( - ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Signatures); - WasmEdge_ConfigureAddHostRegistration( - ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Symmetric); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - /* - * The following API can retrieve the pre-registration module instances from - * the VM context. - */ - /* - * This API will return `NULL` if the corresponding pre-registration is not - * set into the configuration or the plugin load failed. - */ - WasmEdge_ModuleInstanceContext *CryptoCommonModule = - WasmEdge_VMGetImportModuleContext( - VMCxt, WasmEdge_HostRegistration_WasiCrypto_Common); - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - ``` - - And also can create the WASI-Crypto module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + Developers can turn on the WASI-Crypto proposal support for VM in the `Configure` context. + + > Note: Please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + /* The WASI-Crypto related configures are suggested to turn on together. */ + WasmEdge_ConfigureAddHostRegistration( + ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Common); + WasmEdge_ConfigureAddHostRegistration( + ConfCxt, WasmEdge_HostRegistration_WasiCrypto_AsymmetricCommon); + WasmEdge_ConfigureAddHostRegistration( + ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Kx); + WasmEdge_ConfigureAddHostRegistration( + ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Signatures); + WasmEdge_ConfigureAddHostRegistration( + ConfCxt, WasmEdge_HostRegistration_WasiCrypto_Symmetric); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + /* + * The following API can retrieve the pre-registration module instances from + * the VM context. + */ + /* + * This API will return `NULL` if the corresponding pre-registration is not + * set into the configuration or the plugin load failed. + */ + WasmEdge_ModuleInstanceContext *CryptoCommonModule = + WasmEdge_VMGetImportModuleContext( + VMCxt, WasmEdge_HostRegistration_WasiCrypto_Common); + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + ``` + + And also can create the WASI-Crypto module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). ### Host Module Registrations @@ -1171,248 +1171,248 @@ In WebAssembly, the instances in WASM modules can be exported and can be importe 1. Register the WASM modules with exported module names - Unless the module instances have already contained the module names, every WASM module should be named uniquely when registering. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. - - ```c - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - WasmEdge_Result Res = - WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); - /* - * Developers can register the WASM module from buffer with the - * `WasmEdge_VMRegisterModuleFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMRegisterModuleFromASTModule()` API. - */ - /* - * The result status should be checked. - * The error will occur if the WASM module instantiation failed or the - * module name conflicts. - */ - WasmEdge_StringDelete(ModName); - WasmEdge_VMDelete(VMCxt); - ``` + Unless the module instances have already contained the module names, every WASM module should be named uniquely when registering. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. + + ```c + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + WasmEdge_Result Res = + WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); + /* + * Developers can register the WASM module from buffer with the + * `WasmEdge_VMRegisterModuleFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMRegisterModuleFromASTModule()` API. + */ + /* + * The result status should be checked. + * The error will occur if the WASM module instantiation failed or the + * module name conflicts. + */ + WasmEdge_StringDelete(ModName); + WasmEdge_VMDelete(VMCxt); + ``` 2. Execute the functions in registered WASM modules - Assume that the C file `test.c` is as follows: - - ```c - #include - #include - int main() { - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(20)}; - WasmEdge_Value Returns[1]; - /* Names. */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Register the WASM module into VM. */ - Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); - /* - * Developers can register the WASM module from buffer with the - * `WasmEdge_VMRegisterModuleFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMRegisterModuleFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", - WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* - * The function "fib" in the "fibonacci.wasm" was exported with the module - * name "mod". As the same as host functions, other modules can import the - * function `"mod" "fib"`. - */ - - /* - * Execute WASM functions in registered modules. - * Unlike the execution of functions, the registered functions can be - * invoked without `WasmEdge_VMInstantiate()` because the WASM module was - * instantiated when registering. Developers can also invoke the host - * functions directly with this API. - */ - Res = WasmEdge_VMExecuteRegistered(VMCxt, ModName, FuncName, Params, 1, - Returns, 1); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - WasmEdge_StringDelete(ModName); - WasmEdge_StringDelete(FuncName); - WasmEdge_VMDelete(VMCxt); - return 0; - } - ``` - - Then you can compile and run: (the 20th Fibonacci number is 89 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the result: 10946 - ``` + Assume that the C file `test.c` is as follows: + + ```c + #include + #include + int main() { + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(20)}; + WasmEdge_Value Returns[1]; + /* Names. */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Register the WASM module into VM. */ + Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); + /* + * Developers can register the WASM module from buffer with the + * `WasmEdge_VMRegisterModuleFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMRegisterModuleFromASTModule()` API. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", + WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* + * The function "fib" in the "fibonacci.wasm" was exported with the module + * name "mod". As the same as host functions, other modules can import the + * function `"mod" "fib"`. + */ + + /* + * Execute WASM functions in registered modules. + * Unlike the execution of functions, the registered functions can be + * invoked without `WasmEdge_VMInstantiate()` because the WASM module was + * instantiated when registering. Developers can also invoke the host + * functions directly with this API. + */ + Res = WasmEdge_VMExecuteRegistered(VMCxt, ModName, FuncName, Params, 1, + Returns, 1); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + WasmEdge_StringDelete(ModName); + WasmEdge_StringDelete(FuncName); + WasmEdge_VMDelete(VMCxt); + return 0; + } + ``` + + Then you can compile and run: (the 20th Fibonacci number is 89 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the result: 10946 + ``` ### Asynchronous Execution 1. Asynchronously run WASM functions rapidly - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(20)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Asynchronously run the WASM function from file and get the - * `WasmEdge_Async` object. */ - WasmEdge_Async *Async = WasmEdge_VMAsyncRunWasmFromFile( - VMCxt, "fibonacci.wasm", FuncName, Params, 1); - /* - * Developers can run the WASM binary from buffer with the - * `WasmEdge_VMAsyncRunWasmFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMAsyncRunWasmFromASTModule()` API. - */ - - /* Wait for the execution. */ - WasmEdge_AsyncWait(Async); - /* - * Developers can also use the `WasmEdge_AsyncGetReturnsLength()` or - * `WasmEdge_AsyncGet()` APIs to wait for the asynchronous execution. - * These APIs will wait until the execution finished. - */ - - /* Check the return values length. */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - /* The `Arity` should be 1. Developers can skip this step if they have - * known the return arity. */ - - /* Get the result. */ - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Returns, Arity); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_AsyncDelete(Async); - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 20th Fibonacci number is 10946 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the result: 10946 - ``` + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(20)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Asynchronously run the WASM function from file and get the + * `WasmEdge_Async` object. */ + WasmEdge_Async *Async = WasmEdge_VMAsyncRunWasmFromFile( + VMCxt, "fibonacci.wasm", FuncName, Params, 1); + /* + * Developers can run the WASM binary from buffer with the + * `WasmEdge_VMAsyncRunWasmFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMAsyncRunWasmFromASTModule()` API. + */ + + /* Wait for the execution. */ + WasmEdge_AsyncWait(Async); + /* + * Developers can also use the `WasmEdge_AsyncGetReturnsLength()` or + * `WasmEdge_AsyncGet()` APIs to wait for the asynchronous execution. + * These APIs will wait until the execution finished. + */ + + /* Check the return values length. */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + /* The `Arity` should be 1. Developers can skip this step if they have + * known the return arity. */ + + /* Get the result. */ + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Returns, Arity); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_AsyncDelete(Async); + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` + + Then you can compile and run: (the 20th Fibonacci number is 10946 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the result: 10946 + ``` 2. Instantiate and asynchronously run WASM functions manually - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: - - ```c - #include - #include - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(25)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Step 1: Load WASM file. */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - /* - * Developers can load the WASM binary from buffer with the - * `WasmEdge_VMLoadWasmFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMLoadWasmFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 2: Validate the WASM module. */ - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 3: Instantiate the WASM module. */ - Res = WasmEdge_VMInstantiate(VMCxt); - /* - * Developers can load, validate, and instantiate another WASM module to - * replace the instantiated one. In this case, the old module will be - * cleared, but the registered modules are still kept. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", - WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 4: Asynchronously execute the WASM function and get the - * `WasmEdge_Async` object. */ - WasmEdge_Async *Async = - WasmEdge_VMAsyncExecute(VMCxt, FuncName, Params, 1); - /* - * Developers can execute functions repeatedly after instantiation. - * For invoking the registered functions, you can use the - * `WasmEdge_VMAsyncExecuteRegistered()` API. - */ - - /* Wait and check the return values length. */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - /* The `Arity` should be 1. Developers can skip this step if they have - * known the return arity. */ - - /* Get the result. */ - Res = WasmEdge_AsyncGet(Async, Returns, Arity); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_AsyncDelete(Async); - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - } - ``` - - Then you can compile and run: (the 25th Fibonacci number is 121393 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the result: 121393 - ``` + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```c + #include + #include + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(25)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Step 1: Load WASM file. */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + /* + * Developers can load the WASM binary from buffer with the + * `WasmEdge_VMLoadWasmFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMLoadWasmFromASTModule()` API. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 2: Validate the WASM module. */ + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 3: Instantiate the WASM module. */ + Res = WasmEdge_VMInstantiate(VMCxt); + /* + * Developers can load, validate, and instantiate another WASM module to + * replace the instantiated one. In this case, the old module will be + * cleared, but the registered modules are still kept. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", + WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 4: Asynchronously execute the WASM function and get the + * `WasmEdge_Async` object. */ + WasmEdge_Async *Async = + WasmEdge_VMAsyncExecute(VMCxt, FuncName, Params, 1); + /* + * Developers can execute functions repeatedly after instantiation. + * For invoking the registered functions, you can use the + * `WasmEdge_VMAsyncExecuteRegistered()` API. + */ + + /* Wait and check the return values length. */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + /* The `Arity` should be 1. Developers can skip this step if they have + * known the return arity. */ + + /* Get the result. */ + Res = WasmEdge_AsyncGet(Async, Returns, Arity); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_AsyncDelete(Async); + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + } + ``` + + Then you can compile and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the result: 121393 + ``` ### Instance Tracing @@ -1420,133 +1420,133 @@ Sometimes the developers may have requirements to get the instances of the WASM 1. Store - If the `VM` context is created without assigning a `Store` context, the `VM` context will allocate and own a `Store` context. + If the `VM` context is created without assigning a `Store` context, the `VM` context will allocate and own a `Store` context. - ```c - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - WasmEdge_StoreContext *StoreCxt = WasmEdge_VMGetStoreContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_StoreDelete()`. */ - WasmEdge_VMDelete(VMCxt); - ``` + ```c + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + WasmEdge_StoreContext *StoreCxt = WasmEdge_VMGetStoreContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_StoreDelete()`. */ + WasmEdge_VMDelete(VMCxt); + ``` - Developers can also create the `VM` context with a `Store` context. In this case, developers should guarantee the life cycle of the `Store` context. Please refer to the [Store Contexts](#store) for the details about the `Store` context APIs. + Developers can also create the `VM` context with a `Store` context. In this case, developers should guarantee the life cycle of the `Store` context. Please refer to the [Store Contexts](#store) for the details about the `Store` context APIs. - ```c - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); - WasmEdge_StoreContext *StoreCxtMock = WasmEdge_VMGetStoreContext(VMCxt); - /* The `StoreCxt` and the `StoreCxtMock` are the same. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StoreDelete(StoreCxt); - ``` + ```c + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); + WasmEdge_StoreContext *StoreCxtMock = WasmEdge_VMGetStoreContext(VMCxt); + /* The `StoreCxt` and the `StoreCxtMock` are the same. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StoreDelete(StoreCxt); + ``` 2. List exported functions - After the WASM module instantiation, developers can use the `WasmEdge_VMExecute()` API to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); - - WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - WasmEdge_VMValidate(VMCxt); - WasmEdge_VMInstantiate(VMCxt); - - /* List the exported functions. */ - /* Get the number of exported functions. */ - uint32_t FuncNum = WasmEdge_VMGetFunctionListLength(VMCxt); - /* Create the name buffers and the function type buffers. */ - const uint32_t BUF_LEN = 256; - WasmEdge_String FuncNames[BUF_LEN]; - WasmEdge_FunctionTypeContext *FuncTypes[BUF_LEN]; - /* - * Get the export function list. - * If the function list length is larger than the buffer length, the - * overflowed data will be discarded. The `FuncNames` and `FuncTypes` can - * be NULL if developers don't need them. - */ - uint32_t RealFuncNum = - WasmEdge_VMGetFunctionList(VMCxt, FuncNames, FuncTypes, BUF_LEN); - - for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { - char Buf[BUF_LEN]; - uint32_t Size = WasmEdge_StringCopy(FuncNames[I], Buf, sizeof(Buf)); - printf("Get exported function string length: %u, name: %s\n", Size, - Buf); - /* - * The function names should be __NOT__ destroyed. - * The returned function type contexts should __NOT__ be destroyed. - */ - } - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_VMDelete(VMCxt); - return 0; - } - ``` - - Then you can compile and run: (the only exported function in `fibonacci.wasm` is `fib`) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get exported function string length: 3, name: fib - ``` - - If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` context from the `VM` context and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. + After the WASM module instantiation, developers can use the `WasmEdge_VMExecute()` API to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); + + WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + WasmEdge_VMValidate(VMCxt); + WasmEdge_VMInstantiate(VMCxt); + + /* List the exported functions. */ + /* Get the number of exported functions. */ + uint32_t FuncNum = WasmEdge_VMGetFunctionListLength(VMCxt); + /* Create the name buffers and the function type buffers. */ + const uint32_t BUF_LEN = 256; + WasmEdge_String FuncNames[BUF_LEN]; + WasmEdge_FunctionTypeContext *FuncTypes[BUF_LEN]; + /* + * Get the export function list. + * If the function list length is larger than the buffer length, the + * overflowed data will be discarded. The `FuncNames` and `FuncTypes` can + * be NULL if developers don't need them. + */ + uint32_t RealFuncNum = + WasmEdge_VMGetFunctionList(VMCxt, FuncNames, FuncTypes, BUF_LEN); + + for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { + char Buf[BUF_LEN]; + uint32_t Size = WasmEdge_StringCopy(FuncNames[I], Buf, sizeof(Buf)); + printf("Get exported function string length: %u, name: %s\n", Size, + Buf); + /* + * The function names should be __NOT__ destroyed. + * The returned function type contexts should __NOT__ be destroyed. + */ + } + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_VMDelete(VMCxt); + return 0; + } + ``` + + Then you can compile and run: (the only exported function in `fibonacci.wasm` is `fib`) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get exported function string length: 3, name: fib + ``` + + If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` context from the `VM` context and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. 3. Get function types - The `VM` context provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. - - ```c - /* - * ... - * Assume that a WASM module is instantiated in `VMCxt`. - */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - const WasmEdge_FunctionTypeContext *FuncType = - WasmEdge_VMGetFunctionType(VMCxt, FuncName); - /* - * Developers can get the function types of functions in the registered - * modules via the `WasmEdge_VMGetFunctionTypeRegistered()` API with the - * module name. If the function is not found, these APIs will return `NULL`. - * The returned function type contexts should __NOT__ be destroyed. - */ - WasmEdge_StringDelete(FuncName); - ``` + The `VM` context provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. + + ```c + /* + * ... + * Assume that a WASM module is instantiated in `VMCxt`. + */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + const WasmEdge_FunctionTypeContext *FuncType = + WasmEdge_VMGetFunctionType(VMCxt, FuncName); + /* + * Developers can get the function types of functions in the registered + * modules via the `WasmEdge_VMGetFunctionTypeRegistered()` API with the + * module name. If the function is not found, these APIs will return `NULL`. + * The returned function type contexts should __NOT__ be destroyed. + */ + WasmEdge_StringDelete(FuncName); + ``` 4. Get the active module - After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` context. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `WasmEdge_VMGetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. - - ```c - /* - * ... - * Assume that a WASM module is instantiated in `VMCxt`. - */ - const WasmEdge_ModuleInstanceContext *ModCxt = - WasmEdge_VMGetActiveModule(VMCxt); - /* - * If there's no WASM module instantiated, this API will return `NULL`. - * The returned module instance context should __NOT__ be destroyed. - */ - ``` + After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` context. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `WasmEdge_VMGetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. + + ```c + /* + * ... + * Assume that a WASM module is instantiated in `VMCxt`. + */ + const WasmEdge_ModuleInstanceContext *ModCxt = + WasmEdge_VMGetActiveModule(VMCxt); + /* + * If there's no WASM module instantiated, this API will return `NULL`. + * The returned module instance context should __NOT__ be destroyed. + */ + ``` 5. Get the components - The `VM` context is composed by the `Loader`, `Validator`, and `Executor` contexts. For the developers who want to use these contexts without creating another instances, these APIs can help developers to get them from the `VM` context. The get contexts are owned by the `VM` context, and developers should not call their delete functions. + The `VM` context is composed by the `Loader`, `Validator`, and `Executor` contexts. For the developers who want to use these contexts without creating another instances, these APIs can help developers to get them from the `VM` context. The get contexts are owned by the `VM` context, and developers should not call their delete functions. - ```c - WasmEdge_LoaderContext *LoadCxt = WasmEdge_VMGetLoaderContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_LoaderDelete()`. */ - WasmEdge_ValidatorContext *ValidCxt = WasmEdge_VMGetValidatorContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_ValidatorDelete()`. */ - WasmEdge_ExecutorContext *ExecCxt = WasmEdge_VMGetExecutorContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_ExecutorDelete()`. */ - ``` + ```c + WasmEdge_LoaderContext *LoadCxt = WasmEdge_VMGetLoaderContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_LoaderDelete()`. */ + WasmEdge_ValidatorContext *ValidCxt = WasmEdge_VMGetValidatorContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_ValidatorDelete()`. */ + WasmEdge_ExecutorContext *ExecCxt = WasmEdge_VMGetExecutorContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_ExecutorDelete()`. */ + ``` ## WasmEdge Runtime @@ -1737,157 +1737,157 @@ The `Executor` context is the executor for both WASM and compiled-WASM. This obj 1. Instantiate and register an `AST module` as a named `Module` instance - As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` contexts, developers can instantiate and register an `AST module` contexts into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). - - ```c - /* - * ... - * Assume that the `ASTCxt` is the output AST module context from the loader - * context and has passed the validation. Assume that the `ConfCxt` is the - * configure context. - */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* - * Create the executor context. The configure and the statistics contexts - * can be NULL. - */ - WasmEdge_ExecutorContext *ExecCxt = - WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* - * Create the store context. The store context is the object to link the - * modules for imports and exports. - */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* Result. */ - WasmEdge_Result Res; - - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - /* The output module instance. */ - WasmEdge_ModuleInstanceContext *ModCxt = NULL; - /* - * Register the WASM module into the store with the export module name - * "mod". - */ - Res = - WasmEdge_ExecutorRegister(ExecCxt, &ModCxt, StoreCxt, ASTCxt, ModName); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - WasmEdge_StringDelete(ModName); - - /* ... */ - - /* After the execution, the resources should be released. */ - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_ModuleInstanceDelete(ModCxt); - ``` + As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` contexts, developers can instantiate and register an `AST module` contexts into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader + * context and has passed the validation. Assume that the `ConfCxt` is the + * configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* + * Create the executor context. The configure and the statistics contexts + * can be NULL. + */ + WasmEdge_ExecutorContext *ExecCxt = + WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* + * Create the store context. The store context is the object to link the + * modules for imports and exports. + */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* Result. */ + WasmEdge_Result Res; + + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + /* The output module instance. */ + WasmEdge_ModuleInstanceContext *ModCxt = NULL; + /* + * Register the WASM module into the store with the export module name + * "mod". + */ + Res = + WasmEdge_ExecutorRegister(ExecCxt, &ModCxt, StoreCxt, ASTCxt, ModName); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + WasmEdge_StringDelete(ModName); + + /* ... */ + + /* After the execution, the resources should be released. */ + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_ModuleInstanceDelete(ModCxt); + ``` 2. Register an existing `Module` instance and export the module name - Besides instantiating and registering an `AST module` contexts, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). - - ```c - /* - * ... - * Assume that the `ASTCxt` is the output AST module context from the loader - * context and has passed the validation. Assume that the `ConfCxt` is the - * configure context. - */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* - * Create the executor context. The configure and the statistics contexts - * can be NULL. - */ - WasmEdge_ExecutorContext *ExecCxt = - WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* - * Create the store context. The store context is the object to link the - * modules for imports and exports. - */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* Result. */ - WasmEdge_Result Res; - - /* Create a module instance for host functions. */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("host-module"); - WasmEdge_ModuleInstanceContext *HostModCxt = - WasmEdge_ModuleInstanceCreate(ModName); - WasmEdge_StringDelete(ModName); - /* - * ... - * Create and add the host functions, tables, memories, and globals into the - * module instance. - */ - - /* Register the module instance into store with the exported module name. */ - /* The export module name is in the module instance already. */ - Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, HostModCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* ... */ - - /* After the execution, the resources should be released. */ - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_ModuleInstanceDelete(ModCxt); - ``` + Besides instantiating and registering an `AST module` contexts, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader + * context and has passed the validation. Assume that the `ConfCxt` is the + * configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* + * Create the executor context. The configure and the statistics contexts + * can be NULL. + */ + WasmEdge_ExecutorContext *ExecCxt = + WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* + * Create the store context. The store context is the object to link the + * modules for imports and exports. + */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* Result. */ + WasmEdge_Result Res; + + /* Create a module instance for host functions. */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("host-module"); + WasmEdge_ModuleInstanceContext *HostModCxt = + WasmEdge_ModuleInstanceCreate(ModName); + WasmEdge_StringDelete(ModName); + /* + * ... + * Create and add the host functions, tables, memories, and globals into the + * module instance. + */ + + /* Register the module instance into store with the exported module name. */ + /* The export module name is in the module instance already. */ + Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, HostModCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* ... */ + + /* After the execution, the resources should be released. */ + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_ModuleInstanceDelete(ModCxt); + ``` 3. Instantiate an `AST module` to an anonymous `Module` instance - WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` context for linking. - - ```c - /* - * ... - * Assume that the `ASTCxt` is the output AST module context from the loader - * context and has passed the validation. Assume that the `ConfCxt` is the - * configure context. - */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* - * Create the executor context. The configure and the statistics contexts - * can be NULL. - */ - WasmEdge_ExecutorContext *ExecCxt = - WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* - * Create the store context. The store context is the object to link the - * modules for imports and exports. - */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - - /* The output module instance. */ - WasmEdge_ModuleInstanceContext *ModCxt = NULL; - /* Instantiate the WASM module. */ - WasmEdge_Result Res = - WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt, StoreCxt, ASTCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM instantiation failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* ... */ - - /* After the execution, the resources should be released. */ - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_ModuleInstanceDelete(ModCxt); - ``` + WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` context for linking. + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader + * context and has passed the validation. Assume that the `ConfCxt` is the + * configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* + * Create the executor context. The configure and the statistics contexts + * can be NULL. + */ + WasmEdge_ExecutorContext *ExecCxt = + WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* + * Create the store context. The store context is the object to link the + * modules for imports and exports. + */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + + /* The output module instance. */ + WasmEdge_ModuleInstanceContext *ModCxt = NULL; + /* Instantiate the WASM module. */ + WasmEdge_Result Res = + WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt, StoreCxt, ASTCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM instantiation failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* ... */ + + /* After the execution, the resources should be released. */ + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_ModuleInstanceDelete(ModCxt); + ``` 4. Invoke functions - After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `WasmEdge_ExecutorInvoke()` API. + After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `WasmEdge_ExecutorInvoke()` API. ### AST Module @@ -1972,209 +1972,209 @@ The instances are the runtime structures of WASM. Developers can retrieve the `M 1. Module instance - After instantiating or registering an `AST module` context, developers will get a `Module` instance as the result, and have the responsibility to destroy it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. - - ```c - /* - * ... - * Instantiate a WASM module via the executor context and get the `ModCxt` - * as the output module instance. - */ - - /* Try to list the exported instance of the instantiated WASM module. */ - /* Take the function instances for example here. */ - uint32_t FuncNum = WasmEdge_ModuleInstanceListFunctionLength(ModCxt); - /* Create the name buffers. */ - const uint32_t BUF_LEN = 256; - WasmEdge_String FuncNames[BUF_LEN]; - /* - * If the list length is larger than the buffer length, the overflowed data - * will be discarded. - */ - uint32_t RealFuncNum = - WasmEdge_ModuleInstanceListFunction(ModCxt, FuncNames, BUF_LEN); - for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { - /* Working with the function name `FuncNames[I]` ... */ - /* The function names should __NOT__ be destroyed. */ - } - - /* Try to find the exported instance of the instantiated WASM module. */ - /* Take the function instances for example here. */ - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - WasmEdge_FunctionInstanceContext *FuncCxt = - WasmEdge_ModuleInstanceFindFunction(ModCxt, FuncName); - /* `FuncCxt` will be `NULL` if the function not found. */ - /* - * The returned instance is owned by the module instance context and should - * __NOT__ be destroyed. - */ - WasmEdge_StringDelete(FuncName); - ``` + After instantiating or registering an `AST module` context, developers will get a `Module` instance as the result, and have the responsibility to destroy it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. + + ```c + /* + * ... + * Instantiate a WASM module via the executor context and get the `ModCxt` + * as the output module instance. + */ + + /* Try to list the exported instance of the instantiated WASM module. */ + /* Take the function instances for example here. */ + uint32_t FuncNum = WasmEdge_ModuleInstanceListFunctionLength(ModCxt); + /* Create the name buffers. */ + const uint32_t BUF_LEN = 256; + WasmEdge_String FuncNames[BUF_LEN]; + /* + * If the list length is larger than the buffer length, the overflowed data + * will be discarded. + */ + uint32_t RealFuncNum = + WasmEdge_ModuleInstanceListFunction(ModCxt, FuncNames, BUF_LEN); + for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { + /* Working with the function name `FuncNames[I]` ... */ + /* The function names should __NOT__ be destroyed. */ + } + + /* Try to find the exported instance of the instantiated WASM module. */ + /* Take the function instances for example here. */ + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + WasmEdge_FunctionInstanceContext *FuncCxt = + WasmEdge_ModuleInstanceFindFunction(ModCxt, FuncName); + /* `FuncCxt` will be `NULL` if the function not found. */ + /* + * The returned instance is owned by the module instance context and should + * __NOT__ be destroyed. + */ + WasmEdge_StringDelete(FuncName); + ``` 2. Function instance - [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` contexts for host functions and add them into an `Module` instance context for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` contexts through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). + [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` contexts for host functions and add them into an `Module` instance context for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` contexts through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). - ```c - /* Retrieve the function instance from the module instance context. */ - WasmEdge_FunctionInstanceContext *FuncCxt = ...; - WasmEdge_FunctionTypeContext *FuncTypeCxt = - WasmEdge_FunctionInstanceGetFunctionType(FuncCxt); - /* - * The `FuncTypeCxt` is owned by the `FuncCxt` and should __NOT__ be - * destroyed. - */ + ```c + /* Retrieve the function instance from the module instance context. */ + WasmEdge_FunctionInstanceContext *FuncCxt = ...; + WasmEdge_FunctionTypeContext *FuncTypeCxt = + WasmEdge_FunctionInstanceGetFunctionType(FuncCxt); + /* + * The `FuncTypeCxt` is owned by the `FuncCxt` and should __NOT__ be + * destroyed. + */ - /* - * For the function instance creation, please refer to the `Host Function` - * guide. - */ - ``` + /* + * For the function instance creation, please refer to the `Host Function` + * guide. + */ + ``` 3. Table instance - In WasmEdge, developers can create the `Table` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Table` contexts supply APIs to control the data in table instances. - - ```c - WasmEdge_Limit TabLimit = { - .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - /* Create the table type with limit and the `FuncRef` element type. */ - WasmEdge_TableTypeContext *TabTypeCxt = - WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TabLimit); - /* Create the table instance with table type. */ - WasmEdge_TableInstanceContext *HostTable = - WasmEdge_TableInstanceCreate(TabTypeCxt); - /* Delete the table type. */ - WasmEdge_TableTypeDelete(TabTypeCxt); - WasmEdge_Result Res; - WasmEdge_Value Data; - - TabTypeCxt = WasmEdge_TableInstanceGetTableType(HostTable); - /* - * The `TabTypeCxt` got from table instance is owned by the `HostTable` and - * should __NOT__ be destroyed. - */ - enum WasmEdge_RefType RefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); - /* `RefType` will be `WasmEdge_RefType_FuncRef`. */ - Data = WasmEdge_ValueGenFuncRef(5); - Res = WasmEdge_TableInstanceSetData(HostTable, Data, 3); - /* Set the function index 5 to the table[3]. */ - /* - * This will get an "out of bounds table access" error - * because the position (13) is out of the table size (10): - * Res = WasmEdge_TableInstanceSetData(HostTable, Data, 13); - */ - Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 3); - /* Get the FuncRef value of the table[3]. */ - /* - * This will get an "out of bounds table access" error - * because the position (13) is out of the table size (10): - * Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 13); - */ - - uint32_t Size = WasmEdge_TableInstanceGetSize(HostTable); - /* `Size` will be 10. */ - Res = WasmEdge_TableInstanceGrow(HostTable, 6); - /* Grow the table size of 6, the table size will be 16. */ - /* - * This will get an "out of bounds table access" error because - * the size (16 + 6) will reach the table limit(20): - * Res = WasmEdge_TableInstanceGrow(HostTable, 6); - */ - - WasmEdge_TableInstanceDelete(HostTable); - ``` + In WasmEdge, developers can create the `Table` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Table` contexts supply APIs to control the data in table instances. + + ```c + WasmEdge_Limit TabLimit = { + .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + /* Create the table type with limit and the `FuncRef` element type. */ + WasmEdge_TableTypeContext *TabTypeCxt = + WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TabLimit); + /* Create the table instance with table type. */ + WasmEdge_TableInstanceContext *HostTable = + WasmEdge_TableInstanceCreate(TabTypeCxt); + /* Delete the table type. */ + WasmEdge_TableTypeDelete(TabTypeCxt); + WasmEdge_Result Res; + WasmEdge_Value Data; + + TabTypeCxt = WasmEdge_TableInstanceGetTableType(HostTable); + /* + * The `TabTypeCxt` got from table instance is owned by the `HostTable` and + * should __NOT__ be destroyed. + */ + enum WasmEdge_RefType RefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); + /* `RefType` will be `WasmEdge_RefType_FuncRef`. */ + Data = WasmEdge_ValueGenFuncRef(5); + Res = WasmEdge_TableInstanceSetData(HostTable, Data, 3); + /* Set the function index 5 to the table[3]. */ + /* + * This will get an "out of bounds table access" error + * because the position (13) is out of the table size (10): + * Res = WasmEdge_TableInstanceSetData(HostTable, Data, 13); + */ + Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 3); + /* Get the FuncRef value of the table[3]. */ + /* + * This will get an "out of bounds table access" error + * because the position (13) is out of the table size (10): + * Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 13); + */ + + uint32_t Size = WasmEdge_TableInstanceGetSize(HostTable); + /* `Size` will be 10. */ + Res = WasmEdge_TableInstanceGrow(HostTable, 6); + /* Grow the table size of 6, the table size will be 16. */ + /* + * This will get an "out of bounds table access" error because + * the size (16 + 6) will reach the table limit(20): + * Res = WasmEdge_TableInstanceGrow(HostTable, 6); + */ + + WasmEdge_TableInstanceDelete(HostTable); + ``` 4. Memory instance - In WasmEdge, developers can create the `Memory` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Memory` contexts supply APIs to control the data in memory instances. - - ```c - WasmEdge_Limit MemLimit = { - .HasMax = true, .Shared = false, .Min = 1, .Max = 5}; - /* Create the memory type with limit. The memory page size is 64KiB. */ - WasmEdge_MemoryTypeContext *MemTypeCxt = - WasmEdge_MemoryTypeCreate(MemLimit); - /* Create the memory instance with memory type. */ - WasmEdge_MemoryInstanceContext *HostMemory = - WasmEdge_MemoryInstanceCreate(MemTypeCxt); - /* Delete the memory type. */ - WasmEdge_MemoryTypeDelete(MemTypeCxt); - WasmEdge_Result Res; - uint8_t Buf[256]; - - Buf[0] = 0xAA; - Buf[1] = 0xBB; - Buf[2] = 0xCC; - Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0x1000, 3); - /* Set the data[0:2] to the memory[4096:4098]. */ - /* - * This will get an "out of bounds memory access" error - * because [65535:65537] is out of 1 page size (65536): - * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); - */ - Buf[0] = 0; - Buf[1] = 0; - Buf[2] = 0; - Res = WasmEdge_MemoryInstanceGetData(HostMemory, Buf, 0x1000, 3); - /* Get the memory[4096:4098]. Buf[0:2] will be `{0xAA, 0xBB, 0xCC}`. */ - /* - * This will get an "out of bounds memory access" error - * because [65535:65537] is out of 1 page size (65536): - * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); - */ - - uint32_t PageSize = WasmEdge_MemoryInstanceGetPageSize(HostMemory); - /* `PageSize` will be 1. */ - Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 2); - /* Grow the page size of 2, the page size of the memory instance will be 3. - */ - /* - * This will get an "out of bounds memory access" error because - * the page size (3 + 3) will reach the memory limit(5): - * Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 3); - */ - - WasmEdge_MemoryInstanceDelete(HostMemory); - ``` + In WasmEdge, developers can create the `Memory` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Memory` contexts supply APIs to control the data in memory instances. + + ```c + WasmEdge_Limit MemLimit = { + .HasMax = true, .Shared = false, .Min = 1, .Max = 5}; + /* Create the memory type with limit. The memory page size is 64KiB. */ + WasmEdge_MemoryTypeContext *MemTypeCxt = + WasmEdge_MemoryTypeCreate(MemLimit); + /* Create the memory instance with memory type. */ + WasmEdge_MemoryInstanceContext *HostMemory = + WasmEdge_MemoryInstanceCreate(MemTypeCxt); + /* Delete the memory type. */ + WasmEdge_MemoryTypeDelete(MemTypeCxt); + WasmEdge_Result Res; + uint8_t Buf[256]; + + Buf[0] = 0xAA; + Buf[1] = 0xBB; + Buf[2] = 0xCC; + Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0x1000, 3); + /* Set the data[0:2] to the memory[4096:4098]. */ + /* + * This will get an "out of bounds memory access" error + * because [65535:65537] is out of 1 page size (65536): + * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); + */ + Buf[0] = 0; + Buf[1] = 0; + Buf[2] = 0; + Res = WasmEdge_MemoryInstanceGetData(HostMemory, Buf, 0x1000, 3); + /* Get the memory[4096:4098]. Buf[0:2] will be `{0xAA, 0xBB, 0xCC}`. */ + /* + * This will get an "out of bounds memory access" error + * because [65535:65537] is out of 1 page size (65536): + * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); + */ + + uint32_t PageSize = WasmEdge_MemoryInstanceGetPageSize(HostMemory); + /* `PageSize` will be 1. */ + Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 2); + /* Grow the page size of 2, the page size of the memory instance will be 3. + */ + /* + * This will get an "out of bounds memory access" error because + * the page size (3 + 3) will reach the memory limit(5): + * Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 3); + */ + + WasmEdge_MemoryInstanceDelete(HostMemory); + ``` 5. Global instance - In WasmEdge, developers can create the `Global` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Global` contexts supply APIs to control the value in global instances. - - ```c - WasmEdge_Value Val = WasmEdge_ValueGenI64(1000); - /* Create the global type with value type and mutation. */ - WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate( - WasmEdge_ValType_I64, WasmEdge_Mutability_Var); - /* Create the global instance with value and global type. */ - WasmEdge_GlobalInstanceContext *HostGlobal = - WasmEdge_GlobalInstanceCreate(GlobTypeCxt, Val); - /* Delete the global type. */ - WasmEdge_GlobalTypeDelete(GlobTypeCxt); - WasmEdge_Result Res; - - GlobTypeCxt = WasmEdge_GlobalInstanceGetGlobalType(HostGlobal); - /* The `GlobTypeCxt` got from global instance is owned by the `HostGlobal` - * and should __NOT__ be destroyed. */ - enum WasmEdge_ValType ValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); - /* `ValType` will be `WasmEdge_ValType_I64`. */ - enum WasmEdge_Mutability ValMut = - WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); - /* `ValMut` will be `WasmEdge_Mutability_Var`. */ - - WasmEdge_GlobalInstanceSetValue(HostGlobal, WasmEdge_ValueGenI64(888)); - /* - * Set the value u64(888) to the global. - * This function will do nothing if the value type mismatched or - * the global mutability is `WasmEdge_Mutability_Const`. - */ - WasmEdge_Value GlobVal = WasmEdge_GlobalInstanceGetValue(HostGlobal); - /* Get the value (888 now) of the global context. */ - - WasmEdge_GlobalInstanceDelete(HostGlobal); - ``` + In WasmEdge, developers can create the `Global` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Global` contexts supply APIs to control the value in global instances. + + ```c + WasmEdge_Value Val = WasmEdge_ValueGenI64(1000); + /* Create the global type with value type and mutation. */ + WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate( + WasmEdge_ValType_I64, WasmEdge_Mutability_Var); + /* Create the global instance with value and global type. */ + WasmEdge_GlobalInstanceContext *HostGlobal = + WasmEdge_GlobalInstanceCreate(GlobTypeCxt, Val); + /* Delete the global type. */ + WasmEdge_GlobalTypeDelete(GlobTypeCxt); + WasmEdge_Result Res; + + GlobTypeCxt = WasmEdge_GlobalInstanceGetGlobalType(HostGlobal); + /* The `GlobTypeCxt` got from global instance is owned by the `HostGlobal` + * and should __NOT__ be destroyed. */ + enum WasmEdge_ValType ValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); + /* `ValType` will be `WasmEdge_ValType_I64`. */ + enum WasmEdge_Mutability ValMut = + WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); + /* `ValMut` will be `WasmEdge_Mutability_Var`. */ + + WasmEdge_GlobalInstanceSetValue(HostGlobal, WasmEdge_ValueGenI64(888)); + /* + * Set the value u64(888) to the global. + * This function will do nothing if the value type mismatched or + * the global mutability is `WasmEdge_Mutability_Const`. + */ + WasmEdge_Value GlobVal = WasmEdge_GlobalInstanceGetValue(HostGlobal); + /* Get the value (888 now) of the global context. */ + + WasmEdge_GlobalInstanceDelete(HostGlobal); + ``` ### Host Functions @@ -2182,568 +2182,568 @@ The instances are the runtime structures of WASM. Developers can retrieve the `M 1. Host function allocation - Developers can define C functions with the following function signature as the host function body: - - ```c - typedef WasmEdge_Result (*WasmEdge_HostFunc_t)( - void *Data, const WasmEdge_CallingFrameContext *CallFrameCxt, - const WasmEdge_Value *Params, WasmEdge_Value *Returns); - ``` - - The example of an `add` host function to add 2 `i32` values: + Developers can define C functions with the following function signature as the host function body: + + ```c + typedef WasmEdge_Result (*WasmEdge_HostFunc_t)( + void *Data, const WasmEdge_CallingFrameContext *CallFrameCxt, + const WasmEdge_Value *Params, WasmEdge_Value *Returns); + ``` + + The example of an `add` host function to add 2 `i32` values: + + ```c + WasmEdge_Result Add(void *, const WasmEdge_CallingFrameContext *, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + /* + * Params: {i32, i32} + * Returns: {i32} + * Developers should take care about the function type. + */ + /* Retrieve the value 1. */ + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + /* Retrieve the value 2. */ + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + /* Output value 1 is Val1 + Val2. */ + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + /* Return the status of success. */ + return WasmEdge_Result_Success; + } + ``` + + Then developers can create `Function` context with the host function body and the function type: + + ```c + enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, + WasmEdge_ValType_I32}; + enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; + /* Create a function type: {i32, i32} -> {i32}. */ + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + /* + * Create a function context with the function type and host function body. + * The `Cost` parameter can be 0 if developers do not need the cost + * measuring. + */ + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + /* + * The third parameter is the pointer to the additional data. + * Developers should guarantee the life cycle of the data, and it can be + * `NULL` if the external data is not needed. + */ + WasmEdge_FunctionTypeDelete(HostType); + + /* + * If the function instance is __NOT__ added into a module instance context, + * it should be deleted. + */ + WasmEdge_FunctionInstanceDelete(HostFunc); + ``` - ```c - WasmEdge_Result Add(void *, const WasmEdge_CallingFrameContext *, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - /* - * Params: {i32, i32} - * Returns: {i32} - * Developers should take care about the function type. - */ - /* Retrieve the value 1. */ - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - /* Retrieve the value 2. */ - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - /* Output value 1 is Val1 + Val2. */ - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - /* Return the status of success. */ - return WasmEdge_Result_Success; - } - ``` - - Then developers can create `Function` context with the host function body and the function type: - - ```c - enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, - WasmEdge_ValType_I32}; - enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; - /* Create a function type: {i32, i32} -> {i32}. */ - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - /* - * Create a function context with the function type and host function body. - * The `Cost` parameter can be 0 if developers do not need the cost - * measuring. - */ - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - /* - * The third parameter is the pointer to the additional data. - * Developers should guarantee the life cycle of the data, and it can be - * `NULL` if the external data is not needed. - */ - WasmEdge_FunctionTypeDelete(HostType); +2. Calling frame context - /* - * If the function instance is __NOT__ added into a module instance context, - * it should be deleted. - */ - WasmEdge_FunctionInstanceDelete(HostFunc); - ``` + The `WasmEdge_CallingFrameContext` is the context to provide developers to access the module instance of the [frame on the top of the calling stack](https://webassembly.github.io/spec/core/exec/runtime.html#activations-and-frames). According to the [WASM spec](https://webassembly.github.io/spec/core/exec/instructions.html#function-calls), a frame with the module instance is pushed into the stack when invoking a function. Therefore, the host functions can access the module instance of the top frame to retrieve the memory instances to read/write data. -2. Calling frame context + ```c + WasmEdge_Result LoadOffset(void *Data, + const WasmEdge_CallingFrameContext *CallFrameCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + /* Function type: {i32} -> {} */ + uint32_t Offset = (uint32_t)WasmEdge_ValueGetI32(In[0]); + uint32_t Num = 0; - The `WasmEdge_CallingFrameContext` is the context to provide developers to access the module instance of the [frame on the top of the calling stack](https://webassembly.github.io/spec/core/exec/runtime.html#activations-and-frames). According to the [WASM spec](https://webassembly.github.io/spec/core/exec/instructions.html#function-calls), a frame with the module instance is pushed into the stack when invoking a function. Therefore, the host functions can access the module instance of the top frame to retrieve the memory instances to read/write data. - - ```c - WasmEdge_Result LoadOffset(void *Data, - const WasmEdge_CallingFrameContext *CallFrameCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - /* Function type: {i32} -> {} */ - uint32_t Offset = (uint32_t)WasmEdge_ValueGetI32(In[0]); - uint32_t Num = 0; - - /* - * Get the 0-th memory instance of the module instance of the top frame on - * stack. - */ - WasmEdge_MemoryInstanceContext *MemCxt = - WasmEdge_CallingFrameGetMemoryInstance(CallFrameCxt, 0); - - WasmEdge_Result Res = - WasmEdge_MemoryInstanceGetData(MemCxt, (uint8_t *)(&Num), Offset, 4); - if (WasmEdge_ResultOK(Res)) { - printf("u32 at memory[%lu]: %lu\n", Offset, Num); - } else { - return Res; - } - return WasmEdge_Result_Success; - } - ``` - - Besides using the `WasmEdge_CallingFrameGetMemoryInstance()` API to get the memory instance by index in the module instance, developers can use the `WasmEdge_CallingFrameGetModuleInstance()` to get the module instance directly. Therefore, developers can retrieve the exported contexts by the `WasmEdge_ModuleInstanceContext` APIs. And also, developers can use the `WasmEdge_CallingFrameGetExecutor()` API to get the currently used executor context. + /* + * Get the 0-th memory instance of the module instance of the top frame on + * stack. + */ + WasmEdge_MemoryInstanceContext *MemCxt = + WasmEdge_CallingFrameGetMemoryInstance(CallFrameCxt, 0); + + WasmEdge_Result Res = + WasmEdge_MemoryInstanceGetData(MemCxt, (uint8_t *)(&Num), Offset, 4); + if (WasmEdge_ResultOK(Res)) { + printf("u32 at memory[%lu]: %lu\n", Offset, Num); + } else { + return Res; + } + return WasmEdge_Result_Success; + } + ``` + + Besides using the `WasmEdge_CallingFrameGetMemoryInstance()` API to get the memory instance by index in the module instance, developers can use the `WasmEdge_CallingFrameGetModuleInstance()` to get the module instance directly. Therefore, developers can retrieve the exported contexts by the `WasmEdge_ModuleInstanceContext` APIs. And also, developers can use the `WasmEdge_CallingFrameGetExecutor()` API to get the currently used executor context. 3. User-defined error code of the host functions - In host functions, WasmEdge provides `WasmEdge_Result_Success` to return success, `WasmEdge_Result_Terminate` to terminate the WASM execution, and `WasmEdge_Result_Fail` to return fail. WasmEdge also provides the usage of returning the user-specified codes. Developers can use the `WasmEdge_ResultGen()` API to generate the `WasmEdge_Result` with error code, and use the `WasmEdge_ResultGetCode()` API to get the error code. + In host functions, WasmEdge provides `WasmEdge_Result_Success` to return success, `WasmEdge_Result_Terminate` to terminate the WASM execution, and `WasmEdge_Result_Fail` to return fail. WasmEdge also provides the usage of returning the user-specified codes. Developers can use the `WasmEdge_ResultGen()` API to generate the `WasmEdge_Result` with error code, and use the `WasmEdge_ResultGetCode()` API to get the error code. - > Notice: The error code only supports 24-bit integer (0 ~ 16777216 in `uint32_t`). The values larger than 24-bit will be truncated. + > Notice: The error code only supports 24-bit integer (0 ~ 16777216 in `uint32_t`). The values larger than 24-bit will be truncated. - Assume that a simple WASM from the WAT is as following: + Assume that a simple WASM from the WAT is as following: - ```wasm - (module - (type $t0 (func (param i32))) - (import "extern" "trap" (func $f-trap (type $t0))) - (func (export "trap") (param i32) - local.get 0 - call $f-trap) - ) - ``` - - And the `test.c` is as following: - - ```c - #include - #include - - /* Host function body definition. */ - WasmEdge_Result Trap(void *Data, - const WasmEdge_CallingFrameContext *CallFrameCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val = WasmEdge_ValueGetI32(In[0]); - /* Return the error code from the param[0]. */ - return WasmEdge_ResultGen(WasmEdge_ErrCategory_UserLevelError, Val); - } - - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The WASM module buffer. */ - uint8_t WASM[] = {/* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x05, 0x01, - /* function type {i32} -> {} */ - 0x60, 0x01, 0x7F, 0x00, - /* Import section */ - 0x02, 0x0F, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "trap" */ - 0x04, 0x74, 0x72, 0x61, 0x70, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x08, 0x01, - /* export name: "trap" */ - 0x04, 0x74, 0x72, 0x61, 0x70, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x08, 0x01, - /* code body */ - 0x06, 0x00, 0x20, 0x00, 0x10, 0x00, 0x0B}; - - /* Create the module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); - WasmEdge_ModuleInstanceContext *HostModCxt = - WasmEdge_ModuleInstanceCreate(ExportName); - enum WasmEdge_ValType ParamList[1] = {WasmEdge_ValType_I32}; - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 1, NULL, 0); - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Trap, NULL, 0); - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("trap"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); - WasmEdge_StringDelete(HostFuncName); - - WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(5566)}; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("trap"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( - VMCxt, WASM, sizeof(WASM), FuncName, Params, 1, NULL, 0); - - /* Get the result code and print. */ - printf("Get the error code: %u\n", WasmEdge_ResultGetCode(Res)); - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - WasmEdge_ModuleInstanceDelete(HostModCxt); - return 0; - } - ``` - - Then you can compile and run: (giving the expected error code `5566`) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - [2022-08-26 15:06:40.384] [error] user defined failed: user defined error code, Code: 0x15be - [2022-08-26 15:06:40.384] [error] When executing function name: "trap" - Get the error code: 5566 - ``` + ```wasm + (module + (type $t0 (func (param i32))) + (import "extern" "trap" (func $f-trap (type $t0))) + (func (export "trap") (param i32) + local.get 0 + call $f-trap) + ) + ``` -4. Construct a module instance with host instances + And the `test.c` is as following: - Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + ```c + #include + #include - ```c - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, + /* Host function body definition. */ + WasmEdge_Result Trap(void *Data, const WasmEdge_CallingFrameContext *CallFrameCxt, const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - return WasmEdge_Result_Success; - } - - /* Create a module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("module"); - WasmEdge_ModuleInstanceContext *HostModCxt = - WasmEdge_ModuleInstanceCreate(ExportName); - WasmEdge_StringDelete(ExportName); - - /* Create and add a function instance into the module instance. */ - enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, - WasmEdge_ValType_I32}; - enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - /* - * The third parameter is the pointer to the additional data object. - * Developers should guarantee the life cycle of the data, and it can be - * `NULL` if the external data is not needed. - */ - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("add"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, FuncName, HostFunc); - WasmEdge_StringDelete(FuncName); - - /* Create and add a table instance into the import object. */ - WasmEdge_Limit TableLimit = { - .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - WasmEdge_TableTypeContext *HostTType = - WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TableLimit); - WasmEdge_TableInstanceContext *HostTable = - WasmEdge_TableInstanceCreate(HostTType); - WasmEdge_TableTypeDelete(HostTType); - WasmEdge_String TableName = WasmEdge_StringCreateByCString("table"); - WasmEdge_ModuleInstanceAddTable(HostModCxt, TableName, HostTable); - WasmEdge_StringDelete(TableName); - - /* Create and add a memory instance into the import object. */ - WasmEdge_Limit MemoryLimit = { - .HasMax = true, .Shared = false, .Min = 1, .Max = 2}; - WasmEdge_MemoryTypeContext *HostMType = - WasmEdge_MemoryTypeCreate(MemoryLimit); - WasmEdge_MemoryInstanceContext *HostMemory = - WasmEdge_MemoryInstanceCreate(HostMType); - WasmEdge_MemoryTypeDelete(HostMType); - WasmEdge_String MemoryName = WasmEdge_StringCreateByCString("memory"); - WasmEdge_ModuleInstanceAddMemory(HostModCxt, MemoryName, HostMemory); - WasmEdge_StringDelete(MemoryName); - - /* Create and add a global instance into the module instance. */ - WasmEdge_GlobalTypeContext *HostGType = WasmEdge_GlobalTypeCreate( - WasmEdge_ValType_I32, WasmEdge_Mutability_Var); - WasmEdge_GlobalInstanceContext *HostGlobal = - WasmEdge_GlobalInstanceCreate(HostGType, WasmEdge_ValueGenI32(666)); - WasmEdge_GlobalTypeDelete(HostGType); - WasmEdge_String GlobalName = WasmEdge_StringCreateByCString("global"); - WasmEdge_ModuleInstanceAddGlobal(HostModCxt, GlobalName, HostGlobal); - WasmEdge_StringDelete(GlobalName); - - /* - * The module instance should be deleted. - * Developers should __NOT__ destroy the instances added into the module - * instance contexts. - */ - WasmEdge_ModuleInstanceDelete(HostModCxt); - ``` - -5. Specified module instance + int32_t Val = WasmEdge_ValueGetI32(In[0]); + /* Return the error code from the param[0]. */ + return WasmEdge_ResultGen(WasmEdge_ErrCategory_UserLevelError, Val); + } + + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The WASM module buffer. */ + uint8_t WASM[] = {/* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x05, 0x01, + /* function type {i32} -> {} */ + 0x60, 0x01, 0x7F, 0x00, + /* Import section */ + 0x02, 0x0F, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "trap" */ + 0x04, 0x74, 0x72, 0x61, 0x70, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x08, 0x01, + /* export name: "trap" */ + 0x04, 0x74, 0x72, 0x61, 0x70, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x08, 0x01, + /* code body */ + 0x06, 0x00, 0x20, 0x00, 0x10, 0x00, 0x0B}; + + /* Create the module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); + WasmEdge_ModuleInstanceContext *HostModCxt = + WasmEdge_ModuleInstanceCreate(ExportName); + enum WasmEdge_ValType ParamList[1] = {WasmEdge_ValType_I32}; + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 1, NULL, 0); + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Trap, NULL, 0); + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("trap"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); + WasmEdge_StringDelete(HostFuncName); + + WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(5566)}; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("trap"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( + VMCxt, WASM, sizeof(WASM), FuncName, Params, 1, NULL, 0); + + /* Get the result code and print. */ + printf("Get the error code: %u\n", WasmEdge_ResultGetCode(Res)); + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + WasmEdge_ModuleInstanceDelete(HostModCxt); + return 0; + } + ``` + + Then you can compile and run: (giving the expected error code `5566`) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + [2022-08-26 15:06:40.384] [error] user defined failed: user defined error code, Code: 0x15be + [2022-08-26 15:06:40.384] [error] When executing function name: "trap" + Get the error code: 5566 + ``` - `WasmEdge_ModuleInstanceCreateWASI()` API can create and initialize the `WASI` module instance. +4. Construct a module instance with host instances - `WasmEdge_ModuleInstanceCreateWasiNN()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin. + Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + + ```c + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, + const WasmEdge_CallingFrameContext *CallFrameCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + return WasmEdge_Result_Success; + } + + /* Create a module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("module"); + WasmEdge_ModuleInstanceContext *HostModCxt = + WasmEdge_ModuleInstanceCreate(ExportName); + WasmEdge_StringDelete(ExportName); + + /* Create and add a function instance into the module instance. */ + enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, + WasmEdge_ValType_I32}; + enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + /* + * The third parameter is the pointer to the additional data object. + * Developers should guarantee the life cycle of the data, and it can be + * `NULL` if the external data is not needed. + */ + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("add"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, FuncName, HostFunc); + WasmEdge_StringDelete(FuncName); + + /* Create and add a table instance into the import object. */ + WasmEdge_Limit TableLimit = { + .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + WasmEdge_TableTypeContext *HostTType = + WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TableLimit); + WasmEdge_TableInstanceContext *HostTable = + WasmEdge_TableInstanceCreate(HostTType); + WasmEdge_TableTypeDelete(HostTType); + WasmEdge_String TableName = WasmEdge_StringCreateByCString("table"); + WasmEdge_ModuleInstanceAddTable(HostModCxt, TableName, HostTable); + WasmEdge_StringDelete(TableName); + + /* Create and add a memory instance into the import object. */ + WasmEdge_Limit MemoryLimit = { + .HasMax = true, .Shared = false, .Min = 1, .Max = 2}; + WasmEdge_MemoryTypeContext *HostMType = + WasmEdge_MemoryTypeCreate(MemoryLimit); + WasmEdge_MemoryInstanceContext *HostMemory = + WasmEdge_MemoryInstanceCreate(HostMType); + WasmEdge_MemoryTypeDelete(HostMType); + WasmEdge_String MemoryName = WasmEdge_StringCreateByCString("memory"); + WasmEdge_ModuleInstanceAddMemory(HostModCxt, MemoryName, HostMemory); + WasmEdge_StringDelete(MemoryName); + + /* Create and add a global instance into the module instance. */ + WasmEdge_GlobalTypeContext *HostGType = WasmEdge_GlobalTypeCreate( + WasmEdge_ValType_I32, WasmEdge_Mutability_Var); + WasmEdge_GlobalInstanceContext *HostGlobal = + WasmEdge_GlobalInstanceCreate(HostGType, WasmEdge_ValueGenI32(666)); + WasmEdge_GlobalTypeDelete(HostGType); + WasmEdge_String GlobalName = WasmEdge_StringCreateByCString("global"); + WasmEdge_ModuleInstanceAddGlobal(HostModCxt, GlobalName, HostGlobal); + WasmEdge_StringDelete(GlobalName); + + /* + * The module instance should be deleted. + * Developers should __NOT__ destroy the instances added into the module + * instance contexts. + */ + WasmEdge_ModuleInstanceDelete(HostModCxt); + ``` - `WasmEdge_ModuleInstanceCreateWasiCryptoCommon()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin. +5. Specified module instance - `WasmEdge_ModuleInstanceCreateWasiCryptoAsymmetricCommon()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin. + `WasmEdge_ModuleInstanceCreateWASI()` API can create and initialize the `WASI` module instance. - `WasmEdge_ModuleInstanceCreateWasiCryptoKx()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin. + `WasmEdge_ModuleInstanceCreateWasiNN()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin. - `WasmEdge_ModuleInstanceCreateWasiCryptoSignatures()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin. + `WasmEdge_ModuleInstanceCreateWasiCryptoCommon()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin. - `WasmEdge_ModuleInstanceCreateWasiCryptoSymmetric()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin. + `WasmEdge_ModuleInstanceCreateWasiCryptoAsymmetricCommon()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin. - `WasmEdge_ModuleInstanceCreateWasmEdgeProcess()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. + `WasmEdge_ModuleInstanceCreateWasiCryptoKx()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin. - Developers can create these module instance contexts and register them into the `Store` or `VM` contexts rather than adjust the settings in the `Configure` contexts. + `WasmEdge_ModuleInstanceCreateWasiCryptoSignatures()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin. - > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. And the 5 modules are recommended to all be created and registered together. + `WasmEdge_ModuleInstanceCreateWasiCryptoSymmetric()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin. - ```c - WasmEdge_ModuleInstanceContext *WasiModCxt = - WasmEdge_ModuleInstanceCreateWASI(/* ... ignored */); - WasmEdge_ModuleInstanceContext *ProcModCxt = - WasmEdge_ModuleInstanceCreateWasmEdgeProcess(/* ... ignored */); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - /* Register the WASI and WasmEdge_Process into the VM context. */ - WasmEdge_VMRegisterModuleFromImport(VMCxt, WasiModCxt); - WasmEdge_VMRegisterModuleFromImport(VMCxt, ProcModCxt); - /* Get the WASI exit code. */ - uint32_t ExitCode = WasmEdge_ModuleInstanceWASIGetExitCode(WasiModCxt); - /* - * The `ExitCode` will be EXIT_SUCCESS if the execution has no error. - * Otherwise, it will return with the related exit code. - */ - WasmEdge_VMDelete(VMCxt); - /* The module instances should be deleted. */ - WasmEdge_ModuleInstanceDelete(WasiModCxt); - WasmEdge_ModuleInstanceDelete(ProcModCxt); - ``` + `WasmEdge_ModuleInstanceCreateWasmEdgeProcess()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. -6. Example + Developers can create these module instance contexts and register them into the `Store` or `VM` contexts rather than adjust the settings in the `Configure` contexts. - Assume that a simple WASM from the WAT is as following: + > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. And the 5 modules are recommended to all be created and registered together. - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` + ```c + WasmEdge_ModuleInstanceContext *WasiModCxt = + WasmEdge_ModuleInstanceCreateWASI(/* ... ignored */); + WasmEdge_ModuleInstanceContext *ProcModCxt = + WasmEdge_ModuleInstanceCreateWasmEdgeProcess(/* ... ignored */); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + /* Register the WASI and WasmEdge_Process into the VM context. */ + WasmEdge_VMRegisterModuleFromImport(VMCxt, WasiModCxt); + WasmEdge_VMRegisterModuleFromImport(VMCxt, ProcModCxt); + /* Get the WASI exit code. */ + uint32_t ExitCode = WasmEdge_ModuleInstanceWASIGetExitCode(WasiModCxt); + /* + * The `ExitCode` will be EXIT_SUCCESS if the execution has no error. + * Otherwise, it will return with the related exit code. + */ + WasmEdge_VMDelete(VMCxt); + /* The module instances should be deleted. */ + WasmEdge_ModuleInstanceDelete(WasiModCxt); + WasmEdge_ModuleInstanceDelete(ProcModCxt); + ``` - And the `test.c` is as following: +6. Example - ```c - #include - #include - - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, - const WasmEdge_CallingFrameContext *CallFrameCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - printf("Host function \"Add\": %d + %d\n", Val1, Val2); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - return WasmEdge_Result_Success; - } - - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The WASM module buffer. */ - uint8_t WASM[] = {/* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B}; - - /* Create the module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); - WasmEdge_ModuleInstanceContext *HostModCxt = - WasmEdge_ModuleInstanceCreate(ExportName); - enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, - WasmEdge_ValType_I32}; - enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); - WasmEdge_StringDelete(HostFuncName); - - WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[2] = {WasmEdge_ValueGenI32(1234), - WasmEdge_ValueGenI32(5678)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( - VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - WasmEdge_ModuleInstanceDelete(HostModCxt); - return 0; - } - ``` - - Then you can compile and run: (the result of 1234 + 5678 is 6912) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Host function "Add": 1234 + 5678 - Get the result: 6912 - ``` + Assume that a simple WASM from the WAT is as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + And the `test.c` is as following: + + ```c + #include + #include + + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, + const WasmEdge_CallingFrameContext *CallFrameCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + printf("Host function \"Add\": %d + %d\n", Val1, Val2); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + return WasmEdge_Result_Success; + } + + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The WASM module buffer. */ + uint8_t WASM[] = {/* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B}; + + /* Create the module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); + WasmEdge_ModuleInstanceContext *HostModCxt = + WasmEdge_ModuleInstanceCreate(ExportName); + enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, + WasmEdge_ValType_I32}; + enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); + WasmEdge_StringDelete(HostFuncName); + + WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[2] = {WasmEdge_ValueGenI32(1234), + WasmEdge_ValueGenI32(5678)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( + VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + WasmEdge_ModuleInstanceDelete(HostModCxt); + return 0; + } + ``` + + Then you can compile and run: (the result of 1234 + 5678 is 6912) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Host function "Add": 1234 + 5678 + Get the result: 6912 + ``` 7. Host Data Example - Developers can set a external data object to the `Function` context, and access to the object in the function body. Assume that a simple WASM from the WAT is as following: - - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` - - And the `test.c` is as following: - - ```c - #include - #include - - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, - const WasmEdge_CallingFrameContext *CallFrameCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - printf("Host function \"Add\": %d + %d\n", Val1, Val2); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - /* Also set the result to the data. */ - int32_t *DataPtr = (int32_t *)Data; - *DataPtr = Val1 + Val2; - return WasmEdge_Result_Success; - } - - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The WASM module buffer. */ - uint8_t WASM[] = {/* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B}; - - /* The external data object: an integer. */ - int32_t Data; - - /* Create the module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); - WasmEdge_ModuleInstanceContext *HostModCxt = - WasmEdge_ModuleInstanceCreate(ExportName); - enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, - WasmEdge_ValType_I32}; - enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Add, &Data, 0); - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); - WasmEdge_StringDelete(HostFuncName); - - WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[2] = {WasmEdge_ValueGenI32(1234), - WasmEdge_ValueGenI32(5678)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( - VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - printf("Data value: %d\n", Data); - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - WasmEdge_ModuleInstanceDelete(HostModCxt); - return 0; - } - ``` - - Then you can compile and run: (the result of 1234 + 5678 is 6912) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Host function "Add": 1234 + 5678 - Get the result: 6912 - Data value: 6912 - ``` + Developers can set a external data object to the `Function` context, and access to the object in the function body. Assume that a simple WASM from the WAT is as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + And the `test.c` is as following: + + ```c + #include + #include + + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, + const WasmEdge_CallingFrameContext *CallFrameCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + printf("Host function \"Add\": %d + %d\n", Val1, Val2); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + /* Also set the result to the data. */ + int32_t *DataPtr = (int32_t *)Data; + *DataPtr = Val1 + Val2; + return WasmEdge_Result_Success; + } + + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The WASM module buffer. */ + uint8_t WASM[] = {/* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B}; + + /* The external data object: an integer. */ + int32_t Data; + + /* Create the module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); + WasmEdge_ModuleInstanceContext *HostModCxt = + WasmEdge_ModuleInstanceCreate(ExportName); + enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, + WasmEdge_ValType_I32}; + enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Add, &Data, 0); + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); + WasmEdge_StringDelete(HostFuncName); + + WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[2] = {WasmEdge_ValueGenI32(1234), + WasmEdge_ValueGenI32(5678)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( + VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + printf("Data value: %d\n", Data); + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + WasmEdge_ModuleInstanceDelete(HostModCxt); + return 0; + } + ``` + + Then you can compile and run: (the result of 1234 + 5678 is 6912) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Host function "Add": 1234 + 5678 + Get the result: 6912 + Data value: 6912 + ``` ## WasmEdge AOT Compiler diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/0.12.0.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/0.12.0.md index 150b38b0..bf31b0f4 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/0.12.0.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/0.12.0.md @@ -14,43 +14,43 @@ sidebar_position: 1 ## Table of Contents -- [WasmEdge Installation](#wasmedge-installation) - - [Download And Install](#download-and-install) - - [Compile Sources](#compile-sources) - - [ABI Compatibility](#abi-compatibility) -- [WasmEdge Basics](#wasmedge-basics) - - [Version](#version) - - [Logging Settings](#logging-settings) - - [Value Types](#value-types) - - [Strings](#strings) - - [Results](#results) - - [Contexts](#contexts) - - [WASM data structures](#wasm-data-structures) - - [Async](#async) - - [Configurations](#configurations) - - [Statistics](#statistics) - - [Tools driver](#tools-driver) -- [WasmEdge VM](#wasmedge-vm) - - [WASM Execution Example With VM Context](#wasm-execution-example-with-vm-context) - - [VM Creations](#vm-creations) - - [Built-in Host Modules and Plug-in Preregistrations](#built-in-host-modules-and-plug-in-preregistrations) - - [Host Module Registrations](#host-module-registrations) - - [WASM Registrations And Executions](#wasm-registrations-and-executions) - - [Asynchronous execution](#asynchronous-execution) - - [Instance Tracing](#instance-tracing) -- [WasmEdge Runtime](#wasmedge-runtime) - - [WASM Execution Example Step-By-Step](#wasm-execution-example-step-by-step) - - [Loader](#loader) - - [Validator](#validator) - - [Executor](#executor) - - [AST Module](#ast-module) - - [Store](#store) - - [Instances](#instances) - - [Host Functions](#host-functions) - - [Plug-ins](#plug-ins) -- [WasmEdge AOT Compiler](#wasmedge-aot-compiler) - - [Compilation Example](#compilation-example) - - [Compiler Options](#compiler-options) +- [WasmEdge Installation](#wasmedge-installation) + - [Download And Install](#download-and-install) + - [Compile Sources](#compile-sources) + - [ABI Compatibility](#abi-compatibility) +- [WasmEdge Basics](#wasmedge-basics) + - [Version](#version) + - [Logging Settings](#logging-settings) + - [Value Types](#value-types) + - [Strings](#strings) + - [Results](#results) + - [Contexts](#contexts) + - [WASM data structures](#wasm-data-structures) + - [Async](#async) + - [Configurations](#configurations) + - [Statistics](#statistics) + - [Tools driver](#tools-driver) +- [WasmEdge VM](#wasmedge-vm) + - [WASM Execution Example With VM Context](#wasm-execution-example-with-vm-context) + - [VM Creations](#vm-creations) + - [Built-in Host Modules and Plug-in Preregistrations](#built-in-host-modules-and-plug-in-preregistrations) + - [Host Module Registrations](#host-module-registrations) + - [WASM Registrations And Executions](#wasm-registrations-and-executions) + - [Asynchronous execution](#asynchronous-execution) + - [Instance Tracing](#instance-tracing) +- [WasmEdge Runtime](#wasmedge-runtime) + - [WASM Execution Example Step-By-Step](#wasm-execution-example-step-by-step) + - [Loader](#loader) + - [Validator](#validator) + - [Executor](#executor) + - [AST Module](#ast-module) + - [Store](#store) + - [Instances](#instances) + - [Host Functions](#host-functions) + - [Plug-ins](#plug-ins) +- [WasmEdge AOT Compiler](#wasmedge-aot-compiler) + - [Compilation Example](#compilation-example) + - [Compiler Options](#compiler-options) ## WasmEdge Installation @@ -70,27 +70,27 @@ After the installation of WasmEdge, the following guide can help you to test for 1. Prepare the test C file (and assumed saved as `test.c`): - ```c - #include - #include - int main() { - printf("WasmEdge version: %s\n", WasmEdge_VersionGet()); - return 0; - } - ``` + ```c + #include + #include + int main() { + printf("WasmEdge version: %s\n", WasmEdge_VersionGet()); + return 0; + } + ``` 2. Compile the file with `gcc` or `clang`. - ```bash - gcc test.c -lwasmedge - ``` + ```bash + gcc test.c -lwasmedge + ``` 3. Run and get the expected output. - ```bash - $ ./a.out - WasmEdge version: 0.12.0 - ``` + ```bash + $ ./a.out + WasmEdge version: 0.12.0 + ``` ### ABI Compatibility @@ -133,54 +133,54 @@ In WasmEdge, developers should convert the values to `WasmEdge_Value` objects th 1. Number types: `i32`, `i64`, `f32`, `f64`, and `v128` for the `SIMD` proposal - ```c - WasmEdge_Value Val; - Val = WasmEdge_ValueGenI32(123456); - printf("%d\n", WasmEdge_ValueGetI32(Val)); - /* Will print "123456" */ - Val = WasmEdge_ValueGenI64(1234567890123LL); - printf("%ld\n", WasmEdge_ValueGetI64(Val)); - /* Will print "1234567890123" */ - Val = WasmEdge_ValueGenF32(123.456f); - printf("%f\n", WasmEdge_ValueGetF32(Val)); - /* Will print "123.456001" */ - Val = WasmEdge_ValueGenF64(123456.123456789); - printf("%.10f\n", WasmEdge_ValueGetF64(Val)); - /* Will print "123456.1234567890" */ - ``` + ```c + WasmEdge_Value Val; + Val = WasmEdge_ValueGenI32(123456); + printf("%d\n", WasmEdge_ValueGetI32(Val)); + /* Will print "123456" */ + Val = WasmEdge_ValueGenI64(1234567890123LL); + printf("%ld\n", WasmEdge_ValueGetI64(Val)); + /* Will print "1234567890123" */ + Val = WasmEdge_ValueGenF32(123.456f); + printf("%f\n", WasmEdge_ValueGetF32(Val)); + /* Will print "123.456001" */ + Val = WasmEdge_ValueGenF64(123456.123456789); + printf("%.10f\n", WasmEdge_ValueGetF64(Val)); + /* Will print "123456.1234567890" */ + ``` 2. Reference types: `funcref` and `externref` for the `Reference-Types` proposal - ```c - WasmEdge_Value Val; - void *Ptr; - bool IsNull; - uint32_t Num = 10; - /* Generate a externref to NULL. */ - Val = WasmEdge_ValueGenNullRef(WasmEdge_RefType_ExternRef); - IsNull = WasmEdge_ValueIsNullRef(Val); - /* The `IsNull` will be `TRUE`. */ - Ptr = WasmEdge_ValueGetExternRef(Val); - /* The `Ptr` will be `NULL`. */ - - /* Get the function instance by creation or from module instance. */ - const WasmEdge_FunctionInstanceContext *FuncCxt = ...; - /* Generate a funcref with the given function instance context. */ - Val = WasmEdge_ValueGenFuncRef(FuncCxt); - const WasmEdge_FunctionInstanceContext *GotFuncCxt = - WasmEdge_ValueGetFuncRef(Val); - /* The `GotFuncCxt` will be the same as `FuncCxt`. */ - - /* Generate a externref to `Num`. */ - Val = WasmEdge_ValueGenExternRef(&Num); - Ptr = WasmEdge_ValueGetExternRef(Val); - /* The `Ptr` will be `&Num`. */ - printf("%u\n", *(uint32_t *)Ptr); - /* Will print "10" */ - Num += 55; - printf("%u\n", *(uint32_t *)Ptr); - /* Will print "65" */ - ``` + ```c + WasmEdge_Value Val; + void *Ptr; + bool IsNull; + uint32_t Num = 10; + /* Generate a externref to NULL. */ + Val = WasmEdge_ValueGenNullRef(WasmEdge_RefType_ExternRef); + IsNull = WasmEdge_ValueIsNullRef(Val); + /* The `IsNull` will be `TRUE`. */ + Ptr = WasmEdge_ValueGetExternRef(Val); + /* The `Ptr` will be `NULL`. */ + + /* Get the function instance by creation or from module instance. */ + const WasmEdge_FunctionInstanceContext *FuncCxt = ...; + /* Generate a funcref with the given function instance context. */ + Val = WasmEdge_ValueGenFuncRef(FuncCxt); + const WasmEdge_FunctionInstanceContext *GotFuncCxt = + WasmEdge_ValueGetFuncRef(Val); + /* The `GotFuncCxt` will be the same as `FuncCxt`. */ + + /* Generate a externref to `Num`. */ + Val = WasmEdge_ValueGenExternRef(&Num); + Ptr = WasmEdge_ValueGetExternRef(Val); + /* The `Ptr` will be `&Num`. */ + printf("%u\n", *(uint32_t *)Ptr); + /* Will print "10" */ + Num += 55; + printf("%u\n", *(uint32_t *)Ptr); + /* Will print "65" */ + ``` ### Strings @@ -188,50 +188,50 @@ The `WasmEdge_String` object is for the instance names when invoking a WASM func 1. Create a `WasmEdge_String` from a C string (`const char *` with NULL termination) or a buffer with length. - The content of the C string or buffer will be copied into the `WasmEdge_String` object. + The content of the C string or buffer will be copied into the `WasmEdge_String` object. - ```c - char Buf[4] = {50, 55, 60, 65}; - WasmEdge_String Str1 = WasmEdge_StringCreateByCString("test"); - WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); - /* The objects should be deleted by `WasmEdge_StringDelete()`. */ - WasmEdge_StringDelete(Str1); - WasmEdge_StringDelete(Str2); - ``` + ```c + char Buf[4] = {50, 55, 60, 65}; + WasmEdge_String Str1 = WasmEdge_StringCreateByCString("test"); + WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); + /* The objects should be deleted by `WasmEdge_StringDelete()`. */ + WasmEdge_StringDelete(Str1); + WasmEdge_StringDelete(Str2); + ``` 2. Wrap a `WasmEdge_String` to a buffer with length. - The content will not be copied, and the caller should guarantee the life cycle of the input buffer. + The content will not be copied, and the caller should guarantee the life cycle of the input buffer. - ```c - const char CStr[] = "test"; - WasmEdge_String Str = WasmEdge_StringWrap(CStr, 4); - /* The object should __NOT__ be deleted by `WasmEdge_StringDelete()`. */ - ``` + ```c + const char CStr[] = "test"; + WasmEdge_String Str = WasmEdge_StringWrap(CStr, 4); + /* The object should __NOT__ be deleted by `WasmEdge_StringDelete()`. */ + ``` 3. String comparison - ```c - const char CStr[] = "abcd"; - char Buf[4] = {0x61, 0x62, 0x63, 0x64}; - WasmEdge_String Str1 = WasmEdge_StringWrap(CStr, 4); - WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); - bool IsEq = WasmEdge_StringIsEqual(Str1, Str2); - /* The `IsEq` will be `TRUE`. */ - WasmEdge_StringDelete(Str2); - ``` + ```c + const char CStr[] = "abcd"; + char Buf[4] = {0x61, 0x62, 0x63, 0x64}; + WasmEdge_String Str1 = WasmEdge_StringWrap(CStr, 4); + WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); + bool IsEq = WasmEdge_StringIsEqual(Str1, Str2); + /* The `IsEq` will be `TRUE`. */ + WasmEdge_StringDelete(Str2); + ``` 4. Convert to C string - ```c - char Buf[256]; - WasmEdge_String Str = - WasmEdge_StringCreateByCString("test_wasmedge_string"); - uint32_t StrLength = WasmEdge_StringCopy(Str, Buf, sizeof(Buf)); - /* StrLength will be 20 */ - printf("String: %s\n", Buf); - /* Will print "test_wasmedge_string". */ - ``` + ```c + char Buf[256]; + WasmEdge_String Str = + WasmEdge_StringCreateByCString("test_wasmedge_string"); + uint32_t StrLength = WasmEdge_StringCopy(Str, Buf, sizeof(Buf)); + /* StrLength will be 20 */ + printf("String: %s\n", Buf); + /* Will print "test_wasmedge_string". */ + ``` ### Results @@ -275,204 +275,204 @@ The WASM data structures are used for creating instances or can be queried from 1. Limit - The `WasmEdge_Limit` struct is defined in the header: + The `WasmEdge_Limit` struct is defined in the header: - ```c - /// Struct of WASM limit. - typedef struct WasmEdge_Limit { - /// Boolean to describe has max value or not. - bool HasMax; - /// Boolean to describe is shared memory or not. - bool Shared; - /// Minimum value. - uint32_t Min; - /// Maximum value. Will be ignored if the `HasMax` is false. - uint32_t Max; - } WasmEdge_Limit; - ``` + ```c + /// Struct of WASM limit. + typedef struct WasmEdge_Limit { + /// Boolean to describe has max value or not. + bool HasMax; + /// Boolean to describe is shared memory or not. + bool Shared; + /// Minimum value. + uint32_t Min; + /// Maximum value. Will be ignored if the `HasMax` is false. + uint32_t Max; + } WasmEdge_Limit; + ``` - Developers can initialize the struct by assigning it's value, and the `Max` value is needed to be larger or equal to the `Min` value. The API `WasmEdge_LimitIsEqual()` is provided to compare with 2 `WasmEdge_Limit` structs. + Developers can initialize the struct by assigning it's value, and the `Max` value is needed to be larger or equal to the `Min` value. The API `WasmEdge_LimitIsEqual()` is provided to compare with 2 `WasmEdge_Limit` structs. 2. Function type context - The `Function Type` context is used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `Function Type` context APIs to get the parameter or return value types information. - - ```c - enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, - WasmEdge_ValType_I64}; - enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_FuncRef}; - WasmEdge_FunctionTypeContext *FuncTypeCxt = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - - enum WasmEdge_ValType Buf[16]; - uint32_t ParamLen = WasmEdge_FunctionTypeGetParametersLength(FuncTypeCxt); - /* `ParamLen` will be 2. */ - uint32_t GotParamLen = - WasmEdge_FunctionTypeGetParameters(FuncTypeCxt, Buf, 16); - /* `GotParamLen` will be 2, and `Buf[0]` and `Buf[1]` will be the same as - * `ParamList`. */ - uint32_t ReturnLen = WasmEdge_FunctionTypeGetReturnsLength(FuncTypeCxt); - /* `ReturnLen` will be 1. */ - uint32_t GotReturnLen = - WasmEdge_FunctionTypeGetReturns(FuncTypeCxt, Buf, 16); - /* `GotReturnLen` will be 1, and `Buf[0]` will be the same as `ReturnList`. - */ - - WasmEdge_FunctionTypeDelete(FuncTypeCxt); - ``` + The `Function Type` context is used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `Function Type` context APIs to get the parameter or return value types information. + + ```c + enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, + WasmEdge_ValType_I64}; + enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_FuncRef}; + WasmEdge_FunctionTypeContext *FuncTypeCxt = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + + enum WasmEdge_ValType Buf[16]; + uint32_t ParamLen = WasmEdge_FunctionTypeGetParametersLength(FuncTypeCxt); + /* `ParamLen` will be 2. */ + uint32_t GotParamLen = + WasmEdge_FunctionTypeGetParameters(FuncTypeCxt, Buf, 16); + /* `GotParamLen` will be 2, and `Buf[0]` and `Buf[1]` will be the same as + * `ParamList`. */ + uint32_t ReturnLen = WasmEdge_FunctionTypeGetReturnsLength(FuncTypeCxt); + /* `ReturnLen` will be 1. */ + uint32_t GotReturnLen = + WasmEdge_FunctionTypeGetReturns(FuncTypeCxt, Buf, 16); + /* `GotReturnLen` will be 1, and `Buf[0]` will be the same as `ReturnList`. + */ + + WasmEdge_FunctionTypeDelete(FuncTypeCxt); + ``` 3. Table type context - The `Table Type` context is used for `Table` instance creation or getting information from `Table` instances. + The `Table Type` context is used for `Table` instance creation or getting information from `Table` instances. - ```c - WasmEdge_Limit TabLim = { - .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - WasmEdge_TableTypeContext *TabTypeCxt = - WasmEdge_TableTypeCreate(WasmEdge_RefType_ExternRef, TabLim); + ```c + WasmEdge_Limit TabLim = { + .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + WasmEdge_TableTypeContext *TabTypeCxt = + WasmEdge_TableTypeCreate(WasmEdge_RefType_ExternRef, TabLim); - enum WasmEdge_RefType GotRefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); - /* `GotRefType` will be WasmEdge_RefType_ExternRef. */ - WasmEdge_Limit GotTabLim = WasmEdge_TableTypeGetLimit(TabTypeCxt); - /* `GotTabLim` will be the same value as `TabLim`. */ + enum WasmEdge_RefType GotRefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); + /* `GotRefType` will be WasmEdge_RefType_ExternRef. */ + WasmEdge_Limit GotTabLim = WasmEdge_TableTypeGetLimit(TabTypeCxt); + /* `GotTabLim` will be the same value as `TabLim`. */ - WasmEdge_TableTypeDelete(TabTypeCxt); - ``` + WasmEdge_TableTypeDelete(TabTypeCxt); + ``` 4. Memory type context - The `Memory Type` context is used for `Memory` instance creation or getting information from `Memory` instances. + The `Memory Type` context is used for `Memory` instance creation or getting information from `Memory` instances. - ```c - WasmEdge_Limit MemLim = { - .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLim); + ```c + WasmEdge_Limit MemLim = { + .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLim); - WasmEdge_Limit GotMemLim = WasmEdge_MemoryTypeGetLimit(MemTypeCxt); - /* `GotMemLim` will be the same value as `MemLim`. */ + WasmEdge_Limit GotMemLim = WasmEdge_MemoryTypeGetLimit(MemTypeCxt); + /* `GotMemLim` will be the same value as `MemLim`. */ - WasmEdge_MemoryTypeDelete(MemTypeCxt) - ``` + WasmEdge_MemoryTypeDelete(MemTypeCxt) + ``` 5. Global type context - The `Global Type` context is used for `Global` instance creation or getting information from `Global` instances. + The `Global Type` context is used for `Global` instance creation or getting information from `Global` instances. - ```c - WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate( - WasmEdge_ValType_F64, WasmEdge_Mutability_Var); + ```c + WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate( + WasmEdge_ValType_F64, WasmEdge_Mutability_Var); - WasmEdge_ValType GotValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); - /* `GotValType` will be WasmEdge_ValType_F64. */ - WasmEdge_Mutability GotValMut = - WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); - /* `GotValMut` will be WasmEdge_Mutability_Var. */ + WasmEdge_ValType GotValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); + /* `GotValType` will be WasmEdge_ValType_F64. */ + WasmEdge_Mutability GotValMut = + WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); + /* `GotValMut` will be WasmEdge_Mutability_Var. */ - WasmEdge_GlobalTypeDelete(GlobTypeCxt); - ``` + WasmEdge_GlobalTypeDelete(GlobTypeCxt); + ``` 6. Import type context - The `Import Type` context is used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `Import Type` context. The details about querying `Import Type` contexts will be introduced in the [AST Module](#ast-module). - - ```c - WasmEdge_ASTModuleContext *ASTCxt = ...; - /* - * Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the - * result of loading a WASM file. - */ - const WasmEdge_ImportTypeContext *ImpType = ...; - /* Assume that `ImpType` is queried from the `ASTCxt` for the import. */ - - enum WasmEdge_ExternalType ExtType = - WasmEdge_ImportTypeGetExternalType(ImpType); - /* - * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, - * `WasmEdge_ExternalType_Table`, `WasmEdge_ExternalType_Memory`, or - * `WasmEdge_ExternalType_Global`. - */ - WasmEdge_String ModName = WasmEdge_ImportTypeGetModuleName(ImpType); - WasmEdge_String ExtName = WasmEdge_ImportTypeGetExternalName(ImpType); - /* - * The `ModName` and `ExtName` should not be destroyed and the string - * buffers are binded into the `ASTCxt`. - */ - const WasmEdge_FunctionTypeContext *FuncTypeCxt = - WasmEdge_ImportTypeGetFunctionType(ASTCxt, ImpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Function`, the - * `FuncTypeCxt` will be NULL. - */ - const WasmEdge_TableTypeContext *TabTypeCxt = - WasmEdge_ImportTypeGetTableType(ASTCxt, ImpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` - * will be NULL. - */ - const WasmEdge_MemoryTypeContext *MemTypeCxt = - WasmEdge_ImportTypeGetMemoryType(ASTCxt, ImpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` - * will be NULL. - */ - const WasmEdge_GlobalTypeContext *GlobTypeCxt = - WasmEdge_ImportTypeGetGlobalType(ASTCxt, ImpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` - * will be NULL. - */ - ``` + The `Import Type` context is used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `Import Type` context. The details about querying `Import Type` contexts will be introduced in the [AST Module](#ast-module). + + ```c + WasmEdge_ASTModuleContext *ASTCxt = ...; + /* + * Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the + * result of loading a WASM file. + */ + const WasmEdge_ImportTypeContext *ImpType = ...; + /* Assume that `ImpType` is queried from the `ASTCxt` for the import. */ + + enum WasmEdge_ExternalType ExtType = + WasmEdge_ImportTypeGetExternalType(ImpType); + /* + * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, + * `WasmEdge_ExternalType_Table`, `WasmEdge_ExternalType_Memory`, or + * `WasmEdge_ExternalType_Global`. + */ + WasmEdge_String ModName = WasmEdge_ImportTypeGetModuleName(ImpType); + WasmEdge_String ExtName = WasmEdge_ImportTypeGetExternalName(ImpType); + /* + * The `ModName` and `ExtName` should not be destroyed and the string + * buffers are binded into the `ASTCxt`. + */ + const WasmEdge_FunctionTypeContext *FuncTypeCxt = + WasmEdge_ImportTypeGetFunctionType(ASTCxt, ImpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Function`, the + * `FuncTypeCxt` will be NULL. + */ + const WasmEdge_TableTypeContext *TabTypeCxt = + WasmEdge_ImportTypeGetTableType(ASTCxt, ImpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` + * will be NULL. + */ + const WasmEdge_MemoryTypeContext *MemTypeCxt = + WasmEdge_ImportTypeGetMemoryType(ASTCxt, ImpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` + * will be NULL. + */ + const WasmEdge_GlobalTypeContext *GlobTypeCxt = + WasmEdge_ImportTypeGetGlobalType(ASTCxt, ImpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` + * will be NULL. + */ + ``` 7. Export type context - The `Export Type` context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `Export Type` contexts will be introduced in the [AST Module](#ast-module). - - ```c - WasmEdge_ASTModuleContext *ASTCxt = ...; - /* - * Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the - * result of loading a WASM file. - */ - const WasmEdge_ExportTypeContext *ExpType = ...; - /* Assume that `ExpType` is queried from the `ASTCxt` for the export. */ - - enum WasmEdge_ExternalType ExtType = - WasmEdge_ExportTypeGetExternalType(ExpType); - /* - * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, - * `WasmEdge_ExternalType_Table`, `WasmEdge_ExternalType_Memory`, or - * `WasmEdge_ExternalType_Global`. - */ - WasmEdge_String ExtName = WasmEdge_ExportTypeGetExternalName(ExpType); - /* - * The `ExtName` should not be destroyed and the string buffer is binded - * into the `ASTCxt`. - */ - const WasmEdge_FunctionTypeContext *FuncTypeCxt = - WasmEdge_ExportTypeGetFunctionType(ASTCxt, ExpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Function`, the - * `FuncTypeCxt` will be NULL. - */ - const WasmEdge_TableTypeContext *TabTypeCxt = - WasmEdge_ExportTypeGetTableType(ASTCxt, ExpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` - * will be NULL. - */ - const WasmEdge_MemoryTypeContext *MemTypeCxt = - WasmEdge_ExportTypeGetMemoryType(ASTCxt, ExpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` - * will be NULL. - */ - const WasmEdge_GlobalTypeContext *GlobTypeCxt = - WasmEdge_ExportTypeGetGlobalType(ASTCxt, ExpType); - /* - * If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` - * will be NULL. - */ - ``` + The `Export Type` context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `Export Type` contexts will be introduced in the [AST Module](#ast-module). + + ```c + WasmEdge_ASTModuleContext *ASTCxt = ...; + /* + * Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the + * result of loading a WASM file. + */ + const WasmEdge_ExportTypeContext *ExpType = ...; + /* Assume that `ExpType` is queried from the `ASTCxt` for the export. */ + + enum WasmEdge_ExternalType ExtType = + WasmEdge_ExportTypeGetExternalType(ExpType); + /* + * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, + * `WasmEdge_ExternalType_Table`, `WasmEdge_ExternalType_Memory`, or + * `WasmEdge_ExternalType_Global`. + */ + WasmEdge_String ExtName = WasmEdge_ExportTypeGetExternalName(ExpType); + /* + * The `ExtName` should not be destroyed and the string buffer is binded + * into the `ASTCxt`. + */ + const WasmEdge_FunctionTypeContext *FuncTypeCxt = + WasmEdge_ExportTypeGetFunctionType(ASTCxt, ExpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Function`, the + * `FuncTypeCxt` will be NULL. + */ + const WasmEdge_TableTypeContext *TabTypeCxt = + WasmEdge_ExportTypeGetTableType(ASTCxt, ExpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` + * will be NULL. + */ + const WasmEdge_MemoryTypeContext *MemTypeCxt = + WasmEdge_ExportTypeGetMemoryType(ASTCxt, ExpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` + * will be NULL. + */ + const WasmEdge_GlobalTypeContext *GlobTypeCxt = + WasmEdge_ExportTypeGetGlobalType(ASTCxt, ExpType); + /* + * If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` + * will be NULL. + */ + ``` ### Async @@ -480,60 +480,60 @@ After calling the [asynchronous execution APIs](#asynchronous-execution), develo 1. Wait for the asynchronous execution - Developers can wait the execution until finished: - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution. */ - WasmEdge_AsyncWait(Async); - WasmEdge_AsyncDelete(Async); - ``` - - Or developers can wait for a time limit. If the time limit exceeded, developers can choose to cancel the execution. For the interruptible execution in AOT mode, developers should set `TRUE` through the `WasmEdge_ConfigureCompilerSetInterruptible()` API into the configure context for the AOT compiler. - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution for 1 second. */ - bool IsEnd = WasmEdge_AsyncWaitFor(Async, 1000); - if (IsEnd) { - /* The execution finished. Developers can get the result. */ - WasmEdge_Result Res = WasmEdge_AsyncGet(/* ... Ignored */); - } else { - /* - * The time limit exceeded. Developers can keep waiting or cancel the - * execution. - */ - WasmEdge_AsyncCancel(Async); - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, 0, NULL); - /* The result error code will be `WasmEdge_ErrCode_Interrupted`. */ - } - WasmEdge_AsyncDelete(Async); - ``` + Developers can wait the execution until finished: + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution. */ + WasmEdge_AsyncWait(Async); + WasmEdge_AsyncDelete(Async); + ``` + + Or developers can wait for a time limit. If the time limit exceeded, developers can choose to cancel the execution. For the interruptible execution in AOT mode, developers should set `TRUE` through the `WasmEdge_ConfigureCompilerSetInterruptible()` API into the configure context for the AOT compiler. + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution for 1 second. */ + bool IsEnd = WasmEdge_AsyncWaitFor(Async, 1000); + if (IsEnd) { + /* The execution finished. Developers can get the result. */ + WasmEdge_Result Res = WasmEdge_AsyncGet(/* ... Ignored */); + } else { + /* + * The time limit exceeded. Developers can keep waiting or cancel the + * execution. + */ + WasmEdge_AsyncCancel(Async); + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, 0, NULL); + /* The result error code will be `WasmEdge_ErrCode_Interrupted`. */ + } + WasmEdge_AsyncDelete(Async); + ``` 2. Get the execution result of the asynchronous execution - Developers can use the `WasmEdge_AsyncGetReturnsLength()` API to get the return value list length. This function will block and wait for the execution. If the execution has finished, this function will return the length immediately. If the execution failed, this function will return `0`. This function can help the developers to create the buffer to get the return values. If developers have already known the buffer length, they can skip this function and use the `WasmEdge_AsyncGet()` API to get the result. - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* - * Blocking and waiting for the execution and get the return value list - * length. - */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - WasmEdge_AsyncDelete(Async); - ``` - - The `WasmEdge_AsyncGet()` API will block and wait for the execution. If the execution has finished, this function will fill the return values into the buffer and return the execution result immediately. - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution and get the return values. */ - const uint32_t BUF_LEN = 256; - WasmEdge_Value Buf[BUF_LEN]; - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Buf, BUF_LEN); - WasmEdge_AsyncDelete(Async); - ``` + Developers can use the `WasmEdge_AsyncGetReturnsLength()` API to get the return value list length. This function will block and wait for the execution. If the execution has finished, this function will return the length immediately. If the execution failed, this function will return `0`. This function can help the developers to create the buffer to get the return values. If developers have already known the buffer length, they can skip this function and use the `WasmEdge_AsyncGet()` API to get the result. + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* + * Blocking and waiting for the execution and get the return value list + * length. + */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + WasmEdge_AsyncDelete(Async); + ``` + + The `WasmEdge_AsyncGet()` API will block and wait for the execution. If the execution has finished, this function will fill the return values into the buffer and return the execution result immediately. + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution and get the return values. */ + const uint32_t BUF_LEN = 256; + WasmEdge_Value Buf[BUF_LEN]; + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Buf, BUF_LEN); + WasmEdge_AsyncDelete(Async); + ``` ### Configurations @@ -541,190 +541,190 @@ The configuration context, `WasmEdge_ConfigureContext`, manages the configuratio 1. Proposals - WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` context. - - ```c - enum WasmEdge_Proposal { - WasmEdge_Proposal_ImportExportMutGlobals = 0, - WasmEdge_Proposal_NonTrapFloatToIntConversions, - WasmEdge_Proposal_SignExtensionOperators, - WasmEdge_Proposal_MultiValue, - WasmEdge_Proposal_BulkMemoryOperations, - WasmEdge_Proposal_ReferenceTypes, - WasmEdge_Proposal_SIMD, - WasmEdge_Proposal_TailCall, - WasmEdge_Proposal_MultiMemories, - WasmEdge_Proposal_Annotations, - WasmEdge_Proposal_Memory64, - WasmEdge_Proposal_ExceptionHandling, - WasmEdge_Proposal_ExtendedConst, - WasmEdge_Proposal_Threads, - WasmEdge_Proposal_FunctionReferences - }; - ``` - - Developers can add or remove the proposals into the `Configure` context. - - ```c - /* - * By default, the following proposals have turned on initially: - * * Import/Export of mutable globals - * * Non-trapping float-to-int conversions - * * Sign-extension operators - * * Multi-value returns - * * Bulk memory operations - * * Reference types - * * Fixed-width SIMD - * - * For the current WasmEdge version, the following proposals are supported - * (turned off by default) additionally: - * * Tail-call - * * Multiple memories - * * Extended-const - * * Threads - */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddProposal(ConfCxt, WasmEdge_Proposal_MultiMemories); - WasmEdge_ConfigureRemoveProposal(ConfCxt, WasmEdge_Proposal_ReferenceTypes); - bool IsBulkMem = WasmEdge_ConfigureHasProposal( - ConfCxt, WasmEdge_Proposal_BulkMemoryOperations); - /* The `IsBulkMem` will be `TRUE`. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` context. + + ```c + enum WasmEdge_Proposal { + WasmEdge_Proposal_ImportExportMutGlobals = 0, + WasmEdge_Proposal_NonTrapFloatToIntConversions, + WasmEdge_Proposal_SignExtensionOperators, + WasmEdge_Proposal_MultiValue, + WasmEdge_Proposal_BulkMemoryOperations, + WasmEdge_Proposal_ReferenceTypes, + WasmEdge_Proposal_SIMD, + WasmEdge_Proposal_TailCall, + WasmEdge_Proposal_MultiMemories, + WasmEdge_Proposal_Annotations, + WasmEdge_Proposal_Memory64, + WasmEdge_Proposal_ExceptionHandling, + WasmEdge_Proposal_ExtendedConst, + WasmEdge_Proposal_Threads, + WasmEdge_Proposal_FunctionReferences + }; + ``` + + Developers can add or remove the proposals into the `Configure` context. + + ```c + /* + * By default, the following proposals have turned on initially: + * * Import/Export of mutable globals + * * Non-trapping float-to-int conversions + * * Sign-extension operators + * * Multi-value returns + * * Bulk memory operations + * * Reference types + * * Fixed-width SIMD + * + * For the current WasmEdge version, the following proposals are supported + * (turned off by default) additionally: + * * Tail-call + * * Multiple memories + * * Extended-const + * * Threads + */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddProposal(ConfCxt, WasmEdge_Proposal_MultiMemories); + WasmEdge_ConfigureRemoveProposal(ConfCxt, WasmEdge_Proposal_ReferenceTypes); + bool IsBulkMem = WasmEdge_ConfigureHasProposal( + ConfCxt, WasmEdge_Proposal_BulkMemoryOperations); + /* The `IsBulkMem` will be `TRUE`. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 2. Host registrations - This configuration is used for the `VM` context to turn on the `WASI` supports and only effective in `VM` contexts. + This configuration is used for the `VM` context to turn on the `WASI` supports and only effective in `VM` contexts. - The element of this enum is reserved for the other built-in host functions (such as `wasi-socket`) in the future. + The element of this enum is reserved for the other built-in host functions (such as `wasi-socket`) in the future. - ```c - enum WasmEdge_HostRegistration { - WasmEdge_HostRegistration_Wasi = 0 - }; - ``` + ```c + enum WasmEdge_HostRegistration { + WasmEdge_HostRegistration_Wasi = 0 + }; + ``` - The details will be introduced in the [preregistrations of VM context](#built-in-host-modules-and-plug-in-preregistrations). + The details will be introduced in the [preregistrations of VM context](#built-in-host-modules-and-plug-in-preregistrations). - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - bool IsHostWasi = WasmEdge_ConfigureHasHostRegistration( - ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The `IsHostWasi` will be `FALSE`. */ - WasmEdge_ConfigureAddHostRegistration(ConfCxt, - WasmEdge_HostRegistration_Wasi); - IsHostWasi = WasmEdge_ConfigureHasHostRegistration( - ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The `IsHostWasi` will be `TRUE`. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + bool IsHostWasi = WasmEdge_ConfigureHasHostRegistration( + ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The `IsHostWasi` will be `FALSE`. */ + WasmEdge_ConfigureAddHostRegistration(ConfCxt, + WasmEdge_HostRegistration_Wasi); + IsHostWasi = WasmEdge_ConfigureHasHostRegistration( + ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The `IsHostWasi` will be `TRUE`. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 3. Maximum memory pages - Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` contexts. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - uint32_t PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); - /* By default, the maximum memory page size is 65536. */ - WasmEdge_ConfigureSetMaxMemoryPage(ConfCxt, 1024); - /* - * Limit the memory size of each memory instance with not larger than 1024 - * pages (64 MiB). - */ - PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); - /* The `PageSize` will be 1024. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` contexts. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + uint32_t PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); + /* By default, the maximum memory page size is 65536. */ + WasmEdge_ConfigureSetMaxMemoryPage(ConfCxt, 1024); + /* + * Limit the memory size of each memory instance with not larger than 1024 + * pages (64 MiB). + */ + PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); + /* The `PageSize` will be 1024. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 4. Forcibly interpreter mode - If developers want to execute the WASM file or the AOT compiled WASM in interpreter mode forcibly, they can turn on the configuration. + If developers want to execute the WASM file or the AOT compiled WASM in interpreter mode forcibly, they can turn on the configuration. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - bool IsForceInterp = WasmEdge_ConfigureIsForceInterpreter(ConfCxt); - /* By default, The `IsForceInterp` will be `FALSE`. */ - WasmEdge_ConfigureSetForceInterpreter(ConfCxt, TRUE); - IsForceInterp = WasmEdge_ConfigureIsForceInterpreter(ConfCxt); - /* The `IsForceInterp` will be `TRUE`. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + bool IsForceInterp = WasmEdge_ConfigureIsForceInterpreter(ConfCxt); + /* By default, The `IsForceInterp` will be `FALSE`. */ + WasmEdge_ConfigureSetForceInterpreter(ConfCxt, TRUE); + IsForceInterp = WasmEdge_ConfigureIsForceInterpreter(ConfCxt); + /* The `IsForceInterp` will be `TRUE`. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 5. AOT compiler options - The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. - - ```c - enum WasmEdge_CompilerOptimizationLevel { - // Disable as many optimizations as possible. - WasmEdge_CompilerOptimizationLevel_O0 = 0, - // Optimize quickly without destroying debuggability. - WasmEdge_CompilerOptimizationLevel_O1, - // Optimize for fast execution as much as possible without triggering - // significant incremental compile time or code size growth. - WasmEdge_CompilerOptimizationLevel_O2, - // Optimize for fast execution as much as possible. - WasmEdge_CompilerOptimizationLevel_O3, - // Optimize for small code size as much as possible without triggering - // significant incremental compile time or execution time slowdowns. - WasmEdge_CompilerOptimizationLevel_Os, - // Optimize for small code size as much as possible. - WasmEdge_CompilerOptimizationLevel_Oz - }; - - enum WasmEdge_CompilerOutputFormat { - // Native dynamic library format. - WasmEdge_CompilerOutputFormat_Native = 0, - // WebAssembly with AOT compiled codes in custom section. - WasmEdge_CompilerOutputFormat_Wasm - }; - ``` - - These configurations are only effective in `Compiler` contexts. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - /* By default, the optimization level is O3. */ - WasmEdge_ConfigureCompilerSetOptimizationLevel( - ConfCxt, WasmEdge_CompilerOptimizationLevel_O2); - /* By default, the output format is universal WASM. */ - WasmEdge_ConfigureCompilerSetOutputFormat( - ConfCxt, WasmEdge_CompilerOutputFormat_Native); - /* By default, the dump IR is `FALSE`. */ - WasmEdge_ConfigureCompilerSetDumpIR(ConfCxt, TRUE); - /* By default, the generic binary is `FALSE`. */ - WasmEdge_ConfigureCompilerSetGenericBinary(ConfCxt, TRUE); - /* By default, the interruptible is `FALSE`. - /* Set this option to `TRUE` to support the interruptible execution in AOT - mode. */ - WasmEdge_ConfigureCompilerSetInterruptible(ConfCxt, TRUE); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. + + ```c + enum WasmEdge_CompilerOptimizationLevel { + // Disable as many optimizations as possible. + WasmEdge_CompilerOptimizationLevel_O0 = 0, + // Optimize quickly without destroying debuggability. + WasmEdge_CompilerOptimizationLevel_O1, + // Optimize for fast execution as much as possible without triggering + // significant incremental compile time or code size growth. + WasmEdge_CompilerOptimizationLevel_O2, + // Optimize for fast execution as much as possible. + WasmEdge_CompilerOptimizationLevel_O3, + // Optimize for small code size as much as possible without triggering + // significant incremental compile time or execution time slowdowns. + WasmEdge_CompilerOptimizationLevel_Os, + // Optimize for small code size as much as possible. + WasmEdge_CompilerOptimizationLevel_Oz + }; + + enum WasmEdge_CompilerOutputFormat { + // Native dynamic library format. + WasmEdge_CompilerOutputFormat_Native = 0, + // WebAssembly with AOT compiled codes in custom section. + WasmEdge_CompilerOutputFormat_Wasm + }; + ``` + + These configurations are only effective in `Compiler` contexts. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + /* By default, the optimization level is O3. */ + WasmEdge_ConfigureCompilerSetOptimizationLevel( + ConfCxt, WasmEdge_CompilerOptimizationLevel_O2); + /* By default, the output format is universal WASM. */ + WasmEdge_ConfigureCompilerSetOutputFormat( + ConfCxt, WasmEdge_CompilerOutputFormat_Native); + /* By default, the dump IR is `FALSE`. */ + WasmEdge_ConfigureCompilerSetDumpIR(ConfCxt, TRUE); + /* By default, the generic binary is `FALSE`. */ + WasmEdge_ConfigureCompilerSetGenericBinary(ConfCxt, TRUE); + /* By default, the interruptible is `FALSE`. + /* Set this option to `TRUE` to support the interruptible execution in AOT + mode. */ + WasmEdge_ConfigureCompilerSetInterruptible(ConfCxt, TRUE); + WasmEdge_ConfigureDelete(ConfCxt); + ``` 6. Statistics options - The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` contexts. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - /* - * By default, the instruction counting is `FALSE` when running a - * compiled-WASM or a pure-WASM. - */ - WasmEdge_ConfigureStatisticsSetInstructionCounting(ConfCxt, TRUE); - /* - * By default, the cost measurement is `FALSE` when running a compiled-WASM - * or a pure-WASM. - */ - WasmEdge_ConfigureStatisticsSetCostMeasuring(ConfCxt, TRUE); - /* - * By default, the time measurement is `FALSE` when running a compiled-WASM - * or a pure-WASM. - */ - WasmEdge_ConfigureStatisticsSetTimeMeasuring(ConfCxt, TRUE); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` contexts. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + /* + * By default, the instruction counting is `FALSE` when running a + * compiled-WASM or a pure-WASM. + */ + WasmEdge_ConfigureStatisticsSetInstructionCounting(ConfCxt, TRUE); + /* + * By default, the cost measurement is `FALSE` when running a compiled-WASM + * or a pure-WASM. + */ + WasmEdge_ConfigureStatisticsSetCostMeasuring(ConfCxt, TRUE); + /* + * By default, the time measurement is `FALSE` when running a compiled-WASM + * or a pure-WASM. + */ + WasmEdge_ConfigureStatisticsSetTimeMeasuring(ConfCxt, TRUE); + WasmEdge_ConfigureDelete(ConfCxt); + ``` ### Statistics @@ -734,50 +734,50 @@ Before using statistics, the statistics configuration must be set. Otherwise, th 1. Instruction counter - The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` context from the `VM` context, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. + The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` context from the `VM` context, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. - ```c - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* - * ... - * After running the WASM functions with the `Statistics` context - */ - uint32_t Count = WasmEdge_StatisticsGetInstrCount(StatCxt); - double IPS = WasmEdge_StatisticsGetInstrPerSecond(StatCxt); - WasmEdge_StatisticsDelete(StatCxt); - ``` + ```c + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* + * ... + * After running the WASM functions with the `Statistics` context + */ + uint32_t Count = WasmEdge_StatisticsGetInstrCount(StatCxt); + double IPS = WasmEdge_StatisticsGetInstrPerSecond(StatCxt); + WasmEdge_StatisticsDelete(StatCxt); + ``` 2. Cost table - The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` context. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. - - ```c - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - uint64_t CostTable[16] = { - 0, 0, - 10, /* 0x02: Block */ - 11, /* 0x03: Loop */ - 12, /* 0x04: If */ - 12, /* 0x05: Else */ - 0, 0, 0, 0, 0, 0, - 20, /* 0x0C: Br */ - 21, /* 0x0D: Br_if */ - 22, /* 0x0E: Br_table */ - 0 - }; - /* - * Developers can set the costs of each instruction. The value not - * covered will be 0. - */ - WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); - WasmEdge_StatisticsSetCostLimit(StatCxt, 5000000); - /* - * ... - * After running the WASM functions with the `Statistics` context - */ - uint64_t Cost = WasmEdge_StatisticsGetTotalCost(StatCxt); - WasmEdge_StatisticsDelete(StatCxt); - ``` + The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` context. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. + + ```c + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + uint64_t CostTable[16] = { + 0, 0, + 10, /* 0x02: Block */ + 11, /* 0x03: Loop */ + 12, /* 0x04: If */ + 12, /* 0x05: Else */ + 0, 0, 0, 0, 0, 0, + 20, /* 0x0C: Br */ + 21, /* 0x0D: Br_if */ + 22, /* 0x0E: Br_table */ + 0 + }; + /* + * Developers can set the costs of each instruction. The value not + * covered will be 0. + */ + WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); + WasmEdge_StatisticsSetCostLimit(StatCxt, 5000000); + /* + * ... + * After running the WASM functions with the `Statistics` context + */ + uint64_t Cost = WasmEdge_StatisticsGetTotalCost(StatCxt); + WasmEdge_StatisticsDelete(StatCxt); + ``` ### Tools Driver @@ -829,172 +829,172 @@ The following shows the example of running the WASM for getting the Fibonacci. T 1. Run WASM functions rapidly - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - /* Create the configure context and add the WASI support. */ - /* This step is not necessary unless you need WASI support. */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, - WasmEdge_HostRegistration_Wasi); - /* The configure and store context to the VM creation can be NULL. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(5)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromFile( - VMCxt, "fibonacci.wasm", FuncName, Params, 1, Returns, 1); - /* - * Developers can run the WASM binary from buffer with the - * `WasmEdge_VMRunWasmFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMRunWasmFromASTModule()` API. - */ - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 5th Fibonacci number is 8 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the result: 8 - ``` + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + /* Create the configure context and add the WASI support. */ + /* This step is not necessary unless you need WASI support. */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, + WasmEdge_HostRegistration_Wasi); + /* The configure and store context to the VM creation can be NULL. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(5)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromFile( + VMCxt, "fibonacci.wasm", FuncName, Params, 1, Returns, 1); + /* + * Developers can run the WASM binary from buffer with the + * `WasmEdge_VMRunWasmFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMRunWasmFromASTModule()` API. + */ + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` + + Then you can compile and run: (the 5th Fibonacci number is 8 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the result: 8 + ``` 2. Instantiate and run WASM functions manually - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: - - ```c - #include - #include - int main() { - /* Create the configure context and add the WASI support. */ - /* This step is not necessary unless you need the WASI support. */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, - WasmEdge_HostRegistration_Wasi); - /* The configure and store context to the VM creation can be NULL. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(10)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Step 1: Load WASM file. */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - /* - * Developers can load the WASM binary from buffer with the - * `WasmEdge_VMLoadWasmFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMLoadWasmFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 2: Validate the WASM module. */ - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 3: Instantiate the WASM module. */ - Res = WasmEdge_VMInstantiate(VMCxt); - /* - * Developers can load, validate, and instantiate another WASM module to - * replace the instantiated one. In this case, the old module will be - * cleared, but the registered modules are still kept. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", - WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* - * Step 4: Execute WASM functions. You can execute functions repeatedly - * after instantiation. - */ - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 1, Returns, 1); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 10th Fibonacci number is 89 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the result: 89 - ``` - - The following graph explains the status of the `VM` context. - - ```text - |========================| - |------->| VM: Initiated | - | |========================| - | | - | LoadWasm - | | - | v - | |========================| - |--------| VM: Loaded |<-------| - | |========================| | - | | ^ | - | Validate | | - Cleanup | LoadWasm | - | v | LoadWasm - | |========================| | - |--------| VM: Validated | | - | |========================| | - | | ^ | - | Instantiate | | - | | RegisterModule | - | v | | - | |========================| | - |--------| VM: Instantiated |--------| - |========================| - | ^ - | | - -------------- - Instantiate, Execute, ExecuteRegistered - ``` - - The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or module instances in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```c + #include + #include + int main() { + /* Create the configure context and add the WASI support. */ + /* This step is not necessary unless you need the WASI support. */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, + WasmEdge_HostRegistration_Wasi); + /* The configure and store context to the VM creation can be NULL. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(10)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Step 1: Load WASM file. */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + /* + * Developers can load the WASM binary from buffer with the + * `WasmEdge_VMLoadWasmFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMLoadWasmFromASTModule()` API. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 2: Validate the WASM module. */ + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 3: Instantiate the WASM module. */ + Res = WasmEdge_VMInstantiate(VMCxt); + /* + * Developers can load, validate, and instantiate another WASM module to + * replace the instantiated one. In this case, the old module will be + * cleared, but the registered modules are still kept. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", + WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* + * Step 4: Execute WASM functions. You can execute functions repeatedly + * after instantiation. + */ + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 1, Returns, 1); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` + + Then you can compile and run: (the 10th Fibonacci number is 89 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the result: 89 + ``` + + The following graph explains the status of the `VM` context. + + ```text + |========================| + |------->| VM: Initiated | + | |========================| + | | + | LoadWasm + | | + | v + | |========================| + |--------| VM: Loaded |<-------| + | |========================| | + | | ^ | + | Validate | | + Cleanup | LoadWasm | + | v | LoadWasm + | |========================| | + |--------| VM: Validated | | + | |========================| | + | | ^ | + | Instantiate | | + | | RegisterModule | + | v | | + | |========================| | + |--------| VM: Instantiated |--------| + |========================| + | ^ + | | + -------------- + Instantiate, Execute, ExecuteRegistered + ``` + + The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or module instances in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. ### VM Creations @@ -1025,87 +1025,87 @@ WasmEdge provides the following built-in host modules and plug-in pre-registrati 1. [WASI (WebAssembly System Interface)](https://github.com/WebAssembly/WASI) - Developers can turn on the WASI support for VM in the `Configure` context. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, - WasmEdge_HostRegistration_Wasi); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - WasmEdge_ConfigureDelete(ConfCxt); - /* - * The following API can retrieve the built-in registered module instances - * from the VM context. - */ - /* - * This API will return `NULL` if the corresponding configuration is not set - * when creating the VM context. - */ - WasmEdge_ModuleInstanceContext *WasiModule = - WasmEdge_VMGetImportModuleContext(VMCxt, - WasmEdge_HostRegistration_Wasi); - /* Initialize the WASI. */ - WasmEdge_ModuleInstanceInitWASI(WasiModule, /* ... ignored */); - WasmEdge_VMDelete(VMCxt); - ``` - - And also can create the WASI module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + Developers can turn on the WASI support for VM in the `Configure` context. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, + WasmEdge_HostRegistration_Wasi); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + WasmEdge_ConfigureDelete(ConfCxt); + /* + * The following API can retrieve the built-in registered module instances + * from the VM context. + */ + /* + * This API will return `NULL` if the corresponding configuration is not set + * when creating the VM context. + */ + WasmEdge_ModuleInstanceContext *WasiModule = + WasmEdge_VMGetImportModuleContext(VMCxt, + WasmEdge_HostRegistration_Wasi); + /* Initialize the WASI. */ + WasmEdge_ModuleInstanceInitWASI(WasiModule, /* ... ignored */); + WasmEdge_VMDelete(VMCxt); + ``` + + And also can create the WASI module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 2. Plug-ins - There may be several plug-ins in the default plug-in paths if users [installed WasmEdge plug-ins by the installer](/contribute/installer.md#plugins). - - Before using the plug-ins, developers should [load the plug-ins from paths](#load-plug-ins-from-paths). - - The `VM` context will automatically create and register the module of the loaded plug-ins when creation. Furthermore, the following host modules will be mocked if the plug-in not loaded: - - - `wasi_ephemeral_crypto_asymmetric_common` (for the `WASI-Crypto`) - - `wasi_ephemeral_crypto_common` (for the `WASI-Crypto`) - - `wasi_ephemeral_crypto_kx` (for the `WASI-Crypto`) - - `wasi_ephemeral_crypto_signatures` (for the `WASI-Crypto`) - - `wasi_ephemeral_crypto_symmetric` (for the `WASI-Crypto`) - - `wasi_ephemeral_nn` - - `wasi_snapshot_preview1` - - `wasmedge_httpsreq` - - `wasmedge_process` - - When the WASM want to invoke these host functions but the corresponding plug-in not installed, WasmEdge will print the error message and return an error. - - ```c - /* Load the plug-ins in the default paths first. */ - WasmEdge_PluginLoadWithDefaultPaths(); - /* Create the configure context and add the WASI configuration. */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, - WasmEdge_HostRegistration_Wasi); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - WasmEdge_ConfigureDelete(ConfCxt); - /* - * The following API can retrieve the registered modules in the VM context, - * includes the built-in WASI and the plug-ins. - */ - /* - * This API will return `NULL` if the module instance not found. - */ - WasmEdge_String WasiName = - WasmEdge_StringCreateByCString("wasi_snapshot_preview1"); - /* The `WasiModule` will not be `NULL` because the configuration was set. */ - const WasmEdge_ModuleInstanceContext *WasiModule = - WasmEdge_VMGetRegisteredModule(VMCxt, WasiName); - WasmEdge_StringDelete(WasiName); - WasmEdge_String WasiNNName = - WasmEdge_StringCreateByCString("wasi_ephemeral_nn"); - /* - * The `WasiNNModule` will not be `NULL` even if the wasi_nn plug-in is not - * installed, because the VM context will mock and register the host - * modules. - */ - const WasmEdge_ModuleInstanceContext *WasiNNModule = - WasmEdge_VMGetRegisteredModule(VMCxt, WasiNNName); - WasmEdge_StringDelete(WasiNNName); - - WasmEdge_VMDelete(VMCxt); - ``` + There may be several plug-ins in the default plug-in paths if users [installed WasmEdge plug-ins by the installer](/contribute/installer.md#plugins). + + Before using the plug-ins, developers should [load the plug-ins from paths](#load-plug-ins-from-paths). + + The `VM` context will automatically create and register the module of the loaded plug-ins when creation. Furthermore, the following host modules will be mocked if the plug-in not loaded: + + - `wasi_ephemeral_crypto_asymmetric_common` (for the `WASI-Crypto`) + - `wasi_ephemeral_crypto_common` (for the `WASI-Crypto`) + - `wasi_ephemeral_crypto_kx` (for the `WASI-Crypto`) + - `wasi_ephemeral_crypto_signatures` (for the `WASI-Crypto`) + - `wasi_ephemeral_crypto_symmetric` (for the `WASI-Crypto`) + - `wasi_ephemeral_nn` + - `wasi_snapshot_preview1` + - `wasmedge_httpsreq` + - `wasmedge_process` + + When the WASM want to invoke these host functions but the corresponding plug-in not installed, WasmEdge will print the error message and return an error. + + ```c + /* Load the plug-ins in the default paths first. */ + WasmEdge_PluginLoadWithDefaultPaths(); + /* Create the configure context and add the WASI configuration. */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, + WasmEdge_HostRegistration_Wasi); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + WasmEdge_ConfigureDelete(ConfCxt); + /* + * The following API can retrieve the registered modules in the VM context, + * includes the built-in WASI and the plug-ins. + */ + /* + * This API will return `NULL` if the module instance not found. + */ + WasmEdge_String WasiName = + WasmEdge_StringCreateByCString("wasi_snapshot_preview1"); + /* The `WasiModule` will not be `NULL` because the configuration was set. */ + const WasmEdge_ModuleInstanceContext *WasiModule = + WasmEdge_VMGetRegisteredModule(VMCxt, WasiName); + WasmEdge_StringDelete(WasiName); + WasmEdge_String WasiNNName = + WasmEdge_StringCreateByCString("wasi_ephemeral_nn"); + /* + * The `WasiNNModule` will not be `NULL` even if the wasi_nn plug-in is not + * installed, because the VM context will mock and register the host + * modules. + */ + const WasmEdge_ModuleInstanceContext *WasiNNModule = + WasmEdge_VMGetRegisteredModule(VMCxt, WasiNNName); + WasmEdge_StringDelete(WasiNNName); + + WasmEdge_VMDelete(VMCxt); + ``` ### Host Module Registrations @@ -1135,248 +1135,248 @@ In WebAssembly, the instances in WASM modules can be exported and can be importe 1. Register the WASM modules with exported module names - Unless the module instances have already contained the module names, every WASM module should be named uniquely when registering. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. - - ```c - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - WasmEdge_Result Res = - WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); - /* - * Developers can register the WASM module from buffer with the - * `WasmEdge_VMRegisterModuleFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMRegisterModuleFromASTModule()` API. - */ - /* - * The result status should be checked. - * The error will occur if the WASM module instantiation failed or the - * module name conflicts. - */ - WasmEdge_StringDelete(ModName); - WasmEdge_VMDelete(VMCxt); - ``` + Unless the module instances have already contained the module names, every WASM module should be named uniquely when registering. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. + + ```c + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + WasmEdge_Result Res = + WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); + /* + * Developers can register the WASM module from buffer with the + * `WasmEdge_VMRegisterModuleFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMRegisterModuleFromASTModule()` API. + */ + /* + * The result status should be checked. + * The error will occur if the WASM module instantiation failed or the + * module name conflicts. + */ + WasmEdge_StringDelete(ModName); + WasmEdge_VMDelete(VMCxt); + ``` 2. Execute the functions in registered WASM modules - Assume that the C file `test.c` is as follows: - - ```c - #include - #include - int main() { - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(20)}; - WasmEdge_Value Returns[1]; - /* Names. */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Register the WASM module into VM. */ - Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); - /* - * Developers can register the WASM module from buffer with the - * `WasmEdge_VMRegisterModuleFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMRegisterModuleFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", - WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* - * The function "fib" in the "fibonacci.wasm" was exported with the module - * name "mod". As the same as host functions, other modules can import the - * function `"mod" "fib"`. - */ - - /* - * Execute WASM functions in registered modules. - * Unlike the execution of functions, the registered functions can be - * invoked without `WasmEdge_VMInstantiate()` because the WASM module was - * instantiated when registering. Developers can also invoke the host - * functions directly with this API. - */ - Res = WasmEdge_VMExecuteRegistered(VMCxt, ModName, FuncName, Params, 1, - Returns, 1); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - WasmEdge_StringDelete(ModName); - WasmEdge_StringDelete(FuncName); - WasmEdge_VMDelete(VMCxt); - return 0; - } - ``` - - Then you can compile and run: (the 20th Fibonacci number is 89 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the result: 10946 - ``` + Assume that the C file `test.c` is as follows: + + ```c + #include + #include + int main() { + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(20)}; + WasmEdge_Value Returns[1]; + /* Names. */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Register the WASM module into VM. */ + Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); + /* + * Developers can register the WASM module from buffer with the + * `WasmEdge_VMRegisterModuleFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMRegisterModuleFromASTModule()` API. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", + WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* + * The function "fib" in the "fibonacci.wasm" was exported with the module + * name "mod". As the same as host functions, other modules can import the + * function `"mod" "fib"`. + */ + + /* + * Execute WASM functions in registered modules. + * Unlike the execution of functions, the registered functions can be + * invoked without `WasmEdge_VMInstantiate()` because the WASM module was + * instantiated when registering. Developers can also invoke the host + * functions directly with this API. + */ + Res = WasmEdge_VMExecuteRegistered(VMCxt, ModName, FuncName, Params, 1, + Returns, 1); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + WasmEdge_StringDelete(ModName); + WasmEdge_StringDelete(FuncName); + WasmEdge_VMDelete(VMCxt); + return 0; + } + ``` + + Then you can compile and run: (the 20th Fibonacci number is 89 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the result: 10946 + ``` ### Asynchronous Execution 1. Asynchronously run WASM functions rapidly - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(20)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Asynchronously run the WASM function from file and get the - * `WasmEdge_Async` object. */ - WasmEdge_Async *Async = WasmEdge_VMAsyncRunWasmFromFile( - VMCxt, "fibonacci.wasm", FuncName, Params, 1); - /* - * Developers can run the WASM binary from buffer with the - * `WasmEdge_VMAsyncRunWasmFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMAsyncRunWasmFromASTModule()` API. - */ - - /* Wait for the execution. */ - WasmEdge_AsyncWait(Async); - /* - * Developers can also use the `WasmEdge_AsyncGetReturnsLength()` or - * `WasmEdge_AsyncGet()` APIs to wait for the asynchronous execution. - * These APIs will wait until the execution finished. - */ - - /* Check the return values length. */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - /* The `Arity` should be 1. Developers can skip this step if they have - * known the return arity. */ - - /* Get the result. */ - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Returns, Arity); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_AsyncDelete(Async); - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 20th Fibonacci number is 10946 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the result: 10946 - ``` + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(20)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Asynchronously run the WASM function from file and get the + * `WasmEdge_Async` object. */ + WasmEdge_Async *Async = WasmEdge_VMAsyncRunWasmFromFile( + VMCxt, "fibonacci.wasm", FuncName, Params, 1); + /* + * Developers can run the WASM binary from buffer with the + * `WasmEdge_VMAsyncRunWasmFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMAsyncRunWasmFromASTModule()` API. + */ + + /* Wait for the execution. */ + WasmEdge_AsyncWait(Async); + /* + * Developers can also use the `WasmEdge_AsyncGetReturnsLength()` or + * `WasmEdge_AsyncGet()` APIs to wait for the asynchronous execution. + * These APIs will wait until the execution finished. + */ + + /* Check the return values length. */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + /* The `Arity` should be 1. Developers can skip this step if they have + * known the return arity. */ + + /* Get the result. */ + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Returns, Arity); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_AsyncDelete(Async); + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` + + Then you can compile and run: (the 20th Fibonacci number is 10946 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the result: 10946 + ``` 2. Instantiate and asynchronously run WASM functions manually - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: - - ```c - #include - #include - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(25)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Step 1: Load WASM file. */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - /* - * Developers can load the WASM binary from buffer with the - * `WasmEdge_VMLoadWasmFromBuffer()` API, or from - * `WasmEdge_ASTModuleContext` object with the - * `WasmEdge_VMLoadWasmFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 2: Validate the WASM module. */ - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 3: Instantiate the WASM module. */ - Res = WasmEdge_VMInstantiate(VMCxt); - /* - * Developers can load, validate, and instantiate another WASM module to - * replace the instantiated one. In this case, the old module will be - * cleared, but the registered modules are still kept. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", - WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 4: Asynchronously execute the WASM function and get the - * `WasmEdge_Async` object. */ - WasmEdge_Async *Async = - WasmEdge_VMAsyncExecute(VMCxt, FuncName, Params, 1); - /* - * Developers can execute functions repeatedly after instantiation. - * For invoking the registered functions, you can use the - * `WasmEdge_VMAsyncExecuteRegistered()` API. - */ - - /* Wait and check the return values length. */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - /* The `Arity` should be 1. Developers can skip this step if they have - * known the return arity. */ - - /* Get the result. */ - Res = WasmEdge_AsyncGet(Async, Returns, Arity); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_AsyncDelete(Async); - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - } - ``` - - Then you can compile and run: (the 25th Fibonacci number is 121393 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get the result: 121393 - ``` + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```c + #include + #include + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(25)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Step 1: Load WASM file. */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + /* + * Developers can load the WASM binary from buffer with the + * `WasmEdge_VMLoadWasmFromBuffer()` API, or from + * `WasmEdge_ASTModuleContext` object with the + * `WasmEdge_VMLoadWasmFromASTModule()` API. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 2: Validate the WASM module. */ + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 3: Instantiate the WASM module. */ + Res = WasmEdge_VMInstantiate(VMCxt); + /* + * Developers can load, validate, and instantiate another WASM module to + * replace the instantiated one. In this case, the old module will be + * cleared, but the registered modules are still kept. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", + WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 4: Asynchronously execute the WASM function and get the + * `WasmEdge_Async` object. */ + WasmEdge_Async *Async = + WasmEdge_VMAsyncExecute(VMCxt, FuncName, Params, 1); + /* + * Developers can execute functions repeatedly after instantiation. + * For invoking the registered functions, you can use the + * `WasmEdge_VMAsyncExecuteRegistered()` API. + */ + + /* Wait and check the return values length. */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + /* The `Arity` should be 1. Developers can skip this step if they have + * known the return arity. */ + + /* Get the result. */ + Res = WasmEdge_AsyncGet(Async, Returns, Arity); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_AsyncDelete(Async); + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + } + ``` + + Then you can compile and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get the result: 121393 + ``` ### Instance Tracing @@ -1384,157 +1384,157 @@ Sometimes the developers may have requirements to get the instances of the WASM 1. Store - If the `VM` context is created without assigning a `Store` context, the `VM` context will allocate and own a `Store` context. + If the `VM` context is created without assigning a `Store` context, the `VM` context will allocate and own a `Store` context. - ```c - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - WasmEdge_StoreContext *StoreCxt = WasmEdge_VMGetStoreContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_StoreDelete()`. */ - WasmEdge_VMDelete(VMCxt); - ``` + ```c + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + WasmEdge_StoreContext *StoreCxt = WasmEdge_VMGetStoreContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_StoreDelete()`. */ + WasmEdge_VMDelete(VMCxt); + ``` - Developers can also create the `VM` context with a `Store` context. In this case, developers should guarantee the life cycle of the `Store` context. Please refer to the [Store Contexts](#store) for the details about the `Store` context APIs. + Developers can also create the `VM` context with a `Store` context. In this case, developers should guarantee the life cycle of the `Store` context. Please refer to the [Store Contexts](#store) for the details about the `Store` context APIs. - ```c - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); - WasmEdge_StoreContext *StoreCxtMock = WasmEdge_VMGetStoreContext(VMCxt); - /* The `StoreCxt` and the `StoreCxtMock` are the same. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StoreDelete(StoreCxt); - ``` + ```c + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); + WasmEdge_StoreContext *StoreCxtMock = WasmEdge_VMGetStoreContext(VMCxt); + /* The `StoreCxt` and the `StoreCxtMock` are the same. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StoreDelete(StoreCxt); + ``` 2. List exported functions - After the WASM module instantiation, developers can use the `WasmEdge_VMExecute()` API to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); - - WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - WasmEdge_VMValidate(VMCxt); - WasmEdge_VMInstantiate(VMCxt); - - /* List the exported functions. */ - /* Get the number of exported functions. */ - uint32_t FuncNum = WasmEdge_VMGetFunctionListLength(VMCxt); - /* Create the name buffers and the function type buffers. */ - const uint32_t BUF_LEN = 256; - WasmEdge_String FuncNames[BUF_LEN]; - WasmEdge_FunctionTypeContext *FuncTypes[BUF_LEN]; - /* - * Get the export function list. - * If the function list length is larger than the buffer length, the - * overflowed data will be discarded. The `FuncNames` and `FuncTypes` can - * be NULL if developers don't need them. - */ - uint32_t RealFuncNum = - WasmEdge_VMGetFunctionList(VMCxt, FuncNames, FuncTypes, BUF_LEN); - - for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { - char Buf[BUF_LEN]; - uint32_t Size = WasmEdge_StringCopy(FuncNames[I], Buf, sizeof(Buf)); - printf("Get exported function string length: %u, name: %s\n", Size, - Buf); - /* - * The function names should be __NOT__ destroyed. - * The returned function type contexts should __NOT__ be destroyed. - */ - } - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_VMDelete(VMCxt); - return 0; - } - ``` - - Then you can compile and run: (the only exported function in `fibonacci.wasm` is `fib`) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Get exported function string length: 3, name: fib - ``` - - If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` context from the `VM` context and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. + After the WASM module instantiation, developers can use the `WasmEdge_VMExecute()` API to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); + + WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + WasmEdge_VMValidate(VMCxt); + WasmEdge_VMInstantiate(VMCxt); + + /* List the exported functions. */ + /* Get the number of exported functions. */ + uint32_t FuncNum = WasmEdge_VMGetFunctionListLength(VMCxt); + /* Create the name buffers and the function type buffers. */ + const uint32_t BUF_LEN = 256; + WasmEdge_String FuncNames[BUF_LEN]; + WasmEdge_FunctionTypeContext *FuncTypes[BUF_LEN]; + /* + * Get the export function list. + * If the function list length is larger than the buffer length, the + * overflowed data will be discarded. The `FuncNames` and `FuncTypes` can + * be NULL if developers don't need them. + */ + uint32_t RealFuncNum = + WasmEdge_VMGetFunctionList(VMCxt, FuncNames, FuncTypes, BUF_LEN); + + for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { + char Buf[BUF_LEN]; + uint32_t Size = WasmEdge_StringCopy(FuncNames[I], Buf, sizeof(Buf)); + printf("Get exported function string length: %u, name: %s\n", Size, + Buf); + /* + * The function names should be __NOT__ destroyed. + * The returned function type contexts should __NOT__ be destroyed. + */ + } + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_VMDelete(VMCxt); + return 0; + } + ``` + + Then you can compile and run: (the only exported function in `fibonacci.wasm` is `fib`) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Get exported function string length: 3, name: fib + ``` + + If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` context from the `VM` context and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. 3. Get function types - The `VM` context provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. - - ```c - /* - * ... - * Assume that a WASM module is instantiated in `VMCxt`. - */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - const WasmEdge_FunctionTypeContext *FuncType = - WasmEdge_VMGetFunctionType(VMCxt, FuncName); - /* - * Developers can get the function types of functions in the registered - * modules via the `WasmEdge_VMGetFunctionTypeRegistered()` API with the - * module name. If the function is not found, these APIs will return `NULL`. - * The returned function type contexts should __NOT__ be destroyed. - */ - WasmEdge_StringDelete(FuncName); - ``` + The `VM` context provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. + + ```c + /* + * ... + * Assume that a WASM module is instantiated in `VMCxt`. + */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + const WasmEdge_FunctionTypeContext *FuncType = + WasmEdge_VMGetFunctionType(VMCxt, FuncName); + /* + * Developers can get the function types of functions in the registered + * modules via the `WasmEdge_VMGetFunctionTypeRegistered()` API with the + * module name. If the function is not found, these APIs will return `NULL`. + * The returned function type contexts should __NOT__ be destroyed. + */ + WasmEdge_StringDelete(FuncName); + ``` 4. Get the active module - After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` context. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `WasmEdge_VMGetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. - - ```c - /* - * ... - * Assume that a WASM module is instantiated in `VMCxt`. - */ - const WasmEdge_ModuleInstanceContext *ModCxt = - WasmEdge_VMGetActiveModule(VMCxt); - /* - * If there's no WASM module instantiated, this API will return `NULL`. - * The returned module instance context should __NOT__ be destroyed. - */ - ``` + After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` context. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `WasmEdge_VMGetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. + + ```c + /* + * ... + * Assume that a WASM module is instantiated in `VMCxt`. + */ + const WasmEdge_ModuleInstanceContext *ModCxt = + WasmEdge_VMGetActiveModule(VMCxt); + /* + * If there's no WASM module instantiated, this API will return `NULL`. + * The returned module instance context should __NOT__ be destroyed. + */ + ``` 5. List and get the registered modules - To list and retrieve the registered modules in the `VM` context, besides accessing the `store` context of the `VM`, developers can use the following APIs. - - ```c - /* - * ... - * Assume that the `VMCxt` is created. - */ - WasmEdge_String Names[32]; - uint32_t ModuleLen = WasmEdge_VMListRegisteredModule(VMCxt, Names, 32); - for (uint32_t I = 0; I < ModuleLen; I++) { - /* Will print the registered module names in the VM context. */ - printf("%s\n", Names[I].Buf); - } - - WasmEdge_String WasiName = - WasmEdge_StringCreateByCString("wasi_snapshot_preview1"); - /* The `WasiModule` will not be `NULL` because the configuration was set. */ - const WasmEdge_ModuleInstanceContext *WasiModule = - WasmEdge_VMGetRegisteredModule(VMCxt, WasiName); - WasmEdge_StringDelete(WasiName); - ``` + To list and retrieve the registered modules in the `VM` context, besides accessing the `store` context of the `VM`, developers can use the following APIs. + + ```c + /* + * ... + * Assume that the `VMCxt` is created. + */ + WasmEdge_String Names[32]; + uint32_t ModuleLen = WasmEdge_VMListRegisteredModule(VMCxt, Names, 32); + for (uint32_t I = 0; I < ModuleLen; I++) { + /* Will print the registered module names in the VM context. */ + printf("%s\n", Names[I].Buf); + } + + WasmEdge_String WasiName = + WasmEdge_StringCreateByCString("wasi_snapshot_preview1"); + /* The `WasiModule` will not be `NULL` because the configuration was set. */ + const WasmEdge_ModuleInstanceContext *WasiModule = + WasmEdge_VMGetRegisteredModule(VMCxt, WasiName); + WasmEdge_StringDelete(WasiName); + ``` 6. Get the components - The `VM` context is composed by the `Loader`, `Validator`, and `Executor` contexts. For the developers who want to use these contexts without creating another instances, these APIs can help developers to get them from the `VM` context. The get contexts are owned by the `VM` context, and developers should not call their delete functions. + The `VM` context is composed by the `Loader`, `Validator`, and `Executor` contexts. For the developers who want to use these contexts without creating another instances, these APIs can help developers to get them from the `VM` context. The get contexts are owned by the `VM` context, and developers should not call their delete functions. - ```c - WasmEdge_LoaderContext *LoadCxt = WasmEdge_VMGetLoaderContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_LoaderDelete()`. */ - WasmEdge_ValidatorContext *ValidCxt = WasmEdge_VMGetValidatorContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_ValidatorDelete()`. */ - WasmEdge_ExecutorContext *ExecCxt = WasmEdge_VMGetExecutorContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_ExecutorDelete()`. */ - ``` + ```c + WasmEdge_LoaderContext *LoadCxt = WasmEdge_VMGetLoaderContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_LoaderDelete()`. */ + WasmEdge_ValidatorContext *ValidCxt = WasmEdge_VMGetValidatorContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_ValidatorDelete()`. */ + WasmEdge_ExecutorContext *ExecCxt = WasmEdge_VMGetExecutorContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_ExecutorDelete()`. */ + ``` ## WasmEdge Runtime @@ -1725,157 +1725,157 @@ The `Executor` context is the executor for both WASM and compiled-WASM. This obj 1. Instantiate and register an `AST module` as a named `Module` instance - As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` contexts, developers can instantiate and register an `AST module` contexts into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). - - ```c - /* - * ... - * Assume that the `ASTCxt` is the output AST module context from the loader - * context and has passed the validation. Assume that the `ConfCxt` is the - * configure context. - */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* - * Create the executor context. The configure and the statistics contexts - * can be NULL. - */ - WasmEdge_ExecutorContext *ExecCxt = - WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* - * Create the store context. The store context is the object to link the - * modules for imports and exports. - */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* Result. */ - WasmEdge_Result Res; - - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - /* The output module instance. */ - WasmEdge_ModuleInstanceContext *ModCxt = NULL; - /* - * Register the WASM module into the store with the export module name - * "mod". - */ - Res = - WasmEdge_ExecutorRegister(ExecCxt, &ModCxt, StoreCxt, ASTCxt, ModName); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - WasmEdge_StringDelete(ModName); - - /* ... */ - - /* After the execution, the resources should be released. */ - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_ModuleInstanceDelete(ModCxt); - ``` + As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` contexts, developers can instantiate and register an `AST module` contexts into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader + * context and has passed the validation. Assume that the `ConfCxt` is the + * configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* + * Create the executor context. The configure and the statistics contexts + * can be NULL. + */ + WasmEdge_ExecutorContext *ExecCxt = + WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* + * Create the store context. The store context is the object to link the + * modules for imports and exports. + */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* Result. */ + WasmEdge_Result Res; + + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + /* The output module instance. */ + WasmEdge_ModuleInstanceContext *ModCxt = NULL; + /* + * Register the WASM module into the store with the export module name + * "mod". + */ + Res = + WasmEdge_ExecutorRegister(ExecCxt, &ModCxt, StoreCxt, ASTCxt, ModName); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + WasmEdge_StringDelete(ModName); + + /* ... */ + + /* After the execution, the resources should be released. */ + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_ModuleInstanceDelete(ModCxt); + ``` 2. Register an existing `Module` instance and export the module name - Besides instantiating and registering an `AST module` contexts, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). - - ```c - /* - * ... - * Assume that the `ASTCxt` is the output AST module context from the loader - * context and has passed the validation. Assume that the `ConfCxt` is the - * configure context. - */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* - * Create the executor context. The configure and the statistics contexts - * can be NULL. - */ - WasmEdge_ExecutorContext *ExecCxt = - WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* - * Create the store context. The store context is the object to link the - * modules for imports and exports. - */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* Result. */ - WasmEdge_Result Res; - - /* Create a module instance for host functions. */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("host-module"); - WasmEdge_ModuleInstanceContext *HostModCxt = - WasmEdge_ModuleInstanceCreate(ModName); - WasmEdge_StringDelete(ModName); - /* - * ... - * Create and add the host functions, tables, memories, and globals into the - * module instance. - */ - - /* Register the module instance into store with the exported module name. */ - /* The export module name is in the module instance already. */ - Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, HostModCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* ... */ - - /* After the execution, the resources should be released. */ - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_ModuleInstanceDelete(ModCxt); - ``` + Besides instantiating and registering an `AST module` contexts, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader + * context and has passed the validation. Assume that the `ConfCxt` is the + * configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* + * Create the executor context. The configure and the statistics contexts + * can be NULL. + */ + WasmEdge_ExecutorContext *ExecCxt = + WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* + * Create the store context. The store context is the object to link the + * modules for imports and exports. + */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* Result. */ + WasmEdge_Result Res; + + /* Create a module instance for host functions. */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("host-module"); + WasmEdge_ModuleInstanceContext *HostModCxt = + WasmEdge_ModuleInstanceCreate(ModName); + WasmEdge_StringDelete(ModName); + /* + * ... + * Create and add the host functions, tables, memories, and globals into the + * module instance. + */ + + /* Register the module instance into store with the exported module name. */ + /* The export module name is in the module instance already. */ + Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, HostModCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* ... */ + + /* After the execution, the resources should be released. */ + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_ModuleInstanceDelete(ModCxt); + ``` 3. Instantiate an `AST module` to an anonymous `Module` instance - WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` context for linking. - - ```c - /* - * ... - * Assume that the `ASTCxt` is the output AST module context from the loader - * context and has passed the validation. Assume that the `ConfCxt` is the - * configure context. - */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* - * Create the executor context. The configure and the statistics contexts - * can be NULL. - */ - WasmEdge_ExecutorContext *ExecCxt = - WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* - * Create the store context. The store context is the object to link the - * modules for imports and exports. - */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - - /* The output module instance. */ - WasmEdge_ModuleInstanceContext *ModCxt = NULL; - /* Instantiate the WASM module. */ - WasmEdge_Result Res = - WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt, StoreCxt, ASTCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM instantiation failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - /* ... */ - - /* After the execution, the resources should be released. */ - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - WasmEdge_ModuleInstanceDelete(ModCxt); - ``` + WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` context for linking. + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader + * context and has passed the validation. Assume that the `ConfCxt` is the + * configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* + * Create the executor context. The configure and the statistics contexts + * can be NULL. + */ + WasmEdge_ExecutorContext *ExecCxt = + WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* + * Create the store context. The store context is the object to link the + * modules for imports and exports. + */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + + /* The output module instance. */ + WasmEdge_ModuleInstanceContext *ModCxt = NULL; + /* Instantiate the WASM module. */ + WasmEdge_Result Res = + WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt, StoreCxt, ASTCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM instantiation failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + /* ... */ + + /* After the execution, the resources should be released. */ + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + WasmEdge_ModuleInstanceDelete(ModCxt); + ``` 4. Invoke functions - After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `WasmEdge_ExecutorInvoke()` API. + After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `WasmEdge_ExecutorInvoke()` API. ### AST Module @@ -1960,209 +1960,209 @@ The instances are the runtime structures of WASM. Developers can retrieve the `M 1. Module instance - After instantiating or registering an `AST module` context, developers will get a `Module` instance as the result, and have the responsibility to destroy it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. - - ```c - /* - * ... - * Instantiate a WASM module via the executor context and get the `ModCxt` - * as the output module instance. - */ - - /* Try to list the exported instance of the instantiated WASM module. */ - /* Take the function instances for example here. */ - uint32_t FuncNum = WasmEdge_ModuleInstanceListFunctionLength(ModCxt); - /* Create the name buffers. */ - const uint32_t BUF_LEN = 256; - WasmEdge_String FuncNames[BUF_LEN]; - /* - * If the list length is larger than the buffer length, the overflowed data - * will be discarded. - */ - uint32_t RealFuncNum = - WasmEdge_ModuleInstanceListFunction(ModCxt, FuncNames, BUF_LEN); - for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { - /* Working with the function name `FuncNames[I]` ... */ - /* The function names should __NOT__ be destroyed. */ - } - - /* Try to find the exported instance of the instantiated WASM module. */ - /* Take the function instances for example here. */ - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - WasmEdge_FunctionInstanceContext *FuncCxt = - WasmEdge_ModuleInstanceFindFunction(ModCxt, FuncName); - /* `FuncCxt` will be `NULL` if the function not found. */ - /* - * The returned instance is owned by the module instance context and should - * __NOT__ be destroyed. - */ - WasmEdge_StringDelete(FuncName); - ``` + After instantiating or registering an `AST module` context, developers will get a `Module` instance as the result, and have the responsibility to destroy it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. + + ```c + /* + * ... + * Instantiate a WASM module via the executor context and get the `ModCxt` + * as the output module instance. + */ + + /* Try to list the exported instance of the instantiated WASM module. */ + /* Take the function instances for example here. */ + uint32_t FuncNum = WasmEdge_ModuleInstanceListFunctionLength(ModCxt); + /* Create the name buffers. */ + const uint32_t BUF_LEN = 256; + WasmEdge_String FuncNames[BUF_LEN]; + /* + * If the list length is larger than the buffer length, the overflowed data + * will be discarded. + */ + uint32_t RealFuncNum = + WasmEdge_ModuleInstanceListFunction(ModCxt, FuncNames, BUF_LEN); + for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { + /* Working with the function name `FuncNames[I]` ... */ + /* The function names should __NOT__ be destroyed. */ + } + + /* Try to find the exported instance of the instantiated WASM module. */ + /* Take the function instances for example here. */ + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + WasmEdge_FunctionInstanceContext *FuncCxt = + WasmEdge_ModuleInstanceFindFunction(ModCxt, FuncName); + /* `FuncCxt` will be `NULL` if the function not found. */ + /* + * The returned instance is owned by the module instance context and should + * __NOT__ be destroyed. + */ + WasmEdge_StringDelete(FuncName); + ``` 2. Function instance - [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` contexts for host functions and add them into an `Module` instance context for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` contexts through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). + [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` contexts for host functions and add them into an `Module` instance context for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` contexts through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). - ```c - /* Retrieve the function instance from the module instance context. */ - WasmEdge_FunctionInstanceContext *FuncCxt = ...; - WasmEdge_FunctionTypeContext *FuncTypeCxt = - WasmEdge_FunctionInstanceGetFunctionType(FuncCxt); - /* - * The `FuncTypeCxt` is owned by the `FuncCxt` and should __NOT__ be - * destroyed. - */ + ```c + /* Retrieve the function instance from the module instance context. */ + WasmEdge_FunctionInstanceContext *FuncCxt = ...; + WasmEdge_FunctionTypeContext *FuncTypeCxt = + WasmEdge_FunctionInstanceGetFunctionType(FuncCxt); + /* + * The `FuncTypeCxt` is owned by the `FuncCxt` and should __NOT__ be + * destroyed. + */ - /* - * For the function instance creation, please refer to the `Host Function` - * guide. - */ - ``` + /* + * For the function instance creation, please refer to the `Host Function` + * guide. + */ + ``` 3. Table instance - In WasmEdge, developers can create the `Table` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Table` contexts supply APIs to control the data in table instances. - - ```c - WasmEdge_Limit TabLimit = { - .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - /* Create the table type with limit and the `FuncRef` element type. */ - WasmEdge_TableTypeContext *TabTypeCxt = - WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TabLimit); - /* Create the table instance with table type. */ - WasmEdge_TableInstanceContext *HostTable = - WasmEdge_TableInstanceCreate(TabTypeCxt); - /* Delete the table type. */ - WasmEdge_TableTypeDelete(TabTypeCxt); - WasmEdge_Result Res; - WasmEdge_Value Data; - - TabTypeCxt = WasmEdge_TableInstanceGetTableType(HostTable); - /* - * The `TabTypeCxt` got from table instance is owned by the `HostTable` and - * should __NOT__ be destroyed. - */ - enum WasmEdge_RefType RefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); - /* `RefType` will be `WasmEdge_RefType_FuncRef`. */ - Data = WasmEdge_ValueGenFuncRef(5); - Res = WasmEdge_TableInstanceSetData(HostTable, Data, 3); - /* Set the function index 5 to the table[3]. */ - /* - * This will get an "out of bounds table access" error - * because the position (13) is out of the table size (10): - * Res = WasmEdge_TableInstanceSetData(HostTable, Data, 13); - */ - Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 3); - /* Get the FuncRef value of the table[3]. */ - /* - * This will get an "out of bounds table access" error - * because the position (13) is out of the table size (10): - * Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 13); - */ - - uint32_t Size = WasmEdge_TableInstanceGetSize(HostTable); - /* `Size` will be 10. */ - Res = WasmEdge_TableInstanceGrow(HostTable, 6); - /* Grow the table size of 6, the table size will be 16. */ - /* - * This will get an "out of bounds table access" error because - * the size (16 + 6) will reach the table limit(20): - * Res = WasmEdge_TableInstanceGrow(HostTable, 6); - */ - - WasmEdge_TableInstanceDelete(HostTable); - ``` + In WasmEdge, developers can create the `Table` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Table` contexts supply APIs to control the data in table instances. + + ```c + WasmEdge_Limit TabLimit = { + .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + /* Create the table type with limit and the `FuncRef` element type. */ + WasmEdge_TableTypeContext *TabTypeCxt = + WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TabLimit); + /* Create the table instance with table type. */ + WasmEdge_TableInstanceContext *HostTable = + WasmEdge_TableInstanceCreate(TabTypeCxt); + /* Delete the table type. */ + WasmEdge_TableTypeDelete(TabTypeCxt); + WasmEdge_Result Res; + WasmEdge_Value Data; + + TabTypeCxt = WasmEdge_TableInstanceGetTableType(HostTable); + /* + * The `TabTypeCxt` got from table instance is owned by the `HostTable` and + * should __NOT__ be destroyed. + */ + enum WasmEdge_RefType RefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); + /* `RefType` will be `WasmEdge_RefType_FuncRef`. */ + Data = WasmEdge_ValueGenFuncRef(5); + Res = WasmEdge_TableInstanceSetData(HostTable, Data, 3); + /* Set the function index 5 to the table[3]. */ + /* + * This will get an "out of bounds table access" error + * because the position (13) is out of the table size (10): + * Res = WasmEdge_TableInstanceSetData(HostTable, Data, 13); + */ + Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 3); + /* Get the FuncRef value of the table[3]. */ + /* + * This will get an "out of bounds table access" error + * because the position (13) is out of the table size (10): + * Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 13); + */ + + uint32_t Size = WasmEdge_TableInstanceGetSize(HostTable); + /* `Size` will be 10. */ + Res = WasmEdge_TableInstanceGrow(HostTable, 6); + /* Grow the table size of 6, the table size will be 16. */ + /* + * This will get an "out of bounds table access" error because + * the size (16 + 6) will reach the table limit(20): + * Res = WasmEdge_TableInstanceGrow(HostTable, 6); + */ + + WasmEdge_TableInstanceDelete(HostTable); + ``` 4. Memory instance - In WasmEdge, developers can create the `Memory` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Memory` contexts supply APIs to control the data in memory instances. - - ```c - WasmEdge_Limit MemLimit = { - .HasMax = true, .Shared = false, .Min = 1, .Max = 5}; - /* Create the memory type with limit. The memory page size is 64KiB. */ - WasmEdge_MemoryTypeContext *MemTypeCxt = - WasmEdge_MemoryTypeCreate(MemLimit); - /* Create the memory instance with memory type. */ - WasmEdge_MemoryInstanceContext *HostMemory = - WasmEdge_MemoryInstanceCreate(MemTypeCxt); - /* Delete the memory type. */ - WasmEdge_MemoryTypeDelete(MemTypeCxt); - WasmEdge_Result Res; - uint8_t Buf[256]; - - Buf[0] = 0xAA; - Buf[1] = 0xBB; - Buf[2] = 0xCC; - Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0x1000, 3); - /* Set the data[0:2] to the memory[4096:4098]. */ - /* - * This will get an "out of bounds memory access" error - * because [65535:65537] is out of 1 page size (65536): - * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); - */ - Buf[0] = 0; - Buf[1] = 0; - Buf[2] = 0; - Res = WasmEdge_MemoryInstanceGetData(HostMemory, Buf, 0x1000, 3); - /* Get the memory[4096:4098]. Buf[0:2] will be `{0xAA, 0xBB, 0xCC}`. */ - /* - * This will get an "out of bounds memory access" error - * because [65535:65537] is out of 1 page size (65536): - * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); - */ - - uint32_t PageSize = WasmEdge_MemoryInstanceGetPageSize(HostMemory); - /* `PageSize` will be 1. */ - Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 2); - /* Grow the page size of 2, the page size of the memory instance will be 3. - */ - /* - * This will get an "out of bounds memory access" error because - * the page size (3 + 3) will reach the memory limit(5): - * Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 3); - */ - - WasmEdge_MemoryInstanceDelete(HostMemory); - ``` + In WasmEdge, developers can create the `Memory` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Memory` contexts supply APIs to control the data in memory instances. + + ```c + WasmEdge_Limit MemLimit = { + .HasMax = true, .Shared = false, .Min = 1, .Max = 5}; + /* Create the memory type with limit. The memory page size is 64KiB. */ + WasmEdge_MemoryTypeContext *MemTypeCxt = + WasmEdge_MemoryTypeCreate(MemLimit); + /* Create the memory instance with memory type. */ + WasmEdge_MemoryInstanceContext *HostMemory = + WasmEdge_MemoryInstanceCreate(MemTypeCxt); + /* Delete the memory type. */ + WasmEdge_MemoryTypeDelete(MemTypeCxt); + WasmEdge_Result Res; + uint8_t Buf[256]; + + Buf[0] = 0xAA; + Buf[1] = 0xBB; + Buf[2] = 0xCC; + Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0x1000, 3); + /* Set the data[0:2] to the memory[4096:4098]. */ + /* + * This will get an "out of bounds memory access" error + * because [65535:65537] is out of 1 page size (65536): + * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); + */ + Buf[0] = 0; + Buf[1] = 0; + Buf[2] = 0; + Res = WasmEdge_MemoryInstanceGetData(HostMemory, Buf, 0x1000, 3); + /* Get the memory[4096:4098]. Buf[0:2] will be `{0xAA, 0xBB, 0xCC}`. */ + /* + * This will get an "out of bounds memory access" error + * because [65535:65537] is out of 1 page size (65536): + * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); + */ + + uint32_t PageSize = WasmEdge_MemoryInstanceGetPageSize(HostMemory); + /* `PageSize` will be 1. */ + Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 2); + /* Grow the page size of 2, the page size of the memory instance will be 3. + */ + /* + * This will get an "out of bounds memory access" error because + * the page size (3 + 3) will reach the memory limit(5): + * Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 3); + */ + + WasmEdge_MemoryInstanceDelete(HostMemory); + ``` 5. Global instance - In WasmEdge, developers can create the `Global` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Global` contexts supply APIs to control the value in global instances. - - ```c - WasmEdge_Value Val = WasmEdge_ValueGenI64(1000); - /* Create the global type with value type and mutation. */ - WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate( - WasmEdge_ValType_I64, WasmEdge_Mutability_Var); - /* Create the global instance with value and global type. */ - WasmEdge_GlobalInstanceContext *HostGlobal = - WasmEdge_GlobalInstanceCreate(GlobTypeCxt, Val); - /* Delete the global type. */ - WasmEdge_GlobalTypeDelete(GlobTypeCxt); - WasmEdge_Result Res; - - GlobTypeCxt = WasmEdge_GlobalInstanceGetGlobalType(HostGlobal); - /* The `GlobTypeCxt` got from global instance is owned by the `HostGlobal` - * and should __NOT__ be destroyed. */ - enum WasmEdge_ValType ValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); - /* `ValType` will be `WasmEdge_ValType_I64`. */ - enum WasmEdge_Mutability ValMut = - WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); - /* `ValMut` will be `WasmEdge_Mutability_Var`. */ - - WasmEdge_GlobalInstanceSetValue(HostGlobal, WasmEdge_ValueGenI64(888)); - /* - * Set the value u64(888) to the global. - * This function will do nothing if the value type mismatched or - * the global mutability is `WasmEdge_Mutability_Const`. - */ - WasmEdge_Value GlobVal = WasmEdge_GlobalInstanceGetValue(HostGlobal); - /* Get the value (888 now) of the global context. */ - - WasmEdge_GlobalInstanceDelete(HostGlobal); - ``` + In WasmEdge, developers can create the `Global` contexts and add them into an `Module` instance context for registering into a `VM` or a `Store`. The `Global` contexts supply APIs to control the value in global instances. + + ```c + WasmEdge_Value Val = WasmEdge_ValueGenI64(1000); + /* Create the global type with value type and mutation. */ + WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate( + WasmEdge_ValType_I64, WasmEdge_Mutability_Var); + /* Create the global instance with value and global type. */ + WasmEdge_GlobalInstanceContext *HostGlobal = + WasmEdge_GlobalInstanceCreate(GlobTypeCxt, Val); + /* Delete the global type. */ + WasmEdge_GlobalTypeDelete(GlobTypeCxt); + WasmEdge_Result Res; + + GlobTypeCxt = WasmEdge_GlobalInstanceGetGlobalType(HostGlobal); + /* The `GlobTypeCxt` got from global instance is owned by the `HostGlobal` + * and should __NOT__ be destroyed. */ + enum WasmEdge_ValType ValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); + /* `ValType` will be `WasmEdge_ValType_I64`. */ + enum WasmEdge_Mutability ValMut = + WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); + /* `ValMut` will be `WasmEdge_Mutability_Var`. */ + + WasmEdge_GlobalInstanceSetValue(HostGlobal, WasmEdge_ValueGenI64(888)); + /* + * Set the value u64(888) to the global. + * This function will do nothing if the value type mismatched or + * the global mutability is `WasmEdge_Mutability_Const`. + */ + WasmEdge_Value GlobVal = WasmEdge_GlobalInstanceGetValue(HostGlobal); + /* Get the value (888 now) of the global context. */ + + WasmEdge_GlobalInstanceDelete(HostGlobal); + ``` ### Host Functions @@ -2170,568 +2170,568 @@ The instances are the runtime structures of WASM. Developers can retrieve the `M 1. Host function allocation - Developers can define C functions with the following function signature as the host function body: - - ```c - typedef WasmEdge_Result (*WasmEdge_HostFunc_t)( - void *Data, const WasmEdge_CallingFrameContext *CallFrameCxt, - const WasmEdge_Value *Params, WasmEdge_Value *Returns); - ``` + Developers can define C functions with the following function signature as the host function body: + + ```c + typedef WasmEdge_Result (*WasmEdge_HostFunc_t)( + void *Data, const WasmEdge_CallingFrameContext *CallFrameCxt, + const WasmEdge_Value *Params, WasmEdge_Value *Returns); + ``` + + The example of an `add` host function to add 2 `i32` values: + + ```c + WasmEdge_Result Add(void *, const WasmEdge_CallingFrameContext *, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + /* + * Params: {i32, i32} + * Returns: {i32} + * Developers should take care about the function type. + */ + /* Retrieve the value 1. */ + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + /* Retrieve the value 2. */ + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + /* Output value 1 is Val1 + Val2. */ + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + /* Return the status of success. */ + return WasmEdge_Result_Success; + } + ``` + + Then developers can create `Function` context with the host function body and the function type: + + ```c + enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, + WasmEdge_ValType_I32}; + enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; + /* Create a function type: {i32, i32} -> {i32}. */ + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + /* + * Create a function context with the function type and host function body. + * The `Cost` parameter can be 0 if developers do not need the cost + * measuring. + */ + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + /* + * The third parameter is the pointer to the additional data. + * Developers should guarantee the life cycle of the data, and it can be + * `NULL` if the external data is not needed. + */ + WasmEdge_FunctionTypeDelete(HostType); + + /* + * If the function instance is __NOT__ added into a module instance context, + * it should be deleted. + */ + WasmEdge_FunctionInstanceDelete(HostFunc); + ``` - The example of an `add` host function to add 2 `i32` values: - - ```c - WasmEdge_Result Add(void *, const WasmEdge_CallingFrameContext *, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - /* - * Params: {i32, i32} - * Returns: {i32} - * Developers should take care about the function type. - */ - /* Retrieve the value 1. */ - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - /* Retrieve the value 2. */ - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - /* Output value 1 is Val1 + Val2. */ - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - /* Return the status of success. */ - return WasmEdge_Result_Success; - } - ``` - - Then developers can create `Function` context with the host function body and the function type: - - ```c - enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, - WasmEdge_ValType_I32}; - enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; - /* Create a function type: {i32, i32} -> {i32}. */ - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - /* - * Create a function context with the function type and host function body. - * The `Cost` parameter can be 0 if developers do not need the cost - * measuring. - */ - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - /* - * The third parameter is the pointer to the additional data. - * Developers should guarantee the life cycle of the data, and it can be - * `NULL` if the external data is not needed. - */ - WasmEdge_FunctionTypeDelete(HostType); +2. Calling frame context - /* - * If the function instance is __NOT__ added into a module instance context, - * it should be deleted. - */ - WasmEdge_FunctionInstanceDelete(HostFunc); - ``` + The `WasmEdge_CallingFrameContext` is the context to provide developers to access the module instance of the [frame on the top of the calling stack](https://webassembly.github.io/spec/core/exec/runtime.html#activations-and-frames). According to the [WASM spec](https://webassembly.github.io/spec/core/exec/instructions.html#function-calls), a frame with the module instance is pushed into the stack when invoking a function. Therefore, the host functions can access the module instance of the top frame to retrieve the memory instances to read/write data. -2. Calling frame context + ```c + WasmEdge_Result LoadOffset(void *Data, + const WasmEdge_CallingFrameContext *CallFrameCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + /* Function type: {i32} -> {} */ + uint32_t Offset = (uint32_t)WasmEdge_ValueGetI32(In[0]); + uint32_t Num = 0; - The `WasmEdge_CallingFrameContext` is the context to provide developers to access the module instance of the [frame on the top of the calling stack](https://webassembly.github.io/spec/core/exec/runtime.html#activations-and-frames). According to the [WASM spec](https://webassembly.github.io/spec/core/exec/instructions.html#function-calls), a frame with the module instance is pushed into the stack when invoking a function. Therefore, the host functions can access the module instance of the top frame to retrieve the memory instances to read/write data. - - ```c - WasmEdge_Result LoadOffset(void *Data, - const WasmEdge_CallingFrameContext *CallFrameCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - /* Function type: {i32} -> {} */ - uint32_t Offset = (uint32_t)WasmEdge_ValueGetI32(In[0]); - uint32_t Num = 0; - - /* - * Get the 0-th memory instance of the module instance of the top frame on - * stack. - */ - WasmEdge_MemoryInstanceContext *MemCxt = - WasmEdge_CallingFrameGetMemoryInstance(CallFrameCxt, 0); - - WasmEdge_Result Res = - WasmEdge_MemoryInstanceGetData(MemCxt, (uint8_t *)(&Num), Offset, 4); - if (WasmEdge_ResultOK(Res)) { - printf("u32 at memory[%lu]: %lu\n", Offset, Num); - } else { - return Res; - } - return WasmEdge_Result_Success; - } - ``` - - Besides using the `WasmEdge_CallingFrameGetMemoryInstance()` API to get the memory instance by index in the module instance, developers can use the `WasmEdge_CallingFrameGetModuleInstance()` to get the module instance directly. Therefore, developers can retrieve the exported contexts by the `WasmEdge_ModuleInstanceContext` APIs. And also, developers can use the `WasmEdge_CallingFrameGetExecutor()` API to get the currently used executor context. + /* + * Get the 0-th memory instance of the module instance of the top frame on + * stack. + */ + WasmEdge_MemoryInstanceContext *MemCxt = + WasmEdge_CallingFrameGetMemoryInstance(CallFrameCxt, 0); + + WasmEdge_Result Res = + WasmEdge_MemoryInstanceGetData(MemCxt, (uint8_t *)(&Num), Offset, 4); + if (WasmEdge_ResultOK(Res)) { + printf("u32 at memory[%lu]: %lu\n", Offset, Num); + } else { + return Res; + } + return WasmEdge_Result_Success; + } + ``` + + Besides using the `WasmEdge_CallingFrameGetMemoryInstance()` API to get the memory instance by index in the module instance, developers can use the `WasmEdge_CallingFrameGetModuleInstance()` to get the module instance directly. Therefore, developers can retrieve the exported contexts by the `WasmEdge_ModuleInstanceContext` APIs. And also, developers can use the `WasmEdge_CallingFrameGetExecutor()` API to get the currently used executor context. 3. User-defined error code of the host functions - In host functions, WasmEdge provides `WasmEdge_Result_Success` to return success, `WasmEdge_Result_Terminate` to terminate the WASM execution, and `WasmEdge_Result_Fail` to return fail. WasmEdge also provides the usage of returning the user-specified codes. Developers can use the `WasmEdge_ResultGen()` API to generate the `WasmEdge_Result` with error code, and use the `WasmEdge_ResultGetCode()` API to get the error code. + In host functions, WasmEdge provides `WasmEdge_Result_Success` to return success, `WasmEdge_Result_Terminate` to terminate the WASM execution, and `WasmEdge_Result_Fail` to return fail. WasmEdge also provides the usage of returning the user-specified codes. Developers can use the `WasmEdge_ResultGen()` API to generate the `WasmEdge_Result` with error code, and use the `WasmEdge_ResultGetCode()` API to get the error code. - > Notice: The error code only supports 24-bit integer (0 ~ 16777216 in `uint32_t`). The values larger than 24-bit will be truncated. + > Notice: The error code only supports 24-bit integer (0 ~ 16777216 in `uint32_t`). The values larger than 24-bit will be truncated. - Assume that a simple WASM from the WAT is as following: + Assume that a simple WASM from the WAT is as following: - ```wasm - (module - (type $t0 (func (param i32))) - (import "extern" "trap" (func $f-trap (type $t0))) - (func (export "trap") (param i32) - local.get 0 - call $f-trap) - ) - ``` - - And the `test.c` is as following: - - ```c - #include - #include - - /* Host function body definition. */ - WasmEdge_Result Trap(void *Data, - const WasmEdge_CallingFrameContext *CallFrameCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val = WasmEdge_ValueGetI32(In[0]); - /* Return the error code from the param[0]. */ - return WasmEdge_ResultGen(WasmEdge_ErrCategory_UserLevelError, Val); - } - - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The WASM module buffer. */ - uint8_t WASM[] = {/* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x05, 0x01, - /* function type {i32} -> {} */ - 0x60, 0x01, 0x7F, 0x00, - /* Import section */ - 0x02, 0x0F, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "trap" */ - 0x04, 0x74, 0x72, 0x61, 0x70, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x08, 0x01, - /* export name: "trap" */ - 0x04, 0x74, 0x72, 0x61, 0x70, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x08, 0x01, - /* code body */ - 0x06, 0x00, 0x20, 0x00, 0x10, 0x00, 0x0B}; - - /* Create the module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); - WasmEdge_ModuleInstanceContext *HostModCxt = - WasmEdge_ModuleInstanceCreate(ExportName); - enum WasmEdge_ValType ParamList[1] = {WasmEdge_ValType_I32}; - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 1, NULL, 0); - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Trap, NULL, 0); - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("trap"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); - WasmEdge_StringDelete(HostFuncName); - - WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(5566)}; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("trap"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( - VMCxt, WASM, sizeof(WASM), FuncName, Params, 1, NULL, 0); - - /* Get the result code and print. */ - printf("Get the error code: %u\n", WasmEdge_ResultGetCode(Res)); - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - WasmEdge_ModuleInstanceDelete(HostModCxt); - return 0; - } - ``` - - Then you can compile and run: (giving the expected error code `5566`) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - [2022-08-26 15:06:40.384] [error] user defined failed: user defined error code, Code: 0x15be - [2022-08-26 15:06:40.384] [error] When executing function name: "trap" - Get the error code: 5566 - ``` + ```wasm + (module + (type $t0 (func (param i32))) + (import "extern" "trap" (func $f-trap (type $t0))) + (func (export "trap") (param i32) + local.get 0 + call $f-trap) + ) + ``` -4. Construct a module instance with host instances + And the `test.c` is as following: - Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + ```c + #include + #include - ```c - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, + /* Host function body definition. */ + WasmEdge_Result Trap(void *Data, const WasmEdge_CallingFrameContext *CallFrameCxt, const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - return WasmEdge_Result_Success; - } - - /* Create a module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("module"); - WasmEdge_ModuleInstanceContext *HostModCxt = - WasmEdge_ModuleInstanceCreate(ExportName); - WasmEdge_StringDelete(ExportName); - - /* Create and add a function instance into the module instance. */ - enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, - WasmEdge_ValType_I32}; - enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - /* - * The third parameter is the pointer to the additional data object. - * Developers should guarantee the life cycle of the data, and it can be - * `NULL` if the external data is not needed. - */ - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("add"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, FuncName, HostFunc); - WasmEdge_StringDelete(FuncName); - - /* Create and add a table instance into the import object. */ - WasmEdge_Limit TableLimit = { - .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; - WasmEdge_TableTypeContext *HostTType = - WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TableLimit); - WasmEdge_TableInstanceContext *HostTable = - WasmEdge_TableInstanceCreate(HostTType); - WasmEdge_TableTypeDelete(HostTType); - WasmEdge_String TableName = WasmEdge_StringCreateByCString("table"); - WasmEdge_ModuleInstanceAddTable(HostModCxt, TableName, HostTable); - WasmEdge_StringDelete(TableName); - - /* Create and add a memory instance into the import object. */ - WasmEdge_Limit MemoryLimit = { - .HasMax = true, .Shared = false, .Min = 1, .Max = 2}; - WasmEdge_MemoryTypeContext *HostMType = - WasmEdge_MemoryTypeCreate(MemoryLimit); - WasmEdge_MemoryInstanceContext *HostMemory = - WasmEdge_MemoryInstanceCreate(HostMType); - WasmEdge_MemoryTypeDelete(HostMType); - WasmEdge_String MemoryName = WasmEdge_StringCreateByCString("memory"); - WasmEdge_ModuleInstanceAddMemory(HostModCxt, MemoryName, HostMemory); - WasmEdge_StringDelete(MemoryName); - - /* Create and add a global instance into the module instance. */ - WasmEdge_GlobalTypeContext *HostGType = WasmEdge_GlobalTypeCreate( - WasmEdge_ValType_I32, WasmEdge_Mutability_Var); - WasmEdge_GlobalInstanceContext *HostGlobal = - WasmEdge_GlobalInstanceCreate(HostGType, WasmEdge_ValueGenI32(666)); - WasmEdge_GlobalTypeDelete(HostGType); - WasmEdge_String GlobalName = WasmEdge_StringCreateByCString("global"); - WasmEdge_ModuleInstanceAddGlobal(HostModCxt, GlobalName, HostGlobal); - WasmEdge_StringDelete(GlobalName); - - /* - * The module instance should be deleted. - * Developers should __NOT__ destroy the instances added into the module - * instance contexts. - */ - WasmEdge_ModuleInstanceDelete(HostModCxt); - ``` + int32_t Val = WasmEdge_ValueGetI32(In[0]); + /* Return the error code from the param[0]. */ + return WasmEdge_ResultGen(WasmEdge_ErrCategory_UserLevelError, Val); + } + + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The WASM module buffer. */ + uint8_t WASM[] = {/* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x05, 0x01, + /* function type {i32} -> {} */ + 0x60, 0x01, 0x7F, 0x00, + /* Import section */ + 0x02, 0x0F, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "trap" */ + 0x04, 0x74, 0x72, 0x61, 0x70, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x08, 0x01, + /* export name: "trap" */ + 0x04, 0x74, 0x72, 0x61, 0x70, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x08, 0x01, + /* code body */ + 0x06, 0x00, 0x20, 0x00, 0x10, 0x00, 0x0B}; + + /* Create the module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); + WasmEdge_ModuleInstanceContext *HostModCxt = + WasmEdge_ModuleInstanceCreate(ExportName); + enum WasmEdge_ValType ParamList[1] = {WasmEdge_ValType_I32}; + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 1, NULL, 0); + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Trap, NULL, 0); + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("trap"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); + WasmEdge_StringDelete(HostFuncName); + + WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = {WasmEdge_ValueGenI32(5566)}; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("trap"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( + VMCxt, WASM, sizeof(WASM), FuncName, Params, 1, NULL, 0); + + /* Get the result code and print. */ + printf("Get the error code: %u\n", WasmEdge_ResultGetCode(Res)); + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + WasmEdge_ModuleInstanceDelete(HostModCxt); + return 0; + } + ``` + + Then you can compile and run: (giving the expected error code `5566`) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + [2022-08-26 15:06:40.384] [error] user defined failed: user defined error code, Code: 0x15be + [2022-08-26 15:06:40.384] [error] When executing function name: "trap" + Get the error code: 5566 + ``` -5. Specified module instance +4. Construct a module instance with host instances - `WasmEdge_ModuleInstanceCreateWASI()` API can create and initialize the `WASI` module instance. + Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + + ```c + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, + const WasmEdge_CallingFrameContext *CallFrameCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + return WasmEdge_Result_Success; + } + + /* Create a module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("module"); + WasmEdge_ModuleInstanceContext *HostModCxt = + WasmEdge_ModuleInstanceCreate(ExportName); + WasmEdge_StringDelete(ExportName); + + /* Create and add a function instance into the module instance. */ + enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, + WasmEdge_ValType_I32}; + enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + /* + * The third parameter is the pointer to the additional data object. + * Developers should guarantee the life cycle of the data, and it can be + * `NULL` if the external data is not needed. + */ + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("add"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, FuncName, HostFunc); + WasmEdge_StringDelete(FuncName); + + /* Create and add a table instance into the import object. */ + WasmEdge_Limit TableLimit = { + .HasMax = true, .Shared = false, .Min = 10, .Max = 20}; + WasmEdge_TableTypeContext *HostTType = + WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TableLimit); + WasmEdge_TableInstanceContext *HostTable = + WasmEdge_TableInstanceCreate(HostTType); + WasmEdge_TableTypeDelete(HostTType); + WasmEdge_String TableName = WasmEdge_StringCreateByCString("table"); + WasmEdge_ModuleInstanceAddTable(HostModCxt, TableName, HostTable); + WasmEdge_StringDelete(TableName); + + /* Create and add a memory instance into the import object. */ + WasmEdge_Limit MemoryLimit = { + .HasMax = true, .Shared = false, .Min = 1, .Max = 2}; + WasmEdge_MemoryTypeContext *HostMType = + WasmEdge_MemoryTypeCreate(MemoryLimit); + WasmEdge_MemoryInstanceContext *HostMemory = + WasmEdge_MemoryInstanceCreate(HostMType); + WasmEdge_MemoryTypeDelete(HostMType); + WasmEdge_String MemoryName = WasmEdge_StringCreateByCString("memory"); + WasmEdge_ModuleInstanceAddMemory(HostModCxt, MemoryName, HostMemory); + WasmEdge_StringDelete(MemoryName); + + /* Create and add a global instance into the module instance. */ + WasmEdge_GlobalTypeContext *HostGType = WasmEdge_GlobalTypeCreate( + WasmEdge_ValType_I32, WasmEdge_Mutability_Var); + WasmEdge_GlobalInstanceContext *HostGlobal = + WasmEdge_GlobalInstanceCreate(HostGType, WasmEdge_ValueGenI32(666)); + WasmEdge_GlobalTypeDelete(HostGType); + WasmEdge_String GlobalName = WasmEdge_StringCreateByCString("global"); + WasmEdge_ModuleInstanceAddGlobal(HostModCxt, GlobalName, HostGlobal); + WasmEdge_StringDelete(GlobalName); + + /* + * The module instance should be deleted. + * Developers should __NOT__ destroy the instances added into the module + * instance contexts. + */ + WasmEdge_ModuleInstanceDelete(HostModCxt); + ``` - `WasmEdge_ModuleInstanceCreateWasiNN()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin. +5. Specified module instance - `WasmEdge_ModuleInstanceCreateWasiCryptoCommon()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin. + `WasmEdge_ModuleInstanceCreateWASI()` API can create and initialize the `WASI` module instance. - `WasmEdge_ModuleInstanceCreateWasiCryptoAsymmetricCommon()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin. + `WasmEdge_ModuleInstanceCreateWasiNN()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin. - `WasmEdge_ModuleInstanceCreateWasiCryptoKx()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin. + `WasmEdge_ModuleInstanceCreateWasiCryptoCommon()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin. - `WasmEdge_ModuleInstanceCreateWasiCryptoSignatures()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin. + `WasmEdge_ModuleInstanceCreateWasiCryptoAsymmetricCommon()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin. - `WasmEdge_ModuleInstanceCreateWasiCryptoSymmetric()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin. + `WasmEdge_ModuleInstanceCreateWasiCryptoKx()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin. - `WasmEdge_ModuleInstanceCreateWasmEdgeProcess()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. + `WasmEdge_ModuleInstanceCreateWasiCryptoSignatures()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin. - Developers can create these module instance contexts and register them into the `Store` or `VM` contexts rather than adjust the settings in the `Configure` contexts. + `WasmEdge_ModuleInstanceCreateWasiCryptoSymmetric()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin. - > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. And the 5 modules are recommended to all be created and registered together. + `WasmEdge_ModuleInstanceCreateWasmEdgeProcess()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. - ```c - WasmEdge_ModuleInstanceContext *WasiModCxt = - WasmEdge_ModuleInstanceCreateWASI(/* ... ignored */); - WasmEdge_ModuleInstanceContext *ProcModCxt = - WasmEdge_ModuleInstanceCreateWasmEdgeProcess(/* ... ignored */); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - /* Register the WASI and WasmEdge_Process into the VM context. */ - WasmEdge_VMRegisterModuleFromImport(VMCxt, WasiModCxt); - WasmEdge_VMRegisterModuleFromImport(VMCxt, ProcModCxt); - /* Get the WASI exit code. */ - uint32_t ExitCode = WasmEdge_ModuleInstanceWASIGetExitCode(WasiModCxt); - /* - * The `ExitCode` will be EXIT_SUCCESS if the execution has no error. - * Otherwise, it will return with the related exit code. - */ - WasmEdge_VMDelete(VMCxt); - /* The module instances should be deleted. */ - WasmEdge_ModuleInstanceDelete(WasiModCxt); - WasmEdge_ModuleInstanceDelete(ProcModCxt); - ``` + Developers can create these module instance contexts and register them into the `Store` or `VM` contexts rather than adjust the settings in the `Configure` contexts. -6. Example + > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequisites](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. And the 5 modules are recommended to all be created and registered together. - Assume that a simple WASM from the WAT is as following: + ```c + WasmEdge_ModuleInstanceContext *WasiModCxt = + WasmEdge_ModuleInstanceCreateWASI(/* ... ignored */); + WasmEdge_ModuleInstanceContext *ProcModCxt = + WasmEdge_ModuleInstanceCreateWasmEdgeProcess(/* ... ignored */); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + /* Register the WASI and WasmEdge_Process into the VM context. */ + WasmEdge_VMRegisterModuleFromImport(VMCxt, WasiModCxt); + WasmEdge_VMRegisterModuleFromImport(VMCxt, ProcModCxt); + /* Get the WASI exit code. */ + uint32_t ExitCode = WasmEdge_ModuleInstanceWASIGetExitCode(WasiModCxt); + /* + * The `ExitCode` will be EXIT_SUCCESS if the execution has no error. + * Otherwise, it will return with the related exit code. + */ + WasmEdge_VMDelete(VMCxt); + /* The module instances should be deleted. */ + WasmEdge_ModuleInstanceDelete(WasiModCxt); + WasmEdge_ModuleInstanceDelete(ProcModCxt); + ``` - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` - - And the `test.c` is as following: - - ```c - #include - #include +6. Example - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, - const WasmEdge_CallingFrameContext *CallFrameCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - printf("Host function \"Add\": %d + %d\n", Val1, Val2); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - return WasmEdge_Result_Success; - } - - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The WASM module buffer. */ - uint8_t WASM[] = {/* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B}; - - /* Create the module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); - WasmEdge_ModuleInstanceContext *HostModCxt = - WasmEdge_ModuleInstanceCreate(ExportName); - enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, - WasmEdge_ValType_I32}; - enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); - WasmEdge_StringDelete(HostFuncName); - - WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[2] = {WasmEdge_ValueGenI32(1234), - WasmEdge_ValueGenI32(5678)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( - VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - WasmEdge_ModuleInstanceDelete(HostModCxt); - return 0; - } - ``` - - Then you can compile and run: (the result of 1234 + 5678 is 6912) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Host function "Add": 1234 + 5678 - Get the result: 6912 - ``` + Assume that a simple WASM from the WAT is as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + And the `test.c` is as following: + + ```c + #include + #include + + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, + const WasmEdge_CallingFrameContext *CallFrameCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + printf("Host function \"Add\": %d + %d\n", Val1, Val2); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + return WasmEdge_Result_Success; + } + + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The WASM module buffer. */ + uint8_t WASM[] = {/* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B}; + + /* Create the module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); + WasmEdge_ModuleInstanceContext *HostModCxt = + WasmEdge_ModuleInstanceCreate(ExportName); + enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, + WasmEdge_ValType_I32}; + enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); + WasmEdge_StringDelete(HostFuncName); + + WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[2] = {WasmEdge_ValueGenI32(1234), + WasmEdge_ValueGenI32(5678)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( + VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + WasmEdge_ModuleInstanceDelete(HostModCxt); + return 0; + } + ``` + + Then you can compile and run: (the result of 1234 + 5678 is 6912) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Host function "Add": 1234 + 5678 + Get the result: 6912 + ``` 7. Host Data Example - Developers can set a external data object to the `Function` context, and access to the object in the function body. Assume that a simple WASM from the WAT is as following: - - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` - - And the `test.c` is as following: - - ```c - #include - #include - - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, - const WasmEdge_CallingFrameContext *CallFrameCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - printf("Host function \"Add\": %d + %d\n", Val1, Val2); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - /* Also set the result to the data. */ - int32_t *DataPtr = (int32_t *)Data; - *DataPtr = Val1 + Val2; - return WasmEdge_Result_Success; - } - - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The WASM module buffer. */ - uint8_t WASM[] = {/* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B}; - - /* The external data object: an integer. */ - int32_t Data; - - /* Create the module instance. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); - WasmEdge_ModuleInstanceContext *HostModCxt = - WasmEdge_ModuleInstanceCreate(ExportName); - enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, - WasmEdge_ValType_I32}; - enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Add, &Data, 0); - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); - WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); - WasmEdge_StringDelete(HostFuncName); - - WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[2] = {WasmEdge_ValueGenI32(1234), - WasmEdge_ValueGenI32(5678)}; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( - VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - printf("Data value: %d\n", Data); - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - WasmEdge_ModuleInstanceDelete(HostModCxt); - return 0; - } - ``` - - Then you can compile and run: (the result of 1234 + 5678 is 6912) - - ```bash - $ gcc test.c -lwasmedge - $ ./a.out - Host function "Add": 1234 + 5678 - Get the result: 6912 - Data value: 6912 - ``` + Developers can set a external data object to the `Function` context, and access to the object in the function body. Assume that a simple WASM from the WAT is as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + And the `test.c` is as following: + + ```c + #include + #include + + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, + const WasmEdge_CallingFrameContext *CallFrameCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + printf("Host function \"Add\": %d + %d\n", Val1, Val2); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + /* Also set the result to the data. */ + int32_t *DataPtr = (int32_t *)Data; + *DataPtr = Val1 + Val2; + return WasmEdge_Result_Success; + } + + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The WASM module buffer. */ + uint8_t WASM[] = {/* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B}; + + /* The external data object: an integer. */ + int32_t Data; + + /* Create the module instance. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); + WasmEdge_ModuleInstanceContext *HostModCxt = + WasmEdge_ModuleInstanceCreate(ExportName); + enum WasmEdge_ValType ParamList[2] = {WasmEdge_ValType_I32, + WasmEdge_ValType_I32}; + enum WasmEdge_ValType ReturnList[1] = {WasmEdge_ValType_I32}; + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Add, &Data, 0); + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); + WasmEdge_ModuleInstanceAddFunction(HostModCxt, HostFuncName, HostFunc); + WasmEdge_StringDelete(HostFuncName); + + WasmEdge_VMRegisterModuleFromImport(VMCxt, HostModCxt); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[2] = {WasmEdge_ValueGenI32(1234), + WasmEdge_ValueGenI32(5678)}; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( + VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + printf("Data value: %d\n", Data); + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + WasmEdge_ModuleInstanceDelete(HostModCxt); + return 0; + } + ``` + + Then you can compile and run: (the result of 1234 + 5678 is 6912) + + ```bash + $ gcc test.c -lwasmedge + $ ./a.out + Host function "Add": 1234 + 5678 + Get the result: 6912 + Data value: 6912 + ``` ### Plug-ins diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/0.9.1.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/0.9.1.md index e6f7669e..661a2840 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/0.9.1.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/0.9.1.md @@ -10,40 +10,40 @@ sidebar_position: 7 ## Table of Contents -- [WasmEdge Installation](#wasmedge-installation) - - [Download And Install](#download-and-install) - - [Compile Sources](#compile-sources) -- [WasmEdge Basics](#wasmedge-basics) - - [Version](#version) - - [Logging Settings](#logging-settings) - - [Value Types](#value-types) - - [Strings](#strings) - - [Results](#results) - - [Contexts](#contexts) - - [WASM data structures](#wasm-data-structures) - - [Async](#async) - - [Configurations](#configurations) - - [Statistics](#statistics) -- [WasmEdge VM](#wasmedge-vm) - - [WASM Execution Example With VM Context](#wasm-execution-example-with-vm-context) - - [VM Creations](#vm-creations) - - [Preregistrations](#preregistrations) - - [Host Module Registrations](#host-module-registrations) - - [WASM Registrations And Executions](#wasm-registrations-and-executions) - - [Asynchronous execution](#asynchronous-execution) - - [Instance Tracing](#instance-tracing) -- [WasmEdge Runtime](#wasmedge-runtime) - - [WASM Execution Example Step-By-Step](#wasm-execution-example-step-by-step) - - [Loader](#loader) - - [Validator](#validator) - - [Executor](#executor) - - [AST Module](#ast-module) - - [Store](#store) - - [Instances](#instances) - - [Host Functions](#host-functions) -- [WasmEdge AOT Compiler](#wasmedge-aot-compiler) - - [Compilation Example](#compilation-example) - - [Compiler Options](#compiler-options) +- [WasmEdge Installation](#wasmedge-installation) + - [Download And Install](#download-and-install) + - [Compile Sources](#compile-sources) +- [WasmEdge Basics](#wasmedge-basics) + - [Version](#version) + - [Logging Settings](#logging-settings) + - [Value Types](#value-types) + - [Strings](#strings) + - [Results](#results) + - [Contexts](#contexts) + - [WASM data structures](#wasm-data-structures) + - [Async](#async) + - [Configurations](#configurations) + - [Statistics](#statistics) +- [WasmEdge VM](#wasmedge-vm) + - [WASM Execution Example With VM Context](#wasm-execution-example-with-vm-context) + - [VM Creations](#vm-creations) + - [Preregistrations](#preregistrations) + - [Host Module Registrations](#host-module-registrations) + - [WASM Registrations And Executions](#wasm-registrations-and-executions) + - [Asynchronous execution](#asynchronous-execution) + - [Instance Tracing](#instance-tracing) +- [WasmEdge Runtime](#wasmedge-runtime) + - [WASM Execution Example Step-By-Step](#wasm-execution-example-step-by-step) + - [Loader](#loader) + - [Validator](#validator) + - [Executor](#executor) + - [AST Module](#ast-module) + - [Store](#store) + - [Instances](#instances) + - [Host Functions](#host-functions) +- [WasmEdge AOT Compiler](#wasmedge-aot-compiler) + - [Compilation Example](#compilation-example) + - [Compiler Options](#compiler-options) ## WasmEdge Installation @@ -63,27 +63,27 @@ After the installation of WasmEdge, the following guide can help you to test for 1. Prepare the test C file (and assumed saved as `test.c`): - ```c - #include - #include - int main() { - printf("WasmEdge version: %s\n", WasmEdge_VersionGet()); - return 0; - } - ``` + ```c + #include + #include + int main() { + printf("WasmEdge version: %s\n", WasmEdge_VersionGet()); + return 0; + } + ``` 2. Compile the file with `gcc` or `clang`. - ```bash - gcc test.c -lwasmedge_c - ``` + ```bash + gcc test.c -lwasmedge_c + ``` 3. Run and get the expected output. - ```bash - $ ./a.out - WasmEdge version: 0.9.1 - ``` + ```bash + $ ./a.out + WasmEdge version: 0.9.1 + ``` ## WasmEdge Basics @@ -111,51 +111,51 @@ In WasmEdge, developers should convert the values to `WasmEdge_Value` objects th 1. Number types: `i32`, `i64`, `f32`, `f64`, and `v128` for the `SIMD` proposal - ```c - WasmEdge_Value Val; - Val = WasmEdge_ValueGenI32(123456); - printf("%d\n", WasmEdge_ValueGetI32(Val)); - /* Will print "123456" */ - Val = WasmEdge_ValueGenI64(1234567890123LL); - printf("%ld\n", WasmEdge_ValueGetI64(Val)); - /* Will print "1234567890123" */ - Val = WasmEdge_ValueGenF32(123.456f); - printf("%f\n", WasmEdge_ValueGetF32(Val)); - /* Will print "123.456001" */ - Val = WasmEdge_ValueGenF64(123456.123456789); - printf("%.10f\n", WasmEdge_ValueGetF64(Val)); - /* Will print "123456.1234567890" */ - ``` + ```c + WasmEdge_Value Val; + Val = WasmEdge_ValueGenI32(123456); + printf("%d\n", WasmEdge_ValueGetI32(Val)); + /* Will print "123456" */ + Val = WasmEdge_ValueGenI64(1234567890123LL); + printf("%ld\n", WasmEdge_ValueGetI64(Val)); + /* Will print "1234567890123" */ + Val = WasmEdge_ValueGenF32(123.456f); + printf("%f\n", WasmEdge_ValueGetF32(Val)); + /* Will print "123.456001" */ + Val = WasmEdge_ValueGenF64(123456.123456789); + printf("%.10f\n", WasmEdge_ValueGetF64(Val)); + /* Will print "123456.1234567890" */ + ``` 2. Reference types: `funcref` and `externref` for the `Reference-Types` proposal - ```c - WasmEdge_Value Val; - void *Ptr; - bool IsNull; - uint32_t Num = 10; - /* Generate a externref to NULL. */ - Val = WasmEdge_ValueGenNullRef(WasmEdge_RefType_ExternRef); - IsNull = WasmEdge_ValueIsNullRef(Val); - /* The `IsNull` will be `TRUE`. */ - Ptr = WasmEdge_ValueGetExternRef(Val); - /* The `Ptr` will be `NULL`. */ - - /* Generate a funcref with function index 20. */ - Val = WasmEdge_ValueGenFuncRef(20); - uint32_t FuncIdx = WasmEdge_ValueGetFuncIdx(Val); - /* The `FuncIdx` will be 20. */ - - /* Generate a externref to `Num`. */ - Val = WasmEdge_ValueGenExternRef(&Num); - Ptr = WasmEdge_ValueGetExternRef(Val); - /* The `Ptr` will be `&Num`. */ - printf("%u\n", *(uint32_t *)Ptr); - /* Will print "10" */ - Num += 55; - printf("%u\n", *(uint32_t *)Ptr); - /* Will print "65" */ - ``` + ```c + WasmEdge_Value Val; + void *Ptr; + bool IsNull; + uint32_t Num = 10; + /* Generate a externref to NULL. */ + Val = WasmEdge_ValueGenNullRef(WasmEdge_RefType_ExternRef); + IsNull = WasmEdge_ValueIsNullRef(Val); + /* The `IsNull` will be `TRUE`. */ + Ptr = WasmEdge_ValueGetExternRef(Val); + /* The `Ptr` will be `NULL`. */ + + /* Generate a funcref with function index 20. */ + Val = WasmEdge_ValueGenFuncRef(20); + uint32_t FuncIdx = WasmEdge_ValueGetFuncIdx(Val); + /* The `FuncIdx` will be 20. */ + + /* Generate a externref to `Num`. */ + Val = WasmEdge_ValueGenExternRef(&Num); + Ptr = WasmEdge_ValueGetExternRef(Val); + /* The `Ptr` will be `&Num`. */ + printf("%u\n", *(uint32_t *)Ptr); + /* Will print "10" */ + Num += 55; + printf("%u\n", *(uint32_t *)Ptr); + /* Will print "65" */ + ``` ### Strings @@ -163,49 +163,49 @@ The `WasmEdge_String` object is for the instance names when invoking a WASM func 1. Create a `WasmEdge_String` from a C string (`const char *` with NULL termination) or a buffer with length. - The content of the C string or buffer will be copied into the `WasmEdge_String` object. + The content of the C string or buffer will be copied into the `WasmEdge_String` object. - ```c - char Buf[4] = {50, 55, 60, 65}; - WasmEdge_String Str1 = WasmEdge_StringCreateByCString("test"); - WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); - /* The objects should be deleted by `WasmEdge_StringDelete()`. */ - WasmEdge_StringDelete(Str1); - WasmEdge_StringDelete(Str2); - ``` + ```c + char Buf[4] = {50, 55, 60, 65}; + WasmEdge_String Str1 = WasmEdge_StringCreateByCString("test"); + WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); + /* The objects should be deleted by `WasmEdge_StringDelete()`. */ + WasmEdge_StringDelete(Str1); + WasmEdge_StringDelete(Str2); + ``` 2. Wrap a `WasmEdge_String` to a buffer with length. - The content will not be copied, and the caller should guarantee the life cycle of the input buffer. + The content will not be copied, and the caller should guarantee the life cycle of the input buffer. - ```c - const char CStr[] = "test"; - WasmEdge_String Str = WasmEdge_StringWrap(CStr, 4); - /* The object should __NOT__ be deleted by `WasmEdge_StringDelete()`. */ - ``` + ```c + const char CStr[] = "test"; + WasmEdge_String Str = WasmEdge_StringWrap(CStr, 4); + /* The object should __NOT__ be deleted by `WasmEdge_StringDelete()`. */ + ``` 3. String comparison - ```c - const char CStr[] = "abcd"; - char Buf[4] = {0x61, 0x62, 0x63, 0x64}; - WasmEdge_String Str1 = WasmEdge_StringWrap(CStr, 4); - WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); - bool IsEq = WasmEdge_StringIsEqual(Str1, Str2); - /* The `IsEq` will be `TRUE`. */ - WasmEdge_StringDelete(Str2); - ``` + ```c + const char CStr[] = "abcd"; + char Buf[4] = {0x61, 0x62, 0x63, 0x64}; + WasmEdge_String Str1 = WasmEdge_StringWrap(CStr, 4); + WasmEdge_String Str2 = WasmEdge_StringCreateByBuffer(Buf, 4); + bool IsEq = WasmEdge_StringIsEqual(Str1, Str2); + /* The `IsEq` will be `TRUE`. */ + WasmEdge_StringDelete(Str2); + ``` 4. Convert to C string - ```c - char Buf[256]; - WasmEdge_String Str = WasmEdge_StringCreateByCString("test_wasmedge_string"); - uint32_t StrLength = WasmEdge_StringCopy(Str, Buf, sizeof(Buf)); - /* StrLength will be 20 */ - printf("String: %s\n", Buf); - /* Will print "test_wasmedge_string". */ - ``` + ```c + char Buf[256]; + WasmEdge_String Str = WasmEdge_StringCreateByCString("test_wasmedge_string"); + uint32_t StrLength = WasmEdge_StringCopy(Str, Buf, sizeof(Buf)); + /* StrLength will be 20 */ + printf("String: %s\n", Buf); + /* Will print "test_wasmedge_string". */ + ``` ### Results @@ -240,143 +240,143 @@ The WASM data structures are used for creating instances or can be queried from 1. Limit - The `WasmEdge_Limit` struct is defined in the header: + The `WasmEdge_Limit` struct is defined in the header: - ```c - /// Struct of WASM limit. - typedef struct WasmEdge_Limit { - /// Boolean to describe has max value or not. - bool HasMax; - /// Minimum value. - uint32_t Min; - /// Maximum value. Will be ignored if the `HasMax` is false. - uint32_t Max; - } WasmEdge_Limit; - ``` + ```c + /// Struct of WASM limit. + typedef struct WasmEdge_Limit { + /// Boolean to describe has max value or not. + bool HasMax; + /// Minimum value. + uint32_t Min; + /// Maximum value. Will be ignored if the `HasMax` is false. + uint32_t Max; + } WasmEdge_Limit; + ``` - Developers can initialize the struct by assigning it's value, and the `Max` value is needed to be larger or equal to the `Min` value. The API `WasmEdge_LimitIsEqual()` is provided to compare with 2 `WasmEdge_Limit` structs. + Developers can initialize the struct by assigning it's value, and the `Max` value is needed to be larger or equal to the `Min` value. The API `WasmEdge_LimitIsEqual()` is provided to compare with 2 `WasmEdge_Limit` structs. 2. Function type context - The `Function Type` context is used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `Function Type` context APIs to get the parameter or return value types information. + The `Function Type` context is used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `Function Type` context APIs to get the parameter or return value types information. - ```c - enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I64 }; - enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_FuncRef }; - WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + ```c + enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I64 }; + enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_FuncRef }; + WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - enum WasmEdge_ValType Buf[16]; - uint32_t ParamLen = WasmEdge_FunctionTypeGetParametersLength(FuncTypeCxt); - /* `ParamLen` will be 2. */ - uint32_t GotParamLen = WasmEdge_FunctionTypeGetParameters(FuncTypeCxt, Buf, 16); - /* `GotParamLen` will be 2, and `Buf[0]` and `Buf[1]` will be the same as `ParamList`. */ - uint32_t ReturnLen = WasmEdge_FunctionTypeGetReturnsLength(FuncTypeCxt); - /* `ReturnLen` will be 1. */ - uint32_t GotReturnLen = WasmEdge_FunctionTypeGetReturns(FuncTypeCxt, Buf, 16); - /* `GotReturnLen` will be 1, and `Buf[0]` will be the same as `ReturnList`. */ + enum WasmEdge_ValType Buf[16]; + uint32_t ParamLen = WasmEdge_FunctionTypeGetParametersLength(FuncTypeCxt); + /* `ParamLen` will be 2. */ + uint32_t GotParamLen = WasmEdge_FunctionTypeGetParameters(FuncTypeCxt, Buf, 16); + /* `GotParamLen` will be 2, and `Buf[0]` and `Buf[1]` will be the same as `ParamList`. */ + uint32_t ReturnLen = WasmEdge_FunctionTypeGetReturnsLength(FuncTypeCxt); + /* `ReturnLen` will be 1. */ + uint32_t GotReturnLen = WasmEdge_FunctionTypeGetReturns(FuncTypeCxt, Buf, 16); + /* `GotReturnLen` will be 1, and `Buf[0]` will be the same as `ReturnList`. */ - WasmEdge_FunctionTypeDelete(FuncTypeCxt); - ``` + WasmEdge_FunctionTypeDelete(FuncTypeCxt); + ``` 3. Table type context - The `Table Type` context is used for `Table` instance creation or getting information from `Table` instances. + The `Table Type` context is used for `Table` instance creation or getting information from `Table` instances. - ```c - WasmEdge_Limit TabLim = {.HasMax = true, .Min = 10, .Max = 20}; - WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_TableTypeCreate(WasmEdge_RefType_ExternRef, TabLim); + ```c + WasmEdge_Limit TabLim = {.HasMax = true, .Min = 10, .Max = 20}; + WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_TableTypeCreate(WasmEdge_RefType_ExternRef, TabLim); - enum WasmEdge_RefType GotRefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); - /* `GotRefType` will be WasmEdge_RefType_ExternRef. */ - WasmEdge_Limit GotTabLim = WasmEdge_TableTypeGetLimit(TabTypeCxt); - /* `GotTabLim` will be the same value as `TabLim`. */ + enum WasmEdge_RefType GotRefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); + /* `GotRefType` will be WasmEdge_RefType_ExternRef. */ + WasmEdge_Limit GotTabLim = WasmEdge_TableTypeGetLimit(TabTypeCxt); + /* `GotTabLim` will be the same value as `TabLim`. */ - WasmEdge_TableTypeDelete(TabTypeCxt); - ``` + WasmEdge_TableTypeDelete(TabTypeCxt); + ``` 4. Memory type context - The `Memory Type` context is used for `Memory` instance creation or getting information from `Memory` instances. + The `Memory Type` context is used for `Memory` instance creation or getting information from `Memory` instances. - ```c - WasmEdge_Limit MemLim = {.HasMax = true, .Min = 10, .Max = 20}; - WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLim); + ```c + WasmEdge_Limit MemLim = {.HasMax = true, .Min = 10, .Max = 20}; + WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLim); - WasmEdge_Limit GotMemLim = WasmEdge_MemoryTypeGetLimit(MemTypeCxt); - /* `GotMemLim` will be the same value as `MemLim`. */ + WasmEdge_Limit GotMemLim = WasmEdge_MemoryTypeGetLimit(MemTypeCxt); + /* `GotMemLim` will be the same value as `MemLim`. */ - WasmEdge_MemoryTypeDelete(MemTypeCxt) - ``` + WasmEdge_MemoryTypeDelete(MemTypeCxt) + ``` 5. Global type context - The `Global Type` context is used for `Global` instance creation or getting information from `Global` instances. + The `Global Type` context is used for `Global` instance creation or getting information from `Global` instances. - ```c - WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate(WasmEdge_ValType_F64, WasmEdge_Mutability_Var); + ```c + WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate(WasmEdge_ValType_F64, WasmEdge_Mutability_Var); - WasmEdge_ValType GotValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); - /* `GotValType` will be WasmEdge_ValType_F64. */ - WasmEdge_Mutability GotValMut = WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); - /* `GotValMut` will be WasmEdge_Mutability_Var. */ + WasmEdge_ValType GotValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); + /* `GotValType` will be WasmEdge_ValType_F64. */ + WasmEdge_Mutability GotValMut = WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); + /* `GotValMut` will be WasmEdge_Mutability_Var. */ - WasmEdge_GlobalTypeDelete(GlobTypeCxt); - ``` + WasmEdge_GlobalTypeDelete(GlobTypeCxt); + ``` 6. Import type context - The `Import Type` context is used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `Import Type` context. The details about querying `Import Type` contexts will be introduced in the [AST Module](#ast-module). + The `Import Type` context is used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `Import Type` context. The details about querying `Import Type` contexts will be introduced in the [AST Module](#ast-module). - ```c - WasmEdge_ASTModuleContext *ASTCxt = ...; - /* Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the result of loading a WASM file. */ - const WasmEdge_ImportTypeContext *ImpType = ...; - /* Assume that `ImpType` is queried from the `ASTCxt` for the import. */ + ```c + WasmEdge_ASTModuleContext *ASTCxt = ...; + /* Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the result of loading a WASM file. */ + const WasmEdge_ImportTypeContext *ImpType = ...; + /* Assume that `ImpType` is queried from the `ASTCxt` for the import. */ - enum WasmEdge_ExternalType ExtType = WasmEdge_ImportTypeGetExternalType(ImpType); - /* - * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, `WasmEdge_ExternalType_Table`, - * `WasmEdge_ExternalType_Memory`, or `WasmEdge_ExternalType_Global`. - */ - WasmEdge_String ModName = WasmEdge_ImportTypeGetModuleName(ImpType); - WasmEdge_String ExtName = WasmEdge_ImportTypeGetExternalName(ImpType); - /* The `ModName` and `ExtName` should not be destroyed and the string buffers are binded into the `ASTCxt`. */ - const WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_ImportTypeGetFunctionType(ASTCxt, ImpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Function`, the `FuncTypeCxt` will be NULL. */ - const WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_ImportTypeGetTableType(ASTCxt, ImpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` will be NULL. */ - const WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_ImportTypeGetMemoryType(ASTCxt, ImpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` will be NULL. */ - const WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_ImportTypeGetGlobalType(ASTCxt, ImpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` will be NULL. */ - ``` + enum WasmEdge_ExternalType ExtType = WasmEdge_ImportTypeGetExternalType(ImpType); + /* + * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, `WasmEdge_ExternalType_Table`, + * `WasmEdge_ExternalType_Memory`, or `WasmEdge_ExternalType_Global`. + */ + WasmEdge_String ModName = WasmEdge_ImportTypeGetModuleName(ImpType); + WasmEdge_String ExtName = WasmEdge_ImportTypeGetExternalName(ImpType); + /* The `ModName` and `ExtName` should not be destroyed and the string buffers are binded into the `ASTCxt`. */ + const WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_ImportTypeGetFunctionType(ASTCxt, ImpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Function`, the `FuncTypeCxt` will be NULL. */ + const WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_ImportTypeGetTableType(ASTCxt, ImpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` will be NULL. */ + const WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_ImportTypeGetMemoryType(ASTCxt, ImpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` will be NULL. */ + const WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_ImportTypeGetGlobalType(ASTCxt, ImpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` will be NULL. */ + ``` 7. Export type context - The `Export Type` context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `Export Type` contexts will be introduced in the [AST Module](#ast-module). + The `Export Type` context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `Export Type` contexts will be introduced in the [AST Module](#ast-module). - ```c - WasmEdge_ASTModuleContext *ASTCxt = ...; - /* Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the result of loading a WASM file. */ - const WasmEdge_ExportTypeContext *ExpType = ...; - /* Assume that `ExpType` is queried from the `ASTCxt` for the export. */ + ```c + WasmEdge_ASTModuleContext *ASTCxt = ...; + /* Assume that `ASTCxt` is returned by the `WasmEdge_LoaderContext` for the result of loading a WASM file. */ + const WasmEdge_ExportTypeContext *ExpType = ...; + /* Assume that `ExpType` is queried from the `ASTCxt` for the export. */ - enum WasmEdge_ExternalType ExtType = WasmEdge_ExportTypeGetExternalType(ExpType); - /* - * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, `WasmEdge_ExternalType_Table`, - * `WasmEdge_ExternalType_Memory`, or `WasmEdge_ExternalType_Global`. - */ - WasmEdge_String ExtName = WasmEdge_ExportTypeGetExternalName(ExpType); - /* The `ExtName` should not be destroyed and the string buffer is binded into the `ASTCxt`. */ - const WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_ExportTypeGetFunctionType(ASTCxt, ExpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Function`, the `FuncTypeCxt` will be NULL. */ - const WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_ExportTypeGetTableType(ASTCxt, ExpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` will be NULL. */ - const WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_ExportTypeGetMemoryType(ASTCxt, ExpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` will be NULL. */ - const WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_ExportTypeGetGlobalType(ASTCxt, ExpType); - /* If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` will be NULL. */ - ``` + enum WasmEdge_ExternalType ExtType = WasmEdge_ExportTypeGetExternalType(ExpType); + /* + * The `ExtType` can be one of `WasmEdge_ExternalType_Function`, `WasmEdge_ExternalType_Table`, + * `WasmEdge_ExternalType_Memory`, or `WasmEdge_ExternalType_Global`. + */ + WasmEdge_String ExtName = WasmEdge_ExportTypeGetExternalName(ExpType); + /* The `ExtName` should not be destroyed and the string buffer is binded into the `ASTCxt`. */ + const WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_ExportTypeGetFunctionType(ASTCxt, ExpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Function`, the `FuncTypeCxt` will be NULL. */ + const WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_ExportTypeGetTableType(ASTCxt, ExpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Table`, the `TabTypeCxt` will be NULL. */ + const WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_ExportTypeGetMemoryType(ASTCxt, ExpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Memory`, the `MemTypeCxt` will be NULL. */ + const WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_ExportTypeGetGlobalType(ASTCxt, ExpType); + /* If the `ExtType` is not `WasmEdge_ExternalType_Global`, the `GlobTypeCxt` will be NULL. */ + ``` ### Async @@ -384,54 +384,54 @@ After calling the [asynchronous execution APIs](#asynchronous-execution), develo 1. Wait for the asynchronous execution - Developers can wait the execution until finished: - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution. */ - WasmEdge_AsyncWait(Async); - WasmEdge_AsyncDelete(Async); - ``` - - Or developers can wait for a time limit. If the time limit exceeded, developers can choose to cancel the execution. For the interruptible execution in AOT mode, developers should set `TRUE` through the `WasmEdge_ConfigureCompilerSetInterruptible()` API into the configure context for the AOT compiler. - - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution for 1 second. */ - bool IsEnd = WasmEdge_AsyncWaitFor(Async, 1000); - if (IsEnd) { - /* The execution finished. Developers can get the result. */ - WasmEdge_Result Res = WasmEdge_AsyncGet(/* ... Ignored */); - } else { - /* The time limit exceeded. Developers can keep waiting or cancel the execution. */ - WasmEdge_AsyncCancel(Async); - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, 0, NULL); - /* The result error code will be `WasmEdge_ErrCode_Interrupted`. */ - } - WasmEdge_AsyncDelete(Async); - ``` + Developers can wait the execution until finished: + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution. */ + WasmEdge_AsyncWait(Async); + WasmEdge_AsyncDelete(Async); + ``` + + Or developers can wait for a time limit. If the time limit exceeded, developers can choose to cancel the execution. For the interruptible execution in AOT mode, developers should set `TRUE` through the `WasmEdge_ConfigureCompilerSetInterruptible()` API into the configure context for the AOT compiler. + + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution for 1 second. */ + bool IsEnd = WasmEdge_AsyncWaitFor(Async, 1000); + if (IsEnd) { + /* The execution finished. Developers can get the result. */ + WasmEdge_Result Res = WasmEdge_AsyncGet(/* ... Ignored */); + } else { + /* The time limit exceeded. Developers can keep waiting or cancel the execution. */ + WasmEdge_AsyncCancel(Async); + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, 0, NULL); + /* The result error code will be `WasmEdge_ErrCode_Interrupted`. */ + } + WasmEdge_AsyncDelete(Async); + ``` 2. Get the execution result of the asynchronous execution - Developers can use the `WasmEdge_AsyncGetReturnsLength()` API to get the return value list length. This function will block and wait for the execution. If the execution has finished, this function will return the length immediately. If the execution failed, this function will return `0`. This function can help the developers to create the buffer to get the return values. If developers have already known the buffer length, they can skip this function and use the `WasmEdge_AsyncGet()` API to get the result. + Developers can use the `WasmEdge_AsyncGetReturnsLength()` API to get the return value list length. This function will block and wait for the execution. If the execution has finished, this function will return the length immediately. If the execution failed, this function will return `0`. This function can help the developers to create the buffer to get the return values. If developers have already known the buffer length, they can skip this function and use the `WasmEdge_AsyncGet()` API to get the result. - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution and get the return value list length. */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - WasmEdge_AsyncDelete(Async); - ``` + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution and get the return value list length. */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + WasmEdge_AsyncDelete(Async); + ``` - The `WasmEdge_AsyncGet()` API will block and wait for the execution. If the execution has finished, this function will fill the return values into the buffer and return the execution result immediately. + The `WasmEdge_AsyncGet()` API will block and wait for the execution. If the execution has finished, this function will fill the return values into the buffer and return the execution result immediately. - ```c - WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ - /* Blocking and waiting for the execution and get the return values. */ - const uint32_t BUF_LEN = 256; - WasmEdge_Value Buf[BUF_LEN]; - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Buf, BUF_LEN); - WasmEdge_AsyncDelete(Async); - ``` + ```c + WasmEdge_Async *Async = ...; /* Ignored. Asynchronous execute a function. */ + /* Blocking and waiting for the execution and get the return values. */ + const uint32_t BUF_LEN = 256; + WasmEdge_Value Buf[BUF_LEN]; + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Buf, BUF_LEN); + WasmEdge_AsyncDelete(Async); + ``` ### Configurations @@ -439,148 +439,148 @@ The configuration context, `WasmEdge_ConfigureContext`, manages the configuratio 1. Proposals - WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` context. - - ```c - enum WasmEdge_Proposal { - WasmEdge_Proposal_ImportExportMutGlobals = 0, - WasmEdge_Proposal_NonTrapFloatToIntConversions, - WasmEdge_Proposal_SignExtensionOperators, - WasmEdge_Proposal_MultiValue, - WasmEdge_Proposal_BulkMemoryOperations, - WasmEdge_Proposal_ReferenceTypes, - WasmEdge_Proposal_SIMD, - WasmEdge_Proposal_TailCall, - WasmEdge_Proposal_MultiMemories, - WasmEdge_Proposal_Annotations, - WasmEdge_Proposal_Memory64, - WasmEdge_Proposal_ExceptionHandling, - WasmEdge_Proposal_Threads, - WasmEdge_Proposal_FunctionReferences - }; - ``` - - Developers can add or remove the proposals into the `Configure` context. - - ```c - /* - * By default, the following proposals have turned on initially: - * * Import/Export of mutable globals - * * Non-trapping float-to-int conversions - * * Sign-extension operators - * * Multi-value returns - * * Bulk memory operations - * * Reference types - * * Fixed-width SIMD - */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddProposal(ConfCxt, WasmEdge_Proposal_MultiMemories); - WasmEdge_ConfigureRemoveProposal(ConfCxt, WasmEdge_Proposal_ReferenceTypes); - bool IsBulkMem = WasmEdge_ConfigureHasProposal(ConfCxt, WasmEdge_Proposal_BulkMemoryOperations); - /* The `IsBulkMem` will be `TRUE`. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` context. + + ```c + enum WasmEdge_Proposal { + WasmEdge_Proposal_ImportExportMutGlobals = 0, + WasmEdge_Proposal_NonTrapFloatToIntConversions, + WasmEdge_Proposal_SignExtensionOperators, + WasmEdge_Proposal_MultiValue, + WasmEdge_Proposal_BulkMemoryOperations, + WasmEdge_Proposal_ReferenceTypes, + WasmEdge_Proposal_SIMD, + WasmEdge_Proposal_TailCall, + WasmEdge_Proposal_MultiMemories, + WasmEdge_Proposal_Annotations, + WasmEdge_Proposal_Memory64, + WasmEdge_Proposal_ExceptionHandling, + WasmEdge_Proposal_Threads, + WasmEdge_Proposal_FunctionReferences + }; + ``` + + Developers can add or remove the proposals into the `Configure` context. + + ```c + /* + * By default, the following proposals have turned on initially: + * * Import/Export of mutable globals + * * Non-trapping float-to-int conversions + * * Sign-extension operators + * * Multi-value returns + * * Bulk memory operations + * * Reference types + * * Fixed-width SIMD + */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddProposal(ConfCxt, WasmEdge_Proposal_MultiMemories); + WasmEdge_ConfigureRemoveProposal(ConfCxt, WasmEdge_Proposal_ReferenceTypes); + bool IsBulkMem = WasmEdge_ConfigureHasProposal(ConfCxt, WasmEdge_Proposal_BulkMemoryOperations); + /* The `IsBulkMem` will be `TRUE`. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 2. Host registrations - This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` contexts. + This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` contexts. - ```c - enum WasmEdge_HostRegistration { - WasmEdge_HostRegistration_Wasi = 0, - WasmEdge_HostRegistration_WasmEdge_Process - }; - ``` + ```c + enum WasmEdge_HostRegistration { + WasmEdge_HostRegistration_Wasi = 0, + WasmEdge_HostRegistration_WasmEdge_Process + }; + ``` - The details will be introduced in the [preregistrations of VM context](#preregistrations). + The details will be introduced in the [preregistrations of VM context](#preregistrations). - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - bool IsHostWasi = WasmEdge_ConfigureHasHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The `IsHostWasi` will be `FALSE`. */ - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - IsHostWasi = WasmEdge_ConfigureHasHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The `IsHostWasi` will be `TRUE`. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + bool IsHostWasi = WasmEdge_ConfigureHasHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The `IsHostWasi` will be `FALSE`. */ + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + IsHostWasi = WasmEdge_ConfigureHasHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The `IsHostWasi` will be `TRUE`. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 3. Maximum memory pages - Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` contexts. + Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` contexts. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - uint32_t PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); - /* By default, the maximum memory page size is 65536. */ - WasmEdge_ConfigureSetMaxMemoryPage(ConfCxt, 1024); - /* Limit the memory size of each memory instance with not larger than 1024 pages (64 MiB). */ - PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); - /* The `PageSize` will be 1024. */ - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + uint32_t PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); + /* By default, the maximum memory page size is 65536. */ + WasmEdge_ConfigureSetMaxMemoryPage(ConfCxt, 1024); + /* Limit the memory size of each memory instance with not larger than 1024 pages (64 MiB). */ + PageSize = WasmEdge_ConfigureGetMaxMemoryPage(ConfCxt); + /* The `PageSize` will be 1024. */ + WasmEdge_ConfigureDelete(ConfCxt); + ``` 4. AOT compiler options - The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. - - ```c - enum WasmEdge_CompilerOptimizationLevel { - /// Disable as many optimizations as possible. - WasmEdge_CompilerOptimizationLevel_O0 = 0, - /// Optimize quickly without destroying debuggability. - WasmEdge_CompilerOptimizationLevel_O1, - /// Optimize for fast execution as much as possible without triggering - /// significant incremental compile time or code size growth. - WasmEdge_CompilerOptimizationLevel_O2, - /// Optimize for fast execution as much as possible. - WasmEdge_CompilerOptimizationLevel_O3, - /// Optimize for small code size as much as possible without triggering - /// significant incremental compile time or execution time slowdowns. - WasmEdge_CompilerOptimizationLevel_Os, - /// Optimize for small code size as much as possible. - WasmEdge_CompilerOptimizationLevel_Oz - }; - - enum WasmEdge_CompilerOutputFormat { - /// Native dynamic library format. - WasmEdge_CompilerOutputFormat_Native = 0, - /// WebAssembly with AOT compiled codes in custom section. - WasmEdge_CompilerOutputFormat_Wasm - }; - ``` - - These configurations are only effective in `Compiler` contexts. - - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - /* By default, the optimization level is O3. */ - WasmEdge_ConfigureCompilerSetOptimizationLevel(ConfCxt, WasmEdge_CompilerOptimizationLevel_O2); - /* By default, the output format is universal WASM. */ - WasmEdge_ConfigureCompilerSetOutputFormat(ConfCxt, WasmEdge_CompilerOutputFormat_Native); - /* By default, the dump IR is `FALSE`. */ - WasmEdge_ConfigureCompilerSetDumpIR(ConfCxt, TRUE); - /* By default, the generic binary is `FALSE`. */ - WasmEdge_ConfigureCompilerSetGenericBinary(ConfCxt, TRUE); - /* By default, the interruptible is `FALSE`. - /* Set this option to `TRUE` to support the interruptible execution in AOT mode. */ - WasmEdge_ConfigureCompilerSetInterruptible(ConfCxt, TRUE); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. + + ```c + enum WasmEdge_CompilerOptimizationLevel { + /// Disable as many optimizations as possible. + WasmEdge_CompilerOptimizationLevel_O0 = 0, + /// Optimize quickly without destroying debuggability. + WasmEdge_CompilerOptimizationLevel_O1, + /// Optimize for fast execution as much as possible without triggering + /// significant incremental compile time or code size growth. + WasmEdge_CompilerOptimizationLevel_O2, + /// Optimize for fast execution as much as possible. + WasmEdge_CompilerOptimizationLevel_O3, + /// Optimize for small code size as much as possible without triggering + /// significant incremental compile time or execution time slowdowns. + WasmEdge_CompilerOptimizationLevel_Os, + /// Optimize for small code size as much as possible. + WasmEdge_CompilerOptimizationLevel_Oz + }; + + enum WasmEdge_CompilerOutputFormat { + /// Native dynamic library format. + WasmEdge_CompilerOutputFormat_Native = 0, + /// WebAssembly with AOT compiled codes in custom section. + WasmEdge_CompilerOutputFormat_Wasm + }; + ``` + + These configurations are only effective in `Compiler` contexts. + + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + /* By default, the optimization level is O3. */ + WasmEdge_ConfigureCompilerSetOptimizationLevel(ConfCxt, WasmEdge_CompilerOptimizationLevel_O2); + /* By default, the output format is universal WASM. */ + WasmEdge_ConfigureCompilerSetOutputFormat(ConfCxt, WasmEdge_CompilerOutputFormat_Native); + /* By default, the dump IR is `FALSE`. */ + WasmEdge_ConfigureCompilerSetDumpIR(ConfCxt, TRUE); + /* By default, the generic binary is `FALSE`. */ + WasmEdge_ConfigureCompilerSetGenericBinary(ConfCxt, TRUE); + /* By default, the interruptible is `FALSE`. + /* Set this option to `TRUE` to support the interruptible execution in AOT mode. */ + WasmEdge_ConfigureCompilerSetInterruptible(ConfCxt, TRUE); + WasmEdge_ConfigureDelete(ConfCxt); + ``` 5. Statistics options - The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` contexts. + The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` contexts. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - /* By default, the instruction counting is `FALSE` when running a compiled-WASM or a pure-WASM. */ - WasmEdge_ConfigureStatisticsSetInstructionCounting(ConfCxt, TRUE); - /* By default, the cost measurement is `FALSE` when running a compiled-WASM or a pure-WASM. */ - WasmEdge_ConfigureStatisticsSetCostMeasuring(ConfCxt, TRUE); - /* By default, the time measurement is `FALSE` when running a compiled-WASM or a pure-WASM. */ - WasmEdge_ConfigureStatisticsSetTimeMeasuring(ConfCxt, TRUE); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + /* By default, the instruction counting is `FALSE` when running a compiled-WASM or a pure-WASM. */ + WasmEdge_ConfigureStatisticsSetInstructionCounting(ConfCxt, TRUE); + /* By default, the cost measurement is `FALSE` when running a compiled-WASM or a pure-WASM. */ + WasmEdge_ConfigureStatisticsSetCostMeasuring(ConfCxt, TRUE); + /* By default, the time measurement is `FALSE` when running a compiled-WASM or a pure-WASM. */ + WasmEdge_ConfigureStatisticsSetTimeMeasuring(ConfCxt, TRUE); + WasmEdge_ConfigureDelete(ConfCxt); + ``` ### Statistics @@ -590,45 +590,45 @@ Before using statistics, the statistics configuration must be set. Otherwise, th 1. Instruction counter - The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` context from the `VM` context, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. + The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` context from the `VM` context, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. - ```c - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* .... - * After running the WASM functions with the `Statistics` context - */ - uint32_t Count = WasmEdge_StatisticsGetInstrCount(StatCxt); - double IPS = WasmEdge_StatisticsGetInstrPerSecond(StatCxt); - WasmEdge_StatisticsDelete(StatCxt); - ``` + ```c + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* .... + * After running the WASM functions with the `Statistics` context + */ + uint32_t Count = WasmEdge_StatisticsGetInstrCount(StatCxt); + double IPS = WasmEdge_StatisticsGetInstrPerSecond(StatCxt); + WasmEdge_StatisticsDelete(StatCxt); + ``` 2. Cost table - The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` context. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. - - ```c - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - uint64_t CostTable[16] = { - 0, 0, - 10, /* 0x02: Block */ - 11, /* 0x03: Loop */ - 12, /* 0x04: If */ - 12, /* 0x05: Else */ - 0, 0, 0, 0, 0, 0, - 20, /* 0x0C: Br */ - 21, /* 0x0D: Br_if */ - 22, /* 0x0E: Br_table */ - 0 - }; - /* Developers can set the costs of each instruction. The value not covered will be 0. */ - WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); - WasmEdge_StatisticsSetCostLimit(StatCxt, 5000000); - /* .... - * After running the WASM functions with the `Statistics` context - */ - uint64_t Cost = WasmEdge_StatisticsGetTotalCost(StatCxt); - WasmEdge_StatisticsDelete(StatCxt); - ``` + The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` context. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. + + ```c + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + uint64_t CostTable[16] = { + 0, 0, + 10, /* 0x02: Block */ + 11, /* 0x03: Loop */ + 12, /* 0x04: If */ + 12, /* 0x05: Else */ + 0, 0, 0, 0, 0, 0, + 20, /* 0x0C: Br */ + 21, /* 0x0D: Br_if */ + 22, /* 0x0E: Br_table */ + 0 + }; + /* Developers can set the costs of each instruction. The value not covered will be 0. */ + WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); + WasmEdge_StatisticsSetCostLimit(StatCxt, 5000000); + /* .... + * After running the WASM functions with the `Statistics` context + */ + uint64_t Cost = WasmEdge_StatisticsGetTotalCost(StatCxt); + WasmEdge_StatisticsDelete(StatCxt); + ``` ## WasmEdge VM @@ -658,161 +658,161 @@ The following shows the example of running the WASM for getting the Fibonacci. T 1. Run WASM functions rapidly - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - /* Create the configure context and add the WASI support. */ - /* This step is not necessary unless you need WASI support. */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The configure and store context to the VM creation can be NULL. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(5) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromFile(VMCxt, "fibonacci.wasm", FuncName, Params, 1, Returns, 1); - /* - * Developers can run the WASM binary from buffer with the `WasmEdge_VMRunWasmFromBuffer()` API, - * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMRunWasmFromASTModule()` API. - */ - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 5th Fibonacci number is 8 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get the result: 8 - ``` + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + /* Create the configure context and add the WASI support. */ + /* This step is not necessary unless you need WASI support. */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The configure and store context to the VM creation can be NULL. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(5) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromFile(VMCxt, "fibonacci.wasm", FuncName, Params, 1, Returns, 1); + /* + * Developers can run the WASM binary from buffer with the `WasmEdge_VMRunWasmFromBuffer()` API, + * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMRunWasmFromASTModule()` API. + */ + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` + + Then you can compile and run: (the 5th Fibonacci number is 8 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get the result: 8 + ``` 2. Instantiate and run WASM functions manually - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: - - ```c - #include - #include - int main() { - /* Create the configure context and add the WASI support. */ - /* This step is not necessary unless you need the WASI support. */ - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - /* The configure and store context to the VM creation can be NULL. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(10) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Step 1: Load WASM file. */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - /* - * Developers can load the WASM binary from buffer with the `WasmEdge_VMLoadWasmFromBuffer()` API, - * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMLoadWasmFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 2: Validate the WASM module. */ - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 3: Instantiate the WASM module. */ - Res = WasmEdge_VMInstantiate(VMCxt); - /* - * Developers can load, validate, and instantiate another WASM module to replace the - * instantiated one. In this case, the old module will be cleared, but the registered - * modules are still kept. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 4: Execute WASM functions. You can execute functions repeatedly after instantiation. */ - Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 1, Returns, 1); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 10th Fibonacci number is 89 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get the result: 89 - ``` - - The following graph explains the status of the `VM` context. - - ```text - |========================| - |------->| VM: Initiated | - | |========================| - | | - | LoadWasm - | | - | v - | |========================| - |--------| VM: Loaded |<-------| - | |========================| | - | | ^ | - | Validate | | - Cleanup | LoadWasm | - | v | LoadWasm - | |========================| | - |--------| VM: Validated | | - | |========================| | - | | ^ | - | Instantiate | | - | | RegisterModule | - | v | | - | |========================| | - |--------| VM: Instantiated |--------| - |========================| - | ^ - | | - -------------- - Instantiate, Execute, ExecuteRegistered - ``` - - The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or import objects in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```c + #include + #include + int main() { + /* Create the configure context and add the WASI support. */ + /* This step is not necessary unless you need the WASI support. */ + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + /* The configure and store context to the VM creation can be NULL. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(10) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Step 1: Load WASM file. */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + /* + * Developers can load the WASM binary from buffer with the `WasmEdge_VMLoadWasmFromBuffer()` API, + * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMLoadWasmFromASTModule()` API. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 2: Validate the WASM module. */ + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 3: Instantiate the WASM module. */ + Res = WasmEdge_VMInstantiate(VMCxt); + /* + * Developers can load, validate, and instantiate another WASM module to replace the + * instantiated one. In this case, the old module will be cleared, but the registered + * modules are still kept. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 4: Execute WASM functions. You can execute functions repeatedly after instantiation. */ + Res = WasmEdge_VMExecute(VMCxt, FuncName, Params, 1, Returns, 1); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` + + Then you can compile and run: (the 10th Fibonacci number is 89 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get the result: 89 + ``` + + The following graph explains the status of the `VM` context. + + ```text + |========================| + |------->| VM: Initiated | + | |========================| + | | + | LoadWasm + | | + | v + | |========================| + |--------| VM: Loaded |<-------| + | |========================| | + | | ^ | + | Validate | | + Cleanup | LoadWasm | + | v | LoadWasm + | |========================| | + |--------| VM: Validated | | + | |========================| | + | | ^ | + | Instantiate | | + | | RegisterModule | + | v | | + | |========================| | + |--------| VM: Instantiated |--------| + |========================| + | ^ + | | + -------------- + Instantiate, Execute, ExecuteRegistered + ``` + + The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or import objects in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. ### VM Creations @@ -840,43 +840,43 @@ WasmEdge provides the following built-in pre-registrations. 1. [WASI (WebAssembly System Interface)](https://github.com/WebAssembly/WASI) - Developers can turn on the WASI support for VM in the `Configure` context. + Developers can turn on the WASI support for VM in the `Configure` context. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - /* The following API can retrieve the pre-registration import objects from the VM context. */ - /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration. */ - WasmEdge_ImportObjectContext *WasiObject = - WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_Wasi); - /* Initialize the WASI. */ - WasmEdge_ImportObjectInitWASI(WasiObject, /* ... ignored */ ); - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_Wasi); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + /* The following API can retrieve the pre-registration import objects from the VM context. */ + /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration. */ + WasmEdge_ImportObjectContext *WasiObject = + WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_Wasi); + /* Initialize the WASI. */ + WasmEdge_ImportObjectInitWASI(WasiObject, /* ... ignored */ ); + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + ``` - And also can create the WASI import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 2. [WasmEdge_Process](https://crates.io/crates/wasmedge_process_interface) - This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` host functions. + This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` host functions. - ```c - WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); - WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasmEdge_Process); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); - /* The following API can retrieve the pre-registration import objects from the VM context. */ - /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration. */ - WasmEdge_ImportObjectContext *ProcObject = - WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_WasmEdge_Process); - /* Initialize the WasmEdge_Process. */ - WasmEdge_ImportObjectInitWasmEdgeProcess(ProcObject, /* ... ignored */ ); - WasmEdge_VMDelete(VMCxt); - WasmEdge_ConfigureDelete(ConfCxt); - ``` + ```c + WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate(); + WasmEdge_ConfigureAddHostRegistration(ConfCxt, WasmEdge_HostRegistration_WasmEdge_Process); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL); + /* The following API can retrieve the pre-registration import objects from the VM context. */ + /* This API will return `NULL` if the corresponding pre-registration is not set into the configuration. */ + WasmEdge_ImportObjectContext *ProcObject = + WasmEdge_VMGetImportModuleContext(VMCxt, WasmEdge_HostRegistration_WasmEdge_Process); + /* Initialize the WasmEdge_Process. */ + WasmEdge_ImportObjectInitWasmEdgeProcess(ProcObject, /* ... ignored */ ); + WasmEdge_VMDelete(VMCxt); + WasmEdge_ConfigureDelete(ConfCxt); + ``` - And also can create the WasmEdge_Process import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WasmEdge_Process import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). ### Host Module Registrations @@ -900,225 +900,225 @@ In WebAssembly, the instances in WASM modules can be exported and can be importe 1. Register the WASM modules with exported module names - Unless the import objects have already contained the module names, every WASM module should be named uniquely when registering. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. + Unless the import objects have already contained the module names, every WASM module should be named uniquely when registering. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. + + ```c + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + WasmEdge_Result Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); + /* + * Developers can register the WASM module from buffer with the `WasmEdge_VMRegisterModuleFromBuffer()` API, + * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMRegisterModuleFromASTModule()` API. + */ + /* + * The result status should be checked. + * The error will occur if the WASM module instantiation failed or the module name conflicts. + */ + WasmEdge_StringDelete(ModName); + WasmEdge_VMDelete(VMCxt); + ``` - ```c - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - WasmEdge_Result Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); - /* +2. Execute the functions in registered WASM modules + + Assume that the C file `test.c` is as follows: + + ```c + #include + #include + int main() { + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(20) }; + WasmEdge_Value Returns[1]; + /* Names. */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Register the WASM module into VM. */ + Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); + /* * Developers can register the WASM module from buffer with the `WasmEdge_VMRegisterModuleFromBuffer()` API, * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMRegisterModuleFromASTModule()` API. */ - /* - * The result status should be checked. - * The error will occur if the WASM module instantiation failed or the module name conflicts. + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* + * The function "fib" in the "fibonacci.wasm" was exported with the module name "mod". + * As the same as host functions, other modules can import the function `"mod" "fib"`. */ - WasmEdge_StringDelete(ModName); - WasmEdge_VMDelete(VMCxt); - ``` -2. Execute the functions in registered WASM modules + /* + * Execute WASM functions in registered modules. + * Unlike the execution of functions, the registered functions can be invoked without + * `WasmEdge_VMInstantiate()` because the WASM module was instantiated when registering. + * Developers can also invoke the host functions directly with this API. + */ + Res = WasmEdge_VMExecuteRegistered(VMCxt, ModName, FuncName, Params, 1, Returns, 1); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + WasmEdge_StringDelete(ModName); + WasmEdge_StringDelete(FuncName); + WasmEdge_VMDelete(VMCxt); + return 0; + } + ``` + + Then you can compile and run: (the 20th Fibonacci number is 89 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get the result: 10946 + ``` - Assume that the C file `test.c` is as follows: - - ```c - #include - #include - int main() { - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(20) }; - WasmEdge_Value Returns[1]; - /* Names. */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Register the WASM module into VM. */ - Res = WasmEdge_VMRegisterModuleFromFile(VMCxt, ModName, "fibonacci.wasm"); - /* - * Developers can register the WASM module from buffer with the `WasmEdge_VMRegisterModuleFromBuffer()` API, - * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMRegisterModuleFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* - * The function "fib" in the "fibonacci.wasm" was exported with the module name "mod". - * As the same as host functions, other modules can import the function `"mod" "fib"`. +### Asynchronous Execution + +1. Asynchronously run WASM functions rapidly + + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(20) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Asynchronously run the WASM function from file and get the `WasmEdge_Async` object. */ + WasmEdge_Async *Async = WasmEdge_VMAsyncRunWasmFromFile(VMCxt, "fibonacci.wasm", FuncName, Params, 1); + /* + * Developers can run the WASM binary from buffer with the `WasmEdge_VMAsyncRunWasmFromBuffer()` API, + * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMAsyncRunWasmFromASTModule()` API. */ - /* - * Execute WASM functions in registered modules. - * Unlike the execution of functions, the registered functions can be invoked without - * `WasmEdge_VMInstantiate()` because the WASM module was instantiated when registering. - * Developers can also invoke the host functions directly with this API. + /* Wait for the execution. */ + WasmEdge_AsyncWait(Async); + /* + * Developers can also use the `WasmEdge_AsyncGetReturnsLength()` or `WasmEdge_AsyncGet()` APIs + * to wait for the asynchronous execution. These APIs will wait until the execution finished. */ - Res = WasmEdge_VMExecuteRegistered(VMCxt, ModName, FuncName, Params, 1, Returns, 1); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - WasmEdge_StringDelete(ModName); - WasmEdge_StringDelete(FuncName); - WasmEdge_VMDelete(VMCxt); - return 0; - } - ``` - - Then you can compile and run: (the 20th Fibonacci number is 89 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get the result: 10946 - ``` -### Asynchronous Execution + /* Check the return values length. */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + /* The `Arity` should be 1. Developers can skip this step if they have known the return arity. */ -1. Asynchronously run WASM functions rapidly + /* Get the result. */ + WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Returns, Arity); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_AsyncDelete(Async); + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + return 0; + } + ``` - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(20) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Asynchronously run the WASM function from file and get the `WasmEdge_Async` object. */ - WasmEdge_Async *Async = WasmEdge_VMAsyncRunWasmFromFile(VMCxt, "fibonacci.wasm", FuncName, Params, 1); - /* - * Developers can run the WASM binary from buffer with the `WasmEdge_VMAsyncRunWasmFromBuffer()` API, - * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMAsyncRunWasmFromASTModule()` API. - */ - - /* Wait for the execution. */ - WasmEdge_AsyncWait(Async); - /* - * Developers can also use the `WasmEdge_AsyncGetReturnsLength()` or `WasmEdge_AsyncGet()` APIs - * to wait for the asynchronous execution. These APIs will wait until the execution finished. - */ - - /* Check the return values length. */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - /* The `Arity` should be 1. Developers can skip this step if they have known the return arity. */ - - /* Get the result. */ - WasmEdge_Result Res = WasmEdge_AsyncGet(Async, Returns, Arity); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_AsyncDelete(Async); - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - return 0; - } - ``` - - Then you can compile and run: (the 20th Fibonacci number is 10946 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get the result: 10946 - ``` + Then you can compile and run: (the 20th Fibonacci number is 10946 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get the result: 10946 + ``` 2. Instantiate and asynchronously run WASM functions manually - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: - - ```c - #include - #include - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(25) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - /* Result. */ - WasmEdge_Result Res; - - /* Step 1: Load WASM file. */ - Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - /* - * Developers can load the WASM binary from buffer with the `WasmEdge_VMLoadWasmFromBuffer()` API, - * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMLoadWasmFromASTModule()` API. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 2: Validate the WASM module. */ - Res = WasmEdge_VMValidate(VMCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 3: Instantiate the WASM module. */ - Res = WasmEdge_VMInstantiate(VMCxt); - /* - * Developers can load, validate, and instantiate another WASM module to replace the - * instantiated one. In this case, the old module will be cleared, but the registered - * modules are still kept. - */ - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return 1; - } - /* Step 4: Asynchronously execute the WASM function and get the `WasmEdge_Async` object. */ - WasmEdge_Async *Async = WasmEdge_VMAsyncExecute(VMCxt, FuncName, Params, 1); - /* - * Developers can execute functions repeatedly after instantiation. - * For invoking the registered functions, you can use the `WasmEdge_VMAsyncExecuteRegistered()` API. - */ - - /* Wait and check the return values length. */ - uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); - /* The `Arity` should be 1. Developers can skip this step if they have known the return arity. */ - - /* Get the result. */ - Res = WasmEdge_AsyncGet(Async, Returns, Arity); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_AsyncDelete(Async); - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - } - ``` - - Then you can compile and run: (the 25th Fibonacci number is 121393 in 0-based index) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get the result: 121393 - ``` + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```c + #include + #include + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(25) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + /* Result. */ + WasmEdge_Result Res; + + /* Step 1: Load WASM file. */ + Res = WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + /* + * Developers can load the WASM binary from buffer with the `WasmEdge_VMLoadWasmFromBuffer()` API, + * or from `WasmEdge_ASTModuleContext` object with the `WasmEdge_VMLoadWasmFromASTModule()` API. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 2: Validate the WASM module. */ + Res = WasmEdge_VMValidate(VMCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 3: Instantiate the WASM module. */ + Res = WasmEdge_VMInstantiate(VMCxt); + /* + * Developers can load, validate, and instantiate another WASM module to replace the + * instantiated one. In this case, the old module will be cleared, but the registered + * modules are still kept. + */ + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return 1; + } + /* Step 4: Asynchronously execute the WASM function and get the `WasmEdge_Async` object. */ + WasmEdge_Async *Async = WasmEdge_VMAsyncExecute(VMCxt, FuncName, Params, 1); + /* + * Developers can execute functions repeatedly after instantiation. + * For invoking the registered functions, you can use the `WasmEdge_VMAsyncExecuteRegistered()` API. + */ + + /* Wait and check the return values length. */ + uint32_t Arity = WasmEdge_AsyncGetReturnsLength(Async); + /* The `Arity` should be 1. Developers can skip this step if they have known the return arity. */ + + /* Get the result. */ + Res = WasmEdge_AsyncGet(Async, Returns, Arity); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_AsyncDelete(Async); + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + } + ``` + + Then you can compile and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get the result: 121393 + ``` ### Instance Tracing @@ -1126,97 +1126,97 @@ Sometimes the developers may have requirements to get the instances of the WASM 1. Store - If the `VM` context is created without assigning a `Store` context, the `VM` context will allocate and own a `Store` context. + If the `VM` context is created without assigning a `Store` context, the `VM` context will allocate and own a `Store` context. - ```c - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - WasmEdge_StoreContext *StoreCxt = WasmEdge_VMGetStoreContext(VMCxt); - /* The object should __NOT__ be deleted by `WasmEdge_StoreDelete()`. */ - WasmEdge_VMDelete(VMCxt); - ``` + ```c + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + WasmEdge_StoreContext *StoreCxt = WasmEdge_VMGetStoreContext(VMCxt); + /* The object should __NOT__ be deleted by `WasmEdge_StoreDelete()`. */ + WasmEdge_VMDelete(VMCxt); + ``` - Developers can also create the `VM` context with a `Store` context. In this case, developers should guarantee the life cycle of the `Store` context. Please refer to the [Store Contexts](#store) for the details about the `Store` context APIs. + Developers can also create the `VM` context with a `Store` context. In this case, developers should guarantee the life cycle of the `Store` context. Please refer to the [Store Contexts](#store) for the details about the `Store` context APIs. - ```c - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); - WasmEdge_StoreContext *StoreCxtMock = WasmEdge_VMGetStoreContext(VMCxt); - /* The `StoreCxt` and the `StoreCxtMock` are the same. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StoreDelete(StoreCxt); - ``` + ```c + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); + WasmEdge_StoreContext *StoreCxtMock = WasmEdge_VMGetStoreContext(VMCxt); + /* The `StoreCxt` and the `StoreCxtMock` are the same. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StoreDelete(StoreCxt); + ``` 2. List exported functions - After the WASM module instantiation, developers can use the `WasmEdge_VMExecute()` API to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: - - ```c - #include - #include - int main() { - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); - - WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); - WasmEdge_VMValidate(VMCxt); - WasmEdge_VMInstantiate(VMCxt); - - /* List the exported functions. */ - /* Get the number of exported functions. */ - uint32_t FuncNum = WasmEdge_VMGetFunctionListLength(VMCxt); - /* Create the name buffers and the function type buffers. */ - const uint32_t BUF_LEN = 256; - WasmEdge_String FuncNames[BUF_LEN]; - WasmEdge_FunctionTypeContext *FuncTypes[BUF_LEN]; - /* - * Get the export function list. - * If the function list length is larger than the buffer length, the overflowed data will be discarded. - * The `FuncNames` and `FuncTypes` can be NULL if developers don't need them. - */ - uint32_t RealFuncNum = WasmEdge_VMGetFunctionList(VMCxt, FuncNames, FuncTypes, BUF_LEN); - - for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { - char Buf[BUF_LEN]; - uint32_t Size = WasmEdge_StringCopy(FuncNames[I], Buf, sizeof(Buf)); - printf("Get exported function string length: %u, name: %s\n", Size, Buf); - /* - * The function names should be __NOT__ destroyed. - * The returned function type contexts should __NOT__ be destroyed. - */ - } - return 0; - } - ``` - - Then you can compile and run: (the only exported function in `fibonacci.wasm` is `fib`) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Get exported function string length: 3, name: fib - ``` - - If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` context from the `VM` context and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. + After the WASM module instantiation, developers can use the `WasmEdge_VMExecute()` API to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and the C file `test.c` is as following: + + ```c + #include + #include + int main() { + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, StoreCxt); + + WasmEdge_VMLoadWasmFromFile(VMCxt, "fibonacci.wasm"); + WasmEdge_VMValidate(VMCxt); + WasmEdge_VMInstantiate(VMCxt); + + /* List the exported functions. */ + /* Get the number of exported functions. */ + uint32_t FuncNum = WasmEdge_VMGetFunctionListLength(VMCxt); + /* Create the name buffers and the function type buffers. */ + const uint32_t BUF_LEN = 256; + WasmEdge_String FuncNames[BUF_LEN]; + WasmEdge_FunctionTypeContext *FuncTypes[BUF_LEN]; + /* + * Get the export function list. + * If the function list length is larger than the buffer length, the overflowed data will be discarded. + * The `FuncNames` and `FuncTypes` can be NULL if developers don't need them. + */ + uint32_t RealFuncNum = WasmEdge_VMGetFunctionList(VMCxt, FuncNames, FuncTypes, BUF_LEN); + + for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { + char Buf[BUF_LEN]; + uint32_t Size = WasmEdge_StringCopy(FuncNames[I], Buf, sizeof(Buf)); + printf("Get exported function string length: %u, name: %s\n", Size, Buf); + /* + * The function names should be __NOT__ destroyed. + * The returned function type contexts should __NOT__ be destroyed. + */ + } + return 0; + } + ``` + + Then you can compile and run: (the only exported function in `fibonacci.wasm` is `fib`) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Get exported function string length: 3, name: fib + ``` + + If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` context from the `VM` context and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. 3. Get function types - The `VM` context provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. + The `VM` context provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. - ```c - /* - * ... - * Assume that a WASM module is instantiated in `VMCxt`. - */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - const WasmEdge_FunctionTypeContext *FuncType = WasmEdge_VMGetFunctionType(VMCxt, FuncName); - /* - * Developers can get the function types of functions in the registered modules - * via the `WasmEdge_VMGetFunctionTypeRegistered()` API with the module name. - * If the function is not found, these APIs will return `NULL`. - * The returned function type contexts should __NOT__ be destroyed. - */ - WasmEdge_StringDelete(FuncName); - ``` + ```c + /* + * ... + * Assume that a WASM module is instantiated in `VMCxt`. + */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + const WasmEdge_FunctionTypeContext *FuncType = WasmEdge_VMGetFunctionType(VMCxt, FuncName); + /* + * Developers can get the function types of functions in the registered modules + * via the `WasmEdge_VMGetFunctionTypeRegistered()` API with the module name. + * If the function is not found, these APIs will return `NULL`. + * The returned function type contexts should __NOT__ be destroyed. + */ + WasmEdge_StringDelete(FuncName); + ``` ## WasmEdge Runtime @@ -1378,80 +1378,80 @@ The `Executor` context is the executor for both WASM and compiled-WASM. This obj 1. Register modules - As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` context, developers can register `Import Object` or `AST module` contexts into the `Store` context by the `Executor` APIs. For the details of import objects, please refer to the [Host Functions](#host-functions). - - ```c - /* - * ... - * Assume that the `ASTCxt` is the output AST module context from the loader context - * and has passed the validation. - * Assume that the `ConfCxt` is the configure context. + As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` context, developers can register `Import Object` or `AST module` contexts into the `Store` context by the `Executor` APIs. For the details of import objects, please refer to the [Host Functions](#host-functions). + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader context + * and has passed the validation. + * Assume that the `ConfCxt` is the configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* Create the executor context. The configure and the statistics contexts can be NULL. */ + WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* Create the store context. The store context is the WASM runtime structure core. */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* Result. */ + WasmEdge_Result Res; + + /* Register the WASM module into store with the export module name "mod". */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + Res = WasmEdge_ExecutorRegisterModule(ExecCxt, StoreCxt, ASTCxt, ModName); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + WasmEdge_StringDelete(ModName); + + /* + * Assume that the `ImpCxt` is the import object context for host functions. */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* Create the executor context. The configure and the statistics contexts can be NULL. */ - WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* Create the store context. The store context is the WASM runtime structure core. */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* Result. */ - WasmEdge_Result Res; - - /* Register the WASM module into store with the export module name "mod". */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - Res = WasmEdge_ExecutorRegisterModule(ExecCxt, StoreCxt, ASTCxt, ModName); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - WasmEdge_StringDelete(ModName); - - /* - * Assume that the `ImpCxt` is the import object context for host functions. - */ - WasmEdge_ImportObjectContext *ImpCxt = ...; - /* The import module context has already contained the export module name. */ - Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, ImpCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Import object registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - WasmEdge_ImportObjectDelete(ImpCxt); - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - ``` + WasmEdge_ImportObjectContext *ImpCxt = ...; + /* The import module context has already contained the export module name. */ + Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, ImpCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Import object registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + WasmEdge_ImportObjectDelete(ImpCxt); + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + ``` 2. Instantiate modules - WASM or compiled-WASM modules should be instantiated before the function invocation. Note that developers can only instantiate one module into the `Store` context, and in that case, the old instantiated module will be cleaned. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` context. - - ```c - /* - * ... - * Assume that the `ASTCxt` is the output AST module context from the loader context - * and has passed the validation. - * Assume that the `ConfCxt` is the configure context. - */ - /* Create the statistics context. This step is not necessary. */ - WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); - /* Create the executor context. The configure and the statistics contexts can be NULL. */ - WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(ConfCxt, StatCxt); - /* Create the store context. The store context is the WASM runtime structure core. */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - - /* Instantiate the WASM module. */ - WasmEdge_Result Res = WasmEdge_ExecutorInstantiate(ExecCxt, StoreCxt, ASTCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM instantiation failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StatisticsDelete(StatCxt); - WasmEdge_StoreDelete(StoreCxt); - ``` + WASM or compiled-WASM modules should be instantiated before the function invocation. Note that developers can only instantiate one module into the `Store` context, and in that case, the old instantiated module will be cleaned. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` context. + + ```c + /* + * ... + * Assume that the `ASTCxt` is the output AST module context from the loader context + * and has passed the validation. + * Assume that the `ConfCxt` is the configure context. + */ + /* Create the statistics context. This step is not necessary. */ + WasmEdge_StatisticsContext *StatCxt = WasmEdge_StatisticsCreate(); + /* Create the executor context. The configure and the statistics contexts can be NULL. */ + WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(ConfCxt, StatCxt); + /* Create the store context. The store context is the WASM runtime structure core. */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + + /* Instantiate the WASM module. */ + WasmEdge_Result Res = WasmEdge_ExecutorInstantiate(ExecCxt, StoreCxt, ASTCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM instantiation failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StatisticsDelete(StatCxt); + WasmEdge_StoreDelete(StoreCxt); + ``` 3. Invoke functions - As the same as function invocation via the `VM` context, developers can invoke the functions of the instantiated or registered modules. The APIs, `WasmEdge_ExecutorInvoke()` and `WasmEdge_ExecutorInvokeRegistered()`, are similar as the APIs of the `VM` context. Please refer to the [VM context workflows](#wasm-execution-example-with-vm-context) for details. + As the same as function invocation via the `VM` context, developers can invoke the functions of the instantiated or registered modules. The APIs, `WasmEdge_ExecutorInvoke()` and `WasmEdge_ExecutorInvokeRegistered()`, are similar as the APIs of the `VM` context. Please refer to the [VM context workflows](#wasm-execution-example-with-vm-context) for details. ### AST Module @@ -1490,67 +1490,67 @@ WasmEdge_ASTModuleDelete(ASTCxt); 1. List instances - ```c - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* ... Instantiate a WASM module via the executor context. */ - ... - - /* Try to list the exported functions of the instantiated WASM module. */ - /* Take the function instances for example here. */ - uint32_t FuncNum = WasmEdge_StoreListFunctionLength(StoreCxt); - /* Create the name buffers. */ - const uint32_t BUF_LEN = 256; - WasmEdge_String FuncNames[BUF_LEN]; - /* If the list length is larger than the buffer length, the overflowed data will be discarded. */ - uint32_t RealFuncNum = WasmEdge_StoreListFunction(StoreCxt, FuncNames, BUF_LEN); - for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { - /* Working with the function name `FuncNames[I]` ... */ - /* The function names should __NOT__ be destroyed. */ - } - ``` - - Developers can list the function instance exported names of the registered modules via the `WasmEdge_StoreListFunctionRegisteredLength()` and the `WasmEdge_StoreListFunctionRegistered()` APIs with the module name. + ```c + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* ... Instantiate a WASM module via the executor context. */ + ... + + /* Try to list the exported functions of the instantiated WASM module. */ + /* Take the function instances for example here. */ + uint32_t FuncNum = WasmEdge_StoreListFunctionLength(StoreCxt); + /* Create the name buffers. */ + const uint32_t BUF_LEN = 256; + WasmEdge_String FuncNames[BUF_LEN]; + /* If the list length is larger than the buffer length, the overflowed data will be discarded. */ + uint32_t RealFuncNum = WasmEdge_StoreListFunction(StoreCxt, FuncNames, BUF_LEN); + for (uint32_t I = 0; I < RealFuncNum && I < BUF_LEN; I++) { + /* Working with the function name `FuncNames[I]` ... */ + /* The function names should __NOT__ be destroyed. */ + } + ``` + + Developers can list the function instance exported names of the registered modules via the `WasmEdge_StoreListFunctionRegisteredLength()` and the `WasmEdge_StoreListFunctionRegistered()` APIs with the module name. 2. Find instances - ```c - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* ... Instantiate a WASM module via the executor context. */ - ... + ```c + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* ... Instantiate a WASM module via the executor context. */ + ... - /* Try to find the exported instance of the instantiated WASM module. */ - /* Take the function instances for example here. */ - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - WasmEdge_FunctionInstanceContext *FuncCxt = WasmEdge_StoreFindFunction(StoreCxt, FuncName); - /* `FuncCxt` will be `NULL` if the function not found. */ - /* The returned instance is owned by the store context and should __NOT__ be destroyed. */ - WasmEdge_StringDelete(FuncName); - ``` + /* Try to find the exported instance of the instantiated WASM module. */ + /* Take the function instances for example here. */ + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + WasmEdge_FunctionInstanceContext *FuncCxt = WasmEdge_StoreFindFunction(StoreCxt, FuncName); + /* `FuncCxt` will be `NULL` if the function not found. */ + /* The returned instance is owned by the store context and should __NOT__ be destroyed. */ + WasmEdge_StringDelete(FuncName); + ``` - Developers can retrieve the exported function instances of the registered modules via the `WasmEdge_StoreFindFunctionRegistered()` API with the module name. + Developers can retrieve the exported function instances of the registered modules via the `WasmEdge_StoreFindFunctionRegistered()` API with the module name. 3. List registered modules - With the module names, developers can list the exported instances of the registered modules with their names. - - ```c - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* ... Register a WASM module via the executor context. */ - ... - - /* Try to list the registered WASM modules. */ - uint32_t ModNum = WasmEdge_StoreListModuleLength(StoreCxt); - /* Create the name buffers. */ - const uint32_t BUF_LEN = 256; - WasmEdge_String ModNames[BUF_LEN]; - /* If the list length is larger than the buffer length, the overflowed data will be discarded. */ - uint32_t RealModNum = WasmEdge_StoreListModule(StoreCxt, ModNames, BUF_LEN); - for (uint32_t I = 0; I < RealModNum && I < BUF_LEN; I++) { - /* Working with the module name `ModNames[I]` ... */ - /* The module names should __NOT__ be destroyed. */ - } - ``` + With the module names, developers can list the exported instances of the registered modules with their names. + + ```c + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* ... Register a WASM module via the executor context. */ + ... + + /* Try to list the registered WASM modules. */ + uint32_t ModNum = WasmEdge_StoreListModuleLength(StoreCxt); + /* Create the name buffers. */ + const uint32_t BUF_LEN = 256; + WasmEdge_String ModNames[BUF_LEN]; + /* If the list length is larger than the buffer length, the overflowed data will be discarded. */ + uint32_t RealModNum = WasmEdge_StoreListModule(StoreCxt, ModNames, BUF_LEN); + for (uint32_t I = 0; I < RealModNum && I < BUF_LEN; I++) { + /* Working with the module name `ModNames[I]` ... */ + /* The module names should __NOT__ be destroyed. */ + } + ``` ### Instances @@ -1558,144 +1558,144 @@ The instances are the runtime structures of WASM. Developers can retrieve the in 1. Function instance - [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` contexts for host functions and add them into an `Import Object` context for registering into a `VM` or a `Store`. For both host functions and the functions get from `Store`, developers can retrieve the `Function Type` from the `Function` contexts. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). + [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` contexts for host functions and add them into an `Import Object` context for registering into a `VM` or a `Store`. For both host functions and the functions get from `Store`, developers can retrieve the `Function Type` from the `Function` contexts. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). - ```c - /* Retrieve the function instance from the store context. */ - WasmEdge_FunctionInstanceContext *FuncCxt = ...; - WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_FunctionInstanceGetFunctionType(FuncCxt); - /* The `FuncTypeCxt` is owned by the `FuncCxt` and should __NOT__ be destroyed. */ - ``` + ```c + /* Retrieve the function instance from the store context. */ + WasmEdge_FunctionInstanceContext *FuncCxt = ...; + WasmEdge_FunctionTypeContext *FuncTypeCxt = WasmEdge_FunctionInstanceGetFunctionType(FuncCxt); + /* The `FuncTypeCxt` is owned by the `FuncCxt` and should __NOT__ be destroyed. */ + ``` 2. Table instance - In WasmEdge, developers can create the `Table` contexts and add them into an `Import Object` context for registering into a `VM` or a `Store`. The `Table` contexts supply APIs to control the data in table instances. - - ```c - WasmEdge_Limit TabLimit = {.HasMax = true, .Min = 10, .Max = 20}; - /* Create the table type with limit and the `FuncRef` element type. */ - WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TabLimit); - /* Create the table instance with table type. */ - WasmEdge_TableInstanceContext *HostTable = WasmEdge_TableInstanceCreate(TabTypeCxt); - /* Delete the table type. */ - WasmEdge_TableTypeDelete(TabTypeCxt); - WasmEdge_Result Res; - WasmEdge_Value Data; - - TabTypeCxt = WasmEdge_TableInstanceGetTableType(HostTable); - /* The `TabTypeCxt` got from table instance is owned by the `HostTable` and should __NOT__ be destroyed. */ - enum WasmEdge_RefType RefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); - /* `RefType` will be `WasmEdge_RefType_FuncRef`. */ - Data = WasmEdge_ValueGenFuncRef(5); - Res = WasmEdge_TableInstanceSetData(HostTable, Data, 3); - /* Set the function index 5 to the table[3]. */ - /* - * This will get an "out of bounds table access" error - * because the position (13) is out of the table size (10): - * Res = WasmEdge_TableInstanceSetData(HostTable, Data, 13); - */ - Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 3); - /* Get the FuncRef value of the table[3]. */ - /* - * This will get an "out of bounds table access" error - * because the position (13) is out of the table size (10): - * Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 13); - */ + In WasmEdge, developers can create the `Table` contexts and add them into an `Import Object` context for registering into a `VM` or a `Store`. The `Table` contexts supply APIs to control the data in table instances. + + ```c + WasmEdge_Limit TabLimit = {.HasMax = true, .Min = 10, .Max = 20}; + /* Create the table type with limit and the `FuncRef` element type. */ + WasmEdge_TableTypeContext *TabTypeCxt = WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TabLimit); + /* Create the table instance with table type. */ + WasmEdge_TableInstanceContext *HostTable = WasmEdge_TableInstanceCreate(TabTypeCxt); + /* Delete the table type. */ + WasmEdge_TableTypeDelete(TabTypeCxt); + WasmEdge_Result Res; + WasmEdge_Value Data; + + TabTypeCxt = WasmEdge_TableInstanceGetTableType(HostTable); + /* The `TabTypeCxt` got from table instance is owned by the `HostTable` and should __NOT__ be destroyed. */ + enum WasmEdge_RefType RefType = WasmEdge_TableTypeGetRefType(TabTypeCxt); + /* `RefType` will be `WasmEdge_RefType_FuncRef`. */ + Data = WasmEdge_ValueGenFuncRef(5); + Res = WasmEdge_TableInstanceSetData(HostTable, Data, 3); + /* Set the function index 5 to the table[3]. */ + /* + * This will get an "out of bounds table access" error + * because the position (13) is out of the table size (10): + * Res = WasmEdge_TableInstanceSetData(HostTable, Data, 13); + */ + Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 3); + /* Get the FuncRef value of the table[3]. */ + /* + * This will get an "out of bounds table access" error + * because the position (13) is out of the table size (10): + * Res = WasmEdge_TableInstanceGetData(HostTable, &Data, 13); + */ - uint32_t Size = WasmEdge_TableInstanceGetSize(HostTable); - /* `Size` will be 10. */ - Res = WasmEdge_TableInstanceGrow(HostTable, 6); - /* Grow the table size of 6, the table size will be 16. */ - /* - * This will get an "out of bounds table access" error because - * the size (16 + 6) will reach the table limit(20): - * Res = WasmEdge_TableInstanceGrow(HostTable, 6); - */ + uint32_t Size = WasmEdge_TableInstanceGetSize(HostTable); + /* `Size` will be 10. */ + Res = WasmEdge_TableInstanceGrow(HostTable, 6); + /* Grow the table size of 6, the table size will be 16. */ + /* + * This will get an "out of bounds table access" error because + * the size (16 + 6) will reach the table limit(20): + * Res = WasmEdge_TableInstanceGrow(HostTable, 6); + */ - WasmEdge_TableInstanceDelete(HostTable); - ``` + WasmEdge_TableInstanceDelete(HostTable); + ``` 3. Memory instance - In WasmEdge, developers can create the `Memory` contexts and add them into an `Import Object` context for registering into a `VM` or a `Store`. The `Memory` contexts supply APIs to control the data in memory instances. - - ```c - WasmEdge_Limit MemLimit = {.HasMax = true, .Min = 1, .Max = 5}; - /* Create the memory type with limit. The memory page size is 64KiB. */ - WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLimit); - /* Create the memory instance with memory type. */ - WasmEdge_MemoryInstanceContext *HostMemory = WasmEdge_MemoryInstanceCreate(MemTypeCxt); - /* Delete the memory type. */ - WasmEdge_MemoryTypeDelete(MemTypeCxt); - WasmEdge_Result Res; - uint8_t Buf[256]; - - Buf[0] = 0xAA; - Buf[1] = 0xBB; - Buf[2] = 0xCC; - Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0x1000, 3); - /* Set the data[0:2] to the memory[4096:4098]. */ - /* - * This will get an "out of bounds memory access" error - * because [65535:65537] is out of 1 page size (65536): - * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); - */ - Buf[0] = 0; - Buf[1] = 0; - Buf[2] = 0; - Res = WasmEdge_MemoryInstanceGetData(HostMemory, Buf, 0x1000, 3); - /* Get the memory[4096:4098]. Buf[0:2] will be `{0xAA, 0xBB, 0xCC}`. */ - /* - * This will get an "out of bounds memory access" error - * because [65535:65537] is out of 1 page size (65536): - * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); - */ + In WasmEdge, developers can create the `Memory` contexts and add them into an `Import Object` context for registering into a `VM` or a `Store`. The `Memory` contexts supply APIs to control the data in memory instances. + + ```c + WasmEdge_Limit MemLimit = {.HasMax = true, .Min = 1, .Max = 5}; + /* Create the memory type with limit. The memory page size is 64KiB. */ + WasmEdge_MemoryTypeContext *MemTypeCxt = WasmEdge_MemoryTypeCreate(MemLimit); + /* Create the memory instance with memory type. */ + WasmEdge_MemoryInstanceContext *HostMemory = WasmEdge_MemoryInstanceCreate(MemTypeCxt); + /* Delete the memory type. */ + WasmEdge_MemoryTypeDelete(MemTypeCxt); + WasmEdge_Result Res; + uint8_t Buf[256]; + + Buf[0] = 0xAA; + Buf[1] = 0xBB; + Buf[2] = 0xCC; + Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0x1000, 3); + /* Set the data[0:2] to the memory[4096:4098]. */ + /* + * This will get an "out of bounds memory access" error + * because [65535:65537] is out of 1 page size (65536): + * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); + */ + Buf[0] = 0; + Buf[1] = 0; + Buf[2] = 0; + Res = WasmEdge_MemoryInstanceGetData(HostMemory, Buf, 0x1000, 3); + /* Get the memory[4096:4098]. Buf[0:2] will be `{0xAA, 0xBB, 0xCC}`. */ + /* + * This will get an "out of bounds memory access" error + * because [65535:65537] is out of 1 page size (65536): + * Res = WasmEdge_MemoryInstanceSetData(HostMemory, Buf, 0xFFFF, 3); + */ - uint32_t PageSize = WasmEdge_MemoryInstanceGetPageSize(HostMemory); - /* `PageSize` will be 1. */ - Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 2); - /* Grow the page size of 2, the page size of the memory instance will be 3. */ - /* - * This will get an "out of bounds memory access" error because - * the page size (3 + 3) will reach the memory limit(5): - * Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 3); - */ + uint32_t PageSize = WasmEdge_MemoryInstanceGetPageSize(HostMemory); + /* `PageSize` will be 1. */ + Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 2); + /* Grow the page size of 2, the page size of the memory instance will be 3. */ + /* + * This will get an "out of bounds memory access" error because + * the page size (3 + 3) will reach the memory limit(5): + * Res = WasmEdge_MemoryInstanceGrowPage(HostMemory, 3); + */ - WasmEdge_MemoryInstanceDelete(HostMemory); - ``` + WasmEdge_MemoryInstanceDelete(HostMemory); + ``` 4. Global instance - In WasmEdge, developers can create the `Global` contexts and add them into an `Import Object` context for registering into a `VM` or a `Store`. The `Global` contexts supply APIs to control the value in global instances. - - ```c - WasmEdge_Value Val = WasmEdge_ValueGenI64(1000); - /* Create the global type with value type and mutation. */ - WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate(WasmEdge_ValType_I64, WasmEdge_Mutability_Var); - /* Create the global instance with value and global type. */ - WasmEdge_GlobalInstanceContext *HostGlobal = WasmEdge_GlobalInstanceCreate(GlobTypeCxt, Val); - /* Delete the global type. */ - WasmEdge_GlobalTypeDelete(GlobTypeCxt); - WasmEdge_Result Res; - - GlobTypeCxt = WasmEdge_GlobalInstanceGetGlobalType(HostGlobal); - /* The `GlobTypeCxt` got from global instance is owned by the `HostGlobal` and should __NOT__ be destroyed. */ - enum WasmEdge_ValType ValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); - /* `ValType` will be `WasmEdge_ValType_I64`. */ - enum WasmEdge_Mutability ValMut = WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); - /* `ValMut` will be `WasmEdge_Mutability_Var`. */ - - WasmEdge_GlobalInstanceSetValue(HostGlobal, WasmEdge_ValueGenI64(888)); - /* - * Set the value u64(888) to the global. - * This function will do nothing if the value type mismatched or - * the global mutability is `WasmEdge_Mutability_Const`. - */ - WasmEdge_Value GlobVal = WasmEdge_GlobalInstanceGetValue(HostGlobal); - /* Get the value (888 now) of the global context. */ + In WasmEdge, developers can create the `Global` contexts and add them into an `Import Object` context for registering into a `VM` or a `Store`. The `Global` contexts supply APIs to control the value in global instances. + + ```c + WasmEdge_Value Val = WasmEdge_ValueGenI64(1000); + /* Create the global type with value type and mutation. */ + WasmEdge_GlobalTypeContext *GlobTypeCxt = WasmEdge_GlobalTypeCreate(WasmEdge_ValType_I64, WasmEdge_Mutability_Var); + /* Create the global instance with value and global type. */ + WasmEdge_GlobalInstanceContext *HostGlobal = WasmEdge_GlobalInstanceCreate(GlobTypeCxt, Val); + /* Delete the global type. */ + WasmEdge_GlobalTypeDelete(GlobTypeCxt); + WasmEdge_Result Res; + + GlobTypeCxt = WasmEdge_GlobalInstanceGetGlobalType(HostGlobal); + /* The `GlobTypeCxt` got from global instance is owned by the `HostGlobal` and should __NOT__ be destroyed. */ + enum WasmEdge_ValType ValType = WasmEdge_GlobalTypeGetValType(GlobTypeCxt); + /* `ValType` will be `WasmEdge_ValType_I64`. */ + enum WasmEdge_Mutability ValMut = WasmEdge_GlobalTypeGetMutability(GlobTypeCxt); + /* `ValMut` will be `WasmEdge_Mutability_Var`. */ + + WasmEdge_GlobalInstanceSetValue(HostGlobal, WasmEdge_ValueGenI64(888)); + /* + * Set the value u64(888) to the global. + * This function will do nothing if the value type mismatched or + * the global mutability is `WasmEdge_Mutability_Const`. + */ + WasmEdge_Value GlobVal = WasmEdge_GlobalInstanceGetValue(HostGlobal); + /* Get the value (888 now) of the global context. */ - WasmEdge_GlobalInstanceDelete(HostGlobal); - ``` + WasmEdge_GlobalInstanceDelete(HostGlobal); + ``` ### Host Functions @@ -1703,383 +1703,383 @@ The instances are the runtime structures of WASM. Developers can retrieve the in 1. Host function allocation - Developers can define C functions with the following function signature as the host function body: - - ```c - typedef WasmEdge_Result (*WasmEdge_HostFunc_t)( - void *Data, - WasmEdge_MemoryInstanceContext *MemCxt, - const WasmEdge_Value *Params, - WasmEdge_Value *Returns); - ``` - - The example of an `add` host function to add 2 `i32` values: - - ```c - WasmEdge_Result Add(void *, WasmEdge_MemoryInstanceContext *, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - /* - * Params: {i32, i32} - * Returns: {i32} - * Developers should take care about the function type. - */ - /* Retrieve the value 1. */ - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - /* Retrieve the value 2. */ - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - /* Output value 1 is Val1 + Val2. */ - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - /* Return the status of success. */ - return WasmEdge_Result_Success; - } - ``` - - Then developers can create `Function` context with the host function body and function type: - - ```c - enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; - enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; - /* Create a function type: {i32, i32} -> {i32}. */ - HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - /* - * Create a function context with the function type and host function body. - * The `Cost` parameter can be 0 if developers do not need the cost measuring. - */ - WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - /* - * The third parameter is the pointer to the additional data. - * Developers should guarantee the life cycle of the data, and it can be - * `NULL` if the external data is not needed. + Developers can define C functions with the following function signature as the host function body: + + ```c + typedef WasmEdge_Result (*WasmEdge_HostFunc_t)( + void *Data, + WasmEdge_MemoryInstanceContext *MemCxt, + const WasmEdge_Value *Params, + WasmEdge_Value *Returns); + ``` + + The example of an `add` host function to add 2 `i32` values: + + ```c + WasmEdge_Result Add(void *, WasmEdge_MemoryInstanceContext *, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + /* + * Params: {i32, i32} + * Returns: {i32} + * Developers should take care about the function type. */ + /* Retrieve the value 1. */ + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + /* Retrieve the value 2. */ + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + /* Output value 1 is Val1 + Val2. */ + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + /* Return the status of success. */ + return WasmEdge_Result_Success; + } + ``` + + Then developers can create `Function` context with the host function body and function type: + + ```c + enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; + enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; + /* Create a function type: {i32, i32} -> {i32}. */ + HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + /* + * Create a function context with the function type and host function body. + * The `Cost` parameter can be 0 if developers do not need the cost measuring. + */ + WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + /* + * The third parameter is the pointer to the additional data. + * Developers should guarantee the life cycle of the data, and it can be + * `NULL` if the external data is not needed. + */ - /* If the function instance is not added into an import object context, it should be deleted. */ - WasmEdge_FunctionInstanceDelete(HostFunc); - ``` + /* If the function instance is not added into an import object context, it should be deleted. */ + WasmEdge_FunctionInstanceDelete(HostFunc); + ``` 2. Import object context - The `Import Object` context holds an exporting module name and the instances. Developers can add the `Function`, `Memory`, `Table`, and `Global` instances with their exporting names. - - ```c - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - return WasmEdge_Result_Success; - } - - /* Create the import object. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("module"); - WasmEdge_ImportObjectContext *ImpObj = WasmEdge_ImportObjectCreate(ExportName); - WasmEdge_StringDelete(ExportName); - - /* Create and add a function instance into the import object. */ - enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; - enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; - WasmEdge_FunctionTypeContext *HostFType = - WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = - WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - /* - * The third parameter is the pointer to the additional data object. - * Developers should guarantee the life cycle of the data, and it can be - * `NULL` if the external data is not needed. - */ - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("add"); - WasmEdge_ImportObjectAddFunction(ImpObj, FuncName, HostFunc); - WasmEdge_StringDelete(FuncName); - - /* Create and add a table instance into the import object. */ - WasmEdge_Limit TableLimit = {.HasMax = true, .Min = 10, .Max = 20}; - WasmEdge_TableTypeContext *HostTType = - WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TableLimit); - WasmEdge_TableInstanceContext *HostTable = WasmEdge_TableInstanceCreate(HostTType); - WasmEdge_TableTypeDelete(HostTType); - WasmEdge_String TableName = WasmEdge_StringCreateByCString("table"); - WasmEdge_ImportObjectAddTable(ImpObj, TableName, HostTable); - WasmEdge_StringDelete(TableName); - - /* Create and add a memory instance into the import object. */ - WasmEdge_Limit MemoryLimit = {.HasMax = true, .Min = 1, .Max = 2}; - WasmEdge_MemoryTypeContext *HostMType = WasmEdge_MemoryTypeCreate(MemoryLimit); - WasmEdge_MemoryInstanceContext *HostMemory = WasmEdge_MemoryInstanceCreate(HostMType); - WasmEdge_MemoryTypeDelete(HostMType); - WasmEdge_String MemoryName = WasmEdge_StringCreateByCString("memory"); - WasmEdge_ImportObjectAddMemory(ImpObj, MemoryName, HostMemory); - WasmEdge_StringDelete(MemoryName); - - /* Create and add a global instance into the import object. */ - WasmEdge_GlobalTypeContext *HostGType = - WasmEdge_GlobalTypeCreate(WasmEdge_ValType_I32, WasmEdge_Mutability_Var); - WasmEdge_GlobalInstanceContext *HostGlobal = - WasmEdge_GlobalInstanceCreate(HostGType, WasmEdge_ValueGenI32(666)); - WasmEdge_GlobalTypeDelete(HostGType); - WasmEdge_String GlobalName = WasmEdge_StringCreateByCString("global"); - WasmEdge_ImportObjectAddGlobal(ImpObj, GlobalName, HostGlobal); - WasmEdge_StringDelete(GlobalName); - - /* - * The import objects should be deleted. - * Developers should __NOT__ destroy the instances added into the import object contexts. - */ - WasmEdge_ImportObjectDelete(ImpObj); - ``` + The `Import Object` context holds an exporting module name and the instances. Developers can add the `Function`, `Memory`, `Table`, and `Global` instances with their exporting names. + + ```c + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + return WasmEdge_Result_Success; + } + + /* Create the import object. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("module"); + WasmEdge_ImportObjectContext *ImpObj = WasmEdge_ImportObjectCreate(ExportName); + WasmEdge_StringDelete(ExportName); + + /* Create and add a function instance into the import object. */ + enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; + enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; + WasmEdge_FunctionTypeContext *HostFType = + WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = + WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + /* + * The third parameter is the pointer to the additional data object. + * Developers should guarantee the life cycle of the data, and it can be + * `NULL` if the external data is not needed. + */ + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("add"); + WasmEdge_ImportObjectAddFunction(ImpObj, FuncName, HostFunc); + WasmEdge_StringDelete(FuncName); + + /* Create and add a table instance into the import object. */ + WasmEdge_Limit TableLimit = {.HasMax = true, .Min = 10, .Max = 20}; + WasmEdge_TableTypeContext *HostTType = + WasmEdge_TableTypeCreate(WasmEdge_RefType_FuncRef, TableLimit); + WasmEdge_TableInstanceContext *HostTable = WasmEdge_TableInstanceCreate(HostTType); + WasmEdge_TableTypeDelete(HostTType); + WasmEdge_String TableName = WasmEdge_StringCreateByCString("table"); + WasmEdge_ImportObjectAddTable(ImpObj, TableName, HostTable); + WasmEdge_StringDelete(TableName); + + /* Create and add a memory instance into the import object. */ + WasmEdge_Limit MemoryLimit = {.HasMax = true, .Min = 1, .Max = 2}; + WasmEdge_MemoryTypeContext *HostMType = WasmEdge_MemoryTypeCreate(MemoryLimit); + WasmEdge_MemoryInstanceContext *HostMemory = WasmEdge_MemoryInstanceCreate(HostMType); + WasmEdge_MemoryTypeDelete(HostMType); + WasmEdge_String MemoryName = WasmEdge_StringCreateByCString("memory"); + WasmEdge_ImportObjectAddMemory(ImpObj, MemoryName, HostMemory); + WasmEdge_StringDelete(MemoryName); + + /* Create and add a global instance into the import object. */ + WasmEdge_GlobalTypeContext *HostGType = + WasmEdge_GlobalTypeCreate(WasmEdge_ValType_I32, WasmEdge_Mutability_Var); + WasmEdge_GlobalInstanceContext *HostGlobal = + WasmEdge_GlobalInstanceCreate(HostGType, WasmEdge_ValueGenI32(666)); + WasmEdge_GlobalTypeDelete(HostGType); + WasmEdge_String GlobalName = WasmEdge_StringCreateByCString("global"); + WasmEdge_ImportObjectAddGlobal(ImpObj, GlobalName, HostGlobal); + WasmEdge_StringDelete(GlobalName); + + /* + * The import objects should be deleted. + * Developers should __NOT__ destroy the instances added into the import object contexts. + */ + WasmEdge_ImportObjectDelete(ImpObj); + ``` 3. Specified import object - `WasmEdge_ImportObjectCreateWASI()` API can create and initialize the `WASI` import object. `WasmEdge_ImportObjectCreateWasmEdgeProcess()` API can create and initialize the `wasmedge_process` import object. Developers can create these import object contexts and register them into the `Store` or `VM` contexts rather than adjust the settings in the `Configure` contexts. - - ```c - WasmEdge_ImportObjectContext *WasiObj = WasmEdge_ImportObjectCreateWASI( /* ... ignored */ ); - WasmEdge_ImportObjectContext *ProcObj = WasmEdge_ImportObjectCreateWasmEdgeProcess( /* ... ignored */ ); - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - /* Register the WASI and WasmEdge_Process into the VM context. */ - WasmEdge_VMRegisterModuleFromImport(VMCxt, WasiObj); - WasmEdge_VMRegisterModuleFromImport(VMCxt, ProcObj); - /* Get the WASI exit code. */ - uint32_t ExitCode = WasmEdge_ImportObjectWASIGetExitCode(WasiObj); - /* - * The `ExitCode` will be EXIT_SUCCESS if the execution has no error. - * Otherwise, it will return with the related exit code. - */ - WasmEdge_VMDelete(VMCxt); - /* The import objects should be deleted. */ - WasmEdge_ImportObjectDelete(WasiObj); - WasmEdge_ImportObjectDelete(ProcObj); - ``` + `WasmEdge_ImportObjectCreateWASI()` API can create and initialize the `WASI` import object. `WasmEdge_ImportObjectCreateWasmEdgeProcess()` API can create and initialize the `wasmedge_process` import object. Developers can create these import object contexts and register them into the `Store` or `VM` contexts rather than adjust the settings in the `Configure` contexts. + + ```c + WasmEdge_ImportObjectContext *WasiObj = WasmEdge_ImportObjectCreateWASI( /* ... ignored */ ); + WasmEdge_ImportObjectContext *ProcObj = WasmEdge_ImportObjectCreateWasmEdgeProcess( /* ... ignored */ ); + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + /* Register the WASI and WasmEdge_Process into the VM context. */ + WasmEdge_VMRegisterModuleFromImport(VMCxt, WasiObj); + WasmEdge_VMRegisterModuleFromImport(VMCxt, ProcObj); + /* Get the WASI exit code. */ + uint32_t ExitCode = WasmEdge_ImportObjectWASIGetExitCode(WasiObj); + /* + * The `ExitCode` will be EXIT_SUCCESS if the execution has no error. + * Otherwise, it will return with the related exit code. + */ + WasmEdge_VMDelete(VMCxt); + /* The import objects should be deleted. */ + WasmEdge_ImportObjectDelete(WasiObj); + WasmEdge_ImportObjectDelete(ProcObj); + ``` 4. Example - Assume that a simple WASM from the WAT as following: - - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` - - And the `test.c` as following: - - ```c - #include - #include - - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - printf("Host function \"Add\": %d + %d\n", Val1, Val2); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - return WasmEdge_Result_Success; - } - - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The WASM module buffer. */ - uint8_t WASM[] = { - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B - }; - - /* Create the import object. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); - WasmEdge_ImportObjectContext *ImpObj = WasmEdge_ImportObjectCreate(ExportName); - enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; - enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; - WasmEdge_FunctionTypeContext *HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); - WasmEdge_ImportObjectAddFunction(ImpObj, HostFuncName, HostFunc); - WasmEdge_StringDelete(HostFuncName); - - WasmEdge_VMRegisterModuleFromImport(VMCxt, ImpObj); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[2] = { WasmEdge_ValueGenI32(1234), WasmEdge_ValueGenI32(5678) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( - VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - WasmEdge_ImportObjectDelete(ImpObj); - return 0; - } - ``` - - Then you can compile and run: (the result of 1234 + 5678 is 6912) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Host function "Add": 1234 + 5678 - Get the result: 6912 - ``` + Assume that a simple WASM from the WAT as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + And the `test.c` as following: + + ```c + #include + #include + + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + printf("Host function \"Add\": %d + %d\n", Val1, Val2); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + return WasmEdge_Result_Success; + } + + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The WASM module buffer. */ + uint8_t WASM[] = { + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B + }; + + /* Create the import object. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); + WasmEdge_ImportObjectContext *ImpObj = WasmEdge_ImportObjectCreate(ExportName); + enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; + enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; + WasmEdge_FunctionTypeContext *HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, NULL, 0); + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); + WasmEdge_ImportObjectAddFunction(ImpObj, HostFuncName, HostFunc); + WasmEdge_StringDelete(HostFuncName); + + WasmEdge_VMRegisterModuleFromImport(VMCxt, ImpObj); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[2] = { WasmEdge_ValueGenI32(1234), WasmEdge_ValueGenI32(5678) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( + VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + WasmEdge_ImportObjectDelete(ImpObj); + return 0; + } + ``` + + Then you can compile and run: (the result of 1234 + 5678 is 6912) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Host function "Add": 1234 + 5678 + Get the result: 6912 + ``` 5. Host Data Example - Developers can set a external data object to the function context, and access to the object in the function body. Assume that a simple WASM from the WAT as following: - - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` - - And the `test.c` as following: - - ```c - #include - #include - - /* Host function body definition. */ - WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, - const WasmEdge_Value *In, WasmEdge_Value *Out) { - int32_t Val1 = WasmEdge_ValueGetI32(In[0]); - int32_t Val2 = WasmEdge_ValueGetI32(In[1]); - printf("Host function \"Add\": %d + %d\n", Val1, Val2); - Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); - /* Also set the result to the data. */ - int32_t *DataPtr = (int32_t *)Data; - *DataPtr = Val1 + Val2; - return WasmEdge_Result_Success; - } - - int main() { - /* Create the VM context. */ - WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); - - /* The WASM module buffer. */ - uint8_t WASM[] = { - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B - }; - - /* The external data object: an integer. */ - int32_t Data; - - /* Create the import object. */ - WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); - WasmEdge_ImportObjectContext *ImpObj = WasmEdge_ImportObjectCreate(ExportName); - enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; - enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; - WasmEdge_FunctionTypeContext *HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); - WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, &Data, 0); - WasmEdge_FunctionTypeDelete(HostFType); - WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); - WasmEdge_ImportObjectAddFunction(ImpObj, HostFuncName, HostFunc); - WasmEdge_StringDelete(HostFuncName); - - WasmEdge_VMRegisterModuleFromImport(VMCxt, ImpObj); - - /* The parameters and returns arrays. */ - WasmEdge_Value Params[2] = { WasmEdge_ValueGenI32(1234), WasmEdge_ValueGenI32(5678) }; - WasmEdge_Value Returns[1]; - /* Function name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); - /* Run the WASM function from file. */ - WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( - VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); - - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); - } - printf("Data value: %d\n", Data); - - /* Resources deallocations. */ - WasmEdge_VMDelete(VMCxt); - WasmEdge_StringDelete(FuncName); - WasmEdge_ImportObjectDelete(ImpObj); - return 0; - } - ``` - - Then you can compile and run: (the result of 1234 + 5678 is 6912) - - ```bash - $ gcc test.c -lwasmedge_c - $ ./a.out - Host function "Add": 1234 + 5678 - Get the result: 6912 - Data value: 6912 - ``` + Developers can set a external data object to the function context, and access to the object in the function body. Assume that a simple WASM from the WAT as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + And the `test.c` as following: + + ```c + #include + #include + + /* Host function body definition. */ + WasmEdge_Result Add(void *Data, WasmEdge_MemoryInstanceContext *MemCxt, + const WasmEdge_Value *In, WasmEdge_Value *Out) { + int32_t Val1 = WasmEdge_ValueGetI32(In[0]); + int32_t Val2 = WasmEdge_ValueGetI32(In[1]); + printf("Host function \"Add\": %d + %d\n", Val1, Val2); + Out[0] = WasmEdge_ValueGenI32(Val1 + Val2); + /* Also set the result to the data. */ + int32_t *DataPtr = (int32_t *)Data; + *DataPtr = Val1 + Val2; + return WasmEdge_Result_Success; + } + + int main() { + /* Create the VM context. */ + WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(NULL, NULL); + + /* The WASM module buffer. */ + uint8_t WASM[] = { + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B + }; + + /* The external data object: an integer. */ + int32_t Data; + + /* Create the import object. */ + WasmEdge_String ExportName = WasmEdge_StringCreateByCString("extern"); + WasmEdge_ImportObjectContext *ImpObj = WasmEdge_ImportObjectCreate(ExportName); + enum WasmEdge_ValType ParamList[2] = { WasmEdge_ValType_I32, WasmEdge_ValType_I32 }; + enum WasmEdge_ValType ReturnList[1] = { WasmEdge_ValType_I32 }; + WasmEdge_FunctionTypeContext *HostFType = WasmEdge_FunctionTypeCreate(ParamList, 2, ReturnList, 1); + WasmEdge_FunctionInstanceContext *HostFunc = WasmEdge_FunctionInstanceCreate(HostFType, Add, &Data, 0); + WasmEdge_FunctionTypeDelete(HostFType); + WasmEdge_String HostFuncName = WasmEdge_StringCreateByCString("func-add"); + WasmEdge_ImportObjectAddFunction(ImpObj, HostFuncName, HostFunc); + WasmEdge_StringDelete(HostFuncName); + + WasmEdge_VMRegisterModuleFromImport(VMCxt, ImpObj); + + /* The parameters and returns arrays. */ + WasmEdge_Value Params[2] = { WasmEdge_ValueGenI32(1234), WasmEdge_ValueGenI32(5678) }; + WasmEdge_Value Returns[1]; + /* Function name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("addTwo"); + /* Run the WASM function from file. */ + WasmEdge_Result Res = WasmEdge_VMRunWasmFromBuffer( + VMCxt, WASM, sizeof(WASM), FuncName, Params, 2, Returns, 1); + + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Error message: %s\n", WasmEdge_ResultGetMessage(Res)); + } + printf("Data value: %d\n", Data); + + /* Resources deallocations. */ + WasmEdge_VMDelete(VMCxt); + WasmEdge_StringDelete(FuncName); + WasmEdge_ImportObjectDelete(ImpObj); + return 0; + } + ``` + + Then you can compile and run: (the result of 1234 + 5678 is 6912) + + ```bash + $ gcc test.c -lwasmedge_c + $ ./a.out + Host function "Add": 1234 + 5678 + Get the result: 6912 + Data value: 6912 + ``` ## WasmEdge AOT Compiler diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/_category_.json index 41a30626..fa5abcd1 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/_category_.json @@ -1,8 +1,8 @@ { - "label": "API Reference", - "position": 6, - "link": { - "type": "generated-index", - "description": "In this chapter, we will discuss the WasmEdge C API Reference ." - } + "label": "API Reference", + "position": 6, + "link": { + "type": "generated-index", + "description": "In this chapter, we will discuss the WasmEdge C API Reference ." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/upgrade_to_0.10.0.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/upgrade_to_0.10.0.md index da2f2069..0505b536 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/upgrade_to_0.10.0.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/upgrade_to_0.10.0.md @@ -10,54 +10,54 @@ Due to the WasmEdge C API breaking changes, this document shows the guideline of 1. Merged the `WasmEdge_ImportObjectContext` into the `WasmEdge_ModuleInstanceContext`. - The `WasmEdge_ImportObjectContext` which is for the host functions is merged into `WasmEdge_ModuleInstanceContext`. Developers can use the related APIs to construct host modules. + The `WasmEdge_ImportObjectContext` which is for the host functions is merged into `WasmEdge_ModuleInstanceContext`. Developers can use the related APIs to construct host modules. - - `WasmEdge_ImportObjectCreate()` is changed to `WasmEdge_ModuleInstanceCreate()`. - - `WasmEdge_ImportObjectDelete()` is changed to `WasmEdge_ModuleInstanceDelete()`. - - `WasmEdge_ImportObjectAddFunction()` is changed to `WasmEdge_ModuleInstanceAddFunction()`. - - `WasmEdge_ImportObjectAddTable()` is changed to `WasmEdge_ModuleInstanceAddTable()`. - - `WasmEdge_ImportObjectAddMemory()` is changed to `WasmEdge_ModuleInstanceAddMemory()`. - - `WasmEdge_ImportObjectAddGlobal()` is changed to `WasmEdge_ModuleInstanceAddGlobal()`. - - `WasmEdge_ImportObjectCreateWASI()` is changed to `WasmEdge_ModuleInstanceCreateWASI()`. - - `WasmEdge_ImportObjectCreateWasmEdgeProcess()` is changed to `WasmEdge_ModuleInstanceCreateWasmEdgeProcess()`. - - `WasmEdge_ImportObjectInitWASI()` is changed to `WasmEdge_ModuleInstanceInitWASI()`. - - `WasmEdge_ImportObjectInitWasmEdgeProcess()` is changed to `WasmEdge_ModuleInstanceInitWasmEdgeProcess()`. + - `WasmEdge_ImportObjectCreate()` is changed to `WasmEdge_ModuleInstanceCreate()`. + - `WasmEdge_ImportObjectDelete()` is changed to `WasmEdge_ModuleInstanceDelete()`. + - `WasmEdge_ImportObjectAddFunction()` is changed to `WasmEdge_ModuleInstanceAddFunction()`. + - `WasmEdge_ImportObjectAddTable()` is changed to `WasmEdge_ModuleInstanceAddTable()`. + - `WasmEdge_ImportObjectAddMemory()` is changed to `WasmEdge_ModuleInstanceAddMemory()`. + - `WasmEdge_ImportObjectAddGlobal()` is changed to `WasmEdge_ModuleInstanceAddGlobal()`. + - `WasmEdge_ImportObjectCreateWASI()` is changed to `WasmEdge_ModuleInstanceCreateWASI()`. + - `WasmEdge_ImportObjectCreateWasmEdgeProcess()` is changed to `WasmEdge_ModuleInstanceCreateWasmEdgeProcess()`. + - `WasmEdge_ImportObjectInitWASI()` is changed to `WasmEdge_ModuleInstanceInitWASI()`. + - `WasmEdge_ImportObjectInitWasmEdgeProcess()` is changed to `WasmEdge_ModuleInstanceInitWasmEdgeProcess()`. - For the new host function examples, please refer to [the example below](#host-functions). + For the new host function examples, please refer to [the example below](#host-functions). 2. Used the pointer to `WasmEdge_FunctionInstanceContext` instead of the index in the `FuncRef` value type. - For the better performance and security, the `FuncRef` related APIs used the `const WasmEdge_FunctionInstanceContext *` for the parameters and returns. + For the better performance and security, the `FuncRef` related APIs used the `const WasmEdge_FunctionInstanceContext *` for the parameters and returns. - - `WasmEdge_ValueGenFuncRef()` is changed to use the `const WasmEdge_FunctionInstanceContext *` as it's argument. - - `WasmEdge_ValueGetFuncRef()` is changed to return the `const WasmEdge_FunctionInstanceContext *`. + - `WasmEdge_ValueGenFuncRef()` is changed to use the `const WasmEdge_FunctionInstanceContext *` as it's argument. + - `WasmEdge_ValueGetFuncRef()` is changed to return the `const WasmEdge_FunctionInstanceContext *`. 3. Supported multiple anonymous WASM module instantiation. - In the version before `0.9.1`, WasmEdge only supports 1 anonymous WASM module to be instantiated at one time. If developers instantiate a new WASM module, the old one will be replaced. After the `0.10.0` version, developers can instantiate multiple anonymous WASM module by `Executor` and get the `Module` instance. But for the source code using the `VM` APIs, the behavior is not changed. For the new examples of instantiating multiple anonymous WASM modules, please refer to [the example below](#wasmedge-executor-changes). + In the version before `0.9.1`, WasmEdge only supports 1 anonymous WASM module to be instantiated at one time. If developers instantiate a new WASM module, the old one will be replaced. After the `0.10.0` version, developers can instantiate multiple anonymous WASM module by `Executor` and get the `Module` instance. But for the source code using the `VM` APIs, the behavior is not changed. For the new examples of instantiating multiple anonymous WASM modules, please refer to [the example below](#wasmedge-executor-changes). 4. Behavior changed of `WasmEdge_StoreContext`. - The `Function`, `Table`, `Memory`, and `Global` instances retrievement from the `Store` is moved to the `Module` instance. The `Store` only manage the module linking when instantiation and the named module searching after the `0.10.0` version. + The `Function`, `Table`, `Memory`, and `Global` instances retrievement from the `Store` is moved to the `Module` instance. The `Store` only manage the module linking when instantiation and the named module searching after the `0.10.0` version. - - `WasmEdge_StoreListFunctionLength()` and `WasmEdge_StoreListFunctionRegisteredLength()` is replaced by `WasmEdge_ModuleInstanceListFunctionLength()`. - - `WasmEdge_StoreListTableLength()` and `WasmEdge_StoreListTableRegisteredLength()` is replaced by `WasmEdge_ModuleInstanceListTableLength()`. - - `WasmEdge_StoreListMemoryLength()` and `WasmEdge_StoreListMemoryRegisteredLength()` is replaced by `WasmEdge_ModuleInstanceListMemoryLength()`. - - `WasmEdge_StoreListGlobalLength()` and `WasmEdge_StoreListGlobalRegisteredLength()` is replaced by `WasmEdge_ModuleInstanceListGlobalLength()`. - - `WasmEdge_StoreListFunction()` and `WasmEdge_StoreListFunctionRegistered()` is replaced by `WasmEdge_ModuleInstanceListFunction()`. - - `WasmEdge_StoreListTable()` and `WasmEdge_StoreListTableRegistered()` is replaced by `WasmEdge_ModuleInstanceListTable()`. - - `WasmEdge_StoreListMemory()` and `WasmEdge_StoreListMemoryRegistered()` is replaced by `WasmEdge_ModuleInstanceListMemory()`. - - `WasmEdge_StoreListGlobal()` and `WasmEdge_StoreListGlobalRegistered()` is replaced by `WasmEdge_ModuleInstanceListGlobal()`. - - `WasmEdge_StoreFindFunction()` and `WasmEdge_StoreFindFunctionRegistered()` is replaced by `WasmEdge_ModuleInstanceFindFunction()`. - - `WasmEdge_StoreFindTable()` and `WasmEdge_StoreFindTableRegistered()` is replaced by `WasmEdge_ModuleInstanceFindTable()`. - - `WasmEdge_StoreFindMemory()` and `WasmEdge_StoreFindMemoryRegistered()` is replaced by `WasmEdge_ModuleInstanceFindMemory()`. - - `WasmEdge_StoreFindGlobal()` and `WasmEdge_StoreFindGlobalRegistered()` is replaced by `WasmEdge_ModuleInstanceFindGlobal()`. + - `WasmEdge_StoreListFunctionLength()` and `WasmEdge_StoreListFunctionRegisteredLength()` is replaced by `WasmEdge_ModuleInstanceListFunctionLength()`. + - `WasmEdge_StoreListTableLength()` and `WasmEdge_StoreListTableRegisteredLength()` is replaced by `WasmEdge_ModuleInstanceListTableLength()`. + - `WasmEdge_StoreListMemoryLength()` and `WasmEdge_StoreListMemoryRegisteredLength()` is replaced by `WasmEdge_ModuleInstanceListMemoryLength()`. + - `WasmEdge_StoreListGlobalLength()` and `WasmEdge_StoreListGlobalRegisteredLength()` is replaced by `WasmEdge_ModuleInstanceListGlobalLength()`. + - `WasmEdge_StoreListFunction()` and `WasmEdge_StoreListFunctionRegistered()` is replaced by `WasmEdge_ModuleInstanceListFunction()`. + - `WasmEdge_StoreListTable()` and `WasmEdge_StoreListTableRegistered()` is replaced by `WasmEdge_ModuleInstanceListTable()`. + - `WasmEdge_StoreListMemory()` and `WasmEdge_StoreListMemoryRegistered()` is replaced by `WasmEdge_ModuleInstanceListMemory()`. + - `WasmEdge_StoreListGlobal()` and `WasmEdge_StoreListGlobalRegistered()` is replaced by `WasmEdge_ModuleInstanceListGlobal()`. + - `WasmEdge_StoreFindFunction()` and `WasmEdge_StoreFindFunctionRegistered()` is replaced by `WasmEdge_ModuleInstanceFindFunction()`. + - `WasmEdge_StoreFindTable()` and `WasmEdge_StoreFindTableRegistered()` is replaced by `WasmEdge_ModuleInstanceFindTable()`. + - `WasmEdge_StoreFindMemory()` and `WasmEdge_StoreFindMemoryRegistered()` is replaced by `WasmEdge_ModuleInstanceFindMemory()`. + - `WasmEdge_StoreFindGlobal()` and `WasmEdge_StoreFindGlobalRegistered()` is replaced by `WasmEdge_ModuleInstanceFindGlobal()`. - For the new examples of retrieving instances, please refer to [the example below](#instances-retrievement). + For the new examples of retrieving instances, please refer to [the example below](#instances-retrievement). 5. The `WasmEdge_ModuleInstanceContext`-based resource management. - Except the creation of `Module` instance for the host functions, the `Executor` will output a `Module` instance after instantiation. No matter the anonymous or named modules, developers have the responsibility to destroy them by `WasmEdge_ModuleInstanceDelete()` API. The `Store` will link to the named `Module` instance after registering. After the destroyment of a `Module` instance, the `Store` will unlink to that automatically; after the destroyment of the `Store`, the all `Module` instances the `Store` linked to will unlink to that `Store` automatically. + Except the creation of `Module` instance for the host functions, the `Executor` will output a `Module` instance after instantiation. No matter the anonymous or named modules, developers have the responsibility to destroy them by `WasmEdge_ModuleInstanceDelete()` API. The `Store` will link to the named `Module` instance after registering. After the destroyment of a `Module` instance, the `Store` will unlink to that automatically; after the destroyment of the `Store`, the all `Module` instances the `Store` linked to will unlink to that `Store` automatically. ## WasmEdge VM changes @@ -128,218 +128,218 @@ WasmEdge_StringDelete(GlobName); 1. WASM module instantiation - In WasmEdge `0.9.1` version, developers can instantiate a WASM module by the `Executor` API: - - ```c - WasmEdge_ASTModuleContext *ASTCxt; - /* - * Assume that `ASTCxt` is a loaded WASM from file or buffer and has passed the validation. - * Assume that `ExecCxt` is a `WasmEdge_ExecutorContext`. - * Assume that `StoreCxt` is a `WasmEdge_StoreContext`. - */ - WasmEdge_Result Res = WasmEdge_ExecutorInstantiate(ExecCxt, StoreCxt, ASTCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - ``` - - Then the WASM module is instantiated into an anonymous module instance and handled by the `Store`. If a new WASM module is instantiated by this API, the old instantiated module instance will be cleaned. After the WasmEdge `0.10.0` version, the instantiated anonymous module will be outputted and handled by caller, and not only 1 anonymous module instance can be instantiated. Developers have the responsibility to destroy the outputted module instances. - - ```c - WasmEdge_ASTModuleContext *ASTCxt1, *ASTCxt2; - /* - * Assume that `ASTCxt1` and `ASTCxt2` are loaded WASMs from different files or buffers, - * and have both passed the validation. - * Assume that `ExecCxt` is a `WasmEdge_ExecutorContext`. - * Assume that `StoreCxt` is a `WasmEdge_StoreContext`. - */ - WasmEdge_ModuleInstanceContext *ModCxt1 = NULL; - WasmEdge_ModuleInstanceContext *ModCxt2 = NULL; - WasmEdge_Result Res = WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt1, StoreCxt, ASTCxt1); - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - Res = WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt2, StoreCxt, ASTCxt2); - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - ``` + In WasmEdge `0.9.1` version, developers can instantiate a WASM module by the `Executor` API: + + ```c + WasmEdge_ASTModuleContext *ASTCxt; + /* + * Assume that `ASTCxt` is a loaded WASM from file or buffer and has passed the validation. + * Assume that `ExecCxt` is a `WasmEdge_ExecutorContext`. + * Assume that `StoreCxt` is a `WasmEdge_StoreContext`. + */ + WasmEdge_Result Res = WasmEdge_ExecutorInstantiate(ExecCxt, StoreCxt, ASTCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + ``` + + Then the WASM module is instantiated into an anonymous module instance and handled by the `Store`. If a new WASM module is instantiated by this API, the old instantiated module instance will be cleaned. After the WasmEdge `0.10.0` version, the instantiated anonymous module will be outputted and handled by caller, and not only 1 anonymous module instance can be instantiated. Developers have the responsibility to destroy the outputted module instances. + + ```c + WasmEdge_ASTModuleContext *ASTCxt1, *ASTCxt2; + /* + * Assume that `ASTCxt1` and `ASTCxt2` are loaded WASMs from different files or buffers, + * and have both passed the validation. + * Assume that `ExecCxt` is a `WasmEdge_ExecutorContext`. + * Assume that `StoreCxt` is a `WasmEdge_StoreContext`. + */ + WasmEdge_ModuleInstanceContext *ModCxt1 = NULL; + WasmEdge_ModuleInstanceContext *ModCxt2 = NULL; + WasmEdge_Result Res = WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt1, StoreCxt, ASTCxt1); + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + Res = WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt2, StoreCxt, ASTCxt2); + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + ``` 2. WASM module registration with module name - When instantiating and registering a WASM module with module name, developers can use the `WasmEdge_ExecutorRegisterModule()` API before WasmEdge `0.9.1`. - - ```c - WasmEdge_ASTModuleContext *ASTCxt; - /* - * Assume that `ASTCxt` is a loaded WASM from file or buffer and has passed the validation. - * Assume that `ExecCxt` is a `WasmEdge_ExecutorContext`. - * Assume that `StoreCxt` is a `WasmEdge_StoreContext`. - */ - - /* Register the WASM module into store with the export module name "mod". */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - Res = WasmEdge_ExecutorRegisterModule(ExecCxt, StoreCxt, ASTCxt, ModName); - WasmEdge_StringDelete(ModName); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - ``` - - The same feature is implemented in WasmEdge `0.10.0`, but in different API `WasmEdge_ExecutorRegister()`: - - ```c - WasmEdge_ASTModuleContext *ASTCxt; - /* - * Assume that `ASTCxt` is a loaded WASM from file or buffer and has passed the validation. - * Assume that `ExecCxt` is a `WasmEdge_ExecutorContext`. - * Assume that `StoreCxt` is a `WasmEdge_StoreContext`. - */ - - /* Register the WASM module into store with the export module name "mod". */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); - /* The output module instance. */ - WasmEdge_ModuleInstanceContext *ModCxt = NULL; - Res = WasmEdge_ExecutorRegister(ExecCxt, &ModCxt, StoreCxt, ASTCxt, ModName); - WasmEdge_StringDelete(ModName); - if (!WasmEdge_ResultOK(Res)) { - printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - ``` - - Developers have the responsibility to destroy the outputted module instances. + When instantiating and registering a WASM module with module name, developers can use the `WasmEdge_ExecutorRegisterModule()` API before WasmEdge `0.9.1`. + + ```c + WasmEdge_ASTModuleContext *ASTCxt; + /* + * Assume that `ASTCxt` is a loaded WASM from file or buffer and has passed the validation. + * Assume that `ExecCxt` is a `WasmEdge_ExecutorContext`. + * Assume that `StoreCxt` is a `WasmEdge_StoreContext`. + */ + + /* Register the WASM module into store with the export module name "mod". */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + Res = WasmEdge_ExecutorRegisterModule(ExecCxt, StoreCxt, ASTCxt, ModName); + WasmEdge_StringDelete(ModName); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + ``` + + The same feature is implemented in WasmEdge `0.10.0`, but in different API `WasmEdge_ExecutorRegister()`: + + ```c + WasmEdge_ASTModuleContext *ASTCxt; + /* + * Assume that `ASTCxt` is a loaded WASM from file or buffer and has passed the validation. + * Assume that `ExecCxt` is a `WasmEdge_ExecutorContext`. + * Assume that `StoreCxt` is a `WasmEdge_StoreContext`. + */ + + /* Register the WASM module into store with the export module name "mod". */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("mod"); + /* The output module instance. */ + WasmEdge_ModuleInstanceContext *ModCxt = NULL; + Res = WasmEdge_ExecutorRegister(ExecCxt, &ModCxt, StoreCxt, ASTCxt, ModName); + WasmEdge_StringDelete(ModName); + if (!WasmEdge_ResultOK(Res)) { + printf("WASM registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + ``` + + Developers have the responsibility to destroy the outputted module instances. 3. Host module registration - In WasmEdge `0.9.1`, developers can create a `WasmEdge_ImportObjectContext` and register into `Store`. - - ```c - /* Create the import object with the export module name. */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("module"); - WasmEdge_ImportObjectContext *ImpObj = WasmEdge_ImportObjectCreate(ModName); - WasmEdge_StringDelete(ModName); - /* - * ... - * Add the host functions, tables, memories, and globals into the import object. - */ - /* The import module context has already contained the export module name. */ - Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, ImpObj); - if (!WasmEdge_ResultOK(Res)) { - printf("Import object registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - ``` - - After WasmEdge `0.10.0`, developers should use the `WasmEdge_ModuleInstanceContext` instead: - - ```c - /* Create the module instance with the export module name. */ - WasmEdge_String ModName = WasmEdge_StringCreateByCString("module"); - WasmEdge_ModuleInstanceContext *ModCxt = WasmEdge_ModuleInstanceCreate(ModName); - WasmEdge_StringDelete(ModName); - /* - * ... - * Add the host functions, tables, memories, and globals into the module instance. - */ - /* The module instance context has already contained the export module name. */ - Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, ModCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Module instance registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); - } - ``` - - Developers have the responsibility to destroy the created module instances. + In WasmEdge `0.9.1`, developers can create a `WasmEdge_ImportObjectContext` and register into `Store`. + + ```c + /* Create the import object with the export module name. */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("module"); + WasmEdge_ImportObjectContext *ImpObj = WasmEdge_ImportObjectCreate(ModName); + WasmEdge_StringDelete(ModName); + /* + * ... + * Add the host functions, tables, memories, and globals into the import object. + */ + /* The import module context has already contained the export module name. */ + Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, ImpObj); + if (!WasmEdge_ResultOK(Res)) { + printf("Import object registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + ``` + + After WasmEdge `0.10.0`, developers should use the `WasmEdge_ModuleInstanceContext` instead: + + ```c + /* Create the module instance with the export module name. */ + WasmEdge_String ModName = WasmEdge_StringCreateByCString("module"); + WasmEdge_ModuleInstanceContext *ModCxt = WasmEdge_ModuleInstanceCreate(ModName); + WasmEdge_StringDelete(ModName); + /* + * ... + * Add the host functions, tables, memories, and globals into the module instance. + */ + /* The module instance context has already contained the export module name. */ + Res = WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, ModCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Module instance registration failed: %s\n", WasmEdge_ResultGetMessage(Res)); + } + ``` + + Developers have the responsibility to destroy the created module instances. 4. WASM function invocation - This example uses the [fibonacci.wasm](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm), and the corresponding WAT file is at [fibonacci.wat](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wat). In WasmEdge `0.9.1` version, developers can invoke a WASM function with the export function name: - - ```c - /* Create the store context. The store context holds the instances. */ - WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); - /* Result. */ - WasmEdge_Result Res; - - /* Create the loader context. The configure context can be NULL. */ - WasmEdge_LoaderContext *LoadCxt = WasmEdge_LoaderCreate(NULL); - /* Create the validator context. The configure context can be NULL. */ - WasmEdge_ValidatorContext *ValidCxt = WasmEdge_ValidatorCreate(NULL); - /* Create the executor context. The configure context and the statistics context can be NULL. */ - WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(NULL, NULL); - - /* Load the WASM file or the compiled-WASM file and convert into the AST module context. */ - WasmEdge_ASTModuleContext *ASTCxt = NULL; - Res = WasmEdge_LoaderParseFromFile(LoadCxt, &ASTCxt, "fibonacci.wasm"); - if (!WasmEdge_ResultOK(Res)) { - printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - /* Validate the WASM module. */ - Res = WasmEdge_ValidatorValidate(ValidCxt, ASTCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - /* Instantiate the WASM module into the store context. */ - Res = WasmEdge_ExecutorInstantiate(ExecCxt, StoreCxt, ASTCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - /* Invoke the function which is exported with the function name "fib". */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(18) }; - WasmEdge_Value Returns[1]; - Res = WasmEdge_ExecutorInvoke(ExecCxt, StoreCxt, FuncName, Params, 1, Returns, 1); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - WasmEdge_ASTModuleDelete(ASTCxt); - WasmEdge_LoaderDelete(LoadCxt); - WasmEdge_ValidatorDelete(ValidCxt); - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StoreDelete(StoreCxt); - ``` - - After the WasmEdge `0.10.0`, developers should retrieve the `Function` instance by function name first. - - ```c - /* - * ... - * Ignore the unchanged steps before validation. Please refer to the sample code above. - */ - WasmEdge_ModuleInstanceContext *ModCxt = NULL; - /* Instantiate the WASM module. */ - Res = WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt1, StoreCxt, ASTCxt); - if (!WasmEdge_ResultOK(Res)) { - printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - /* Retrieve the function instance by name. */ - WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); - WasmEdge_FunctionInstanceContext *FuncCxt = WasmEdge_ModuleInstanceFindFunction(ModCxt, FuncName); - WasmEdge_StringDelete(FuncName); - /* Invoke the function. */ - WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(18) }; - WasmEdge_Value Returns[1]; - Res = WasmEdge_ExecutorInvoke(ExecCxt, FuncCxt, Params, 1, Returns, 1); - if (WasmEdge_ResultOK(Res)) { - printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); - } else { - printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); - return -1; - } - - WasmEdge_ModuleInstanceDelete(ModCxt); - WasmEdge_ASTModuleDelete(ASTCxt); - WasmEdge_LoaderDelete(LoadCxt); - WasmEdge_ValidatorDelete(ValidCxt); - WasmEdge_ExecutorDelete(ExecCxt); - WasmEdge_StoreDelete(StoreCxt); - ``` + This example uses the [fibonacci.wasm](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm), and the corresponding WAT file is at [fibonacci.wat](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wat). In WasmEdge `0.9.1` version, developers can invoke a WASM function with the export function name: + + ```c + /* Create the store context. The store context holds the instances. */ + WasmEdge_StoreContext *StoreCxt = WasmEdge_StoreCreate(); + /* Result. */ + WasmEdge_Result Res; + + /* Create the loader context. The configure context can be NULL. */ + WasmEdge_LoaderContext *LoadCxt = WasmEdge_LoaderCreate(NULL); + /* Create the validator context. The configure context can be NULL. */ + WasmEdge_ValidatorContext *ValidCxt = WasmEdge_ValidatorCreate(NULL); + /* Create the executor context. The configure context and the statistics context can be NULL. */ + WasmEdge_ExecutorContext *ExecCxt = WasmEdge_ExecutorCreate(NULL, NULL); + + /* Load the WASM file or the compiled-WASM file and convert into the AST module context. */ + WasmEdge_ASTModuleContext *ASTCxt = NULL; + Res = WasmEdge_LoaderParseFromFile(LoadCxt, &ASTCxt, "fibonacci.wasm"); + if (!WasmEdge_ResultOK(Res)) { + printf("Loading phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + /* Validate the WASM module. */ + Res = WasmEdge_ValidatorValidate(ValidCxt, ASTCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Validation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + /* Instantiate the WASM module into the store context. */ + Res = WasmEdge_ExecutorInstantiate(ExecCxt, StoreCxt, ASTCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + /* Invoke the function which is exported with the function name "fib". */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(18) }; + WasmEdge_Value Returns[1]; + Res = WasmEdge_ExecutorInvoke(ExecCxt, StoreCxt, FuncName, Params, 1, Returns, 1); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + WasmEdge_ASTModuleDelete(ASTCxt); + WasmEdge_LoaderDelete(LoadCxt); + WasmEdge_ValidatorDelete(ValidCxt); + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StoreDelete(StoreCxt); + ``` + + After the WasmEdge `0.10.0`, developers should retrieve the `Function` instance by function name first. + + ```c + /* + * ... + * Ignore the unchanged steps before validation. Please refer to the sample code above. + */ + WasmEdge_ModuleInstanceContext *ModCxt = NULL; + /* Instantiate the WASM module. */ + Res = WasmEdge_ExecutorInstantiate(ExecCxt, &ModCxt1, StoreCxt, ASTCxt); + if (!WasmEdge_ResultOK(Res)) { + printf("Instantiation phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + /* Retrieve the function instance by name. */ + WasmEdge_String FuncName = WasmEdge_StringCreateByCString("fib"); + WasmEdge_FunctionInstanceContext *FuncCxt = WasmEdge_ModuleInstanceFindFunction(ModCxt, FuncName); + WasmEdge_StringDelete(FuncName); + /* Invoke the function. */ + WasmEdge_Value Params[1] = { WasmEdge_ValueGenI32(18) }; + WasmEdge_Value Returns[1]; + Res = WasmEdge_ExecutorInvoke(ExecCxt, FuncCxt, Params, 1, Returns, 1); + if (WasmEdge_ResultOK(Res)) { + printf("Get the result: %d\n", WasmEdge_ValueGetI32(Returns[0])); + } else { + printf("Execution phase failed: %s\n", WasmEdge_ResultGetMessage(Res)); + return -1; + } + + WasmEdge_ModuleInstanceDelete(ModCxt); + WasmEdge_ASTModuleDelete(ASTCxt); + WasmEdge_LoaderDelete(LoadCxt); + WasmEdge_ValidatorDelete(ValidCxt); + WasmEdge_ExecutorDelete(ExecCxt); + WasmEdge_StoreDelete(StoreCxt); + ``` ## Instances retrievement diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/upgrade_to_0.11.0.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/upgrade_to_0.11.0.md index f5685192..b42d0404 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/upgrade_to_0.11.0.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/upgrade_to_0.11.0.md @@ -10,15 +10,15 @@ Due to the WasmEdge C API breaking changes, this document shows the guideline fo 1. Supported the user-defined error code in host functions. - Developers can use the new API `WasmEdge_ResultGen()` to generate a `WasmEdge_Result` struct with `WasmEdge_ErrCategory_UserLevelError` and the error code. With this support, developers can specify the host function error code when failed by themselves. For the examples to specify the user-defined error code, please refer to [the example below](#user-defined-error-code-in-host-functions). + Developers can use the new API `WasmEdge_ResultGen()` to generate a `WasmEdge_Result` struct with `WasmEdge_ErrCategory_UserLevelError` and the error code. With this support, developers can specify the host function error code when failed by themselves. For the examples to specify the user-defined error code, please refer to [the example below](#user-defined-error-code-in-host-functions). 2. Calling frame for the host function extension - In the previous versions, host functions only pass the memory instance into the function body. For supporting the WASM multiple memories proposal and providing the recursive invocation in host functions, the new context `WasmEdge_CallingFrameContext` replaced the memory instance in the second argument of the host function definition. For the examples of the new host function definition, please refer to [the example below](#calling-frame-in-host-functions). + In the previous versions, host functions only pass the memory instance into the function body. For supporting the WASM multiple memories proposal and providing the recursive invocation in host functions, the new context `WasmEdge_CallingFrameContext` replaced the memory instance in the second argument of the host function definition. For the examples of the new host function definition, please refer to [the example below](#calling-frame-in-host-functions). 3. Apply the SONAME and SOVERSION. - When linking the WasmEdge shared library, please notice that `libwasmedge_c.so` is renamed to `libwasmedge.so` after the 0.11.0 release. Please use `-lwasmedge` instead of `-lwasmedge_c` for the linker option. + When linking the WasmEdge shared library, please notice that `libwasmedge_c.so` is renamed to `libwasmedge.so` after the 0.11.0 release. Please use `-lwasmedge` instead of `-lwasmedge_c` for the linker option. ## User Defined Error Code In Host Functions diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/upgrade_to_0.12.0.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/upgrade_to_0.12.0.md index cb71e39a..ecd837f8 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/upgrade_to_0.12.0.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/c/reference/upgrade_to_0.12.0.md @@ -10,36 +10,36 @@ Due to the WasmEdge C API breaking changes, this document shows the guideline fo 1. Removed the members of the `WasmEdge_HostRegistration` enumeration. - The following members of the `WasmEdge_HostRegistration` enumeration are removed: + The following members of the `WasmEdge_HostRegistration` enumeration are removed: - - `WasmEdge_HostRegistration_WasmEdge_Process` - - `WasmEdge_HostRegistration_WasiNN` - - `WasmEdge_HostRegistration_WasiCrypto_Common` - - `WasmEdge_HostRegistration_WasiCrypto_AsymmetricCommon` - - `WasmEdge_HostRegistration_WasiCrypto_Kx` - - `WasmEdge_HostRegistration_WasiCrypto_Signatures` - - `WasmEdge_HostRegistration_WasiCrypto_Symmetric` + - `WasmEdge_HostRegistration_WasmEdge_Process` + - `WasmEdge_HostRegistration_WasiNN` + - `WasmEdge_HostRegistration_WasiCrypto_Common` + - `WasmEdge_HostRegistration_WasiCrypto_AsymmetricCommon` + - `WasmEdge_HostRegistration_WasiCrypto_Kx` + - `WasmEdge_HostRegistration_WasiCrypto_Signatures` + - `WasmEdge_HostRegistration_WasiCrypto_Symmetric` - The `WasmEdge_VMContext` will create and register the host modules automatically now. If the plug-ins are not loaded, the `WasmEdge_VMContext` will create and register the mock modules to prevent from import failed. + The `WasmEdge_VMContext` will create and register the host modules automatically now. If the plug-ins are not loaded, the `WasmEdge_VMContext` will create and register the mock modules to prevent from import failed. 2. Removed the module instance creation functions of the plug-ins. - The following APIs are removed: + The following APIs are removed: - - `WasmEdge_ModuleInstanceCreateWasiNN()` - - `WasmEdge_ModuleInstanceCreateWasiCryptoCommon()` - - `WasmEdge_ModuleInstanceCreateWasiCryptoAsymmetricCommon()` - - `WasmEdge_ModuleInstanceCreateWasiCryptoKx()` - - `WasmEdge_ModuleInstanceCreateWasiCryptoSignatures()` - - `WasmEdge_ModuleInstanceCreateWasiCryptoSymmetric()` - - `WasmEdge_ModuleInstanceCreateWasmEdgeProcess()` + - `WasmEdge_ModuleInstanceCreateWasiNN()` + - `WasmEdge_ModuleInstanceCreateWasiCryptoCommon()` + - `WasmEdge_ModuleInstanceCreateWasiCryptoAsymmetricCommon()` + - `WasmEdge_ModuleInstanceCreateWasiCryptoKx()` + - `WasmEdge_ModuleInstanceCreateWasiCryptoSignatures()` + - `WasmEdge_ModuleInstanceCreateWasiCryptoSymmetric()` + - `WasmEdge_ModuleInstanceCreateWasmEdgeProcess()` - For the new examples for creating the module instances from plug-ins, please refer to [the example below](#creating-the-module-instance-from-a-plug-in). + For the new examples for creating the module instances from plug-ins, please refer to [the example below](#creating-the-module-instance-from-a-plug-in). 3. New module instance retrieving API of `VM` context. - - Added `WasmEdge_VMGetRegisteredModule()` for retrieving registered named module in VM context quickly. - - Added `WasmEdge_VMListRegisteredModuleLength()` and `WasmEdge_VMListRegisteredModule()` for listing registered named modules in VM context quickly. + - Added `WasmEdge_VMGetRegisteredModule()` for retrieving registered named module in VM context quickly. + - Added `WasmEdge_VMListRegisteredModuleLength()` and `WasmEdge_VMListRegisteredModule()` for listing registered named modules in VM context quickly. ## The `WasmEdge_HostRegistration` for plug-ins is not necessary in VM contexts diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/data/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/embed/data/_category_.json index 8cbce21a..07342a1f 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/data/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/data/_category_.json @@ -1,8 +1,8 @@ { - "label": "Passing Complex Data", - "position": 2, - "link": { - "type": "generated-index", - "description": "Passing Complex Data from the host app to the wasm app" - } + "label": "Passing Complex Data", + "position": 2, + "link": { + "type": "generated-index", + "description": "Passing Complex Data from the host app to the wasm app" + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/data/intro.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/data/intro.md index 7626742d..6edabc40 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/data/intro.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/data/intro.md @@ -8,5 +8,5 @@ Passing complex data like string is difficult for WebAssembly since Wasm does no Now WasmEdge-bindgen supports WasmEdge Go SDK and Rust SDK. I will walk you through how to pass complex data from GO and Rust host to an embedded Wasm functions. -- [Passing complex data from WasmEdge Go SDK](go.md) -- [Passing complex data from WasmEdge Rust SDK](rust.md) +- [Passing complex data from WasmEdge Go SDK](go.md) +- [Passing complex data from WasmEdge Rust SDK](rust.md) diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/_category_.json index da899af8..dab0c8dc 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/_category_.json @@ -1,8 +1,8 @@ { - "label": "Go SDK for Embedding Wasm Functions", - "position": 6, - "link": { - "type": "generated-index", - "description": "In this chapter, we will learn how to Embed WasmEdge in your Go host applications." - } + "label": "Go SDK for Embedding Wasm Functions", + "position": 6, + "link": { + "type": "generated-index", + "description": "In this chapter, we will learn how to Embed WasmEdge in your Go host applications." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/intro.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/intro.md index 08da0552..d7794465 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/intro.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/intro.md @@ -44,25 +44,25 @@ By default, the `WasmEdge-go` only turns on the basic runtime. `WasmEdge-go` has the following extensions: -- TensorFlow +- TensorFlow - - This extension supports the host functions in [WasmEdge-tensorflow](https://github.com/second-state/WasmEdge-tensorflow). - - To install the `tensorflow` extension, please use the `-e tensorflow` flag in the WasmEdge installer command. - - For using this extension, the tag `tensorflow` when building is required: + - This extension supports the host functions in [WasmEdge-tensorflow](https://github.com/second-state/WasmEdge-tensorflow). + - To install the `tensorflow` extension, please use the `-e tensorflow` flag in the WasmEdge installer command. + - For using this extension, the tag `tensorflow` when building is required: - ```bash - go build -tags tensorflow - ``` + ```bash + go build -tags tensorflow + ``` -- Image +- Image - - This extension supports the host functions in [WasmEdge-image](https://github.com/second-state/WasmEdge-image). - - To install the `image` extension, please use the `-e image` flag in the WasmEdge installer command. - - For using this extension, the tag `image` when building is required: + - This extension supports the host functions in [WasmEdge-image](https://github.com/second-state/WasmEdge-image). + - To install the `image` extension, please use the `-e image` flag in the WasmEdge installer command. + - For using this extension, the tag `image` when building is required: - ```bash - go build -tags image - ``` + ```bash + go build -tags image + ``` You can also turn on the multiple extensions when building: @@ -80,25 +80,25 @@ The [go_WasmAOT example](https://github.com/second-state/WasmEdge-go-examples/tr To embed WasmEdge into your go application and run the Wasm function, we still need language toolchain to compile the source code to Wasm bytecode. -- For Rust, please refer to [the Rust set up guide](/develop/rust/setup) +- For Rust, please refer to [the Rust set up guide](/develop/rust/setup) -- For Tinygo, please refer to [the Tinygo set up guide](/develop/go/hello_world) +- For Tinygo, please refer to [the Tinygo set up guide](/develop/go/hello_world) -- For C, please refer to [the C set up guide](/develop/c/hello_world) +- For C, please refer to [the C set up guide](/develop/c/hello_world) -- For Javascript, you need to the [WasmEdge-QuickJS](https://github.com/second-state/wasmedge-quickjs) into your Go application. See a community example [here](https://github.com/Edgenesis/wasm-shifu-demo). +- For Javascript, you need to the [WasmEdge-QuickJS](https://github.com/second-state/wasmedge-quickjs) into your Go application. See a community example [here](https://github.com/Edgenesis/wasm-shifu-demo). ## Examples -- [Embed a standalone Wasm app](/embed/go/app) -- [Embed a Wasm function](/embed/go/function) -- [Pass complex parameters to Wasm functions](/embed/go/passing_data) -- [Embed a Tensorflow inference function](/embed/go/ai) -- [Embed a bindgen function](/embed/go/bindgen) +- [Embed a standalone Wasm app](/embed/go/app) +- [Embed a Wasm function](/embed/go/function) +- [Pass complex parameters to Wasm functions](/embed/go/passing_data) +- [Embed a Tensorflow inference function](/embed/go/ai) +- [Embed a bindgen function](/embed/go/bindgen) ## API References -- [0.12.0](/embed/go/reference/0.12.0) -- [v0.11.2](/embed/go/reference/0.11.2) -- [v0.10.1](/embed/go/reference/0.10.1) -- [v0.9.1](/embed/go/reference/0.9.1) +- [0.12.0](/embed/go/reference/0.12.0) +- [v0.11.2](/embed/go/reference/0.11.2) +- [v0.10.1](/embed/go/reference/0.10.1) +- [v0.9.1](/embed/go/reference/0.9.1) diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/passing_data.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/passing_data.md index e0f43aae..f836ee42 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/passing_data.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/passing_data.md @@ -10,10 +10,10 @@ Such complex call parameters and return values include dynamic memory structures In this section, we will discuss several examples. -- [Pass strings to Rust functions](#pass-strings-to-rust-functions) -- [Pass strings to TinyGo functions](#pass-strings-to-tinygo-functions) -- [Pass bytes to Rust functions](#pass-bytes-to-rust-functions) -- [Pass bytes to TinyGo functions](#pass-bytes-to-tinygo-functions) +- [Pass strings to Rust functions](#pass-strings-to-rust-functions) +- [Pass strings to TinyGo functions](#pass-strings-to-tinygo-functions) +- [Pass bytes to Rust functions](#pass-bytes-to-rust-functions) +- [Pass bytes to TinyGo functions](#pass-bytes-to-tinygo-functions) ## Pass strings to Rust functions diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/0.10.1.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/0.10.1.md index be7790e3..4accd4b5 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/0.10.1.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/0.10.1.md @@ -10,42 +10,42 @@ The following are the guides to develop with the WasmEdge-Go SDK. ## Table of Contents -- [Getting Started](#getting-started) - - [WasmEdge Installation](#wasmedge-installation) - - [Get WasmEdge-go](#get-wasmedge-go) - - [WasmEdge-go Extensions](#wasmedge-go-extensions) - - [Example repository](#example-repository) -- [WasmEdge-go Basics](#wasmedge-go-basics) - - [Version](#version) - - [Logging Settings](#logging-settings) - - [Value Types](#value-types) - - [Results](#results) - - [Contexts And Their Life Cycles](#contexts-and-their-life-cycles) - - [WASM data structures](#wasm-data-structures) - - [Async](#async) - - [Configurations](#configurations) - - [Statistics](#statistics) - - [Tools driver](#tools-driver-v0101-or-upper-only) -- [WasmEdge VM](#wasmedge-vm) - - [WASM Execution Example With VM Object](#wasm-execution-example-with-vm-object) - - [VM Creations](#vm-creations) - - [Preregistrations](#preregistrations) - - [Host Module Registrations](#host-module-registrations) - - [WASM Registrations And Executions](#wasm-registrations-and-executions) - - [Asynchronous execution](#asynchronous-execution) - - [Instance Tracing](#instance-tracing) -- [WasmEdge Runtime](#wasmedge-runtime) - - [WASM Execution Example Step-By-Step](#wasm-execution-example-step-by-step) - - [Loader](#loader) - - [Validator](#validator) - - [Executor](#executor) - - [AST Module](#ast-module) - - [Store](#store) - - [Instances](#instances) - - [Host Functions](#host-functions) -- [WasmEdge AOT Compiler](#wasmedge-aot-compiler) - - [Compilation Example](#compilation-example) - - [Compiler Options](#compiler-options) +- [Getting Started](#getting-started) + - [WasmEdge Installation](#wasmedge-installation) + - [Get WasmEdge-go](#get-wasmedge-go) + - [WasmEdge-go Extensions](#wasmedge-go-extensions) + - [Example repository](#example-repository) +- [WasmEdge-go Basics](#wasmedge-go-basics) + - [Version](#version) + - [Logging Settings](#logging-settings) + - [Value Types](#value-types) + - [Results](#results) + - [Contexts And Their Life Cycles](#contexts-and-their-life-cycles) + - [WASM data structures](#wasm-data-structures) + - [Async](#async) + - [Configurations](#configurations) + - [Statistics](#statistics) + - [Tools driver](#tools-driver-v0101-or-upper-only) +- [WasmEdge VM](#wasmedge-vm) + - [WASM Execution Example With VM Object](#wasm-execution-example-with-vm-object) + - [VM Creations](#vm-creations) + - [Preregistrations](#preregistrations) + - [Host Module Registrations](#host-module-registrations) + - [WASM Registrations And Executions](#wasm-registrations-and-executions) + - [Asynchronous execution](#asynchronous-execution) + - [Instance Tracing](#instance-tracing) +- [WasmEdge Runtime](#wasmedge-runtime) + - [WASM Execution Example Step-By-Step](#wasm-execution-example-step-by-step) + - [Loader](#loader) + - [Validator](#validator) + - [Executor](#executor) + - [AST Module](#ast-module) + - [Store](#store) + - [Instances](#instances) + - [Host Functions](#host-functions) +- [WasmEdge AOT Compiler](#wasmedge-aot-compiler) + - [Compilation Example](#compilation-example) + - [Compiler Options](#compiler-options) ## Getting Started @@ -89,36 +89,36 @@ By default, the `WasmEdge-go` only turns on the basic runtime. `WasmEdge-go` has the following extensions (on the Linux platforms only): -- Tensorflow +- Tensorflow - - This extension supports the host functions in [WasmEdge-tensorflow](https://github.com/second-state/WasmEdge-tensorflow). - - The `TensorFlow` and `TensorFlow-Lite` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e tensorflow` command. - - For using this extension, the tag `tensorflow` when building is required: + - This extension supports the host functions in [WasmEdge-tensorflow](https://github.com/second-state/WasmEdge-tensorflow). + - The `TensorFlow` and `TensorFlow-Lite` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e tensorflow` command. + - For using this extension, the tag `tensorflow` when building is required: - ```bash - go build -tags tensorflow - ``` + ```bash + go build -tags tensorflow + ``` -- Tensorflow-Lite (`v0.10.1` or upper only) +- Tensorflow-Lite (`v0.10.1` or upper only) - - This extension supports the host functions in [WasmEdge-tensorflow](https://github.com/second-state/WasmEdge-tensorflow) with only `TensorFlow-Lite`. - - The `TensorFlow-Lite` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e tensorflow` command. - - **THIS TAG CANNOT BE USED WITH THE `tensorflow` TAG.** - - For using this extension, the tag `tensorflow` when building is required: + - This extension supports the host functions in [WasmEdge-tensorflow](https://github.com/second-state/WasmEdge-tensorflow) with only `TensorFlow-Lite`. + - The `TensorFlow-Lite` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e tensorflow` command. + - **THIS TAG CANNOT BE USED WITH THE `tensorflow` TAG.** + - For using this extension, the tag `tensorflow` when building is required: - ```bash - go build -tags tensorflowlite - ``` + ```bash + go build -tags tensorflowlite + ``` -- Image +- Image - - This extension supports the host functions in [WasmEdge-image](https://github.com/second-state/WasmEdge-image). - - The `Image` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e image` command. - - For using this extension, the tag `image` when building is required: + - This extension supports the host functions in [WasmEdge-image](https://github.com/second-state/WasmEdge-image). + - The `Image` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e image` command. + - For using this extension, the tag `image` when building is required: - ```bash - go build -tags image - ``` + ```bash + go build -tags image + ``` Users can also turn on the multiple extensions when building: @@ -157,47 +157,47 @@ In WasmEdge-go, the APIs will automatically do the conversion for the built-in t 1. Number types: `i32`, `i64`, `f32`, and `f64` - - Convert the `uint32` and `int32` to `i32` automatically when passing a value into WASM. - - Convert the `uint64` and `int64` to `i64` automatically when passing a value into WASM. - - Convert the `uint` and `int` to `i32` automatically when passing a value into WASM in 32-bit system. - - Convert the `uint` and `int` to `i64` automatically when passing a value into WASM in 64-bit system. - - Convert the `float32` to `f32` automatically when passing a value into WASM. - - Convert the `float64` to `f64` automatically when passing a value into WASM. - - Convert the `i32` from WASM to `int32` when getting a result. - - Convert the `i64` from WASM to `int64` when getting a result. - - Convert the `f32` from WASM to `float32` when getting a result. - - Convert the `f64` from WASM to `float64` when getting a result. + - Convert the `uint32` and `int32` to `i32` automatically when passing a value into WASM. + - Convert the `uint64` and `int64` to `i64` automatically when passing a value into WASM. + - Convert the `uint` and `int` to `i32` automatically when passing a value into WASM in 32-bit system. + - Convert the `uint` and `int` to `i64` automatically when passing a value into WASM in 64-bit system. + - Convert the `float32` to `f32` automatically when passing a value into WASM. + - Convert the `float64` to `f64` automatically when passing a value into WASM. + - Convert the `i32` from WASM to `int32` when getting a result. + - Convert the `i64` from WASM to `int64` when getting a result. + - Convert the `f32` from WASM to `float32` when getting a result. + - Convert the `f64` from WASM to `float64` when getting a result. 2. Number type: `v128` for the `SIMD` proposal - Developers should use the `wasmedge.NewV128()` to generate a `v128` value, and use the `wasmedge.GetV128()` to get the value. + Developers should use the `wasmedge.NewV128()` to generate a `v128` value, and use the `wasmedge.GetV128()` to get the value. - ```go - val := wasmedge.NewV128(uint64(1234), uint64(5678)) - high, low := val.GetVal() - // `high` will be uint64(1234), `low` will be uint64(5678) - ``` + ```go + val := wasmedge.NewV128(uint64(1234), uint64(5678)) + high, low := val.GetVal() + // `high` will be uint64(1234), `low` will be uint64(5678) + ``` 3. Reference types: `FuncRef` and `ExternRef` for the `Reference-Types` proposal - ```go - var funccxt *wasmedge.Function = ... // Create or get function object. - funcref := wasmedge.NewFuncRef(funccxt) - // Create a `FuncRef` with the function object. - - num := 1234 - // `num` is a `int`. - externref := wasmedge.NewExternRef(&num) - // Create an `ExternRef` which reference to the `num`. - num = 5678 - // Modify the `num` to 5678. - numref := externref.GetRef().(*int) - // Get the original reference from the `ExternRef`. - fmt.Println(*numref) - // Will print `5678`. - numref.Release() - // Should call the `Release` method. - ``` + ```go + var funccxt *wasmedge.Function = ... // Create or get function object. + funcref := wasmedge.NewFuncRef(funccxt) + // Create a `FuncRef` with the function object. + + num := 1234 + // `num` is a `int`. + externref := wasmedge.NewExternRef(&num) + // Create an `ExternRef` which reference to the `num`. + num = 5678 + // Modify the `num` to 5678. + numref := externref.GetRef().(*int) + // Get the original reference from the `ExternRef`. + fmt.Println(*numref) + // Will print `5678`. + numref.Release() + // Should call the `Release` method. + ``` ### Results @@ -231,166 +231,166 @@ The WASM data structures are used for creating instances or can be queried from 1. Limit - The `Limit` struct presents the minimum and maximum value data structure. - - ```go - lim1 := wasmedge.NewLimit(12) - fmt.Println(lim1.HasMax()) - // Will print `false`. - fmt.Println(lim1.GetMin()) - // Will print `12`. - - lim2 := wasmedge.NewLimitWithMax(15, 50) - fmt.Println(lim2.HasMax()) - // Will print `true`. - fmt.Println(lim2.GetMin()) - // Will print `15`. - fmt.Println(lim2.GetMax()) - // Will print `50`. - ``` - - For the thread proposal, the `Limit` struct also supports the shared memory description. (`v0.10.1` or upper only) - - ```go - lim3 := wasmedge.NewLimitShared(20) - fmt.Println(lim3.HasMax()) - // Will print `false`. - fmt.Println(lim3.IsShared()) - // Will print `true`. - fmt.Println(lim3.GetMin()) - // Will print `20`. - - lim4 := wasmedge.NewLimitSharedWithMax(30, 40) - fmt.Println(lim4.HasMax()) - // Will print `true`. - fmt.Println(lim4.IsShared()) - // Will print `true`. - fmt.Println(lim4.GetMin()) - // Will print `30`. - fmt.Println(lim4.GetMax()) - // Will print `40`. - ``` + The `Limit` struct presents the minimum and maximum value data structure. + + ```go + lim1 := wasmedge.NewLimit(12) + fmt.Println(lim1.HasMax()) + // Will print `false`. + fmt.Println(lim1.GetMin()) + // Will print `12`. + + lim2 := wasmedge.NewLimitWithMax(15, 50) + fmt.Println(lim2.HasMax()) + // Will print `true`. + fmt.Println(lim2.GetMin()) + // Will print `15`. + fmt.Println(lim2.GetMax()) + // Will print `50`. + ``` + + For the thread proposal, the `Limit` struct also supports the shared memory description. (`v0.10.1` or upper only) + + ```go + lim3 := wasmedge.NewLimitShared(20) + fmt.Println(lim3.HasMax()) + // Will print `false`. + fmt.Println(lim3.IsShared()) + // Will print `true`. + fmt.Println(lim3.GetMin()) + // Will print `20`. + + lim4 := wasmedge.NewLimitSharedWithMax(30, 40) + fmt.Println(lim4.HasMax()) + // Will print `true`. + fmt.Println(lim4.IsShared()) + // Will print `true`. + fmt.Println(lim4.GetMin()) + // Will print `30`. + fmt.Println(lim4.GetMax()) + // Will print `40`. + ``` 2. Function type context - The `FunctionType` is an object holds the function type context and used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `FunctionType` APIs to get the parameter or return value types information. - - ```go - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{ - wasmedge.ValType_ExternRef, - wasmedge.ValType_I32, - wasmedge.ValType_I64, - }, []wasmedge.ValType{ - wasmedge.ValType_F32, - wasmedge.ValType_F64, - }) - - plen := functype.GetParametersLength() - // `plen` will be 3. - rlen := functype.GetReturnsLength() - // `rlen` will be 2. - plist := functype.GetParameters() - // `plist` will be `[]wasmedge.ValType{wasmedge.ValType_ExternRef, wasmedge.ValType_I32, wasmedge.ValType_I64}`. - rlist := functype.GetReturns() - // `rlist` will be `[]wasmedge.ValType{wasmedge.ValType_F32, wasmedge.ValType_F64}`. - - functype.Release() - ``` + The `FunctionType` is an object holds the function type context and used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `FunctionType` APIs to get the parameter or return value types information. + + ```go + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{ + wasmedge.ValType_ExternRef, + wasmedge.ValType_I32, + wasmedge.ValType_I64, + }, []wasmedge.ValType{ + wasmedge.ValType_F32, + wasmedge.ValType_F64, + }) + + plen := functype.GetParametersLength() + // `plen` will be 3. + rlen := functype.GetReturnsLength() + // `rlen` will be 2. + plist := functype.GetParameters() + // `plist` will be `[]wasmedge.ValType{wasmedge.ValType_ExternRef, wasmedge.ValType_I32, wasmedge.ValType_I64}`. + rlist := functype.GetReturns() + // `rlist` will be `[]wasmedge.ValType{wasmedge.ValType_F32, wasmedge.ValType_F64}`. + + functype.Release() + ``` 3. Table type context - The `TableType` is an object holds the table type context and used for `Table` instance creation or getting information from `Table` instances. + The `TableType` is an object holds the table type context and used for `Table` instance creation or getting information from `Table` instances. - ```go - lim := wasmedge.NewLimit(12) - tabtype := wasmedge.NewTableType(wasmedge.RefType_ExternRef, lim) + ```go + lim := wasmedge.NewLimit(12) + tabtype := wasmedge.NewTableType(wasmedge.RefType_ExternRef, lim) - rtype := tabtype.GetRefType() - // `rtype` will be `wasmedge.RefType_ExternRef`. - getlim := tabtype.GetLimit() - // `getlim` will be the same value as `lim`. + rtype := tabtype.GetRefType() + // `rtype` will be `wasmedge.RefType_ExternRef`. + getlim := tabtype.GetLimit() + // `getlim` will be the same value as `lim`. - tabtype.Release() - ``` + tabtype.Release() + ``` 4. Memory type context - The `MemoryType` is an object holds the memory type context and used for `Memory` instance creation or getting information from `Memory` instances. + The `MemoryType` is an object holds the memory type context and used for `Memory` instance creation or getting information from `Memory` instances. - ```go - lim := wasmedge.NewLimit(1) - memtype := wasmedge.NewMemoryType(lim) + ```go + lim := wasmedge.NewLimit(1) + memtype := wasmedge.NewMemoryType(lim) - getlim := memtype.GetLimit() - // `getlim` will be the same value as `lim`. + getlim := memtype.GetLimit() + // `getlim` will be the same value as `lim`. - memtype.Release() - ``` + memtype.Release() + ``` 5. Global type context - The `GlobalType` is an object holds the global type context and used for `Global` instance creation or getting information from `Global` instances. + The `GlobalType` is an object holds the global type context and used for `Global` instance creation or getting information from `Global` instances. - ```go - globtype := wasmedge.NewGlobalType(wasmedge.ValType_F64, wasmedge.ValMut_Var) + ```go + globtype := wasmedge.NewGlobalType(wasmedge.ValType_F64, wasmedge.ValMut_Var) - vtype := globtype.GetValType() - // `vtype` will be `wasmedge.ValType_F64`. - vmut := globtype.GetMutability() - // `vmut` will be `wasmedge.ValMut_Var`. + vtype := globtype.GetValType() + // `vtype` will be `wasmedge.ValType_F64`. + vmut := globtype.GetMutability() + // `vmut` will be `wasmedge.ValMut_Var`. - globtype.Release() - ``` + globtype.Release() + ``` 6. Import type context - The `ImportType` is an object holds the import type context and used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `ImportType` object. The details about querying `ImportType` objects will be introduced in the [AST Module](#ast-module). + The `ImportType` is an object holds the import type context and used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `ImportType` object. The details about querying `ImportType` objects will be introduced in the [AST Module](#ast-module). - ```go - var ast *wasmedge.AST = ... - // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. - imptypelist := ast.ListImports() - // Assume that `imptypelist` is an array listed from the `ast` for the imports. + ```go + var ast *wasmedge.AST = ... + // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. + imptypelist := ast.ListImports() + // Assume that `imptypelist` is an array listed from the `ast` for the imports. - for i, imptype := range imptypelist { - exttype := imptype.GetExternalType() - // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, - // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. + for i, imptype := range imptypelist { + exttype := imptype.GetExternalType() + // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, + // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. - modname := imptype.GetModuleName() - extname := imptype.GetExternalName() - // Get the module name and external name of the imports. + modname := imptype.GetModuleName() + extname := imptype.GetExternalName() + // Get the module name and external name of the imports. - extval := imptype.GetExternalValue() - // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, - // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. - } - ``` + extval := imptype.GetExternalValue() + // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, + // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. + } + ``` 7. Export type context - The `ExportType` is an object holds the export type context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `ExportType` objects will be introduced in the [AST Module](#ast-module). + The `ExportType` is an object holds the export type context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `ExportType` objects will be introduced in the [AST Module](#ast-module). - ```go - var ast *wasmedge.AST = ... - // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. - exptypelist := ast.ListExports() - // Assume that `exptypelist` is an array listed from the `ast` for the exports. + ```go + var ast *wasmedge.AST = ... + // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. + exptypelist := ast.ListExports() + // Assume that `exptypelist` is an array listed from the `ast` for the exports. - for i, exptype := range exptypelist { - exttype := exptype.GetExternalType() - // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, - // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. + for i, exptype := range exptypelist { + exttype := exptype.GetExternalType() + // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, + // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. - extname := exptype.GetExternalName() - // Get the external name of the exports. + extname := exptype.GetExternalName() + // Get the external name of the exports. - extval := exptype.GetExternalValue() - // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, - // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. - } - ``` + extval := exptype.GetExternalValue() + // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, + // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. + } + ``` ### Async @@ -398,35 +398,35 @@ After calling the [asynchronous execution APIs](#asynchronous-execution), develo 1. Get the execution result of the asynchronous execution - Developers can use the `(*Async).GetResult()` API to block and wait for getting the return values. This function will block and wait for the execution. If the execution has finished, this function will return immediately. If the execution failed, this function will return an error. + Developers can use the `(*Async).GetResult()` API to block and wait for getting the return values. This function will block and wait for the execution. If the execution has finished, this function will return immediately. If the execution failed, this function will return an error. - ```go - async := ... // Ignored. Asynchronous execute a function. + ```go + async := ... // Ignored. Asynchronous execute a function. - // Blocking and waiting for the execution and get the return values. - res, err := async.GetResult() - async.Release() - ``` + // Blocking and waiting for the execution and get the return values. + res, err := async.GetResult() + async.Release() + ``` 2. Wait for the asynchronous execution with timeout settings - Besides waiting until the end of execution, developers can set the timeout to wait for. - - ```go - async := ... // Ignored. Asynchronous execute a function. - - // Blocking and waiting for the execution with the timeout(ms). - isend := async.WaitFor(1000) - if isend { - res, err := async.GetResult() - // ... - } else { - async.Cancel() - _, err := async.GetResult() - // The error message in `err` will be "execution interrupted". - } - async.Release() - ``` + Besides waiting until the end of execution, developers can set the timeout to wait for. + + ```go + async := ... // Ignored. Asynchronous execute a function. + + // Blocking and waiting for the execution with the timeout(ms). + isend := async.WaitFor(1000) + if isend { + res, err := async.GetResult() + // ... + } else { + async.Cancel() + _, err := async.GetResult() + // The error message in `err` will be "execution interrupted". + } + async.Release() + ``` ### Configurations @@ -434,156 +434,156 @@ The configuration object, `wasmedge.Configure`, manages the configurations for ` 1. Proposals - WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` object. - - ```go - const ( - IMPORT_EXPORT_MUT_GLOBALS = Proposal(C.WasmEdge_Proposal_ImportExportMutGlobals) - NON_TRAP_FLOAT_TO_INT_CONVERSIONS = Proposal(C.WasmEdge_Proposal_NonTrapFloatToIntConversions) - SIGN_EXTENSION_OPERATORS = Proposal(C.WasmEdge_Proposal_SignExtensionOperators) - MULTI_VALUE = Proposal(C.WasmEdge_Proposal_MultiValue) - BULK_MEMORY_OPERATIONS = Proposal(C.WasmEdge_Proposal_BulkMemoryOperations) - REFERENCE_TYPES = Proposal(C.WasmEdge_Proposal_ReferenceTypes) - SIMD = Proposal(C.WasmEdge_Proposal_SIMD) - TAIL_CALL = Proposal(C.WasmEdge_Proposal_TailCall) - ANNOTATIONS = Proposal(C.WasmEdge_Proposal_Annotations) - MEMORY64 = Proposal(C.WasmEdge_Proposal_Memory64) - THREADS = Proposal(C.WasmEdge_Proposal_Threads) - EXCEPTION_HANDLING = Proposal(C.WasmEdge_Proposal_ExceptionHandling) - FUNCTION_REFERENCES = Proposal(C.WasmEdge_Proposal_FunctionReferences) - ) - ``` - - Developers can add or remove the proposals into the `Configure` object. - - ```go - // By default, the following proposals have turned on initially: - // * IMPORT_EXPORT_MUT_GLOBALS - // * NON_TRAP_FLOAT_TO_INT_CONVERSIONS - // * SIGN_EXTENSION_OPERATORS - // * MULTI_VALUE - // * BULK_MEMORY_OPERATIONS - // * REFERENCE_TYPES - // * SIMD - // For the current WasmEdge version, the following proposals are supported: - // * TAIL_CALL - // * MULTI_MEMORIES - // * THREADS - conf := wasmedge.NewConfigure() - // Developers can also pass the proposals as parameters: - // conf := wasmedge.NewConfigure(wasmedge.SIMD, wasmedge.BULK_MEMORY_OPERATIONS) - conf.AddConfig(wasmedge.SIMD) - conf.RemoveConfig(wasmedge.REFERENCE_TYPES) - is_bulkmem := conf.HasConfig(wasmedge.BULK_MEMORY_OPERATIONS) - // The `is_bulkmem` will be `true`. - conf.Release() - ``` + WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` object. + + ```go + const ( + IMPORT_EXPORT_MUT_GLOBALS = Proposal(C.WasmEdge_Proposal_ImportExportMutGlobals) + NON_TRAP_FLOAT_TO_INT_CONVERSIONS = Proposal(C.WasmEdge_Proposal_NonTrapFloatToIntConversions) + SIGN_EXTENSION_OPERATORS = Proposal(C.WasmEdge_Proposal_SignExtensionOperators) + MULTI_VALUE = Proposal(C.WasmEdge_Proposal_MultiValue) + BULK_MEMORY_OPERATIONS = Proposal(C.WasmEdge_Proposal_BulkMemoryOperations) + REFERENCE_TYPES = Proposal(C.WasmEdge_Proposal_ReferenceTypes) + SIMD = Proposal(C.WasmEdge_Proposal_SIMD) + TAIL_CALL = Proposal(C.WasmEdge_Proposal_TailCall) + ANNOTATIONS = Proposal(C.WasmEdge_Proposal_Annotations) + MEMORY64 = Proposal(C.WasmEdge_Proposal_Memory64) + THREADS = Proposal(C.WasmEdge_Proposal_Threads) + EXCEPTION_HANDLING = Proposal(C.WasmEdge_Proposal_ExceptionHandling) + FUNCTION_REFERENCES = Proposal(C.WasmEdge_Proposal_FunctionReferences) + ) + ``` + + Developers can add or remove the proposals into the `Configure` object. + + ```go + // By default, the following proposals have turned on initially: + // * IMPORT_EXPORT_MUT_GLOBALS + // * NON_TRAP_FLOAT_TO_INT_CONVERSIONS + // * SIGN_EXTENSION_OPERATORS + // * MULTI_VALUE + // * BULK_MEMORY_OPERATIONS + // * REFERENCE_TYPES + // * SIMD + // For the current WasmEdge version, the following proposals are supported: + // * TAIL_CALL + // * MULTI_MEMORIES + // * THREADS + conf := wasmedge.NewConfigure() + // Developers can also pass the proposals as parameters: + // conf := wasmedge.NewConfigure(wasmedge.SIMD, wasmedge.BULK_MEMORY_OPERATIONS) + conf.AddConfig(wasmedge.SIMD) + conf.RemoveConfig(wasmedge.REFERENCE_TYPES) + is_bulkmem := conf.HasConfig(wasmedge.BULK_MEMORY_OPERATIONS) + // The `is_bulkmem` will be `true`. + conf.Release() + ``` 2. Host registrations - This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` objects. - - ```go - const ( - WASI = HostRegistration(C.WasmEdge_HostRegistration_Wasi) - WasmEdge_PROCESS = HostRegistration(C.WasmEdge_HostRegistration_WasmEdge_Process) - // The follows are `v0.10.1` or upper only. - WasiNN = HostRegistration(C.WasmEdge_HostRegistration_WasiNN) - WasiCrypto_Common = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Common) - WasiCrypto_AsymmetricCommon = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_AsymmetricCommon) - WasiCrypto_Kx = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Kx) - WasiCrypto_Signatures = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Signatures) - WasiCrypto_Symmetric = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Symmetric) - ) - ``` - - The details will be introduced in the [preregistrations of VM context](#preregistrations). - - ```go - conf := wasmedge.NewConfigure() - // Developers can also pass the proposals as parameters: - // conf := wasmedge.NewConfigure(wasmedge.WASI) - conf.AddConfig(wasmedge.WASI) - conf.Release() - ``` + This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` objects. + + ```go + const ( + WASI = HostRegistration(C.WasmEdge_HostRegistration_Wasi) + WasmEdge_PROCESS = HostRegistration(C.WasmEdge_HostRegistration_WasmEdge_Process) + // The follows are `v0.10.1` or upper only. + WasiNN = HostRegistration(C.WasmEdge_HostRegistration_WasiNN) + WasiCrypto_Common = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Common) + WasiCrypto_AsymmetricCommon = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_AsymmetricCommon) + WasiCrypto_Kx = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Kx) + WasiCrypto_Signatures = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Signatures) + WasiCrypto_Symmetric = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Symmetric) + ) + ``` + + The details will be introduced in the [preregistrations of VM context](#preregistrations). + + ```go + conf := wasmedge.NewConfigure() + // Developers can also pass the proposals as parameters: + // conf := wasmedge.NewConfigure(wasmedge.WASI) + conf.AddConfig(wasmedge.WASI) + conf.Release() + ``` 3. Maximum memory pages - Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` objects. + Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` objects. - ```go - conf := wasmedge.NewConfigure() + ```go + conf := wasmedge.NewConfigure() - pagesize := conf.GetMaxMemoryPage() - // By default, the maximum memory page size in each memory instances is 65536. - conf.SetMaxMemoryPage(1234) - pagesize := conf.GetMaxMemoryPage() - // `pagesize` will be 1234. + pagesize := conf.GetMaxMemoryPage() + // By default, the maximum memory page size in each memory instances is 65536. + conf.SetMaxMemoryPage(1234) + pagesize := conf.GetMaxMemoryPage() + // `pagesize` will be 1234. - conf.Release() - ``` + conf.Release() + ``` 4. AOT compiler options - The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. - - ```go - const ( - // Disable as many optimizations as possible. - CompilerOptLevel_O0 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O0) - // Optimize quickly without destroying debuggability. - CompilerOptLevel_O1 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O1) - // Optimize for fast execution as much as possible without triggering significant incremental compile time or code size growth. - CompilerOptLevel_O2 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O2) - // Optimize for fast execution as much as possible. - CompilerOptLevel_O3 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O3) - // Optimize for small code size as much as possible without triggering significant incremental compile time or execution time slowdowns. - CompilerOptLevel_Os = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Os) - // Optimize for small code size as much as possible. - CompilerOptLevel_Oz = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Oz) - ) - - const ( - // Native dynamic library format. - CompilerOutputFormat_Native = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Native) - // WebAssembly with AOT compiled codes in custom section. - CompilerOutputFormat_Wasm = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Wasm) - ) - ``` - - These configurations are only effective in `Compiler` contexts. - - ```go - conf := wasmedge.NewConfigure() - - // By default, the optimization level is O3. - conf.SetCompilerOptimizationLevel(wasmedge.CompilerOptLevel_O2) - // By default, the output format is universal WASM. - conf.SetCompilerOutputFormat(wasmedge.CompilerOutputFormat_Native) - // By default, the dump IR is `false`. - conf.SetCompilerDumpIR(true) - // By default, the generic binary is `false`. - conf.SetCompilerGenericBinary(true) - - conf.Release() - ``` + The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. + + ```go + const ( + // Disable as many optimizations as possible. + CompilerOptLevel_O0 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O0) + // Optimize quickly without destroying debuggability. + CompilerOptLevel_O1 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O1) + // Optimize for fast execution as much as possible without triggering significant incremental compile time or code size growth. + CompilerOptLevel_O2 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O2) + // Optimize for fast execution as much as possible. + CompilerOptLevel_O3 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O3) + // Optimize for small code size as much as possible without triggering significant incremental compile time or execution time slowdowns. + CompilerOptLevel_Os = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Os) + // Optimize for small code size as much as possible. + CompilerOptLevel_Oz = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Oz) + ) + + const ( + // Native dynamic library format. + CompilerOutputFormat_Native = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Native) + // WebAssembly with AOT compiled codes in custom section. + CompilerOutputFormat_Wasm = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Wasm) + ) + ``` + + These configurations are only effective in `Compiler` contexts. + + ```go + conf := wasmedge.NewConfigure() + + // By default, the optimization level is O3. + conf.SetCompilerOptimizationLevel(wasmedge.CompilerOptLevel_O2) + // By default, the output format is universal WASM. + conf.SetCompilerOutputFormat(wasmedge.CompilerOutputFormat_Native) + // By default, the dump IR is `false`. + conf.SetCompilerDumpIR(true) + // By default, the generic binary is `false`. + conf.SetCompilerGenericBinary(true) + + conf.Release() + ``` 5. Statistics options - The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` objects. + The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` objects. - ```go - conf := wasmedge.NewConfigure() + ```go + conf := wasmedge.NewConfigure() - // By default, the instruction counting is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsInstructionCounting(true) - // By default, the cost measurement is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsTimeMeasuring(true) - // By default, the time measurement is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsCostMeasuring(true) + // By default, the instruction counting is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsInstructionCounting(true) + // By default, the cost measurement is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsTimeMeasuring(true) + // By default, the time measurement is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsCostMeasuring(true) - conf.Release() - ``` + conf.Release() + ``` ### Statistics @@ -593,46 +593,46 @@ Before using statistics, the statistics configuration must be set. Otherwise, th 1. Instruction counter - The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` object from the `VM` object, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. + The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` object from the `VM` object, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. - ```go - stat := wasmedge.NewStatistics() - // ... After running the WASM functions with the `Statistics` object + ```go + stat := wasmedge.NewStatistics() + // ... After running the WASM functions with the `Statistics` object - count := stat.GetInstrCount() - ips := stat.GetInstrPerSecond() - stat.Release() - ``` + count := stat.GetInstrCount() + ips := stat.GetInstrPerSecond() + stat.Release() + ``` 2. Cost table - The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` object. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. - - ```c - stat := wasmedge.NewStatistics() - - costtable := []uint64{ - 0, 0, - 10, /* 0x02: Block */ - 11, /* 0x03: Loop */ - 12, /* 0x04: If */ - 12, /* 0x05: Else */ - 0, 0, 0, 0, 0, 0, - 20, /* 0x0C: Br */ - 21, /* 0x0D: Br_if */ - 22, /* 0x0E: Br_table */ - 0, - } - // Developers can set the costs of each instruction. The value not covered will be 0. - - WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); - stat.SetCostTable() - stat.SetCostLimit(5000000) - - // ... After running the WASM functions with the `Statistics` object - cost := stat.GetTotalCost() - stat.Release() - ``` + The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` object. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. + + ```c + stat := wasmedge.NewStatistics() + + costtable := []uint64{ + 0, 0, + 10, /* 0x02: Block */ + 11, /* 0x03: Loop */ + 12, /* 0x04: If */ + 12, /* 0x05: Else */ + 0, 0, 0, 0, 0, 0, + 20, /* 0x0C: Br */ + 21, /* 0x0D: Br_if */ + 22, /* 0x0E: Br_table */ + 0, + } + // Developers can set the costs of each instruction. The value not covered will be 0. + + WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); + stat.SetCostTable() + stat.SetCostLimit(5000000) + + // ... After running the WASM functions with the `Statistics` object + cost := stat.GetTotalCost() + stat.Release() + ``` ### Tools Driver (`v0.10.1` or upper only) @@ -692,157 +692,157 @@ The following shows the example of running the WASM for getting the Fibonacci. T 1. Run WASM functions rapidly - Create a new Go project first: + Create a new Go project first: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current `wasmedge_test` directory, and create and edit the Go file `main.go` as following: + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current `wasmedge_test` directory, and create and edit the Go file `main.go` as following: - ```go - package main + ```go + package main - import ( - "fmt" + import ( + "fmt" - "github.com/second-state/WasmEdge-go/wasmedge" - ) + "github.com/second-state/WasmEdge-go/wasmedge" + ) - func main() { - // Set the logging level. - wasmedge.SetLogErrorLevel() - - // Create the configure context and add the WASI support. - // This step is not necessary unless you need WASI support. - conf := wasmedge.NewConfigure(wasmedge.WASI) - // Create VM with the configure. - vm := wasmedge.NewVMWithConfig(conf) - - res, err := vm.RunWasmFile("fibonacci.wasm", "fib", uint32(21)) - if err == nil { - fmt.Println("Get fibonacci[21]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - vm.Release() - conf.Release() - } - ``` + func main() { + // Set the logging level. + wasmedge.SetLogErrorLevel() - Then you can build and run the Golang application with the WasmEdge Golang SDK: (the 21 Fibonacci number is 17711 in 0-based index) + // Create the configure context and add the WASI support. + // This step is not necessary unless you need WASI support. + conf := wasmedge.NewConfigure(wasmedge.WASI) + // Create VM with the configure. + vm := wasmedge.NewVMWithConfig(conf) - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 - $ go build - $ ./wasmedge_test - Get fibonacci[21]: 17711 - ``` + res, err := vm.RunWasmFile("fibonacci.wasm", "fib", uint32(21)) + if err == nil { + fmt.Println("Get fibonacci[21]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } -2. Instantiate and run WASM functions manually + vm.Release() + conf.Release() + } + ``` - Besides the above example, developers can run the WASM functions step-by-step with `VM` object APIs: + Then you can build and run the Golang application with the WasmEdge Golang SDK: (the 21 Fibonacci number is 17711 in 0-based index) - ```go - package main + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 + $ go build + $ ./wasmedge_test + Get fibonacci[21]: 17711 + ``` - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - // Set the logging level. - wasmedge.SetLogErrorLevel() - - // Create VM. - vm := wasmedge.NewVM() - var err error - var res []interface{} - - // Step 1: Load WASM file. - err = vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - // Developers can load, validate, and instantiate another WASM module - // to replace the instantiated one. In this case, the old module will - // be cleared, but the registered modules are still kept. - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // Step 4: Execute WASM functions. Parameters: (funcname, args...) - res, err = vm.Execute("fib", uint32(25)) - // Developers can execute functions repeatedly after instantiation. - if err == nil { - fmt.Println("Get fibonacci[25]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - vm.Release() - } - ``` - - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) - - ```bash - $ go build - $ ./wasmedge_test - Get fibonacci[25]: 121393 - ``` - - The following graph explains the status of the `VM` object. - - ```text - |========================| - |------->| VM: Initiated | - | |========================| - | | - | LoadWasm - | | - | v - | |========================| - |--------| VM: Loaded |<-------| - | |========================| | - | | ^ | - | Validate | | - Cleanup | LoadWasm | - | v | LoadWasm - | |========================| | - |--------| VM: Validated | | - | |========================| | - | | ^ | - | Instantiate | | - | | RegisterModule | - | v | | - | |========================| | - |--------| VM: Instantiated |--------| - |========================| - | ^ - | | - -------------- - Instantiate, Execute, ExecuteRegistered, - ExecuteBindgen, ExecuteBindgenRegistered - ``` +2. Instantiate and run WASM functions manually - The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or import objects in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. + Besides the above example, developers can run the WASM functions step-by-step with `VM` object APIs: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + func main() { + // Set the logging level. + wasmedge.SetLogErrorLevel() + + // Create VM. + vm := wasmedge.NewVM() + var err error + var res []interface{} + + // Step 1: Load WASM file. + err = vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } + + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + // Developers can load, validate, and instantiate another WASM module + // to replace the instantiated one. In this case, the old module will + // be cleared, but the registered modules are still kept. + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // Step 4: Execute WASM functions. Parameters: (funcname, args...) + res, err = vm.Execute("fib", uint32(25)) + // Developers can execute functions repeatedly after instantiation. + if err == nil { + fmt.Println("Get fibonacci[25]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } + + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go build + $ ./wasmedge_test + Get fibonacci[25]: 121393 + ``` + + The following graph explains the status of the `VM` object. + + ```text + |========================| + |------->| VM: Initiated | + | |========================| + | | + | LoadWasm + | | + | v + | |========================| + |--------| VM: Loaded |<-------| + | |========================| | + | | ^ | + | Validate | | + Cleanup | LoadWasm | + | v | LoadWasm + | |========================| | + |--------| VM: Validated | | + | |========================| | + | | ^ | + | Instantiate | | + | | RegisterModule | + | v | | + | |========================| | + |--------| VM: Instantiated |--------| + |========================| + | ^ + | | + -------------- + Instantiate, Execute, ExecuteRegistered, + ExecuteBindgen, ExecuteBindgenRegistered + ``` + + The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or import objects in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. ### VM Creations @@ -878,82 +878,82 @@ WasmEdge provides the following built-in pre-registrations. 1. [WASI (WebAssembly System Interface)](https://github.com/WebAssembly/WASI) - Developers can turn on the WASI support for VM in the `Configure` object. + Developers can turn on the WASI support for VM in the `Configure` object. - ```go - conf := wasmedge.NewConfigure(wasmedge.WASI) - // Or you can set the `wasmedge.WASI` into the configure object through `(*Configure).AddConfig`. - vm := wasmedge.NewVMWithConfig(conf) - vm.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WASI) + // Or you can set the `wasmedge.WASI` into the configure object through `(*Configure).AddConfig`. + vm := wasmedge.NewVMWithConfig(conf) + vm.Release() - // The following API can retrieve the pre-registration import objects from the VM object. - // This API will return `nil` if the corresponding pre-registration is not set into the configuration. - wasiconf := conf.GetImportModule(wasmedge.WASI) - // Initialize the WASI. - wasiconf.InitWasi(/* ... ignored */) + // The following API can retrieve the pre-registration import objects from the VM object. + // This API will return `nil` if the corresponding pre-registration is not set into the configuration. + wasiconf := conf.GetImportModule(wasmedge.WASI) + // Initialize the WASI. + wasiconf.InitWasi(/* ... ignored */) - conf.Release() - ``` + conf.Release() + ``` - And also can create the WASI import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 2. [WasmEdge_Process](https://crates.io/crates/wasmedge_process_interface) - This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` plugin. + This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` plugin. - ```go - conf := wasmedge.NewConfigure(wasmedge.WasmEdge_PROCESS) - vm := wasmedge.NewVMWithConfig(conf) - vm.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WasmEdge_PROCESS) + vm := wasmedge.NewVMWithConfig(conf) + vm.Release() - // The following API can retrieve the pre-registration import objects from the VM object. - // This API will return `nil` if the corresponding pre-registration is not set into the configuration. - procconf := conf.GetImportModule(wasmedge.WasmEdge_PROCESS) - // Initialize the WasmEdge_Process. - procconf.InitWasmEdgeProcess(/* ... ignored */) + // The following API can retrieve the pre-registration import objects from the VM object. + // This API will return `nil` if the corresponding pre-registration is not set into the configuration. + procconf := conf.GetImportModule(wasmedge.WasmEdge_PROCESS) + // Initialize the WasmEdge_Process. + procconf.InitWasmEdgeProcess(/* ... ignored */) - conf.Release() - ``` + conf.Release() + ``` - And also can create the WasmEdge_Process import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WasmEdge_Process import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 3. [WASI-NN proposal](https://github.com/WebAssembly/wasi-nn) (`v0.10.1` or upper only) - Developers can turn on the WASI-NN proposal support for VM in the `Configure` object. + Developers can turn on the WASI-NN proposal support for VM in the `Configure` object. - > Note: Please check that the [dependencies and prerequests](/develop/build-and-run/install#install-plugins-and-extensions) are satisfied. + > Note: Please check that the [dependencies and prerequests](/develop/build-and-run/install#install-plugins-and-extensions) are satisfied. - ```go - conf := wasmedge.NewConfigure(wasmedge.WasiNN) - vm := wasmedge.NewVMWithConfig(conf) - vm.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WasiNN) + vm := wasmedge.NewVMWithConfig(conf) + vm.Release() - // The following API can retrieve the pre-registration import objects from the VM object. - // This API will return `nil` if the corresponding pre-registration is not set into the configuration. - nnmodule := conf.GetImportModule(wasmedge.WasiNN) - conf.Release() - ``` + // The following API can retrieve the pre-registration import objects from the VM object. + // This API will return `nil` if the corresponding pre-registration is not set into the configuration. + nnmodule := conf.GetImportModule(wasmedge.WasiNN) + conf.Release() + ``` - And also can create the WASI-NN module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI-NN module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 4. [WASI-Crypto proposal](https://github.com/WebAssembly/wasi-crypto) (`v0.10.1` or upper only) - Developers can turn on the WASI-Crypto proposal support for VM in the `Configure` object. + Developers can turn on the WASI-Crypto proposal support for VM in the `Configure` object. - > Note: Please check that the [dependencies and prerequests](/develop/build-and-run/install#install-plugins-and-extensions) are satisfied. + > Note: Please check that the [dependencies and prerequests](/develop/build-and-run/install#install-plugins-and-extensions) are satisfied. - ```go - conf := wasmedge.NewConfigure(wasmedge.WasiCrypto_Common, wasmedge.WasiCrypto_AsymmetricCommon, wasmedge.WasiCrypto_Kx, wasmedge.WasiCrypto_Signatures, wasmedge.WasiCrypto_Symmetric) - vm := wasmedge.NewVMWithConfig(conf) - vm.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WasiCrypto_Common, wasmedge.WasiCrypto_AsymmetricCommon, wasmedge.WasiCrypto_Kx, wasmedge.WasiCrypto_Signatures, wasmedge.WasiCrypto_Symmetric) + vm := wasmedge.NewVMWithConfig(conf) + vm.Release() - // The following API can retrieve the pre-registration import objects from the VM object. - // This API will return `nil` if the corresponding pre-registration is not set into the configuration. - nnmodule := conf.GetImportModule(wasmedge.WasiCrypto_Common) - conf.Release() - ``` + // The following API can retrieve the pre-registration import objects from the VM object. + // This API will return `nil` if the corresponding pre-registration is not set into the configuration. + nnmodule := conf.GetImportModule(wasmedge.WasiCrypto_Common) + conf.Release() + ``` - And also can create the WASI-Crypto module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI-Crypto module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). ### Host Module Registrations @@ -978,211 +978,211 @@ In WebAssembly, the instances in WASM modules can be exported and can be importe 1. Register the WASM modules with exported module names - Unless the import objects have already contained the module names, every WASM module should be named uniquely when registering. The following shows the example. + Unless the import objects have already contained the module names, every WASM module should be named uniquely when registering. The following shows the example. - Create a new Go project first: + Create a new Go project first: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. Then create and edit the Go file `main.go` as following: + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. Then create and edit the Go file `main.go` as following: - ```go - package main + ```go + package main - import "github.com/second-state/WasmEdge-go/wasmedge" + import "github.com/second-state/WasmEdge-go/wasmedge" - func main() { - // Create VM. - vm := wasmedge.NewVM() + func main() { + // Create VM. + vm := wasmedge.NewVM() - var err error - err = vm.RegisterWasmFile("module_name", "fibonacci.wasm") - // Developers can register the WASM module from `[]byte` with the - // `(*VM).RegisterWasmBuffer` function, or from `AST` object with - // the `(*VM).RegisterAST` function. - // The result status should be checked. The error will occur if the - // WASM module instantiation failed or the module name conflicts. + var err error + err = vm.RegisterWasmFile("module_name", "fibonacci.wasm") + // Developers can register the WASM module from `[]byte` with the + // `(*VM).RegisterWasmBuffer` function, or from `AST` object with + // the `(*VM).RegisterAST` function. + // The result status should be checked. The error will occur if the + // WASM module instantiation failed or the module name conflicts. - vm.Release() - } - ``` + vm.Release() + } + ``` 2. Execute the functions in registered WASM modules - Edit the Go file `main.go` as following: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - // Create VM. - vm := wasmedge.NewVM() - - var res []interface{} - var err error - // Register the WASM module from file into VM with the module name "mod". - err = vm.RegisterWasmFile("mod", "fibonacci.wasm") - // Developers can register the WASM module from `[]byte` with the - // `(*VM).RegisterWasmBuffer` function, or from `AST` object with - // the `(*VM).RegisterAST` function. - if err != nil { - fmt.Println("WASM registration failed:", err.Error()) - return - } - // The function "fib" in the "fibonacci.wasm" was exported with the module - // name "mod". As the same as host functions, other modules can import the - // function `"mod" "fib"`. - - // Execute WASM functions in registered modules. - // Unlike the execution of functions, the registered functions can be - // invoked without `(*VM).Instantiate` because the WASM module was - // instantiated when registering. - // Developers can also invoke the host functions directly with this API. - res, err = vm.ExecuteRegistered("mod", "fib", int32(25)) - if err == nil { - fmt.Println("Get fibonacci[25]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - vm.Release() - } - ``` - - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) - - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 - $ go build - $ ./wasmedge_test - Get fibonacci[25]: 121393 - ``` + Edit the Go file `main.go` as following: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + func main() { + // Create VM. + vm := wasmedge.NewVM() + + var res []interface{} + var err error + // Register the WASM module from file into VM with the module name "mod". + err = vm.RegisterWasmFile("mod", "fibonacci.wasm") + // Developers can register the WASM module from `[]byte` with the + // `(*VM).RegisterWasmBuffer` function, or from `AST` object with + // the `(*VM).RegisterAST` function. + if err != nil { + fmt.Println("WASM registration failed:", err.Error()) + return + } + // The function "fib" in the "fibonacci.wasm" was exported with the module + // name "mod". As the same as host functions, other modules can import the + // function `"mod" "fib"`. + + // Execute WASM functions in registered modules. + // Unlike the execution of functions, the registered functions can be + // invoked without `(*VM).Instantiate` because the WASM module was + // instantiated when registering. + // Developers can also invoke the host functions directly with this API. + res, err = vm.ExecuteRegistered("mod", "fib", int32(25)) + if err == nil { + fmt.Println("Get fibonacci[25]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } + + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 + $ go build + $ ./wasmedge_test + Get fibonacci[25]: 121393 + ``` ### Asynchronous Execution 1. Asynchronously run WASM functions rapidly - Assume that a new Go project is created as following: - - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` - - Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: + Assume that a new Go project is created as following: - ```go - package main + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - import ( - "fmt" + Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: - "github.com/second-state/WasmEdge-go/wasmedge" - ) + ```go + package main - func main() { - // Create VM. - vm := wasmedge.NewVM() - - // Asynchronously run the WASM function from file and get the `wasmedge.Async` object. - async := vm.AsyncRunWasmFile("fibonacci.wasm", "fib", uint32(20)) - - // Block and wait for the execution and get the results. - res, err := async.GetResult() - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - async.Release() - vm.Release() - } - ``` + import ( + "fmt" - Then you can build and run: (the 20th Fibonacci number is 10946 in 0-based index) + "github.com/second-state/WasmEdge-go/wasmedge" + ) - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 - $ go build - $ ./wasmedge_test - Get the result: 10946 - ``` + func main() { + // Create VM. + vm := wasmedge.NewVM() -2. Instantiate and asynchronously run WASM functions manually + // Asynchronously run the WASM function from file and get the `wasmedge.Async` object. + async := vm.AsyncRunWasmFile("fibonacci.wasm", "fib", uint32(20)) - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + // Block and wait for the execution and get the results. + res, err := async.GetResult() + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + async.Release() + vm.Release() + } + ``` - ```go - package main + Then you can build and run: (the 20th Fibonacci number is 10946 in 0-based index) - import ( - "fmt" + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 + $ go build + $ ./wasmedge_test + Get the result: 10946 + ``` - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - var err error - var res []interface{} - - // Create VM. - vm := wasmedge.NewVM() - - // Step 1: Load WASM file. - // Developers can load the WASM binary from buffer with the `(*VM).LoadWasmBuffer()` API, - // or from `wasmedge.AST` object with the `(*VM).LoadWasmAST()` API. - err := vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // Step 4: Asynchronously execute the WASM function and get the `wasmedge.Async` object. - async := vm.AsyncExecute("fib", uint32(25)) - - // Block and wait for the execution and get the results. - res, err := async.GetResult() - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - async.Release() - vm.Release() - } - ``` +2. Instantiate and asynchronously run WASM functions manually - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) - - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 - $ go build - $ ./wasmedge_test - Get the result: 121393 - ``` + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + func main() { + var err error + var res []interface{} + + // Create VM. + vm := wasmedge.NewVM() + + // Step 1: Load WASM file. + // Developers can load the WASM binary from buffer with the `(*VM).LoadWasmBuffer()` API, + // or from `wasmedge.AST` object with the `(*VM).LoadWasmAST()` API. + err := vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } + + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // Step 4: Asynchronously execute the WASM function and get the `wasmedge.Async` object. + async := vm.AsyncExecute("fib", uint32(25)) + + // Block and wait for the execution and get the results. + res, err := async.GetResult() + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + async.Release() + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 + $ go build + $ ./wasmedge_test + Get the result: 121393 + ``` ### Instance Tracing @@ -1190,136 +1190,136 @@ Sometimes the developers may have requirements to get the instances of the WASM 1. Store - If the `VM` object is created without assigning a `Store` object, the `VM` context will allocate and own a `Store`. + If the `VM` object is created without assigning a `Store` object, the `VM` context will allocate and own a `Store`. - ```go - vm := wasmedge.NewVM() - store := vm.GetStore() - // The object should __NOT__ be deleted by calling `(*Store).Release`. - vm.Release() - ``` + ```go + vm := wasmedge.NewVM() + store := vm.GetStore() + // The object should __NOT__ be deleted by calling `(*Store).Release`. + vm.Release() + ``` - Developers can also create the `VM` object with a `Store` object. In this case, developers should guarantee that the `Store` object cannot be released before the `VM` object. Please refer to the [Store Objects](#store) for the details about the `Store` APIs. + Developers can also create the `VM` object with a `Store` object. In this case, developers should guarantee that the `Store` object cannot be released before the `VM` object. Please refer to the [Store Objects](#store) for the details about the `Store` APIs. - ```go - store := wasmedge.NewStore() - vm := wasmedge.NewVMWithStore(store) + ```go + store := wasmedge.NewStore() + vm := wasmedge.NewVMWithStore(store) - storemock := vm.GetStore() - // The internal store context of the `store` and the `storemock` are the same. + storemock := vm.GetStore() + // The internal store context of the `store` and the `storemock` are the same. - vm.Release() - store.Release() - ``` + vm.Release() + store.Release() + ``` 2. List exported functions - After the WASM module instantiation, developers can use the `(*VM).Execute` function to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. + After the WASM module instantiation, developers can use the `(*VM).Execute` function to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. - Assume that a new Go project is created as following: + Assume that a new Go project is created as following: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: + Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: - ```go - package main + ```go + package main - import ( - "fmt" + import ( + "fmt" - "github.com/second-state/WasmEdge-go/wasmedge" - ) + "github.com/second-state/WasmEdge-go/wasmedge" + ) - func main() { - // Create VM. - vm := wasmedge.NewVM() - - // Step 1: Load WASM file. - err := vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // List the exported functions for the names and function types. - funcnames, functypes := vm.GetFunctionList() - for _, fname := range funcnames { - fmt.Println("Exported function name:", fname) - } - for _, ftype := range functypes { - // `ftype` is the `FunctionType` object of the same index in the `funcnames` array. - // Developers should __NOT__ call the `ftype.Release()`. - } - - vm.Release() - } - ``` + func main() { + // Create VM. + vm := wasmedge.NewVM() - Then you can build and run: (the only exported function in `fibonacci.wasm` is `fib`) + // Step 1: Load WASM file. + err := vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 - $ go build - $ ./wasmedge_test - Exported function name: fib - ``` + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } - If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` object from the `VM` object and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. + // List the exported functions for the names and function types. + funcnames, functypes := vm.GetFunctionList() + for _, fname := range funcnames { + fmt.Println("Exported function name:", fname) + } + for _, ftype := range functypes { + // `ftype` is the `FunctionType` object of the same index in the `funcnames` array. + // Developers should __NOT__ call the `ftype.Release()`. + } + + vm.Release() + } + ``` + + Then you can build and run: (the only exported function in `fibonacci.wasm` is `fib`) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 + $ go build + $ ./wasmedge_test + Exported function name: fib + ``` + + If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` object from the `VM` object and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. 3. Get function types - The `VM` object provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. + The `VM` object provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. - ```go - // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. - functype := vm.GetFunctionType("fib") - // Developers can get the function types of functions in the registered modules via the - // `(*VM).GetFunctionTypeRegistered` API with the function name and the module name. - // If the function is not found, these APIs will return `nil`. - // Developers should __NOT__ call the `(*FunctionType).Release` function of the returned object. - ``` + ```go + // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. + functype := vm.GetFunctionType("fib") + // Developers can get the function types of functions in the registered modules via the + // `(*VM).GetFunctionTypeRegistered` API with the function name and the module name. + // If the function is not found, these APIs will return `nil`. + // Developers should __NOT__ call the `(*FunctionType).Release` function of the returned object. + ``` 4. Get the active module - After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` object. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `(*VM).GetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. + After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` object. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `(*VM).GetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. - ```go - // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. - mod := vm.GetActiveModule() - // If there's no WASM module instantiated, this API will return `nil`. - // Developers should __NOT__ call the `(*Module).Release` function of the returned module instance. - ``` + ```go + // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. + mod := vm.GetActiveModule() + // If there's no WASM module instantiated, this API will return `nil`. + // Developers should __NOT__ call the `(*Module).Release` function of the returned module instance. + ``` 5. Get the components (`v0.10.1` or upper only) - The `VM` object is composed by the `Loader`, `Validator`, and `Executor` objects. For the developers who want to use these objects without creating another instances, these APIs can help developers to get them from the `VM` object. The get objects are owned by the `VM` object, and developers should not call their release functions. + The `VM` object is composed by the `Loader`, `Validator`, and `Executor` objects. For the developers who want to use these objects without creating another instances, these APIs can help developers to get them from the `VM` object. The get objects are owned by the `VM` object, and developers should not call their release functions. - ```go - loader := vm.GetLoader() - // Developers should __NOT__ call the `(*Loader).Release` function of the returned object. - validator := vm.GetValidator() - // Developers should __NOT__ call the `(*Validator).Release` function of the returned object. - executor := vm.GetExecutor() - // Developers should __NOT__ call the `(*Executor).Release` function of the returned object. - ``` + ```go + loader := vm.GetLoader() + // Developers should __NOT__ call the `(*Loader).Release` function of the returned object. + validator := vm.GetValidator() + // Developers should __NOT__ call the `(*Validator).Release` function of the returned object. + executor := vm.GetExecutor() + // Developers should __NOT__ call the `(*Executor).Release` function of the returned object. + ``` ## WasmEdge Runtime @@ -1507,119 +1507,119 @@ The `Executor` object is the executor for both WASM and compiled-WASM. This obje 1. Instantiate and register an `AST` object as a named `Module` instance - As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` objects, developers can instantiate and register an `AST` objects into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Register the loaded WASM `ast` into store with the export module name "mod". - mod, res := executor.Register(store, ast, "mod") - if err != nil { - fmt.Println("WASM registration FAILED:", err.Error()) - return - } - - // ... - - // Resources deallocations. - executor.Release() - stat.Release() - store.Release() - mod.Release() - ``` + As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` objects, developers can instantiate and register an `AST` objects into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Register the loaded WASM `ast` into store with the export module name "mod". + mod, res := executor.Register(store, ast, "mod") + if err != nil { + fmt.Println("WASM registration FAILED:", err.Error()) + return + } + + // ... + + // Resources deallocations. + executor.Release() + stat.Release() + store.Release() + mod.Release() + ``` 2. Register an existing `Module` instance and export the module name - Besides instantiating and registering an `AST` object, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Create a module instance for host functions. - mod := wasmedge.NewModule("mod") - // ... - // Create and add the host functions, tables, memories, and globals into the module instance. - // ... - - // Register the module instance into store with the exported module name. - // The export module name is in the module instance already. - res := executor.RegisterImport(store, mod) - if err != nil { - fmt.Println("WASM registration FAILED:", err.Error()) - return - } - - // ... - - // Resources deallocations. - executor.Release() - stat.Release() - store.Release() - mod.Release() - ``` + Besides instantiating and registering an `AST` object, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Create a module instance for host functions. + mod := wasmedge.NewModule("mod") + // ... + // Create and add the host functions, tables, memories, and globals into the module instance. + // ... + + // Register the module instance into store with the exported module name. + // The export module name is in the module instance already. + res := executor.RegisterImport(store, mod) + if err != nil { + fmt.Println("WASM registration FAILED:", err.Error()) + return + } + + // ... + + // Resources deallocations. + executor.Release() + stat.Release() + store.Release() + mod.Release() + ``` 3. Instantiate an `AST` object to an anonymous `Module` instance - WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` object for linking. - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Instantiate the WASM module. - mod, err := executor.Instantiate(stpre, ast) - if err != nil { - fmt.Println("WASM instantiation FAILED:", err.Error()) - return - } - - executor.Release() - stat.Release() - store.Release() - mod.Release() - ``` + WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` object for linking. + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Instantiate the WASM module. + mod, err := executor.Instantiate(stpre, ast) + if err != nil { + fmt.Println("WASM instantiation FAILED:", err.Error()) + return + } + + executor.Release() + stat.Release() + store.Release() + mod.Release() + ``` 4. Invoke functions - After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `(*Executor).Invoke` API. + After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `(*Executor).Invoke` API. ### AST Module @@ -1672,529 +1672,529 @@ The instances are the runtime structures of WASM. Developers can retrieve the `M 1. Module instance - After instantiating or registering an `AST` object, developers will get a `Module` instance as the result, and have the responsibility to release it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. + After instantiating or registering an `AST` object, developers will get a `Module` instance as the result, and have the responsibility to release it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. - ```go - // ... - // Instantiate a WASM module via the executor object and get the `mod` as the output module instance. - // ... + ```go + // ... + // Instantiate a WASM module via the executor object and get the `mod` as the output module instance. + // ... - // List the exported instance of the instantiated WASM module. - // Take the function instances for example here. - funcnames := mod.ListFunction() + // List the exported instance of the instantiated WASM module. + // Take the function instances for example here. + funcnames := mod.ListFunction() - // Try to find the exported instance of the instantiated WASM module. - // Take the function instances for example here. - funcinst := mod.FindFunction("fib") - // `funcinst` will be `nil` if the function not found. - // The returned instance is owned by the module instance and should __NOT__ be released. - ``` + // Try to find the exported instance of the instantiated WASM module. + // Take the function instances for example here. + funcinst := mod.FindFunction("fib") + // `funcinst` will be `nil` if the function not found. + // The returned instance is owned by the module instance and should __NOT__ be released. + ``` 2. Function instance - [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` objects for host functions and add them into an `Module` instance for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` objects through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). + [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` objects for host functions and add them into an `Module` instance for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` objects through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). - ```go - funcobj := ... - // `funcobj` is the `*wasmedge.Function` retrieved from the module instance. - functype := funcobj.GetFunctionType() - // The `funcobj` retrieved from the module instance should __NOT__ be released. - // The `functype` retrieved from the `funcobj` should __NOT__ be released. + ```go + funcobj := ... + // `funcobj` is the `*wasmedge.Function` retrieved from the module instance. + functype := funcobj.GetFunctionType() + // The `funcobj` retrieved from the module instance should __NOT__ be released. + // The `functype` retrieved from the `funcobj` should __NOT__ be released. - // For the function object creation, please refer to the `Host Function` guide. - ``` + // For the function object creation, please refer to the `Host Function` guide. + ``` 3. Table instance - In WasmEdge, developers can create the `Table` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Table` objects supply APIs to control the data in table instances. - - ```go - lim := wasmedge.NewLimitWithMax(10, 20) - // Create the table type with limit and the `FuncRef` element type. - tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef, lim) - // Create the table instance with table type. - tabinst := wasmedge.NewTable(tabtype) - // Delete the table type. - tabtype.Release() - - gottabtype := tabinst.GetTableType() - // The `gottabtype` got from table instance is owned by the `tabinst` - // and should __NOT__ be released. - reftype := gottabtype.GetRefType() - // The `reftype` will be `wasmedge.RefType_FuncRef`. - - var gotdata interface{} - data := wasmedge.NewFuncRef(5) - err := tabinst.SetData(data, 3) - // Set the function index 5 to the table[3]. - - // The following line will get an "out of bounds table access" error - // because the position (13) is out of the table size (10): - // err = tabinst.SetData(data, 13) - - gotdata, err = tabinst.GetData(3) - // Get the FuncRef value of the table[3]. - - // The following line will get an "out of bounds table access" error - // because the position (13) is out of the table size (10): - // gotdata, err = tabinst.GetData(13) - - tabsize := tabinst.GetSize() - // `tabsize` will be 10. - err = tabinst.Grow(6) - // Grow the table size of 6, the table size will be 16. - - // The following line will get an "out of bounds table access" error - // because the size (16 + 6) will reach the table limit (20): - // err = tabinst.Grow(6) - - tabinst.Release() - ``` - -4. Memory instance - - In WasmEdge, developers can create the `Memory` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Memory` objects supply APIs to control the data in memory instances. - - ```go - lim := wasmedge.NewLimitWithMax(1, 5) - // Create the memory type with limit. The memory page size is 64KiB. - memtype := wasmedge.NewMemoryType(lim) - // Create the memory instance with memory type. - meminst := wasmedge.NewMemory(memtype) - // Delete the memory type. - memtype.Release() - - data := []byte("A quick brown fox jumps over the lazy dog") - err := meminst.SetData(data, 0x1000, 10) - // Set the data[0:9] to the memory[4096:4105]. - - // The following line will get an "out of bounds memory access" error - // because [65535:65544] is out of 1 page size (65536): - // err = meminst.SetData(data, 0xFFFF, 10) - - var gotdata []byte - gotdata, err = meminst.GetData(0x1000, 10) - // Get the memory[4096:4105]. The `gotdata` will be `[]byte("A quick br"). - // The following line will get an "out of bounds memory access" error - // because [65535:65544] is out of 1 page size (65536): - // gotdata, err = meminst.Getdata(0xFFFF, 10) - - pagesize := meminst.GetPageSize() - // `pagesize` will be 1. - err = meminst.GrowPage(2) - // Grow the page size of 2, the page size of the memory instance will be 3. - - // The following line will get an "out of bounds memory access" error - // because the size (3 + 3) will reach the memory limit (5): - // err = meminst.GetPageSize(3) - - meminst.Release() - ``` - -5. Global instance - - In WasmEdge, developers can create the `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Global` objects supply APIs to control the value in global instances. - - ```go - // Create the global type with value type and mutation. - globtype := wasmedge.NewGlobalType(wasmedge.ValType_I64, wasmedge.ValMut_Var) - // Create the global instance with value and global type. - globinst := wasmedge.NewGlobal(globtype, uint64(1000)) - // Delete the global type. - globtype.Release() - - gotglobtype := globinst.GetGlobalType() - // The `gotglobtype` got from global instance is owned by the `globinst` - // and should __NOT__ be released. - valtype := gotglobtype.GetValType() - // The `valtype` will be `wasmedge.ValType_I64`. - valmut := gotglobtype.GetMutability() - // The `valmut` will be `wasmedge.ValMut_Var`. - - globinst.SetValue(uint64(888)) - // Set the value u64(888) to the global. - // This function will do nothing if the value type mismatched or the - // global mutability is `wasmedge.ValMut_Const`. - gotval := globinst.GetValue() - // The `gotbal` will be `interface{}` which the type is `uint64` and - // the value is 888. - - globinst.Release() - ``` + In WasmEdge, developers can create the `Table` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Table` objects supply APIs to control the data in table instances. -### Host Functions + ```go + lim := wasmedge.NewLimitWithMax(10, 20) + // Create the table type with limit and the `FuncRef` element type. + tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef, lim) + // Create the table instance with table type. + tabinst := wasmedge.NewTable(tabtype) + // Delete the table type. + tabtype.Release() -[Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge-go, developers can create the `Function`, `Memory`, `Table`, and `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. + gottabtype := tabinst.GetTableType() + // The `gottabtype` got from table instance is owned by the `tabinst` + // and should __NOT__ be released. + reftype := gottabtype.GetRefType() + // The `reftype` will be `wasmedge.RefType_FuncRef`. -1. Host function allocation + var gotdata interface{} + data := wasmedge.NewFuncRef(5) + err := tabinst.SetData(data, 3) + // Set the function index 5 to the table[3]. - Developers can define Go functions with the following function signature as the host function body: + // The following line will get an "out of bounds table access" error + // because the position (13) is out of the table size (10): + // err = tabinst.SetData(data, 13) - ```go - type hostFunctionSignature func( - data interface{}, mem *Memory, params []interface{}) ([]interface{}, Result) - ``` + gotdata, err = tabinst.GetData(3) + // Get the FuncRef value of the table[3]. - The example of an `add` host function to add 2 `i32` values: + // The following line will get an "out of bounds table access" error + // because the position (13) is out of the table size (10): + // gotdata, err = tabinst.GetData(13) - ```go - func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) + tabsize := tabinst.GetSize() + // `tabsize` will be 10. + err = tabinst.Grow(6) + // Grow the table size of 6, the table size will be 16. - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res + // The following line will get an "out of bounds table access" error + // because the size (16 + 6) will reach the table limit (20): + // err = tabinst.Grow(6) - // Return - return returns, wasmedge.Result_Success - } - ``` + tabinst.Release() + ``` - Then developers can create `Function` object with the host function body and function type: +4. Memory instance - ```go - // Create a function type: {i32, i32} -> {i32}. - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) + In WasmEdge, developers can create the `Memory` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Memory` objects supply APIs to control the data in memory instances. - // Create a function context with the function type and host function body. - // The third parameter is the pointer to the additional data. - // Developers should guarantee the life cycle of the data, and it can be - // `nil` if the external data is not needed. - // The last parameter can be 0 if developers do not need the cost measuring. - func_add := wasmedge.NewFunction(functype, host_add, nil, 0) + ```go + lim := wasmedge.NewLimitWithMax(1, 5) + // Create the memory type with limit. The memory page size is 64KiB. + memtype := wasmedge.NewMemoryType(lim) + // Create the memory instance with memory type. + meminst := wasmedge.NewMemory(memtype) + // Delete the memory type. + memtype.Release() - // If the function object is not added into an module instance object, it should be released. - func_add.Release() - functype.Release() - ``` + data := []byte("A quick brown fox jumps over the lazy dog") + err := meminst.SetData(data, 0x1000, 10) + // Set the data[0:9] to the memory[4096:4105]. -2. Construct a module instance with host instances + // The following line will get an "out of bounds memory access" error + // because [65535:65544] is out of 1 page size (65536): + // err = meminst.SetData(data, 0xFFFF, 10) - Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + var gotdata []byte + gotdata, err = meminst.GetData(0x1000, 10) + // Get the memory[4096:4105]. The `gotdata` will be `[]byte("A quick br"). + // The following line will get an "out of bounds memory access" error + // because [65535:65544] is out of 1 page size (65536): + // gotdata, err = meminst.Getdata(0xFFFF, 10) - ```go - // Host function body definition. - func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) + pagesize := meminst.GetPageSize() + // `pagesize` will be 1. + err = meminst.GrowPage(2) + // Grow the page size of 2, the page size of the memory instance will be 3. - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res + // The following line will get an "out of bounds memory access" error + // because the size (3 + 3) will reach the memory limit (5): + // err = meminst.GetPageSize(3) - // Return - return returns, wasmedge.Result_Success - } + meminst.Release() + ``` - // Create a module instance with the module name "module". - mod := wasmedge.NewModule("module") +5. Global instance - // Create and add a function instance into the module instance with export name "add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) - functype.Release() - mod.AddFunction("add", hostfunc) - - // Create and add a table instance into the module instance with export name "table". - tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef ,wasmedge.NewLimitWithMax(10, 20)) - hosttab := wasmedge.NewTable(tabtype) - tabtype.Release() - mod.AddTable("table", hosttab) - - // Create and add a memory instance into the module instance with export name "memory". - memtype := wasmedge.NewMemoryType(wasmedge.NewLimitWithMax(1, 2)) - hostmem := wasmedge.NewMemory(memtype) - memtype.Release() - mod.AddMemory("memory", hostmem) - - // Create and add a global instance into the module instance with export name "global". - globtype := wasmedge.NewGlobalType(wasmedge.ValType_I32, wasmedge.ValMut_Var) - hostglob := wasmedge.NewGlobal(globtype, uint32(666)) - globtype.Release() - mod.AddGlobal("global", hostglob) - - // The module instances should be released. - // Developers should __NOT__ release the instances added into the module instance objects. - mod.Release() - ``` + In WasmEdge, developers can create the `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Global` objects supply APIs to control the value in global instances. + + ```go + // Create the global type with value type and mutation. + globtype := wasmedge.NewGlobalType(wasmedge.ValType_I64, wasmedge.ValMut_Var) + // Create the global instance with value and global type. + globinst := wasmedge.NewGlobal(globtype, uint64(1000)) + // Delete the global type. + globtype.Release() + + gotglobtype := globinst.GetGlobalType() + // The `gotglobtype` got from global instance is owned by the `globinst` + // and should __NOT__ be released. + valtype := gotglobtype.GetValType() + // The `valtype` will be `wasmedge.ValType_I64`. + valmut := gotglobtype.GetMutability() + // The `valmut` will be `wasmedge.ValMut_Var`. + + globinst.SetValue(uint64(888)) + // Set the value u64(888) to the global. + // This function will do nothing if the value type mismatched or the + // global mutability is `wasmedge.ValMut_Const`. + gotval := globinst.GetValue() + // The `gotbal` will be `interface{}` which the type is `uint64` and + // the value is 888. + + globinst.Release() + ``` -3. Specified module instance +### Host Functions - `wasmedge.NewWasiModule()` API can create and initialize the `WASI` module instance. +[Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge-go, developers can create the `Function`, `Memory`, `Table`, and `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. - `wasmedge.NewWasiNNModule()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin (`v0.10.1` or upper only). +1. Host function allocation - `wasmedge.NewWasiCryptoCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin (`v0.10.1` or upper only). + Developers can define Go functions with the following function signature as the host function body: - `wasmedge.NewWasiCryptoAsymmetricCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin (`v0.10.1` or upper only). + ```go + type hostFunctionSignature func( + data interface{}, mem *Memory, params []interface{}) ([]interface{}, Result) + ``` - `wasmedge.NewWasiCryptoKxModule()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin (`v0.10.1` or upper only). + The example of an `add` host function to add 2 `i32` values: - `wasmedge.NewWasiCryptoSignaturesModule()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin (`v0.10.1` or upper only). + ```go + func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) - `wasmedge.NewWasiCryptoSymmetricModule()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin (`v0.10.1` or upper only). + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res - `wasmedge.NewWasmEdgeProcessModule()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. + // Return + return returns, wasmedge.Result_Success + } + ``` - Developers can create these module instance objects and register them into the `Store` or `VM` objects rather than adjust the settings in the `Configure` objects. + Then developers can create `Function` object with the host function body and function type: - > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install#install-plugins-and-extensions) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install#install-plugins-and-extensions) are satisfied. And the 5 modules are recommended to all be created and registered together. + ```go + // Create a function type: {i32, i32} -> {i32}. + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) - ```go - wasiobj := wasmedge.NewWasiModule( - os.Args[1:], // The args - os.Environ(), // The envs - []string{".:."}, // The mapping preopens - ) - procobj := wasmedge.NewWasmEdgeProcessModule( - []string{"ls", "echo"}, // The allowed commands - false, // Not to allow all commands - ) + // Create a function context with the function type and host function body. + // The third parameter is the pointer to the additional data. + // Developers should guarantee the life cycle of the data, and it can be + // `nil` if the external data is not needed. + // The last parameter can be 0 if developers do not need the cost measuring. + func_add := wasmedge.NewFunction(functype, host_add, nil, 0) - // Register the WASI and WasmEdge_Process into the VM object. - vm := wasmedge.NewVM() - vm.RegisterImport(wasiobj) - vm.RegisterImport(procobj) + // If the function object is not added into an module instance object, it should be released. + func_add.Release() + functype.Release() + ``` - // ... Execute some WASM functions. +2. Construct a module instance with host instances - // Get the WASI exit code. - exitcode := wasiobj.WasiGetExitCode() - // The `exitcode` will be 0 if the WASI function "_start" execution has no error. - // Otherwise, it will return with the related exit code. + Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + + ```go + // Host function body definition. + func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Return + return returns, wasmedge.Result_Success + } + + // Create a module instance with the module name "module". + mod := wasmedge.NewModule("module") + + // Create and add a function instance into the module instance with export name "add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) + functype.Release() + mod.AddFunction("add", hostfunc) + + // Create and add a table instance into the module instance with export name "table". + tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef ,wasmedge.NewLimitWithMax(10, 20)) + hosttab := wasmedge.NewTable(tabtype) + tabtype.Release() + mod.AddTable("table", hosttab) + + // Create and add a memory instance into the module instance with export name "memory". + memtype := wasmedge.NewMemoryType(wasmedge.NewLimitWithMax(1, 2)) + hostmem := wasmedge.NewMemory(memtype) + memtype.Release() + mod.AddMemory("memory", hostmem) + + // Create and add a global instance into the module instance with export name "global". + globtype := wasmedge.NewGlobalType(wasmedge.ValType_I32, wasmedge.ValMut_Var) + hostglob := wasmedge.NewGlobal(globtype, uint32(666)) + globtype.Release() + mod.AddGlobal("global", hostglob) + + // The module instances should be released. + // Developers should __NOT__ release the instances added into the module instance objects. + mod.Release() + ``` - vm.Release() - // The import objects should be deleted. - wasiobj.Release() - procobj.Release() - ``` - -4. Example +3. Specified module instance - Create a new Go project first: + `wasmedge.NewWasiModule()` API can create and initialize the `WASI` module instance. - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + `wasmedge.NewWasiNNModule()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin (`v0.10.1` or upper only). - Assume that there is a simple WASM from the WAT as following: + `wasmedge.NewWasiCryptoCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin (`v0.10.1` or upper only). - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` + `wasmedge.NewWasiCryptoAsymmetricCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin (`v0.10.1` or upper only). - Create and edit the Go file `main.go` as following: + `wasmedge.NewWasiCryptoKxModule()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin (`v0.10.1` or upper only). - ```go - package main + `wasmedge.NewWasiCryptoSignaturesModule()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin (`v0.10.1` or upper only). - import ( - "fmt" + `wasmedge.NewWasiCryptoSymmetricModule()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin (`v0.10.1` or upper only). - "github.com/second-state/WasmEdge-go/wasmedge" - ) + `wasmedge.NewWasmEdgeProcessModule()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. - // Host function body definition. - func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) - - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res - - // Return - return returns, wasmedge.Result_Success - } - - func main() { - // Create the VM object. - vm := wasmedge.NewVM() - - // The WASM module buffer. - wasmbuf := []byte{ - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, - } - - // Create the module instance with the module name "extern". - impmod := wasmedge.NewModule("extern") - - // Create and add a function instance into the module instance with export name "func-add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) - functype.Release() - impmod.AddFunction("func-add", hostfunc) - - // Register the module instance into VM. - vm.RegisterImport(impmod) - - res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - - impmod.Release() - vm.Release() - } - ``` + Developers can create these module instance objects and register them into the `Store` or `VM` objects rather than adjust the settings in the `Configure` objects. - Then you can build and run the Golang application with the WasmEdge Golang SDK: + > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install#install-plugins-and-extensions) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install#install-plugins-and-extensions) are satisfied. And the 5 modules are recommended to all be created and registered together. - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 - $ go build - $ ./wasmedge_test - Get the result: 6912 - ``` + ```go + wasiobj := wasmedge.NewWasiModule( + os.Args[1:], // The args + os.Environ(), // The envs + []string{".:."}, // The mapping preopens + ) + procobj := wasmedge.NewWasmEdgeProcessModule( + []string{"ls", "echo"}, // The allowed commands + false, // Not to allow all commands + ) -5. Host Data Example + // Register the WASI and WasmEdge_Process into the VM object. + vm := wasmedge.NewVM() + vm.RegisterImport(wasiobj) + vm.RegisterImport(procobj) - Developers can set a external data object to the `Function` object, and access to the object in the function body. Assume that edit the Go file `main.go` above: + // ... Execute some WASM functions. - ```go - package main + // Get the WASI exit code. + exitcode := wasiobj.WasiGetExitCode() + // The `exitcode` will be 0 if the WASI function "_start" execution has no error. + // Otherwise, it will return with the related exit code. - import ( - "fmt" + vm.Release() + // The import objects should be deleted. + wasiobj.Release() + procobj.Release() + ``` - "github.com/second-state/WasmEdge-go/wasmedge" - ) +4. Example - // Host function body definition. - func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) - - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res - - // Also set the result to the data. - *data.(*int32) = res - - // Return - return returns, wasmedge.Result_Success - } - - func main() { - // Create the VM object. - vm := wasmedge.NewVM() - - // The WASM module buffer. - wasmbuf := []byte{ - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, - } - - // The additional data to set into the host function. - var data int32 = 0 - - // Create the module instance with the module name "extern". - impmod := wasmedge.NewImportObject("extern") - - // Create and add a function instance into the module instance with export name "func-add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, &data, 0) - functype.Release() - impmod.AddFunction("func-add", hostfunc) - - // Register the module instance into VM. - vm.RegisterImport(impmod) - - res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - fmt.Println("Data value:", data) - - impmod.Release() - vm.Release() - } - ``` + Create a new Go project first: + + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` + + Assume that there is a simple WASM from the WAT as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + Create and edit the Go file `main.go` as following: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + // Host function body definition. + func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Return + return returns, wasmedge.Result_Success + } + + func main() { + // Create the VM object. + vm := wasmedge.NewVM() + + // The WASM module buffer. + wasmbuf := []byte{ + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, + } + + // Create the module instance with the module name "extern". + impmod := wasmedge.NewModule("extern") + + // Create and add a function instance into the module instance with export name "func-add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) + functype.Release() + impmod.AddFunction("func-add", hostfunc) + + // Register the module instance into VM. + vm.RegisterImport(impmod) + + res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + + impmod.Release() + vm.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 + $ go build + $ ./wasmedge_test + Get the result: 6912 + ``` - Then you can build and run the Golang application with the WasmEdge Golang SDK: +5. Host Data Example - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 - $ go build - $ ./wasmedge_test - Get the result: 6912 - Data value: 6912 - ``` + Developers can set a external data object to the `Function` object, and access to the object in the function body. Assume that edit the Go file `main.go` above: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + // Host function body definition. + func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Also set the result to the data. + *data.(*int32) = res + + // Return + return returns, wasmedge.Result_Success + } + + func main() { + // Create the VM object. + vm := wasmedge.NewVM() + + // The WASM module buffer. + wasmbuf := []byte{ + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, + } + + // The additional data to set into the host function. + var data int32 = 0 + + // Create the module instance with the module name "extern". + impmod := wasmedge.NewImportObject("extern") + + // Create and add a function instance into the module instance with export name "func-add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, &data, 0) + functype.Release() + impmod.AddFunction("func-add", hostfunc) + + // Register the module instance into VM. + vm.RegisterImport(impmod) + + res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + fmt.Println("Data value:", data) + + impmod.Release() + vm.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.1 + $ go build + $ ./wasmedge_test + Get the result: 6912 + Data value: 6912 + ``` ## WasmEdge AOT Compiler diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/0.11.2.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/0.11.2.md index 16e117b3..990ca2e9 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/0.11.2.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/0.11.2.md @@ -12,42 +12,42 @@ The following are the guides to develop with the WasmEdge-Go SDK. ## Table of Contents -- [Getting Started](#getting-started) - - [WasmEdge Installation](#wasmedge-installation) - - [Get WasmEdge-go](#get-wasmedge-go) - - [WasmEdge-go Extensions](#wasmedge-go-extensions) - - [Example repository](#example-repository) -- [WasmEdge-go Basics](#wasmedge-go-basics) - - [Version](#version) - - [Logging Settings](#logging-settings) - - [Value Types](#value-types) - - [Results](#results) - - [Contexts And Their Life Cycles](#contexts-and-their-life-cycles) - - [WASM data structures](#wasm-data-structures) - - [Async](#async) - - [Configurations](#configurations) - - [Statistics](#statistics) - - [Tools driver](#tools-driver) -- [WasmEdge VM](#wasmedge-vm) - - [WASM Execution Example With VM Object](#wasm-execution-example-with-vm-object) - - [VM Creations](#vm-creations) - - [Preregistrations](#preregistrations) - - [Host Module Registrations](#host-module-registrations) - - [WASM Registrations And Executions](#wasm-registrations-and-executions) - - [Asynchronous execution](#asynchronous-execution) - - [Instance Tracing](#instance-tracing) -- [WasmEdge Runtime](#wasmedge-runtime) - - [WASM Execution Example Step-By-Step](#wasm-execution-example-step-by-step) - - [Loader](#loader) - - [Validator](#validator) - - [Executor](#executor) - - [AST Module](#ast-module) - - [Store](#store) - - [Instances](#instances) - - [Host Functions](#host-functions) -- [WasmEdge AOT Compiler](#wasmedge-aot-compiler) - - [Compilation Example](#compilation-example) - - [Compiler Options](#compiler-options) +- [Getting Started](#getting-started) + - [WasmEdge Installation](#wasmedge-installation) + - [Get WasmEdge-go](#get-wasmedge-go) + - [WasmEdge-go Extensions](#wasmedge-go-extensions) + - [Example repository](#example-repository) +- [WasmEdge-go Basics](#wasmedge-go-basics) + - [Version](#version) + - [Logging Settings](#logging-settings) + - [Value Types](#value-types) + - [Results](#results) + - [Contexts And Their Life Cycles](#contexts-and-their-life-cycles) + - [WASM data structures](#wasm-data-structures) + - [Async](#async) + - [Configurations](#configurations) + - [Statistics](#statistics) + - [Tools driver](#tools-driver) +- [WasmEdge VM](#wasmedge-vm) + - [WASM Execution Example With VM Object](#wasm-execution-example-with-vm-object) + - [VM Creations](#vm-creations) + - [Preregistrations](#preregistrations) + - [Host Module Registrations](#host-module-registrations) + - [WASM Registrations And Executions](#wasm-registrations-and-executions) + - [Asynchronous execution](#asynchronous-execution) + - [Instance Tracing](#instance-tracing) +- [WasmEdge Runtime](#wasmedge-runtime) + - [WASM Execution Example Step-By-Step](#wasm-execution-example-step-by-step) + - [Loader](#loader) + - [Validator](#validator) + - [Executor](#executor) + - [AST Module](#ast-module) + - [Store](#store) + - [Instances](#instances) + - [Host Functions](#host-functions) +- [WasmEdge AOT Compiler](#wasmedge-aot-compiler) + - [Compilation Example](#compilation-example) + - [Compiler Options](#compiler-options) ## Getting Started @@ -91,36 +91,36 @@ By default, the `WasmEdge-go` only turns on the basic runtime. `WasmEdge-go` has the following extensions (on the Linux platforms only): -- Tensorflow +- Tensorflow - - This extension supports the host functions in [WasmEdge-tensorflow](https://github.com/second-state/WasmEdge-tensorflow). - - The `TensorFlow` and `TensorFlow-Lite` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e tensorflow` command. - - For using this extension, the tag `tensorflow` when building is required: + - This extension supports the host functions in [WasmEdge-tensorflow](https://github.com/second-state/WasmEdge-tensorflow). + - The `TensorFlow` and `TensorFlow-Lite` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e tensorflow` command. + - For using this extension, the tag `tensorflow` when building is required: - ```bash - go build -tags tensorflow - ``` + ```bash + go build -tags tensorflow + ``` -- Tensorflow-Lite +- Tensorflow-Lite - - This extension supports the host functions in [WasmEdge-tensorflow](https://github.com/second-state/WasmEdge-tensorflow) with only `TensorFlow-Lite`. - - The `TensorFlow-Lite` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e tensorflow` command. - - **THIS TAG CANNOT BE USED WITH THE `tensorflow` TAG.** - - For using this extension, the tag `tensorflow` when building is required: + - This extension supports the host functions in [WasmEdge-tensorflow](https://github.com/second-state/WasmEdge-tensorflow) with only `TensorFlow-Lite`. + - The `TensorFlow-Lite` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e tensorflow` command. + - **THIS TAG CANNOT BE USED WITH THE `tensorflow` TAG.** + - For using this extension, the tag `tensorflow` when building is required: - ```bash - go build -tags tensorflowlite - ``` + ```bash + go build -tags tensorflowlite + ``` -- Image +- Image - - This extension supports the host functions in [WasmEdge-image](https://github.com/second-state/WasmEdge-image). - - The `Image` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e image` command. - - For using this extension, the tag `image` when building is required: + - This extension supports the host functions in [WasmEdge-image](https://github.com/second-state/WasmEdge-image). + - The `Image` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e image` command. + - For using this extension, the tag `image` when building is required: - ```bash - go build -tags image - ``` + ```bash + go build -tags image + ``` Users can also turn on the multiple extensions when building: @@ -161,47 +161,47 @@ In WasmEdge-go, the APIs will automatically do the conversion for the built-in t 1. Number types: `i32`, `i64`, `f32`, and `f64` - - Convert the `uint32` and `int32` to `i32` automatically when passing a value into WASM. - - Convert the `uint64` and `int64` to `i64` automatically when passing a value into WASM. - - Convert the `uint` and `int` to `i32` automatically when passing a value into WASM in 32-bit system. - - Convert the `uint` and `int` to `i64` automatically when passing a value into WASM in 64-bit system. - - Convert the `float32` to `f32` automatically when passing a value into WASM. - - Convert the `float64` to `f64` automatically when passing a value into WASM. - - Convert the `i32` from WASM to `int32` when getting a result. - - Convert the `i64` from WASM to `int64` when getting a result. - - Convert the `f32` from WASM to `float32` when getting a result. - - Convert the `f64` from WASM to `float64` when getting a result. + - Convert the `uint32` and `int32` to `i32` automatically when passing a value into WASM. + - Convert the `uint64` and `int64` to `i64` automatically when passing a value into WASM. + - Convert the `uint` and `int` to `i32` automatically when passing a value into WASM in 32-bit system. + - Convert the `uint` and `int` to `i64` automatically when passing a value into WASM in 64-bit system. + - Convert the `float32` to `f32` automatically when passing a value into WASM. + - Convert the `float64` to `f64` automatically when passing a value into WASM. + - Convert the `i32` from WASM to `int32` when getting a result. + - Convert the `i64` from WASM to `int64` when getting a result. + - Convert the `f32` from WASM to `float32` when getting a result. + - Convert the `f64` from WASM to `float64` when getting a result. 2. Number type: `v128` for the `SIMD` proposal - Developers should use the `wasmedge.NewV128()` to generate a `v128` value, and use the `wasmedge.GetV128()` to get the value. + Developers should use the `wasmedge.NewV128()` to generate a `v128` value, and use the `wasmedge.GetV128()` to get the value. - ```go - val := wasmedge.NewV128(uint64(1234), uint64(5678)) - high, low := val.GetVal() - // `high` will be uint64(1234), `low` will be uint64(5678) - ``` + ```go + val := wasmedge.NewV128(uint64(1234), uint64(5678)) + high, low := val.GetVal() + // `high` will be uint64(1234), `low` will be uint64(5678) + ``` 3. Reference types: `FuncRef` and `ExternRef` for the `Reference-Types` proposal - ```go - var funccxt *wasmedge.Function = ... // Create or get function object. - funcref := wasmedge.NewFuncRef(funccxt) - // Create a `FuncRef` with the function object. - - num := 1234 - // `num` is a `int`. - externref := wasmedge.NewExternRef(&num) - // Create an `ExternRef` which reference to the `num`. - num = 5678 - // Modify the `num` to 5678. - numref := externref.GetRef().(*int) - // Get the original reference from the `ExternRef`. - fmt.Println(*numref) - // Will print `5678`. - numref.Release() - // Should call the `Release` method. - ``` + ```go + var funccxt *wasmedge.Function = ... // Create or get function object. + funcref := wasmedge.NewFuncRef(funccxt) + // Create a `FuncRef` with the function object. + + num := 1234 + // `num` is a `int`. + externref := wasmedge.NewExternRef(&num) + // Create an `ExternRef` which reference to the `num`. + num = 5678 + // Modify the `num` to 5678. + numref := externref.GetRef().(*int) + // Get the original reference from the `ExternRef`. + fmt.Println(*numref) + // Will print `5678`. + numref.Release() + // Should call the `Release` method. + ``` ### Results @@ -242,166 +242,166 @@ The WASM data structures are used for creating instances or can be queried from 1. Limit - The `Limit` struct presents the minimum and maximum value data structure. - - ```go - lim1 := wasmedge.NewLimit(12) - fmt.Println(lim1.HasMax()) - // Will print `false`. - fmt.Println(lim1.GetMin()) - // Will print `12`. - - lim2 := wasmedge.NewLimitWithMax(15, 50) - fmt.Println(lim2.HasMax()) - // Will print `true`. - fmt.Println(lim2.GetMin()) - // Will print `15`. - fmt.Println(lim2.GetMax()) - // Will print `50`. - ``` - - For the thread proposal, the `Limit` struct also supports the shared memory description. - - ```go - lim3 := wasmedge.NewLimitShared(20) - fmt.Println(lim3.HasMax()) - // Will print `false`. - fmt.Println(lim3.IsShared()) - // Will print `true`. - fmt.Println(lim3.GetMin()) - // Will print `20`. - - lim4 := wasmedge.NewLimitSharedWithMax(30, 40) - fmt.Println(lim4.HasMax()) - // Will print `true`. - fmt.Println(lim4.IsShared()) - // Will print `true`. - fmt.Println(lim4.GetMin()) - // Will print `30`. - fmt.Println(lim4.GetMax()) - // Will print `40`. - ``` + The `Limit` struct presents the minimum and maximum value data structure. + + ```go + lim1 := wasmedge.NewLimit(12) + fmt.Println(lim1.HasMax()) + // Will print `false`. + fmt.Println(lim1.GetMin()) + // Will print `12`. + + lim2 := wasmedge.NewLimitWithMax(15, 50) + fmt.Println(lim2.HasMax()) + // Will print `true`. + fmt.Println(lim2.GetMin()) + // Will print `15`. + fmt.Println(lim2.GetMax()) + // Will print `50`. + ``` + + For the thread proposal, the `Limit` struct also supports the shared memory description. + + ```go + lim3 := wasmedge.NewLimitShared(20) + fmt.Println(lim3.HasMax()) + // Will print `false`. + fmt.Println(lim3.IsShared()) + // Will print `true`. + fmt.Println(lim3.GetMin()) + // Will print `20`. + + lim4 := wasmedge.NewLimitSharedWithMax(30, 40) + fmt.Println(lim4.HasMax()) + // Will print `true`. + fmt.Println(lim4.IsShared()) + // Will print `true`. + fmt.Println(lim4.GetMin()) + // Will print `30`. + fmt.Println(lim4.GetMax()) + // Will print `40`. + ``` 2. Function type context - The `FunctionType` is an object holds the function type context and used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `FunctionType` APIs to get the parameter or return value types information. - - ```go - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{ - wasmedge.ValType_ExternRef, - wasmedge.ValType_I32, - wasmedge.ValType_I64, - }, []wasmedge.ValType{ - wasmedge.ValType_F32, - wasmedge.ValType_F64, - }) - - plen := functype.GetParametersLength() - // `plen` will be 3. - rlen := functype.GetReturnsLength() - // `rlen` will be 2. - plist := functype.GetParameters() - // `plist` will be `[]wasmedge.ValType{wasmedge.ValType_ExternRef, wasmedge.ValType_I32, wasmedge.ValType_I64}`. - rlist := functype.GetReturns() - // `rlist` will be `[]wasmedge.ValType{wasmedge.ValType_F32, wasmedge.ValType_F64}`. - - functype.Release() - ``` + The `FunctionType` is an object holds the function type context and used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `FunctionType` APIs to get the parameter or return value types information. + + ```go + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{ + wasmedge.ValType_ExternRef, + wasmedge.ValType_I32, + wasmedge.ValType_I64, + }, []wasmedge.ValType{ + wasmedge.ValType_F32, + wasmedge.ValType_F64, + }) + + plen := functype.GetParametersLength() + // `plen` will be 3. + rlen := functype.GetReturnsLength() + // `rlen` will be 2. + plist := functype.GetParameters() + // `plist` will be `[]wasmedge.ValType{wasmedge.ValType_ExternRef, wasmedge.ValType_I32, wasmedge.ValType_I64}`. + rlist := functype.GetReturns() + // `rlist` will be `[]wasmedge.ValType{wasmedge.ValType_F32, wasmedge.ValType_F64}`. + + functype.Release() + ``` 3. Table type context - The `TableType` is an object holds the table type context and used for `Table` instance creation or getting information from `Table` instances. + The `TableType` is an object holds the table type context and used for `Table` instance creation or getting information from `Table` instances. - ```go - lim := wasmedge.NewLimit(12) - tabtype := wasmedge.NewTableType(wasmedge.RefType_ExternRef, lim) + ```go + lim := wasmedge.NewLimit(12) + tabtype := wasmedge.NewTableType(wasmedge.RefType_ExternRef, lim) - rtype := tabtype.GetRefType() - // `rtype` will be `wasmedge.RefType_ExternRef`. - getlim := tabtype.GetLimit() - // `getlim` will be the same value as `lim`. + rtype := tabtype.GetRefType() + // `rtype` will be `wasmedge.RefType_ExternRef`. + getlim := tabtype.GetLimit() + // `getlim` will be the same value as `lim`. - tabtype.Release() - ``` + tabtype.Release() + ``` 4. Memory type context - The `MemoryType` is an object holds the memory type context and used for `Memory` instance creation or getting information from `Memory` instances. + The `MemoryType` is an object holds the memory type context and used for `Memory` instance creation or getting information from `Memory` instances. - ```go - lim := wasmedge.NewLimit(1) - memtype := wasmedge.NewMemoryType(lim) + ```go + lim := wasmedge.NewLimit(1) + memtype := wasmedge.NewMemoryType(lim) - getlim := memtype.GetLimit() - // `getlim` will be the same value as `lim`. + getlim := memtype.GetLimit() + // `getlim` will be the same value as `lim`. - memtype.Release() - ``` + memtype.Release() + ``` 5. Global type context - The `GlobalType` is an object holds the global type context and used for `Global` instance creation or getting information from `Global` instances. + The `GlobalType` is an object holds the global type context and used for `Global` instance creation or getting information from `Global` instances. - ```go - globtype := wasmedge.NewGlobalType(wasmedge.ValType_F64, wasmedge.ValMut_Var) + ```go + globtype := wasmedge.NewGlobalType(wasmedge.ValType_F64, wasmedge.ValMut_Var) - vtype := globtype.GetValType() - // `vtype` will be `wasmedge.ValType_F64`. - vmut := globtype.GetMutability() - // `vmut` will be `wasmedge.ValMut_Var`. + vtype := globtype.GetValType() + // `vtype` will be `wasmedge.ValType_F64`. + vmut := globtype.GetMutability() + // `vmut` will be `wasmedge.ValMut_Var`. - globtype.Release() - ``` + globtype.Release() + ``` 6. Import type context - The `ImportType` is an object holds the import type context and used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `ImportType` object. The details about querying `ImportType` objects will be introduced in the [AST Module](#ast-module). + The `ImportType` is an object holds the import type context and used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `ImportType` object. The details about querying `ImportType` objects will be introduced in the [AST Module](#ast-module). - ```go - var ast *wasmedge.AST = ... - // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. - imptypelist := ast.ListImports() - // Assume that `imptypelist` is an array listed from the `ast` for the imports. + ```go + var ast *wasmedge.AST = ... + // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. + imptypelist := ast.ListImports() + // Assume that `imptypelist` is an array listed from the `ast` for the imports. - for i, imptype := range imptypelist { - exttype := imptype.GetExternalType() - // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, - // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. + for i, imptype := range imptypelist { + exttype := imptype.GetExternalType() + // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, + // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. - modname := imptype.GetModuleName() - extname := imptype.GetExternalName() - // Get the module name and external name of the imports. + modname := imptype.GetModuleName() + extname := imptype.GetExternalName() + // Get the module name and external name of the imports. - extval := imptype.GetExternalValue() - // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, - // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. - } - ``` + extval := imptype.GetExternalValue() + // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, + // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. + } + ``` 7. Export type context - The `ExportType` is an object holds the export type context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `ExportType` objects will be introduced in the [AST Module](#ast-module). + The `ExportType` is an object holds the export type context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `ExportType` objects will be introduced in the [AST Module](#ast-module). - ```go - var ast *wasmedge.AST = ... - // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. - exptypelist := ast.ListExports() - // Assume that `exptypelist` is an array listed from the `ast` for the exports. + ```go + var ast *wasmedge.AST = ... + // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. + exptypelist := ast.ListExports() + // Assume that `exptypelist` is an array listed from the `ast` for the exports. - for i, exptype := range exptypelist { - exttype := exptype.GetExternalType() - // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, - // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. + for i, exptype := range exptypelist { + exttype := exptype.GetExternalType() + // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, + // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. - extname := exptype.GetExternalName() - // Get the external name of the exports. + extname := exptype.GetExternalName() + // Get the external name of the exports. - extval := exptype.GetExternalValue() - // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, - // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. - } - ``` + extval := exptype.GetExternalValue() + // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, + // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. + } + ``` ### Async @@ -409,35 +409,35 @@ After calling the [asynchronous execution APIs](#asynchronous-execution), develo 1. Get the execution result of the asynchronous execution - Developers can use the `(*Async).GetResult()` API to block and wait for getting the return values. This function will block and wait for the execution. If the execution has finished, this function will return immediately. If the execution failed, this function will return an error. + Developers can use the `(*Async).GetResult()` API to block and wait for getting the return values. This function will block and wait for the execution. If the execution has finished, this function will return immediately. If the execution failed, this function will return an error. - ```go - async := ... // Ignored. Asynchronous execute a function. + ```go + async := ... // Ignored. Asynchronous execute a function. - // Blocking and waiting for the execution and get the return values. - res, err := async.GetResult() - async.Release() - ``` + // Blocking and waiting for the execution and get the return values. + res, err := async.GetResult() + async.Release() + ``` 2. Wait for the asynchronous execution with timeout settings - Besides waiting until the end of execution, developers can set the timeout to wait for. - - ```go - async := ... // Ignored. Asynchronous execute a function. - - // Blocking and waiting for the execution with the timeout(ms). - isend := async.WaitFor(1000) - if isend { - res, err := async.GetResult() - // ... - } else { - async.Cancel() - _, err := async.GetResult() - // The error message in `err` will be "execution interrupted". - } - async.Release() - ``` + Besides waiting until the end of execution, developers can set the timeout to wait for. + + ```go + async := ... // Ignored. Asynchronous execute a function. + + // Blocking and waiting for the execution with the timeout(ms). + isend := async.WaitFor(1000) + if isend { + res, err := async.GetResult() + // ... + } else { + async.Cancel() + _, err := async.GetResult() + // The error message in `err` will be "execution interrupted". + } + async.Release() + ``` ### Configurations @@ -445,173 +445,173 @@ The configuration object, `wasmedge.Configure`, manages the configurations for ` 1. Proposals - WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` object. - - ```go - const ( - IMPORT_EXPORT_MUT_GLOBALS = Proposal(C.WasmEdge_Proposal_ImportExportMutGlobals) - NON_TRAP_FLOAT_TO_INT_CONVERSIONS = Proposal(C.WasmEdge_Proposal_NonTrapFloatToIntConversions) - SIGN_EXTENSION_OPERATORS = Proposal(C.WasmEdge_Proposal_SignExtensionOperators) - MULTI_VALUE = Proposal(C.WasmEdge_Proposal_MultiValue) - BULK_MEMORY_OPERATIONS = Proposal(C.WasmEdge_Proposal_BulkMemoryOperations) - REFERENCE_TYPES = Proposal(C.WasmEdge_Proposal_ReferenceTypes) - SIMD = Proposal(C.WasmEdge_Proposal_SIMD) - TAIL_CALL = Proposal(C.WasmEdge_Proposal_TailCall) - ANNOTATIONS = Proposal(C.WasmEdge_Proposal_Annotations) - MEMORY64 = Proposal(C.WasmEdge_Proposal_Memory64) - EXCEPTION_HANDLING = Proposal(C.WasmEdge_Proposal_ExceptionHandling) - EXTENDED_CONST = Proposal(C.WasmEdge_Proposal_ExtendedConst) - THREADS = Proposal(C.WasmEdge_Proposal_Threads) - FUNCTION_REFERENCES = Proposal(C.WasmEdge_Proposal_FunctionReferences) - ) - ``` - - Developers can add or remove the proposals into the `Configure` object. - - ```go - // By default, the following proposals have turned on initially: - // * IMPORT_EXPORT_MUT_GLOBALS - // * NON_TRAP_FLOAT_TO_INT_CONVERSIONS - // * SIGN_EXTENSION_OPERATORS - // * MULTI_VALUE - // * BULK_MEMORY_OPERATIONS - // * REFERENCE_TYPES - // * SIMD - // For the current WasmEdge version, the following proposals are supported: - // * TAIL_CALL - // * MULTI_MEMORIES - // * THREADS - // * EXTENDED_CONST - conf := wasmedge.NewConfigure() - // Developers can also pass the proposals as parameters: - // conf := wasmedge.NewConfigure(wasmedge.SIMD, wasmedge.BULK_MEMORY_OPERATIONS) - conf.AddConfig(wasmedge.SIMD) - conf.RemoveConfig(wasmedge.REFERENCE_TYPES) - is_bulkmem := conf.HasConfig(wasmedge.BULK_MEMORY_OPERATIONS) - // The `is_bulkmem` will be `true`. - conf.Release() - ``` + WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` object. + + ```go + const ( + IMPORT_EXPORT_MUT_GLOBALS = Proposal(C.WasmEdge_Proposal_ImportExportMutGlobals) + NON_TRAP_FLOAT_TO_INT_CONVERSIONS = Proposal(C.WasmEdge_Proposal_NonTrapFloatToIntConversions) + SIGN_EXTENSION_OPERATORS = Proposal(C.WasmEdge_Proposal_SignExtensionOperators) + MULTI_VALUE = Proposal(C.WasmEdge_Proposal_MultiValue) + BULK_MEMORY_OPERATIONS = Proposal(C.WasmEdge_Proposal_BulkMemoryOperations) + REFERENCE_TYPES = Proposal(C.WasmEdge_Proposal_ReferenceTypes) + SIMD = Proposal(C.WasmEdge_Proposal_SIMD) + TAIL_CALL = Proposal(C.WasmEdge_Proposal_TailCall) + ANNOTATIONS = Proposal(C.WasmEdge_Proposal_Annotations) + MEMORY64 = Proposal(C.WasmEdge_Proposal_Memory64) + EXCEPTION_HANDLING = Proposal(C.WasmEdge_Proposal_ExceptionHandling) + EXTENDED_CONST = Proposal(C.WasmEdge_Proposal_ExtendedConst) + THREADS = Proposal(C.WasmEdge_Proposal_Threads) + FUNCTION_REFERENCES = Proposal(C.WasmEdge_Proposal_FunctionReferences) + ) + ``` + + Developers can add or remove the proposals into the `Configure` object. + + ```go + // By default, the following proposals have turned on initially: + // * IMPORT_EXPORT_MUT_GLOBALS + // * NON_TRAP_FLOAT_TO_INT_CONVERSIONS + // * SIGN_EXTENSION_OPERATORS + // * MULTI_VALUE + // * BULK_MEMORY_OPERATIONS + // * REFERENCE_TYPES + // * SIMD + // For the current WasmEdge version, the following proposals are supported: + // * TAIL_CALL + // * MULTI_MEMORIES + // * THREADS + // * EXTENDED_CONST + conf := wasmedge.NewConfigure() + // Developers can also pass the proposals as parameters: + // conf := wasmedge.NewConfigure(wasmedge.SIMD, wasmedge.BULK_MEMORY_OPERATIONS) + conf.AddConfig(wasmedge.SIMD) + conf.RemoveConfig(wasmedge.REFERENCE_TYPES) + is_bulkmem := conf.HasConfig(wasmedge.BULK_MEMORY_OPERATIONS) + // The `is_bulkmem` will be `true`. + conf.Release() + ``` 2. Host registrations - This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` objects. - - ```go - const ( - WASI = HostRegistration(C.WasmEdge_HostRegistration_Wasi) - WasmEdge_PROCESS = HostRegistration(C.WasmEdge_HostRegistration_WasmEdge_Process) - WasiNN = HostRegistration(C.WasmEdge_HostRegistration_WasiNN) - WasiCrypto_Common = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Common) - WasiCrypto_AsymmetricCommon = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_AsymmetricCommon) - WasiCrypto_Kx = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Kx) - WasiCrypto_Signatures = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Signatures) - WasiCrypto_Symmetric = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Symmetric) - ) - ``` - - The details will be introduced in the [preregistrations of VM context](#preregistrations). - - ```go - conf := wasmedge.NewConfigure() - // Developers can also pass the proposals as parameters: - // conf := wasmedge.NewConfigure(wasmedge.WASI) - conf.AddConfig(wasmedge.WASI) - conf.Release() - ``` + This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` objects. + + ```go + const ( + WASI = HostRegistration(C.WasmEdge_HostRegistration_Wasi) + WasmEdge_PROCESS = HostRegistration(C.WasmEdge_HostRegistration_WasmEdge_Process) + WasiNN = HostRegistration(C.WasmEdge_HostRegistration_WasiNN) + WasiCrypto_Common = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Common) + WasiCrypto_AsymmetricCommon = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_AsymmetricCommon) + WasiCrypto_Kx = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Kx) + WasiCrypto_Signatures = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Signatures) + WasiCrypto_Symmetric = HostRegistration(C.WasmEdge_HostRegistration_WasiCrypto_Symmetric) + ) + ``` + + The details will be introduced in the [preregistrations of VM context](#preregistrations). + + ```go + conf := wasmedge.NewConfigure() + // Developers can also pass the proposals as parameters: + // conf := wasmedge.NewConfigure(wasmedge.WASI) + conf.AddConfig(wasmedge.WASI) + conf.Release() + ``` 3. Maximum memory pages - Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` objects. + Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` objects. - ```go - conf := wasmedge.NewConfigure() + ```go + conf := wasmedge.NewConfigure() - pagesize := conf.GetMaxMemoryPage() - // By default, the maximum memory page size in each memory instances is 65536. - conf.SetMaxMemoryPage(1234) - pagesize = conf.GetMaxMemoryPage() - // `pagesize` will be 1234. + pagesize := conf.GetMaxMemoryPage() + // By default, the maximum memory page size in each memory instances is 65536. + conf.SetMaxMemoryPage(1234) + pagesize = conf.GetMaxMemoryPage() + // `pagesize` will be 1234. - conf.Release() - ``` + conf.Release() + ``` 4. Forcibly interpreter mode (`v0.11.2` or upper only) - If developers want to execute the WASM file or the AOT compiled WASM in interpreter mode forcibly, they can turn on the configuration. + If developers want to execute the WASM file or the AOT compiled WASM in interpreter mode forcibly, they can turn on the configuration. - ```go - conf := wasmedge.NewConfigure() + ```go + conf := wasmedge.NewConfigure() - is_forceinterp := conf.IsForceInterpreter() - // By default, the `is_forceinterp` will be `false`. - conf.SetForceInterpreter(true) - is_forceinterp = conf.IsForceInterpreter() - /* The `is_forceinterp` will be `true`. */ + is_forceinterp := conf.IsForceInterpreter() + // By default, the `is_forceinterp` will be `false`. + conf.SetForceInterpreter(true) + is_forceinterp = conf.IsForceInterpreter() + /* The `is_forceinterp` will be `true`. */ - conf.Release() - ``` + conf.Release() + ``` 5. AOT compiler options - The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. - - ```go - const ( - // Disable as many optimizations as possible. - CompilerOptLevel_O0 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O0) - // Optimize quickly without destroying debuggability. - CompilerOptLevel_O1 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O1) - // Optimize for fast execution as much as possible without triggering significant incremental compile time or code size growth. - CompilerOptLevel_O2 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O2) - // Optimize for fast execution as much as possible. - CompilerOptLevel_O3 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O3) - // Optimize for small code size as much as possible without triggering significant incremental compile time or execution time slowdowns. - CompilerOptLevel_Os = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Os) - // Optimize for small code size as much as possible. - CompilerOptLevel_Oz = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Oz) - ) - - const ( - // Native dynamic library format. - CompilerOutputFormat_Native = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Native) - // WebAssembly with AOT compiled codes in custom section. - CompilerOutputFormat_Wasm = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Wasm) - ) - ``` - - These configurations are only effective in `Compiler` contexts. - - ```go - conf := wasmedge.NewConfigure() - - // By default, the optimization level is O3. - conf.SetCompilerOptimizationLevel(wasmedge.CompilerOptLevel_O2) - // By default, the output format is universal WASM. - conf.SetCompilerOutputFormat(wasmedge.CompilerOutputFormat_Native) - // By default, the dump IR is `false`. - conf.SetCompilerDumpIR(true) - // By default, the generic binary is `false`. - conf.SetCompilerGenericBinary(true) - - conf.Release() - ``` + The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. + + ```go + const ( + // Disable as many optimizations as possible. + CompilerOptLevel_O0 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O0) + // Optimize quickly without destroying debuggability. + CompilerOptLevel_O1 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O1) + // Optimize for fast execution as much as possible without triggering significant incremental compile time or code size growth. + CompilerOptLevel_O2 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O2) + // Optimize for fast execution as much as possible. + CompilerOptLevel_O3 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O3) + // Optimize for small code size as much as possible without triggering significant incremental compile time or execution time slowdowns. + CompilerOptLevel_Os = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Os) + // Optimize for small code size as much as possible. + CompilerOptLevel_Oz = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Oz) + ) + + const ( + // Native dynamic library format. + CompilerOutputFormat_Native = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Native) + // WebAssembly with AOT compiled codes in custom section. + CompilerOutputFormat_Wasm = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Wasm) + ) + ``` + + These configurations are only effective in `Compiler` contexts. + + ```go + conf := wasmedge.NewConfigure() + + // By default, the optimization level is O3. + conf.SetCompilerOptimizationLevel(wasmedge.CompilerOptLevel_O2) + // By default, the output format is universal WASM. + conf.SetCompilerOutputFormat(wasmedge.CompilerOutputFormat_Native) + // By default, the dump IR is `false`. + conf.SetCompilerDumpIR(true) + // By default, the generic binary is `false`. + conf.SetCompilerGenericBinary(true) + + conf.Release() + ``` 6. Statistics options - The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` objects. + The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` objects. - ```go - conf := wasmedge.NewConfigure() + ```go + conf := wasmedge.NewConfigure() - // By default, the instruction counting is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsInstructionCounting(true) - // By default, the cost measurement is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsTimeMeasuring(true) - // By default, the time measurement is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsCostMeasuring(true) + // By default, the instruction counting is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsInstructionCounting(true) + // By default, the cost measurement is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsTimeMeasuring(true) + // By default, the time measurement is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsCostMeasuring(true) - conf.Release() - ``` + conf.Release() + ``` ### Statistics @@ -621,46 +621,46 @@ Before using statistics, the statistics configuration must be set. Otherwise, th 1. Instruction counter - The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` object from the `VM` object, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. + The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` object from the `VM` object, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. - ```go - stat := wasmedge.NewStatistics() - // ... After running the WASM functions with the `Statistics` object + ```go + stat := wasmedge.NewStatistics() + // ... After running the WASM functions with the `Statistics` object - count := stat.GetInstrCount() - ips := stat.GetInstrPerSecond() - stat.Release() - ``` + count := stat.GetInstrCount() + ips := stat.GetInstrPerSecond() + stat.Release() + ``` 2. Cost table - The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` object. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. - - ```c - stat := wasmedge.NewStatistics() - - costtable := []uint64{ - 0, 0, - 10, /* 0x02: Block */ - 11, /* 0x03: Loop */ - 12, /* 0x04: If */ - 12, /* 0x05: Else */ - 0, 0, 0, 0, 0, 0, - 20, /* 0x0C: Br */ - 21, /* 0x0D: Br_if */ - 22, /* 0x0E: Br_table */ - 0, - } - // Developers can set the costs of each instruction. The value not covered will be 0. - - WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); - stat.SetCostTable() - stat.SetCostLimit(5000000) - - // ... After running the WASM functions with the `Statistics` object - cost := stat.GetTotalCost() - stat.Release() - ``` + The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` object. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. + + ```c + stat := wasmedge.NewStatistics() + + costtable := []uint64{ + 0, 0, + 10, /* 0x02: Block */ + 11, /* 0x03: Loop */ + 12, /* 0x04: If */ + 12, /* 0x05: Else */ + 0, 0, 0, 0, 0, 0, + 20, /* 0x0C: Br */ + 21, /* 0x0D: Br_if */ + 22, /* 0x0E: Br_table */ + 0, + } + // Developers can set the costs of each instruction. The value not covered will be 0. + + WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); + stat.SetCostTable() + stat.SetCostLimit(5000000) + + // ... After running the WASM functions with the `Statistics` object + cost := stat.GetTotalCost() + stat.Release() + ``` ### Tools Driver @@ -720,157 +720,157 @@ The following shows the example of running the WASM for getting the Fibonacci. T 1. Run WASM functions rapidly - Create a new Go project first: + Create a new Go project first: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current `wasmedge_test` directory, and create and edit the Go file `main.go` as following: + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current `wasmedge_test` directory, and create and edit the Go file `main.go` as following: - ```go - package main + ```go + package main - import ( - "fmt" + import ( + "fmt" - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - // Set the logging level. - wasmedge.SetLogErrorLevel() - - // Create the configure context and add the WASI support. - // This step is not necessary unless you need WASI support. - conf := wasmedge.NewConfigure(wasmedge.WASI) - // Create VM with the configure. - vm := wasmedge.NewVMWithConfig(conf) - - res, err := vm.RunWasmFile("fibonacci.wasm", "fib", uint32(21)) - if err == nil { - fmt.Println("Get fibonacci[21]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - vm.Release() - conf.Release() - } - ``` - - Then you can build and run the Golang application with the WasmEdge Golang SDK: (the 21 Fibonacci number is 17711 in 0-based index) - - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 - $ go build - $ ./wasmedge_test - Get fibonacci[21]: 17711 - ``` - -2. Instantiate and run WASM functions manually + "github.com/second-state/WasmEdge-go/wasmedge" + ) - Besides the above example, developers can run the WASM functions step-by-step with `VM` object APIs: + func main() { + // Set the logging level. + wasmedge.SetLogErrorLevel() - ```go - package main + // Create the configure context and add the WASI support. + // This step is not necessary unless you need WASI support. + conf := wasmedge.NewConfigure(wasmedge.WASI) + // Create VM with the configure. + vm := wasmedge.NewVMWithConfig(conf) - import ( - "fmt" + res, err := vm.RunWasmFile("fibonacci.wasm", "fib", uint32(21)) + if err == nil { + fmt.Println("Get fibonacci[21]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } - "github.com/second-state/WasmEdge-go/wasmedge" - ) + vm.Release() + conf.Release() + } + ``` - func main() { - // Set the logging level. - wasmedge.SetLogErrorLevel() - - // Create VM. - vm := wasmedge.NewVM() - var err error - var res []interface{} - - // Step 1: Load WASM file. - err = vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - // Developers can load, validate, and instantiate another WASM module - // to replace the instantiated one. In this case, the old module will - // be cleared, but the registered modules are still kept. - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // Step 4: Execute WASM functions. Parameters: (funcname, args...) - res, err = vm.Execute("fib", uint32(25)) - // Developers can execute functions repeatedly after instantiation. - if err == nil { - fmt.Println("Get fibonacci[25]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - vm.Release() - } - ``` + Then you can build and run the Golang application with the WasmEdge Golang SDK: (the 21 Fibonacci number is 17711 in 0-based index) - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 + $ go build + $ ./wasmedge_test + Get fibonacci[21]: 17711 + ``` - ```bash - $ go build - $ ./wasmedge_test - Get fibonacci[25]: 121393 - ``` - - The following graph explains the status of the `VM` object. - - ```text - |========================| - |------->| VM: Initiated | - | |========================| - | | - | LoadWasm - | | - | v - | |========================| - |--------| VM: Loaded |<-------| - | |========================| | - | | ^ | - | Validate | | - Cleanup | LoadWasm | - | v | LoadWasm - | |========================| | - |--------| VM: Validated | | - | |========================| | - | | ^ | - | Instantiate | | - | | RegisterModule | - | v | | - | |========================| | - |--------| VM: Instantiated |--------| - |========================| - | ^ - | | - -------------- - Instantiate, Execute, ExecuteRegistered, - ExecuteBindgen, ExecuteBindgenRegistered - ``` +2. Instantiate and run WASM functions manually - The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or import objects in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. + Besides the above example, developers can run the WASM functions step-by-step with `VM` object APIs: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + func main() { + // Set the logging level. + wasmedge.SetLogErrorLevel() + + // Create VM. + vm := wasmedge.NewVM() + var err error + var res []interface{} + + // Step 1: Load WASM file. + err = vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } + + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + // Developers can load, validate, and instantiate another WASM module + // to replace the instantiated one. In this case, the old module will + // be cleared, but the registered modules are still kept. + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // Step 4: Execute WASM functions. Parameters: (funcname, args...) + res, err = vm.Execute("fib", uint32(25)) + // Developers can execute functions repeatedly after instantiation. + if err == nil { + fmt.Println("Get fibonacci[25]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } + + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go build + $ ./wasmedge_test + Get fibonacci[25]: 121393 + ``` + + The following graph explains the status of the `VM` object. + + ```text + |========================| + |------->| VM: Initiated | + | |========================| + | | + | LoadWasm + | | + | v + | |========================| + |--------| VM: Loaded |<-------| + | |========================| | + | | ^ | + | Validate | | + Cleanup | LoadWasm | + | v | LoadWasm + | |========================| | + |--------| VM: Validated | | + | |========================| | + | | ^ | + | Instantiate | | + | | RegisterModule | + | v | | + | |========================| | + |--------| VM: Instantiated |--------| + |========================| + | ^ + | | + -------------- + Instantiate, Execute, ExecuteRegistered, + ExecuteBindgen, ExecuteBindgenRegistered + ``` + + The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or import objects in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. ### VM Creations @@ -906,82 +906,82 @@ WasmEdge provides the following built-in pre-registrations. 1. [WASI (WebAssembly System Interface)](https://github.com/WebAssembly/WASI) - Developers can turn on the WASI support for VM in the `Configure` object. + Developers can turn on the WASI support for VM in the `Configure` object. - ```go - conf := wasmedge.NewConfigure(wasmedge.WASI) - // Or you can set the `wasmedge.WASI` into the configure object through `(*Configure).AddConfig`. - vm := wasmedge.NewVMWithConfig(conf) - conf.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WASI) + // Or you can set the `wasmedge.WASI` into the configure object through `(*Configure).AddConfig`. + vm := wasmedge.NewVMWithConfig(conf) + conf.Release() - // The following API can retrieve the pre-registration import objects from the VM object. - // This API will return `nil` if the corresponding pre-registration is not set into the configuration. - wasimodule := vm.GetImportModule(wasmedge.WASI) - // Initialize the WASI. - wasimodule.InitWasi(/* ... ignored */) + // The following API can retrieve the pre-registration import objects from the VM object. + // This API will return `nil` if the corresponding pre-registration is not set into the configuration. + wasimodule := vm.GetImportModule(wasmedge.WASI) + // Initialize the WASI. + wasimodule.InitWasi(/* ... ignored */) - vm.Release() - ``` + vm.Release() + ``` - And also can create the WASI import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 2. [WasmEdge_Process](https://crates.io/crates/wasmedge_process_interface) - This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` plugin. + This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` plugin. - ```go - conf := wasmedge.NewConfigure(wasmedge.WasmEdge_PROCESS) - vm := wasmedge.NewVMWithConfig(conf) - conf.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WasmEdge_PROCESS) + vm := wasmedge.NewVMWithConfig(conf) + conf.Release() - // The following API can retrieve the pre-registration import objects from the VM object. - // This API will return `nil` if the corresponding pre-registration is not set into the configuration. - procmodule := vm.GetImportModule(wasmedge.WasmEdge_PROCESS) - // Initialize the WasmEdge_Process. - procmodule.InitWasmEdgeProcess(/* ... ignored */) + // The following API can retrieve the pre-registration import objects from the VM object. + // This API will return `nil` if the corresponding pre-registration is not set into the configuration. + procmodule := vm.GetImportModule(wasmedge.WasmEdge_PROCESS) + // Initialize the WasmEdge_Process. + procmodule.InitWasmEdgeProcess(/* ... ignored */) - vm.Release() - ``` + vm.Release() + ``` - And also can create the WasmEdge_Process import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WasmEdge_Process import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 3. [WASI-NN proposal](https://github.com/WebAssembly/wasi-nn) - Developers can turn on the WASI-NN proposal support for VM in the `Configure` object. + Developers can turn on the WASI-NN proposal support for VM in the `Configure` object. - > Note: Please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. + > Note: Please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. - ```go - conf := wasmedge.NewConfigure(wasmedge.WasiNN) - vm := wasmedge.NewVMWithConfig(conf) - conf.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WasiNN) + vm := wasmedge.NewVMWithConfig(conf) + conf.Release() - // The following API can retrieve the pre-registration import objects from the VM object. - // This API will return `nil` if the corresponding pre-registration is not set into the configuration. - nnmodule := vm.GetImportModule(wasmedge.WasiNN) - vm.Release() - ``` + // The following API can retrieve the pre-registration import objects from the VM object. + // This API will return `nil` if the corresponding pre-registration is not set into the configuration. + nnmodule := vm.GetImportModule(wasmedge.WasiNN) + vm.Release() + ``` - And also can create the WASI-NN module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI-NN module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 4. [WASI-Crypto proposal](https://github.com/WebAssembly/wasi-crypto) - Developers can turn on the WASI-Crypto proposal support for VM in the `Configure` object. + Developers can turn on the WASI-Crypto proposal support for VM in the `Configure` object. - > Note: Please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. + > Note: Please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. - ```go - conf := wasmedge.NewConfigure(wasmedge.WasiCrypto_Common, wasmedge.WasiCrypto_AsymmetricCommon, wasmedge.WasiCrypto_Kx, wasmedge.WasiCrypto_Signatures, wasmedge.WasiCrypto_Symmetric) - vm := wasmedge.NewVMWithConfig(conf) - conf.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WasiCrypto_Common, wasmedge.WasiCrypto_AsymmetricCommon, wasmedge.WasiCrypto_Kx, wasmedge.WasiCrypto_Signatures, wasmedge.WasiCrypto_Symmetric) + vm := wasmedge.NewVMWithConfig(conf) + conf.Release() - // The following API can retrieve the pre-registration import objects from the VM object. - // This API will return `nil` if the corresponding pre-registration is not set into the configuration. - nnmodule := vm.GetImportModule(wasmedge.WasiCrypto_Common) - vm.Release() - ``` + // The following API can retrieve the pre-registration import objects from the VM object. + // This API will return `nil` if the corresponding pre-registration is not set into the configuration. + nnmodule := vm.GetImportModule(wasmedge.WasiCrypto_Common) + vm.Release() + ``` - And also can create the WASI-Crypto module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI-Crypto module instance from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). ### Host Module Registrations @@ -1006,211 +1006,211 @@ In WebAssembly, the instances in WASM modules can be exported and can be importe 1. Register the WASM modules with exported module names - Unless the import objects have already contained the module names, every WASM module should be named uniquely when registering. The following shows the example. + Unless the import objects have already contained the module names, every WASM module should be named uniquely when registering. The following shows the example. - Create a new Go project first: + Create a new Go project first: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. Then create and edit the Go file `main.go` as following: + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. Then create and edit the Go file `main.go` as following: - ```go - package main + ```go + package main - import "github.com/second-state/WasmEdge-go/wasmedge" + import "github.com/second-state/WasmEdge-go/wasmedge" - func main() { - // Create VM. - vm := wasmedge.NewVM() + func main() { + // Create VM. + vm := wasmedge.NewVM() - var err error - err = vm.RegisterWasmFile("module_name", "fibonacci.wasm") - // Developers can register the WASM module from `[]byte` with the - // `(*VM).RegisterWasmBuffer` function, or from `AST` object with - // the `(*VM).RegisterAST` function. - // The result status should be checked. The error will occur if the - // WASM module instantiation failed or the module name conflicts. + var err error + err = vm.RegisterWasmFile("module_name", "fibonacci.wasm") + // Developers can register the WASM module from `[]byte` with the + // `(*VM).RegisterWasmBuffer` function, or from `AST` object with + // the `(*VM).RegisterAST` function. + // The result status should be checked. The error will occur if the + // WASM module instantiation failed or the module name conflicts. - vm.Release() - } - ``` + vm.Release() + } + ``` 2. Execute the functions in registered WASM modules - Edit the Go file `main.go` as following: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - // Create VM. - vm := wasmedge.NewVM() - - var res []interface{} - var err error - // Register the WASM module from file into VM with the module name "mod". - err = vm.RegisterWasmFile("mod", "fibonacci.wasm") - // Developers can register the WASM module from `[]byte` with the - // `(*VM).RegisterWasmBuffer` function, or from `AST` object with - // the `(*VM).RegisterAST` function. - if err != nil { - fmt.Println("WASM registration failed:", err.Error()) - return - } - // The function "fib" in the "fibonacci.wasm" was exported with the module - // name "mod". As the same as host functions, other modules can import the - // function `"mod" "fib"`. - - // Execute WASM functions in registered modules. - // Unlike the execution of functions, the registered functions can be - // invoked without `(*VM).Instantiate` because the WASM module was - // instantiated when registering. - // Developers can also invoke the host functions directly with this API. - res, err = vm.ExecuteRegistered("mod", "fib", int32(25)) - if err == nil { - fmt.Println("Get fibonacci[25]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - vm.Release() - } - ``` - - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) - - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 - $ go build - $ ./wasmedge_test - Get fibonacci[25]: 121393 - ``` + Edit the Go file `main.go` as following: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + func main() { + // Create VM. + vm := wasmedge.NewVM() + + var res []interface{} + var err error + // Register the WASM module from file into VM with the module name "mod". + err = vm.RegisterWasmFile("mod", "fibonacci.wasm") + // Developers can register the WASM module from `[]byte` with the + // `(*VM).RegisterWasmBuffer` function, or from `AST` object with + // the `(*VM).RegisterAST` function. + if err != nil { + fmt.Println("WASM registration failed:", err.Error()) + return + } + // The function "fib" in the "fibonacci.wasm" was exported with the module + // name "mod". As the same as host functions, other modules can import the + // function `"mod" "fib"`. + + // Execute WASM functions in registered modules. + // Unlike the execution of functions, the registered functions can be + // invoked without `(*VM).Instantiate` because the WASM module was + // instantiated when registering. + // Developers can also invoke the host functions directly with this API. + res, err = vm.ExecuteRegistered("mod", "fib", int32(25)) + if err == nil { + fmt.Println("Get fibonacci[25]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } + + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 + $ go build + $ ./wasmedge_test + Get fibonacci[25]: 121393 + ``` ### Asynchronous Execution 1. Asynchronously run WASM functions rapidly - Assume that a new Go project is created as following: - - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + Assume that a new Go project is created as following: - Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - ```go - package main + Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: - import ( - "fmt" + ```go + package main - "github.com/second-state/WasmEdge-go/wasmedge" - ) + import ( + "fmt" - func main() { - // Create VM. - vm := wasmedge.NewVM() - - // Asynchronously run the WASM function from file and get the `wasmedge.Async` object. - async := vm.AsyncRunWasmFile("fibonacci.wasm", "fib", uint32(20)) - - // Block and wait for the execution and get the results. - res, err := async.GetResult() - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - async.Release() - vm.Release() - } - ``` + "github.com/second-state/WasmEdge-go/wasmedge" + ) - Then you can build and run: (the 20th Fibonacci number is 10946 in 0-based index) + func main() { + // Create VM. + vm := wasmedge.NewVM() - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 - $ go build - $ ./wasmedge_test - Get the result: 10946 - ``` + // Asynchronously run the WASM function from file and get the `wasmedge.Async` object. + async := vm.AsyncRunWasmFile("fibonacci.wasm", "fib", uint32(20)) -2. Instantiate and asynchronously run WASM functions manually - - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + // Block and wait for the execution and get the results. + res, err := async.GetResult() + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + async.Release() + vm.Release() + } + ``` - ```go - package main + Then you can build and run: (the 20th Fibonacci number is 10946 in 0-based index) - import ( - "fmt" + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 + $ go build + $ ./wasmedge_test + Get the result: 10946 + ``` - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - var err error - var res []interface{} - - // Create VM. - vm := wasmedge.NewVM() - - // Step 1: Load WASM file. - // Developers can load the WASM binary from buffer with the `(*VM).LoadWasmBuffer()` API, - // or from `wasmedge.AST` object with the `(*VM).LoadWasmAST()` API. - err := vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // Step 4: Asynchronously execute the WASM function and get the `wasmedge.Async` object. - async := vm.AsyncExecute("fib", uint32(25)) - - // Block and wait for the execution and get the results. - res, err := async.GetResult() - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - async.Release() - vm.Release() - } - ``` - - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) +2. Instantiate and asynchronously run WASM functions manually - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 - $ go build - $ ./wasmedge_test - Get the result: 121393 - ``` + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + func main() { + var err error + var res []interface{} + + // Create VM. + vm := wasmedge.NewVM() + + // Step 1: Load WASM file. + // Developers can load the WASM binary from buffer with the `(*VM).LoadWasmBuffer()` API, + // or from `wasmedge.AST` object with the `(*VM).LoadWasmAST()` API. + err := vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } + + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // Step 4: Asynchronously execute the WASM function and get the `wasmedge.Async` object. + async := vm.AsyncExecute("fib", uint32(25)) + + // Block and wait for the execution and get the results. + res, err := async.GetResult() + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + async.Release() + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 + $ go build + $ ./wasmedge_test + Get the result: 121393 + ``` ### Instance Tracing @@ -1218,136 +1218,136 @@ Sometimes the developers may have requirements to get the instances of the WASM 1. Store - If the `VM` object is created without assigning a `Store` object, the `VM` context will allocate and own a `Store`. + If the `VM` object is created without assigning a `Store` object, the `VM` context will allocate and own a `Store`. - ```go - vm := wasmedge.NewVM() - store := vm.GetStore() - // The object should __NOT__ be deleted by calling `(*Store).Release`. - vm.Release() - ``` + ```go + vm := wasmedge.NewVM() + store := vm.GetStore() + // The object should __NOT__ be deleted by calling `(*Store).Release`. + vm.Release() + ``` - Developers can also create the `VM` object with a `Store` object. In this case, developers should guarantee that the `Store` object cannot be released before the `VM` object. Please refer to the [Store Objects](#store) for the details about the `Store` APIs. + Developers can also create the `VM` object with a `Store` object. In this case, developers should guarantee that the `Store` object cannot be released before the `VM` object. Please refer to the [Store Objects](#store) for the details about the `Store` APIs. - ```go - store := wasmedge.NewStore() - vm := wasmedge.NewVMWithStore(store) + ```go + store := wasmedge.NewStore() + vm := wasmedge.NewVMWithStore(store) - storemock := vm.GetStore() - // The internal store context of the `store` and the `storemock` are the same. + storemock := vm.GetStore() + // The internal store context of the `store` and the `storemock` are the same. - vm.Release() - store.Release() - ``` + vm.Release() + store.Release() + ``` 2. List exported functions - After the WASM module instantiation, developers can use the `(*VM).Execute` function to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. + After the WASM module instantiation, developers can use the `(*VM).Execute` function to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. - Assume that a new Go project is created as following: + Assume that a new Go project is created as following: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: + Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: - ```go - package main + ```go + package main - import ( - "fmt" + import ( + "fmt" - "github.com/second-state/WasmEdge-go/wasmedge" - ) + "github.com/second-state/WasmEdge-go/wasmedge" + ) - func main() { - // Create VM. - vm := wasmedge.NewVM() - - // Step 1: Load WASM file. - err := vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // List the exported functions for the names and function types. - funcnames, functypes := vm.GetFunctionList() - for _, fname := range funcnames { - fmt.Println("Exported function name:", fname) - } - for _, ftype := range functypes { - // `ftype` is the `FunctionType` object of the same index in the `funcnames` array. - // Developers should __NOT__ call the `ftype.Release()`. - } - - vm.Release() - } - ``` + func main() { + // Create VM. + vm := wasmedge.NewVM() - Then you can build and run: (the only exported function in `fibonacci.wasm` is `fib`) + // Step 1: Load WASM file. + err := vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 - $ go build - $ ./wasmedge_test - Exported function name: fib - ``` + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } - If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` object from the `VM` object and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // List the exported functions for the names and function types. + funcnames, functypes := vm.GetFunctionList() + for _, fname := range funcnames { + fmt.Println("Exported function name:", fname) + } + for _, ftype := range functypes { + // `ftype` is the `FunctionType` object of the same index in the `funcnames` array. + // Developers should __NOT__ call the `ftype.Release()`. + } + + vm.Release() + } + ``` + + Then you can build and run: (the only exported function in `fibonacci.wasm` is `fib`) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 + $ go build + $ ./wasmedge_test + Exported function name: fib + ``` + + If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` object from the `VM` object and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. 3. Get function types - The `VM` object provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. + The `VM` object provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. - ```go - // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. - functype := vm.GetFunctionType("fib") - // Developers can get the function types of functions in the registered modules via the - // `(*VM).GetFunctionTypeRegistered` API with the function name and the module name. - // If the function is not found, these APIs will return `nil`. - // Developers should __NOT__ call the `(*FunctionType).Release` function of the returned object. - ``` + ```go + // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. + functype := vm.GetFunctionType("fib") + // Developers can get the function types of functions in the registered modules via the + // `(*VM).GetFunctionTypeRegistered` API with the function name and the module name. + // If the function is not found, these APIs will return `nil`. + // Developers should __NOT__ call the `(*FunctionType).Release` function of the returned object. + ``` 4. Get the active module - After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` object. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `(*VM).GetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. + After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` object. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `(*VM).GetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. - ```go - // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. - mod := vm.GetActiveModule() - // If there's no WASM module instantiated, this API will return `nil`. - // Developers should __NOT__ call the `(*Module).Release` function of the returned module instance. - ``` + ```go + // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. + mod := vm.GetActiveModule() + // If there's no WASM module instantiated, this API will return `nil`. + // Developers should __NOT__ call the `(*Module).Release` function of the returned module instance. + ``` 5. Get the components - The `VM` object is composed by the `Loader`, `Validator`, and `Executor` objects. For the developers who want to use these objects without creating another instances, these APIs can help developers to get them from the `VM` object. The get objects are owned by the `VM` object, and developers should not call their release functions. + The `VM` object is composed by the `Loader`, `Validator`, and `Executor` objects. For the developers who want to use these objects without creating another instances, these APIs can help developers to get them from the `VM` object. The get objects are owned by the `VM` object, and developers should not call their release functions. - ```go - loader := vm.GetLoader() - // Developers should __NOT__ call the `(*Loader).Release` function of the returned object. - validator := vm.GetValidator() - // Developers should __NOT__ call the `(*Validator).Release` function of the returned object. - executor := vm.GetExecutor() - // Developers should __NOT__ call the `(*Executor).Release` function of the returned object. - ``` + ```go + loader := vm.GetLoader() + // Developers should __NOT__ call the `(*Loader).Release` function of the returned object. + validator := vm.GetValidator() + // Developers should __NOT__ call the `(*Validator).Release` function of the returned object. + executor := vm.GetExecutor() + // Developers should __NOT__ call the `(*Executor).Release` function of the returned object. + ``` ## WasmEdge Runtime @@ -1535,119 +1535,119 @@ The `Executor` object is the executor for both WASM and compiled-WASM. This obje 1. Instantiate and register an `AST` object as a named `Module` instance - As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` objects, developers can instantiate and register an `AST` objects into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Register the loaded WASM `ast` into store with the export module name "mod". - mod, res := executor.Register(store, ast, "mod") - if err != nil { - fmt.Println("WASM registration FAILED:", err.Error()) - return - } - - // ... - - // Resources deallocations. - executor.Release() - stat.Release() - store.Release() - mod.Release() - ``` + As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` objects, developers can instantiate and register an `AST` objects into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Register the loaded WASM `ast` into store with the export module name "mod". + mod, res := executor.Register(store, ast, "mod") + if err != nil { + fmt.Println("WASM registration FAILED:", err.Error()) + return + } + + // ... + + // Resources deallocations. + executor.Release() + stat.Release() + store.Release() + mod.Release() + ``` 2. Register an existing `Module` instance and export the module name - Besides instantiating and registering an `AST` object, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Create a module instance for host functions. - mod := wasmedge.NewModule("mod") - // ... - // Create and add the host functions, tables, memories, and globals into the module instance. - // ... - - // Register the module instance into store with the exported module name. - // The export module name is in the module instance already. - res := executor.RegisterImport(store, mod) - if err != nil { - fmt.Println("WASM registration FAILED:", err.Error()) - return - } - - // ... - - // Resources deallocations. - executor.Release() - stat.Release() - store.Release() - mod.Release() - ``` + Besides instantiating and registering an `AST` object, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Create a module instance for host functions. + mod := wasmedge.NewModule("mod") + // ... + // Create and add the host functions, tables, memories, and globals into the module instance. + // ... + + // Register the module instance into store with the exported module name. + // The export module name is in the module instance already. + res := executor.RegisterImport(store, mod) + if err != nil { + fmt.Println("WASM registration FAILED:", err.Error()) + return + } + + // ... + + // Resources deallocations. + executor.Release() + stat.Release() + store.Release() + mod.Release() + ``` 3. Instantiate an `AST` object to an anonymous `Module` instance - WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` object for linking. - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Instantiate the WASM module. - mod, err := executor.Instantiate(stpre, ast) - if err != nil { - fmt.Println("WASM instantiation FAILED:", err.Error()) - return - } - - executor.Release() - stat.Release() - store.Release() - mod.Release() - ``` + WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` object for linking. + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Instantiate the WASM module. + mod, err := executor.Instantiate(stpre, ast) + if err != nil { + fmt.Println("WASM instantiation FAILED:", err.Error()) + return + } + + executor.Release() + stat.Release() + store.Release() + mod.Release() + ``` 4. Invoke functions - After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `(*Executor).Invoke` API. + After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `(*Executor).Invoke` API. ### AST Module @@ -1700,667 +1700,667 @@ The instances are the runtime structures of WASM. Developers can retrieve the `M 1. Module instance - After instantiating or registering an `AST` object, developers will get a `Module` instance as the result, and have the responsibility to release it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. + After instantiating or registering an `AST` object, developers will get a `Module` instance as the result, and have the responsibility to release it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. - ```go - // ... - // Instantiate a WASM module via the executor object and get the `mod` as the output module instance. - // ... + ```go + // ... + // Instantiate a WASM module via the executor object and get the `mod` as the output module instance. + // ... - // List the exported instance of the instantiated WASM module. - // Take the function instances for example here. - funcnames := mod.ListFunction() + // List the exported instance of the instantiated WASM module. + // Take the function instances for example here. + funcnames := mod.ListFunction() - // Try to find the exported instance of the instantiated WASM module. - // Take the function instances for example here. - funcinst := mod.FindFunction("fib") - // `funcinst` will be `nil` if the function not found. - // The returned instance is owned by the module instance and should __NOT__ be released. - ``` + // Try to find the exported instance of the instantiated WASM module. + // Take the function instances for example here. + funcinst := mod.FindFunction("fib") + // `funcinst` will be `nil` if the function not found. + // The returned instance is owned by the module instance and should __NOT__ be released. + ``` 2. Function instance - [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` objects for host functions and add them into an `Module` instance for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` objects through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). + [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` objects for host functions and add them into an `Module` instance for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` objects through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). - ```go - funcobj := ... - // `funcobj` is the `*wasmedge.Function` retrieved from the module instance. - functype := funcobj.GetFunctionType() - // The `funcobj` retrieved from the module instance should __NOT__ be released. - // The `functype` retrieved from the `funcobj` should __NOT__ be released. + ```go + funcobj := ... + // `funcobj` is the `*wasmedge.Function` retrieved from the module instance. + functype := funcobj.GetFunctionType() + // The `funcobj` retrieved from the module instance should __NOT__ be released. + // The `functype` retrieved from the `funcobj` should __NOT__ be released. - // For the function object creation, please refer to the `Host Function` guide. - ``` + // For the function object creation, please refer to the `Host Function` guide. + ``` 3. Table instance - In WasmEdge, developers can create the `Table` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Table` objects supply APIs to control the data in table instances. - - ```go - lim := wasmedge.NewLimitWithMax(10, 20) - // Create the table type with limit and the `FuncRef` element type. - tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef, lim) - // Create the table instance with table type. - tabinst := wasmedge.NewTable(tabtype) - // Delete the table type. - tabtype.Release() - - gottabtype := tabinst.GetTableType() - // The `gottabtype` got from table instance is owned by the `tabinst` - // and should __NOT__ be released. - reftype := gottabtype.GetRefType() - // The `reftype` will be `wasmedge.RefType_FuncRef`. - - var gotdata interface{} - data := wasmedge.NewFuncRef(5) - err := tabinst.SetData(data, 3) - // Set the function index 5 to the table[3]. - - // The following line will get an "out of bounds table access" error - // because the position (13) is out of the table size (10): - // err = tabinst.SetData(data, 13) - - gotdata, err = tabinst.GetData(3) - // Get the FuncRef value of the table[3]. - - // The following line will get an "out of bounds table access" error - // because the position (13) is out of the table size (10): - // gotdata, err = tabinst.GetData(13) - - tabsize := tabinst.GetSize() - // `tabsize` will be 10. - err = tabinst.Grow(6) - // Grow the table size of 6, the table size will be 16. - - // The following line will get an "out of bounds table access" error - // because the size (16 + 6) will reach the table limit (20): - // err = tabinst.Grow(6) - - tabinst.Release() - ``` + In WasmEdge, developers can create the `Table` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Table` objects supply APIs to control the data in table instances. -4. Memory instance + ```go + lim := wasmedge.NewLimitWithMax(10, 20) + // Create the table type with limit and the `FuncRef` element type. + tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef, lim) + // Create the table instance with table type. + tabinst := wasmedge.NewTable(tabtype) + // Delete the table type. + tabtype.Release() - In WasmEdge, developers can create the `Memory` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Memory` objects supply APIs to control the data in memory instances. - - ```go - lim := wasmedge.NewLimitWithMax(1, 5) - // Create the memory type with limit. The memory page size is 64KiB. - memtype := wasmedge.NewMemoryType(lim) - // Create the memory instance with memory type. - meminst := wasmedge.NewMemory(memtype) - // Delete the memory type. - memtype.Release() - - data := []byte("A quick brown fox jumps over the lazy dog") - err := meminst.SetData(data, 0x1000, 10) - // Set the data[0:9] to the memory[4096:4105]. - - // The following line will get an "out of bounds memory access" error - // because [65535:65544] is out of 1 page size (65536): - // err = meminst.SetData(data, 0xFFFF, 10) - - var gotdata []byte - gotdata, err = meminst.GetData(0x1000, 10) - // Get the memory[4096:4105]. The `gotdata` will be `[]byte("A quick br"). - // The following line will get an "out of bounds memory access" error - // because [65535:65544] is out of 1 page size (65536): - // gotdata, err = meminst.Getdata(0xFFFF, 10) - - pagesize := meminst.GetPageSize() - // `pagesize` will be 1. - err = meminst.GrowPage(2) - // Grow the page size of 2, the page size of the memory instance will be 3. - - // The following line will get an "out of bounds memory access" error - // because the size (3 + 3) will reach the memory limit (5): - // err = meminst.GetPageSize(3) - - meminst.Release() - ``` + gottabtype := tabinst.GetTableType() + // The `gottabtype` got from table instance is owned by the `tabinst` + // and should __NOT__ be released. + reftype := gottabtype.GetRefType() + // The `reftype` will be `wasmedge.RefType_FuncRef`. -5. Global instance + var gotdata interface{} + data := wasmedge.NewFuncRef(5) + err := tabinst.SetData(data, 3) + // Set the function index 5 to the table[3]. - In WasmEdge, developers can create the `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Global` objects supply APIs to control the value in global instances. - - ```go - // Create the global type with value type and mutation. - globtype := wasmedge.NewGlobalType(wasmedge.ValType_I64, wasmedge.ValMut_Var) - // Create the global instance with value and global type. - globinst := wasmedge.NewGlobal(globtype, uint64(1000)) - // Delete the global type. - globtype.Release() - - gotglobtype := globinst.GetGlobalType() - // The `gotglobtype` got from global instance is owned by the `globinst` - // and should __NOT__ be released. - valtype := gotglobtype.GetValType() - // The `valtype` will be `wasmedge.ValType_I64`. - valmut := gotglobtype.GetMutability() - // The `valmut` will be `wasmedge.ValMut_Var`. - - globinst.SetValue(uint64(888)) - // Set the value u64(888) to the global. - // This function will do nothing if the value type mismatched or the - // global mutability is `wasmedge.ValMut_Const`. - gotval := globinst.GetValue() - // The `gotbal` will be `interface{}` which the type is `uint64` and - // the value is 888. - - globinst.Release() - ``` + // The following line will get an "out of bounds table access" error + // because the position (13) is out of the table size (10): + // err = tabinst.SetData(data, 13) -### Host Functions + gotdata, err = tabinst.GetData(3) + // Get the FuncRef value of the table[3]. -[Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge-go, developers can create the `Function`, `Memory`, `Table`, and `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. + // The following line will get an "out of bounds table access" error + // because the position (13) is out of the table size (10): + // gotdata, err = tabinst.GetData(13) -1. Host function allocation + tabsize := tabinst.GetSize() + // `tabsize` will be 10. + err = tabinst.Grow(6) + // Grow the table size of 6, the table size will be 16. - Developers can define Go functions with the following function signature as the host function body: + // The following line will get an "out of bounds table access" error + // because the size (16 + 6) will reach the table limit (20): + // err = tabinst.Grow(6) - ```go - type hostFunctionSignature func( - data interface{}, callframe *CallingFrame, params []interface{}) ([]interface{}, Result) - ``` + tabinst.Release() + ``` - The example of an `add` host function to add 2 `i32` values: +4. Memory instance - ```go - func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) + In WasmEdge, developers can create the `Memory` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Memory` objects supply APIs to control the data in memory instances. - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res + ```go + lim := wasmedge.NewLimitWithMax(1, 5) + // Create the memory type with limit. The memory page size is 64KiB. + memtype := wasmedge.NewMemoryType(lim) + // Create the memory instance with memory type. + meminst := wasmedge.NewMemory(memtype) + // Delete the memory type. + memtype.Release() - // Return - return returns, wasmedge.Result_Success - } - ``` + data := []byte("A quick brown fox jumps over the lazy dog") + err := meminst.SetData(data, 0x1000, 10) + // Set the data[0:9] to the memory[4096:4105]. - Then developers can create `Function` object with the host function body and function type: + // The following line will get an "out of bounds memory access" error + // because [65535:65544] is out of 1 page size (65536): + // err = meminst.SetData(data, 0xFFFF, 10) - ```go - // Create a function type: {i32, i32} -> {i32}. - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) + var gotdata []byte + gotdata, err = meminst.GetData(0x1000, 10) + // Get the memory[4096:4105]. The `gotdata` will be `[]byte("A quick br"). + // The following line will get an "out of bounds memory access" error + // because [65535:65544] is out of 1 page size (65536): + // gotdata, err = meminst.Getdata(0xFFFF, 10) - // Create a function context with the function type and host function body. - // The third parameter is the pointer to the additional data. - // Developers should guarantee the life cycle of the data, and it can be - // `nil` if the external data is not needed. - // The last parameter can be 0 if developers do not need the cost measuring. - func_add := wasmedge.NewFunction(functype, host_add, nil, 0) + pagesize := meminst.GetPageSize() + // `pagesize` will be 1. + err = meminst.GrowPage(2) + // Grow the page size of 2, the page size of the memory instance will be 3. - // If the function object is not added into an module instance object, it should be released. - func_add.Release() - functype.Release() - ``` + // The following line will get an "out of bounds memory access" error + // because the size (3 + 3) will reach the memory limit (5): + // err = meminst.GetPageSize(3) -2. Calling frame object + meminst.Release() + ``` - The `wasmedge.CallingFrame` is the object to provide developers to access the module instance of the [frame on the top of the calling stack](https://webassembly.github.io/spec/core/exec/runtime.html#activations-and-frames). According to the [WASM spec](https://webassembly.github.io/spec/core/exec/instructions.html#function-calls), a frame with the module instance is pushed into the stack when invoking a function. Therefore, the host functions can access the module instance of the top frame to retrieve the memory instances to read/write data. +5. Global instance - ```go - import ( - "encoding/binary" - "fmt" - ) + In WasmEdge, developers can create the `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Global` objects supply APIs to control the value in global instances. + + ```go + // Create the global type with value type and mutation. + globtype := wasmedge.NewGlobalType(wasmedge.ValType_I64, wasmedge.ValMut_Var) + // Create the global instance with value and global type. + globinst := wasmedge.NewGlobal(globtype, uint64(1000)) + // Delete the global type. + globtype.Release() + + gotglobtype := globinst.GetGlobalType() + // The `gotglobtype` got from global instance is owned by the `globinst` + // and should __NOT__ be released. + valtype := gotglobtype.GetValType() + // The `valtype` will be `wasmedge.ValType_I64`. + valmut := gotglobtype.GetMutability() + // The `valmut` will be `wasmedge.ValMut_Var`. + + globinst.SetValue(uint64(888)) + // Set the value u64(888) to the global. + // This function will do nothing if the value type mismatched or the + // global mutability is `wasmedge.ValMut_Const`. + gotval := globinst.GetValue() + // The `gotbal` will be `interface{}` which the type is `uint64` and + // the value is 888. + + globinst.Release() + ``` - // Host function body definition. - func LoadOffset(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // Function type: {i32} -> {} - offset := params[0].(int32) - - // Get the 0th memory instance of the module of the top frame on the stack. - mem := callframe.GetMemoryByIndex(0) - - data, err := mem.GetData(uint(offset), 4) - if err != nil { - return nil, err - } - fmt.Println("u32 at memory[{}]: {}", offset, binary.LittleEndian.Uint32(data)) - return nil, wasmedge.Result_Success - } - ``` +### Host Functions - Besides using the `(*CallingFrame).GetMemoryByIndex()` API to get the memory instance by index in the module instance, developers can use the `(*CallingFrame).GetModule()` to get the module instance directly. Therefore, developers can retrieve the exported contexts by the `wasmedge.Module` APIs. And also, developers can use the `(*CallingFrame).GetExecutor()` API to get the currently used executor context. +[Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge-go, developers can create the `Function`, `Memory`, `Table`, and `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. -3. User-defined error code of the host functions +1. Host function allocation - In host functions, WasmEdge-Go provides `wasmedge.Result_Success` to return success, `wasmedge.Result_Terminate` to terminate the WASM execution, and `wasmedge.Result_Fail` to return fail. WasmEdge-Go also provides the usage of returning the user-specified codes. Developers can use the `wasmedge.NewResult()` API to generate the `wasmedge.Result` struct with error code, and use the `(*result).GetCode()` API to get the error code. + Developers can define Go functions with the following function signature as the host function body: - > Notice: The error code only supports 24-bit integer (0 ~ 16777216 in `uint32`). The values larger than 24-bit will be truncated. + ```go + type hostFunctionSignature func( + data interface{}, callframe *CallingFrame, params []interface{}) ([]interface{}, Result) + ``` - Create a new Go project first: + The example of an `add` host function to add 2 `i32` values: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```go + func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) - Assume that a simple WASM from the WAT is as following: + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res - ```wasm - (module - (type $t0 (func (param i32))) - (import "extern" "trap" (func $f-trap (type $t0))) - (func (export "trap") (param i32) - local.get 0 - call $f-trap) - ) - ``` + // Return + return returns, wasmedge.Result_Success + } + ``` - And the `main.go` is as following: + Then developers can create `Function` object with the host function body and function type: - ```go - package main + ```go + // Create a function type: {i32, i32} -> {i32}. + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) - import ( - "fmt" + // Create a function context with the function type and host function body. + // The third parameter is the pointer to the additional data. + // Developers should guarantee the life cycle of the data, and it can be + // `nil` if the external data is not needed. + // The last parameter can be 0 if developers do not need the cost measuring. + func_add := wasmedge.NewFunction(functype, host_add, nil, 0) - "github.com/second-state/WasmEdge-go/wasmedge" - ) + // If the function object is not added into an module instance object, it should be released. + func_add.Release() + functype.Release() + ``` - // Host function body definition. - func host_trap(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) - - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res - - // Return - return returns, wasmedge.Result_Success - } - - func main() { - // Create the VM object. - vm := wasmedge.NewVM() - - // The WASM module buffer. - wasmbuf := []byte{ - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x05, 0x01, - /* function type {i32} -> {} */ - 0x60, 0x01, 0x7F, 0x00, - /* Import section */ - 0x02, 0x0F, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "trap" */ - 0x04, 0x74, 0x72, 0x61, 0x70, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x08, 0x01, - /* export name: "trap" */ - 0x04, 0x74, 0x72, 0x61, 0x70, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x08, 0x01, - /* code body */ - 0x06, 0x00, 0x20, 0x00, 0x10, 0x00, 0x0B, - } - - // Create the module instance with the module name "extern". - impmod := wasmedge.NewModule("extern") - - // Create and add a function instance into the module instance with export name "func-add". - functype := wasmedge.NewFunctionType([]wasmedge.ValType{wasmedge.ValType_I32}, []wasmedge.ValType{}) - hostfunc := wasmedge.NewFunction(functype, host_trap, nil, 0) - functype.Release() - impmod.AddFunction("trap", hostfunc) - - // Register the module instance into VM. - vm.RegisterImport(impmod) - - _, err := vm.RunWasmBuffer(wasmbuf, "trap", uint32(5566)) - if err != nil { - fmt.Println("Get the error code:", err.GetCode()) - } - - impmod.Release() - vm.Release() - } - ``` +2. Calling frame object - Then you can build and run the Golang application with the WasmEdge Golang SDK: + The `wasmedge.CallingFrame` is the object to provide developers to access the module instance of the [frame on the top of the calling stack](https://webassembly.github.io/spec/core/exec/runtime.html#activations-and-frames). According to the [WASM spec](https://webassembly.github.io/spec/core/exec/instructions.html#function-calls), a frame with the module instance is pushed into the stack when invoking a function. Therefore, the host functions can access the module instance of the top frame to retrieve the memory instances to read/write data. - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 - $ go build - $ ./wasmedge_test - [2022-08-26 15:06:40.384] [error] user defined failed: user defined error code, Code: 0x15be - [2022-08-26 15:06:40.384] [error] When executing function name: "trap" - Get the error code: 5566 - ``` + ```go + import ( + "encoding/binary" + "fmt" + ) -4. Construct a module instance with host instances + // Host function body definition. + func LoadOffset(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // Function type: {i32} -> {} + offset := params[0].(int32) - Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + // Get the 0th memory instance of the module of the top frame on the stack. + mem := callframe.GetMemoryByIndex(0) - ```go - // Host function body definition. - func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) + data, err := mem.GetData(uint(offset), 4) + if err != nil { + return nil, err + } + fmt.Println("u32 at memory[{}]: {}", offset, binary.LittleEndian.Uint32(data)) + return nil, wasmedge.Result_Success + } + ``` - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res + Besides using the `(*CallingFrame).GetMemoryByIndex()` API to get the memory instance by index in the module instance, developers can use the `(*CallingFrame).GetModule()` to get the module instance directly. Therefore, developers can retrieve the exported contexts by the `wasmedge.Module` APIs. And also, developers can use the `(*CallingFrame).GetExecutor()` API to get the currently used executor context. - // Return - return returns, wasmedge.Result_Success - } +3. User-defined error code of the host functions - // Create a module instance with the module name "module". - mod := wasmedge.NewModule("module") + In host functions, WasmEdge-Go provides `wasmedge.Result_Success` to return success, `wasmedge.Result_Terminate` to terminate the WASM execution, and `wasmedge.Result_Fail` to return fail. WasmEdge-Go also provides the usage of returning the user-specified codes. Developers can use the `wasmedge.NewResult()` API to generate the `wasmedge.Result` struct with error code, and use the `(*result).GetCode()` API to get the error code. + + > Notice: The error code only supports 24-bit integer (0 ~ 16777216 in `uint32`). The values larger than 24-bit will be truncated. + + Create a new Go project first: + + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` + + Assume that a simple WASM from the WAT is as following: + + ```wasm + (module + (type $t0 (func (param i32))) + (import "extern" "trap" (func $f-trap (type $t0))) + (func (export "trap") (param i32) + local.get 0 + call $f-trap) + ) + ``` + + And the `main.go` is as following: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + // Host function body definition. + func host_trap(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Return + return returns, wasmedge.Result_Success + } + + func main() { + // Create the VM object. + vm := wasmedge.NewVM() + + // The WASM module buffer. + wasmbuf := []byte{ + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x05, 0x01, + /* function type {i32} -> {} */ + 0x60, 0x01, 0x7F, 0x00, + /* Import section */ + 0x02, 0x0F, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "trap" */ + 0x04, 0x74, 0x72, 0x61, 0x70, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x08, 0x01, + /* export name: "trap" */ + 0x04, 0x74, 0x72, 0x61, 0x70, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x08, 0x01, + /* code body */ + 0x06, 0x00, 0x20, 0x00, 0x10, 0x00, 0x0B, + } + + // Create the module instance with the module name "extern". + impmod := wasmedge.NewModule("extern") + + // Create and add a function instance into the module instance with export name "func-add". + functype := wasmedge.NewFunctionType([]wasmedge.ValType{wasmedge.ValType_I32}, []wasmedge.ValType{}) + hostfunc := wasmedge.NewFunction(functype, host_trap, nil, 0) + functype.Release() + impmod.AddFunction("trap", hostfunc) + + // Register the module instance into VM. + vm.RegisterImport(impmod) + + _, err := vm.RunWasmBuffer(wasmbuf, "trap", uint32(5566)) + if err != nil { + fmt.Println("Get the error code:", err.GetCode()) + } + + impmod.Release() + vm.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 + $ go build + $ ./wasmedge_test + [2022-08-26 15:06:40.384] [error] user defined failed: user defined error code, Code: 0x15be + [2022-08-26 15:06:40.384] [error] When executing function name: "trap" + Get the error code: 5566 + ``` - // Create and add a function instance into the module instance with export name "add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) - functype.Release() - mod.AddFunction("add", hostfunc) - - // Create and add a table instance into the module instance with export name "table". - tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef ,wasmedge.NewLimitWithMax(10, 20)) - hosttab := wasmedge.NewTable(tabtype) - tabtype.Release() - mod.AddTable("table", hosttab) - - // Create and add a memory instance into the module instance with export name "memory". - memtype := wasmedge.NewMemoryType(wasmedge.NewLimitWithMax(1, 2)) - hostmem := wasmedge.NewMemory(memtype) - memtype.Release() - mod.AddMemory("memory", hostmem) - - // Create and add a global instance into the module instance with export name "global". - globtype := wasmedge.NewGlobalType(wasmedge.ValType_I32, wasmedge.ValMut_Var) - hostglob := wasmedge.NewGlobal(globtype, uint32(666)) - globtype.Release() - mod.AddGlobal("global", hostglob) - - // The module instances should be released. - // Developers should __NOT__ release the instances added into the module instance objects. - mod.Release() - ``` +4. Construct a module instance with host instances + + Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + + ```go + // Host function body definition. + func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Return + return returns, wasmedge.Result_Success + } + + // Create a module instance with the module name "module". + mod := wasmedge.NewModule("module") + + // Create and add a function instance into the module instance with export name "add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) + functype.Release() + mod.AddFunction("add", hostfunc) + + // Create and add a table instance into the module instance with export name "table". + tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef ,wasmedge.NewLimitWithMax(10, 20)) + hosttab := wasmedge.NewTable(tabtype) + tabtype.Release() + mod.AddTable("table", hosttab) + + // Create and add a memory instance into the module instance with export name "memory". + memtype := wasmedge.NewMemoryType(wasmedge.NewLimitWithMax(1, 2)) + hostmem := wasmedge.NewMemory(memtype) + memtype.Release() + mod.AddMemory("memory", hostmem) + + // Create and add a global instance into the module instance with export name "global". + globtype := wasmedge.NewGlobalType(wasmedge.ValType_I32, wasmedge.ValMut_Var) + hostglob := wasmedge.NewGlobal(globtype, uint32(666)) + globtype.Release() + mod.AddGlobal("global", hostglob) + + // The module instances should be released. + // Developers should __NOT__ release the instances added into the module instance objects. + mod.Release() + ``` 5. Specified module instance - `wasmedge.NewWasiModule()` API can create and initialize the `WASI` module instance. + `wasmedge.NewWasiModule()` API can create and initialize the `WASI` module instance. - `wasmedge.NewWasiNNModule()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin. + `wasmedge.NewWasiNNModule()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin. - `wasmedge.NewWasiCryptoCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin. + `wasmedge.NewWasiCryptoCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin. - `wasmedge.NewWasiCryptoAsymmetricCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin. + `wasmedge.NewWasiCryptoAsymmetricCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin. - `wasmedge.NewWasiCryptoKxModule()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin. + `wasmedge.NewWasiCryptoKxModule()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin. - `wasmedge.NewWasiCryptoSignaturesModule()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin. + `wasmedge.NewWasiCryptoSignaturesModule()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin. - `wasmedge.NewWasiCryptoSymmetricModule()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin. + `wasmedge.NewWasiCryptoSymmetricModule()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin. - `wasmedge.NewWasmEdgeProcessModule()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. + `wasmedge.NewWasmEdgeProcessModule()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. - Developers can create these module instance objects and register them into the `Store` or `VM` objects rather than adjust the settings in the `Configure` objects. + Developers can create these module instance objects and register them into the `Store` or `VM` objects rather than adjust the settings in the `Configure` objects. - > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. And the 5 modules are recommended to all be created and registered together. + > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. And the 5 modules are recommended to all be created and registered together. - ```go - wasiobj := wasmedge.NewWasiModule( - os.Args[1:], // The args - os.Environ(), // The envs - []string{".:."}, // The mapping preopens - ) - procobj := wasmedge.NewWasmEdgeProcessModule( - []string{"ls", "echo"}, // The allowed commands - false, // Not to allow all commands - ) + ```go + wasiobj := wasmedge.NewWasiModule( + os.Args[1:], // The args + os.Environ(), // The envs + []string{".:."}, // The mapping preopens + ) + procobj := wasmedge.NewWasmEdgeProcessModule( + []string{"ls", "echo"}, // The allowed commands + false, // Not to allow all commands + ) - // Register the WASI and WasmEdge_Process into the VM object. - vm := wasmedge.NewVM() - vm.RegisterImport(wasiobj) - vm.RegisterImport(procobj) + // Register the WASI and WasmEdge_Process into the VM object. + vm := wasmedge.NewVM() + vm.RegisterImport(wasiobj) + vm.RegisterImport(procobj) - // ... Execute some WASM functions. + // ... Execute some WASM functions. - // Get the WASI exit code. - exitcode := wasiobj.WasiGetExitCode() - // The `exitcode` will be 0 if the WASI function "_start" execution has no error. - // Otherwise, it will return with the related exit code. + // Get the WASI exit code. + exitcode := wasiobj.WasiGetExitCode() + // The `exitcode` will be 0 if the WASI function "_start" execution has no error. + // Otherwise, it will return with the related exit code. - vm.Release() - // The import objects should be deleted. - wasiobj.Release() - procobj.Release() - ``` + vm.Release() + // The import objects should be deleted. + wasiobj.Release() + procobj.Release() + ``` 6. Example - Assume that there is a simple WASM from the WAT as following: - - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` - - Assume that edit the Go file `main.go` above: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - // Host function body definition. - func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) - - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res - - // Return - return returns, wasmedge.Result_Success - } - - func main() { - // Create the VM object. - vm := wasmedge.NewVM() - - // The WASM module buffer. - wasmbuf := []byte{ - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, - } - - // Create the module instance with the module name "extern". - impmod := wasmedge.NewModule("extern") - - // Create and add a function instance into the module instance with export name "func-add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) - functype.Release() - impmod.AddFunction("func-add", hostfunc) - - // Register the module instance into VM. - vm.RegisterImport(impmod) - - res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - - impmod.Release() - vm.Release() - } - ``` - - Then you can build and run the Golang application with the WasmEdge Golang SDK: - - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 - $ go build - $ ./wasmedge_test - Get the result: 6912 - ``` + Assume that there is a simple WASM from the WAT as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + Assume that edit the Go file `main.go` above: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + // Host function body definition. + func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Return + return returns, wasmedge.Result_Success + } + + func main() { + // Create the VM object. + vm := wasmedge.NewVM() + + // The WASM module buffer. + wasmbuf := []byte{ + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, + } + + // Create the module instance with the module name "extern". + impmod := wasmedge.NewModule("extern") + + // Create and add a function instance into the module instance with export name "func-add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) + functype.Release() + impmod.AddFunction("func-add", hostfunc) + + // Register the module instance into VM. + vm.RegisterImport(impmod) + + res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + + impmod.Release() + vm.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 + $ go build + $ ./wasmedge_test + Get the result: 6912 + ``` 7. Host Data Example - Developers can set a external data object to the `Function` object, and access to the object in the function body. Assume that edit the Go file `main.go` above: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - // Host function body definition. - func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) - - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res - - // Also set the result to the data. - *data.(*int32) = res - - // Return - return returns, wasmedge.Result_Success - } - - func main() { - // Create the VM object. - vm := wasmedge.NewVM() - - // The WASM module buffer. - wasmbuf := []byte{ - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, - } - - // The additional data to set into the host function. - var data int32 = 0 - - // Create the module instance with the module name "extern". - impmod := wasmedge.NewImportObject("extern") - - // Create and add a function instance into the module instance with export name "func-add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, &data, 0) - functype.Release() - impmod.AddFunction("func-add", hostfunc) - - // Register the module instance into VM. - vm.RegisterImport(impmod) - - res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - fmt.Println("Data value:", data) - - impmod.Release() - vm.Release() - } - ``` - - Then you can build and run the Golang application with the WasmEdge Golang SDK: - - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 - $ go build - $ ./wasmedge_test - Get the result: 6912 - Data value: 6912 - ``` + Developers can set a external data object to the `Function` object, and access to the object in the function body. Assume that edit the Go file `main.go` above: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + // Host function body definition. + func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Also set the result to the data. + *data.(*int32) = res + + // Return + return returns, wasmedge.Result_Success + } + + func main() { + // Create the VM object. + vm := wasmedge.NewVM() + + // The WASM module buffer. + wasmbuf := []byte{ + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, + } + + // The additional data to set into the host function. + var data int32 = 0 + + // Create the module instance with the module name "extern". + impmod := wasmedge.NewImportObject("extern") + + // Create and add a function instance into the module instance with export name "func-add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, &data, 0) + functype.Release() + impmod.AddFunction("func-add", hostfunc) + + // Register the module instance into VM. + vm.RegisterImport(impmod) + + res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + fmt.Println("Data value:", data) + + impmod.Release() + vm.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.11.2 + $ go build + $ ./wasmedge_test + Get the result: 6912 + Data value: 6912 + ``` ## WasmEdge AOT Compiler diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/0.12.0.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/0.12.0.md index 1a8d88db..271b78a7 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/0.12.0.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/0.12.0.md @@ -12,43 +12,43 @@ The following are the guides to working with the WasmEdge-Go SDK. ## Table of Contents -- [Getting Started](#getting-started) - - [WasmEdge Installation](#wasmedge-installation) - - [Get WasmEdge-go](#get-wasmedge-go) - - [WasmEdge-go Extensions](#wasmedge-go-extensions) - - [Example repository](#example-repository) -- [WasmEdge-go Basics](#wasmedge-go-basics) - - [Version](#version) - - [Logging Settings](#logging-settings) - - [Value Types](#value-types) - - [Results](#results) - - [Contexts And Their Life Cycles](#contexts-and-their-life-cycles) - - [WASM data structures](#wasm-data-structures) - - [Async](#async) - - [Configurations](#configurations) - - [Statistics](#statistics) - - [Tools driver](#tools-driver) -- [WasmEdge VM](#wasmedge-vm) - - [WASM Execution Example With VM Object](#wasm-execution-example-with-vm-object) - - [VM Creations](#vm-creations) - - [Built-in Host Modules and Plug-in Preregistrations](#built-in-host-modules-and-plug-in-preregistrations) - - [Host Module Registrations](#host-module-registrations) - - [WASM Registrations And Executions](#wasm-registrations-and-executions) - - [Asynchronous execution](#asynchronous-execution) - - [Instance Tracing](#instance-tracing) -- [WasmEdge Runtime](#wasmedge-runtime) - - [WASM Execution Example Step-By-Step](#wasm-execution-example-step-by-step) - - [Loader](#loader) - - [Validator](#validator) - - [Executor](#executor) - - [AST Module](#ast-module) - - [Store](#store) - - [Instances](#instances) - - [Host Functions](#host-functions) - - [Plug-ins](#plug-ins) -- [WasmEdge AOT Compiler](#wasmedge-aot-compiler) - - [Compilation Example](#compilation-example) - - [Compiler Options](#compiler-options) +- [Getting Started](#getting-started) + - [WasmEdge Installation](#wasmedge-installation) + - [Get WasmEdge-go](#get-wasmedge-go) + - [WasmEdge-go Extensions](#wasmedge-go-extensions) + - [Example repository](#example-repository) +- [WasmEdge-go Basics](#wasmedge-go-basics) + - [Version](#version) + - [Logging Settings](#logging-settings) + - [Value Types](#value-types) + - [Results](#results) + - [Contexts And Their Life Cycles](#contexts-and-their-life-cycles) + - [WASM data structures](#wasm-data-structures) + - [Async](#async) + - [Configurations](#configurations) + - [Statistics](#statistics) + - [Tools driver](#tools-driver) +- [WasmEdge VM](#wasmedge-vm) + - [WASM Execution Example With VM Object](#wasm-execution-example-with-vm-object) + - [VM Creations](#vm-creations) + - [Built-in Host Modules and Plug-in Preregistrations](#built-in-host-modules-and-plug-in-preregistrations) + - [Host Module Registrations](#host-module-registrations) + - [WASM Registrations And Executions](#wasm-registrations-and-executions) + - [Asynchronous execution](#asynchronous-execution) + - [Instance Tracing](#instance-tracing) +- [WasmEdge Runtime](#wasmedge-runtime) + - [WASM Execution Example Step-By-Step](#wasm-execution-example-step-by-step) + - [Loader](#loader) + - [Validator](#validator) + - [Executor](#executor) + - [AST Module](#ast-module) + - [Store](#store) + - [Instances](#instances) + - [Host Functions](#host-functions) + - [Plug-ins](#plug-ins) +- [WasmEdge AOT Compiler](#wasmedge-aot-compiler) + - [Compilation Example](#compilation-example) + - [Compiler Options](#compiler-options) ## Getting Started @@ -92,36 +92,36 @@ By default, the `WasmEdge-go` only turns on the basic runtime. `WasmEdge-go` has the following extensions (on the Linux platforms only): -- Tensorflow +- Tensorflow - - This extension supports the host functions in [WasmEdge-tensorflow](https://github.com/second-state/WasmEdge-tensorflow). - - The `TensorFlow` and `TensorFlow-Lite` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e tensorflow` command. - - For using this extension, the tag `tensorflow` when building is required: + - This extension supports the host functions in [WasmEdge-tensorflow](https://github.com/second-state/WasmEdge-tensorflow). + - The `TensorFlow` and `TensorFlow-Lite` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e tensorflow` command. + - For using this extension, the tag `tensorflow` when building is required: - ```bash - go build -tags tensorflow - ``` + ```bash + go build -tags tensorflow + ``` -- Tensorflow-Lite +- Tensorflow-Lite - - This extension supports the host functions in [WasmEdge-tensorflow](https://github.com/second-state/WasmEdge-tensorflow) with only `TensorFlow-Lite`. - - The `TensorFlow-Lite` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e tensorflow` command. - - **THIS TAG CANNOT BE USED WITH THE `tensorflow` TAG.** - - For using this extension, the tag `tensorflow` when building is required: + - This extension supports the host functions in [WasmEdge-tensorflow](https://github.com/second-state/WasmEdge-tensorflow) with only `TensorFlow-Lite`. + - The `TensorFlow-Lite` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e tensorflow` command. + - **THIS TAG CANNOT BE USED WITH THE `tensorflow` TAG.** + - For using this extension, the tag `tensorflow` when building is required: - ```bash - go build -tags tensorflowlite - ``` + ```bash + go build -tags tensorflowlite + ``` -- Image +- Image - - This extension supports the host functions in [WasmEdge-image](https://github.com/second-state/WasmEdge-image). - - The `Image` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e image` command. - - For using this extension, the tag `image` when building is required: + - This extension supports the host functions in [WasmEdge-image](https://github.com/second-state/WasmEdge-image). + - The `Image` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e image` command. + - For using this extension, the tag `image` when building is required: - ```bash - go build -tags image - ``` + ```bash + go build -tags image + ``` Users can also turn on the multiple extensions when building: @@ -162,47 +162,47 @@ In WasmEdge-go, the APIs will automatically do the conversion for the built-in t 1. Number types: `i32`, `i64`, `f32`, and `f64` - - Convert the `uint32` and `int32` to `i32` automatically when passing a value into WASM. - - Convert the `uint64` and `int64` to `i64` automatically when passing a value into WASM. - - Convert the `uint` and `int` to `i32` automatically when passing a value into WASM in 32-bit system. - - Convert the `uint` and `int` to `i64` automatically when passing a value into WASM in 64-bit system. - - Convert the `float32` to `f32` automatically when passing a value into WASM. - - Convert the `float64` to `f64` automatically when passing a value into WASM. - - Convert the `i32` from WASM to `int32` when getting a result. - - Convert the `i64` from WASM to `int64` when getting a result. - - Convert the `f32` from WASM to `float32` when getting a result. - - Convert the `f64` from WASM to `float64` when getting a result. + - Convert the `uint32` and `int32` to `i32` automatically when passing a value into WASM. + - Convert the `uint64` and `int64` to `i64` automatically when passing a value into WASM. + - Convert the `uint` and `int` to `i32` automatically when passing a value into WASM in 32-bit system. + - Convert the `uint` and `int` to `i64` automatically when passing a value into WASM in 64-bit system. + - Convert the `float32` to `f32` automatically when passing a value into WASM. + - Convert the `float64` to `f64` automatically when passing a value into WASM. + - Convert the `i32` from WASM to `int32` when getting a result. + - Convert the `i64` from WASM to `int64` when getting a result. + - Convert the `f32` from WASM to `float32` when getting a result. + - Convert the `f64` from WASM to `float64` when getting a result. 2. Number type: `v128` for the `SIMD` proposal - Developers should use the `wasmedge.NewV128()` to generate a `v128` value, and use the `wasmedge.GetV128()` to get the value. + Developers should use the `wasmedge.NewV128()` to generate a `v128` value, and use the `wasmedge.GetV128()` to get the value. - ```go - val := wasmedge.NewV128(uint64(1234), uint64(5678)) - high, low := val.GetVal() - // `high` will be uint64(1234), `low` will be uint64(5678) - ``` + ```go + val := wasmedge.NewV128(uint64(1234), uint64(5678)) + high, low := val.GetVal() + // `high` will be uint64(1234), `low` will be uint64(5678) + ``` 3. Reference types: `FuncRef` and `ExternRef` for the `Reference-Types` proposal - ```go - var funccxt *wasmedge.Function = ... // Create or get function object. - funcref := wasmedge.NewFuncRef(funccxt) - // Create a `FuncRef` with the function object. - - num := 1234 - // `num` is a `int`. - externref := wasmedge.NewExternRef(&num) - // Create an `ExternRef` which reference to the `num`. - num = 5678 - // Modify the `num` to 5678. - numref := externref.GetRef().(*int) - // Get the original reference from the `ExternRef`. - fmt.Println(*numref) - // Will print `5678`. - numref.Release() - // Should call the `Release` method. - ``` + ```go + var funccxt *wasmedge.Function = ... // Create or get function object. + funcref := wasmedge.NewFuncRef(funccxt) + // Create a `FuncRef` with the function object. + + num := 1234 + // `num` is a `int`. + externref := wasmedge.NewExternRef(&num) + // Create an `ExternRef` which reference to the `num`. + num = 5678 + // Modify the `num` to 5678. + numref := externref.GetRef().(*int) + // Get the original reference from the `ExternRef`. + fmt.Println(*numref) + // Will print `5678`. + numref.Release() + // Should call the `Release` method. + ``` ### Results @@ -243,166 +243,166 @@ The WASM data structures are used for creating instances or can be queried from 1. Limit - The `Limit` struct presents the minimum and maximum value data structure. - - ```go - lim1 := wasmedge.NewLimit(12) - fmt.Println(lim1.HasMax()) - // Will print `false`. - fmt.Println(lim1.GetMin()) - // Will print `12`. - - lim2 := wasmedge.NewLimitWithMax(15, 50) - fmt.Println(lim2.HasMax()) - // Will print `true`. - fmt.Println(lim2.GetMin()) - // Will print `15`. - fmt.Println(lim2.GetMax()) - // Will print `50`. - ``` - - For the thread proposal, the `Limit` struct also supports the shared memory description. - - ```go - lim3 := wasmedge.NewLimitShared(20) - fmt.Println(lim3.HasMax()) - // Will print `false`. - fmt.Println(lim3.IsShared()) - // Will print `true`. - fmt.Println(lim3.GetMin()) - // Will print `20`. - - lim4 := wasmedge.NewLimitSharedWithMax(30, 40) - fmt.Println(lim4.HasMax()) - // Will print `true`. - fmt.Println(lim4.IsShared()) - // Will print `true`. - fmt.Println(lim4.GetMin()) - // Will print `30`. - fmt.Println(lim4.GetMax()) - // Will print `40`. - ``` + The `Limit` struct presents the minimum and maximum value data structure. + + ```go + lim1 := wasmedge.NewLimit(12) + fmt.Println(lim1.HasMax()) + // Will print `false`. + fmt.Println(lim1.GetMin()) + // Will print `12`. + + lim2 := wasmedge.NewLimitWithMax(15, 50) + fmt.Println(lim2.HasMax()) + // Will print `true`. + fmt.Println(lim2.GetMin()) + // Will print `15`. + fmt.Println(lim2.GetMax()) + // Will print `50`. + ``` + + For the thread proposal, the `Limit` struct also supports the shared memory description. + + ```go + lim3 := wasmedge.NewLimitShared(20) + fmt.Println(lim3.HasMax()) + // Will print `false`. + fmt.Println(lim3.IsShared()) + // Will print `true`. + fmt.Println(lim3.GetMin()) + // Will print `20`. + + lim4 := wasmedge.NewLimitSharedWithMax(30, 40) + fmt.Println(lim4.HasMax()) + // Will print `true`. + fmt.Println(lim4.IsShared()) + // Will print `true`. + fmt.Println(lim4.GetMin()) + // Will print `30`. + fmt.Println(lim4.GetMax()) + // Will print `40`. + ``` 2. Function type context - The `FunctionType` is an object holds the function type context and used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `FunctionType` APIs to get the parameter or return value types information. - - ```go - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{ - wasmedge.ValType_ExternRef, - wasmedge.ValType_I32, - wasmedge.ValType_I64, - }, []wasmedge.ValType{ - wasmedge.ValType_F32, - wasmedge.ValType_F64, - }) - - plen := functype.GetParametersLength() - // `plen` will be 3. - rlen := functype.GetReturnsLength() - // `rlen` will be 2. - plist := functype.GetParameters() - // `plist` will be `[]wasmedge.ValType{wasmedge.ValType_ExternRef, wasmedge.ValType_I32, wasmedge.ValType_I64}`. - rlist := functype.GetReturns() - // `rlist` will be `[]wasmedge.ValType{wasmedge.ValType_F32, wasmedge.ValType_F64}`. - - functype.Release() - ``` + The `FunctionType` is an object holds the function type context and used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `FunctionType` APIs to get the parameter or return value types information. + + ```go + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{ + wasmedge.ValType_ExternRef, + wasmedge.ValType_I32, + wasmedge.ValType_I64, + }, []wasmedge.ValType{ + wasmedge.ValType_F32, + wasmedge.ValType_F64, + }) + + plen := functype.GetParametersLength() + // `plen` will be 3. + rlen := functype.GetReturnsLength() + // `rlen` will be 2. + plist := functype.GetParameters() + // `plist` will be `[]wasmedge.ValType{wasmedge.ValType_ExternRef, wasmedge.ValType_I32, wasmedge.ValType_I64}`. + rlist := functype.GetReturns() + // `rlist` will be `[]wasmedge.ValType{wasmedge.ValType_F32, wasmedge.ValType_F64}`. + + functype.Release() + ``` 3. Table type context - The `TableType` is an object holds the table type context and used for `Table` instance creation or getting information from `Table` instances. + The `TableType` is an object holds the table type context and used for `Table` instance creation or getting information from `Table` instances. - ```go - lim := wasmedge.NewLimit(12) - tabtype := wasmedge.NewTableType(wasmedge.RefType_ExternRef, lim) + ```go + lim := wasmedge.NewLimit(12) + tabtype := wasmedge.NewTableType(wasmedge.RefType_ExternRef, lim) - rtype := tabtype.GetRefType() - // `rtype` will be `wasmedge.RefType_ExternRef`. - getlim := tabtype.GetLimit() - // `getlim` will be the same value as `lim`. + rtype := tabtype.GetRefType() + // `rtype` will be `wasmedge.RefType_ExternRef`. + getlim := tabtype.GetLimit() + // `getlim` will be the same value as `lim`. - tabtype.Release() - ``` + tabtype.Release() + ``` 4. Memory type context - The `MemoryType` is an object holds the memory type context and used for `Memory` instance creation or getting information from `Memory` instances. + The `MemoryType` is an object holds the memory type context and used for `Memory` instance creation or getting information from `Memory` instances. - ```go - lim := wasmedge.NewLimit(1) - memtype := wasmedge.NewMemoryType(lim) + ```go + lim := wasmedge.NewLimit(1) + memtype := wasmedge.NewMemoryType(lim) - getlim := memtype.GetLimit() - // `getlim` will be the same value as `lim`. + getlim := memtype.GetLimit() + // `getlim` will be the same value as `lim`. - memtype.Release() - ``` + memtype.Release() + ``` 5. Global type context - The `GlobalType` is an object holds the global type context and used for `Global` instance creation or getting information from `Global` instances. + The `GlobalType` is an object holds the global type context and used for `Global` instance creation or getting information from `Global` instances. - ```go - globtype := wasmedge.NewGlobalType(wasmedge.ValType_F64, wasmedge.ValMut_Var) + ```go + globtype := wasmedge.NewGlobalType(wasmedge.ValType_F64, wasmedge.ValMut_Var) - vtype := globtype.GetValType() - // `vtype` will be `wasmedge.ValType_F64`. - vmut := globtype.GetMutability() - // `vmut` will be `wasmedge.ValMut_Var`. + vtype := globtype.GetValType() + // `vtype` will be `wasmedge.ValType_F64`. + vmut := globtype.GetMutability() + // `vmut` will be `wasmedge.ValMut_Var`. - globtype.Release() - ``` + globtype.Release() + ``` 6. Import type context - The `ImportType` is an object holds the import type context and used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `ImportType` object. The details about querying `ImportType` objects will be introduced in the [AST Module](#ast-module). + The `ImportType` is an object holds the import type context and used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `ImportType` object. The details about querying `ImportType` objects will be introduced in the [AST Module](#ast-module). - ```go - var ast *wasmedge.AST = ... - // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. - imptypelist := ast.ListImports() - // Assume that `imptypelist` is an array listed from the `ast` for the imports. + ```go + var ast *wasmedge.AST = ... + // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. + imptypelist := ast.ListImports() + // Assume that `imptypelist` is an array listed from the `ast` for the imports. - for i, imptype := range imptypelist { - exttype := imptype.GetExternalType() - // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, - // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. + for i, imptype := range imptypelist { + exttype := imptype.GetExternalType() + // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, + // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. - modname := imptype.GetModuleName() - extname := imptype.GetExternalName() - // Get the module name and external name of the imports. + modname := imptype.GetModuleName() + extname := imptype.GetExternalName() + // Get the module name and external name of the imports. - extval := imptype.GetExternalValue() - // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, - // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. - } - ``` + extval := imptype.GetExternalValue() + // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, + // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. + } + ``` 7. Export type context - The `ExportType` is an object holds the export type context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `ExportType` objects will be introduced in the [AST Module](#ast-module). + The `ExportType` is an object holds the export type context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `ExportType` objects will be introduced in the [AST Module](#ast-module). - ```go - var ast *wasmedge.AST = ... - // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. - exptypelist := ast.ListExports() - // Assume that `exptypelist` is an array listed from the `ast` for the exports. + ```go + var ast *wasmedge.AST = ... + // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. + exptypelist := ast.ListExports() + // Assume that `exptypelist` is an array listed from the `ast` for the exports. - for i, exptype := range exptypelist { - exttype := exptype.GetExternalType() - // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, - // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. + for i, exptype := range exptypelist { + exttype := exptype.GetExternalType() + // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, + // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. - extname := exptype.GetExternalName() - // Get the external name of the exports. + extname := exptype.GetExternalName() + // Get the external name of the exports. - extval := exptype.GetExternalValue() - // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, - // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. - } - ``` + extval := exptype.GetExternalValue() + // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, + // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. + } + ``` ### Async @@ -410,35 +410,35 @@ After calling the [asynchronous execution APIs](#asynchronous-execution), develo 1. Get the execution result of the asynchronous execution - Developers can use the `(*Async).GetResult()` API to block and wait for getting the return values. This function will block and wait for the execution. If the execution has finished, this function will return immediately. If the execution failed, this function will return an error. + Developers can use the `(*Async).GetResult()` API to block and wait for getting the return values. This function will block and wait for the execution. If the execution has finished, this function will return immediately. If the execution failed, this function will return an error. - ```go - async := ... // Ignored. Asynchronous execute a function. + ```go + async := ... // Ignored. Asynchronous execute a function. - // Blocking and waiting for the execution and get the return values. - res, err := async.GetResult() - async.Release() - ``` + // Blocking and waiting for the execution and get the return values. + res, err := async.GetResult() + async.Release() + ``` 2. Wait for the asynchronous execution with timeout settings - Besides waiting until the end of execution, developers can set the timeout to wait for. - - ```go - async := ... // Ignored. Asynchronous execute a function. - - // Blocking and waiting for the execution with the timeout(ms). - isend := async.WaitFor(1000) - if isend { - res, err := async.GetResult() - // ... - } else { - async.Cancel() - _, err := async.GetResult() - // The error message in `err` will be "execution interrupted". - } - async.Release() - ``` + Besides waiting until the end of execution, developers can set the timeout to wait for. + + ```go + async := ... // Ignored. Asynchronous execute a function. + + // Blocking and waiting for the execution with the timeout(ms). + isend := async.WaitFor(1000) + if isend { + res, err := async.GetResult() + // ... + } else { + async.Cancel() + _, err := async.GetResult() + // The error message in `err` will be "execution interrupted". + } + async.Release() + ``` ### Configurations @@ -446,168 +446,168 @@ The configuration object, `wasmedge.Configure`, manages the configurations for ` 1. Proposals - WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` object. - - ```go - const ( - IMPORT_EXPORT_MUT_GLOBALS = Proposal(C.WasmEdge_Proposal_ImportExportMutGlobals) - NON_TRAP_FLOAT_TO_INT_CONVERSIONS = Proposal(C.WasmEdge_Proposal_NonTrapFloatToIntConversions) - SIGN_EXTENSION_OPERATORS = Proposal(C.WasmEdge_Proposal_SignExtensionOperators) - MULTI_VALUE = Proposal(C.WasmEdge_Proposal_MultiValue) - BULK_MEMORY_OPERATIONS = Proposal(C.WasmEdge_Proposal_BulkMemoryOperations) - REFERENCE_TYPES = Proposal(C.WasmEdge_Proposal_ReferenceTypes) - SIMD = Proposal(C.WasmEdge_Proposal_SIMD) - TAIL_CALL = Proposal(C.WasmEdge_Proposal_TailCall) - ANNOTATIONS = Proposal(C.WasmEdge_Proposal_Annotations) - MEMORY64 = Proposal(C.WasmEdge_Proposal_Memory64) - EXCEPTION_HANDLING = Proposal(C.WasmEdge_Proposal_ExceptionHandling) - EXTENDED_CONST = Proposal(C.WasmEdge_Proposal_ExtendedConst) - THREADS = Proposal(C.WasmEdge_Proposal_Threads) - FUNCTION_REFERENCES = Proposal(C.WasmEdge_Proposal_FunctionReferences) - ) - ``` - - Developers can add or remove the proposals into the `Configure` object. - - ```go - // By default, the following proposals have turned on initially: - // * IMPORT_EXPORT_MUT_GLOBALS - // * NON_TRAP_FLOAT_TO_INT_CONVERSIONS - // * SIGN_EXTENSION_OPERATORS - // * MULTI_VALUE - // * BULK_MEMORY_OPERATIONS - // * REFERENCE_TYPES - // * SIMD - // For the current WasmEdge version, the following proposals are supported: - // * TAIL_CALL - // * MULTI_MEMORIES - // * THREADS - // * EXTENDED_CONST - conf := wasmedge.NewConfigure() - // Developers can also pass the proposals as parameters: - // conf := wasmedge.NewConfigure(wasmedge.SIMD, wasmedge.BULK_MEMORY_OPERATIONS) - conf.AddConfig(wasmedge.SIMD) - conf.RemoveConfig(wasmedge.REFERENCE_TYPES) - is_bulkmem := conf.HasConfig(wasmedge.BULK_MEMORY_OPERATIONS) - // The `is_bulkmem` will be `true`. - conf.Release() - ``` + WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` object. + + ```go + const ( + IMPORT_EXPORT_MUT_GLOBALS = Proposal(C.WasmEdge_Proposal_ImportExportMutGlobals) + NON_TRAP_FLOAT_TO_INT_CONVERSIONS = Proposal(C.WasmEdge_Proposal_NonTrapFloatToIntConversions) + SIGN_EXTENSION_OPERATORS = Proposal(C.WasmEdge_Proposal_SignExtensionOperators) + MULTI_VALUE = Proposal(C.WasmEdge_Proposal_MultiValue) + BULK_MEMORY_OPERATIONS = Proposal(C.WasmEdge_Proposal_BulkMemoryOperations) + REFERENCE_TYPES = Proposal(C.WasmEdge_Proposal_ReferenceTypes) + SIMD = Proposal(C.WasmEdge_Proposal_SIMD) + TAIL_CALL = Proposal(C.WasmEdge_Proposal_TailCall) + ANNOTATIONS = Proposal(C.WasmEdge_Proposal_Annotations) + MEMORY64 = Proposal(C.WasmEdge_Proposal_Memory64) + EXCEPTION_HANDLING = Proposal(C.WasmEdge_Proposal_ExceptionHandling) + EXTENDED_CONST = Proposal(C.WasmEdge_Proposal_ExtendedConst) + THREADS = Proposal(C.WasmEdge_Proposal_Threads) + FUNCTION_REFERENCES = Proposal(C.WasmEdge_Proposal_FunctionReferences) + ) + ``` + + Developers can add or remove the proposals into the `Configure` object. + + ```go + // By default, the following proposals have turned on initially: + // * IMPORT_EXPORT_MUT_GLOBALS + // * NON_TRAP_FLOAT_TO_INT_CONVERSIONS + // * SIGN_EXTENSION_OPERATORS + // * MULTI_VALUE + // * BULK_MEMORY_OPERATIONS + // * REFERENCE_TYPES + // * SIMD + // For the current WasmEdge version, the following proposals are supported: + // * TAIL_CALL + // * MULTI_MEMORIES + // * THREADS + // * EXTENDED_CONST + conf := wasmedge.NewConfigure() + // Developers can also pass the proposals as parameters: + // conf := wasmedge.NewConfigure(wasmedge.SIMD, wasmedge.BULK_MEMORY_OPERATIONS) + conf.AddConfig(wasmedge.SIMD) + conf.RemoveConfig(wasmedge.REFERENCE_TYPES) + is_bulkmem := conf.HasConfig(wasmedge.BULK_MEMORY_OPERATIONS) + // The `is_bulkmem` will be `true`. + conf.Release() + ``` 2. Host registrations - This configuration is used for the `VM` context to turn on the `WASI` supports and only effective in `VM` contexts. + This configuration is used for the `VM` context to turn on the `WASI` supports and only effective in `VM` contexts. - The element of this enum is reserved for the other built-in host functions (such as `wasi-socket`) in the future. + The element of this enum is reserved for the other built-in host functions (such as `wasi-socket`) in the future. - ```go - const ( - WASI = HostRegistration(C.WasmEdge_HostRegistration_Wasi) - ) - ``` + ```go + const ( + WASI = HostRegistration(C.WasmEdge_HostRegistration_Wasi) + ) + ``` - The details will be introduced in the [preregistrations of VM context](#built-in-host-modules-and-plug-in-preregistrations). + The details will be introduced in the [preregistrations of VM context](#built-in-host-modules-and-plug-in-preregistrations). - ```go - conf := wasmedge.NewConfigure() - // Developers can also pass the proposals as parameters: - // conf := wasmedge.NewConfigure(wasmedge.WASI) - conf.AddConfig(wasmedge.WASI) - conf.Release() - ``` + ```go + conf := wasmedge.NewConfigure() + // Developers can also pass the proposals as parameters: + // conf := wasmedge.NewConfigure(wasmedge.WASI) + conf.AddConfig(wasmedge.WASI) + conf.Release() + ``` 3. Maximum memory pages - Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` objects. + Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` objects. - ```go - conf := wasmedge.NewConfigure() + ```go + conf := wasmedge.NewConfigure() - pagesize := conf.GetMaxMemoryPage() - // By default, the maximum memory page size in each memory instances is 65536. - conf.SetMaxMemoryPage(1234) - pagesize = conf.GetMaxMemoryPage() - // `pagesize` will be 1234. + pagesize := conf.GetMaxMemoryPage() + // By default, the maximum memory page size in each memory instances is 65536. + conf.SetMaxMemoryPage(1234) + pagesize = conf.GetMaxMemoryPage() + // `pagesize` will be 1234. - conf.Release() - ``` + conf.Release() + ``` 4. Forcibly interpreter mode - If developers want to execute the WASM file or the AOT compiled WASM in interpreter mode forcibly, they can turn on the configuration. + If developers want to execute the WASM file or the AOT compiled WASM in interpreter mode forcibly, they can turn on the configuration. - ```go - conf := wasmedge.NewConfigure() + ```go + conf := wasmedge.NewConfigure() - is_forceinterp := conf.IsForceInterpreter() - // By default, the `is_forceinterp` will be `false`. - conf.SetForceInterpreter(true) - is_forceinterp = conf.IsForceInterpreter() - /* The `is_forceinterp` will be `true`. */ + is_forceinterp := conf.IsForceInterpreter() + // By default, the `is_forceinterp` will be `false`. + conf.SetForceInterpreter(true) + is_forceinterp = conf.IsForceInterpreter() + /* The `is_forceinterp` will be `true`. */ - conf.Release() - ``` + conf.Release() + ``` 5. AOT compiler options - The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. - - ```go - const ( - // Disable as many optimizations as possible. - CompilerOptLevel_O0 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O0) - // Optimize quickly without destroying debuggability. - CompilerOptLevel_O1 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O1) - // Optimize for fast execution as much as possible without triggering significant incremental compile time or code size growth. - CompilerOptLevel_O2 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O2) - // Optimize for fast execution as much as possible. - CompilerOptLevel_O3 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O3) - // Optimize for small code size as much as possible without triggering significant incremental compile time or execution time slowdowns. - CompilerOptLevel_Os = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Os) - // Optimize for small code size as much as possible. - CompilerOptLevel_Oz = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Oz) - ) - - const ( - // Native dynamic library format. - CompilerOutputFormat_Native = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Native) - // WebAssembly with AOT compiled codes in custom section. - CompilerOutputFormat_Wasm = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Wasm) - ) - ``` - - These configurations are only effective in `Compiler` contexts. - - ```go - conf := wasmedge.NewConfigure() - - // By default, the optimization level is O3. - conf.SetCompilerOptimizationLevel(wasmedge.CompilerOptLevel_O2) - // By default, the output format is universal WASM. - conf.SetCompilerOutputFormat(wasmedge.CompilerOutputFormat_Native) - // By default, the dump IR is `false`. - conf.SetCompilerDumpIR(true) - // By default, the generic binary is `false`. - conf.SetCompilerGenericBinary(true) - - conf.Release() - ``` + The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. + + ```go + const ( + // Disable as many optimizations as possible. + CompilerOptLevel_O0 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O0) + // Optimize quickly without destroying debuggability. + CompilerOptLevel_O1 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O1) + // Optimize for fast execution as much as possible without triggering significant incremental compile time or code size growth. + CompilerOptLevel_O2 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O2) + // Optimize for fast execution as much as possible. + CompilerOptLevel_O3 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O3) + // Optimize for small code size as much as possible without triggering significant incremental compile time or execution time slowdowns. + CompilerOptLevel_Os = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Os) + // Optimize for small code size as much as possible. + CompilerOptLevel_Oz = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Oz) + ) + + const ( + // Native dynamic library format. + CompilerOutputFormat_Native = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Native) + // WebAssembly with AOT compiled codes in custom section. + CompilerOutputFormat_Wasm = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Wasm) + ) + ``` + + These configurations are only effective in `Compiler` contexts. + + ```go + conf := wasmedge.NewConfigure() + + // By default, the optimization level is O3. + conf.SetCompilerOptimizationLevel(wasmedge.CompilerOptLevel_O2) + // By default, the output format is universal WASM. + conf.SetCompilerOutputFormat(wasmedge.CompilerOutputFormat_Native) + // By default, the dump IR is `false`. + conf.SetCompilerDumpIR(true) + // By default, the generic binary is `false`. + conf.SetCompilerGenericBinary(true) + + conf.Release() + ``` 6. Statistics options - The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` objects. + The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` objects. - ```go - conf := wasmedge.NewConfigure() + ```go + conf := wasmedge.NewConfigure() - // By default, the instruction counting is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsInstructionCounting(true) - // By default, the cost measurement is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsTimeMeasuring(true) - // By default, the time measurement is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsCostMeasuring(true) + // By default, the instruction counting is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsInstructionCounting(true) + // By default, the cost measurement is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsTimeMeasuring(true) + // By default, the time measurement is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsCostMeasuring(true) - conf.Release() - ``` + conf.Release() + ``` ### Statistics @@ -617,46 +617,46 @@ Before using statistics, the statistics configuration must be set. Otherwise, th 1. Instruction counter - The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` object from the `VM` object, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. + The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` object from the `VM` object, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. - ```go - stat := wasmedge.NewStatistics() - // ... After running the WASM functions with the `Statistics` object + ```go + stat := wasmedge.NewStatistics() + // ... After running the WASM functions with the `Statistics` object - count := stat.GetInstrCount() - ips := stat.GetInstrPerSecond() - stat.Release() - ``` + count := stat.GetInstrCount() + ips := stat.GetInstrPerSecond() + stat.Release() + ``` 2. Cost table - The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` object. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. - - ```c - stat := wasmedge.NewStatistics() - - costtable := []uint64{ - 0, 0, - 10, /* 0x02: Block */ - 11, /* 0x03: Loop */ - 12, /* 0x04: If */ - 12, /* 0x05: Else */ - 0, 0, 0, 0, 0, 0, - 20, /* 0x0C: Br */ - 21, /* 0x0D: Br_if */ - 22, /* 0x0E: Br_table */ - 0, - } - // Developers can set the costs of each instruction. The value not covered will be 0. - - WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); - stat.SetCostTable() - stat.SetCostLimit(5000000) - - // ... After running the WASM functions with the `Statistics` object - cost := stat.GetTotalCost() - stat.Release() - ``` + The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` object. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. + + ```c + stat := wasmedge.NewStatistics() + + costtable := []uint64{ + 0, 0, + 10, /* 0x02: Block */ + 11, /* 0x03: Loop */ + 12, /* 0x04: If */ + 12, /* 0x05: Else */ + 0, 0, 0, 0, 0, 0, + 20, /* 0x0C: Br */ + 21, /* 0x0D: Br_if */ + 22, /* 0x0E: Br_table */ + 0, + } + // Developers can set the costs of each instruction. The value not covered will be 0. + + WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); + stat.SetCostTable() + stat.SetCostLimit(5000000) + + // ... After running the WASM functions with the `Statistics` object + cost := stat.GetTotalCost() + stat.Release() + ``` ### Tools Driver @@ -716,157 +716,157 @@ The following shows the example of running the WASM for getting the Fibonacci. T 1. Run WASM functions rapidly - Create a new Go project first: + Create a new Go project first: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current `wasmedge_test` directory, and create and edit the Go file `main.go` as following: + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current `wasmedge_test` directory, and create and edit the Go file `main.go` as following: - ```go - package main + ```go + package main - import ( - "fmt" + import ( + "fmt" - "github.com/second-state/WasmEdge-go/wasmedge" - ) + "github.com/second-state/WasmEdge-go/wasmedge" + ) - func main() { - // Set the logging level. - wasmedge.SetLogErrorLevel() - - // Create the configure context and add the WASI support. - // This step is not necessary unless you need WASI support. - conf := wasmedge.NewConfigure(wasmedge.WASI) - // Create VM with the configure. - vm := wasmedge.NewVMWithConfig(conf) - - res, err := vm.RunWasmFile("fibonacci.wasm", "fib", uint32(21)) - if err == nil { - fmt.Println("Get fibonacci[21]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - vm.Release() - conf.Release() - } - ``` - - Then you can build and run the Golang application with the WasmEdge Golang SDK: (the 21 Fibonacci number is 17711 in 0-based index) - - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 - $ go build - $ ./wasmedge_test - Get fibonacci[21]: 17711 - ``` + func main() { + // Set the logging level. + wasmedge.SetLogErrorLevel() -2. Instantiate and run WASM functions manually + // Create the configure context and add the WASI support. + // This step is not necessary unless you need WASI support. + conf := wasmedge.NewConfigure(wasmedge.WASI) + // Create VM with the configure. + vm := wasmedge.NewVMWithConfig(conf) - Besides the above example, developers can run the WASM functions step-by-step with `VM` object APIs: + res, err := vm.RunWasmFile("fibonacci.wasm", "fib", uint32(21)) + if err == nil { + fmt.Println("Get fibonacci[21]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - // Set the logging level. - wasmedge.SetLogErrorLevel() - - // Create VM. - vm := wasmedge.NewVM() - var err error - var res []interface{} - - // Step 1: Load WASM file. - err = vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - // Developers can load, validate, and instantiate another WASM module - // to replace the instantiated one. In this case, the old module will - // be cleared, but the registered modules are still kept. - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // Step 4: Execute WASM functions. Parameters: (funcname, args...) - res, err = vm.Execute("fib", uint32(25)) - // Developers can execute functions repeatedly after instantiation. - if err == nil { - fmt.Println("Get fibonacci[25]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - vm.Release() - } - ``` + vm.Release() + conf.Release() + } + ``` - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + Then you can build and run the Golang application with the WasmEdge Golang SDK: (the 21 Fibonacci number is 17711 in 0-based index) - ```bash - $ go build - $ ./wasmedge_test - Get fibonacci[25]: 121393 - ``` + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 + $ go build + $ ./wasmedge_test + Get fibonacci[21]: 17711 + ``` - The following graph explains the status of the `VM` object. - - ```text - |========================| - |------->| VM: Initiated | - | |========================| - | | - | LoadWasm - | | - | v - | |========================| - |--------| VM: Loaded |<-------| - | |========================| | - | | ^ | - | Validate | | - Cleanup | LoadWasm | - | v | LoadWasm - | |========================| | - |--------| VM: Validated | | - | |========================| | - | | ^ | - | Instantiate | | - | | RegisterModule | - | v | | - | |========================| | - |--------| VM: Instantiated |--------| - |========================| - | ^ - | | - -------------- - Instantiate, Execute, ExecuteRegistered, - ExecuteBindgen, ExecuteBindgenRegistered - ``` +2. Instantiate and run WASM functions manually - The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or import objects in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. + Besides the above example, developers can run the WASM functions step-by-step with `VM` object APIs: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + func main() { + // Set the logging level. + wasmedge.SetLogErrorLevel() + + // Create VM. + vm := wasmedge.NewVM() + var err error + var res []interface{} + + // Step 1: Load WASM file. + err = vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } + + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + // Developers can load, validate, and instantiate another WASM module + // to replace the instantiated one. In this case, the old module will + // be cleared, but the registered modules are still kept. + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // Step 4: Execute WASM functions. Parameters: (funcname, args...) + res, err = vm.Execute("fib", uint32(25)) + // Developers can execute functions repeatedly after instantiation. + if err == nil { + fmt.Println("Get fibonacci[25]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } + + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go build + $ ./wasmedge_test + Get fibonacci[25]: 121393 + ``` + + The following graph explains the status of the `VM` object. + + ```text + |========================| + |------->| VM: Initiated | + | |========================| + | | + | LoadWasm + | | + | v + | |========================| + |--------| VM: Loaded |<-------| + | |========================| | + | | ^ | + | Validate | | + Cleanup | LoadWasm | + | v | LoadWasm + | |========================| | + |--------| VM: Validated | | + | |========================| | + | | ^ | + | Instantiate | | + | | RegisterModule | + | v | | + | |========================| | + |--------| VM: Instantiated |--------| + |========================| + | ^ + | | + -------------- + Instantiate, Execute, ExecuteRegistered, + ExecuteBindgen, ExecuteBindgenRegistered + ``` + + The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or import objects in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. ### VM Creations @@ -902,65 +902,65 @@ WasmEdge provides the following built-in host modules and plug-in pre-registrati 1. [WASI (WebAssembly System Interface)](https://github.com/WebAssembly/WASI) - Developers can turn on the WASI support for VM in the `Configure` object. + Developers can turn on the WASI support for VM in the `Configure` object. - ```go - conf := wasmedge.NewConfigure(wasmedge.WASI) - // Or you can set the `wasmedge.WASI` into the configure object through `(*Configure).AddConfig`. - vm := wasmedge.NewVMWithConfig(conf) - conf.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WASI) + // Or you can set the `wasmedge.WASI` into the configure object through `(*Configure).AddConfig`. + vm := wasmedge.NewVMWithConfig(conf) + conf.Release() - // The following API can retrieve the built-in registered module instances from the VM object. - // This API will return `nil` if the corresponding configuration is not set when creating the VM object. - wasiconf := vm.GetImportModule(wasmedge.WASI) - // Initialize the WASI. - wasiconf.InitWasi(/* ... ignored */) + // The following API can retrieve the built-in registered module instances from the VM object. + // This API will return `nil` if the corresponding configuration is not set when creating the VM object. + wasiconf := vm.GetImportModule(wasmedge.WASI) + // Initialize the WASI. + wasiconf.InitWasi(/* ... ignored */) - vm.Release() - ``` + vm.Release() + ``` - And also can create the WASI import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 2. Plug-ins - There may be several plug-ins in the default plug-in paths if users [installed WasmEdge plug-ins by the installer](/contribute/internal.md#plugins). + There may be several plug-ins in the default plug-in paths if users [installed WasmEdge plug-ins by the installer](/contribute/internal.md#plugins). - Before using the plug-ins, developers should [load the plug-ins from paths](#load-plug-ins-from-paths). + Before using the plug-ins, developers should [load the plug-ins from paths](#load-plug-ins-from-paths). - The `VM` object will automatically create and register the module of the loaded plug-ins when creation. Furthermore, the following host modules will be mocked if the plug-in not loaded: + The `VM` object will automatically create and register the module of the loaded plug-ins when creation. Furthermore, the following host modules will be mocked if the plug-in not loaded: - - `wasi_ephemeral_crypto_asymmetric_common` (for the `WASI-Crypto`) - - `wasi_ephemeral_crypto_common` (for the `WASI-Crypto`) - - `wasi_ephemeral_crypto_kx` (for the `WASI-Crypto`) - - `wasi_ephemeral_crypto_signatures` (for the `WASI-Crypto`) - - `wasi_ephemeral_crypto_symmetric` (for the `WASI-Crypto`) - - `wasi_ephemeral_nn` - - `wasi_snapshot_preview1` - - `wasmedge_httpsreq` - - `wasmedge_process` + - `wasi_ephemeral_crypto_asymmetric_common` (for the `WASI-Crypto`) + - `wasi_ephemeral_crypto_common` (for the `WASI-Crypto`) + - `wasi_ephemeral_crypto_kx` (for the `WASI-Crypto`) + - `wasi_ephemeral_crypto_signatures` (for the `WASI-Crypto`) + - `wasi_ephemeral_crypto_symmetric` (for the `WASI-Crypto`) + - `wasi_ephemeral_nn` + - `wasi_snapshot_preview1` + - `wasmedge_httpsreq` + - `wasmedge_process` - When the WASM want to invoke these host functions but the corresponding plug-in not installed, WasmEdge will print the error message and return an error. + When the WASM want to invoke these host functions but the corresponding plug-in not installed, WasmEdge will print the error message and return an error. - ```go - // Load the plug-ins in the default paths first. - wasmedge.LoadPluginDefaultPaths() + ```go + // Load the plug-ins in the default paths first. + wasmedge.LoadPluginDefaultPaths() - // Create the VM object with the WASI configuration. - conf := wasmedge.NewConfigure(wasmedge.WASI) - vm := wasmedge.NewVMWithConfig(conf) - conf.Release() + // Create the VM object with the WASI configuration. + conf := wasmedge.NewConfigure(wasmedge.WASI) + vm := wasmedge.NewVMWithConfig(conf) + conf.Release() - // The following API can retrieve the registered modules in the VM objects, includes the built-in WASI and the plug-ins. - // This API will return `NULL` if the module instance not found. + // The following API can retrieve the registered modules in the VM objects, includes the built-in WASI and the plug-ins. + // This API will return `NULL` if the module instance not found. - // The `wasimodule` will not be `nil` because the configuration was set. - wasimodule := vm.GetRegisteredModule("wasi_snapshot_preview1") + // The `wasimodule` will not be `nil` because the configuration was set. + wasimodule := vm.GetRegisteredModule("wasi_snapshot_preview1") - // The `wasinnmodule` will not be `nil` even if the wasi_nn plug-in is not installed, because the VM context will mock and register the host modules. - wasinnmodule := vm.GetRegisteredModule("wasi_ephemeral_nn") + // The `wasinnmodule` will not be `nil` even if the wasi_nn plug-in is not installed, because the VM context will mock and register the host modules. + wasinnmodule := vm.GetRegisteredModule("wasi_ephemeral_nn") - vm.Release() - ``` + vm.Release() + ``` ### Host Module Registrations @@ -985,211 +985,211 @@ In WebAssembly, the instances in WASM modules can be exported and can be importe 1. Register the WASM modules with exported module names - Unless the import objects have already contained the module names, every WASM module should be named uniquely when registering. The following shows the example. + Unless the import objects have already contained the module names, every WASM module should be named uniquely when registering. The following shows the example. - Create a new Go project first: + Create a new Go project first: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. Then create and edit the Go file `main.go` as following: + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. Then create and edit the Go file `main.go` as following: - ```go - package main + ```go + package main - import "github.com/second-state/WasmEdge-go/wasmedge" + import "github.com/second-state/WasmEdge-go/wasmedge" - func main() { - // Create VM. - vm := wasmedge.NewVM() + func main() { + // Create VM. + vm := wasmedge.NewVM() - var err error - err = vm.RegisterWasmFile("module_name", "fibonacci.wasm") - // Developers can register the WASM module from `[]byte` with the - // `(*VM).RegisterWasmBuffer` function, or from `AST` object with - // the `(*VM).RegisterAST` function. - // The result status should be checked. The error will occur if the - // WASM module instantiation failed or the module name conflicts. + var err error + err = vm.RegisterWasmFile("module_name", "fibonacci.wasm") + // Developers can register the WASM module from `[]byte` with the + // `(*VM).RegisterWasmBuffer` function, or from `AST` object with + // the `(*VM).RegisterAST` function. + // The result status should be checked. The error will occur if the + // WASM module instantiation failed or the module name conflicts. - vm.Release() - } - ``` + vm.Release() + } + ``` 2. Execute the functions in registered WASM modules - Edit the Go file `main.go` as following: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - // Create VM. - vm := wasmedge.NewVM() - - var res []interface{} - var err error - // Register the WASM module from file into VM with the module name "mod". - err = vm.RegisterWasmFile("mod", "fibonacci.wasm") - // Developers can register the WASM module from `[]byte` with the - // `(*VM).RegisterWasmBuffer` function, or from `AST` object with - // the `(*VM).RegisterAST` function. - if err != nil { - fmt.Println("WASM registration failed:", err.Error()) - return - } - // The function "fib" in the "fibonacci.wasm" was exported with the module - // name "mod". As the same as host functions, other modules can import the - // function `"mod" "fib"`. - - // Execute WASM functions in registered modules. - // Unlike the execution of functions, the registered functions can be - // invoked without `(*VM).Instantiate` because the WASM module was - // instantiated when registering. - // Developers can also invoke the host functions directly with this API. - res, err = vm.ExecuteRegistered("mod", "fib", int32(25)) - if err == nil { - fmt.Println("Get fibonacci[25]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - vm.Release() - } - ``` - - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) - - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 - $ go build - $ ./wasmedge_test - Get fibonacci[25]: 121393 - ``` + Edit the Go file `main.go` as following: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + func main() { + // Create VM. + vm := wasmedge.NewVM() + + var res []interface{} + var err error + // Register the WASM module from file into VM with the module name "mod". + err = vm.RegisterWasmFile("mod", "fibonacci.wasm") + // Developers can register the WASM module from `[]byte` with the + // `(*VM).RegisterWasmBuffer` function, or from `AST` object with + // the `(*VM).RegisterAST` function. + if err != nil { + fmt.Println("WASM registration failed:", err.Error()) + return + } + // The function "fib" in the "fibonacci.wasm" was exported with the module + // name "mod". As the same as host functions, other modules can import the + // function `"mod" "fib"`. + + // Execute WASM functions in registered modules. + // Unlike the execution of functions, the registered functions can be + // invoked without `(*VM).Instantiate` because the WASM module was + // instantiated when registering. + // Developers can also invoke the host functions directly with this API. + res, err = vm.ExecuteRegistered("mod", "fib", int32(25)) + if err == nil { + fmt.Println("Get fibonacci[25]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } + + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 + $ go build + $ ./wasmedge_test + Get fibonacci[25]: 121393 + ``` ### Asynchronous Execution 1. Asynchronously run WASM functions rapidly - Assume that a new Go project is created as following: - - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` - - Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: + Assume that a new Go project is created as following: - ```go - package main + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - import ( - "fmt" + Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: - "github.com/second-state/WasmEdge-go/wasmedge" - ) + ```go + package main - func main() { - // Create VM. - vm := wasmedge.NewVM() - - // Asynchronously run the WASM function from file and get the `wasmedge.Async` object. - async := vm.AsyncRunWasmFile("fibonacci.wasm", "fib", uint32(20)) - - // Block and wait for the execution and get the results. - res, err := async.GetResult() - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - async.Release() - vm.Release() - } - ``` + import ( + "fmt" - Then you can build and run: (the 20th Fibonacci number is 10946 in 0-based index) + "github.com/second-state/WasmEdge-go/wasmedge" + ) - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 - $ go build - $ ./wasmedge_test - Get the result: 10946 - ``` + func main() { + // Create VM. + vm := wasmedge.NewVM() -2. Instantiate and asynchronously run WASM functions manually + // Asynchronously run the WASM function from file and get the `wasmedge.Async` object. + async := vm.AsyncRunWasmFile("fibonacci.wasm", "fib", uint32(20)) - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + // Block and wait for the execution and get the results. + res, err := async.GetResult() + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + async.Release() + vm.Release() + } + ``` - ```go - package main + Then you can build and run: (the 20th Fibonacci number is 10946 in 0-based index) - import ( - "fmt" + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 + $ go build + $ ./wasmedge_test + Get the result: 10946 + ``` - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - var err error - var res []interface{} - - // Create VM. - vm := wasmedge.NewVM() - - // Step 1: Load WASM file. - // Developers can load the WASM binary from buffer with the `(*VM).LoadWasmBuffer()` API, - // or from `wasmedge.AST` object with the `(*VM).LoadWasmAST()` API. - err := vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // Step 4: Asynchronously execute the WASM function and get the `wasmedge.Async` object. - async := vm.AsyncExecute("fib", uint32(25)) - - // Block and wait for the execution and get the results. - res, err := async.GetResult() - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - async.Release() - vm.Release() - } - ``` - - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) +2. Instantiate and asynchronously run WASM functions manually - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 - $ go build - $ ./wasmedge_test - Get the result: 121393 - ``` + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + func main() { + var err error + var res []interface{} + + // Create VM. + vm := wasmedge.NewVM() + + // Step 1: Load WASM file. + // Developers can load the WASM binary from buffer with the `(*VM).LoadWasmBuffer()` API, + // or from `wasmedge.AST` object with the `(*VM).LoadWasmAST()` API. + err := vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } + + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // Step 4: Asynchronously execute the WASM function and get the `wasmedge.Async` object. + async := vm.AsyncExecute("fib", uint32(25)) + + // Block and wait for the execution and get the results. + res, err := async.GetResult() + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + async.Release() + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 + $ go build + $ ./wasmedge_test + Get the result: 121393 + ``` ### Instance Tracing @@ -1197,148 +1197,148 @@ Sometimes the developers may have requirements to get the instances of the WASM 1. Store - If the `VM` object is created without assigning a `Store` object, the `VM` context will allocate and own a `Store`. + If the `VM` object is created without assigning a `Store` object, the `VM` context will allocate and own a `Store`. - ```go - vm := wasmedge.NewVM() - store := vm.GetStore() - // The object should __NOT__ be deleted by calling `(*Store).Release`. - vm.Release() - ``` + ```go + vm := wasmedge.NewVM() + store := vm.GetStore() + // The object should __NOT__ be deleted by calling `(*Store).Release`. + vm.Release() + ``` - Developers can also create the `VM` object with a `Store` object. In this case, developers should guarantee that the `Store` object cannot be released before the `VM` object. Please refer to the [Store Objects](#store) for the details about the `Store` APIs. + Developers can also create the `VM` object with a `Store` object. In this case, developers should guarantee that the `Store` object cannot be released before the `VM` object. Please refer to the [Store Objects](#store) for the details about the `Store` APIs. - ```go - store := wasmedge.NewStore() - vm := wasmedge.NewVMWithStore(store) + ```go + store := wasmedge.NewStore() + vm := wasmedge.NewVMWithStore(store) - storemock := vm.GetStore() - // The internal store context of the `store` and the `storemock` are the same. + storemock := vm.GetStore() + // The internal store context of the `store` and the `storemock` are the same. - vm.Release() - store.Release() - ``` + vm.Release() + store.Release() + ``` 2. List exported functions - After the WASM module instantiation, developers can use the `(*VM).Execute` function to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. + After the WASM module instantiation, developers can use the `(*VM).Execute` function to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. - Assume that a new Go project is created as following: + Assume that a new Go project is created as following: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: + Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: - ```go - package main + ```go + package main - import ( - "fmt" + import ( + "fmt" - "github.com/second-state/WasmEdge-go/wasmedge" - ) + "github.com/second-state/WasmEdge-go/wasmedge" + ) - func main() { - // Create VM. - vm := wasmedge.NewVM() - - // Step 1: Load WASM file. - err := vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // List the exported functions for the names and function types. - funcnames, functypes := vm.GetFunctionList() - for _, fname := range funcnames { - fmt.Println("Exported function name:", fname) - } - for _, ftype := range functypes { - // `ftype` is the `FunctionType` object of the same index in the `funcnames` array. - // Developers should __NOT__ call the `ftype.Release()`. - } - - vm.Release() - } - ``` + func main() { + // Create VM. + vm := wasmedge.NewVM() - Then you can build and run: (the only exported function in `fibonacci.wasm` is `fib`) + // Step 1: Load WASM file. + err := vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 - $ go build - $ ./wasmedge_test - Exported function name: fib - ``` + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // List the exported functions for the names and function types. + funcnames, functypes := vm.GetFunctionList() + for _, fname := range funcnames { + fmt.Println("Exported function name:", fname) + } + for _, ftype := range functypes { + // `ftype` is the `FunctionType` object of the same index in the `funcnames` array. + // Developers should __NOT__ call the `ftype.Release()`. + } - If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` object from the `VM` object and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. + vm.Release() + } + ``` + + Then you can build and run: (the only exported function in `fibonacci.wasm` is `fib`) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 + $ go build + $ ./wasmedge_test + Exported function name: fib + ``` + + If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` object from the `VM` object and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. 3. Get function types - The `VM` object provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. + The `VM` object provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. - ```go - // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. - functype := vm.GetFunctionType("fib") - // Developers can get the function types of functions in the registered modules via the - // `(*VM).GetFunctionTypeRegistered` API with the function name and the module name. - // If the function is not found, these APIs will return `nil`. - // Developers should __NOT__ call the `(*FunctionType).Release` function of the returned object. - ``` + ```go + // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. + functype := vm.GetFunctionType("fib") + // Developers can get the function types of functions in the registered modules via the + // `(*VM).GetFunctionTypeRegistered` API with the function name and the module name. + // If the function is not found, these APIs will return `nil`. + // Developers should __NOT__ call the `(*FunctionType).Release` function of the returned object. + ``` 4. Get the active module - After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` object. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `(*VM).GetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. + After the WASM module instantiation, an anonymous module is instantiated and owned by the `VM` object. Developers may need to retrieve it to get the instances beyond the module. Then developers can use the `(*VM).GetActiveModule()` API to get that anonymous module instance. Please refer to the [Module instance](#instances) for the details about the module instance APIs. - ```go - // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. - mod := vm.GetActiveModule() - // If there's no WASM module instantiated, this API will return `nil`. - // Developers should __NOT__ call the `(*Module).Release` function of the returned module instance. - ``` + ```go + // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. + mod := vm.GetActiveModule() + // If there's no WASM module instantiated, this API will return `nil`. + // Developers should __NOT__ call the `(*Module).Release` function of the returned module instance. + ``` 5. List and get the registered modules - To list and retrieve the registered modules in the `VM` object, besides accessing the `store` object of the `VM`, developers can use the following APIs. + To list and retrieve the registered modules in the `VM` object, besides accessing the `store` object of the `VM`, developers can use the following APIs. - ```go - // Assume that the `vm` is the created `wasmedge.VM` object. - modnames := vm.ListRegisteredModule() - for _, name := range modnames { - fmt.Println("Registered module name: ", name) - } - ``` + ```go + // Assume that the `vm` is the created `wasmedge.VM` object. + modnames := vm.ListRegisteredModule() + for _, name := range modnames { + fmt.Println("Registered module name: ", name) + } + ``` 6. Get the components - The `VM` object is composed by the `Loader`, `Validator`, and `Executor` objects. For the developers who want to use these objects without creating another instances, these APIs can help developers to get them from the `VM` object. The get objects are owned by the `VM` object, and developers should not call their release functions. + The `VM` object is composed by the `Loader`, `Validator`, and `Executor` objects. For the developers who want to use these objects without creating another instances, these APIs can help developers to get them from the `VM` object. The get objects are owned by the `VM` object, and developers should not call their release functions. - ```go - loader := vm.GetLoader() - // Developers should __NOT__ call the `(*Loader).Release` function of the returned object. - validator := vm.GetValidator() - // Developers should __NOT__ call the `(*Validator).Release` function of the returned object. - executor := vm.GetExecutor() - // Developers should __NOT__ call the `(*Executor).Release` function of the returned object. - ``` + ```go + loader := vm.GetLoader() + // Developers should __NOT__ call the `(*Loader).Release` function of the returned object. + validator := vm.GetValidator() + // Developers should __NOT__ call the `(*Validator).Release` function of the returned object. + executor := vm.GetExecutor() + // Developers should __NOT__ call the `(*Executor).Release` function of the returned object. + ``` ## WasmEdge Runtime @@ -1526,119 +1526,119 @@ The `Executor` object is the executor for both WASM and compiled-WASM. This obje 1. Instantiate and register an `AST` object as a named `Module` instance - As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` objects, developers can instantiate and register an `AST` objects into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Register the loaded WASM `ast` into store with the export module name "mod". - mod, res := executor.Register(store, ast, "mod") - if err != nil { - fmt.Println("WASM registration FAILED:", err.Error()) - return - } - - // ... - - // Resources deallocations. - executor.Release() - stat.Release() - store.Release() - mod.Release() - ``` + As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` objects, developers can instantiate and register an `AST` objects into the `Store` context as a named `Module` instance by the `Executor` APIs. After the registration, the result `Module` instance is exported with the given module name and can be linked when instantiating another module. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Register the loaded WASM `ast` into store with the export module name "mod". + mod, res := executor.Register(store, ast, "mod") + if err != nil { + fmt.Println("WASM registration FAILED:", err.Error()) + return + } + + // ... + + // Resources deallocations. + executor.Release() + stat.Release() + store.Release() + mod.Release() + ``` 2. Register an existing `Module` instance and export the module name - Besides instantiating and registering an `AST` object, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Create a module instance for host functions. - mod := wasmedge.NewModule("mod") - // ... - // Create and add the host functions, tables, memories, and globals into the module instance. - // ... - - // Register the module instance into store with the exported module name. - // The export module name is in the module instance already. - res := executor.RegisterImport(store, mod) - if err != nil { - fmt.Println("WASM registration FAILED:", err.Error()) - return - } - - // ... - - // Resources deallocations. - executor.Release() - stat.Release() - store.Release() - mod.Release() - ``` + Besides instantiating and registering an `AST` object, developers can register an existing `Module` instance into the store with exporting the module name (which is in the `Module` instance already). This case occurs when developers create a `Module` instance for the host functions and want to register it for linking. For the details about the construction of host functions in `Module` instances, please refer to the [Host Functions](#host-functions). + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Create a module instance for host functions. + mod := wasmedge.NewModule("mod") + // ... + // Create and add the host functions, tables, memories, and globals into the module instance. + // ... + + // Register the module instance into store with the exported module name. + // The export module name is in the module instance already. + res := executor.RegisterImport(store, mod) + if err != nil { + fmt.Println("WASM registration FAILED:", err.Error()) + return + } + + // ... + + // Resources deallocations. + executor.Release() + stat.Release() + store.Release() + mod.Release() + ``` 3. Instantiate an `AST` object to an anonymous `Module` instance - WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` object for linking. - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Instantiate the WASM module. - mod, err := executor.Instantiate(stpre, ast) - if err != nil { - fmt.Println("WASM instantiation FAILED:", err.Error()) - return - } - - executor.Release() - stat.Release() - store.Release() - mod.Release() - ``` + WASM or compiled-WASM modules should be instantiated before the function invocation. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` object for linking. + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Instantiate the WASM module. + mod, err := executor.Instantiate(stpre, ast) + if err != nil { + fmt.Println("WASM instantiation FAILED:", err.Error()) + return + } + + executor.Release() + stat.Release() + store.Release() + mod.Release() + ``` 4. Invoke functions - After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `(*Executor).Invoke` API. + After registering or instantiating and get the result `Module` instance, developers can retrieve the exported `Function` instances from the `Module` instance for invocation. For the details about the `Module` instances APIs, please refer to the [Instances](#instances). Please refer to the [example above](#wasm-execution-example-step-by-step) for the `Function` instance invocation with the `(*Executor).Invoke` API. ### AST Module @@ -1691,667 +1691,667 @@ The instances are the runtime structures of WASM. Developers can retrieve the `M 1. Module instance - After instantiating or registering an `AST` object, developers will get a `Module` instance as the result, and have the responsibility to release it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. + After instantiating or registering an `AST` object, developers will get a `Module` instance as the result, and have the responsibility to release it when not in use. A `Module` instance can also be created for the host module. Please refer to the [host function](#host-functions) for the details. `Module` instance provides APIs to list and find the exported instances in the module. - ```go - // ... - // Instantiate a WASM module via the executor object and get the `mod` as the output module instance. - // ... + ```go + // ... + // Instantiate a WASM module via the executor object and get the `mod` as the output module instance. + // ... - // List the exported instance of the instantiated WASM module. - // Take the function instances for example here. - funcnames := mod.ListFunction() + // List the exported instance of the instantiated WASM module. + // Take the function instances for example here. + funcnames := mod.ListFunction() - // Try to find the exported instance of the instantiated WASM module. - // Take the function instances for example here. - funcinst := mod.FindFunction("fib") - // `funcinst` will be `nil` if the function not found. - // The returned instance is owned by the module instance and should __NOT__ be released. - ``` + // Try to find the exported instance of the instantiated WASM module. + // Take the function instances for example here. + funcinst := mod.FindFunction("fib") + // `funcinst` will be `nil` if the function not found. + // The returned instance is owned by the module instance and should __NOT__ be released. + ``` 2. Function instance - [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` objects for host functions and add them into an `Module` instance for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` objects through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). + [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` objects for host functions and add them into an `Module` instance for registering into a `VM` or a `Store`. Developers can retrieve the `Function Type` from the `Function` objects through the API. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). - ```go - funcobj := ... - // `funcobj` is the `*wasmedge.Function` retrieved from the module instance. - functype := funcobj.GetFunctionType() - // The `funcobj` retrieved from the module instance should __NOT__ be released. - // The `functype` retrieved from the `funcobj` should __NOT__ be released. + ```go + funcobj := ... + // `funcobj` is the `*wasmedge.Function` retrieved from the module instance. + functype := funcobj.GetFunctionType() + // The `funcobj` retrieved from the module instance should __NOT__ be released. + // The `functype` retrieved from the `funcobj` should __NOT__ be released. - // For the function object creation, please refer to the `Host Function` guide. - ``` + // For the function object creation, please refer to the `Host Function` guide. + ``` 3. Table instance - In WasmEdge, developers can create the `Table` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Table` objects supply APIs to control the data in table instances. - - ```go - lim := wasmedge.NewLimitWithMax(10, 20) - // Create the table type with limit and the `FuncRef` element type. - tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef, lim) - // Create the table instance with table type. - tabinst := wasmedge.NewTable(tabtype) - // Delete the table type. - tabtype.Release() - - gottabtype := tabinst.GetTableType() - // The `gottabtype` got from table instance is owned by the `tabinst` - // and should __NOT__ be released. - reftype := gottabtype.GetRefType() - // The `reftype` will be `wasmedge.RefType_FuncRef`. - - var gotdata interface{} - data := wasmedge.NewFuncRef(5) - err := tabinst.SetData(data, 3) - // Set the function index 5 to the table[3]. - - // The following line will get an "out of bounds table access" error - // because the position (13) is out of the table size (10): - // err = tabinst.SetData(data, 13) - - gotdata, err = tabinst.GetData(3) - // Get the FuncRef value of the table[3]. - - // The following line will get an "out of bounds table access" error - // because the position (13) is out of the table size (10): - // gotdata, err = tabinst.GetData(13) - - tabsize := tabinst.GetSize() - // `tabsize` will be 10. - err = tabinst.Grow(6) - // Grow the table size of 6, the table size will be 16. - - // The following line will get an "out of bounds table access" error - // because the size (16 + 6) will reach the table limit (20): - // err = tabinst.Grow(6) - - tabinst.Release() - ``` + In WasmEdge, developers can create the `Table` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Table` objects supply APIs to control the data in table instances. -4. Memory instance + ```go + lim := wasmedge.NewLimitWithMax(10, 20) + // Create the table type with limit and the `FuncRef` element type. + tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef, lim) + // Create the table instance with table type. + tabinst := wasmedge.NewTable(tabtype) + // Delete the table type. + tabtype.Release() - In WasmEdge, developers can create the `Memory` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Memory` objects supply APIs to control the data in memory instances. - - ```go - lim := wasmedge.NewLimitWithMax(1, 5) - // Create the memory type with limit. The memory page size is 64KiB. - memtype := wasmedge.NewMemoryType(lim) - // Create the memory instance with memory type. - meminst := wasmedge.NewMemory(memtype) - // Delete the memory type. - memtype.Release() - - data := []byte("A quick brown fox jumps over the lazy dog") - err := meminst.SetData(data, 0x1000, 10) - // Set the data[0:9] to the memory[4096:4105]. - - // The following line will get an "out of bounds memory access" error - // because [65535:65544] is out of 1 page size (65536): - // err = meminst.SetData(data, 0xFFFF, 10) - - var gotdata []byte - gotdata, err = meminst.GetData(0x1000, 10) - // Get the memory[4096:4105]. The `gotdata` will be `[]byte("A quick br"). - // The following line will get an "out of bounds memory access" error - // because [65535:65544] is out of 1 page size (65536): - // gotdata, err = meminst.Getdata(0xFFFF, 10) - - pagesize := meminst.GetPageSize() - // `pagesize` will be 1. - err = meminst.GrowPage(2) - // Grow the page size of 2, the page size of the memory instance will be 3. - - // The following line will get an "out of bounds memory access" error - // because the size (3 + 3) will reach the memory limit (5): - // err = meminst.GetPageSize(3) - - meminst.Release() - ``` + gottabtype := tabinst.GetTableType() + // The `gottabtype` got from table instance is owned by the `tabinst` + // and should __NOT__ be released. + reftype := gottabtype.GetRefType() + // The `reftype` will be `wasmedge.RefType_FuncRef`. -5. Global instance + var gotdata interface{} + data := wasmedge.NewFuncRef(5) + err := tabinst.SetData(data, 3) + // Set the function index 5 to the table[3]. - In WasmEdge, developers can create the `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Global` objects supply APIs to control the value in global instances. - - ```go - // Create the global type with value type and mutation. - globtype := wasmedge.NewGlobalType(wasmedge.ValType_I64, wasmedge.ValMut_Var) - // Create the global instance with value and global type. - globinst := wasmedge.NewGlobal(globtype, uint64(1000)) - // Delete the global type. - globtype.Release() - - gotglobtype := globinst.GetGlobalType() - // The `gotglobtype` got from global instance is owned by the `globinst` - // and should __NOT__ be released. - valtype := gotglobtype.GetValType() - // The `valtype` will be `wasmedge.ValType_I64`. - valmut := gotglobtype.GetMutability() - // The `valmut` will be `wasmedge.ValMut_Var`. - - globinst.SetValue(uint64(888)) - // Set the value u64(888) to the global. - // This function will do nothing if the value type mismatched or the - // global mutability is `wasmedge.ValMut_Const`. - gotval := globinst.GetValue() - // The `gotbal` will be `interface{}` which the type is `uint64` and - // the value is 888. - - globinst.Release() - ``` + // The following line will get an "out of bounds table access" error + // because the position (13) is out of the table size (10): + // err = tabinst.SetData(data, 13) -### Host Functions + gotdata, err = tabinst.GetData(3) + // Get the FuncRef value of the table[3]. -[Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge-go, developers can create the `Function`, `Memory`, `Table`, and `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. + // The following line will get an "out of bounds table access" error + // because the position (13) is out of the table size (10): + // gotdata, err = tabinst.GetData(13) -1. Host function allocation + tabsize := tabinst.GetSize() + // `tabsize` will be 10. + err = tabinst.Grow(6) + // Grow the table size of 6, the table size will be 16. - Developers can define Go functions with the following function signature as the host function body: + // The following line will get an "out of bounds table access" error + // because the size (16 + 6) will reach the table limit (20): + // err = tabinst.Grow(6) - ```go - type hostFunctionSignature func( - data interface{}, callframe *CallingFrame, params []interface{}) ([]interface{}, Result) - ``` + tabinst.Release() + ``` - The example of an `add` host function to add 2 `i32` values: +4. Memory instance - ```go - func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) + In WasmEdge, developers can create the `Memory` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Memory` objects supply APIs to control the data in memory instances. - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res + ```go + lim := wasmedge.NewLimitWithMax(1, 5) + // Create the memory type with limit. The memory page size is 64KiB. + memtype := wasmedge.NewMemoryType(lim) + // Create the memory instance with memory type. + meminst := wasmedge.NewMemory(memtype) + // Delete the memory type. + memtype.Release() - // Return - return returns, wasmedge.Result_Success - } - ``` + data := []byte("A quick brown fox jumps over the lazy dog") + err := meminst.SetData(data, 0x1000, 10) + // Set the data[0:9] to the memory[4096:4105]. - Then developers can create `Function` object with the host function body and function type: + // The following line will get an "out of bounds memory access" error + // because [65535:65544] is out of 1 page size (65536): + // err = meminst.SetData(data, 0xFFFF, 10) - ```go - // Create a function type: {i32, i32} -> {i32}. - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) + var gotdata []byte + gotdata, err = meminst.GetData(0x1000, 10) + // Get the memory[4096:4105]. The `gotdata` will be `[]byte("A quick br"). + // The following line will get an "out of bounds memory access" error + // because [65535:65544] is out of 1 page size (65536): + // gotdata, err = meminst.Getdata(0xFFFF, 10) - // Create a function context with the function type and host function body. - // The third parameter is the pointer to the additional data. - // Developers should guarantee the life cycle of the data, and it can be - // `nil` if the external data is not needed. - // The last parameter can be 0 if developers do not need the cost measuring. - func_add := wasmedge.NewFunction(functype, host_add, nil, 0) + pagesize := meminst.GetPageSize() + // `pagesize` will be 1. + err = meminst.GrowPage(2) + // Grow the page size of 2, the page size of the memory instance will be 3. - // If the function object is not added into an module instance object, it should be released. - func_add.Release() - functype.Release() - ``` + // The following line will get an "out of bounds memory access" error + // because the size (3 + 3) will reach the memory limit (5): + // err = meminst.GetPageSize(3) -2. Calling frame object + meminst.Release() + ``` - The `wasmedge.CallingFrame` is the object to provide developers to access the module instance of the [frame on the top of the calling stack](https://webassembly.github.io/spec/core/exec/runtime.html#activations-and-frames). According to the [WASM spec](https://webassembly.github.io/spec/core/exec/instructions.html#function-calls), a frame with the module instance is pushed into the stack when invoking a function. Therefore, the host functions can access the module instance of the top frame to retrieve the memory instances to read/write data. +5. Global instance - ```go - import ( - "encoding/binary" - "fmt" - ) + In WasmEdge, developers can create the `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Global` objects supply APIs to control the value in global instances. + + ```go + // Create the global type with value type and mutation. + globtype := wasmedge.NewGlobalType(wasmedge.ValType_I64, wasmedge.ValMut_Var) + // Create the global instance with value and global type. + globinst := wasmedge.NewGlobal(globtype, uint64(1000)) + // Delete the global type. + globtype.Release() + + gotglobtype := globinst.GetGlobalType() + // The `gotglobtype` got from global instance is owned by the `globinst` + // and should __NOT__ be released. + valtype := gotglobtype.GetValType() + // The `valtype` will be `wasmedge.ValType_I64`. + valmut := gotglobtype.GetMutability() + // The `valmut` will be `wasmedge.ValMut_Var`. + + globinst.SetValue(uint64(888)) + // Set the value u64(888) to the global. + // This function will do nothing if the value type mismatched or the + // global mutability is `wasmedge.ValMut_Const`. + gotval := globinst.GetValue() + // The `gotbal` will be `interface{}` which the type is `uint64` and + // the value is 888. + + globinst.Release() + ``` - // Host function body definition. - func LoadOffset(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // Function type: {i32} -> {} - offset := params[0].(int32) - - // Get the 0th memory instance of the module of the top frame on the stack. - mem := callframe.GetMemoryByIndex(0) - - data, err := mem.GetData(uint(offset), 4) - if err != nil { - return nil, err - } - fmt.Println("u32 at memory[{}]: {}", offset, binary.LittleEndian.Uint32(data)) - return nil, wasmedge.Result_Success - } - ``` +### Host Functions - Besides using the `(*CallingFrame).GetMemoryByIndex()` API to get the memory instance by index in the module instance, developers can use the `(*CallingFrame).GetModule()` to get the module instance directly. Therefore, developers can retrieve the exported contexts by the `wasmedge.Module` APIs. And also, developers can use the `(*CallingFrame).GetExecutor()` API to get the currently used executor context. +[Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge-go, developers can create the `Function`, `Memory`, `Table`, and `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. -3. User-defined error code of the host functions +1. Host function allocation - In host functions, WasmEdge-Go provides `wasmedge.Result_Success` to return success, `wasmedge.Result_Terminate` to terminate the WASM execution, and `wasmedge.Result_Fail` to return fail. WasmEdge-Go also provides the usage of returning the user-specified codes. Developers can use the `wasmedge.NewResult()` API to generate the `wasmedge.Result` struct with error code, and use the `(*result).GetCode()` API to get the error code. + Developers can define Go functions with the following function signature as the host function body: - > Notice: The error code only supports 24-bit integer (0 ~ 16777216 in `uint32`). The values larger than 24-bit will be truncated. + ```go + type hostFunctionSignature func( + data interface{}, callframe *CallingFrame, params []interface{}) ([]interface{}, Result) + ``` - Create a new Go project first: + The example of an `add` host function to add 2 `i32` values: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```go + func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) - Assume that a simple WASM from the WAT is as following: + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res - ```wasm - (module - (type $t0 (func (param i32))) - (import "extern" "trap" (func $f-trap (type $t0))) - (func (export "trap") (param i32) - local.get 0 - call $f-trap) - ) - ``` + // Return + return returns, wasmedge.Result_Success + } + ``` - And the `main.go` is as following: + Then developers can create `Function` object with the host function body and function type: - ```go - package main + ```go + // Create a function type: {i32, i32} -> {i32}. + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) - import ( - "fmt" + // Create a function context with the function type and host function body. + // The third parameter is the pointer to the additional data. + // Developers should guarantee the life cycle of the data, and it can be + // `nil` if the external data is not needed. + // The last parameter can be 0 if developers do not need the cost measuring. + func_add := wasmedge.NewFunction(functype, host_add, nil, 0) - "github.com/second-state/WasmEdge-go/wasmedge" - ) + // If the function object is not added into an module instance object, it should be released. + func_add.Release() + functype.Release() + ``` - // Host function body definition. - func host_trap(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) - - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res - - // Return - return returns, wasmedge.Result_Success - } - - func main() { - // Create the VM object. - vm := wasmedge.NewVM() - - // The WASM module buffer. - wasmbuf := []byte{ - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x05, 0x01, - /* function type {i32} -> {} */ - 0x60, 0x01, 0x7F, 0x00, - /* Import section */ - 0x02, 0x0F, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "trap" */ - 0x04, 0x74, 0x72, 0x61, 0x70, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x08, 0x01, - /* export name: "trap" */ - 0x04, 0x74, 0x72, 0x61, 0x70, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x08, 0x01, - /* code body */ - 0x06, 0x00, 0x20, 0x00, 0x10, 0x00, 0x0B, - } - - // Create the module instance with the module name "extern". - impmod := wasmedge.NewModule("extern") - - // Create and add a function instance into the module instance with export name "func-add". - functype := wasmedge.NewFunctionType([]wasmedge.ValType{wasmedge.ValType_I32}, []wasmedge.ValType{}) - hostfunc := wasmedge.NewFunction(functype, host_trap, nil, 0) - functype.Release() - impmod.AddFunction("trap", hostfunc) - - // Register the module instance into VM. - vm.RegisterImport(impmod) - - _, err := vm.RunWasmBuffer(wasmbuf, "trap", uint32(5566)) - if err != nil { - fmt.Println("Get the error code:", err.GetCode()) - } - - impmod.Release() - vm.Release() - } - ``` +2. Calling frame object - Then you can build and run the Golang application with the WasmEdge Golang SDK: + The `wasmedge.CallingFrame` is the object to provide developers to access the module instance of the [frame on the top of the calling stack](https://webassembly.github.io/spec/core/exec/runtime.html#activations-and-frames). According to the [WASM spec](https://webassembly.github.io/spec/core/exec/instructions.html#function-calls), a frame with the module instance is pushed into the stack when invoking a function. Therefore, the host functions can access the module instance of the top frame to retrieve the memory instances to read/write data. - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 - $ go build - $ ./wasmedge_test - [2022-08-26 15:06:40.384] [error] user defined failed: user defined error code, Code: 0x15be - [2022-08-26 15:06:40.384] [error] When executing function name: "trap" - Get the error code: 5566 - ``` + ```go + import ( + "encoding/binary" + "fmt" + ) -4. Construct a module instance with host instances + // Host function body definition. + func LoadOffset(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // Function type: {i32} -> {} + offset := params[0].(int32) + + // Get the 0th memory instance of the module of the top frame on the stack. + mem := callframe.GetMemoryByIndex(0) - Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + data, err := mem.GetData(uint(offset), 4) + if err != nil { + return nil, err + } + fmt.Println("u32 at memory[{}]: {}", offset, binary.LittleEndian.Uint32(data)) + return nil, wasmedge.Result_Success + } + ``` - ```go - // Host function body definition. - func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) + Besides using the `(*CallingFrame).GetMemoryByIndex()` API to get the memory instance by index in the module instance, developers can use the `(*CallingFrame).GetModule()` to get the module instance directly. Therefore, developers can retrieve the exported contexts by the `wasmedge.Module` APIs. And also, developers can use the `(*CallingFrame).GetExecutor()` API to get the currently used executor context. - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res +3. User-defined error code of the host functions - // Return - return returns, wasmedge.Result_Success - } + In host functions, WasmEdge-Go provides `wasmedge.Result_Success` to return success, `wasmedge.Result_Terminate` to terminate the WASM execution, and `wasmedge.Result_Fail` to return fail. WasmEdge-Go also provides the usage of returning the user-specified codes. Developers can use the `wasmedge.NewResult()` API to generate the `wasmedge.Result` struct with error code, and use the `(*result).GetCode()` API to get the error code. + + > Notice: The error code only supports 24-bit integer (0 ~ 16777216 in `uint32`). The values larger than 24-bit will be truncated. + + Create a new Go project first: + + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` + + Assume that a simple WASM from the WAT is as following: + + ```wasm + (module + (type $t0 (func (param i32))) + (import "extern" "trap" (func $f-trap (type $t0))) + (func (export "trap") (param i32) + local.get 0 + call $f-trap) + ) + ``` + + And the `main.go` is as following: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + // Host function body definition. + func host_trap(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Return + return returns, wasmedge.Result_Success + } + + func main() { + // Create the VM object. + vm := wasmedge.NewVM() + + // The WASM module buffer. + wasmbuf := []byte{ + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x05, 0x01, + /* function type {i32} -> {} */ + 0x60, 0x01, 0x7F, 0x00, + /* Import section */ + 0x02, 0x0F, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "trap" */ + 0x04, 0x74, 0x72, 0x61, 0x70, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x08, 0x01, + /* export name: "trap" */ + 0x04, 0x74, 0x72, 0x61, 0x70, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x08, 0x01, + /* code body */ + 0x06, 0x00, 0x20, 0x00, 0x10, 0x00, 0x0B, + } + + // Create the module instance with the module name "extern". + impmod := wasmedge.NewModule("extern") + + // Create and add a function instance into the module instance with export name "func-add". + functype := wasmedge.NewFunctionType([]wasmedge.ValType{wasmedge.ValType_I32}, []wasmedge.ValType{}) + hostfunc := wasmedge.NewFunction(functype, host_trap, nil, 0) + functype.Release() + impmod.AddFunction("trap", hostfunc) + + // Register the module instance into VM. + vm.RegisterImport(impmod) + + _, err := vm.RunWasmBuffer(wasmbuf, "trap", uint32(5566)) + if err != nil { + fmt.Println("Get the error code:", err.GetCode()) + } + + impmod.Release() + vm.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 + $ go build + $ ./wasmedge_test + [2022-08-26 15:06:40.384] [error] user defined failed: user defined error code, Code: 0x15be + [2022-08-26 15:06:40.384] [error] When executing function name: "trap" + Get the error code: 5566 + ``` - // Create a module instance with the module name "module". - mod := wasmedge.NewModule("module") +4. Construct a module instance with host instances - // Create and add a function instance into the module instance with export name "add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) - functype.Release() - mod.AddFunction("add", hostfunc) - - // Create and add a table instance into the module instance with export name "table". - tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef ,wasmedge.NewLimitWithMax(10, 20)) - hosttab := wasmedge.NewTable(tabtype) - tabtype.Release() - mod.AddTable("table", hosttab) - - // Create and add a memory instance into the module instance with export name "memory". - memtype := wasmedge.NewMemoryType(wasmedge.NewLimitWithMax(1, 2)) - hostmem := wasmedge.NewMemory(memtype) - memtype.Release() - mod.AddMemory("memory", hostmem) - - // Create and add a global instance into the module instance with export name "global". - globtype := wasmedge.NewGlobalType(wasmedge.ValType_I32, wasmedge.ValMut_Var) - hostglob := wasmedge.NewGlobal(globtype, uint32(666)) - globtype.Release() - mod.AddGlobal("global", hostglob) - - // The module instances should be released. - // Developers should __NOT__ release the instances added into the module instance objects. - mod.Release() - ``` + Besides creating a `Module` instance by registering or instantiating a WASM module, developers can create a `Module` instance with a module name and add the `Function`, `Memory`, `Table`, and `Global` instances into it with their exporting names. + + ```go + // Host function body definition. + func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Return + return returns, wasmedge.Result_Success + } + + // Create a module instance with the module name "module". + mod := wasmedge.NewModule("module") + + // Create and add a function instance into the module instance with export name "add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) + functype.Release() + mod.AddFunction("add", hostfunc) + + // Create and add a table instance into the module instance with export name "table". + tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef ,wasmedge.NewLimitWithMax(10, 20)) + hosttab := wasmedge.NewTable(tabtype) + tabtype.Release() + mod.AddTable("table", hosttab) + + // Create and add a memory instance into the module instance with export name "memory". + memtype := wasmedge.NewMemoryType(wasmedge.NewLimitWithMax(1, 2)) + hostmem := wasmedge.NewMemory(memtype) + memtype.Release() + mod.AddMemory("memory", hostmem) + + // Create and add a global instance into the module instance with export name "global". + globtype := wasmedge.NewGlobalType(wasmedge.ValType_I32, wasmedge.ValMut_Var) + hostglob := wasmedge.NewGlobal(globtype, uint32(666)) + globtype.Release() + mod.AddGlobal("global", hostglob) + + // The module instances should be released. + // Developers should __NOT__ release the instances added into the module instance objects. + mod.Release() + ``` 5. Specified module instance - `wasmedge.NewWasiModule()` API can create and initialize the `WASI` module instance. + `wasmedge.NewWasiModule()` API can create and initialize the `WASI` module instance. - `wasmedge.NewWasiNNModule()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin. + `wasmedge.NewWasiNNModule()` API can create and initialize the `wasi_ephemeral_nn` module instance for `WASI-NN` plugin. - `wasmedge.NewWasiCryptoCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin. + `wasmedge.NewWasiCryptoCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_common` module instance for `WASI-Crypto` plugin. - `wasmedge.NewWasiCryptoAsymmetricCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin. + `wasmedge.NewWasiCryptoAsymmetricCommonModule()` API can create and initialize the `wasi_ephemeral_crypto_asymmetric_common` module instance for `WASI-Crypto` plugin. - `wasmedge.NewWasiCryptoKxModule()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin. + `wasmedge.NewWasiCryptoKxModule()` API can create and initialize the `wasi_ephemeral_crypto_kx` module instance for `WASI-Crypto` plugin. - `wasmedge.NewWasiCryptoSignaturesModule()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin. + `wasmedge.NewWasiCryptoSignaturesModule()` API can create and initialize the `wasi_ephemeral_crypto_signatures` module instance for `WASI-Crypto` plugin. - `wasmedge.NewWasiCryptoSymmetricModule()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin. + `wasmedge.NewWasiCryptoSymmetricModule()` API can create and initialize the `wasi_ephemeral_crypto_symmetric` module instance for `WASI-Crypto` plugin. - `wasmedge.NewWasmEdgeProcessModule()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. + `wasmedge.NewWasmEdgeProcessModule()` API can create and initialize the `wasmedge_process` module instance for `wasmedge_process` plugin. - Developers can create these module instance objects and register them into the `Store` or `VM` objects rather than adjust the settings in the `Configure` objects. + Developers can create these module instance objects and register them into the `Store` or `VM` objects rather than adjust the settings in the `Configure` objects. - > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. And the 5 modules are recommended to all be created and registered together. + > Note: For the `WASI-NN` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-nn-plugin-with-openvino™-backend) are satisfied. Note: For the `WASI-Crypto` plugin, please check that the [dependencies and prerequests](/develop/build-and-run/install.md#wasi-crypto-plugin) are satisfied. And the 5 modules are recommended to all be created and registered together. - ```go - wasiobj := wasmedge.NewWasiModule( - os.Args[1:], // The args - os.Environ(), // The envs - []string{".:."}, // The mapping preopens - ) - procobj := wasmedge.NewWasmEdgeProcessModule( - []string{"ls", "echo"}, // The allowed commands - false, // Not to allow all commands - ) + ```go + wasiobj := wasmedge.NewWasiModule( + os.Args[1:], // The args + os.Environ(), // The envs + []string{".:."}, // The mapping preopens + ) + procobj := wasmedge.NewWasmEdgeProcessModule( + []string{"ls", "echo"}, // The allowed commands + false, // Not to allow all commands + ) - // Register the WASI and WasmEdge_Process into the VM object. - vm := wasmedge.NewVM() - vm.RegisterImport(wasiobj) - vm.RegisterImport(procobj) + // Register the WASI and WasmEdge_Process into the VM object. + vm := wasmedge.NewVM() + vm.RegisterImport(wasiobj) + vm.RegisterImport(procobj) - // ... Execute some WASM functions. + // ... Execute some WASM functions. - // Get the WASI exit code. - exitcode := wasiobj.WasiGetExitCode() - // The `exitcode` will be 0 if the WASI function "_start" execution has no error. - // Otherwise, it will return with the related exit code. + // Get the WASI exit code. + exitcode := wasiobj.WasiGetExitCode() + // The `exitcode` will be 0 if the WASI function "_start" execution has no error. + // Otherwise, it will return with the related exit code. - vm.Release() - // The import objects should be deleted. - wasiobj.Release() - procobj.Release() - ``` + vm.Release() + // The import objects should be deleted. + wasiobj.Release() + procobj.Release() + ``` 6. Example - Assume that there is a simple WASM from the WAT as following: - - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` - - Assume that edit the Go file `main.go` above: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - // Host function body definition. - func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) - - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res - - // Return - return returns, wasmedge.Result_Success - } - - func main() { - // Create the VM object. - vm := wasmedge.NewVM() - - // The WASM module buffer. - wasmbuf := []byte{ - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, - } - - // Create the module instance with the module name "extern". - impmod := wasmedge.NewModule("extern") - - // Create and add a function instance into the module instance with export name "func-add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) - functype.Release() - impmod.AddFunction("func-add", hostfunc) - - // Register the module instance into VM. - vm.RegisterImport(impmod) - - res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - - impmod.Release() - vm.Release() - } - ``` - - Then you can build and run the Golang application with the WasmEdge Golang SDK: - - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 - $ go build - $ ./wasmedge_test - Get the result: 6912 - ``` + Assume that there is a simple WASM from the WAT as following: + + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` + + Assume that edit the Go file `main.go` above: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + // Host function body definition. + func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Return + return returns, wasmedge.Result_Success + } + + func main() { + // Create the VM object. + vm := wasmedge.NewVM() + + // The WASM module buffer. + wasmbuf := []byte{ + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, + } + + // Create the module instance with the module name "extern". + impmod := wasmedge.NewModule("extern") + + // Create and add a function instance into the module instance with export name "func-add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) + functype.Release() + impmod.AddFunction("func-add", hostfunc) + + // Register the module instance into VM. + vm.RegisterImport(impmod) + + res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + + impmod.Release() + vm.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 + $ go build + $ ./wasmedge_test + Get the result: 6912 + ``` 7. Host Data Example - Developers can set a external data object to the `Function` object, and access to the object in the function body. Assume that edit the Go file `main.go` above: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - // Host function body definition. - func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) - - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res - - // Also set the result to the data. - *data.(*int32) = res - - // Return - return returns, wasmedge.Result_Success - } - - func main() { - // Create the VM object. - vm := wasmedge.NewVM() - - // The WASM module buffer. - wasmbuf := []byte{ - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, - } - - // The additional data to set into the host function. - var data int32 = 0 - - // Create the module instance with the module name "extern". - impmod := wasmedge.NewImportObject("extern") - - // Create and add a function instance into the module instance with export name "func-add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, &data, 0) - functype.Release() - impmod.AddFunction("func-add", hostfunc) - - // Register the module instance into VM. - vm.RegisterImport(impmod) - - res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - fmt.Println("Data value:", data) - - impmod.Release() - vm.Release() - } - ``` - - Then you can build and run the Golang application with the WasmEdge Golang SDK: - - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 - $ go build - $ ./wasmedge_test - Get the result: 6912 - Data value: 6912 - ``` + Developers can set a external data object to the `Function` object, and access to the object in the function body. Assume that edit the Go file `main.go` above: + + ```go + package main + + import ( + "fmt" + + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + // Host function body definition. + func host_add(data interface{}, callframe *wasmedge.CallingFrame, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Also set the result to the data. + *data.(*int32) = res + + // Return + return returns, wasmedge.Result_Success + } + + func main() { + // Create the VM object. + vm := wasmedge.NewVM() + + // The WASM module buffer. + wasmbuf := []byte{ + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, + } + + // The additional data to set into the host function. + var data int32 = 0 + + // Create the module instance with the module name "extern". + impmod := wasmedge.NewImportObject("extern") + + // Create and add a function instance into the module instance with export name "func-add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, &data, 0) + functype.Release() + impmod.AddFunction("func-add", hostfunc) + + // Register the module instance into VM. + vm.RegisterImport(impmod) + + res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + fmt.Println("Data value:", data) + + impmod.Release() + vm.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.12.0 + $ go build + $ ./wasmedge_test + Get the result: 6912 + Data value: 6912 + ``` ### Plug-ins diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/0.9.1.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/0.9.1.md index c32e7103..2e1355ce 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/0.9.1.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/0.9.1.md @@ -14,42 +14,42 @@ The following are the guides to develop with the WasmEdge-Go SDK at WasmEdge ver ## Table of Contents -- [Getting Started](#getting-started) - - [WasmEdge Installation](#wasmedge-installation) - - [Get WasmEdge-go](#get-wasmedge-go) - - [WasmEdge-go Extensions](#wasmedge-go-extensions) - - [Example of Embedding A Function with wasmedge-bindgen](#example-of-embedding-a-function-with-wasmedge-bindgen) - - [Example of Embedding A Full WASI Program](#example-of-embedding-a-full-wasi-program) -- [WasmEdge-go Basics](#wasmedge-go-basics) - - [Version](#version) - - [Logging Settings](#logging-settings) - - [Value Types](#value-types) - - [Results](#results) - - [Contexts And Their Life Cycles](#contexts-and-their-life-cycles) - - [WASM data structures](#wasm-data-structures) - - [Async](#async) - - [Configurations](#configurations) - - [Statistics](#statistics) -- [WasmEdge VM](#wasmedge-vm) - - [WASM Execution Example With VM Object](#wasm-execution-example-with-vm-object) - - [VM Creations](#vm-creations) - - [Preregistrations](#preregistrations) - - [Host Module Registrations](#host-module-registrations) - - [WASM Registrations And Executions](#wasm-registrations-and-executions) - - [Asynchronous execution](#asynchronous-execution) - - [Instance Tracing](#instance-tracing) -- [WasmEdge Runtime](#wasmedge-runtime) - - [WASM Execution Example Step-By-Step](#wasm-execution-example-step-by-step) - - [Loader](#loader) - - [Validator](#validator) - - [Executor](#executor) - - [AST Module](#ast-module) - - [Store](#store) - - [Instances](#instances) - - [Host Functions](#host-functions) -- [WasmEdge AOT Compiler](#wasmedge-aot-compiler) - - [Compilation Example](#compilation-example) - - [Compiler Options](#compiler-options) +- [Getting Started](#getting-started) + - [WasmEdge Installation](#wasmedge-installation) + - [Get WasmEdge-go](#get-wasmedge-go) + - [WasmEdge-go Extensions](#wasmedge-go-extensions) + - [Example of Embedding A Function with wasmedge-bindgen](#example-of-embedding-a-function-with-wasmedge-bindgen) + - [Example of Embedding A Full WASI Program](#example-of-embedding-a-full-wasi-program) +- [WasmEdge-go Basics](#wasmedge-go-basics) + - [Version](#version) + - [Logging Settings](#logging-settings) + - [Value Types](#value-types) + - [Results](#results) + - [Contexts And Their Life Cycles](#contexts-and-their-life-cycles) + - [WASM data structures](#wasm-data-structures) + - [Async](#async) + - [Configurations](#configurations) + - [Statistics](#statistics) +- [WasmEdge VM](#wasmedge-vm) + - [WASM Execution Example With VM Object](#wasm-execution-example-with-vm-object) + - [VM Creations](#vm-creations) + - [Preregistrations](#preregistrations) + - [Host Module Registrations](#host-module-registrations) + - [WASM Registrations And Executions](#wasm-registrations-and-executions) + - [Asynchronous execution](#asynchronous-execution) + - [Instance Tracing](#instance-tracing) +- [WasmEdge Runtime](#wasmedge-runtime) + - [WASM Execution Example Step-By-Step](#wasm-execution-example-step-by-step) + - [Loader](#loader) + - [Validator](#validator) + - [Executor](#executor) + - [AST Module](#ast-module) + - [Store](#store) + - [Instances](#instances) + - [Host Functions](#host-functions) +- [WasmEdge AOT Compiler](#wasmedge-aot-compiler) + - [Compilation Example](#compilation-example) + - [Compiler Options](#compiler-options) ## Getting Started @@ -91,25 +91,25 @@ By default, the `WasmEdge-go` only turns on the basic runtime. `WasmEdge-go` has the following extensions (on the Linux platforms only): -- Tensorflow +- Tensorflow - - This extension supports the host functions in [WasmEdge-tensorflow](https://github.com/second-state/WasmEdge-tensorflow). - - The `TensorFlow` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e tensorflow` command. - - For using this extension, the tag `tensorflow` when building is required: + - This extension supports the host functions in [WasmEdge-tensorflow](https://github.com/second-state/WasmEdge-tensorflow). + - The `TensorFlow` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e tensorflow` command. + - For using this extension, the tag `tensorflow` when building is required: - ```bash - go build -tags tensorflow - ``` + ```bash + go build -tags tensorflow + ``` -- Image +- Image - - This extension supports the host functions in [WasmEdge-image](https://github.com/second-state/WasmEdge-image). - - The `Image` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e image` command. - - For using this extension, the tag `image` when building is required: + - This extension supports the host functions in [WasmEdge-image](https://github.com/second-state/WasmEdge-image). + - The `Image` extension when installing `WasmEdge` is required. Please install `WasmEdge` with the `-e image` command. + - For using this extension, the tag `image` when building is required: - ```bash - go build -tags image - ``` + ```bash + go build -tags image + ``` Users can also turn on the multiple extensions when building: @@ -476,46 +476,46 @@ In WasmEdge-go, the APIs will automatically do the conversion for the built-in t 1. Number types: `i32`, `i64`, `f32`, and `f64` - - Convert the `uint32` and `int32` to `i32` automatically when passing a value into WASM. - - Convert the `uint64` and `int64` to `i64` automatically when passing a value into WASM. - - Convert the `uint` and `int` to `i32` automatically when passing a value into WASM in 32-bit system. - - Convert the `uint` and `int` to `i64` automatically when passing a value into WASM in 64-bit system. - - Convert the `float32` to `f32` automatically when passing a value into WASM. - - Convert the `float64` to `f64` automatically when passing a value into WASM. - - Convert the `i32` from WASM to `int32` when getting a result. - - Convert the `i64` from WASM to `int64` when getting a result. - - Convert the `f32` from WASM to `float32` when getting a result. - - Convert the `f64` from WASM to `float64` when getting a result. + - Convert the `uint32` and `int32` to `i32` automatically when passing a value into WASM. + - Convert the `uint64` and `int64` to `i64` automatically when passing a value into WASM. + - Convert the `uint` and `int` to `i32` automatically when passing a value into WASM in 32-bit system. + - Convert the `uint` and `int` to `i64` automatically when passing a value into WASM in 64-bit system. + - Convert the `float32` to `f32` automatically when passing a value into WASM. + - Convert the `float64` to `f64` automatically when passing a value into WASM. + - Convert the `i32` from WASM to `int32` when getting a result. + - Convert the `i64` from WASM to `int64` when getting a result. + - Convert the `f32` from WASM to `float32` when getting a result. + - Convert the `f64` from WASM to `float64` when getting a result. 2. Number type: `v128` for the `SIMD` proposal - Developers should use the `wasmedge.NewV128()` to generate a `v128` value, and use the `wasmedge.GetV128()` to get the value. + Developers should use the `wasmedge.NewV128()` to generate a `v128` value, and use the `wasmedge.GetV128()` to get the value. - ```go - val := wasmedge.NewV128(uint64(1234), uint64(5678)) - high, low := val.GetVal() - // `high` will be uint64(1234), `low` will be uint64(5678) - ``` + ```go + val := wasmedge.NewV128(uint64(1234), uint64(5678)) + high, low := val.GetVal() + // `high` will be uint64(1234), `low` will be uint64(5678) + ``` 3. Reference types: `FuncRef` and `ExternRef` for the `Reference-Types` proposal - ```go - funcref := wasmedge.NewFuncRef(10) - // Create a `FuncRef` with function index 10. - - num := 1234 - // `num` is a `int`. - externref := wasmedge.NewExternRef(&num) - // Create an `ExternRef` which reference to the `num`. - num = 5678 - // Modify the `num` to 5678. - numref := externref.GetRef().(*int) - // Get the original reference from the `ExternRef`. - fmt.Println(*numref) - // Will print `5678`. - numref.Release() - // Should call the `Release` method. - ``` + ```go + funcref := wasmedge.NewFuncRef(10) + // Create a `FuncRef` with function index 10. + + num := 1234 + // `num` is a `int`. + externref := wasmedge.NewExternRef(&num) + // Create an `ExternRef` which reference to the `num`. + num = 5678 + // Modify the `num` to 5678. + numref := externref.GetRef().(*int) + // Get the original reference from the `ExternRef`. + fmt.Println(*numref) + // Will print `5678`. + numref.Release() + // Should call the `Release` method. + ``` ### Results @@ -549,144 +549,144 @@ The WASM data structures are used for creating instances or can be queried from 1. Limit - The `Limit` struct presents the minimum and maximum value data structure. - - ```go - lim1 := wasmedge.NewLimit(12) - fmt.Println(lim1.HasMax()) - // Will print `false`. - fmt.Println(lim1.GetMin()) - // Will print `12`. - - lim2 := wasmedge.NewLimitWithMax(15, 50) - fmt.Println(lim2.HasMax()) - // Will print `true`. - fmt.Println(lim2.GetMin()) - // Will print `15`. - fmt.Println(lim2.GetMax()) - // Will print `50`. - ``` + The `Limit` struct presents the minimum and maximum value data structure. + + ```go + lim1 := wasmedge.NewLimit(12) + fmt.Println(lim1.HasMax()) + // Will print `false`. + fmt.Println(lim1.GetMin()) + // Will print `12`. + + lim2 := wasmedge.NewLimitWithMax(15, 50) + fmt.Println(lim2.HasMax()) + // Will print `true`. + fmt.Println(lim2.GetMin()) + // Will print `15`. + fmt.Println(lim2.GetMax()) + // Will print `50`. + ``` 2. Function type context - The `FunctionType` is an object holds the function type context and used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `FunctionType` APIs to get the parameter or return value types information. - - ```go - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{ - wasmedge.ValType_ExternRef, - wasmedge.ValType_I32, - wasmedge.ValType_I64, - }, []wasmedge.ValType{ - wasmedge.ValType_F32, - wasmedge.ValType_F64, - }) - - plen := functype.GetParametersLength() - // `plen` will be 3. - rlen := functype.GetReturnsLength() - // `rlen` will be 2. - plist := functype.GetParameters() - // `plist` will be `[]wasmedge.ValType{wasmedge.ValType_ExternRef, wasmedge.ValType_I32, wasmedge.ValType_I64}`. - rlist := functype.GetReturns() - // `rlist` will be `[]wasmedge.ValType{wasmedge.ValType_F32, wasmedge.ValType_F64}`. - - functype.Release() - ``` + The `FunctionType` is an object holds the function type context and used for the `Function` creation, checking the value types of a `Function` instance, or getting the function type with function name from VM. Developers can use the `FunctionType` APIs to get the parameter or return value types information. + + ```go + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{ + wasmedge.ValType_ExternRef, + wasmedge.ValType_I32, + wasmedge.ValType_I64, + }, []wasmedge.ValType{ + wasmedge.ValType_F32, + wasmedge.ValType_F64, + }) + + plen := functype.GetParametersLength() + // `plen` will be 3. + rlen := functype.GetReturnsLength() + // `rlen` will be 2. + plist := functype.GetParameters() + // `plist` will be `[]wasmedge.ValType{wasmedge.ValType_ExternRef, wasmedge.ValType_I32, wasmedge.ValType_I64}`. + rlist := functype.GetReturns() + // `rlist` will be `[]wasmedge.ValType{wasmedge.ValType_F32, wasmedge.ValType_F64}`. + + functype.Release() + ``` 3. Table type context - The `TableType` is an object holds the table type context and used for `Table` instance creation or getting information from `Table` instances. + The `TableType` is an object holds the table type context and used for `Table` instance creation or getting information from `Table` instances. - ```go - lim := wasmedge.NewLimit(12) - tabtype := wasmedge.NewTableType(wasmedge.RefType_ExternRef, lim) + ```go + lim := wasmedge.NewLimit(12) + tabtype := wasmedge.NewTableType(wasmedge.RefType_ExternRef, lim) - rtype := tabtype.GetRefType() - // `rtype` will be `wasmedge.RefType_ExternRef`. - getlim := tabtype.GetLimit() - // `getlim` will be the same value as `lim`. + rtype := tabtype.GetRefType() + // `rtype` will be `wasmedge.RefType_ExternRef`. + getlim := tabtype.GetLimit() + // `getlim` will be the same value as `lim`. - tabtype.Release() - ``` + tabtype.Release() + ``` 4. Memory type context - The `MemoryType` is an object holds the memory type context and used for `Memory` instance creation or getting information from `Memory` instances. + The `MemoryType` is an object holds the memory type context and used for `Memory` instance creation or getting information from `Memory` instances. - ```go - lim := wasmedge.NewLimit(1) - memtype := wasmedge.NewMemoryType(lim) + ```go + lim := wasmedge.NewLimit(1) + memtype := wasmedge.NewMemoryType(lim) - getlim := memtype.GetLimit() - // `getlim` will be the same value as `lim`. + getlim := memtype.GetLimit() + // `getlim` will be the same value as `lim`. - memtype.Release() - ``` + memtype.Release() + ``` 5. Global type context - The `GlobalType` is an object holds the global type context and used for `Global` instance creation or getting information from `Global` instances. + The `GlobalType` is an object holds the global type context and used for `Global` instance creation or getting information from `Global` instances. - ```go - globtype := wasmedge.NewGlobalType(wasmedge.ValType_F64, wasmedge.ValMut_Var) + ```go + globtype := wasmedge.NewGlobalType(wasmedge.ValType_F64, wasmedge.ValMut_Var) - vtype := globtype.GetValType() - // `vtype` will be `wasmedge.ValType_F64`. - vmut := globtype.GetMutability() - // `vmut` will be `wasmedge.ValMut_Var`. + vtype := globtype.GetValType() + // `vtype` will be `wasmedge.ValType_F64`. + vmut := globtype.GetMutability() + // `vmut` will be `wasmedge.ValMut_Var`. - globtype.Release() - ``` + globtype.Release() + ``` 6. Import type context - The `ImportType` is an object holds the import type context and used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `ImportType` object. The details about querying `ImportType` objects will be introduced in the [AST Module](#ast-module). + The `ImportType` is an object holds the import type context and used for getting the imports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`), import module name, and external name from an `ImportType` object. The details about querying `ImportType` objects will be introduced in the [AST Module](#ast-module). - ```go - var ast *wasmedge.AST = ... - // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. - imptypelist := ast.ListImports() - // Assume that `imptypelist` is an array listed from the `ast` for the imports. + ```go + var ast *wasmedge.AST = ... + // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. + imptypelist := ast.ListImports() + // Assume that `imptypelist` is an array listed from the `ast` for the imports. - for i, imptype := range imptypelist { - exttype := imptype.GetExternalType() - // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, - // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. + for i, imptype := range imptypelist { + exttype := imptype.GetExternalType() + // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, + // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. - modname := imptype.GetModuleName() - extname := imptype.GetExternalName() - // Get the module name and external name of the imports. + modname := imptype.GetModuleName() + extname := imptype.GetExternalName() + // Get the module name and external name of the imports. - extval := imptype.GetExternalValue() - // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, - // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. - } - ``` + extval := imptype.GetExternalValue() + // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, + // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. + } + ``` 7. Export type context - The `ExportType` is an object holds the export type context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `ExportType` objects will be introduced in the [AST Module](#ast-module). + The `ExportType` is an object holds the export type context is used for getting the exports information from a [AST Module](#ast-module). Developers can get the external type (`function`, `table`, `memory`, or `global`) and external name from an `Export Type` context. The details about querying `ExportType` objects will be introduced in the [AST Module](#ast-module). - ```go - var ast *wasmedge.AST = ... - // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. - exptypelist := ast.ListExports() - // Assume that `exptypelist` is an array listed from the `ast` for the exports. + ```go + var ast *wasmedge.AST = ... + // Assume that `ast` is returned by the `Loader` for the result of loading a WASM file. + exptypelist := ast.ListExports() + // Assume that `exptypelist` is an array listed from the `ast` for the exports. - for i, exptype := range exptypelist { - exttype := exptype.GetExternalType() - // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, - // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. + for i, exptype := range exptypelist { + exttype := exptype.GetExternalType() + // The `exttype` must be one of `wasmedge.ExternType_Function`, `wasmedge.ExternType_Table`, + // wasmedge.ExternType_Memory`, or `wasmedge.ExternType_Global`. - extname := exptype.GetExternalName() - // Get the external name of the exports. + extname := exptype.GetExternalName() + // Get the external name of the exports. - extval := exptype.GetExternalValue() - // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, - // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. - } - ``` + extval := exptype.GetExternalValue() + // The `extval` is the type of `interface{}` which indicates one of `*wasmedge.FunctionType`, + // `*wasmedge.TableType`, `*wasmedge.MemoryType`, or `*wasmedge.GlobalType`. + } + ``` ### Async @@ -694,35 +694,35 @@ After calling the [asynchronous execution APIs](#asynchronous-execution), develo 1. Get the execution result of the asynchronous execution - Developers can use the `(*Async).GetResult()` API to block and wait for getting the return values. This function will block and wait for the execution. If the execution has finished, this function will return immediately. If the execution failed, this function will return an error. + Developers can use the `(*Async).GetResult()` API to block and wait for getting the return values. This function will block and wait for the execution. If the execution has finished, this function will return immediately. If the execution failed, this function will return an error. - ```go - async := ... // Ignored. Asynchronous execute a function. + ```go + async := ... // Ignored. Asynchronous execute a function. - // Blocking and waiting for the execution and get the return values. - res, err := async.GetResult() - async.Release() - ``` + // Blocking and waiting for the execution and get the return values. + res, err := async.GetResult() + async.Release() + ``` 2. Wait for the asynchronous execution with timeout settings - Besides waiting until the end of execution, developers can set the timeout to wait for. + Besides waiting until the end of execution, developers can set the timeout to wait for. - ```go - async := ... // Ignored. Asynchronous execute a function. + ```go + async := ... // Ignored. Asynchronous execute a function. - // Blocking and waiting for the execution with the timeout(ms). - isend := async.WaitFor(1000) - if isend { - res, err := async.GetResult() - // ... - } else { - async.Cancel() - _, err := async.GetResult() - // The error message in `err` will be "execution interrupted". - } - async.Release() - ``` + // Blocking and waiting for the execution with the timeout(ms). + isend := async.WaitFor(1000) + if isend { + res, err := async.GetResult() + // ... + } else { + async.Cancel() + _, err := async.GetResult() + // The error message in `err` will be "execution interrupted". + } + async.Release() + ``` ### Configurations @@ -730,145 +730,145 @@ The configuration object, `wasmedge.Configure`, manages the configurations for ` 1. Proposals - WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` object. - - ```go - const ( - IMPORT_EXPORT_MUT_GLOBALS = Proposal(C.WasmEdge_Proposal_ImportExportMutGlobals) - NON_TRAP_FLOAT_TO_INT_CONVERSIONS = Proposal(C.WasmEdge_Proposal_NonTrapFloatToIntConversions) - SIGN_EXTENSION_OPERATORS = Proposal(C.WasmEdge_Proposal_SignExtensionOperators) - MULTI_VALUE = Proposal(C.WasmEdge_Proposal_MultiValue) - BULK_MEMORY_OPERATIONS = Proposal(C.WasmEdge_Proposal_BulkMemoryOperations) - REFERENCE_TYPES = Proposal(C.WasmEdge_Proposal_ReferenceTypes) - SIMD = Proposal(C.WasmEdge_Proposal_SIMD) - TAIL_CALL = Proposal(C.WasmEdge_Proposal_TailCall) - ANNOTATIONS = Proposal(C.WasmEdge_Proposal_Annotations) - MEMORY64 = Proposal(C.WasmEdge_Proposal_Memory64) - THREADS = Proposal(C.WasmEdge_Proposal_Threads) - EXCEPTION_HANDLING = Proposal(C.WasmEdge_Proposal_ExceptionHandling) - FUNCTION_REFERENCES = Proposal(C.WasmEdge_Proposal_FunctionReferences) - ) - ``` - - Developers can add or remove the proposals into the `Configure` object. - - ```go - // By default, the following proposals have turned on initially: - // * IMPORT_EXPORT_MUT_GLOBALS - // * NON_TRAP_FLOAT_TO_INT_CONVERSIONS - // * SIGN_EXTENSION_OPERATORS - // * MULTI_VALUE - // * BULK_MEMORY_OPERATIONS - // * REFERENCE_TYPES - // * SIMD - conf := wasmedge.NewConfigure() - // Developers can also pass the proposals as parameters: - // conf := wasmedge.NewConfigure(wasmedge.SIMD, wasmedge.BULK_MEMORY_OPERATIONS) - conf.AddConfig(wasmedge.SIMD) - conf.RemoveConfig(wasmedge.REFERENCE_TYPES) - is_bulkmem := conf.HasConfig(wasmedge.BULK_MEMORY_OPERATIONS) - // The `is_bulkmem` will be `true`. - conf.Release() - ``` + WasmEdge supports turning on or off the WebAssembly proposals. This configuration is effective in any contexts created with the `Configure` object. + + ```go + const ( + IMPORT_EXPORT_MUT_GLOBALS = Proposal(C.WasmEdge_Proposal_ImportExportMutGlobals) + NON_TRAP_FLOAT_TO_INT_CONVERSIONS = Proposal(C.WasmEdge_Proposal_NonTrapFloatToIntConversions) + SIGN_EXTENSION_OPERATORS = Proposal(C.WasmEdge_Proposal_SignExtensionOperators) + MULTI_VALUE = Proposal(C.WasmEdge_Proposal_MultiValue) + BULK_MEMORY_OPERATIONS = Proposal(C.WasmEdge_Proposal_BulkMemoryOperations) + REFERENCE_TYPES = Proposal(C.WasmEdge_Proposal_ReferenceTypes) + SIMD = Proposal(C.WasmEdge_Proposal_SIMD) + TAIL_CALL = Proposal(C.WasmEdge_Proposal_TailCall) + ANNOTATIONS = Proposal(C.WasmEdge_Proposal_Annotations) + MEMORY64 = Proposal(C.WasmEdge_Proposal_Memory64) + THREADS = Proposal(C.WasmEdge_Proposal_Threads) + EXCEPTION_HANDLING = Proposal(C.WasmEdge_Proposal_ExceptionHandling) + FUNCTION_REFERENCES = Proposal(C.WasmEdge_Proposal_FunctionReferences) + ) + ``` + + Developers can add or remove the proposals into the `Configure` object. + + ```go + // By default, the following proposals have turned on initially: + // * IMPORT_EXPORT_MUT_GLOBALS + // * NON_TRAP_FLOAT_TO_INT_CONVERSIONS + // * SIGN_EXTENSION_OPERATORS + // * MULTI_VALUE + // * BULK_MEMORY_OPERATIONS + // * REFERENCE_TYPES + // * SIMD + conf := wasmedge.NewConfigure() + // Developers can also pass the proposals as parameters: + // conf := wasmedge.NewConfigure(wasmedge.SIMD, wasmedge.BULK_MEMORY_OPERATIONS) + conf.AddConfig(wasmedge.SIMD) + conf.RemoveConfig(wasmedge.REFERENCE_TYPES) + is_bulkmem := conf.HasConfig(wasmedge.BULK_MEMORY_OPERATIONS) + // The `is_bulkmem` will be `true`. + conf.Release() + ``` 2. Host registrations - This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` objects. + This configuration is used for the `VM` context to turn on the `WASI` or `wasmedge_process` supports and only effective in `VM` objects. - ```go - const ( - WASI = HostRegistration(C.WasmEdge_HostRegistration_Wasi) - WasmEdge_PROCESS = HostRegistration(C.WasmEdge_HostRegistration_WasmEdge_Process) - ) - ``` + ```go + const ( + WASI = HostRegistration(C.WasmEdge_HostRegistration_Wasi) + WasmEdge_PROCESS = HostRegistration(C.WasmEdge_HostRegistration_WasmEdge_Process) + ) + ``` - The details will be introduced in the [preregistrations of VM context](#preregistrations). + The details will be introduced in the [preregistrations of VM context](#preregistrations). - ```go - conf := wasmedge.NewConfigure() - // Developers can also pass the proposals as parameters: - // conf := wasmedge.NewConfigure(wasmedge.WASI) - conf.AddConfig(wasmedge.WASI) - conf.Release() - ``` + ```go + conf := wasmedge.NewConfigure() + // Developers can also pass the proposals as parameters: + // conf := wasmedge.NewConfigure(wasmedge.WASI) + conf.AddConfig(wasmedge.WASI) + conf.Release() + ``` 3. Maximum memory pages - Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` objects. + Developers can limit the page size of memory instances by this configuration. When growing the page size of memory instances in WASM execution and exceeding the limited size, the page growing will fail. This configuration is only effective in the `Executor` and `VM` objects. - ```go - conf := wasmedge.NewConfigure() + ```go + conf := wasmedge.NewConfigure() - pagesize := conf.GetMaxMemoryPage() - // By default, the maximum memory page size in each memory instances is 65536. - conf.SetMaxMemoryPage(1234) - pagesize := conf.GetMaxMemoryPage() - // `pagesize` will be 1234. + pagesize := conf.GetMaxMemoryPage() + // By default, the maximum memory page size in each memory instances is 65536. + conf.SetMaxMemoryPage(1234) + pagesize := conf.GetMaxMemoryPage() + // `pagesize` will be 1234. - conf.Release() - ``` + conf.Release() + ``` 4. AOT compiler options - The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. - - ```go - const ( - // Disable as many optimizations as possible. - CompilerOptLevel_O0 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O0) - // Optimize quickly without destroying debuggability. - CompilerOptLevel_O1 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O1) - // Optimize for fast execution as much as possible without triggering significant incremental compile time or code size growth. - CompilerOptLevel_O2 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O2) - // Optimize for fast execution as much as possible. - CompilerOptLevel_O3 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O3) - // Optimize for small code size as much as possible without triggering significant incremental compile time or execution time slowdowns. - CompilerOptLevel_Os = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Os) - // Optimize for small code size as much as possible. - CompilerOptLevel_Oz = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Oz) - ) - - const ( - // Native dynamic library format. - CompilerOutputFormat_Native = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Native) - // WebAssembly with AOT compiled codes in custom section. - CompilerOutputFormat_Wasm = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Wasm) - ) - ``` + The AOT compiler options configure the behavior about optimization level, output format, dump IR, and generic binary. + + ```go + const ( + // Disable as many optimizations as possible. + CompilerOptLevel_O0 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O0) + // Optimize quickly without destroying debuggability. + CompilerOptLevel_O1 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O1) + // Optimize for fast execution as much as possible without triggering significant incremental compile time or code size growth. + CompilerOptLevel_O2 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O2) + // Optimize for fast execution as much as possible. + CompilerOptLevel_O3 = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_O3) + // Optimize for small code size as much as possible without triggering significant incremental compile time or execution time slowdowns. + CompilerOptLevel_Os = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Os) + // Optimize for small code size as much as possible. + CompilerOptLevel_Oz = CompilerOptimizationLevel(C.WasmEdge_CompilerOptimizationLevel_Oz) + ) - These configurations are only effective in `Compiler` contexts. + const ( + // Native dynamic library format. + CompilerOutputFormat_Native = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Native) + // WebAssembly with AOT compiled codes in custom section. + CompilerOutputFormat_Wasm = CompilerOutputFormat(C.WasmEdge_CompilerOutputFormat_Wasm) + ) + ``` - ```go - conf := wasmedge.NewConfigure() + These configurations are only effective in `Compiler` contexts. - // By default, the optimization level is O3. - conf.SetCompilerOptimizationLevel(wasmedge.CompilerOptLevel_O2) - // By default, the output format is universal WASM. - conf.SetCompilerOutputFormat(wasmedge.CompilerOutputFormat_Native) - // By default, the dump IR is `false`. - conf.SetCompilerDumpIR(true) - // By default, the generic binary is `false`. - conf.SetCompilerGenericBinary(true) + ```go + conf := wasmedge.NewConfigure() - conf.Release() - ``` + // By default, the optimization level is O3. + conf.SetCompilerOptimizationLevel(wasmedge.CompilerOptLevel_O2) + // By default, the output format is universal WASM. + conf.SetCompilerOutputFormat(wasmedge.CompilerOutputFormat_Native) + // By default, the dump IR is `false`. + conf.SetCompilerDumpIR(true) + // By default, the generic binary is `false`. + conf.SetCompilerGenericBinary(true) + + conf.Release() + ``` 5. Statistics options - The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` objects. + The statistics options configure the behavior about instruction counting, cost measuring, and time measuring in both runtime and AOT compiler. These configurations are effective in `Compiler`, `VM`, and `Executor` objects. - ```go - conf := wasmedge.NewConfigure() + ```go + conf := wasmedge.NewConfigure() - // By default, the instruction counting is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsInstructionCounting(true) - // By default, the cost measurement is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsTimeMeasuring(true) - // By default, the time measurement is `false` when running a compiled-WASM or a pure-WASM. - conf.SetStatisticsCostMeasuring(true) + // By default, the instruction counting is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsInstructionCounting(true) + // By default, the cost measurement is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsTimeMeasuring(true) + // By default, the time measurement is `false` when running a compiled-WASM or a pure-WASM. + conf.SetStatisticsCostMeasuring(true) - conf.Release() - ``` + conf.Release() + ``` ### Statistics @@ -878,46 +878,46 @@ Before using statistics, the statistics configuration must be set. Otherwise, th 1. Instruction counter - The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` object from the `VM` object, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. + The instruction counter can help developers to profile the performance of WASM running. Developers can retrieve the `Statistics` object from the `VM` object, or create a new one for the `Executor` creation. The details will be introduced in the next partitions. - ```go - stat := wasmedge.NewStatistics() - // ... After running the WASM functions with the `Statistics` object + ```go + stat := wasmedge.NewStatistics() + // ... After running the WASM functions with the `Statistics` object - count := stat.GetInstrCount() - ips := stat.GetInstrPerSecond() - stat.Release() - ``` + count := stat.GetInstrCount() + ips := stat.GetInstrPerSecond() + stat.Release() + ``` 2. Cost table - The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` object. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. - - ```c - stat := wasmedge.NewStatistics() - - costtable := []uint64{ - 0, 0, - 10, /* 0x02: Block */ - 11, /* 0x03: Loop */ - 12, /* 0x04: If */ - 12, /* 0x05: Else */ - 0, 0, 0, 0, 0, 0, - 20, /* 0x0C: Br */ - 21, /* 0x0D: Br_if */ - 22, /* 0x0E: Br_table */ - 0, - } - // Developers can set the costs of each instruction. The value not covered will be 0. - - WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); - stat.SetCostTable() - stat.SetCostLimit(5000000) - - // ... After running the WASM functions with the `Statistics` object - cost := stat.GetTotalCost() - stat.Release() - ``` + The cost table is to accumulate the cost of instructions with their weights. Developers can set the cost table array (the indices are the byte code value of instructions, and the values are the cost of instructions) into the `Statistics` object. If the cost limit value is set, the execution will return the `cost limit exceeded` error immediately when exceeds the cost limit in runtime. + + ```c + stat := wasmedge.NewStatistics() + + costtable := []uint64{ + 0, 0, + 10, /* 0x02: Block */ + 11, /* 0x03: Loop */ + 12, /* 0x04: If */ + 12, /* 0x05: Else */ + 0, 0, 0, 0, 0, 0, + 20, /* 0x0C: Br */ + 21, /* 0x0D: Br_if */ + 22, /* 0x0E: Br_table */ + 0, + } + // Developers can set the costs of each instruction. The value not covered will be 0. + + WasmEdge_StatisticsSetCostTable(StatCxt, CostTable, 16); + stat.SetCostTable() + stat.SetCostLimit(5000000) + + // ... After running the WASM functions with the `Statistics` object + cost := stat.GetTotalCost() + stat.Release() + ``` ## WasmEdge VM @@ -947,157 +947,157 @@ The following shows the example of running the WASM for getting the Fibonacci. T 1. Run WASM functions rapidly - Create a new Go project first: - - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` - - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current `wasmedge_test` directory, and create and edit the Go file `main.go` as following: - - ```go - package main + Create a new Go project first: - import ( - "fmt" + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - "github.com/second-state/WasmEdge-go/wasmedge" - ) + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current `wasmedge_test` directory, and create and edit the Go file `main.go` as following: - func main() { - // Set the logging level. - wasmedge.SetLogErrorLevel() + ```go + package main - // Create the configure context and add the WASI support. - // This step is not necessary unless you need WASI support. - conf := wasmedge.NewConfigure(wasmedge.WASI) - // Create VM with the configure. - vm := wasmedge.NewVMWithConfig(conf) + import ( + "fmt" - res, err := vm.RunWasmFile("fibonacci.wasm", "fib", uint32(21)) - if err == nil { - fmt.Println("Get fibonacci[21]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - vm.Release() - conf.Release() - } - ``` + "github.com/second-state/WasmEdge-go/wasmedge" + ) - Then you can build and run the Golang application with the WasmEdge Golang SDK: (the 21 Fibonacci number is 17711 in 0-based index) - - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 - $ go build - $ ./wasmedge_test - Get fibonacci[21]: 17711 - ``` + func main() { + // Set the logging level. + wasmedge.SetLogErrorLevel() + + // Create the configure context and add the WASI support. + // This step is not necessary unless you need WASI support. + conf := wasmedge.NewConfigure(wasmedge.WASI) + // Create VM with the configure. + vm := wasmedge.NewVMWithConfig(conf) + + res, err := vm.RunWasmFile("fibonacci.wasm", "fib", uint32(21)) + if err == nil { + fmt.Println("Get fibonacci[21]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } + + vm.Release() + conf.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: (the 21 Fibonacci number is 17711 in 0-based index) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 + $ go build + $ ./wasmedge_test + Get fibonacci[21]: 17711 + ``` 2. Instantiate and run WASM functions manually - Besides the above example, developers can run the WASM functions step-by-step with `VM` object APIs: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - // Set the logging level. - wasmedge.SetLogErrorLevel() - - // Create VM. - vm := wasmedge.NewVM() - var err error - var res []interface{} - - // Step 1: Load WASM file. - err = vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - // Developers can load, validate, and instantiate another WASM module - // to replace the instantiated one. In this case, the old module will - // be cleared, but the registered modules are still kept. - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // Step 4: Execute WASM functions. Parameters: (funcname, args...) - res, err = vm.Execute("fib", uint32(25)) - // Developers can execute functions repeatedly after instantiation. - if err == nil { - fmt.Println("Get fibonacci[25]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - vm.Release() - } - ``` + Besides the above example, developers can run the WASM functions step-by-step with `VM` object APIs: - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + ```go + package main - ```bash - $ go build - $ ./wasmedge_test - Get fibonacci[25]: 121393 - ``` + import ( + "fmt" - The following graph explains the status of the `VM` object. - - ```text - |========================| - |------->| VM: Initiated | - | |========================| - | | - | LoadWasm - | | - | v - | |========================| - |--------| VM: Loaded |<-------| - | |========================| | - | | ^ | - | Validate | | - Cleanup | LoadWasm | - | v | LoadWasm - | |========================| | - |--------| VM: Validated | | - | |========================| | - | | ^ | - | Instantiate | | - | | RegisterModule | - | v | | - | |========================| | - |--------| VM: Instantiated |--------| - |========================| - | ^ - | | - -------------- - Instantiate, Execute, ExecuteRegistered, - ExecuteBindgen, ExecuteBindgenRegistered - ``` + "github.com/second-state/WasmEdge-go/wasmedge" + ) - The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or import objects in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. + func main() { + // Set the logging level. + wasmedge.SetLogErrorLevel() + + // Create VM. + vm := wasmedge.NewVM() + var err error + var res []interface{} + + // Step 1: Load WASM file. + err = vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } + + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + // Developers can load, validate, and instantiate another WASM module + // to replace the instantiated one. In this case, the old module will + // be cleared, but the registered modules are still kept. + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // Step 4: Execute WASM functions. Parameters: (funcname, args...) + res, err = vm.Execute("fib", uint32(25)) + // Developers can execute functions repeatedly after instantiation. + if err == nil { + fmt.Println("Get fibonacci[25]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } + + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go build + $ ./wasmedge_test + Get fibonacci[25]: 121393 + ``` + + The following graph explains the status of the `VM` object. + + ```text + |========================| + |------->| VM: Initiated | + | |========================| + | | + | LoadWasm + | | + | v + | |========================| + |--------| VM: Loaded |<-------| + | |========================| | + | | ^ | + | Validate | | + Cleanup | LoadWasm | + | v | LoadWasm + | |========================| | + |--------| VM: Validated | | + | |========================| | + | | ^ | + | Instantiate | | + | | RegisterModule | + | v | | + | |========================| | + |--------| VM: Instantiated |--------| + |========================| + | ^ + | | + -------------- + Instantiate, Execute, ExecuteRegistered, + ExecuteBindgen, ExecuteBindgenRegistered + ``` + + The status of the `VM` context would be `Inited` when created. After loading WASM successfully, the status will be `Loaded`. After validating WASM successfully, the status will be `Validated`. After instantiating WASM successfully, the status will be `Instantiated`, and developers can invoke functions. Developers can register WASM or import objects in any status, but they should instantiate WASM again. Developers can also load WASM in any status, and they should validate and instantiate the WASM module before function invocation. When in the `Instantiated` status, developers can instantiate the WASM module again to reset the old WASM runtime structures. ### VM Creations @@ -1133,44 +1133,44 @@ WasmEdge provides the following built-in pre-registrations. 1. [WASI (WebAssembly System Interface)](https://github.com/WebAssembly/WASI) - Developers can turn on the WASI support for VM in the `Configure` object. + Developers can turn on the WASI support for VM in the `Configure` object. - ```go - conf := wasmedge.NewConfigure(wasmedge.WASI) - // Or you can set the `wasmedge.WASI` into the configure object through `(*Configure).AddConfig`. - vm := wasmedge.NewVMWithConfig(conf) - vm.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WASI) + // Or you can set the `wasmedge.WASI` into the configure object through `(*Configure).AddConfig`. + vm := wasmedge.NewVMWithConfig(conf) + vm.Release() - // The following API can retrieve the pre-registration import objects from the VM object. - // This API will return `nil` if the corresponding pre-registration is not set into the configuration. - wasiconf := conf.GetImportObject(wasmedge.WASI) - // Initialize the WASI. - wasiconf.InitWasi(/* ... ignored */) + // The following API can retrieve the pre-registration import objects from the VM object. + // This API will return `nil` if the corresponding pre-registration is not set into the configuration. + wasiconf := conf.GetImportObject(wasmedge.WASI) + // Initialize the WASI. + wasiconf.InitWasi(/* ... ignored */) - conf.Release() - ``` + conf.Release() + ``` - And also can create the WASI import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WASI import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). 2. [WasmEdge_Process](https://crates.io/crates/wasmedge_process_interface) - This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` host functions. + This pre-registration is for the process interface for WasmEdge on `Rust` sources. After turning on this pre-registration, the VM will support the `wasmedge_process` host functions. - ```go - conf := wasmedge.NewConfigure(wasmedge.WasmEdge_PROCESS) - vm := wasmedge.NewVMWithConfig(conf) - vm.Release() + ```go + conf := wasmedge.NewConfigure(wasmedge.WasmEdge_PROCESS) + vm := wasmedge.NewVMWithConfig(conf) + vm.Release() - // The following API can retrieve the pre-registration import objects from the VM object. - // This API will return `nil` if the corresponding pre-registration is not set into the configuration. - procconf := conf.GetImportObject(wasmedge.WasmEdge_PROCESS) - // Initialize the WasmEdge_Process. - procconf.InitWasmEdgeProcess(/* ... ignored */) + // The following API can retrieve the pre-registration import objects from the VM object. + // This API will return `nil` if the corresponding pre-registration is not set into the configuration. + procconf := conf.GetImportObject(wasmedge.WasmEdge_PROCESS) + // Initialize the WasmEdge_Process. + procconf.InitWasmEdgeProcess(/* ... ignored */) - conf.Release() - ``` + conf.Release() + ``` - And also can create the WasmEdge_Process import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). + And also can create the WasmEdge_Process import object from API. The details will be introduced in the [Host Functions](#host-functions) and the [Host Module Registrations](#host-module-registrations). ### Host Module Registrations @@ -1195,211 +1195,211 @@ In WebAssembly, the instances in WASM modules can be exported and can be importe 1. Register the WASM modules with exported module names - Unless the import objects have already contained the module names, every WASM module should be named uniquely when registering. The following shows the example. + Unless the import objects have already contained the module names, every WASM module should be named uniquely when registering. The following shows the example. - Create a new Go project first: + Create a new Go project first: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. Then create and edit the Go file `main.go` as following: + Assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory. Then create and edit the Go file `main.go` as following: - ```go - package main + ```go + package main - import "github.com/second-state/WasmEdge-go/wasmedge" + import "github.com/second-state/WasmEdge-go/wasmedge" - func main() { - // Create VM. - vm := wasmedge.NewVM() + func main() { + // Create VM. + vm := wasmedge.NewVM() - var err error - err = vm.RegisterWasmFile("module_name", "fibonacci.wasm") - // Developers can register the WASM module from `[]byte` with the - // `(*VM).RegisterWasmBuffer` function, or from `AST` object with - // the `(*VM).RegisterAST` function. - // The result status should be checked. The error will occur if the - // WASM module instantiation failed or the module name conflicts. + var err error + err = vm.RegisterWasmFile("module_name", "fibonacci.wasm") + // Developers can register the WASM module from `[]byte` with the + // `(*VM).RegisterWasmBuffer` function, or from `AST` object with + // the `(*VM).RegisterAST` function. + // The result status should be checked. The error will occur if the + // WASM module instantiation failed or the module name conflicts. - vm.Release() - } - ``` + vm.Release() + } + ``` 2. Execute the functions in registered WASM modules - Edit the Go file `main.go` as following: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - // Create VM. - vm := wasmedge.NewVM() - - var res []interface{} - var err error - // Register the WASM module from file into VM with the module name "mod". - err = vm.RegisterWasmFile("mod", "fibonacci.wasm") - // Developers can register the WASM module from `[]byte` with the - // `(*VM).RegisterWasmBuffer` function, or from `AST` object with - // the `(*VM).RegisterAST` function. - if err != nil { - fmt.Println("WASM registration failed:", err.Error()) - return - } - // The function "fib" in the "fibonacci.wasm" was exported with the module - // name "mod". As the same as host functions, other modules can import the - // function `"mod" "fib"`. - - // Execute WASM functions in registered modules. - // Unlike the execution of functions, the registered functions can be - // invoked without `(*VM).Instantiate` because the WASM module was - // instantiated when registering. - // Developers can also invoke the host functions directly with this API. - res, err = vm.ExecuteRegistered("mod", "fib", int32(25)) - if err == nil { - fmt.Println("Get fibonacci[25]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } + Edit the Go file `main.go` as following: - vm.Release() - } - ``` + ```go + package main - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + import ( + "fmt" - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 - $ go build - $ ./wasmedge_test - Get fibonacci[25]: 121393 - ``` + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + func main() { + // Create VM. + vm := wasmedge.NewVM() + + var res []interface{} + var err error + // Register the WASM module from file into VM with the module name "mod". + err = vm.RegisterWasmFile("mod", "fibonacci.wasm") + // Developers can register the WASM module from `[]byte` with the + // `(*VM).RegisterWasmBuffer` function, or from `AST` object with + // the `(*VM).RegisterAST` function. + if err != nil { + fmt.Println("WASM registration failed:", err.Error()) + return + } + // The function "fib" in the "fibonacci.wasm" was exported with the module + // name "mod". As the same as host functions, other modules can import the + // function `"mod" "fib"`. + + // Execute WASM functions in registered modules. + // Unlike the execution of functions, the registered functions can be + // invoked without `(*VM).Instantiate` because the WASM module was + // instantiated when registering. + // Developers can also invoke the host functions directly with this API. + res, err = vm.ExecuteRegistered("mod", "fib", int32(25)) + if err == nil { + fmt.Println("Get fibonacci[25]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } + + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 + $ go build + $ ./wasmedge_test + Get fibonacci[25]: 121393 + ``` ### Asynchronous Execution 1. Asynchronously run WASM functions rapidly - Assume that a new Go project is created as following: - - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` - - Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: + Assume that a new Go project is created as following: - ```go - package main + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - import ( - "fmt" + Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: - "github.com/second-state/WasmEdge-go/wasmedge" - ) + ```go + package main - func main() { - // Create VM. - vm := wasmedge.NewVM() + import ( + "fmt" - // Asynchronously run the WASM function from file and get the `wasmedge.Async` object. - async := vm.AsyncRunWasmFile("fibonacci.wasm", "fib", uint32(20)) + "github.com/second-state/WasmEdge-go/wasmedge" + ) - // Block and wait for the execution and get the results. - res, err := async.GetResult() - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - async.Release() - vm.Release() - } - ``` + func main() { + // Create VM. + vm := wasmedge.NewVM() + + // Asynchronously run the WASM function from file and get the `wasmedge.Async` object. + async := vm.AsyncRunWasmFile("fibonacci.wasm", "fib", uint32(20)) + + // Block and wait for the execution and get the results. + res, err := async.GetResult() + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + async.Release() + vm.Release() + } + ``` + + Then you can build and run: (the 20th Fibonacci number is 10946 in 0-based index) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 + $ go build + $ ./wasmedge_test + Get the result: 10946 + ``` - Then you can build and run: (the 20th Fibonacci number is 10946 in 0-based index) +2. Instantiate and asynchronously run WASM functions manually - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 - $ go build - $ ./wasmedge_test - Get the result: 10946 - ``` + Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: -2. Instantiate and asynchronously run WASM functions manually + ```go + package main - Besides the above example, developers can run the WASM functions step-by-step with `VM` context APIs: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - var err error - var res []interface{} - - // Create VM. - vm := wasmedge.NewVM() - - // Step 1: Load WASM file. - // Developers can load the WASM binary from buffer with the `(*VM).LoadWasmBuffer()` API, - // or from `wasmedge.AST` object with the `(*VM).LoadWasmAST()` API. - err := vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // Step 4: Asynchronously execute the WASM function and get the `wasmedge.Async` object. - async := vm.AsyncExecute("fib", uint32(25)) - - // Block and wait for the execution and get the results. - res, err := async.GetResult() - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - async.Release() - vm.Release() - } - ``` + import ( + "fmt" - Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + "github.com/second-state/WasmEdge-go/wasmedge" + ) - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 - $ go build - $ ./wasmedge_test - Get the result: 121393 - ``` + func main() { + var err error + var res []interface{} + + // Create VM. + vm := wasmedge.NewVM() + + // Step 1: Load WASM file. + // Developers can load the WASM binary from buffer with the `(*VM).LoadWasmBuffer()` API, + // or from `wasmedge.AST` object with the `(*VM).LoadWasmAST()` API. + err := vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } + + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // Step 4: Asynchronously execute the WASM function and get the `wasmedge.Async` object. + async := vm.AsyncExecute("fib", uint32(25)) + + // Block and wait for the execution and get the results. + res, err := async.GetResult() + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + async.Release() + vm.Release() + } + ``` + + Then you can build and run: (the 25th Fibonacci number is 121393 in 0-based index) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 + $ go build + $ ./wasmedge_test + Get the result: 121393 + ``` ### Instance Tracing @@ -1407,112 +1407,112 @@ Sometimes the developers may have requirements to get the instances of the WASM 1. Store - If the `VM` object is created without assigning a `Store` object, the `VM` context will allocate and own a `Store`. + If the `VM` object is created without assigning a `Store` object, the `VM` context will allocate and own a `Store`. - ```go - vm := wasmedge.NewVM() - store := vm.GetStore() - // The object should __NOT__ be deleted by calling `(*Store).Release`. - vm.Release() - ``` + ```go + vm := wasmedge.NewVM() + store := vm.GetStore() + // The object should __NOT__ be deleted by calling `(*Store).Release`. + vm.Release() + ``` - Developers can also create the `VM` object with a `Store` object. In this case, developers should guarantee that the `Store` object cannot be released before the `VM` object. Please refer to the [Store Objects](#store) for the details about the `Store` APIs. + Developers can also create the `VM` object with a `Store` object. In this case, developers should guarantee that the `Store` object cannot be released before the `VM` object. Please refer to the [Store Objects](#store) for the details about the `Store` APIs. - ```go - store := wasmedge.NewStore() - vm := wasmedge.NewVMWithStore(store) + ```go + store := wasmedge.NewStore() + vm := wasmedge.NewVMWithStore(store) - storemock := vm.GetStore() - // The internal store context of the `store` and the `storemock` are the same. + storemock := vm.GetStore() + // The internal store context of the `store` and the `storemock` are the same. - vm.Release() - store.Release() - ``` + vm.Release() + store.Release() + ``` 2. List exported functions - After the WASM module instantiation, developers can use the `(*VM).Execute` function to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. + After the WASM module instantiation, developers can use the `(*VM).Execute` function to invoke the exported WASM functions. For this purpose, developers may need information about the exported WASM function list. Please refer to the [Instances in runtime](#instances) for the details about the function types. - Assume that a new Go project is created as following: + Assume that a new Go project is created as following: - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` - Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: - - ```go - package main - - import ( - "fmt" - - "github.com/second-state/WasmEdge-go/wasmedge" - ) - - func main() { - // Create VM. - vm := wasmedge.NewVM() - - // Step 1: Load WASM file. - err := vm.LoadWasmFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - - // Step 2: Validate the WASM module. - err = vm.Validate() - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - - // Step 3: Instantiate the WASM module. - err = vm.Instantiate() - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - - // List the exported functions for the names and function types. - funcnames, functypes := vm.GetFunctionList() - for _, fname := range funcnames { - fmt.Println("Exported function name:", fname) - } - for _, ftype := range functypes { - // `ftype` is the `FunctionType` object of the same index in the `funcnames` array. - // Developers should __NOT__ call the `ftype.Release()`. - } - - vm.Release() - } - ``` + Then assume that the WASM file [`fibonacci.wasm`](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm) is copied into the current directory, and create and edit a Go file `main.go`: - Then you can build and run: (the only exported function in `fibonacci.wasm` is `fib`) + ```go + package main - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 - $ go build - $ ./wasmedge_test - Exported function name: fib - ``` + import ( + "fmt" - If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` object from the `VM` object and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. + "github.com/second-state/WasmEdge-go/wasmedge" + ) + + func main() { + // Create VM. + vm := wasmedge.NewVM() + + // Step 1: Load WASM file. + err := vm.LoadWasmFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } + + // Step 2: Validate the WASM module. + err = vm.Validate() + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + + // Step 3: Instantiate the WASM module. + err = vm.Instantiate() + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + + // List the exported functions for the names and function types. + funcnames, functypes := vm.GetFunctionList() + for _, fname := range funcnames { + fmt.Println("Exported function name:", fname) + } + for _, ftype := range functypes { + // `ftype` is the `FunctionType` object of the same index in the `funcnames` array. + // Developers should __NOT__ call the `ftype.Release()`. + } + + vm.Release() + } + ``` + + Then you can build and run: (the only exported function in `fibonacci.wasm` is `fib`) + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 + $ go build + $ ./wasmedge_test + Exported function name: fib + ``` + + If developers want to get the exported function names in the registered WASM modules, please retrieve the `Store` object from the `VM` object and refer to the APIs of [Store Contexts](#store) to list the registered functions by the module name. 3. Get function types - The `VM` object provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. + The `VM` object provides APIs to find the function type by function name. Please refer to the [Instances in runtime](#instances) for the details about the function types. - ```go - // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. - functype := vm.GetFunctionType("fib") - // Developers can get the function types of functions in the registered modules via the - // `(*VM).GetFunctionTypeRegistered` API with the function name and the module name. - // If the function is not found, these APIs will return `nil`. - // Developers should __NOT__ call the `(*FunctionType).Release` function of the returned object. - ``` + ```go + // Assume that a WASM module is instantiated in `vm` which is a `wasmedge.VM` object. + functype := vm.GetFunctionType("fib") + // Developers can get the function types of functions in the registered modules via the + // `(*VM).GetFunctionTypeRegistered` API with the function name and the module name. + // If the function is not found, these APIs will return `nil`. + // Developers should __NOT__ call the `(*FunctionType).Release` function of the returned object. + ``` ## WasmEdge Runtime @@ -1693,80 +1693,80 @@ The `Executor` object is the executor for both WASM and compiled-WASM. This obje 1. Register modules - As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` objects, developers can register `ImportObject` or `AST` objects into the `Store` object by the `Executor` APIs. For the details of import objects, please refer to the [Host Functions](#host-functions)). - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Register the loaded WASM `ast` into store with the export module name "mod". - res := executor.RegisterModule(store, ast, "mod") - if err != nil { - fmt.Println("WASM registration FAILED:", err.Error()) - return - } - - // Assume that the `impobj` is the `*wasmedge.ImportObject` for host functions. - impobj := ... - err = executor.RegisterImport(store, impobj) - if err != nil { - fmt.Println("Import object registration FAILED:", err.Error()) - return - } - - executor.Release() - stat.Release() - store.Release() - impobj.Release() - ``` + As the same of [registering host modules](#host-module-registrations) or [importing WASM modules](#wasm-registrations-and-executions) in `VM` objects, developers can register `ImportObject` or `AST` objects into the `Store` object by the `Executor` APIs. For the details of import objects, please refer to the [Host Functions](#host-functions)). + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Register the loaded WASM `ast` into store with the export module name "mod". + res := executor.RegisterModule(store, ast, "mod") + if err != nil { + fmt.Println("WASM registration FAILED:", err.Error()) + return + } + + // Assume that the `impobj` is the `*wasmedge.ImportObject` for host functions. + impobj := ... + err = executor.RegisterImport(store, impobj) + if err != nil { + fmt.Println("Import object registration FAILED:", err.Error()) + return + } + + executor.Release() + stat.Release() + store.Release() + impobj.Release() + ``` 2. Instantiate modules - WASM or compiled-WASM modules should be instantiated before the function invocation. Note that developers can only instantiate one module into the `Store` object, and in that case, the old instantiated module will be cleaned. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` object. - - ```go - // ... - // Assume that the `ast` is the output `*wasmedge.AST` object from the loader - // and has passed the validation. - // Assume that the `conf` is the `*wasmedge.Configure` object. - - // Create the statistics object. This step is not necessary if the statistics - // is not needed. - stat := wasmedge.NewStatistics() - // Create the executor object. - // For executor creation with default configuration and without statistics, - // you can use `wasmedge.NewExecutor()` instead. - executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) - // Create the store object. The store is the WASM runtime structure core. - store := wasmedge.NewStore() - - // Instantiate the WASM module. - err := executor.Instantiate(stpre, ast) - if err != nil { - fmt.Println("WASM instantiation FAILED:", err.Error()) - return - } - - executor.Release() - stat.Release() - store.Release() - ``` + WASM or compiled-WASM modules should be instantiated before the function invocation. Note that developers can only instantiate one module into the `Store` object, and in that case, the old instantiated module will be cleaned. Before instantiating a WASM module, please check the [import section](https://webassembly.github.io/spec/core/syntax/modules.html#syntax-import) for ensuring the imports are registered into the `Store` object. + + ```go + // ... + // Assume that the `ast` is the output `*wasmedge.AST` object from the loader + // and has passed the validation. + // Assume that the `conf` is the `*wasmedge.Configure` object. + + // Create the statistics object. This step is not necessary if the statistics + // is not needed. + stat := wasmedge.NewStatistics() + // Create the executor object. + // For executor creation with default configuration and without statistics, + // you can use `wasmedge.NewExecutor()` instead. + executor := wasmedge.NewExecutorWithConfigAndStatistics(conf, stat) + // Create the store object. The store is the WASM runtime structure core. + store := wasmedge.NewStore() + + // Instantiate the WASM module. + err := executor.Instantiate(stpre, ast) + if err != nil { + fmt.Println("WASM instantiation FAILED:", err.Error()) + return + } + + executor.Release() + stat.Release() + store.Release() + ``` 3. Invoke functions - As the same as function invocation via the `VM` object, developers can invoke the functions of the instantiated or registered modules. The APIs, `(*Executor).Invoke` and `(*Executor).InvokeRegistered`, are similar as the APIs of the `VM` object. Please refer to the [VM context workflows](#wasm-execution-example-with-vm-object) for details. + As the same as function invocation via the `VM` object, developers can invoke the functions of the instantiated or registered modules. The APIs, `(*Executor).Invoke` and `(*Executor).InvokeRegistered`, are similar as the APIs of the `VM` object. Please refer to the [VM context workflows](#wasm-execution-example-with-vm-object) for details. ### AST Module @@ -1797,60 +1797,60 @@ ast.Release() 1. List instances - ```go - store := wasmedge.NewStore() - // ... - // Instantiate a WASM module via the `*wasmedge.Executor` object. - // ... - - // Try to list the exported functions of the instantiated WASM module. - // Take the function instances for example here. - funcnames := store.ListFunction() - for _, name := range funcnames { - fmt.Println("Exported function name:", name) - } + ```go + store := wasmedge.NewStore() + // ... + // Instantiate a WASM module via the `*wasmedge.Executor` object. + // ... - store.Release() - ``` + // Try to list the exported functions of the instantiated WASM module. + // Take the function instances for example here. + funcnames := store.ListFunction() + for _, name := range funcnames { + fmt.Println("Exported function name:", name) + } + + store.Release() + ``` - Developers can list the function instance exported names of the registered modules via the `(*Store).ListFunctionRegistered()` API with the module name. + Developers can list the function instance exported names of the registered modules via the `(*Store).ListFunctionRegistered()` API with the module name. 2. Find instances - ```go - store := wasmedge.NewStore() - // ... - // Instantiate a WASM module via the `*wasmedge.Executor` object. - // ... + ```go + store := wasmedge.NewStore() + // ... + // Instantiate a WASM module via the `*wasmedge.Executor` object. + // ... - // Try to find the exported functions of the instantiated WASM module. - // Take the function instances for example here. - funcobj := store.FindFunction("fib") - // `funcobj` will be `nil` if the function not found. + // Try to find the exported functions of the instantiated WASM module. + // Take the function instances for example here. + funcobj := store.FindFunction("fib") + // `funcobj` will be `nil` if the function not found. - store.Release() - ``` + store.Release() + ``` - Developers can retrieve the exported function instances of the registered modules via the `(*Store).FindFunctionRegistered` API with the module name. + Developers can retrieve the exported function instances of the registered modules via the `(*Store).FindFunctionRegistered` API with the module name. 3. List registered modules - With the module names, developers can list the exported instances of the registered modules with their names. + With the module names, developers can list the exported instances of the registered modules with their names. - ```go - store := wasmedge.NewStore() - // ... - // Instantiate a WASM module via the `*wasmedge.Executor` object. - // ... + ```go + store := wasmedge.NewStore() + // ... + // Instantiate a WASM module via the `*wasmedge.Executor` object. + // ... - // Try to list the registered WASM modules. - modnames := store.ListModule() - for _, name := range modnames { - fmt.Println("Registered module names:", name) - } + // Try to list the registered WASM modules. + modnames := store.ListModule() + for _, name := range modnames { + fmt.Println("Registered module names:", name) + } - store.Release() - ``` + store.Release() + ``` ### Instances @@ -1858,133 +1858,133 @@ The instances are the runtime structures of WASM. Developers can retrieve the in 1. Function instance - [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` objects for host functions and add them into an `ImportObject` object for registering into a `VM` or a `Store`. For both host functions and the functions get from `Store`, developers can retrieve the `FunctionType` from the `Function` objects. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). + [Host functions](https://webassembly.github.io/spec/core/exec/runtime.html#syntax-hostfunc) are functions outside WebAssembly and passed to WASM modules as imports. In WasmEdge, developers can create the `Function` objects for host functions and add them into an `ImportObject` object for registering into a `VM` or a `Store`. For both host functions and the functions get from `Store`, developers can retrieve the `FunctionType` from the `Function` objects. For the details of the `Host Function` guide, please refer to the [next chapter](#host-functions). - ```go - funcinst := ... - // `funcobj` is the `*wasmedge.Function` retrieved from the store object. - functype := funcobj.GetFunctionType() - // The `funcobj` retrieved from the store object should __NOT__ be released. - // The `functype` retrieved from the `funcobj` should __NOT__ be released. - ``` + ```go + funcinst := ... + // `funcobj` is the `*wasmedge.Function` retrieved from the store object. + functype := funcobj.GetFunctionType() + // The `funcobj` retrieved from the store object should __NOT__ be released. + // The `functype` retrieved from the `funcobj` should __NOT__ be released. + ``` 2. Table instance - In WasmEdge, developers can create the `Table` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Table` objects supply APIs to control the data in table instances. - - ```go - lim := wasmedge.NewLimitWithMax(10, 20) - // Create the table type with limit and the `FuncRef` element type. - tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef, lim) - // Create the table instance with table type. - tabinst := wasmedge.NewTable(tabtype) - // Delete the table type. - tabtype.Release() - - gottabtype := tabinst.GetTableType() - // The `gottabtype` got from table instance is owned by the `tabinst` - // and should __NOT__ be released. - reftype := gottabtype.GetRefType() - // The `reftype` will be `wasmedge.RefType_FuncRef`. - - var gotdata interface{} - data := wasmedge.NewFuncRef(5) - err := tabinst.SetData(data, 3) - // Set the function index 5 to the table[3]. - - // The following line will get an "out of bounds table access" error - // because the position (13) is out of the table size (10): - // err = tabinst.SetData(data, 13) - - gotdata, err = tabinst.GetData(3) - // Get the FuncRef value of the table[3]. - - // The following line will get an "out of bounds table access" error - // because the position (13) is out of the table size (10): - // gotdata, err = tabinst.GetData(13) - - tabsize := tabinst.GetSize() - // `tabsize` will be 10. - err = tabinst.Grow(6) - // Grow the table size of 6, the table size will be 16. - - // The following line will get an "out of bounds table access" error - // because the size (16 + 6) will reach the table limit (20): - // err = tabinst.Grow(6) - - tabinst.Release() - ``` + In WasmEdge, developers can create the `Table` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Table` objects supply APIs to control the data in table instances. + + ```go + lim := wasmedge.NewLimitWithMax(10, 20) + // Create the table type with limit and the `FuncRef` element type. + tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef, lim) + // Create the table instance with table type. + tabinst := wasmedge.NewTable(tabtype) + // Delete the table type. + tabtype.Release() + + gottabtype := tabinst.GetTableType() + // The `gottabtype` got from table instance is owned by the `tabinst` + // and should __NOT__ be released. + reftype := gottabtype.GetRefType() + // The `reftype` will be `wasmedge.RefType_FuncRef`. + + var gotdata interface{} + data := wasmedge.NewFuncRef(5) + err := tabinst.SetData(data, 3) + // Set the function index 5 to the table[3]. + + // The following line will get an "out of bounds table access" error + // because the position (13) is out of the table size (10): + // err = tabinst.SetData(data, 13) + + gotdata, err = tabinst.GetData(3) + // Get the FuncRef value of the table[3]. + + // The following line will get an "out of bounds table access" error + // because the position (13) is out of the table size (10): + // gotdata, err = tabinst.GetData(13) + + tabsize := tabinst.GetSize() + // `tabsize` will be 10. + err = tabinst.Grow(6) + // Grow the table size of 6, the table size will be 16. + + // The following line will get an "out of bounds table access" error + // because the size (16 + 6) will reach the table limit (20): + // err = tabinst.Grow(6) + + tabinst.Release() + ``` 3. Memory instance - In WasmEdge, developers can create the `Memory` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Memory` objects supply APIs to control the data in memory instances. - - ```go - lim := wasmedge.NewLimitWithMax(1, 5) - // Create the memory type with limit. The memory page size is 64KiB. - memtype := wasmedge.NewMemoryType(lim) - // Create the memory instance with memory type. - meminst := wasmedge.NewMemory(memtype) - // Delete the memory type. - memtype.Release() - - data := []byte("A quick brown fox jumps over the lazy dog") - err := meminst.SetData(data, 0x1000, 10) - // Set the data[0:9] to the memory[4096:4105]. - - // The following line will get an "out of bounds memory access" error - // because [65535:65544] is out of 1 page size (65536): - // err = meminst.SetData(data, 0xFFFF, 10) - - var gotdata []byte - gotdata, err = meminst.GetData(0x1000, 10) - // Get the memory[4096:4105]. The `gotdata` will be `[]byte("A quick br"). - // The following line will get an "out of bounds memory access" error - // because [65535:65544] is out of 1 page size (65536): - // gotdata, err = meminst.Getdata(0xFFFF, 10) - - pagesize := meminst.GetPageSize() - // `pagesize` will be 1. - err = meminst.GrowPage(2) - // Grow the page size of 2, the page size of the memory instance will be 3. - - // The following line will get an "out of bounds memory access" error - // because the size (3 + 3) will reach the memory limit (5): - // err = meminst.GetPageSize(3) - - meminst.Release() - ``` + In WasmEdge, developers can create the `Memory` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Memory` objects supply APIs to control the data in memory instances. + + ```go + lim := wasmedge.NewLimitWithMax(1, 5) + // Create the memory type with limit. The memory page size is 64KiB. + memtype := wasmedge.NewMemoryType(lim) + // Create the memory instance with memory type. + meminst := wasmedge.NewMemory(memtype) + // Delete the memory type. + memtype.Release() + + data := []byte("A quick brown fox jumps over the lazy dog") + err := meminst.SetData(data, 0x1000, 10) + // Set the data[0:9] to the memory[4096:4105]. + + // The following line will get an "out of bounds memory access" error + // because [65535:65544] is out of 1 page size (65536): + // err = meminst.SetData(data, 0xFFFF, 10) + + var gotdata []byte + gotdata, err = meminst.GetData(0x1000, 10) + // Get the memory[4096:4105]. The `gotdata` will be `[]byte("A quick br"). + // The following line will get an "out of bounds memory access" error + // because [65535:65544] is out of 1 page size (65536): + // gotdata, err = meminst.Getdata(0xFFFF, 10) + + pagesize := meminst.GetPageSize() + // `pagesize` will be 1. + err = meminst.GrowPage(2) + // Grow the page size of 2, the page size of the memory instance will be 3. + + // The following line will get an "out of bounds memory access" error + // because the size (3 + 3) will reach the memory limit (5): + // err = meminst.GetPageSize(3) + + meminst.Release() + ``` 4. Global instance - In WasmEdge, developers can create the `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Global` objects supply APIs to control the value in global instances. - - ```go - // Create the global type with value type and mutation. - globtype := wasmedge.NewGlobalType(wasmedge.ValType_I64, wasmedge.ValMut_Var) - // Create the global instance with value and global type. - globinst := wasmedge.NewGlobal(globtype, uint64(1000)) - // Delete the global type. - globtype.Release() - - gotglobtype := globinst.GetGlobalType() - // The `gotglobtype` got from global instance is owned by the `globinst` - // and should __NOT__ be released. - valtype := gotglobtype.GetValType() - // The `valtype` will be `wasmedge.ValType_I64`. - valmut := gotglobtype.GetMutability() - // The `valmut` will be `wasmedge.ValMut_Var`. - - globinst.SetValue(uint64(888)) - // Set the value u64(888) to the global. - // This function will do nothing if the value type mismatched or the - // global mutability is `wasmedge.ValMut_Const`. - gotval := globinst.GetValue() - // The `gotbal` will be `interface{}` which the type is `uint64` and - // the value is 888. - - globinst.Release() - ``` + In WasmEdge, developers can create the `Global` objects and add them into an `ImportObject` object for registering into a `VM` or a `Store`. The `Global` objects supply APIs to control the value in global instances. + + ```go + // Create the global type with value type and mutation. + globtype := wasmedge.NewGlobalType(wasmedge.ValType_I64, wasmedge.ValMut_Var) + // Create the global instance with value and global type. + globinst := wasmedge.NewGlobal(globtype, uint64(1000)) + // Delete the global type. + globtype.Release() + + gotglobtype := globinst.GetGlobalType() + // The `gotglobtype` got from global instance is owned by the `globinst` + // and should __NOT__ be released. + valtype := gotglobtype.GetValType() + // The `valtype` will be `wasmedge.ValType_I64`. + valmut := gotglobtype.GetMutability() + // The `valmut` will be `wasmedge.ValMut_Var`. + + globinst.SetValue(uint64(888)) + // Set the value u64(888) to the global. + // This function will do nothing if the value type mismatched or the + // global mutability is `wasmedge.ValMut_Const`. + gotval := globinst.GetValue() + // The `gotbal` will be `interface{}` which the type is `uint64` and + // the value is 888. + + globinst.Release() + ``` ### Host Functions @@ -1992,355 +1992,355 @@ The instances are the runtime structures of WASM. Developers can retrieve the in 1. Host function allocation - Developers can define Go functions with the following function signature as the host function body: - - ```go - type hostFunctionSignature func( - data interface{}, mem *Memory, params []interface{}) ([]interface{}, Result) - ``` + Developers can define Go functions with the following function signature as the host function body: - The example of an `add` host function to add 2 `i32` values: + ```go + type hostFunctionSignature func( + data interface{}, mem *Memory, params []interface{}) ([]interface{}, Result) + ``` - ```go - func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) + The example of an `add` host function to add 2 `i32` values: - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res - - // Return - return returns, wasmedge.Result_Success - } - ``` - - Then developers can create `Function` object with the host function body and function type: - - ```go - // Create a function type: {i32, i32} -> {i32}. - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - - // Create a function context with the function type and host function body. - // The third parameter is the pointer to the additional data. - // Developers should guarantee the life cycle of the data, and it can be - // `nil` if the external data is not needed. - // The last parameter can be 0 if developers do not need the cost measuring. - func_add := wasmedge.NewFunction(functype, host_add, nil, 0) - - // If the function object is not added into an import object object, it should be released. - func_add.Release() - functype.Release() - ``` + ```go + func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) -2. Import object object + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res - The `ImportObject` object holds an exporting module name and the instances. Developers can add the `Function`, `Memory`, `Table`, and `Global` instances with their exporting names. + // Return + return returns, wasmedge.Result_Success + } + ``` - ```go - // Host function body definition. - func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) + Then developers can create `Function` object with the host function body and function type: - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res + ```go + // Create a function type: {i32, i32} -> {i32}. + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) - // Return - return returns, wasmedge.Result_Success - } + // Create a function context with the function type and host function body. + // The third parameter is the pointer to the additional data. + // Developers should guarantee the life cycle of the data, and it can be + // `nil` if the external data is not needed. + // The last parameter can be 0 if developers do not need the cost measuring. + func_add := wasmedge.NewFunction(functype, host_add, nil, 0) - // Create the import object with the module name "module". - impobj := wasmedge.NewImportObject("module") - - // Create and add a function instance into the import object with export name "add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) - functype.Release() - impobj.AddFunction("add", hostfunc) - - // Create and add a table instance into the import object with export name "table". - tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef ,wasmedge.NewLimitWithMax(10, 20)) - hosttab := wasmedge.NewTable(tabtype) - tabtype.Release() - impobj.AddTable("table", hosttab) - - // Create and add a memory instance into the import object with export name "memory". - memtype := wasmedge.NewMemoryType(wasmedge.NewLimitWithMax(1, 2)) - hostmem := wasmedge.NewMemory(memtype) - memtype.Release() - impobj.AddMemory("memory", hostmem) - - // Create and add a global instance into the import object with export name "global". - globtype := wasmedge.NewGlobalType(wasmedge.ValType_I32, wasmedge.ValMut_Var) - hostglob := wasmedge.NewGlobal(globtype, uint32(666)) - globtype.Release() - impobj.AddGlobal("global", hostglob) - - // The import objects should be released. - // Developers should __NOT__ release the instances added into the import object objects. - impobj.Release() - ``` + // If the function object is not added into an import object object, it should be released. + func_add.Release() + functype.Release() + ``` -3. Specified import object +2. Import object object - `wasmedge.NewWasiImportObject()` API can create and initialize the `WASI` import object. `wasmedge.NewWasmEdgeProcessImportObject()` API can create and initialize the `wasmedge_process` import object. Developers can create these import object objects and register them into the `Store` or `VM` objects rather than adjust the settings in the `Configure` objects. - - ```go - wasiobj := wasmedge.NewWasiImportObject( - os.Args[1:], // The args - os.Environ(), // The envs - []string{".:."}, // The mapping preopens - ) - procobj := wasmedge.NewWasmEdgeProcessImportObject( - []string{"ls", "echo"}, // The allowed commands - false, // Not to allow all commands - ) - - // Register the WASI and WasmEdge_Process into the VM object. - vm := wasmedge.NewVM() - vm.RegisterImport(wasiobj) - vm.RegisterImport(procobj) - - // ... Execute some WASM functions. - - // Get the WASI exit code. - exitcode := wasiobj.WasiGetExitCode() - // The `exitcode` will be 0 if the WASI function "_start" execution has no error. - // Otherwise, it will return with the related exit code. - - vm.Release() - // The import objects should be deleted. - wasiobj.Release() - procobj.Release() - ``` + The `ImportObject` object holds an exporting module name and the instances. Developers can add the `Function`, `Memory`, `Table`, and `Global` instances with their exporting names. -4. Example + ```go + // Host function body definition. + func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) - Create a new Go project first: + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res - ```bash - mkdir wasmedge_test && cd wasmedge_test - go mod init wasmedge_test - ``` + // Return + return returns, wasmedge.Result_Success + } - Assume that there is a simple WASM from the WAT as following: - - ```wasm - (module - (type $t0 (func (param i32 i32) (result i32))) - (import "extern" "func-add" (func $f-add (type $t0))) - (func (export "addTwo") (param i32 i32) (result i32) - local.get 0 - local.get 1 - call $f-add) - ) - ``` + // Create the import object with the module name "module". + impobj := wasmedge.NewImportObject("module") - Create and edit the Go file `main.go` as following: + // Create and add a function instance into the import object with export name "add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) + functype.Release() + impobj.AddFunction("add", hostfunc) + + // Create and add a table instance into the import object with export name "table". + tabtype := wasmedge.NewTableType(wasmedge.RefType_FuncRef ,wasmedge.NewLimitWithMax(10, 20)) + hosttab := wasmedge.NewTable(tabtype) + tabtype.Release() + impobj.AddTable("table", hosttab) + + // Create and add a memory instance into the import object with export name "memory". + memtype := wasmedge.NewMemoryType(wasmedge.NewLimitWithMax(1, 2)) + hostmem := wasmedge.NewMemory(memtype) + memtype.Release() + impobj.AddMemory("memory", hostmem) + + // Create and add a global instance into the import object with export name "global". + globtype := wasmedge.NewGlobalType(wasmedge.ValType_I32, wasmedge.ValMut_Var) + hostglob := wasmedge.NewGlobal(globtype, uint32(666)) + globtype.Release() + impobj.AddGlobal("global", hostglob) + + // The import objects should be released. + // Developers should __NOT__ release the instances added into the import object objects. + impobj.Release() + ``` - ```go - package main +3. Specified import object - import ( - "fmt" + `wasmedge.NewWasiImportObject()` API can create and initialize the `WASI` import object. `wasmedge.NewWasmEdgeProcessImportObject()` API can create and initialize the `wasmedge_process` import object. Developers can create these import object objects and register them into the `Store` or `VM` objects rather than adjust the settings in the `Configure` objects. - "github.com/second-state/WasmEdge-go/wasmedge" - ) + ```go + wasiobj := wasmedge.NewWasiImportObject( + os.Args[1:], // The args + os.Environ(), // The envs + []string{".:."}, // The mapping preopens + ) + procobj := wasmedge.NewWasmEdgeProcessImportObject( + []string{"ls", "echo"}, // The allowed commands + false, // Not to allow all commands + ) - // Host function body definition. - func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) + // Register the WASI and WasmEdge_Process into the VM object. + vm := wasmedge.NewVM() + vm.RegisterImport(wasiobj) + vm.RegisterImport(procobj) - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res + // ... Execute some WASM functions. - // Return - return returns, wasmedge.Result_Success - } + // Get the WASI exit code. + exitcode := wasiobj.WasiGetExitCode() + // The `exitcode` will be 0 if the WASI function "_start" execution has no error. + // Otherwise, it will return with the related exit code. - func main() { - // Create the VM object. - vm := wasmedge.NewVM() - - // The WASM module buffer. - wasmbuf := []byte{ - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, - } - - // Create the import object with the module name "extern". - impobj := wasmedge.NewImportObject("extern") - - // Create and add a function instance into the import object with export name "func-add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) - functype.Release() - impobj.AddFunction("func-add", hostfunc) - - // Register the import object into VM. - vm.RegisterImport(impobj) - - res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } + vm.Release() + // The import objects should be deleted. + wasiobj.Release() + procobj.Release() + ``` - impobj.Release() - vm.Release() - } - ``` +4. Example - Then you can build and run the Golang application with the WasmEdge Golang SDK: + Create a new Go project first: - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 - $ go build - $ ./wasmedge_test - Get the result: 6912 - ``` + ```bash + mkdir wasmedge_test && cd wasmedge_test + go mod init wasmedge_test + ``` -5. Host Data Example + Assume that there is a simple WASM from the WAT as following: - Developers can set a external data object to the function object, and access to the object in the function body. Assume that edit the Go file `main.go` above: + ```wasm + (module + (type $t0 (func (param i32 i32) (result i32))) + (import "extern" "func-add" (func $f-add (type $t0))) + (func (export "addTwo") (param i32 i32) (result i32) + local.get 0 + local.get 1 + call $f-add) + ) + ``` - ```go - package main + Create and edit the Go file `main.go` as following: - import ( - "fmt" + ```go + package main - "github.com/second-state/WasmEdge-go/wasmedge" - ) + import ( + "fmt" - // Host function body definition. - func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { - // add: i32, i32 -> i32 - res := params[0].(int32) + params[1].(int32) + "github.com/second-state/WasmEdge-go/wasmedge" + ) - // Set the returns - returns := make([]interface{}, 1) - returns[0] = res + // Host function body definition. + func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Return + return returns, wasmedge.Result_Success + } + + func main() { + // Create the VM object. + vm := wasmedge.NewVM() + + // The WASM module buffer. + wasmbuf := []byte{ + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, + } + + // Create the import object with the module name "extern". + impobj := wasmedge.NewImportObject("extern") + + // Create and add a function instance into the import object with export name "func-add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, nil, 0) + functype.Release() + impobj.AddFunction("func-add", hostfunc) + + // Register the import object into VM. + vm.RegisterImport(impobj) + + res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + + impobj.Release() + vm.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 + $ go build + $ ./wasmedge_test + Get the result: 6912 + ``` - // Also set the result to the data. - *data.(*int32) = res +5. Host Data Example - // Return - return returns, wasmedge.Result_Success - } + Developers can set a external data object to the function object, and access to the object in the function body. Assume that edit the Go file `main.go` above: - func main() { - // Create the VM object. - vm := wasmedge.NewVM() - - // The WASM module buffer. - wasmbuf := []byte{ - /* WASM header */ - 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, - /* Type section */ - 0x01, 0x07, 0x01, - /* function type {i32, i32} -> {i32} */ - 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, - /* Import section */ - 0x02, 0x13, 0x01, - /* module name: "extern" */ - 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, - /* extern name: "func-add" */ - 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, - /* import desc: func 0 */ - 0x00, 0x00, - /* Function section */ - 0x03, 0x02, 0x01, 0x00, - /* Export section */ - 0x07, 0x0A, 0x01, - /* export name: "addTwo" */ - 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, - /* export desc: func 0 */ - 0x00, 0x01, - /* Code section */ - 0x0A, 0x0A, 0x01, - /* code body */ - 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, - } - - // The additional data to set into the host function. - var data int32 = 0 - - // Create the import object with the module name "extern". - impobj := wasmedge.NewImportObject("extern") - - // Create and add a function instance into the import object with export name "func-add". - functype := wasmedge.NewFunctionType( - []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, - []wasmedge.ValType{wasmedge.ValType_I32}, - ) - hostfunc := wasmedge.NewFunction(functype, host_add, &data, 0) - functype.Release() - impobj.AddFunction("func-add", hostfunc) - - // Register the import object into VM. - vm.RegisterImport(impobj) - - res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) - if err == nil { - fmt.Println("Get the result:", res[0].(int32)) - } else { - fmt.Println("Error message:", err.Error()) - } - fmt.Println("Data value:", data) + ```go + package main - impobj.Release() - vm.Release() - } - ``` + import ( + "fmt" - Then you can build and run the Golang application with the WasmEdge Golang SDK: + "github.com/second-state/WasmEdge-go/wasmedge" + ) - ```bash - $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 - $ go build - $ ./wasmedge_test - Get the result: 6912 - Data value: 6912 - ``` + // Host function body definition. + func host_add(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result) { + // add: i32, i32 -> i32 + res := params[0].(int32) + params[1].(int32) + + // Set the returns + returns := make([]interface{}, 1) + returns[0] = res + + // Also set the result to the data. + *data.(*int32) = res + + // Return + return returns, wasmedge.Result_Success + } + + func main() { + // Create the VM object. + vm := wasmedge.NewVM() + + // The WASM module buffer. + wasmbuf := []byte{ + /* WASM header */ + 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, + /* Type section */ + 0x01, 0x07, 0x01, + /* function type {i32, i32} -> {i32} */ + 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, + /* Import section */ + 0x02, 0x13, 0x01, + /* module name: "extern" */ + 0x06, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6E, + /* extern name: "func-add" */ + 0x08, 0x66, 0x75, 0x6E, 0x63, 0x2D, 0x61, 0x64, 0x64, + /* import desc: func 0 */ + 0x00, 0x00, + /* Function section */ + 0x03, 0x02, 0x01, 0x00, + /* Export section */ + 0x07, 0x0A, 0x01, + /* export name: "addTwo" */ + 0x06, 0x61, 0x64, 0x64, 0x54, 0x77, 0x6F, + /* export desc: func 0 */ + 0x00, 0x01, + /* Code section */ + 0x0A, 0x0A, 0x01, + /* code body */ + 0x08, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x0B, + } + + // The additional data to set into the host function. + var data int32 = 0 + + // Create the import object with the module name "extern". + impobj := wasmedge.NewImportObject("extern") + + // Create and add a function instance into the import object with export name "func-add". + functype := wasmedge.NewFunctionType( + []wasmedge.ValType{wasmedge.ValType_I32, wasmedge.ValType_I32}, + []wasmedge.ValType{wasmedge.ValType_I32}, + ) + hostfunc := wasmedge.NewFunction(functype, host_add, &data, 0) + functype.Release() + impobj.AddFunction("func-add", hostfunc) + + // Register the import object into VM. + vm.RegisterImport(impobj) + + res, err := vm.RunWasmBuffer(wasmbuf, "addTwo", uint32(1234), uint32(5678)) + if err == nil { + fmt.Println("Get the result:", res[0].(int32)) + } else { + fmt.Println("Error message:", err.Error()) + } + fmt.Println("Data value:", data) + + impobj.Release() + vm.Release() + } + ``` + + Then you can build and run the Golang application with the WasmEdge Golang SDK: + + ```bash + $ go get github.com/second-state/WasmEdge-go/wasmedge@v0.9.2 + $ go build + $ ./wasmedge_test + Get the result: 6912 + Data value: 6912 + ``` ## WasmEdge AOT Compiler diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/_category_.json index e4d7816c..11da2c8a 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/_category_.json @@ -1,8 +1,8 @@ { - "label": "API Reference", - "position": 7, - "link": { - "type": "generated-index", - "description": "In this chapter, we will discuss the WasmEdge Go API Reference ." - } + "label": "API Reference", + "position": 7, + "link": { + "type": "generated-index", + "description": "In this chapter, we will discuss the WasmEdge Go API Reference ." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/upgrade_to_0.10.0.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/upgrade_to_0.10.0.md index 49993bcb..96509e11 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/upgrade_to_0.10.0.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/upgrade_to_0.10.0.md @@ -12,53 +12,53 @@ Due to the WasmEdge-Go API breaking changes, this document shows the guideline o 1. Merged the `ImportObject` into the `Module`. - The `ImportObject` struct which is for the host functions is merged into `Module`. Developers can use the related APIs to construct host modules. - - - `wasmedge.NewImportObject()` is changed to `wasmedge.NewModule()`. - - `(*wasmedge.ImportObject).Release()` is changed to `(*wasmedge.Module).Release()`. - - `(*wasmedge.ImportObject).AddFunction()` is changed to `(*wasmedge.Module).AddFunction()`. - - `(*wasmedge.ImportObject).AddTable()` is changed to `(*wasmedge.Module).AddTable()`. - - `(*wasmedge.ImportObject).AddMemory()` is changed to `(*wasmedge.Module).AddMemory()`. - - `(*wasmedge.ImportObject).AddGlobal()` is changed to `(*wasmedge.Module).AddGlobal()`. - - `(*wasmedge.ImportObject).NewWasiImportObject()` is changed to `(*wasmedge.Module).NewWasiModule()`. - - `(*wasmedge.ImportObject).NewWasmEdgeProcessImportObject()` is changed to `(*wasmedge.Module).NewWasmEdgeProcessModule()`. - - `(*wasmedge.ImportObject).InitWASI()` is changed to `(*wasmedge.Module).InitWASI()`. - - `(*wasmedge.ImportObject).InitWasmEdgeProcess()` is changed to `(*wasmedge.Module).InitWasmEdgeProcess()`. - - `(*wasmedge.ImportObject).WasiGetExitCode()` is changed to `(*wasmedge.Module).WasiGetExitCode`. - - `(*wasmedge.VM).RegisterImport()` is changed to `(*wasmedge.VM).RegisterModule()`. - - `(*wasmedge.VM).GetImportObject()` is changed to `(*wasmedge.VM).GetImportModule()`. - - For the new host function examples, please refer to [the example below](#host-functions). + The `ImportObject` struct which is for the host functions is merged into `Module`. Developers can use the related APIs to construct host modules. + + - `wasmedge.NewImportObject()` is changed to `wasmedge.NewModule()`. + - `(*wasmedge.ImportObject).Release()` is changed to `(*wasmedge.Module).Release()`. + - `(*wasmedge.ImportObject).AddFunction()` is changed to `(*wasmedge.Module).AddFunction()`. + - `(*wasmedge.ImportObject).AddTable()` is changed to `(*wasmedge.Module).AddTable()`. + - `(*wasmedge.ImportObject).AddMemory()` is changed to `(*wasmedge.Module).AddMemory()`. + - `(*wasmedge.ImportObject).AddGlobal()` is changed to `(*wasmedge.Module).AddGlobal()`. + - `(*wasmedge.ImportObject).NewWasiImportObject()` is changed to `(*wasmedge.Module).NewWasiModule()`. + - `(*wasmedge.ImportObject).NewWasmEdgeProcessImportObject()` is changed to `(*wasmedge.Module).NewWasmEdgeProcessModule()`. + - `(*wasmedge.ImportObject).InitWASI()` is changed to `(*wasmedge.Module).InitWASI()`. + - `(*wasmedge.ImportObject).InitWasmEdgeProcess()` is changed to `(*wasmedge.Module).InitWasmEdgeProcess()`. + - `(*wasmedge.ImportObject).WasiGetExitCode()` is changed to `(*wasmedge.Module).WasiGetExitCode`. + - `(*wasmedge.VM).RegisterImport()` is changed to `(*wasmedge.VM).RegisterModule()`. + - `(*wasmedge.VM).GetImportObject()` is changed to `(*wasmedge.VM).GetImportModule()`. + + For the new host function examples, please refer to [the example below](#host-functions). 2. Used the pointer to `Function` instead of the index in the `FuncRef` value type. - For the better performance and security, the `FuncRef` related APIs used the `*wasmedge.Function` for the parameters and returns. + For the better performance and security, the `FuncRef` related APIs used the `*wasmedge.Function` for the parameters and returns. - - `wasmedge.NewFuncRef()` is changed to use the `*Function` as it's argument. - - Added `(wasmedge.FuncRef).GetRef()` to retrieve the `*Function`. + - `wasmedge.NewFuncRef()` is changed to use the `*Function` as it's argument. + - Added `(wasmedge.FuncRef).GetRef()` to retrieve the `*Function`. 3. Supported multiple anonymous WASM module instantiation. - In the version before `v0.9.2`, WasmEdge only supports 1 anonymous WASM module to be instantiated at one time. If developers instantiate a new WASM module, the old one will be replaced. After the `v0.10.0` version, developers can instantiate multiple anonymous WASM module by `Executor` and get the `Module` instance. But for the source code using the `VM` APIs, the behavior is not changed. For the new examples of instantiating multiple anonymous WASM modules, please refer to [the example below](#wasmedge-executor-changes). + In the version before `v0.9.2`, WasmEdge only supports 1 anonymous WASM module to be instantiated at one time. If developers instantiate a new WASM module, the old one will be replaced. After the `v0.10.0` version, developers can instantiate multiple anonymous WASM module by `Executor` and get the `Module` instance. But for the source code using the `VM` APIs, the behavior is not changed. For the new examples of instantiating multiple anonymous WASM modules, please refer to [the example below](#wasmedge-executor-changes). 4. Behavior changed of `Store`. - The `Function`, `Table`, `Memory`, and `Global` instances retrievement from the `Store` is moved to the `Module` instance. The `Store` only manage the module linking when instantiation and the named module searching after the `v0.10.0` version. + The `Function`, `Table`, `Memory`, and `Global` instances retrievement from the `Store` is moved to the `Module` instance. The `Store` only manage the module linking when instantiation and the named module searching after the `v0.10.0` version. - - `(*wasmedge.Store).ListFunction()` and `(*wasmedge.Store).ListFunctionRegistered()` is replaced by `(*wasmedge.Module).ListFunction()`. - - `(*wasmedge.Store).ListTable()` and `(*wasmedge.Store).ListTableRegistered()` is replaced by `(*wasmedge.Module).ListTable()`. - - `(*wasmedge.Store).ListMemory()` and `(*wasmedge.Store).ListMemoryRegistered()` is replaced by `(*wasmedge.Module).ListMemory()`. - - `(*wasmedge.Store).ListGlobal()` and `(*wasmedge.Store).ListGlobalRegistered()` is replaced by `(*wasmedge.Module).ListGlobal()`. - - `(*wasmedge.Store).FindFunction()` and `(*wasmedge.Store).FindFunctionRegistered()` is replaced by `(*wasmedge.Module).FindFunction()`. - - `(*wasmedge.Store).FindTable()` and `(*wasmedge.Store).FindTableRegistered()` is replaced by `(*wasmedge.Module).FindTable()`. - - `(*wasmedge.Store).FindMemory()` and `(*wasmedge.Store).FindMemoryRegistered()` is replaced by `(*wasmedge.Module).FindMemory()`. - - `(*wasmedge.Store).FindGlobal()` and `(*wasmedge.Store).FindGlobalRegistered()` is replaced by `(*wasmedge.Module).FindGlobal()`. + - `(*wasmedge.Store).ListFunction()` and `(*wasmedge.Store).ListFunctionRegistered()` is replaced by `(*wasmedge.Module).ListFunction()`. + - `(*wasmedge.Store).ListTable()` and `(*wasmedge.Store).ListTableRegistered()` is replaced by `(*wasmedge.Module).ListTable()`. + - `(*wasmedge.Store).ListMemory()` and `(*wasmedge.Store).ListMemoryRegistered()` is replaced by `(*wasmedge.Module).ListMemory()`. + - `(*wasmedge.Store).ListGlobal()` and `(*wasmedge.Store).ListGlobalRegistered()` is replaced by `(*wasmedge.Module).ListGlobal()`. + - `(*wasmedge.Store).FindFunction()` and `(*wasmedge.Store).FindFunctionRegistered()` is replaced by `(*wasmedge.Module).FindFunction()`. + - `(*wasmedge.Store).FindTable()` and `(*wasmedge.Store).FindTableRegistered()` is replaced by `(*wasmedge.Module).FindTable()`. + - `(*wasmedge.Store).FindMemory()` and `(*wasmedge.Store).FindMemoryRegistered()` is replaced by `(*wasmedge.Module).FindMemory()`. + - `(*wasmedge.Store).FindGlobal()` and `(*wasmedge.Store).FindGlobalRegistered()` is replaced by `(*wasmedge.Module).FindGlobal()`. - For the new examples of retrieving instances, please refer to [the example below](#instances-retrievement). + For the new examples of retrieving instances, please refer to [the example below](#instances-retrievement). 5. The `Module`-based resource management. - Except the creation of `Module` instance for the host functions, the `Executor` will output a `Module` instance after instantiation. No matter the anonymous or named modules, developers have the responsibility to destroy them by `(*wasmedge.Module).Release()` API. The `Store` will link to the named `Module` instance after registering. After the destroyment of a `Module` instance, the `Store` will unlink to that automatically; after the destroyment of the `Store`, the all `Module` instances the `Store` linked to will unlink to that `Store` automatically. + Except the creation of `Module` instance for the host functions, the `Executor` will output a `Module` instance after instantiation. No matter the anonymous or named modules, developers have the responsibility to destroy them by `(*wasmedge.Module).Release()` API. The `Store` will link to the named `Module` instance after registering. After the destroyment of a `Module` instance, the `Store` will unlink to that automatically; after the destroyment of the `Store`, the all `Module` instances the `Store` linked to will unlink to that `Store` automatically. ## WasmEdge-Go VM changes @@ -133,198 +133,198 @@ globinst := mod.FindGlobal("global_i32") 1. WASM module instantiation - In WasmEdge-Go `v0.9.2` version, developers can instantiate a WASM module by the `Executor` API: - - ```go - var ast *wasmedge.AST - // Assume that `ast` is a loaded WASM from file or buffer and has passed the validation. - // Assume that `executor` is a `*wasmedge.Executor`. - // Assume that `store` is a `*wasmedge.Store`. - err := executor.Instantiate(store, ast) - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - } - ``` - - Then the WASM module is instantiated into an anonymous module instance and handled by the `Store`. If a new WASM module is instantiated by this API, the old instantiated module instance will be cleaned. After the WasmEdge-Go `v0.10.0` version, the instantiated anonymous module will be outputted and handled by caller, and not only 1 anonymous module instance can be instantiated. Developers have the responsibility to release the outputted module instances. - - ```go - var ast1 *wasmedge.AST - var ast2 *wasmedge.AST - // Assume that `ast1` and `ast2` are loaded WASMs from different files or buffers, - // and have both passed the validation. - // Assume that `executor` is a `*wasmedge.Executor`. - // Assume that `store` is a `*wasmedge.Store`. - mod1, err1 := executor.Instantiate(store, ast1) - if err1 != nil { - fmt.Println("Instantiation FAILED:", err1.Error()) - } - mod2, err2 := executor.Instantiate(store, ast2) - if err2 != nil { - fmt.Println("Instantiation FAILED:", err2.Error()) - } - mod1.Release() - mod2.Release() - ``` + In WasmEdge-Go `v0.9.2` version, developers can instantiate a WASM module by the `Executor` API: + + ```go + var ast *wasmedge.AST + // Assume that `ast` is a loaded WASM from file or buffer and has passed the validation. + // Assume that `executor` is a `*wasmedge.Executor`. + // Assume that `store` is a `*wasmedge.Store`. + err := executor.Instantiate(store, ast) + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + } + ``` + + Then the WASM module is instantiated into an anonymous module instance and handled by the `Store`. If a new WASM module is instantiated by this API, the old instantiated module instance will be cleaned. After the WasmEdge-Go `v0.10.0` version, the instantiated anonymous module will be outputted and handled by caller, and not only 1 anonymous module instance can be instantiated. Developers have the responsibility to release the outputted module instances. + + ```go + var ast1 *wasmedge.AST + var ast2 *wasmedge.AST + // Assume that `ast1` and `ast2` are loaded WASMs from different files or buffers, + // and have both passed the validation. + // Assume that `executor` is a `*wasmedge.Executor`. + // Assume that `store` is a `*wasmedge.Store`. + mod1, err1 := executor.Instantiate(store, ast1) + if err1 != nil { + fmt.Println("Instantiation FAILED:", err1.Error()) + } + mod2, err2 := executor.Instantiate(store, ast2) + if err2 != nil { + fmt.Println("Instantiation FAILED:", err2.Error()) + } + mod1.Release() + mod2.Release() + ``` 2. WASM module registration with module name - When instantiating and registering a WASM module with module name, developers can use the `(*wasmedge.Executor).RegisterModule()` API before WasmEdge-Go `v0.9.2`. + When instantiating and registering a WASM module with module name, developers can use the `(*wasmedge.Executor).RegisterModule()` API before WasmEdge-Go `v0.9.2`. - ```go - var ast *wasmedge.AST - // Assume that `ast` is a loaded WASM from file or buffer and has passed the validation. - // Assume that `executor` is a `*wasmedge.Executor`. - // Assume that `store` is a `*wasmedge.Store`. + ```go + var ast *wasmedge.AST + // Assume that `ast` is a loaded WASM from file or buffer and has passed the validation. + // Assume that `executor` is a `*wasmedge.Executor`. + // Assume that `store` is a `*wasmedge.Store`. - // Register the WASM module into store with the export module name "mod". - err := executor.RegisterModule(store, ast, "mod") - if err != nil { - fmt.Println("WASM registration FAILED:", err.Error()) - } - ``` + // Register the WASM module into store with the export module name "mod". + err := executor.RegisterModule(store, ast, "mod") + if err != nil { + fmt.Println("WASM registration FAILED:", err.Error()) + } + ``` - The same feature is implemented in WasmEdge-Go `v0.10.0`, but in different API `(*wasmedge.Executor).Register()`: + The same feature is implemented in WasmEdge-Go `v0.10.0`, but in different API `(*wasmedge.Executor).Register()`: - ```go - var ast *wasmedge.AST - // Assume that `ast` is a loaded WASM from file or buffer and has passed the validation. - // Assume that `executor` is a `*wasmedge.Executor`. - // Assume that `store` is a `*wasmedge.Store`. + ```go + var ast *wasmedge.AST + // Assume that `ast` is a loaded WASM from file or buffer and has passed the validation. + // Assume that `executor` is a `*wasmedge.Executor`. + // Assume that `store` is a `*wasmedge.Store`. - // Register the WASM module into store with the export module name "mod". - mod, err := executor.Register(store, ast, "mod") - if err != nil { - fmt.Println("WASM registration FAILED:", err.Error()) - } - mod.Release() - ``` + // Register the WASM module into store with the export module name "mod". + mod, err := executor.Register(store, ast, "mod") + if err != nil { + fmt.Println("WASM registration FAILED:", err.Error()) + } + mod.Release() + ``` - Developers have the responsibility to release the outputted module instances. + Developers have the responsibility to release the outputted module instances. 3. Host module registration - In WasmEdge-Go `v0.9.2`, developers can create an `ImportObject` and register into `Store`. + In WasmEdge-Go `v0.9.2`, developers can create an `ImportObject` and register into `Store`. - ```go - // Create the import object with the export module name. - impobj := wasmedge.NewImportObject("module") + ```go + // Create the import object with the export module name. + impobj := wasmedge.NewImportObject("module") - // ... - // Add the host functions, tables, memories, and globals into the import object. + // ... + // Add the host functions, tables, memories, and globals into the import object. - // The import object has already contained the export module name. - err := executor.RegisterImport(store, impobj) - if err != nil { - fmt.Println("Import object registration FAILED:", err.Error()) - } - ``` + // The import object has already contained the export module name. + err := executor.RegisterImport(store, impobj) + if err != nil { + fmt.Println("Import object registration FAILED:", err.Error()) + } + ``` - After WasmEdge-Go `v0.10.0`, developers should use the `Module` instance instead: + After WasmEdge-Go `v0.10.0`, developers should use the `Module` instance instead: - ```go - // Create the module instance with the export module name. - impmod := wasmedge.NewModule("module") + ```go + // Create the module instance with the export module name. + impmod := wasmedge.NewModule("module") - // ... - // Add the host functions, tables, memories, and globals into the module instance. + // ... + // Add the host functions, tables, memories, and globals into the module instance. - // The module instance has already contained the export module name. - err := executor.RegisterImport(store, impmod) - if err != nil { - fmt.Println("Module instance registration FAILED:", err.Error()) - } - ``` + // The module instance has already contained the export module name. + err := executor.RegisterImport(store, impmod) + if err != nil { + fmt.Println("Module instance registration FAILED:", err.Error()) + } + ``` - Developers have the responsibility to release the created module instances. + Developers have the responsibility to release the created module instances. 4. WASM function invocation - This example uses the [fibonacci.wasm](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm), and the corresponding WAT file is at [fibonacci.wat](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wat). In WasmEdge-Go `v0.9.2` version, developers can invoke a WASM function with the export function name: - - ```go - // Create the store object. The store object holds the instances. - store := wasmedge.NewStore() - // Error. - var err error - // AST object. - var ast *wasmedge.AST - // Return values. - var res []interface{} - - // Create the loader object. - loader := wasmedge.NewLoader() - // Create the validator object. - validator := wasmedge.NewValidator() - // Create the executor object. - executor := wasmedge.NewExecutor() - - // Load the WASM file or the compiled-WASM file and convert into the AST object. - ast, err = loader.LoadFile("fibonacci.wasm") - if err != nil { - fmt.Println("Load WASM from file FAILED:", err.Error()) - return - } - // Validate the WASM module. - err = validator.Validate(ast) - if err != nil { - fmt.Println("Validation FAILED:", err.Error()) - return - } - // Instantiate the WASM module into the Store object. - err = executor.Instantiate(store, ast) - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - // Invoke the function which is exported with the function name "fib". - res, err = executor.Invoke(store, "fib", int32(30)) - if err == nil { - fmt.Println("Get fibonacci[30]:", res[0].(int32)) - } else { - fmt.Println("Run failed:", err.Error()) - } - - ast.Release() - loader.Release() - validator.Release() - executor.Release() - store.Release() - ``` - - After the WasmEdge-Go `v0.10.0`, developers should retrieve the `Function` instance by function name first. - - ```go - // ... - // Ignore the unchanged steps before validation. Please refer to the sample code above. - - var mod *wasmedge.Module - // Instantiate the WASM module and get the output module instance. - mod, err = executor.Instantiate(store, ast) - if err != nil { - fmt.Println("Instantiation FAILED:", err.Error()) - return - } - // Retrieve the function instance by name. - funcinst := mod.FindFunction("fib") - if funcinst == nil { - fmt.Println("Run FAILED: Function name `fib` not found") - return - } - res, err = executor.Invoke(store, funcinst, int32(30)) - if err == nil { - fmt.Println("Get fibonacci[30]:", res[0].(int32)) - } else { - fmt.Println("Run FAILED:", err.Error()) - } - - ast.Release() - mod.Release() - loader.Release() - validator.Release() - executor.Release() - store.Release() - ``` + This example uses the [fibonacci.wasm](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wasm), and the corresponding WAT file is at [fibonacci.wat](https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/examples/wasm/fibonacci.wat). In WasmEdge-Go `v0.9.2` version, developers can invoke a WASM function with the export function name: + + ```go + // Create the store object. The store object holds the instances. + store := wasmedge.NewStore() + // Error. + var err error + // AST object. + var ast *wasmedge.AST + // Return values. + var res []interface{} + + // Create the loader object. + loader := wasmedge.NewLoader() + // Create the validator object. + validator := wasmedge.NewValidator() + // Create the executor object. + executor := wasmedge.NewExecutor() + + // Load the WASM file or the compiled-WASM file and convert into the AST object. + ast, err = loader.LoadFile("fibonacci.wasm") + if err != nil { + fmt.Println("Load WASM from file FAILED:", err.Error()) + return + } + // Validate the WASM module. + err = validator.Validate(ast) + if err != nil { + fmt.Println("Validation FAILED:", err.Error()) + return + } + // Instantiate the WASM module into the Store object. + err = executor.Instantiate(store, ast) + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + // Invoke the function which is exported with the function name "fib". + res, err = executor.Invoke(store, "fib", int32(30)) + if err == nil { + fmt.Println("Get fibonacci[30]:", res[0].(int32)) + } else { + fmt.Println("Run failed:", err.Error()) + } + + ast.Release() + loader.Release() + validator.Release() + executor.Release() + store.Release() + ``` + + After the WasmEdge-Go `v0.10.0`, developers should retrieve the `Function` instance by function name first. + + ```go + // ... + // Ignore the unchanged steps before validation. Please refer to the sample code above. + + var mod *wasmedge.Module + // Instantiate the WASM module and get the output module instance. + mod, err = executor.Instantiate(store, ast) + if err != nil { + fmt.Println("Instantiation FAILED:", err.Error()) + return + } + // Retrieve the function instance by name. + funcinst := mod.FindFunction("fib") + if funcinst == nil { + fmt.Println("Run FAILED: Function name `fib` not found") + return + } + res, err = executor.Invoke(store, funcinst, int32(30)) + if err == nil { + fmt.Println("Get fibonacci[30]:", res[0].(int32)) + } else { + fmt.Println("Run FAILED:", err.Error()) + } + + ast.Release() + mod.Release() + loader.Release() + validator.Release() + executor.Release() + store.Release() + ``` ## Instances retrievement diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/upgrade_to_0.11.0.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/upgrade_to_0.11.0.md index 8a973af2..63dd1521 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/upgrade_to_0.11.0.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/upgrade_to_0.11.0.md @@ -10,15 +10,15 @@ Due to the WasmEdge C API breaking changes, this document shows the guideline fo 1. Supported the user-defined error code in host functions. - Developers can use the new API `WasmEdge_ResultGen()` to generate a `WasmEdge_Result` struct with `WasmEdge_ErrCategory_UserLevelError` and the error code. With this support, developers can specify the host function error code when failed by themselves. For the examples to specify the user-defined error code, please refer to [the example below](#user-defined-error-code-in-host-functions). + Developers can use the new API `WasmEdge_ResultGen()` to generate a `WasmEdge_Result` struct with `WasmEdge_ErrCategory_UserLevelError` and the error code. With this support, developers can specify the host function error code when failed by themselves. For the examples to specify the user-defined error code, please refer to [the example below](#user-defined-error-code-in-host-functions). 2. Calling frame for the host function extension - In the previous versions, host functions only pass the memory instance into the function body. For supporting the WASM multiple memories proposal and providing the recursive invocation in host functions, the new context `WasmEdge_CallingFrameContext` replaced the memory instance in the second argument of the host function definition. For the examples of the new host function definition, please refer to [the example below](#calling-frame-in-host-functions). + In the previous versions, host functions only pass the memory instance into the function body. For supporting the WASM multiple memories proposal and providing the recursive invocation in host functions, the new context `WasmEdge_CallingFrameContext` replaced the memory instance in the second argument of the host function definition. For the examples of the new host function definition, please refer to [the example below](#calling-frame-in-host-functions). 3. Apply the SONAME and SOVERSION. - When linking the WasmEdge shared library, please notice that `libwasmedge_c.so` is renamed to `libwasmedge.so` after the 0.11.0 release. Please use `-lwasmedge` instead of `-lwasmedge_c` for the linker option. + When linking the WasmEdge shared library, please notice that `libwasmedge_c.so` is renamed to `libwasmedge.so` after the 0.11.0 release. Please use `-lwasmedge` instead of `-lwasmedge_c` for the linker option. ## User Defined Error Code In Host Functions diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/upgrade_to_0.12.0.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/upgrade_to_0.12.0.md index 55e9c1c0..5ae5b5fc 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/upgrade_to_0.12.0.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/go/reference/upgrade_to_0.12.0.md @@ -10,36 +10,36 @@ Due to the WasmEdge-Go API breaking changes, this document shows the guideline o 1. Removed the members of the `wasmedge.HostRegistration` related const values. - The following const values are removed: + The following const values are removed: - - `wasmedge.WasmEdge_Process` - - `wasmedge.WasiNN` - - `wasmedge.WasiCrypto_Common` - - `wasmedge.WasiCrypto_AsymmetricCommon` - - `wasmedge.WasiCrypto_Kx` - - `wasmedge.WasiCrypto_Signatures` - - `wasmedge.WasiCrypto_Symmetric` + - `wasmedge.WasmEdge_Process` + - `wasmedge.WasiNN` + - `wasmedge.WasiCrypto_Common` + - `wasmedge.WasiCrypto_AsymmetricCommon` + - `wasmedge.WasiCrypto_Kx` + - `wasmedge.WasiCrypto_Signatures` + - `wasmedge.WasiCrypto_Symmetric` - The `wasmedge.VM` objects will create and register the host modules automatically now. If the plug-ins are not loaded, the `VM` objects will create and register the mock modules to prevent from import failed. + The `wasmedge.VM` objects will create and register the host modules automatically now. If the plug-ins are not loaded, the `VM` objects will create and register the mock modules to prevent from import failed. 2. Removed the module instance creation functions of the plug-ins. - The following APIs are removed: + The following APIs are removed: - - `wasmedge.NewWasiNNModule()` - - `wasmedge.NewWasiCryptoCommonModule()` - - `wasmedge.NewWasiCryptoAsymmetricCommonModule()` - - `wasmedge.NewWasiCryptoKxModule()` - - `wasmedge.NewWasiCryptoSignaturesModule()` - - `wasmedge.NewWasiCryptoSymmetricModule()` - - `wasmedge.NewWasmEdgeProcessModule()` + - `wasmedge.NewWasiNNModule()` + - `wasmedge.NewWasiCryptoCommonModule()` + - `wasmedge.NewWasiCryptoAsymmetricCommonModule()` + - `wasmedge.NewWasiCryptoKxModule()` + - `wasmedge.NewWasiCryptoSignaturesModule()` + - `wasmedge.NewWasiCryptoSymmetricModule()` + - `wasmedge.NewWasmEdgeProcessModule()` - For the new examples for creating the module instances from plug-ins, please refer to [the example below](#creating-the-module-instance-from-a-plug-in). + For the new examples for creating the module instances from plug-ins, please refer to [the example below](#creating-the-module-instance-from-a-plug-in). 3. New module instance retrieving API of `VM` objects. - - Added `(*wasmedge.VM).GetRegisteredModule()` for retrieving registered named module in `VM` objects quickly. - - Added `(*wasmedge.VM).ListRegisteredModule()` for listing registered named modules in `VM` objects quickly. + - Added `(*wasmedge.VM).GetRegisteredModule()` for retrieving registered named module in `VM` objects quickly. + - Added `(*wasmedge.VM).ListRegisteredModule()` for listing registered named modules in `VM` objects quickly. ## The `wasmedge.HostRegistration` const values for plug-ins are not necessary in VM objects diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/java/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/embed/java/_category_.json index 77287c91..9f7dfab7 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/java/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/java/_category_.json @@ -1,8 +1,8 @@ { - "label": "Java SDK for Embedding Wasm Functions", - "position": 7, - "link": { - "type": "generated-index", - "description": "In this chapter, we will learn how to Embed WasmEdge in your Java host applications." - } + "label": "Java SDK for Embedding Wasm Functions", + "position": 7, + "link": { + "type": "generated-index", + "description": "In this chapter, we will learn how to Embed WasmEdge in your Java host applications." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/overview.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/overview.md index 6506d518..1b62f75f 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/overview.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/overview.md @@ -15,21 +15,21 @@ WasmEdge provides SDKs for various programming languages. The WasmEdge library a In this section, we will walk you through how to embed WasmEdge in different languages. We will cover the following content: -- [Quick Start](../category/quick-start) -- [Passing complex data](../category/passing-complex-data) -- [Developing components using witc](./witc) -- [Embed WasmEdge in C/C++](../category/c-sdk-for-embedding-wasm-functions) -- [Embed WasmEdge in Rust](../category/rust-sdk-for-embedding-wasm-functions) -- [Embed WasmEdge in Go](../category/go-sdk-for-embedding-wasm-functions) -- [Embed WasmEdge in Java](../category/java-sdk-for-embedding-wasm-functions) -- [Embed WasmEdge in Python](../category/python-sdk-for-embedding-wasm-functions) -- [Use cases](../category/use-cases) +- [Quick Start](../category/quick-start) +- [Passing complex data](../category/passing-complex-data) +- [Developing components using witc](./witc) +- [Embed WasmEdge in C/C++](../category/c-sdk-for-embedding-wasm-functions) +- [Embed WasmEdge in Rust](../category/rust-sdk-for-embedding-wasm-functions) +- [Embed WasmEdge in Go](../category/go-sdk-for-embedding-wasm-functions) +- [Embed WasmEdge in Java](../category/java-sdk-for-embedding-wasm-functions) +- [Embed WasmEdge in Python](../category/python-sdk-for-embedding-wasm-functions) +- [Use cases](../category/use-cases) Besides this, we also have two more guides for [developing Wasm apps](/develop/overview) and [contributing to WasmEdge](/contribute/overview). If you find some issues or have any feedback, you could reach out to us via the following ways. -- [Discord Chat](https://discord.gg/U4B5sFTkFc) -- [Create a GitHub issue for technical support](https://github.com/WasmEdge/WasmEdge/issues) -- [Submit a GitHub discussion](https://github.com/WasmEdge/WasmEdge/discussions) -- [Follow @realwasmedge on Twitter](https://twitter.com/realwasmedge) +- [Discord Chat](https://discord.gg/U4B5sFTkFc) +- [Create a GitHub issue for technical support](https://github.com/WasmEdge/WasmEdge/issues) +- [Submit a GitHub discussion](https://github.com/WasmEdge/WasmEdge/discussions) +- [Follow @realwasmedge on Twitter](https://twitter.com/realwasmedge) diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/python/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/embed/python/_category_.json index 6b0ca4b7..310950f1 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/python/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/python/_category_.json @@ -1,8 +1,8 @@ { - "label": "Python SDK for Embedding Wasm Functions", - "position": 10, - "link": { - "type": "generated-index", - "description": "In this chapter, we will learn how to Embed WasmEdge in your Python host applications." - } + "label": "Python SDK for Embedding Wasm Functions", + "position": 10, + "link": { + "type": "generated-index", + "description": "In this chapter, we will learn how to Embed WasmEdge in your Python host applications." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/quick-start/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/embed/quick-start/_category_.json index b4fa999a..2bf3c000 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/quick-start/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/quick-start/_category_.json @@ -1,8 +1,8 @@ { - "label": "Quick Start", - "position": 1, - "link": { - "type": "generated-index", - "description": "In this chapter, we will introduce how to install and run the Wasm app quickly with WasmEdge runtime." - } + "label": "Quick Start", + "position": 1, + "link": { + "type": "generated-index", + "description": "In this chapter, we will introduce how to install and run the Wasm app quickly with WasmEdge runtime." + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/rust/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/embed/rust/_category_.json index e0d6e8a1..1d21b2a7 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/rust/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/rust/_category_.json @@ -1,8 +1,8 @@ { - "label": "Rust SDK for Embedding Wasm Functions", - "position": 5, - "link": { - "type": "generated-index", - "description": "we will learn how to Embed WasmEdge in your Rust host applications" - } + "label": "Rust SDK for Embedding Wasm Functions", + "position": 5, + "link": { + "type": "generated-index", + "description": "we will learn how to Embed WasmEdge in your Rust host applications" + } } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/rust/intro.md b/i18n/zh/docusaurus-plugin-content-docs/current/embed/rust/intro.md index a06406f8..fa828f1a 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/rust/intro.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/rust/intro.md @@ -10,16 +10,16 @@ sidebar_position: 1 -- [WasmEdge Rust SDK](#wasmedge-rust-sdk) - - [Introduction](#introduction) - - [Versioning Table](#versioning-table) - - [Build](#build) - - [`wasmedge-sys` crate](#wasmedge-sys-crate) - - [Enable WasmEdge Plugins](#enable-wasmedge-plugins) - - [Docker image](#docker-image) - - [Examples](#examples) - - [`wasmedge-sdk` Examples](#wasmedge-sdk-examples) - - [`wasmedge-sys` Examples](#wasmedge-sys-examples) +- [WasmEdge Rust SDK](#wasmedge-rust-sdk) + - [Introduction](#introduction) + - [Versioning Table](#versioning-table) + - [Build](#build) + - [`wasmedge-sys` crate](#wasmedge-sys-crate) + - [Enable WasmEdge Plugins](#enable-wasmedge-plugins) + - [Docker image](#docker-image) + - [Examples](#examples) + - [`wasmedge-sdk` Examples](#wasmedge-sdk-examples) + - [`wasmedge-sys` Examples](#wasmedge-sys-examples) @@ -27,16 +27,16 @@ sidebar_position: 1 `WasmEdge` supports embedding into Rust applications via WasmEdge Rust SDK. WasmEdge Rust SDK consists of three crates: -- [wasmedge-sdk](https://crates.io/crates/wasmedge-sdk) crate. It defines a group of safe, ergonomic high-level APIs, which are used to build up business applications. +- [wasmedge-sdk](https://crates.io/crates/wasmedge-sdk) crate. It defines a group of safe, ergonomic high-level APIs, which are used to build up business applications. - - [API documentation](https://wasmedge.github.io/WasmEdge/wasmedge_sdk/) + - [API documentation](https://wasmedge.github.io/WasmEdge/wasmedge_sdk/) -- [wasmedge-sys](https://crates.io/crates/wasmedge-sys) crate. It defines a group of low-level Rust APIs, which simply wrap WasmEdge C-API and provide the safe counterparts. It is not recommended to use it directly to build up application. +- [wasmedge-sys](https://crates.io/crates/wasmedge-sys) crate. It defines a group of low-level Rust APIs, which simply wrap WasmEdge C-API and provide the safe counterparts. It is not recommended to use it directly to build up application. - - [API documentation](https://wasmedge.github.io/WasmEdge/wasmedge_sys/) + - [API documentation](https://wasmedge.github.io/WasmEdge/wasmedge_sys/) -- [wasmedge-types](https://crates.io/crates/wasmedge-types) crate. The data structures that are commonly used in `wasmedge-sdk` and `wasmedge-sys` are defined in this crate. - - [API documentation](https://wasmedge.github.io/WasmEdge/wasmedge_types/) +- [wasmedge-types](https://crates.io/crates/wasmedge-types) crate. The data structures that are commonly used in `wasmedge-sdk` and `wasmedge-sys` are defined in this crate. + - [API documentation](https://wasmedge.github.io/WasmEdge/wasmedge_types/) ## Versioning Table @@ -53,80 +53,80 @@ The following table provides the versioning information about each release of `w To use `wasmedge-sdk` in your project, you should finish the following two steps before building your project: -- First, deploy `WasmEdge` library on your local system. - - You can reference the versioning table and download `WasmEdge` library from [WasmEdge Releases Page](https://github.com/WasmEdge/WasmEdge/releases). After download the `WasmEdge` library, you can choose one of the following three ways to specify the locations of the required files: - - - By default location - - For those who do not want to define environment variables, you can put the downloaded `WasmEdge` binary package in the default location `$HOME/.wasmedge/`. The directory structure of the default location should looks like below: - - ```bash - // $HOME/.wasmedge/ on Ubuntu-20.04 - . - ├── bin - │   ├── wasmedge - │   └── wasmedgec - ├── include - │   └── wasmedge - │   ├── enum.inc - │   ├── enum_configure.h - │   ├── enum_errcode.h - │   ├── enum_types.h - │   ├── int128.h - │   ├── version.h - │   └── wasmedge.h - └── lib64 - ├── libwasmedge.so - └── wasmedge - └── libwasmedgePluginWasmEdgeProcess.so - - 5 directories, 11 files - ``` - - ```bash - // $HOME/.wasmedge/ on macOS-12 - . - ├── bin - │   ├── wasmedge - │   └── wasmedgec - ├── include - │   └── wasmedge - │   ├── enum.inc - │   ├── enum_configure.h - │   ├── enum_errcode.h - │   ├── enum_types.h - │   ├── int128.h - │   ├── version.h - │   └── wasmedge.h - └── lib - └── libwasmedge.dylib - - 4 directories, 10 files - ``` - - - By specifying `WASMEDGE_INCLUDE_DIR` and `WASMEDGE_LIB_DIR`. - - If you choose to use [install.sh](https://github.com/WasmEdge/WasmEdge/blob/master/utils/install.sh) to install WasmEdge Runtime on your local system, please use `WASMEDGE_INCLUDE_DIR` and `WASMEDGE_LIB_DIR` to specify the paths to the `include` and `lib` directories respectively. For example, use the following commands to specify the paths after using `bash install.sh --path=$HOME/wasmedge-install` to install WasmEdge Runtime on Ubuntu 20.04: - - ```bash - export WASMEDGE_INCLUDE_DIR=$HOME/wasmedge-install/include - export WASMEDGE_LIB_DIR=$HOME/wasmedge-install/lib - ``` - - - By specifying `WASMEDGE_BUILD_DIR` - - You can choose this way if you'd like to use the latest code in the `master` branch of the `WasmEdge` github repo. For example, - - - Suppose that you `git clone` WasmEdge repo in your local directory, for example, `~/workspace/me/WasmEdge`, and follow the [instructions to build](/contribute/source/build_from_src) WasmEdge native library. After that, you should find the generated `include` and `lib` directories in `~/workspace/me/WasmEdge/build`. - - - Then, set `WASMEDGE_BUILD_DIR` environment variable to specify the `build` directory. - - ```bash - root@0a877562f39e:~/workspace/me/WasmEdge# export WASMEDGE_BUILD_DIR=/root/workspace/me/WasmEdge/build - ``` - -- Second, after deploy the `WasmEdge` library on your local system, copy/paste the following code into the `Cargo.toml` file of your project. Now, you can use `cargo build` command to build your project. +- First, deploy `WasmEdge` library on your local system. + + You can reference the versioning table and download `WasmEdge` library from [WasmEdge Releases Page](https://github.com/WasmEdge/WasmEdge/releases). After download the `WasmEdge` library, you can choose one of the following three ways to specify the locations of the required files: + + - By default location + + For those who do not want to define environment variables, you can put the downloaded `WasmEdge` binary package in the default location `$HOME/.wasmedge/`. The directory structure of the default location should looks like below: + + ```bash + // $HOME/.wasmedge/ on Ubuntu-20.04 + . + ├── bin + │   ├── wasmedge + │   └── wasmedgec + ├── include + │   └── wasmedge + │   ├── enum.inc + │   ├── enum_configure.h + │   ├── enum_errcode.h + │   ├── enum_types.h + │   ├── int128.h + │   ├── version.h + │   └── wasmedge.h + └── lib64 + ├── libwasmedge.so + └── wasmedge + └── libwasmedgePluginWasmEdgeProcess.so + + 5 directories, 11 files + ``` + + ```bash + // $HOME/.wasmedge/ on macOS-12 + . + ├── bin + │   ├── wasmedge + │   └── wasmedgec + ├── include + │   └── wasmedge + │   ├── enum.inc + │   ├── enum_configure.h + │   ├── enum_errcode.h + │   ├── enum_types.h + │   ├── int128.h + │   ├── version.h + │   └── wasmedge.h + └── lib + └── libwasmedge.dylib + + 4 directories, 10 files + ``` + + - By specifying `WASMEDGE_INCLUDE_DIR` and `WASMEDGE_LIB_DIR`. + + If you choose to use [install.sh](https://github.com/WasmEdge/WasmEdge/blob/master/utils/install.sh) to install WasmEdge Runtime on your local system, please use `WASMEDGE_INCLUDE_DIR` and `WASMEDGE_LIB_DIR` to specify the paths to the `include` and `lib` directories respectively. For example, use the following commands to specify the paths after using `bash install.sh --path=$HOME/wasmedge-install` to install WasmEdge Runtime on Ubuntu 20.04: + + ```bash + export WASMEDGE_INCLUDE_DIR=$HOME/wasmedge-install/include + export WASMEDGE_LIB_DIR=$HOME/wasmedge-install/lib + ``` + + - By specifying `WASMEDGE_BUILD_DIR` + + You can choose this way if you'd like to use the latest code in the `master` branch of the `WasmEdge` github repo. For example, + + - Suppose that you `git clone` WasmEdge repo in your local directory, for example, `~/workspace/me/WasmEdge`, and follow the [instructions to build](/contribute/source/build_from_src) WasmEdge native library. After that, you should find the generated `include` and `lib` directories in `~/workspace/me/WasmEdge/build`. + + - Then, set `WASMEDGE_BUILD_DIR` environment variable to specify the `build` directory. + + ```bash + root@0a877562f39e:~/workspace/me/WasmEdge# export WASMEDGE_BUILD_DIR=/root/workspace/me/WasmEdge/build + ``` + +- Second, after deploy the `WasmEdge` library on your local system, copy/paste the following code into the `Cargo.toml` file of your project. Now, you can use `cargo build` command to build your project. ```toml [dependencies] @@ -158,10 +158,10 @@ For those who would like to dev in Docker environment, you can reference the [Us For helping you get familiar with WasmEdge Rust bindings, this chapter will cover the following quick examples demonstrate how to use the APIs defined in `wasmedge-sdk`, respectively. In addition, we'll add more examples continuously. Please file issues [here](https://github.com/WasmEdge/WasmEdge/issues) and let us know if you have any problems with the API usage. -- [Embed Wasm apps](app.md) -- [Embed Wasm functions and async functions](function.md) -- [Pass complex dats](complex_data.md) -- [AI inference with Pytorch](ai.md) -- [Asycfy](asyncfy.md) -- [API Reference](https://crates.io/crates/wasmedge-sdk) -- [More examples](https://github.com/second-state/wasmedge-rustsdk-examples) +- [Embed Wasm apps](app.md) +- [Embed Wasm functions and async functions](function.md) +- [Pass complex dats](complex_data.md) +- [AI inference with Pytorch](ai.md) +- [Asycfy](asyncfy.md) +- [API Reference](https://crates.io/crates/wasmedge-sdk) +- [More examples](https://github.com/second-state/wasmedge-rustsdk-examples) diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/embed/use-case/_category_.json b/i18n/zh/docusaurus-plugin-content-docs/current/embed/use-case/_category_.json index c8f3cebe..4a2db315 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/embed/use-case/_category_.json +++ b/i18n/zh/docusaurus-plugin-content-docs/current/embed/use-case/_category_.json @@ -1,8 +1,8 @@ { - "label": "Use Cases", - "position": 11, - "link": { - "type": "generated-index", - "description": "In this chapter, we will discuss how popular software applications embed WasmEdge to support extended functionalities." - } + "label": "Use Cases", + "position": 11, + "link": { + "type": "generated-index", + "description": "In this chapter, we will discuss how popular software applications embed WasmEdge to support extended functionalities." + } } diff --git a/i18n/zh/docusaurus-theme-classic/footer.json b/i18n/zh/docusaurus-theme-classic/footer.json index a95f9671..a3ce4117 100644 --- a/i18n/zh/docusaurus-theme-classic/footer.json +++ b/i18n/zh/docusaurus-theme-classic/footer.json @@ -1,34 +1,34 @@ { - "link.title.Docs": { - "message": "Docs", - "description": "The title of the footer links column with title=Docs in the footer" - }, - "link.title.Community": { - "message": "Community", - "description": "The title of the footer links column with title=Community in the footer" - }, - "link.item.label.Develop": { - "message": "Develop", - "description": "The label of footer link with label=Develop linking to /develop/overview" - }, - "link.item.label.Embed": { - "message": "Embed", - "description": "The label of footer link with label=Embed linking to /embed/overview" - }, - "link.item.label.Extend": { - "message": "Extend", - "description": "The label of footer link with label=Extend linking to /contribute/overview" - }, - "link.item.label.Discord": { - "message": "Discord", - "description": "The label of footer link with label=Discord linking to https://discord.gg/U4B5sFTkFc" - }, - "link.item.label.Twitter": { - "message": "Twitter", - "description": "The label of footer link with label=Twitter linking to https://twitter.com/realwasmedge" - }, - "copyright": { - "message": "Copyright © 2023 WasmEdge. Built with Docusaurus.", - "description": "The footer copyright" - } + "link.title.Docs": { + "message": "Docs", + "description": "The title of the footer links column with title=Docs in the footer" + }, + "link.title.Community": { + "message": "Community", + "description": "The title of the footer links column with title=Community in the footer" + }, + "link.item.label.Develop": { + "message": "Develop", + "description": "The label of footer link with label=Develop linking to /develop/overview" + }, + "link.item.label.Embed": { + "message": "Embed", + "description": "The label of footer link with label=Embed linking to /embed/overview" + }, + "link.item.label.Extend": { + "message": "Extend", + "description": "The label of footer link with label=Extend linking to /contribute/overview" + }, + "link.item.label.Discord": { + "message": "Discord", + "description": "The label of footer link with label=Discord linking to https://discord.gg/U4B5sFTkFc" + }, + "link.item.label.Twitter": { + "message": "Twitter", + "description": "The label of footer link with label=Twitter linking to https://twitter.com/realwasmedge" + }, + "copyright": { + "message": "Copyright © 2023 WasmEdge. Built with Docusaurus.", + "description": "The footer copyright" + } } diff --git a/i18n/zh/docusaurus-theme-classic/navbar.json b/i18n/zh/docusaurus-theme-classic/navbar.json index afc75503..643948db 100644 --- a/i18n/zh/docusaurus-theme-classic/navbar.json +++ b/i18n/zh/docusaurus-theme-classic/navbar.json @@ -1,22 +1,22 @@ { - "title": { - "message": "WasmEdge", - "description": "The title in the navbar" - }, - "item.label.Develop": { - "message": "Develop", - "description": "Navbar item with label Develop" - }, - "item.label.Embed": { - "message": "Embed", - "description": "Navbar item with label Embed" - }, - "item.label.Extend": { - "message": "Extend", - "description": "Navbar item with label Extend" - }, - "item.label.GitHub": { - "message": "GitHub", - "description": "Navbar item with label GitHub" - } + "title": { + "message": "WasmEdge", + "description": "The title in the navbar" + }, + "item.label.Develop": { + "message": "Develop", + "description": "Navbar item with label Develop" + }, + "item.label.Embed": { + "message": "Embed", + "description": "Navbar item with label Embed" + }, + "item.label.Extend": { + "message": "Extend", + "description": "Navbar item with label Extend" + }, + "item.label.GitHub": { + "message": "GitHub", + "description": "Navbar item with label GitHub" + } } diff --git a/package-lock.json b/package-lock.json index 89310ad4..60d42e56 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,31662 +1,31662 @@ { - "name": "book", - "version": "0.0.0", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "name": "book", - "version": "0.0.0", - "dependencies": { - "@docusaurus/core": "^2.4.0", - "@docusaurus/preset-classic": "^2.4.0", - "@easyops-cn/docusaurus-search-local": "^0.35.0", - "@mdx-js/react": "^1.6.22", - "@node-rs/jieba": "^1.7.0", - "classnames": "^2.3.2", - "clsx": "^1.2.1", - "dotenv": "^16.0.3", - "prism-react-renderer": "^1.3.5", - "react": "^17.0.2", - "react-dom": "^17.0.2", - "react-github-btn": "^1.2.0", - "react-markdown": "^8.0.7", - "react-player": "^2.12.0", - "remark-deflist": "^1.0.0" - }, - "devDependencies": { - "@babel/eslint-parser": "^7.21.8", - "@docusaurus/eslint-plugin": "^2.4.0", - "@docusaurus/module-type-aliases": "^2.4.1", - "@tsconfig/docusaurus": "^1.0.7", - "@typescript-eslint/eslint-plugin": "^5.59.9", - "@typescript-eslint/parser": "^5.59.9", - "eslint": "^8.35.0", - "eslint-config-airbnb": "^19.0.4", - "eslint-config-prettier": "^8.7.0", - "eslint-plugin-import": "^2.27.5", - "eslint-plugin-jsx-a11y": "^6.7.1", - "eslint-plugin-prettier": "^4.2.1", - "eslint-plugin-react": "^7.32.2", - "eslint-plugin-react-hooks": "^4.6.0", - "eslint-plugin-regexp": "^1.12.0", - "husky": "^8.0.3", - "lint-staged": "^13.1.2", - "prettier": "^2.8.4", - "stylelint": "^14.16.1", - "stylelint-config-prettier": "^9.0.5", - "stylelint-config-standard": "^29.0.0", - "typescript": "^5.0.4" - }, - "engines": { - "node": ">=16.14.0", - "npm": ">=8.3.1" - } - }, - "node_modules/@algolia/autocomplete-core": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/@algolia/autocomplete-core/-/autocomplete-core-1.8.2.tgz", - "integrity": "sha512-mTeshsyFhAqw/ebqNsQpMtbnjr+qVOSKXArEj4K0d7sqc8It1XD0gkASwecm9mF/jlOQ4Z9RNg1HbdA8JPdRwQ==", - "dependencies": { - "@algolia/autocomplete-shared": "1.8.2" - } - }, - "node_modules/@algolia/autocomplete-preset-algolia": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/@algolia/autocomplete-preset-algolia/-/autocomplete-preset-algolia-1.8.2.tgz", - "integrity": "sha512-J0oTx4me6ZM9kIKPuL3lyU3aB8DEvpVvR6xWmHVROx5rOYJGQcZsdG4ozxwcOyiiu3qxMkIbzntnV1S1VWD8yA==", - "dependencies": { - "@algolia/autocomplete-shared": "1.8.2" - }, - "peerDependencies": { - "@algolia/client-search": ">= 4.9.1 < 6", - "algoliasearch": ">= 4.9.1 < 6" - } - }, - "node_modules/@algolia/autocomplete-shared": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/@algolia/autocomplete-shared/-/autocomplete-shared-1.8.2.tgz", - "integrity": "sha512-b6Z/X4MczChMcfhk6kfRmBzPgjoPzuS9KGR4AFsiLulLNRAAqhP+xZTKtMnZGhLuc61I20d5WqlId02AZvcO6g==" - }, - "node_modules/@algolia/cache-browser-local-storage": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/cache-browser-local-storage/-/cache-browser-local-storage-4.17.1.tgz", - "integrity": "sha512-e91Jpu93X3t3mVdQwF3ZDjSFMFIfzSc+I76G4EX8nl9RYXgqcjframoL05VTjcD2YCsI18RIHAWVCBoCXVZnrw==", - "dependencies": { - "@algolia/cache-common": "4.17.1" - } - }, - "node_modules/@algolia/cache-common": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/cache-common/-/cache-common-4.17.1.tgz", - "integrity": "sha512-fvi1WT8aSiGAKrcTw8Qg3RYgcwW8GZMHcqEm4AyDBEy72JZlFBSY80cTQ75MslINjCHXLDT+9EN8AGI9WVY7uA==" - }, - "node_modules/@algolia/cache-in-memory": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/cache-in-memory/-/cache-in-memory-4.17.1.tgz", - "integrity": "sha512-NbBt6eBWlsXc5geSpfPRC5dkIB/0Ptthw8r0yM5Z7D3sPlYdnTZSO9y9XWXIptRMwmZe4cM8iBMN8y0tzbcBkA==", - "dependencies": { - "@algolia/cache-common": "4.17.1" - } - }, - "node_modules/@algolia/client-account": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/client-account/-/client-account-4.17.1.tgz", - "integrity": "sha512-3rL/6ofJvyL+q8TiWM3qoM9tig+SY4gB1Vbsj+UeJPnJm8Khm+7OS+r+mFraqR6pTehYqN8yGYoE7x4diEn4aA==", - "dependencies": { - "@algolia/client-common": "4.17.1", - "@algolia/client-search": "4.17.1", - "@algolia/transporter": "4.17.1" - } - }, - "node_modules/@algolia/client-analytics": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/client-analytics/-/client-analytics-4.17.1.tgz", - "integrity": "sha512-Bepr2w249vODqeBtM7i++tPmUsQ9B81aupUGbDWmjA/FX+jzQqOdhW8w1CFO5kWViNKTbz2WBIJ9U3x8hOa4bA==", - "dependencies": { - "@algolia/client-common": "4.17.1", - "@algolia/client-search": "4.17.1", - "@algolia/requester-common": "4.17.1", - "@algolia/transporter": "4.17.1" - } - }, - "node_modules/@algolia/client-common": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/client-common/-/client-common-4.17.1.tgz", - "integrity": "sha512-+r7kg4EgbFnGsDnoGSVNtXZO8xvZ0vzf1WAOV7sqV9PMf1bp6cpJP/3IuPrSk4t5w2KVl+pC8jfTM7HcFlfBEQ==", - "dependencies": { - "@algolia/requester-common": "4.17.1", - "@algolia/transporter": "4.17.1" - } - }, - "node_modules/@algolia/client-personalization": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/client-personalization/-/client-personalization-4.17.1.tgz", - "integrity": "sha512-gJku9DG/THJpfsSlG/az0a3QIn+VVff9kKh8PG8+7ZfxOHS+C+Y5YSeZVsC+c2cfoKLPo3CuHIiJ/p86erR3bA==", - "dependencies": { - "@algolia/client-common": "4.17.1", - "@algolia/requester-common": "4.17.1", - "@algolia/transporter": "4.17.1" - } - }, - "node_modules/@algolia/client-search": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/client-search/-/client-search-4.17.1.tgz", - "integrity": "sha512-Q5YfT5gVkx60PZDQBqp/zH9aUbBdC7HVvxupiHUgnCKqRQsRZjOhLest7AI6FahepuZLBZS62COrO7v+JvKY7w==", - "dependencies": { - "@algolia/client-common": "4.17.1", - "@algolia/requester-common": "4.17.1", - "@algolia/transporter": "4.17.1" - } - }, - "node_modules/@algolia/events": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@algolia/events/-/events-4.0.1.tgz", - "integrity": "sha512-FQzvOCgoFXAbf5Y6mYozw2aj5KCJoA3m4heImceldzPSMbdyS4atVjJzXKMsfX3wnZTFYwkkt8/z8UesLHlSBQ==" - }, - "node_modules/@algolia/logger-common": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/logger-common/-/logger-common-4.17.1.tgz", - "integrity": "sha512-Us28Ot+fLEmX9M96sa65VZ8EyEEzhYPxfhV9aQyKDjfXbUdJlJxKt6wZpoEg9RAPSdO8IjK9nmuW2P8au3rRsg==" - }, - "node_modules/@algolia/logger-console": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/logger-console/-/logger-console-4.17.1.tgz", - "integrity": "sha512-iKGQTpOjHiE64W3JIOu6dmDvn+AfYIElI9jf/Nt6umRPmP/JI9rK+OHUoW4pKrBtdG0DPd62ppeNXzSnLxY6/g==", - "dependencies": { - "@algolia/logger-common": "4.17.1" - } - }, - "node_modules/@algolia/requester-browser-xhr": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/requester-browser-xhr/-/requester-browser-xhr-4.17.1.tgz", - "integrity": "sha512-W5mGfGDsyfVR+r4pUFrYLGBEM18gs38+GNt5PE5uPULy4uVTSnnVSkJkWeRkmLBk9zEZ/Nld8m4zavK6dtEuYg==", - "dependencies": { - "@algolia/requester-common": "4.17.1" - } - }, - "node_modules/@algolia/requester-common": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/requester-common/-/requester-common-4.17.1.tgz", - "integrity": "sha512-HggXdjvVFQR0I5l7hM5WdHgQ1tqcRWeyXZz8apQ7zPWZhirmY2E9D6LVhDh/UnWQNEm7nBtM+eMFONJ3bZccIQ==" - }, - "node_modules/@algolia/requester-node-http": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/requester-node-http/-/requester-node-http-4.17.1.tgz", - "integrity": "sha512-NzFWecXT6d0PPsQY9L+/qoK2deF74OLcpvqCH+Vh3mh+QzPsFafcBExdguAjZsAWDn1R6JEeFW7/fo/p0SE57w==", - "dependencies": { - "@algolia/requester-common": "4.17.1" - } - }, - "node_modules/@algolia/transporter": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/transporter/-/transporter-4.17.1.tgz", - "integrity": "sha512-ZM+qhX47Vh46mWH8/U9ihvy98HdTYpYQDSlqBD7IbiUbbyoCMke+qmdSX2MGhR2FCcXBSxejsJKKVAfbpaLVgg==", - "dependencies": { - "@algolia/cache-common": "4.17.1", - "@algolia/logger-common": "4.17.1", - "@algolia/requester-common": "4.17.1" - } - }, - "node_modules/@ampproject/remapping": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", - "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.21.4.tgz", - "integrity": "sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g==", - "dependencies": { - "@babel/highlight": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.3.tgz", - "integrity": "sha512-aNtko9OPOwVESUFp3MZfD8Uzxl7JzSeJpd7npIoxCasU37PFbAQRpKglkaKwlHOyeJdrREpo8TW8ldrkYWwvIQ==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.1.tgz", - "integrity": "sha512-Hkqu7J4ynysSXxmAahpN1jjRwVJ+NdpraFLIWflgjpVob3KNyK3/tIUc7Q7szed8WMp0JNa7Qtd1E9Oo22F9gA==", - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.21.4", - "@babel/generator": "^7.22.0", - "@babel/helper-compilation-targets": "^7.22.1", - "@babel/helper-module-transforms": "^7.22.1", - "@babel/helpers": "^7.22.0", - "@babel/parser": "^7.22.0", - "@babel/template": "^7.21.9", - "@babel/traverse": "^7.22.1", - "@babel/types": "^7.22.0", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.2", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/eslint-parser": { - "version": "7.21.8", - "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.21.8.tgz", - "integrity": "sha512-HLhI+2q+BP3sf78mFUZNCGc10KEmoUqtUT1OCdMZsN+qr4qFeLUod62/zAnF3jNQstwyasDkZnVXwfK2Bml7MQ==", - "dev": true, - "dependencies": { - "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", - "eslint-visitor-keys": "^2.1.0", - "semver": "^6.3.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || >=14.0.0" - }, - "peerDependencies": { - "@babel/core": ">=7.11.0", - "eslint": "^7.5.0 || ^8.0.0" - } - }, - "node_modules/@babel/generator": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.3.tgz", - "integrity": "sha512-C17MW4wlk//ES/CJDL51kPNwl+qiBQyN7b9SKyVp11BLGFeSPoVaHrv+MNt8jwQFhQWowW88z1eeBx3pFz9v8A==", - "dependencies": { - "@babel/types": "^7.22.3", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", - "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", - "dependencies": { - "@babel/types": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.3.tgz", - "integrity": "sha512-ahEoxgqNoYXm0k22TvOke48i1PkavGu0qGCmcq9ugi6gnmvKNaMjKBSrZTnWUi1CFEeNAUiVba0Wtzm03aSkJg==", - "dependencies": { - "@babel/types": "^7.22.3" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.1.tgz", - "integrity": "sha512-Rqx13UM3yVB5q0D/KwQ8+SPfX/+Rnsy1Lw1k/UwOC4KC6qrzIQoY3lYnBu5EHKBlEHHcj0M0W8ltPSkD8rqfsQ==", - "dependencies": { - "@babel/compat-data": "^7.22.0", - "@babel/helper-validator-option": "^7.21.0", - "browserslist": "^4.21.3", - "lru-cache": "^5.1.1", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.1.tgz", - "integrity": "sha512-SowrZ9BWzYFgzUMwUmowbPSGu6CXL5MSuuCkG3bejahSpSymioPmuLdhPxNOc9MjuNGjy7M/HaXvJ8G82Lywlw==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-environment-visitor": "^7.22.1", - "@babel/helper-function-name": "^7.21.0", - "@babel/helper-member-expression-to-functions": "^7.22.0", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-replace-supers": "^7.22.1", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", - "@babel/helper-split-export-declaration": "^7.18.6", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.1.tgz", - "integrity": "sha512-WWjdnfR3LPIe+0EY8td7WmjhytxXtjKAEpnAxun/hkNiyOaPlvGK+NZaBFIdi9ndYV3Gav7BpFvtUwnaJlwi1w==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "regexpu-core": "^5.3.1", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.0.tgz", - "integrity": "sha512-RnanLx5ETe6aybRi1cO/edaRH+bNYWaryCEmjDDYyNr4wnSzyOp8T0dWipmqVHKEY3AbVKUom50AKSlj1zmKbg==", - "dependencies": { - "@babel/helper-compilation-targets": "^7.17.7", - "@babel/helper-plugin-utils": "^7.16.7", - "debug": "^4.1.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.14.2", - "semver": "^6.1.2" - }, - "peerDependencies": { - "@babel/core": "^7.4.0-0" - } - }, - "node_modules/@babel/helper-environment-visitor": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.1.tgz", - "integrity": "sha512-Z2tgopurB/kTbidvzeBrc2To3PUP/9i5MUe+fU6QJCQDyPwSH2oRapkLw3KGECDYSjhQZCNxEvNvZlLw8JjGwA==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-function-name": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz", - "integrity": "sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg==", - "dependencies": { - "@babel/template": "^7.20.7", - "@babel/types": "^7.21.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-hoist-variables": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", - "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", - "dependencies": { - "@babel/types": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.22.3.tgz", - "integrity": "sha512-Gl7sK04b/2WOb6OPVeNy9eFKeD3L6++CzL3ykPOWqTn08xgYYK0wz4TUh2feIImDXxcVW3/9WQ1NMKY66/jfZA==", - "dependencies": { - "@babel/types": "^7.22.3" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.21.4.tgz", - "integrity": "sha512-orajc5T2PsRYUN3ZryCEFeMDYwyw09c/pZeaQEZPH0MpKzSvn3e0uXsDBu3k03VI+9DBiRo+l22BfKTpKwa/Wg==", - "dependencies": { - "@babel/types": "^7.21.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.1.tgz", - "integrity": "sha512-dxAe9E7ySDGbQdCVOY/4+UcD8M9ZFqZcZhSPsPacvCG4M+9lwtDDQfI2EoaSvmf7W/8yCBkGU0m7Pvt1ru3UZw==", - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.1", - "@babel/helper-module-imports": "^7.21.4", - "@babel/helper-simple-access": "^7.21.5", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/helper-validator-identifier": "^7.19.1", - "@babel/template": "^7.21.9", - "@babel/traverse": "^7.22.1", - "@babel/types": "^7.22.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz", - "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==", - "dependencies": { - "@babel/types": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.21.5.tgz", - "integrity": "sha512-0WDaIlXKOX/3KfBK/dwP1oQGiPh6rjMkT7HIRv7i5RR2VUMwrx5ZL0dwBkKx7+SW1zwNdgjHd34IMk5ZjTeHVg==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz", - "integrity": "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-wrap-function": "^7.18.9", - "@babel/types": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-replace-supers": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.1.tgz", - "integrity": "sha512-ut4qrkE4AuSfrwHSps51ekR1ZY/ygrP1tp0WFm8oVq6nzc/hvfV/22JylndIbsf2U2M9LOMwiSddr6y+78j+OQ==", - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.1", - "@babel/helper-member-expression-to-functions": "^7.22.0", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/template": "^7.21.9", - "@babel/traverse": "^7.22.1", - "@babel/types": "^7.22.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-simple-access": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.21.5.tgz", - "integrity": "sha512-ENPDAMC1wAjR0uaCUwliBdiSl1KBJAVnMTzXqi64c2MG8MPR6ii4qf7bSXDqSFbr4W6W028/rf5ivoHop5/mkg==", - "dependencies": { - "@babel/types": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz", - "integrity": "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==", - "dependencies": { - "@babel/types": "^7.20.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", - "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", - "dependencies": { - "@babel/types": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.21.5.tgz", - "integrity": "sha512-5pTUx3hAJaZIdW99sJ6ZUUgWq/Y+Hja7TowEnLNMm1VivRgZQL3vpBY3qUACVsvw+yQU6+YgfBVmcbLaZtrA1w==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz", - "integrity": "sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-wrap-function": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.20.5.tgz", - "integrity": "sha512-bYMxIWK5mh+TgXGVqAtnu5Yn1un+v8DDZtqyzKRLUzrh70Eal2O3aZ7aPYiMADO4uKlkzOiRiZ6GX5q3qxvW9Q==", - "dependencies": { - "@babel/helper-function-name": "^7.19.0", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.20.5", - "@babel/types": "^7.20.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.3.tgz", - "integrity": "sha512-jBJ7jWblbgr7r6wYZHMdIqKc73ycaTcCaWRq4/2LpuPHcx7xMlZvpGQkOYc9HeSjn6rcx15CPlgVcBtZ4WZJ2w==", - "dependencies": { - "@babel/template": "^7.21.9", - "@babel/traverse": "^7.22.1", - "@babel/types": "^7.22.3" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", - "dependencies": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.22.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.4.tgz", - "integrity": "sha512-VLLsx06XkEYqBtE5YGPwfSGwfrjnyPP5oiGty3S8pQLFDFLaS8VwWSIxkTXpcvr5zeYLE6+MBNl2npl/YnfofA==", - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz", - "integrity": "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.22.3.tgz", - "integrity": "sha512-6r4yRwEnorYByILoDRnEqxtojYKuiIv9FojW2E8GUKo9eWBwbKcd9IiZOZpdyXc64RmyGGyPu3/uAcrz/dq2kQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", - "@babel/plugin-transform-optional-chaining": "^7.22.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.13.0" - } - }, - "node_modules/@babel/plugin-proposal-object-rest-spread": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.12.1.tgz", - "integrity": "sha512-s6SowJIjzlhx8o7lsFx5zmY4At6CTtDvgNQDdPzkBQucle58A6b/TTeEBYtyDgmcXjUTM+vE8YOGHZzzbc/ioA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.0", - "@babel/plugin-transform-parameters": "^7.12.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.11.tgz", - "integrity": "sha512-0QZ8qP/3RLDVBwBFoWAwCtgcDZJVwA5LUJRZU8x2YFfKNuFq161wK3cuGrALu5yiPu+vzwTAg/sMWVNeWeNyaw==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-create-class-features-plugin": "^7.21.0", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-unicode-property-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", - "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.12.13" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-class-static-block": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", - "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } + "name": "book", + "version": "0.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "book", + "version": "0.0.0", + "dependencies": { + "@docusaurus/core": "^2.4.0", + "@docusaurus/preset-classic": "^2.4.0", + "@easyops-cn/docusaurus-search-local": "^0.35.0", + "@mdx-js/react": "^1.6.22", + "@node-rs/jieba": "^1.7.0", + "classnames": "^2.3.2", + "clsx": "^1.2.1", + "dotenv": "^16.0.3", + "prism-react-renderer": "^1.3.5", + "react": "^17.0.2", + "react-dom": "^17.0.2", + "react-github-btn": "^1.2.0", + "react-markdown": "^8.0.7", + "react-player": "^2.12.0", + "remark-deflist": "^1.0.0" + }, + "devDependencies": { + "@babel/eslint-parser": "^7.21.8", + "@docusaurus/eslint-plugin": "^2.4.0", + "@docusaurus/module-type-aliases": "^2.4.1", + "@tsconfig/docusaurus": "^1.0.7", + "@typescript-eslint/eslint-plugin": "^5.59.9", + "@typescript-eslint/parser": "^5.59.9", + "eslint": "^8.35.0", + "eslint-config-airbnb": "^19.0.4", + "eslint-config-prettier": "^8.7.0", + "eslint-plugin-import": "^2.27.5", + "eslint-plugin-jsx-a11y": "^6.7.1", + "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-react": "^7.32.2", + "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-regexp": "^1.12.0", + "husky": "^8.0.3", + "lint-staged": "^13.1.2", + "prettier": "^2.8.4", + "stylelint": "^14.16.1", + "stylelint-config-prettier": "^9.0.5", + "stylelint-config-standard": "^29.0.0", + "typescript": "^5.0.4" + }, + "engines": { + "node": ">=16.14.0", + "npm": ">=8.3.1" + } + }, + "node_modules/@algolia/autocomplete-core": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@algolia/autocomplete-core/-/autocomplete-core-1.8.2.tgz", + "integrity": "sha512-mTeshsyFhAqw/ebqNsQpMtbnjr+qVOSKXArEj4K0d7sqc8It1XD0gkASwecm9mF/jlOQ4Z9RNg1HbdA8JPdRwQ==", + "dependencies": { + "@algolia/autocomplete-shared": "1.8.2" + } + }, + "node_modules/@algolia/autocomplete-preset-algolia": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@algolia/autocomplete-preset-algolia/-/autocomplete-preset-algolia-1.8.2.tgz", + "integrity": "sha512-J0oTx4me6ZM9kIKPuL3lyU3aB8DEvpVvR6xWmHVROx5rOYJGQcZsdG4ozxwcOyiiu3qxMkIbzntnV1S1VWD8yA==", + "dependencies": { + "@algolia/autocomplete-shared": "1.8.2" + }, + "peerDependencies": { + "@algolia/client-search": ">= 4.9.1 < 6", + "algoliasearch": ">= 4.9.1 < 6" + } + }, + "node_modules/@algolia/autocomplete-shared": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@algolia/autocomplete-shared/-/autocomplete-shared-1.8.2.tgz", + "integrity": "sha512-b6Z/X4MczChMcfhk6kfRmBzPgjoPzuS9KGR4AFsiLulLNRAAqhP+xZTKtMnZGhLuc61I20d5WqlId02AZvcO6g==" + }, + "node_modules/@algolia/cache-browser-local-storage": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/cache-browser-local-storage/-/cache-browser-local-storage-4.17.1.tgz", + "integrity": "sha512-e91Jpu93X3t3mVdQwF3ZDjSFMFIfzSc+I76G4EX8nl9RYXgqcjframoL05VTjcD2YCsI18RIHAWVCBoCXVZnrw==", + "dependencies": { + "@algolia/cache-common": "4.17.1" + } + }, + "node_modules/@algolia/cache-common": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/cache-common/-/cache-common-4.17.1.tgz", + "integrity": "sha512-fvi1WT8aSiGAKrcTw8Qg3RYgcwW8GZMHcqEm4AyDBEy72JZlFBSY80cTQ75MslINjCHXLDT+9EN8AGI9WVY7uA==" + }, + "node_modules/@algolia/cache-in-memory": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/cache-in-memory/-/cache-in-memory-4.17.1.tgz", + "integrity": "sha512-NbBt6eBWlsXc5geSpfPRC5dkIB/0Ptthw8r0yM5Z7D3sPlYdnTZSO9y9XWXIptRMwmZe4cM8iBMN8y0tzbcBkA==", + "dependencies": { + "@algolia/cache-common": "4.17.1" + } + }, + "node_modules/@algolia/client-account": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/client-account/-/client-account-4.17.1.tgz", + "integrity": "sha512-3rL/6ofJvyL+q8TiWM3qoM9tig+SY4gB1Vbsj+UeJPnJm8Khm+7OS+r+mFraqR6pTehYqN8yGYoE7x4diEn4aA==", + "dependencies": { + "@algolia/client-common": "4.17.1", + "@algolia/client-search": "4.17.1", + "@algolia/transporter": "4.17.1" + } + }, + "node_modules/@algolia/client-analytics": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/client-analytics/-/client-analytics-4.17.1.tgz", + "integrity": "sha512-Bepr2w249vODqeBtM7i++tPmUsQ9B81aupUGbDWmjA/FX+jzQqOdhW8w1CFO5kWViNKTbz2WBIJ9U3x8hOa4bA==", + "dependencies": { + "@algolia/client-common": "4.17.1", + "@algolia/client-search": "4.17.1", + "@algolia/requester-common": "4.17.1", + "@algolia/transporter": "4.17.1" + } + }, + "node_modules/@algolia/client-common": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/client-common/-/client-common-4.17.1.tgz", + "integrity": "sha512-+r7kg4EgbFnGsDnoGSVNtXZO8xvZ0vzf1WAOV7sqV9PMf1bp6cpJP/3IuPrSk4t5w2KVl+pC8jfTM7HcFlfBEQ==", + "dependencies": { + "@algolia/requester-common": "4.17.1", + "@algolia/transporter": "4.17.1" + } + }, + "node_modules/@algolia/client-personalization": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/client-personalization/-/client-personalization-4.17.1.tgz", + "integrity": "sha512-gJku9DG/THJpfsSlG/az0a3QIn+VVff9kKh8PG8+7ZfxOHS+C+Y5YSeZVsC+c2cfoKLPo3CuHIiJ/p86erR3bA==", + "dependencies": { + "@algolia/client-common": "4.17.1", + "@algolia/requester-common": "4.17.1", + "@algolia/transporter": "4.17.1" + } + }, + "node_modules/@algolia/client-search": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/client-search/-/client-search-4.17.1.tgz", + "integrity": "sha512-Q5YfT5gVkx60PZDQBqp/zH9aUbBdC7HVvxupiHUgnCKqRQsRZjOhLest7AI6FahepuZLBZS62COrO7v+JvKY7w==", + "dependencies": { + "@algolia/client-common": "4.17.1", + "@algolia/requester-common": "4.17.1", + "@algolia/transporter": "4.17.1" + } + }, + "node_modules/@algolia/events": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@algolia/events/-/events-4.0.1.tgz", + "integrity": "sha512-FQzvOCgoFXAbf5Y6mYozw2aj5KCJoA3m4heImceldzPSMbdyS4atVjJzXKMsfX3wnZTFYwkkt8/z8UesLHlSBQ==" + }, + "node_modules/@algolia/logger-common": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/logger-common/-/logger-common-4.17.1.tgz", + "integrity": "sha512-Us28Ot+fLEmX9M96sa65VZ8EyEEzhYPxfhV9aQyKDjfXbUdJlJxKt6wZpoEg9RAPSdO8IjK9nmuW2P8au3rRsg==" + }, + "node_modules/@algolia/logger-console": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/logger-console/-/logger-console-4.17.1.tgz", + "integrity": "sha512-iKGQTpOjHiE64W3JIOu6dmDvn+AfYIElI9jf/Nt6umRPmP/JI9rK+OHUoW4pKrBtdG0DPd62ppeNXzSnLxY6/g==", + "dependencies": { + "@algolia/logger-common": "4.17.1" + } + }, + "node_modules/@algolia/requester-browser-xhr": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/requester-browser-xhr/-/requester-browser-xhr-4.17.1.tgz", + "integrity": "sha512-W5mGfGDsyfVR+r4pUFrYLGBEM18gs38+GNt5PE5uPULy4uVTSnnVSkJkWeRkmLBk9zEZ/Nld8m4zavK6dtEuYg==", + "dependencies": { + "@algolia/requester-common": "4.17.1" + } + }, + "node_modules/@algolia/requester-common": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/requester-common/-/requester-common-4.17.1.tgz", + "integrity": "sha512-HggXdjvVFQR0I5l7hM5WdHgQ1tqcRWeyXZz8apQ7zPWZhirmY2E9D6LVhDh/UnWQNEm7nBtM+eMFONJ3bZccIQ==" + }, + "node_modules/@algolia/requester-node-http": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/requester-node-http/-/requester-node-http-4.17.1.tgz", + "integrity": "sha512-NzFWecXT6d0PPsQY9L+/qoK2deF74OLcpvqCH+Vh3mh+QzPsFafcBExdguAjZsAWDn1R6JEeFW7/fo/p0SE57w==", + "dependencies": { + "@algolia/requester-common": "4.17.1" + } + }, + "node_modules/@algolia/transporter": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/transporter/-/transporter-4.17.1.tgz", + "integrity": "sha512-ZM+qhX47Vh46mWH8/U9ihvy98HdTYpYQDSlqBD7IbiUbbyoCMke+qmdSX2MGhR2FCcXBSxejsJKKVAfbpaLVgg==", + "dependencies": { + "@algolia/cache-common": "4.17.1", + "@algolia/logger-common": "4.17.1", + "@algolia/requester-common": "4.17.1" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.21.4.tgz", + "integrity": "sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g==", + "dependencies": { + "@babel/highlight": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.3.tgz", + "integrity": "sha512-aNtko9OPOwVESUFp3MZfD8Uzxl7JzSeJpd7npIoxCasU37PFbAQRpKglkaKwlHOyeJdrREpo8TW8ldrkYWwvIQ==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.1.tgz", + "integrity": "sha512-Hkqu7J4ynysSXxmAahpN1jjRwVJ+NdpraFLIWflgjpVob3KNyK3/tIUc7Q7szed8WMp0JNa7Qtd1E9Oo22F9gA==", + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.21.4", + "@babel/generator": "^7.22.0", + "@babel/helper-compilation-targets": "^7.22.1", + "@babel/helper-module-transforms": "^7.22.1", + "@babel/helpers": "^7.22.0", + "@babel/parser": "^7.22.0", + "@babel/template": "^7.21.9", + "@babel/traverse": "^7.22.1", + "@babel/types": "^7.22.0", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.2", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/eslint-parser": { + "version": "7.21.8", + "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.21.8.tgz", + "integrity": "sha512-HLhI+2q+BP3sf78mFUZNCGc10KEmoUqtUT1OCdMZsN+qr4qFeLUod62/zAnF3jNQstwyasDkZnVXwfK2Bml7MQ==", + "dev": true, + "dependencies": { + "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", + "eslint-visitor-keys": "^2.1.0", + "semver": "^6.3.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || >=14.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.11.0", + "eslint": "^7.5.0 || ^8.0.0" + } + }, + "node_modules/@babel/generator": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.3.tgz", + "integrity": "sha512-C17MW4wlk//ES/CJDL51kPNwl+qiBQyN7b9SKyVp11BLGFeSPoVaHrv+MNt8jwQFhQWowW88z1eeBx3pFz9v8A==", + "dependencies": { + "@babel/types": "^7.22.3", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", + "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.3.tgz", + "integrity": "sha512-ahEoxgqNoYXm0k22TvOke48i1PkavGu0qGCmcq9ugi6gnmvKNaMjKBSrZTnWUi1CFEeNAUiVba0Wtzm03aSkJg==", + "dependencies": { + "@babel/types": "^7.22.3" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.1.tgz", + "integrity": "sha512-Rqx13UM3yVB5q0D/KwQ8+SPfX/+Rnsy1Lw1k/UwOC4KC6qrzIQoY3lYnBu5EHKBlEHHcj0M0W8ltPSkD8rqfsQ==", + "dependencies": { + "@babel/compat-data": "^7.22.0", + "@babel/helper-validator-option": "^7.21.0", + "browserslist": "^4.21.3", + "lru-cache": "^5.1.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.1.tgz", + "integrity": "sha512-SowrZ9BWzYFgzUMwUmowbPSGu6CXL5MSuuCkG3bejahSpSymioPmuLdhPxNOc9MjuNGjy7M/HaXvJ8G82Lywlw==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.22.1", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-member-expression-to-functions": "^7.22.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-replace-supers": "^7.22.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/helper-split-export-declaration": "^7.18.6", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.1.tgz", + "integrity": "sha512-WWjdnfR3LPIe+0EY8td7WmjhytxXtjKAEpnAxun/hkNiyOaPlvGK+NZaBFIdi9ndYV3Gav7BpFvtUwnaJlwi1w==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "regexpu-core": "^5.3.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.0.tgz", + "integrity": "sha512-RnanLx5ETe6aybRi1cO/edaRH+bNYWaryCEmjDDYyNr4wnSzyOp8T0dWipmqVHKEY3AbVKUom50AKSlj1zmKbg==", + "dependencies": { + "@babel/helper-compilation-targets": "^7.17.7", + "@babel/helper-plugin-utils": "^7.16.7", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2", + "semver": "^6.1.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0-0" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.1.tgz", + "integrity": "sha512-Z2tgopurB/kTbidvzeBrc2To3PUP/9i5MUe+fU6QJCQDyPwSH2oRapkLw3KGECDYSjhQZCNxEvNvZlLw8JjGwA==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz", + "integrity": "sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg==", + "dependencies": { + "@babel/template": "^7.20.7", + "@babel/types": "^7.21.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", + "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.22.3.tgz", + "integrity": "sha512-Gl7sK04b/2WOb6OPVeNy9eFKeD3L6++CzL3ykPOWqTn08xgYYK0wz4TUh2feIImDXxcVW3/9WQ1NMKY66/jfZA==", + "dependencies": { + "@babel/types": "^7.22.3" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.21.4.tgz", + "integrity": "sha512-orajc5T2PsRYUN3ZryCEFeMDYwyw09c/pZeaQEZPH0MpKzSvn3e0uXsDBu3k03VI+9DBiRo+l22BfKTpKwa/Wg==", + "dependencies": { + "@babel/types": "^7.21.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.1.tgz", + "integrity": "sha512-dxAe9E7ySDGbQdCVOY/4+UcD8M9ZFqZcZhSPsPacvCG4M+9lwtDDQfI2EoaSvmf7W/8yCBkGU0m7Pvt1ru3UZw==", + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.1", + "@babel/helper-module-imports": "^7.21.4", + "@babel/helper-simple-access": "^7.21.5", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/helper-validator-identifier": "^7.19.1", + "@babel/template": "^7.21.9", + "@babel/traverse": "^7.22.1", + "@babel/types": "^7.22.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz", + "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==", + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.21.5.tgz", + "integrity": "sha512-0WDaIlXKOX/3KfBK/dwP1oQGiPh6rjMkT7HIRv7i5RR2VUMwrx5ZL0dwBkKx7+SW1zwNdgjHd34IMk5ZjTeHVg==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz", + "integrity": "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-wrap-function": "^7.18.9", + "@babel/types": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.1.tgz", + "integrity": "sha512-ut4qrkE4AuSfrwHSps51ekR1ZY/ygrP1tp0WFm8oVq6nzc/hvfV/22JylndIbsf2U2M9LOMwiSddr6y+78j+OQ==", + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.1", + "@babel/helper-member-expression-to-functions": "^7.22.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/template": "^7.21.9", + "@babel/traverse": "^7.22.1", + "@babel/types": "^7.22.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.21.5.tgz", + "integrity": "sha512-ENPDAMC1wAjR0uaCUwliBdiSl1KBJAVnMTzXqi64c2MG8MPR6ii4qf7bSXDqSFbr4W6W028/rf5ivoHop5/mkg==", + "dependencies": { + "@babel/types": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz", + "integrity": "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==", + "dependencies": { + "@babel/types": "^7.20.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", + "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.21.5.tgz", + "integrity": "sha512-5pTUx3hAJaZIdW99sJ6ZUUgWq/Y+Hja7TowEnLNMm1VivRgZQL3vpBY3qUACVsvw+yQU6+YgfBVmcbLaZtrA1w==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz", + "integrity": "sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.20.5.tgz", + "integrity": "sha512-bYMxIWK5mh+TgXGVqAtnu5Yn1un+v8DDZtqyzKRLUzrh70Eal2O3aZ7aPYiMADO4uKlkzOiRiZ6GX5q3qxvW9Q==", + "dependencies": { + "@babel/helper-function-name": "^7.19.0", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.20.5", + "@babel/types": "^7.20.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.3.tgz", + "integrity": "sha512-jBJ7jWblbgr7r6wYZHMdIqKc73ycaTcCaWRq4/2LpuPHcx7xMlZvpGQkOYc9HeSjn6rcx15CPlgVcBtZ4WZJ2w==", + "dependencies": { + "@babel/template": "^7.21.9", + "@babel/traverse": "^7.22.1", + "@babel/types": "^7.22.3" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", + "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "dependencies": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.22.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.4.tgz", + "integrity": "sha512-VLLsx06XkEYqBtE5YGPwfSGwfrjnyPP5oiGty3S8pQLFDFLaS8VwWSIxkTXpcvr5zeYLE6+MBNl2npl/YnfofA==", + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz", + "integrity": "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.22.3.tgz", + "integrity": "sha512-6r4yRwEnorYByILoDRnEqxtojYKuiIv9FojW2E8GUKo9eWBwbKcd9IiZOZpdyXc64RmyGGyPu3/uAcrz/dq2kQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/plugin-transform-optional-chaining": "^7.22.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.13.0" + } + }, + "node_modules/@babel/plugin-proposal-object-rest-spread": { + "version": "7.12.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.12.1.tgz", + "integrity": "sha512-s6SowJIjzlhx8o7lsFx5zmY4At6CTtDvgNQDdPzkBQucle58A6b/TTeEBYtyDgmcXjUTM+vE8YOGHZzzbc/ioA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.0", + "@babel/plugin-transform-parameters": "^7.12.1" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.11.tgz", + "integrity": "sha512-0QZ8qP/3RLDVBwBFoWAwCtgcDZJVwA5LUJRZU8x2YFfKNuFq161wK3cuGrALu5yiPu+vzwTAg/sMWVNeWeNyaw==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.21.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-unicode-property-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", + "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-assertions": { + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz", + "integrity": "sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.19.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.22.3.tgz", + "integrity": "sha512-i35jZJv6aO7hxEbIWQ41adVfOzjm9dcYDNeWlBMd8p0ZQRtNUCBrmGwZt+H5lb+oOC9a3svp956KP0oWGA1YsA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.21.4.tgz", + "integrity": "sha512-5hewiLct5OKyh6PLKEYaFclcqtIgCb6bmELouxjF6up5q3Sov7rOayW4RwhbaBL0dit8rA80GNfY+UuDp2mBbQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.21.4.tgz", + "integrity": "sha512-xz0D39NvhQn4t4RNsHmDnnsaQizIlUkdtYvLs8La1BlfjQ6JEwxkJGeqJMW2tAXx+q6H+WFuUTXNdYVpEya0YA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-unicode-sets-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", + "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.21.5.tgz", + "integrity": "sha512-wb1mhwGOCaXHDTcsRYMKF9e5bbMgqwxtqa2Y1ifH96dXJPwbuLX9qHy3clhrxVqgMz7nyNXs8VkxdH8UBcjKqA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-generator-functions": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.22.3.tgz", + "integrity": "sha512-36A4Aq48t66btydbZd5Fk0/xJqbpg/v4QWI4AH4cYHBXy9Mu42UOupZpebKFiCFNT9S9rJFcsld0gsv0ayLjtA==", + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-remap-async-to-generator": "^7.18.9", + "@babel/plugin-syntax-async-generators": "^7.8.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.20.7.tgz", + "integrity": "sha512-Uo5gwHPT9vgnSXQxqGtpdufUiWp96gk7yiP4Mp5bm1QMkEmLXBO7PAGYbKoJ6DhAwiNkcHFBol/x5zZZkL/t0Q==", + "dependencies": { + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-remap-async-to-generator": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz", + "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.21.0.tgz", + "integrity": "sha512-Mdrbunoh9SxwFZapeHVrwFmri16+oYotcZysSzhNIVDwIAb1UV+kvnxULSYq9J3/q5MDG+4X6w8QVgD1zhBXNQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-properties": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.22.3.tgz", + "integrity": "sha512-mASLsd6rhOrLZ5F3WbCxkzl67mmOnqik0zrg5W6D/X0QMW7HtvnoL1dRARLKIbMP3vXwkwziuLesPqWVGIl6Bw==", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-static-block": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.22.3.tgz", + "integrity": "sha512-5BirgNWNOx7cwbTJCOmKFJ1pZjwk5MUfMIwiBBvsirCJMZeQgs5pk6i1OlkVg+1Vef5LfBahFOrdCnAWvkVKMw==", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" + } + }, + "node_modules/@babel/plugin-transform-classes": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.21.0.tgz", + "integrity": "sha512-RZhbYTCEUAe6ntPehC4hlslPWosNHDox+vAs4On/mCLRLfoDVHf6hVEd7kuxr1RnHwJmxFfUM3cZiZRmPxJPXQ==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-compilation-targets": "^7.20.7", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-replace-supers": "^7.20.7", + "@babel/helper-split-export-declaration": "^7.18.6", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.21.5.tgz", + "integrity": "sha512-TR653Ki3pAwxBxUe8srfF3e4Pe3FTA46uaNHYyQwIoM4oWKSoOZiDNyHJ0oIoDIUPSRQbQG7jzgVBX3FPVne1Q==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/template": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.21.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.21.3.tgz", + "integrity": "sha512-bp6hwMFzuiE4HqYEyoGJ/V2LeIWn+hLVKc4pnj++E5XQptwhtcGmSayM029d/j2X1bPKGTlsyPwAubuU22KhMA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz", + "integrity": "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz", + "integrity": "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dynamic-import": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.22.1.tgz", + "integrity": "sha512-rlhWtONnVBPdmt+jeewS0qSnMz/3yLFrqAP8hHC6EDcrYRSyuz9f9yQhHvVn2Ad6+yO9fHXac5piudeYrInxwQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz", + "integrity": "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==", + "dependencies": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-export-namespace-from": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.22.3.tgz", + "integrity": "sha512-5Ti1cHLTDnt3vX61P9KZ5IG09bFXp4cDVFJIAeCZuxu9OXXJJZp5iP0n/rzM2+iAutJY+KWEyyHcRaHlpQ/P5g==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.21.5.tgz", + "integrity": "sha512-nYWpjKW/7j/I/mZkGVgHJXh4bA1sfdFnJoOXwJuj4m3Q2EraO/8ZyrkCau9P5tbHQk01RMSt6KYLCsW7730SXQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz", + "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==", + "dependencies": { + "@babel/helper-compilation-targets": "^7.18.9", + "@babel/helper-function-name": "^7.18.9", + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-json-strings": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.22.3.tgz", + "integrity": "sha512-IuvOMdeOOY2X4hRNAT6kwbePtK21BUyrAEgLKviL8pL6AEEVUVcqtRdN/HJXBLGIbt9T3ETmXRnFedRRmQNTYw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-json-strings": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-literals": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz", + "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-logical-assignment-operators": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.22.3.tgz", + "integrity": "sha512-CbayIfOw4av2v/HYZEsH+Klks3NC2/MFIR3QR8gnpGNNPEaq2fdlVCRYG/paKs7/5hvBLQ+H70pGWOHtlNEWNA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-member-expression-literals": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz", + "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-amd": { + "version": "7.20.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.20.11.tgz", + "integrity": "sha512-NuzCt5IIYOW0O30UvqktzHYR2ud5bOWbY0yaxWZ6G+aFzOMJvrs5YHNikrbdaT15+KNO31nPOy5Fim3ku6Zb5g==", + "dependencies": { + "@babel/helper-module-transforms": "^7.20.11", + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.21.5.tgz", + "integrity": "sha512-OVryBEgKUbtqMoB7eG2rs6UFexJi6Zj6FDXx+esBLPTCxCNxAY9o+8Di7IsUGJ+AVhp5ncK0fxWUBd0/1gPhrQ==", + "dependencies": { + "@babel/helper-module-transforms": "^7.21.5", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-simple-access": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-systemjs": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.22.3.tgz", + "integrity": "sha512-V21W3bKLxO3ZjcBJZ8biSvo5gQ85uIXW2vJfh7JSWf/4SLUSr1tOoHX3ruN4+Oqa2m+BKfsxTR1I+PsvkIWvNw==", + "dependencies": { + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-module-transforms": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-validator-identifier": "^7.19.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-umd": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz", + "integrity": "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==", + "dependencies": { + "@babel/helper-module-transforms": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.3.tgz", + "integrity": "sha512-c6HrD/LpUdNNJsISQZpds3TXvfYIAbo+efE9aWmY/PmSRD0agrJ9cPMt4BmArwUQ7ZymEWTFjTyp+yReLJZh0Q==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-new-target": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.22.3.tgz", + "integrity": "sha512-5RuJdSo89wKdkRTqtM9RVVJzHum9c2s0te9rB7vZC1zKKxcioWIy+xcu4OoIAjyFZhb/bp5KkunuLin1q7Ct+w==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.22.3.tgz", + "integrity": "sha512-CpaoNp16nX7ROtLONNuCyenYdY/l7ZsR6aoVa7rW7nMWisoNoQNIH5Iay/4LDyRjKMuElMqXiBoOQCDLTMGZiw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-numeric-separator": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.22.3.tgz", + "integrity": "sha512-+AF88fPDJrnseMh5vD9+SH6wq4ZMvpiTMHh58uLs+giMEyASFVhcT3NkoyO+NebFCNnpHJEq5AXO2txV4AGPDQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-rest-spread": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.22.3.tgz", + "integrity": "sha512-38bzTsqMMCI46/TQnJwPPpy33EjLCc1Gsm2hRTF6zTMWnKsN61vdrpuzIEGQyKEhDSYDKyZHrrd5FMj4gcUHhw==", + "dependencies": { + "@babel/compat-data": "^7.22.3", + "@babel/helper-compilation-targets": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.22.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz", + "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/helper-replace-supers": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-catch-binding": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.22.3.tgz", + "integrity": "sha512-bnDFWXFzWY0BsOyqaoSXvMQ2F35zutQipugog/rqotL2S4ciFOKlRYUu9djt4iq09oh2/34hqfRR2k1dIvuu4g==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-chaining": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.22.3.tgz", + "integrity": "sha512-63v3/UFFxhPKT8j8u1jTTGVyITxl7/7AfOqK8C5gz1rHURPUGe3y5mvIf68eYKGoBNahtJnTxBKug4BQOnzeJg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.3.tgz", + "integrity": "sha512-x7QHQJHPuD9VmfpzboyGJ5aHEr9r7DsAsdxdhJiTB3J3j8dyl+NFZ+rX5Q2RWFDCs61c06qBfS4ys2QYn8UkMw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-methods": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.22.3.tgz", + "integrity": "sha512-fC7jtjBPFqhqpPAE+O4LKwnLq7gGkD3ZmC2E3i4qWH34mH3gOg2Xrq5YMHUq6DM30xhqM1DNftiRaSqVjEG+ug==", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-property-in-object": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.22.3.tgz", + "integrity": "sha512-C7MMl4qWLpgVCbXfj3UW8rR1xeCnisQ0cU7YJHV//8oNBS0aCIVg1vFnZXxOckHhEpQyqNNkWmvSEWnMLlc+Vw==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz", + "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-constant-elements": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.22.3.tgz", + "integrity": "sha512-b5J6muxQYp4H7loAQv/c7GO5cPuRA6H5hx4gO+/Hn+Cu9MRQU0PNiUoWq1L//8sq6kFSNxGXFb2XTaUfa9y+Pg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-display-name": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz", + "integrity": "sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.22.3.tgz", + "integrity": "sha512-JEulRWG2f04a7L8VWaOngWiK6p+JOSpB+DAtwfJgOaej1qdbNxqtK7MwTBHjUA10NeFcszlFNqCdbRcirzh2uQ==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-module-imports": "^7.21.4", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-jsx": "^7.21.4", + "@babel/types": "^7.22.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-development": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz", + "integrity": "sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==", + "dependencies": { + "@babel/plugin-transform-react-jsx": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-pure-annotations": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz", + "integrity": "sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.21.5.tgz", + "integrity": "sha512-ZoYBKDb6LyMi5yCsByQ5jmXsHAQDDYeexT1Szvlmui+lADvfSecr5Dxd/PkrTC3pAD182Fcju1VQkB4oCp9M+w==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "regenerator-transform": "^0.15.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz", + "integrity": "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime": { + "version": "7.22.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.22.4.tgz", + "integrity": "sha512-Urkiz1m4zqiRo17klj+l3nXgiRTFQng91Bc1eiLF7BMQu1e7wE5Gcq9xSv062IF068NHjcutSbIMev60gXxAvA==", + "dependencies": { + "@babel/helper-module-imports": "^7.21.4", + "@babel/helper-plugin-utils": "^7.21.5", + "babel-plugin-polyfill-corejs2": "^0.4.3", + "babel-plugin-polyfill-corejs3": "^0.8.1", + "babel-plugin-polyfill-regenerator": "^0.5.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz", + "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-spread": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.20.7.tgz", + "integrity": "sha512-ewBbHQ+1U/VnH1fxltbJqDeWBU1oNLG8Dj11uIv3xVf7nrQu0bPGe5Rf716r7K5Qz+SqtAOVswoVunoiBtGhxw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz", + "integrity": "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz", + "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz", + "integrity": "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typescript": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.22.3.tgz", + "integrity": "sha512-pyjnCIniO5PNaEuGxT28h0HbMru3qCVrMqVgVOz/krComdIrY9W6FCLBq9NWHY8HDGaUlan+UhmZElDENIfCcw==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-typescript": "^7.21.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.21.5.tgz", + "integrity": "sha512-LYm/gTOwZqsYohlvFUe/8Tujz75LqqVC2w+2qPHLR+WyWHGCZPN1KBpJCJn+4Bk4gOkQy/IXKIge6az5MqwlOg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-property-regex": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.22.3.tgz", + "integrity": "sha512-5ScJ+OmdX+O6HRuMGW4kv7RL9vIKdtdAj9wuWUKy1wbHY3jaM/UlyIiC1G7J6UJiiyMukjjK0QwL3P0vBd0yYg==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz", + "integrity": "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-sets-regex": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.22.3.tgz", + "integrity": "sha512-hNufLdkF8vqywRp+P55j4FHXqAX2LRUccoZHH7AFn1pq5ZOO2ISKW9w13bFZVjBoTqeve2HOgoJCcaziJVhGNw==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/preset-env": { + "version": "7.22.4", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.22.4.tgz", + "integrity": "sha512-c3lHOjbwBv0TkhYCr+XCR6wKcSZ1QbQTVdSkZUaVpLv8CVWotBMArWUi5UAJrcrQaEnleVkkvaV8F/pmc/STZQ==", + "dependencies": { + "@babel/compat-data": "^7.22.3", + "@babel/helper-compilation-targets": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-validator-option": "^7.21.0", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.18.6", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.22.3", + "@babel/plugin-proposal-private-property-in-object": "^7.21.0", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3", + "@babel/plugin-syntax-import-assertions": "^7.20.0", + "@babel/plugin-syntax-import-attributes": "^7.22.3", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5", + "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", + "@babel/plugin-transform-arrow-functions": "^7.21.5", + "@babel/plugin-transform-async-generator-functions": "^7.22.3", + "@babel/plugin-transform-async-to-generator": "^7.20.7", + "@babel/plugin-transform-block-scoped-functions": "^7.18.6", + "@babel/plugin-transform-block-scoping": "^7.21.0", + "@babel/plugin-transform-class-properties": "^7.22.3", + "@babel/plugin-transform-class-static-block": "^7.22.3", + "@babel/plugin-transform-classes": "^7.21.0", + "@babel/plugin-transform-computed-properties": "^7.21.5", + "@babel/plugin-transform-destructuring": "^7.21.3", + "@babel/plugin-transform-dotall-regex": "^7.18.6", + "@babel/plugin-transform-duplicate-keys": "^7.18.9", + "@babel/plugin-transform-dynamic-import": "^7.22.1", + "@babel/plugin-transform-exponentiation-operator": "^7.18.6", + "@babel/plugin-transform-export-namespace-from": "^7.22.3", + "@babel/plugin-transform-for-of": "^7.21.5", + "@babel/plugin-transform-function-name": "^7.18.9", + "@babel/plugin-transform-json-strings": "^7.22.3", + "@babel/plugin-transform-literals": "^7.18.9", + "@babel/plugin-transform-logical-assignment-operators": "^7.22.3", + "@babel/plugin-transform-member-expression-literals": "^7.18.6", + "@babel/plugin-transform-modules-amd": "^7.20.11", + "@babel/plugin-transform-modules-commonjs": "^7.21.5", + "@babel/plugin-transform-modules-systemjs": "^7.22.3", + "@babel/plugin-transform-modules-umd": "^7.18.6", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.3", + "@babel/plugin-transform-new-target": "^7.22.3", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.3", + "@babel/plugin-transform-numeric-separator": "^7.22.3", + "@babel/plugin-transform-object-rest-spread": "^7.22.3", + "@babel/plugin-transform-object-super": "^7.18.6", + "@babel/plugin-transform-optional-catch-binding": "^7.22.3", + "@babel/plugin-transform-optional-chaining": "^7.22.3", + "@babel/plugin-transform-parameters": "^7.22.3", + "@babel/plugin-transform-private-methods": "^7.22.3", + "@babel/plugin-transform-private-property-in-object": "^7.22.3", + "@babel/plugin-transform-property-literals": "^7.18.6", + "@babel/plugin-transform-regenerator": "^7.21.5", + "@babel/plugin-transform-reserved-words": "^7.18.6", + "@babel/plugin-transform-shorthand-properties": "^7.18.6", + "@babel/plugin-transform-spread": "^7.20.7", + "@babel/plugin-transform-sticky-regex": "^7.18.6", + "@babel/plugin-transform-template-literals": "^7.18.9", + "@babel/plugin-transform-typeof-symbol": "^7.18.9", + "@babel/plugin-transform-unicode-escapes": "^7.21.5", + "@babel/plugin-transform-unicode-property-regex": "^7.22.3", + "@babel/plugin-transform-unicode-regex": "^7.18.6", + "@babel/plugin-transform-unicode-sets-regex": "^7.22.3", + "@babel/preset-modules": "^0.1.5", + "@babel/types": "^7.22.4", + "babel-plugin-polyfill-corejs2": "^0.4.3", + "babel-plugin-polyfill-corejs3": "^0.8.1", + "babel-plugin-polyfill-regenerator": "^0.5.0", + "core-js-compat": "^3.30.2", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-modules": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", + "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", + "@babel/plugin-transform-dotall-regex": "^7.4.4", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-react": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.22.3.tgz", + "integrity": "sha512-lxDz1mnZ9polqClBCVBjIVUypoB4qV3/tZUDb/IlYbW1kiiLaXaX+bInbRjl+lNQ/iUZraQ3+S8daEmoELMWug==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-validator-option": "^7.21.0", + "@babel/plugin-transform-react-display-name": "^7.18.6", + "@babel/plugin-transform-react-jsx": "^7.22.3", + "@babel/plugin-transform-react-jsx-development": "^7.18.6", + "@babel/plugin-transform-react-pure-annotations": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-typescript": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.21.5.tgz", + "integrity": "sha512-iqe3sETat5EOrORXiQ6rWfoOg2y68Cs75B9wNxdPW4kixJxh7aXQE1KPdWLDniC24T/6dSnguF33W9j/ZZQcmA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-validator-option": "^7.21.0", + "@babel/plugin-syntax-jsx": "^7.21.4", + "@babel/plugin-transform-modules-commonjs": "^7.21.5", + "@babel/plugin-transform-typescript": "^7.21.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/regjsgen": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", + "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==" + }, + "node_modules/@babel/runtime": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.3.tgz", + "integrity": "sha512-XsDuspWKLUsxwCp6r7EhsExHtYfbe5oAGQ19kqngTdCPUoPQzOPdUbD/pB9PJiwb2ptYKQDjSJT3R6dC+EPqfQ==", + "dependencies": { + "regenerator-runtime": "^0.13.11" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/runtime-corejs3": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.22.3.tgz", + "integrity": "sha512-6bdmknScYKmt8I9VjsJuKKGr+TwUb555FTf6tT1P/ANlCjTHCiYLhiQ4X/O7J731w5NOqu8c1aYHEVuOwPz7jA==", + "dependencies": { + "core-js-pure": "^3.30.2", + "regenerator-runtime": "^0.13.11" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.21.9", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.21.9.tgz", + "integrity": "sha512-MK0X5k8NKOuWRamiEfc3KEJiHMTkGZNUjzMipqCGDDc6ijRl/B7RGSKVGncu4Ro/HdyzzY6cmoXuKI2Gffk7vQ==", + "dependencies": { + "@babel/code-frame": "^7.21.4", + "@babel/parser": "^7.21.9", + "@babel/types": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.22.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.4.tgz", + "integrity": "sha512-Tn1pDsjIcI+JcLKq1AVlZEr4226gpuAQTsLMorsYg9tuS/kG7nuwwJ4AB8jfQuEgb/COBwR/DqJxmoiYFu5/rQ==", + "dependencies": { + "@babel/code-frame": "^7.21.4", + "@babel/generator": "^7.22.3", + "@babel/helper-environment-visitor": "^7.22.1", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/parser": "^7.22.4", + "@babel/types": "^7.22.4", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.22.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.4.tgz", + "integrity": "sha512-Tx9x3UBHTTsMSW85WB2kphxYQVvrZ/t1FxD88IpSgIjiUJlCm9z+xWIDwyo1vffTwSqteqyznB8ZE9vYYk16zA==", + "dependencies": { + "@babel/helper-string-parser": "^7.21.5", + "@babel/helper-validator-identifier": "^7.19.1", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@colors/colors": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", + "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", + "optional": true, + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/@csstools/selector-specificity": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-2.2.0.tgz", + "integrity": "sha512-+OJ9konv95ClSTOJCmMZqpd5+YGsB2S+x6w3E1oaM8UuR5j8nTNHYSz8c9BEPGDOCMQYIEEGlVPj/VY64iTbGw==", + "dev": true, + "engines": { + "node": "^14 || ^16 || >=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss-selector-parser": "^6.0.10" + } + }, + "node_modules/@discoveryjs/json-ext": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", + "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/@docsearch/css": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docsearch/css/-/css-3.4.0.tgz", + "integrity": "sha512-Hg8Xfma+rFwRi6Y/pfei4FJoQ1hdVURmmNs/XPoMTCPAImU+d5yxj+M+qdLtNjWRpfWziU4dQcqY94xgFBn2dg==" + }, + "node_modules/@docsearch/react": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docsearch/react/-/react-3.4.0.tgz", + "integrity": "sha512-ufrp5879XYGojgS30ZAp8H4qIMbahRHB9M85VDBP36Xgz5QjYM54i1URKj5e219F7gqTtOivfztFTij6itc0MQ==", + "dependencies": { + "@algolia/autocomplete-core": "1.8.2", + "@algolia/autocomplete-preset-algolia": "1.8.2", + "@docsearch/css": "3.4.0", + "algoliasearch": "^4.0.0" + }, + "peerDependencies": { + "@types/react": ">= 16.8.0 < 19.0.0", + "react": ">= 16.8.0 < 19.0.0", + "react-dom": ">= 16.8.0 < 19.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true }, - "node_modules/@babel/plugin-syntax-dynamic-import": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", - "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } + "react": { + "optional": true }, - "node_modules/@babel/plugin-syntax-export-namespace-from": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", - "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz", - "integrity": "sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.19.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.22.3.tgz", - "integrity": "sha512-i35jZJv6aO7hxEbIWQ41adVfOzjm9dcYDNeWlBMd8p0ZQRtNUCBrmGwZt+H5lb+oOC9a3svp956KP0oWGA1YsA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-meta": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.21.4.tgz", - "integrity": "sha512-5hewiLct5OKyh6PLKEYaFclcqtIgCb6bmELouxjF6up5q3Sov7rOayW4RwhbaBL0dit8rA80GNfY+UuDp2mBbQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-private-property-in-object": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", - "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.21.4.tgz", - "integrity": "sha512-xz0D39NvhQn4t4RNsHmDnnsaQizIlUkdtYvLs8La1BlfjQ6JEwxkJGeqJMW2tAXx+q6H+WFuUTXNdYVpEya0YA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-unicode-sets-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", - "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.21.5.tgz", - "integrity": "sha512-wb1mhwGOCaXHDTcsRYMKF9e5bbMgqwxtqa2Y1ifH96dXJPwbuLX9qHy3clhrxVqgMz7nyNXs8VkxdH8UBcjKqA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-generator-functions": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.22.3.tgz", - "integrity": "sha512-36A4Aq48t66btydbZd5Fk0/xJqbpg/v4QWI4AH4cYHBXy9Mu42UOupZpebKFiCFNT9S9rJFcsld0gsv0ayLjtA==", - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-remap-async-to-generator": "^7.18.9", - "@babel/plugin-syntax-async-generators": "^7.8.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-to-generator": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.20.7.tgz", - "integrity": "sha512-Uo5gwHPT9vgnSXQxqGtpdufUiWp96gk7yiP4Mp5bm1QMkEmLXBO7PAGYbKoJ6DhAwiNkcHFBol/x5zZZkL/t0Q==", - "dependencies": { - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-remap-async-to-generator": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz", - "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.21.0.tgz", - "integrity": "sha512-Mdrbunoh9SxwFZapeHVrwFmri16+oYotcZysSzhNIVDwIAb1UV+kvnxULSYq9J3/q5MDG+4X6w8QVgD1zhBXNQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-properties": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.22.3.tgz", - "integrity": "sha512-mASLsd6rhOrLZ5F3WbCxkzl67mmOnqik0zrg5W6D/X0QMW7HtvnoL1dRARLKIbMP3vXwkwziuLesPqWVGIl6Bw==", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-static-block": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.22.3.tgz", - "integrity": "sha512-5BirgNWNOx7cwbTJCOmKFJ1pZjwk5MUfMIwiBBvsirCJMZeQgs5pk6i1OlkVg+1Vef5LfBahFOrdCnAWvkVKMw==", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-class-static-block": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.12.0" - } - }, - "node_modules/@babel/plugin-transform-classes": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.21.0.tgz", - "integrity": "sha512-RZhbYTCEUAe6ntPehC4hlslPWosNHDox+vAs4On/mCLRLfoDVHf6hVEd7kuxr1RnHwJmxFfUM3cZiZRmPxJPXQ==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-compilation-targets": "^7.20.7", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.21.0", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-replace-supers": "^7.20.7", - "@babel/helper-split-export-declaration": "^7.18.6", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.21.5.tgz", - "integrity": "sha512-TR653Ki3pAwxBxUe8srfF3e4Pe3FTA46uaNHYyQwIoM4oWKSoOZiDNyHJ0oIoDIUPSRQbQG7jzgVBX3FPVne1Q==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/template": "^7.20.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.21.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.21.3.tgz", - "integrity": "sha512-bp6hwMFzuiE4HqYEyoGJ/V2LeIWn+hLVKc4pnj++E5XQptwhtcGmSayM029d/j2X1bPKGTlsyPwAubuU22KhMA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz", - "integrity": "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz", - "integrity": "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-dynamic-import": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.22.1.tgz", - "integrity": "sha512-rlhWtONnVBPdmt+jeewS0qSnMz/3yLFrqAP8hHC6EDcrYRSyuz9f9yQhHvVn2Ad6+yO9fHXac5piudeYrInxwQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz", - "integrity": "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==", - "dependencies": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-export-namespace-from": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.22.3.tgz", - "integrity": "sha512-5Ti1cHLTDnt3vX61P9KZ5IG09bFXp4cDVFJIAeCZuxu9OXXJJZp5iP0n/rzM2+iAutJY+KWEyyHcRaHlpQ/P5g==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-for-of": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.21.5.tgz", - "integrity": "sha512-nYWpjKW/7j/I/mZkGVgHJXh4bA1sfdFnJoOXwJuj4m3Q2EraO/8ZyrkCau9P5tbHQk01RMSt6KYLCsW7730SXQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-function-name": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz", - "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==", - "dependencies": { - "@babel/helper-compilation-targets": "^7.18.9", - "@babel/helper-function-name": "^7.18.9", - "@babel/helper-plugin-utils": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-json-strings": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.22.3.tgz", - "integrity": "sha512-IuvOMdeOOY2X4hRNAT6kwbePtK21BUyrAEgLKviL8pL6AEEVUVcqtRdN/HJXBLGIbt9T3ETmXRnFedRRmQNTYw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-json-strings": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz", - "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-logical-assignment-operators": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.22.3.tgz", - "integrity": "sha512-CbayIfOw4av2v/HYZEsH+Klks3NC2/MFIR3QR8gnpGNNPEaq2fdlVCRYG/paKs7/5hvBLQ+H70pGWOHtlNEWNA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz", - "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.20.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.20.11.tgz", - "integrity": "sha512-NuzCt5IIYOW0O30UvqktzHYR2ud5bOWbY0yaxWZ6G+aFzOMJvrs5YHNikrbdaT15+KNO31nPOy5Fim3ku6Zb5g==", - "dependencies": { - "@babel/helper-module-transforms": "^7.20.11", - "@babel/helper-plugin-utils": "^7.20.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.21.5.tgz", - "integrity": "sha512-OVryBEgKUbtqMoB7eG2rs6UFexJi6Zj6FDXx+esBLPTCxCNxAY9o+8Di7IsUGJ+AVhp5ncK0fxWUBd0/1gPhrQ==", - "dependencies": { - "@babel/helper-module-transforms": "^7.21.5", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-simple-access": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.22.3.tgz", - "integrity": "sha512-V21W3bKLxO3ZjcBJZ8biSvo5gQ85uIXW2vJfh7JSWf/4SLUSr1tOoHX3ruN4+Oqa2m+BKfsxTR1I+PsvkIWvNw==", - "dependencies": { - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-module-transforms": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-validator-identifier": "^7.19.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz", - "integrity": "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==", - "dependencies": { - "@babel/helper-module-transforms": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.3.tgz", - "integrity": "sha512-c6HrD/LpUdNNJsISQZpds3TXvfYIAbo+efE9aWmY/PmSRD0agrJ9cPMt4BmArwUQ7ZymEWTFjTyp+yReLJZh0Q==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-new-target": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.22.3.tgz", - "integrity": "sha512-5RuJdSo89wKdkRTqtM9RVVJzHum9c2s0te9rB7vZC1zKKxcioWIy+xcu4OoIAjyFZhb/bp5KkunuLin1q7Ct+w==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.22.3.tgz", - "integrity": "sha512-CpaoNp16nX7ROtLONNuCyenYdY/l7ZsR6aoVa7rW7nMWisoNoQNIH5Iay/4LDyRjKMuElMqXiBoOQCDLTMGZiw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-numeric-separator": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.22.3.tgz", - "integrity": "sha512-+AF88fPDJrnseMh5vD9+SH6wq4ZMvpiTMHh58uLs+giMEyASFVhcT3NkoyO+NebFCNnpHJEq5AXO2txV4AGPDQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-numeric-separator": "^7.10.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-rest-spread": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.22.3.tgz", - "integrity": "sha512-38bzTsqMMCI46/TQnJwPPpy33EjLCc1Gsm2hRTF6zTMWnKsN61vdrpuzIEGQyKEhDSYDKyZHrrd5FMj4gcUHhw==", - "dependencies": { - "@babel/compat-data": "^7.22.3", - "@babel/helper-compilation-targets": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.22.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-super": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz", - "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/helper-replace-supers": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-catch-binding": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.22.3.tgz", - "integrity": "sha512-bnDFWXFzWY0BsOyqaoSXvMQ2F35zutQipugog/rqotL2S4ciFOKlRYUu9djt4iq09oh2/34hqfRR2k1dIvuu4g==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-chaining": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.22.3.tgz", - "integrity": "sha512-63v3/UFFxhPKT8j8u1jTTGVyITxl7/7AfOqK8C5gz1rHURPUGe3y5mvIf68eYKGoBNahtJnTxBKug4BQOnzeJg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", - "@babel/plugin-syntax-optional-chaining": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-parameters": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.3.tgz", - "integrity": "sha512-x7QHQJHPuD9VmfpzboyGJ5aHEr9r7DsAsdxdhJiTB3J3j8dyl+NFZ+rX5Q2RWFDCs61c06qBfS4ys2QYn8UkMw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-methods": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.22.3.tgz", - "integrity": "sha512-fC7jtjBPFqhqpPAE+O4LKwnLq7gGkD3ZmC2E3i4qWH34mH3gOg2Xrq5YMHUq6DM30xhqM1DNftiRaSqVjEG+ug==", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-property-in-object": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.22.3.tgz", - "integrity": "sha512-C7MMl4qWLpgVCbXfj3UW8rR1xeCnisQ0cU7YJHV//8oNBS0aCIVg1vFnZXxOckHhEpQyqNNkWmvSEWnMLlc+Vw==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz", - "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-constant-elements": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.22.3.tgz", - "integrity": "sha512-b5J6muxQYp4H7loAQv/c7GO5cPuRA6H5hx4gO+/Hn+Cu9MRQU0PNiUoWq1L//8sq6kFSNxGXFb2XTaUfa9y+Pg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-display-name": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz", - "integrity": "sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.22.3.tgz", - "integrity": "sha512-JEulRWG2f04a7L8VWaOngWiK6p+JOSpB+DAtwfJgOaej1qdbNxqtK7MwTBHjUA10NeFcszlFNqCdbRcirzh2uQ==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-module-imports": "^7.21.4", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-jsx": "^7.21.4", - "@babel/types": "^7.22.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx-development": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz", - "integrity": "sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==", - "dependencies": { - "@babel/plugin-transform-react-jsx": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-pure-annotations": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz", - "integrity": "sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.21.5.tgz", - "integrity": "sha512-ZoYBKDb6LyMi5yCsByQ5jmXsHAQDDYeexT1Szvlmui+lADvfSecr5Dxd/PkrTC3pAD182Fcju1VQkB4oCp9M+w==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "regenerator-transform": "^0.15.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz", - "integrity": "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-runtime": { - "version": "7.22.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.22.4.tgz", - "integrity": "sha512-Urkiz1m4zqiRo17klj+l3nXgiRTFQng91Bc1eiLF7BMQu1e7wE5Gcq9xSv062IF068NHjcutSbIMev60gXxAvA==", - "dependencies": { - "@babel/helper-module-imports": "^7.21.4", - "@babel/helper-plugin-utils": "^7.21.5", - "babel-plugin-polyfill-corejs2": "^0.4.3", - "babel-plugin-polyfill-corejs3": "^0.8.1", - "babel-plugin-polyfill-regenerator": "^0.5.0", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz", - "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-spread": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.20.7.tgz", - "integrity": "sha512-ewBbHQ+1U/VnH1fxltbJqDeWBU1oNLG8Dj11uIv3xVf7nrQu0bPGe5Rf716r7K5Qz+SqtAOVswoVunoiBtGhxw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz", - "integrity": "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz", - "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz", - "integrity": "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typescript": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.22.3.tgz", - "integrity": "sha512-pyjnCIniO5PNaEuGxT28h0HbMru3qCVrMqVgVOz/krComdIrY9W6FCLBq9NWHY8HDGaUlan+UhmZElDENIfCcw==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-typescript": "^7.21.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.21.5.tgz", - "integrity": "sha512-LYm/gTOwZqsYohlvFUe/8Tujz75LqqVC2w+2qPHLR+WyWHGCZPN1KBpJCJn+4Bk4gOkQy/IXKIge6az5MqwlOg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-property-regex": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.22.3.tgz", - "integrity": "sha512-5ScJ+OmdX+O6HRuMGW4kv7RL9vIKdtdAj9wuWUKy1wbHY3jaM/UlyIiC1G7J6UJiiyMukjjK0QwL3P0vBd0yYg==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz", - "integrity": "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-sets-regex": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.22.3.tgz", - "integrity": "sha512-hNufLdkF8vqywRp+P55j4FHXqAX2LRUccoZHH7AFn1pq5ZOO2ISKW9w13bFZVjBoTqeve2HOgoJCcaziJVhGNw==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/preset-env": { - "version": "7.22.4", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.22.4.tgz", - "integrity": "sha512-c3lHOjbwBv0TkhYCr+XCR6wKcSZ1QbQTVdSkZUaVpLv8CVWotBMArWUi5UAJrcrQaEnleVkkvaV8F/pmc/STZQ==", - "dependencies": { - "@babel/compat-data": "^7.22.3", - "@babel/helper-compilation-targets": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-validator-option": "^7.21.0", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.18.6", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.22.3", - "@babel/plugin-proposal-private-property-in-object": "^7.21.0", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3", - "@babel/plugin-syntax-import-assertions": "^7.20.0", - "@babel/plugin-syntax-import-attributes": "^7.22.3", - "@babel/plugin-syntax-import-meta": "^7.10.4", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5", - "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", - "@babel/plugin-transform-arrow-functions": "^7.21.5", - "@babel/plugin-transform-async-generator-functions": "^7.22.3", - "@babel/plugin-transform-async-to-generator": "^7.20.7", - "@babel/plugin-transform-block-scoped-functions": "^7.18.6", - "@babel/plugin-transform-block-scoping": "^7.21.0", - "@babel/plugin-transform-class-properties": "^7.22.3", - "@babel/plugin-transform-class-static-block": "^7.22.3", - "@babel/plugin-transform-classes": "^7.21.0", - "@babel/plugin-transform-computed-properties": "^7.21.5", - "@babel/plugin-transform-destructuring": "^7.21.3", - "@babel/plugin-transform-dotall-regex": "^7.18.6", - "@babel/plugin-transform-duplicate-keys": "^7.18.9", - "@babel/plugin-transform-dynamic-import": "^7.22.1", - "@babel/plugin-transform-exponentiation-operator": "^7.18.6", - "@babel/plugin-transform-export-namespace-from": "^7.22.3", - "@babel/plugin-transform-for-of": "^7.21.5", - "@babel/plugin-transform-function-name": "^7.18.9", - "@babel/plugin-transform-json-strings": "^7.22.3", - "@babel/plugin-transform-literals": "^7.18.9", - "@babel/plugin-transform-logical-assignment-operators": "^7.22.3", - "@babel/plugin-transform-member-expression-literals": "^7.18.6", - "@babel/plugin-transform-modules-amd": "^7.20.11", - "@babel/plugin-transform-modules-commonjs": "^7.21.5", - "@babel/plugin-transform-modules-systemjs": "^7.22.3", - "@babel/plugin-transform-modules-umd": "^7.18.6", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.3", - "@babel/plugin-transform-new-target": "^7.22.3", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.3", - "@babel/plugin-transform-numeric-separator": "^7.22.3", - "@babel/plugin-transform-object-rest-spread": "^7.22.3", - "@babel/plugin-transform-object-super": "^7.18.6", - "@babel/plugin-transform-optional-catch-binding": "^7.22.3", - "@babel/plugin-transform-optional-chaining": "^7.22.3", - "@babel/plugin-transform-parameters": "^7.22.3", - "@babel/plugin-transform-private-methods": "^7.22.3", - "@babel/plugin-transform-private-property-in-object": "^7.22.3", - "@babel/plugin-transform-property-literals": "^7.18.6", - "@babel/plugin-transform-regenerator": "^7.21.5", - "@babel/plugin-transform-reserved-words": "^7.18.6", - "@babel/plugin-transform-shorthand-properties": "^7.18.6", - "@babel/plugin-transform-spread": "^7.20.7", - "@babel/plugin-transform-sticky-regex": "^7.18.6", - "@babel/plugin-transform-template-literals": "^7.18.9", - "@babel/plugin-transform-typeof-symbol": "^7.18.9", - "@babel/plugin-transform-unicode-escapes": "^7.21.5", - "@babel/plugin-transform-unicode-property-regex": "^7.22.3", - "@babel/plugin-transform-unicode-regex": "^7.18.6", - "@babel/plugin-transform-unicode-sets-regex": "^7.22.3", - "@babel/preset-modules": "^0.1.5", - "@babel/types": "^7.22.4", - "babel-plugin-polyfill-corejs2": "^0.4.3", - "babel-plugin-polyfill-corejs3": "^0.8.1", - "babel-plugin-polyfill-regenerator": "^0.5.0", - "core-js-compat": "^3.30.2", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-modules": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", - "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", - "@babel/plugin-transform-dotall-regex": "^7.4.4", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-react": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.22.3.tgz", - "integrity": "sha512-lxDz1mnZ9polqClBCVBjIVUypoB4qV3/tZUDb/IlYbW1kiiLaXaX+bInbRjl+lNQ/iUZraQ3+S8daEmoELMWug==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-validator-option": "^7.21.0", - "@babel/plugin-transform-react-display-name": "^7.18.6", - "@babel/plugin-transform-react-jsx": "^7.22.3", - "@babel/plugin-transform-react-jsx-development": "^7.18.6", - "@babel/plugin-transform-react-pure-annotations": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-typescript": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.21.5.tgz", - "integrity": "sha512-iqe3sETat5EOrORXiQ6rWfoOg2y68Cs75B9wNxdPW4kixJxh7aXQE1KPdWLDniC24T/6dSnguF33W9j/ZZQcmA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-validator-option": "^7.21.0", - "@babel/plugin-syntax-jsx": "^7.21.4", - "@babel/plugin-transform-modules-commonjs": "^7.21.5", - "@babel/plugin-transform-typescript": "^7.21.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/regjsgen": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", - "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==" - }, - "node_modules/@babel/runtime": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.3.tgz", - "integrity": "sha512-XsDuspWKLUsxwCp6r7EhsExHtYfbe5oAGQ19kqngTdCPUoPQzOPdUbD/pB9PJiwb2ptYKQDjSJT3R6dC+EPqfQ==", - "dependencies": { - "regenerator-runtime": "^0.13.11" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/runtime-corejs3": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.22.3.tgz", - "integrity": "sha512-6bdmknScYKmt8I9VjsJuKKGr+TwUb555FTf6tT1P/ANlCjTHCiYLhiQ4X/O7J731w5NOqu8c1aYHEVuOwPz7jA==", - "dependencies": { - "core-js-pure": "^3.30.2", - "regenerator-runtime": "^0.13.11" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/template": { - "version": "7.21.9", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.21.9.tgz", - "integrity": "sha512-MK0X5k8NKOuWRamiEfc3KEJiHMTkGZNUjzMipqCGDDc6ijRl/B7RGSKVGncu4Ro/HdyzzY6cmoXuKI2Gffk7vQ==", - "dependencies": { - "@babel/code-frame": "^7.21.4", - "@babel/parser": "^7.21.9", - "@babel/types": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.22.4", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.4.tgz", - "integrity": "sha512-Tn1pDsjIcI+JcLKq1AVlZEr4226gpuAQTsLMorsYg9tuS/kG7nuwwJ4AB8jfQuEgb/COBwR/DqJxmoiYFu5/rQ==", - "dependencies": { - "@babel/code-frame": "^7.21.4", - "@babel/generator": "^7.22.3", - "@babel/helper-environment-visitor": "^7.22.1", - "@babel/helper-function-name": "^7.21.0", - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/parser": "^7.22.4", - "@babel/types": "^7.22.4", - "debug": "^4.1.0", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.22.4", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.4.tgz", - "integrity": "sha512-Tx9x3UBHTTsMSW85WB2kphxYQVvrZ/t1FxD88IpSgIjiUJlCm9z+xWIDwyo1vffTwSqteqyznB8ZE9vYYk16zA==", - "dependencies": { - "@babel/helper-string-parser": "^7.21.5", - "@babel/helper-validator-identifier": "^7.19.1", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@colors/colors": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", - "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", - "optional": true, - "engines": { - "node": ">=0.1.90" - } - }, - "node_modules/@csstools/selector-specificity": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-2.2.0.tgz", - "integrity": "sha512-+OJ9konv95ClSTOJCmMZqpd5+YGsB2S+x6w3E1oaM8UuR5j8nTNHYSz8c9BEPGDOCMQYIEEGlVPj/VY64iTbGw==", - "dev": true, - "engines": { - "node": "^14 || ^16 || >=18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss-selector-parser": "^6.0.10" - } - }, - "node_modules/@discoveryjs/json-ext": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", - "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/@docsearch/css": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/@docsearch/css/-/css-3.4.0.tgz", - "integrity": "sha512-Hg8Xfma+rFwRi6Y/pfei4FJoQ1hdVURmmNs/XPoMTCPAImU+d5yxj+M+qdLtNjWRpfWziU4dQcqY94xgFBn2dg==" - }, - "node_modules/@docsearch/react": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/@docsearch/react/-/react-3.4.0.tgz", - "integrity": "sha512-ufrp5879XYGojgS30ZAp8H4qIMbahRHB9M85VDBP36Xgz5QjYM54i1URKj5e219F7gqTtOivfztFTij6itc0MQ==", - "dependencies": { - "@algolia/autocomplete-core": "1.8.2", - "@algolia/autocomplete-preset-algolia": "1.8.2", - "@docsearch/css": "3.4.0", - "algoliasearch": "^4.0.0" - }, - "peerDependencies": { - "@types/react": ">= 16.8.0 < 19.0.0", - "react": ">= 16.8.0 < 19.0.0", - "react-dom": ">= 16.8.0 < 19.0.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - }, - "react": { - "optional": true - }, - "react-dom": { - "optional": true - } - } - }, - "node_modules/@docusaurus/core": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/core/-/core-2.4.1.tgz", - "integrity": "sha512-SNsY7PshK3Ri7vtsLXVeAJGS50nJN3RgF836zkyUfAD01Fq+sAk5EwWgLw+nnm5KVNGDu7PRR2kRGDsWvqpo0g==", - "dependencies": { - "@babel/core": "^7.18.6", - "@babel/generator": "^7.18.7", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-transform-runtime": "^7.18.6", - "@babel/preset-env": "^7.18.6", - "@babel/preset-react": "^7.18.6", - "@babel/preset-typescript": "^7.18.6", - "@babel/runtime": "^7.18.6", - "@babel/runtime-corejs3": "^7.18.6", - "@babel/traverse": "^7.18.8", - "@docusaurus/cssnano-preset": "2.4.1", - "@docusaurus/logger": "2.4.1", - "@docusaurus/mdx-loader": "2.4.1", - "@docusaurus/react-loadable": "5.5.2", - "@docusaurus/utils": "2.4.1", - "@docusaurus/utils-common": "2.4.1", - "@docusaurus/utils-validation": "2.4.1", - "@slorber/static-site-generator-webpack-plugin": "^4.0.7", - "@svgr/webpack": "^6.2.1", - "autoprefixer": "^10.4.7", - "babel-loader": "^8.2.5", - "babel-plugin-dynamic-import-node": "^2.3.3", - "boxen": "^6.2.1", - "chalk": "^4.1.2", - "chokidar": "^3.5.3", - "clean-css": "^5.3.0", - "cli-table3": "^0.6.2", - "combine-promises": "^1.1.0", - "commander": "^5.1.0", - "copy-webpack-plugin": "^11.0.0", - "core-js": "^3.23.3", - "css-loader": "^6.7.1", - "css-minimizer-webpack-plugin": "^4.0.0", - "cssnano": "^5.1.12", - "del": "^6.1.1", - "detect-port": "^1.3.0", - "escape-html": "^1.0.3", - "eta": "^2.0.0", - "file-loader": "^6.2.0", - "fs-extra": "^10.1.0", - "html-minifier-terser": "^6.1.0", - "html-tags": "^3.2.0", - "html-webpack-plugin": "^5.5.0", - "import-fresh": "^3.3.0", - "leven": "^3.1.0", - "lodash": "^4.17.21", - "mini-css-extract-plugin": "^2.6.1", - "postcss": "^8.4.14", - "postcss-loader": "^7.0.0", - "prompts": "^2.4.2", - "react-dev-utils": "^12.0.1", - "react-helmet-async": "^1.3.0", - "react-loadable": "npm:@docusaurus/react-loadable@5.5.2", - "react-loadable-ssr-addon-v5-slorber": "^1.0.1", - "react-router": "^5.3.3", - "react-router-config": "^5.1.1", - "react-router-dom": "^5.3.3", - "rtl-detect": "^1.0.4", - "semver": "^7.3.7", - "serve-handler": "^6.1.3", - "shelljs": "^0.8.5", - "terser-webpack-plugin": "^5.3.3", - "tslib": "^2.4.0", - "update-notifier": "^5.1.0", - "url-loader": "^4.1.1", - "wait-on": "^6.0.1", - "webpack": "^5.73.0", - "webpack-bundle-analyzer": "^4.5.0", - "webpack-dev-server": "^4.9.3", - "webpack-merge": "^5.8.0", - "webpackbar": "^5.0.2" - }, - "bin": { - "docusaurus": "bin/docusaurus.mjs" - }, - "engines": { - "node": ">=16.14" - }, - "peerDependencies": { - "react": "^16.8.4 || ^17.0.0", - "react-dom": "^16.8.4 || ^17.0.0" - } - }, - "node_modules/@docusaurus/core/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@docusaurus/core/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@docusaurus/core/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@docusaurus/core/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/@docusaurus/core/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/@docusaurus/core/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@docusaurus/core/node_modules/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@docusaurus/core/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@docusaurus/core/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, - "node_modules/@docusaurus/cssnano-preset": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/cssnano-preset/-/cssnano-preset-2.4.1.tgz", - "integrity": "sha512-ka+vqXwtcW1NbXxWsh6yA1Ckii1klY9E53cJ4O9J09nkMBgrNX3iEFED1fWdv8wf4mJjvGi5RLZ2p9hJNjsLyQ==", - "dependencies": { - "cssnano-preset-advanced": "^5.3.8", - "postcss": "^8.4.14", - "postcss-sort-media-queries": "^4.2.1", - "tslib": "^2.4.0" - }, - "engines": { - "node": ">=16.14" - } - }, - "node_modules/@docusaurus/eslint-plugin": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/eslint-plugin/-/eslint-plugin-2.4.1.tgz", - "integrity": "sha512-Sb+aLgf07v2xenPHlcBtvADFkE6xi1Nx9cKNb98Tq5MGoywHpxUfwT3RHar+eA8vCjR3fu0npSzuRt26AJa5lw==", - "dev": true, - "dependencies": { - "@typescript-eslint/utils": "^5.30.5", - "tslib": "^2.4.0" - }, - "engines": { - "node": ">=16.14" - }, - "peerDependencies": { - "eslint": ">=6" - } - }, - "node_modules/@docusaurus/logger": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/logger/-/logger-2.4.1.tgz", - "integrity": "sha512-5h5ysIIWYIDHyTVd8BjheZmQZmEgWDR54aQ1BX9pjFfpyzFo5puKXKYrYJXbjEHGyVhEzmB9UXwbxGfaZhOjcg==", - "dependencies": { - "chalk": "^4.1.2", - "tslib": "^2.4.0" - }, - "engines": { - "node": ">=16.14" - } - }, - "node_modules/@docusaurus/logger/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@docusaurus/logger/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@docusaurus/logger/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@docusaurus/logger/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/@docusaurus/logger/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/@docusaurus/logger/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@docusaurus/mdx-loader": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/mdx-loader/-/mdx-loader-2.4.1.tgz", - "integrity": "sha512-4KhUhEavteIAmbBj7LVFnrVYDiU51H5YWW1zY6SmBSte/YLhDutztLTBE0PQl1Grux1jzUJeaSvAzHpTn6JJDQ==", - "dependencies": { - "@babel/parser": "^7.18.8", - "@babel/traverse": "^7.18.8", - "@docusaurus/logger": "2.4.1", - "@docusaurus/utils": "2.4.1", - "@mdx-js/mdx": "^1.6.22", - "escape-html": "^1.0.3", - "file-loader": "^6.2.0", - "fs-extra": "^10.1.0", - "image-size": "^1.0.1", - "mdast-util-to-string": "^2.0.0", - "remark-emoji": "^2.2.0", - "stringify-object": "^3.3.0", - "tslib": "^2.4.0", - "unified": "^9.2.2", - "unist-util-visit": "^2.0.3", - "url-loader": "^4.1.1", - "webpack": "^5.73.0" - }, - "engines": { - "node": ">=16.14" - }, - "peerDependencies": { - "react": "^16.8.4 || ^17.0.0", - "react-dom": "^16.8.4 || ^17.0.0" - } - }, - "node_modules/@docusaurus/module-type-aliases": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/module-type-aliases/-/module-type-aliases-2.4.1.tgz", - "integrity": "sha512-gLBuIFM8Dp2XOCWffUDSjtxY7jQgKvYujt7Mx5s4FCTfoL5dN1EVbnrn+O2Wvh8b0a77D57qoIDY7ghgmatR1A==", - "dependencies": { - "@docusaurus/react-loadable": "5.5.2", - "@docusaurus/types": "2.4.1", - "@types/history": "^4.7.11", - "@types/react": "*", - "@types/react-router-config": "*", - "@types/react-router-dom": "*", - "react-helmet-async": "*", - "react-loadable": "npm:@docusaurus/react-loadable@5.5.2" - }, - "peerDependencies": { - "react": "*", - "react-dom": "*" - } - }, - "node_modules/@docusaurus/plugin-content-blog": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-blog/-/plugin-content-blog-2.4.1.tgz", - "integrity": "sha512-E2i7Knz5YIbE1XELI6RlTnZnGgS52cUO4BlCiCUCvQHbR+s1xeIWz4C6BtaVnlug0Ccz7nFSksfwDpVlkujg5Q==", - "dependencies": { - "@docusaurus/core": "2.4.1", - "@docusaurus/logger": "2.4.1", - "@docusaurus/mdx-loader": "2.4.1", - "@docusaurus/types": "2.4.1", - "@docusaurus/utils": "2.4.1", - "@docusaurus/utils-common": "2.4.1", - "@docusaurus/utils-validation": "2.4.1", - "cheerio": "^1.0.0-rc.12", - "feed": "^4.2.2", - "fs-extra": "^10.1.0", - "lodash": "^4.17.21", - "reading-time": "^1.5.0", - "tslib": "^2.4.0", - "unist-util-visit": "^2.0.3", - "utility-types": "^3.10.0", - "webpack": "^5.73.0" - }, - "engines": { - "node": ">=16.14" - }, - "peerDependencies": { - "react": "^16.8.4 || ^17.0.0", - "react-dom": "^16.8.4 || ^17.0.0" - } - }, - "node_modules/@docusaurus/plugin-content-docs": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-docs/-/plugin-content-docs-2.4.1.tgz", - "integrity": "sha512-Lo7lSIcpswa2Kv4HEeUcGYqaasMUQNpjTXpV0N8G6jXgZaQurqp7E8NGYeGbDXnb48czmHWbzDL4S3+BbK0VzA==", - "dependencies": { - "@docusaurus/core": "2.4.1", - "@docusaurus/logger": "2.4.1", - "@docusaurus/mdx-loader": "2.4.1", - "@docusaurus/module-type-aliases": "2.4.1", - "@docusaurus/types": "2.4.1", - "@docusaurus/utils": "2.4.1", - "@docusaurus/utils-validation": "2.4.1", - "@types/react-router-config": "^5.0.6", - "combine-promises": "^1.1.0", - "fs-extra": "^10.1.0", - "import-fresh": "^3.3.0", - "js-yaml": "^4.1.0", - "lodash": "^4.17.21", - "tslib": "^2.4.0", - "utility-types": "^3.10.0", - "webpack": "^5.73.0" - }, - "engines": { - "node": ">=16.14" - }, - "peerDependencies": { - "react": "^16.8.4 || ^17.0.0", - "react-dom": "^16.8.4 || ^17.0.0" - } - }, - "node_modules/@docusaurus/plugin-content-pages": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-pages/-/plugin-content-pages-2.4.1.tgz", - "integrity": "sha512-/UjuH/76KLaUlL+o1OvyORynv6FURzjurSjvn2lbWTFc4tpYY2qLYTlKpTCBVPhlLUQsfyFnshEJDLmPneq2oA==", - "dependencies": { - "@docusaurus/core": "2.4.1", - "@docusaurus/mdx-loader": "2.4.1", - "@docusaurus/types": "2.4.1", - "@docusaurus/utils": "2.4.1", - "@docusaurus/utils-validation": "2.4.1", - "fs-extra": "^10.1.0", - "tslib": "^2.4.0", - "webpack": "^5.73.0" - }, - "engines": { - "node": ">=16.14" - }, - "peerDependencies": { - "react": "^16.8.4 || ^17.0.0", - "react-dom": "^16.8.4 || ^17.0.0" - } - }, - "node_modules/@docusaurus/plugin-debug": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-debug/-/plugin-debug-2.4.1.tgz", - "integrity": "sha512-7Yu9UPzRShlrH/G8btOpR0e6INFZr0EegWplMjOqelIwAcx3PKyR8mgPTxGTxcqiYj6hxSCRN0D8R7YrzImwNA==", - "dependencies": { - "@docusaurus/core": "2.4.1", - "@docusaurus/types": "2.4.1", - "@docusaurus/utils": "2.4.1", - "fs-extra": "^10.1.0", - "react-json-view": "^1.21.3", - "tslib": "^2.4.0" - }, - "engines": { - "node": ">=16.14" - }, - "peerDependencies": { - "react": "^16.8.4 || ^17.0.0", - "react-dom": "^16.8.4 || ^17.0.0" - } - }, - "node_modules/@docusaurus/plugin-google-analytics": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-google-analytics/-/plugin-google-analytics-2.4.1.tgz", - "integrity": "sha512-dyZJdJiCoL+rcfnm0RPkLt/o732HvLiEwmtoNzOoz9MSZz117UH2J6U2vUDtzUzwtFLIf32KkeyzisbwUCgcaQ==", - "dependencies": { - "@docusaurus/core": "2.4.1", - "@docusaurus/types": "2.4.1", - "@docusaurus/utils-validation": "2.4.1", - "tslib": "^2.4.0" - }, - "engines": { - "node": ">=16.14" - }, - "peerDependencies": { - "react": "^16.8.4 || ^17.0.0", - "react-dom": "^16.8.4 || ^17.0.0" - } - }, - "node_modules/@docusaurus/plugin-google-gtag": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-google-gtag/-/plugin-google-gtag-2.4.1.tgz", - "integrity": "sha512-mKIefK+2kGTQBYvloNEKtDmnRD7bxHLsBcxgnbt4oZwzi2nxCGjPX6+9SQO2KCN5HZbNrYmGo5GJfMgoRvy6uA==", - "dependencies": { - "@docusaurus/core": "2.4.1", - "@docusaurus/types": "2.4.1", - "@docusaurus/utils-validation": "2.4.1", - "tslib": "^2.4.0" - }, - "engines": { - "node": ">=16.14" - }, - "peerDependencies": { - "react": "^16.8.4 || ^17.0.0", - "react-dom": "^16.8.4 || ^17.0.0" - } - }, - "node_modules/@docusaurus/plugin-google-tag-manager": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-google-tag-manager/-/plugin-google-tag-manager-2.4.1.tgz", - "integrity": "sha512-Zg4Ii9CMOLfpeV2nG74lVTWNtisFaH9QNtEw48R5QE1KIwDBdTVaiSA18G1EujZjrzJJzXN79VhINSbOJO/r3g==", - "dependencies": { - "@docusaurus/core": "2.4.1", - "@docusaurus/types": "2.4.1", - "@docusaurus/utils-validation": "2.4.1", - "tslib": "^2.4.0" - }, - "engines": { - "node": ">=16.14" - }, - "peerDependencies": { - "react": "^16.8.4 || ^17.0.0", - "react-dom": "^16.8.4 || ^17.0.0" - } - }, - "node_modules/@docusaurus/plugin-sitemap": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-sitemap/-/plugin-sitemap-2.4.1.tgz", - "integrity": "sha512-lZx+ijt/+atQ3FVE8FOHV/+X3kuok688OydDXrqKRJyXBJZKgGjA2Qa8RjQ4f27V2woaXhtnyrdPop/+OjVMRg==", - "dependencies": { - "@docusaurus/core": "2.4.1", - "@docusaurus/logger": "2.4.1", - "@docusaurus/types": "2.4.1", - "@docusaurus/utils": "2.4.1", - "@docusaurus/utils-common": "2.4.1", - "@docusaurus/utils-validation": "2.4.1", - "fs-extra": "^10.1.0", - "sitemap": "^7.1.1", - "tslib": "^2.4.0" - }, - "engines": { - "node": ">=16.14" - }, - "peerDependencies": { - "react": "^16.8.4 || ^17.0.0", - "react-dom": "^16.8.4 || ^17.0.0" - } - }, - "node_modules/@docusaurus/preset-classic": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/preset-classic/-/preset-classic-2.4.1.tgz", - "integrity": "sha512-P4//+I4zDqQJ+UDgoFrjIFaQ1MeS9UD1cvxVQaI6O7iBmiHQm0MGROP1TbE7HlxlDPXFJjZUK3x3cAoK63smGQ==", - "dependencies": { - "@docusaurus/core": "2.4.1", - "@docusaurus/plugin-content-blog": "2.4.1", - "@docusaurus/plugin-content-docs": "2.4.1", - "@docusaurus/plugin-content-pages": "2.4.1", - "@docusaurus/plugin-debug": "2.4.1", - "@docusaurus/plugin-google-analytics": "2.4.1", - "@docusaurus/plugin-google-gtag": "2.4.1", - "@docusaurus/plugin-google-tag-manager": "2.4.1", - "@docusaurus/plugin-sitemap": "2.4.1", - "@docusaurus/theme-classic": "2.4.1", - "@docusaurus/theme-common": "2.4.1", - "@docusaurus/theme-search-algolia": "2.4.1", - "@docusaurus/types": "2.4.1" - }, - "engines": { - "node": ">=16.14" - }, - "peerDependencies": { - "react": "^16.8.4 || ^17.0.0", - "react-dom": "^16.8.4 || ^17.0.0" - } - }, - "node_modules/@docusaurus/react-loadable": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz", - "integrity": "sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ==", - "dependencies": { - "@types/react": "*", - "prop-types": "^15.6.2" - }, - "peerDependencies": { - "react": "*" - } - }, - "node_modules/@docusaurus/theme-classic": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/theme-classic/-/theme-classic-2.4.1.tgz", - "integrity": "sha512-Rz0wKUa+LTW1PLXmwnf8mn85EBzaGSt6qamqtmnh9Hflkc+EqiYMhtUJeLdV+wsgYq4aG0ANc+bpUDpsUhdnwg==", - "dependencies": { - "@docusaurus/core": "2.4.1", - "@docusaurus/mdx-loader": "2.4.1", - "@docusaurus/module-type-aliases": "2.4.1", - "@docusaurus/plugin-content-blog": "2.4.1", - "@docusaurus/plugin-content-docs": "2.4.1", - "@docusaurus/plugin-content-pages": "2.4.1", - "@docusaurus/theme-common": "2.4.1", - "@docusaurus/theme-translations": "2.4.1", - "@docusaurus/types": "2.4.1", - "@docusaurus/utils": "2.4.1", - "@docusaurus/utils-common": "2.4.1", - "@docusaurus/utils-validation": "2.4.1", - "@mdx-js/react": "^1.6.22", - "clsx": "^1.2.1", - "copy-text-to-clipboard": "^3.0.1", - "infima": "0.2.0-alpha.43", - "lodash": "^4.17.21", - "nprogress": "^0.2.0", - "postcss": "^8.4.14", - "prism-react-renderer": "^1.3.5", - "prismjs": "^1.28.0", - "react-router-dom": "^5.3.3", - "rtlcss": "^3.5.0", - "tslib": "^2.4.0", - "utility-types": "^3.10.0" - }, - "engines": { - "node": ">=16.14" - }, - "peerDependencies": { - "react": "^16.8.4 || ^17.0.0", - "react-dom": "^16.8.4 || ^17.0.0" - } - }, - "node_modules/@docusaurus/theme-common": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/theme-common/-/theme-common-2.4.1.tgz", - "integrity": "sha512-G7Zau1W5rQTaFFB3x3soQoZpkgMbl/SYNG8PfMFIjKa3M3q8n0m/GRf5/H/e5BqOvt8c+ZWIXGCiz+kUCSHovA==", - "dependencies": { - "@docusaurus/mdx-loader": "2.4.1", - "@docusaurus/module-type-aliases": "2.4.1", - "@docusaurus/plugin-content-blog": "2.4.1", - "@docusaurus/plugin-content-docs": "2.4.1", - "@docusaurus/plugin-content-pages": "2.4.1", - "@docusaurus/utils": "2.4.1", - "@docusaurus/utils-common": "2.4.1", - "@types/history": "^4.7.11", - "@types/react": "*", - "@types/react-router-config": "*", - "clsx": "^1.2.1", - "parse-numeric-range": "^1.3.0", - "prism-react-renderer": "^1.3.5", - "tslib": "^2.4.0", - "use-sync-external-store": "^1.2.0", - "utility-types": "^3.10.0" - }, - "engines": { - "node": ">=16.14" - }, - "peerDependencies": { - "react": "^16.8.4 || ^17.0.0", - "react-dom": "^16.8.4 || ^17.0.0" - } - }, - "node_modules/@docusaurus/theme-search-algolia": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/theme-search-algolia/-/theme-search-algolia-2.4.1.tgz", - "integrity": "sha512-6BcqW2lnLhZCXuMAvPRezFs1DpmEKzXFKlYjruuas+Xy3AQeFzDJKTJFIm49N77WFCTyxff8d3E4Q9pi/+5McQ==", - "dependencies": { - "@docsearch/react": "^3.1.1", - "@docusaurus/core": "2.4.1", - "@docusaurus/logger": "2.4.1", - "@docusaurus/plugin-content-docs": "2.4.1", - "@docusaurus/theme-common": "2.4.1", - "@docusaurus/theme-translations": "2.4.1", - "@docusaurus/utils": "2.4.1", - "@docusaurus/utils-validation": "2.4.1", - "algoliasearch": "^4.13.1", - "algoliasearch-helper": "^3.10.0", - "clsx": "^1.2.1", - "eta": "^2.0.0", - "fs-extra": "^10.1.0", - "lodash": "^4.17.21", - "tslib": "^2.4.0", - "utility-types": "^3.10.0" - }, - "engines": { - "node": ">=16.14" - }, - "peerDependencies": { - "react": "^16.8.4 || ^17.0.0", - "react-dom": "^16.8.4 || ^17.0.0" - } - }, - "node_modules/@docusaurus/theme-translations": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/theme-translations/-/theme-translations-2.4.1.tgz", - "integrity": "sha512-T1RAGP+f86CA1kfE8ejZ3T3pUU3XcyvrGMfC/zxCtc2BsnoexuNI9Vk2CmuKCb+Tacvhxjv5unhxXce0+NKyvA==", - "dependencies": { - "fs-extra": "^10.1.0", - "tslib": "^2.4.0" - }, - "engines": { - "node": ">=16.14" - } - }, - "node_modules/@docusaurus/types": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/types/-/types-2.4.1.tgz", - "integrity": "sha512-0R+cbhpMkhbRXX138UOc/2XZFF8hiZa6ooZAEEJFp5scytzCw4tC1gChMFXrpa3d2tYE6AX8IrOEpSonLmfQuQ==", - "dependencies": { - "@types/history": "^4.7.11", - "@types/react": "*", - "commander": "^5.1.0", - "joi": "^17.6.0", - "react-helmet-async": "^1.3.0", - "utility-types": "^3.10.0", - "webpack": "^5.73.0", - "webpack-merge": "^5.8.0" - }, - "peerDependencies": { - "react": "^16.8.4 || ^17.0.0", - "react-dom": "^16.8.4 || ^17.0.0" - } - }, - "node_modules/@docusaurus/utils": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/utils/-/utils-2.4.1.tgz", - "integrity": "sha512-1lvEZdAQhKNht9aPXPoh69eeKnV0/62ROhQeFKKxmzd0zkcuE/Oc5Gpnt00y/f5bIsmOsYMY7Pqfm/5rteT5GA==", - "dependencies": { - "@docusaurus/logger": "2.4.1", - "@svgr/webpack": "^6.2.1", - "escape-string-regexp": "^4.0.0", - "file-loader": "^6.2.0", - "fs-extra": "^10.1.0", - "github-slugger": "^1.4.0", - "globby": "^11.1.0", - "gray-matter": "^4.0.3", - "js-yaml": "^4.1.0", - "lodash": "^4.17.21", - "micromatch": "^4.0.5", - "resolve-pathname": "^3.0.0", - "shelljs": "^0.8.5", - "tslib": "^2.4.0", - "url-loader": "^4.1.1", - "webpack": "^5.73.0" - }, - "engines": { - "node": ">=16.14" - }, - "peerDependencies": { - "@docusaurus/types": "*" - }, - "peerDependenciesMeta": { - "@docusaurus/types": { - "optional": true - } - } - }, - "node_modules/@docusaurus/utils-common": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/utils-common/-/utils-common-2.4.1.tgz", - "integrity": "sha512-bCVGdZU+z/qVcIiEQdyx0K13OC5mYwxhSuDUR95oFbKVuXYRrTVrwZIqQljuo1fyJvFTKHiL9L9skQOPokuFNQ==", - "dependencies": { - "tslib": "^2.4.0" - }, - "engines": { - "node": ">=16.14" - }, - "peerDependencies": { - "@docusaurus/types": "*" - }, - "peerDependenciesMeta": { - "@docusaurus/types": { - "optional": true - } - } - }, - "node_modules/@docusaurus/utils-validation": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/utils-validation/-/utils-validation-2.4.1.tgz", - "integrity": "sha512-unII3hlJlDwZ3w8U+pMO3Lx3RhI4YEbY3YNsQj4yzrkZzlpqZOLuAiZK2JyULnD+TKbceKU0WyWkQXtYbLNDFA==", - "dependencies": { - "@docusaurus/logger": "2.4.1", - "@docusaurus/utils": "2.4.1", - "joi": "^17.6.0", - "js-yaml": "^4.1.0", - "tslib": "^2.4.0" - }, - "engines": { - "node": ">=16.14" - } - }, - "node_modules/@easyops-cn/autocomplete.js": { - "version": "0.38.1", - "resolved": "https://registry.npmjs.org/@easyops-cn/autocomplete.js/-/autocomplete.js-0.38.1.tgz", - "integrity": "sha512-drg76jS6syilOUmVNkyo1c7ZEBPcPuK+aJA7AksM5ZIIbV57DMHCywiCr+uHyv8BE5jUTU98j/H7gVrkHrWW3Q==", - "dependencies": { - "cssesc": "^3.0.0", - "immediate": "^3.2.3" - } - }, - "node_modules/@easyops-cn/docusaurus-search-local": { - "version": "0.35.0", - "resolved": "https://registry.npmjs.org/@easyops-cn/docusaurus-search-local/-/docusaurus-search-local-0.35.0.tgz", - "integrity": "sha512-sHQ8jxsVgHH8MNXJlj20nZZfP/Q0peNTAJwKCN2aPuBwfRIoO0i7LmZFaYKenZmVAW/BD2MtfVd65SREmm3zxg==", - "dependencies": { - "@docusaurus/plugin-content-docs": "^2.0.0-rc.1", - "@docusaurus/theme-translations": "^2.0.0-rc.1", - "@docusaurus/utils": "^2.0.0-rc.1", - "@docusaurus/utils-common": "^2.0.0-rc.1", - "@docusaurus/utils-validation": "^2.0.0-rc.1", - "@easyops-cn/autocomplete.js": "^0.38.1", - "@node-rs/jieba": "^1.6.0", - "cheerio": "^1.0.0-rc.3", - "clsx": "^1.1.1", - "debug": "^4.2.0", - "fs-extra": "^10.0.0", - "klaw-sync": "^6.0.0", - "lunr": "^2.3.9", - "lunr-languages": "^1.4.0", - "mark.js": "^8.11.1", - "tslib": "^2.4.0" - }, - "engines": { - "node": ">=12" - }, - "peerDependencies": { - "@docusaurus/theme-common": "^2.0.0-rc.1", - "react": "^16.14.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", - "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", - "devOptional": true, - "dependencies": { - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", - "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", - "devOptional": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", - "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", - "devOptional": true, - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz", - "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==", - "devOptional": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.5.2", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", - "devOptional": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@eslint/eslintrc/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "devOptional": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@eslint/js": { - "version": "8.42.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.42.0.tgz", - "integrity": "sha512-6SWlXpWU5AvId8Ac7zjzmIOqMOba/JWY8XZ4A7q7Gn1Vlfg/SFFIlrtHXt9nPn4op9ZPAkl91Jao+QQv3r/ukw==", - "devOptional": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/@hapi/hoek": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", - "integrity": "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==" - }, - "node_modules/@hapi/topo": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz", - "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==", - "dependencies": { - "@hapi/hoek": "^9.0.0" - } - }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz", - "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==", - "devOptional": true, - "dependencies": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=10.10.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "devOptional": true, - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", - "devOptional": true - }, - "node_modules/@jest/schemas": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.4.3.tgz", - "integrity": "sha512-VLYKXQmtmuEz6IxJsrZwzG9NvtkQsWNnWMsKxqWNu3+CnfzJQhp0WDDKWLVV9hLKr0l3SLLFRqcYHjhtyuDVxg==", - "dependencies": { - "@sinclair/typebox": "^0.25.16" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/types": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.5.0.tgz", - "integrity": "sha512-qbu7kN6czmVRc3xWFQcAN03RAUamgppVUdXrvl1Wr3jlNF93o9mJbGcDWrwGB6ht44u7efB1qCFgVQmca24Uog==", - "dependencies": { - "@jest/schemas": "^29.4.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^17.0.8", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/types/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/types/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@jest/types/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@jest/types/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/@jest/types/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/types/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", - "dependencies": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/source-map": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz", - "integrity": "sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.18", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", - "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", - "dependencies": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" - } - }, - "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" - }, - "node_modules/@leichtgewicht/ip-codec": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz", - "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==" - }, - "node_modules/@mdx-js/mdx": { - "version": "1.6.22", - "resolved": "https://registry.npmjs.org/@mdx-js/mdx/-/mdx-1.6.22.tgz", - "integrity": "sha512-AMxuLxPz2j5/6TpF/XSdKpQP1NlG0z11dFOlq+2IP/lSgl11GY8ji6S/rgsViN/L0BDvHvUMruRb7ub+24LUYA==", - "dependencies": { - "@babel/core": "7.12.9", - "@babel/plugin-syntax-jsx": "7.12.1", - "@babel/plugin-syntax-object-rest-spread": "7.8.3", - "@mdx-js/util": "1.6.22", - "babel-plugin-apply-mdx-type-prop": "1.6.22", - "babel-plugin-extract-import-names": "1.6.22", - "camelcase-css": "2.0.1", - "detab": "2.0.4", - "hast-util-raw": "6.0.1", - "lodash.uniq": "4.5.0", - "mdast-util-to-hast": "10.0.1", - "remark-footnotes": "2.0.0", - "remark-mdx": "1.6.22", - "remark-parse": "8.0.3", - "remark-squeeze-paragraphs": "4.0.0", - "style-to-object": "0.3.0", - "unified": "9.2.0", - "unist-builder": "2.0.3", - "unist-util-visit": "2.0.3" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/@mdx-js/mdx/node_modules/@babel/core": { - "version": "7.12.9", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.9.tgz", - "integrity": "sha512-gTXYh3M5wb7FRXQy+FErKFAv90BnlOuNn1QkCK2lREoPAjrQCO49+HVSrFoe5uakFAF5eenS75KbO2vQiLrTMQ==", - "dependencies": { - "@babel/code-frame": "^7.10.4", - "@babel/generator": "^7.12.5", - "@babel/helper-module-transforms": "^7.12.1", - "@babel/helpers": "^7.12.5", - "@babel/parser": "^7.12.7", - "@babel/template": "^7.12.7", - "@babel/traverse": "^7.12.9", - "@babel/types": "^7.12.7", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.1", - "json5": "^2.1.2", - "lodash": "^4.17.19", - "resolve": "^1.3.2", - "semver": "^5.4.1", - "source-map": "^0.5.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@mdx-js/mdx/node_modules/@babel/plugin-syntax-jsx": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.12.1.tgz", - "integrity": "sha512-1yRi7yAtB0ETgxdY9ti/p2TivUxJkTdhu/ZbF9MshVGqOx1TdB3b7xCXs49Fupgg50N45KcAsRP/ZqWjs9SRjg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@mdx-js/mdx/node_modules/is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", - "engines": { - "node": ">=8" - } - }, - "node_modules/@mdx-js/mdx/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/@mdx-js/mdx/node_modules/source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/@mdx-js/mdx/node_modules/unified": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/unified/-/unified-9.2.0.tgz", - "integrity": "sha512-vx2Z0vY+a3YoTj8+pttM3tiJHCwY5UFbYdiWrwBEbHmK8pvsPj2rtAX2BFfgXen8T39CJWblWRDT4L5WGXtDdg==", - "dependencies": { - "bail": "^1.0.0", - "extend": "^3.0.0", - "is-buffer": "^2.0.0", - "is-plain-obj": "^2.0.0", - "trough": "^1.0.0", - "vfile": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/@mdx-js/react": { - "version": "1.6.22", - "resolved": "https://registry.npmjs.org/@mdx-js/react/-/react-1.6.22.tgz", - "integrity": "sha512-TDoPum4SHdfPiGSAaRBw7ECyI8VaHpK8GJugbJIJuqyh6kzw9ZLJZW3HGL3NNrJGxcAixUvqROm+YuQOo5eXtg==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - }, - "peerDependencies": { - "react": "^16.13.1 || ^17.0.0" - } - }, - "node_modules/@mdx-js/util": { - "version": "1.6.22", - "resolved": "https://registry.npmjs.org/@mdx-js/util/-/util-1.6.22.tgz", - "integrity": "sha512-H1rQc1ZOHANWBvPcW+JpGwr+juXSxM8Q8YCkm3GhZd8REu1fHR3z99CErO1p9pkcfcxZnMdIZdIsXkOHY0NilA==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/@nicolo-ribaudo/eslint-scope-5-internals": { - "version": "5.1.1-v1", - "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz", - "integrity": "sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==", - "dev": true, - "dependencies": { - "eslint-scope": "5.1.1" - } - }, - "node_modules/@node-rs/jieba": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba/-/jieba-1.7.0.tgz", - "integrity": "sha512-Hm1JIlejxkWe1FSFZRns/g1j5hZmp357n+0n2BluABA4KLZ8EraHfPmPRmVMW6vbdMZObTYIVu5aVrPnUfBOxg==", - "engines": { - "node": ">= 10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Brooooooklyn" - }, - "optionalDependencies": { - "@node-rs/jieba-android-arm-eabi": "1.7.0", - "@node-rs/jieba-android-arm64": "1.7.0", - "@node-rs/jieba-darwin-arm64": "1.7.0", - "@node-rs/jieba-darwin-x64": "1.7.0", - "@node-rs/jieba-freebsd-x64": "1.7.0", - "@node-rs/jieba-linux-arm-gnueabihf": "1.7.0", - "@node-rs/jieba-linux-arm64-gnu": "1.7.0", - "@node-rs/jieba-linux-arm64-musl": "1.7.0", - "@node-rs/jieba-linux-x64-gnu": "1.7.0", - "@node-rs/jieba-linux-x64-musl": "1.7.0", - "@node-rs/jieba-win32-arm64-msvc": "1.7.0", - "@node-rs/jieba-win32-ia32-msvc": "1.7.0", - "@node-rs/jieba-win32-x64-msvc": "1.7.0" - } - }, - "node_modules/@node-rs/jieba-android-arm-eabi": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-android-arm-eabi/-/jieba-android-arm-eabi-1.7.0.tgz", - "integrity": "sha512-XF4OYcZCyDiBK+jm1Zmt2o+xEO7K2K5OvUC3MTc9jd3Lwvy3EdHp8tpGvEp8PxfVFe2/JxNzX4OQQQP3Dhmk9A==", - "cpu": [ - "arm" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@node-rs/jieba-android-arm64": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-android-arm64/-/jieba-android-arm64-1.7.0.tgz", - "integrity": "sha512-9oWwFVr/37T89WC+jjiI9A6u0zUJNTJl5ZC4CMxX45MVMokWI7bBXU7t7qBmMdFBzj+OFwDd3sm1fh4vl7NSWA==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@node-rs/jieba-darwin-arm64": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-darwin-arm64/-/jieba-darwin-arm64-1.7.0.tgz", - "integrity": "sha512-9gBuxJCNITNI/gU5l8eeVGQ9MAf0BV86lfeo9TeU61vJCy6sqyx26wFMLODQgLNdiMP+q/fZme/G0hfZUjfPVA==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@node-rs/jieba-darwin-x64": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-darwin-x64/-/jieba-darwin-x64-1.7.0.tgz", - "integrity": "sha512-FFUSMY4tl0Prpxa1SHy7Yzze2KfV/bZzccpO5nd+a8zCKbiX6gVkJ89FfxSAD2QrXUGkZvJYiPmu5nkZItqRZQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@node-rs/jieba-freebsd-x64": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-freebsd-x64/-/jieba-freebsd-x64-1.7.0.tgz", - "integrity": "sha512-QFz2pz0Br+621QbKkgQPqTn90j1kcCD9jaI++qTLNHJGlWLRn6sFoAjb+jQEQEy9aE7VqfIV56eaVcCoU5VO2w==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@node-rs/jieba-linux-arm-gnueabihf": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-arm-gnueabihf/-/jieba-linux-arm-gnueabihf-1.7.0.tgz", - "integrity": "sha512-kHJxO2sd7gMKqI1YS5DjABEcRwRemaCtgbKSuUqEaHGmUz9nAaUF6FSY8U4rXwr7HXt+kQa4NgyYDjgz+Pscrw==", - "cpu": [ - "arm" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@node-rs/jieba-linux-arm64-gnu": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-arm64-gnu/-/jieba-linux-arm64-gnu-1.7.0.tgz", - "integrity": "sha512-3qoCV9pF6llPBGDMu7K8JdHjI10WPkrq6P2gpZESqekcE4DatV6DcU9FWR+QL7MK/7meoE3/Zhjm7OK+qBd8gg==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@node-rs/jieba-linux-arm64-musl": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-arm64-musl/-/jieba-linux-arm64-musl-1.7.0.tgz", - "integrity": "sha512-xv6hvzOV7iTCq7mM8SWhC3zEk6CqmBwhOSlfbb3gvPkc4U1UA1hmvcrD7oO5Qn+U+nuswysGCdVU6Z5AypLDfg==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@node-rs/jieba-linux-x64-gnu": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-x64-gnu/-/jieba-linux-x64-gnu-1.7.0.tgz", - "integrity": "sha512-NpelWidMSNLoFTw+ov3y5jhJZjapHwEnh0Fyfm/7mvqkdwzVyedqNj22etRGum+nsAosMotCUWUznIMAD075gQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@node-rs/jieba-linux-x64-musl": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-x64-musl/-/jieba-linux-x64-musl-1.7.0.tgz", - "integrity": "sha512-yG4F8sy+fW4RbhyKXmEMT/JGuQuKH0TGymCEGYgT0km2I60iys63jWf2VTzCtrx583wxN5XoHv5HN60nhtIBtw==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@node-rs/jieba-win32-arm64-msvc": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-win32-arm64-msvc/-/jieba-win32-arm64-msvc-1.7.0.tgz", - "integrity": "sha512-R6l/BSMs6R6BwpZS6DIDZuAEjUIPdAHgyi+xptP3mICjm6U+GMsvsRTeZkIJ7a/yzYUfqvz54VpQsfE5f0psBQ==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@node-rs/jieba-win32-ia32-msvc": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-win32-ia32-msvc/-/jieba-win32-ia32-msvc-1.7.0.tgz", - "integrity": "sha512-FwibbuizEjzom02K2JM2T8tL0VlxW5xGDDy3L3dgx46xIGE85PwGYjgju+eDt4UODgxDsxGC4DUMMZf3XvCc7A==", - "cpu": [ - "ia32" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@node-rs/jieba-win32-x64-msvc": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-win32-x64-msvc/-/jieba-win32-x64-msvc-1.7.0.tgz", - "integrity": "sha512-pJv7nluB6azhsOWvJB86Dyfg/M7n9k49bs9Bwmsylz9uhdZX9QnEShDW934RdmnjPYQ5aPgsSFrY6NXP/aovUA==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@polka/url": { - "version": "1.0.0-next.21", - "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.21.tgz", - "integrity": "sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==" - }, - "node_modules/@sideway/address": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.4.tgz", - "integrity": "sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw==", - "dependencies": { - "@hapi/hoek": "^9.0.0" - } - }, - "node_modules/@sideway/formula": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.1.tgz", - "integrity": "sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==" - }, - "node_modules/@sideway/pinpoint": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz", - "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==" - }, - "node_modules/@sinclair/typebox": { - "version": "0.25.24", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.25.24.tgz", - "integrity": "sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==" - }, - "node_modules/@sindresorhus/is": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", - "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/@slorber/static-site-generator-webpack-plugin": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/@slorber/static-site-generator-webpack-plugin/-/static-site-generator-webpack-plugin-4.0.7.tgz", - "integrity": "sha512-Ug7x6z5lwrz0WqdnNFOMYrDQNTPAprvHLSh6+/fmml3qUiz6l5eq+2MzLKWtn/q5K5NpSiFsZTP/fck/3vjSxA==", - "dependencies": { - "eval": "^0.1.8", - "p-map": "^4.0.0", - "webpack-sources": "^3.2.2" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/@svgr/babel-plugin-add-jsx-attribute": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-6.5.1.tgz", - "integrity": "sha512-9PYGcXrAxitycIjRmZB+Q0JaN07GZIWaTBIGQzfaZv+qr1n8X1XUEJ5rZ/vx6OVD9RRYlrNnXWExQXcmZeD/BQ==", - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-remove-jsx-attribute": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-8.0.0.tgz", - "integrity": "sha512-BcCkm/STipKvbCl6b7QFrMh/vx00vIP63k2eM66MfHJzPr6O2U0jYEViXkHJWqXqQYjdeA9cuCl5KWmlwjDvbA==", - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-remove-jsx-empty-expression": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-8.0.0.tgz", - "integrity": "sha512-5BcGCBfBxB5+XSDSWnhTThfI9jcO5f0Ai2V24gZpG+wXF14BzwxxdDb4g6trdOux0rhibGs385BeFMSmxtS3uA==", - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-replace-jsx-attribute-value": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-6.5.1.tgz", - "integrity": "sha512-8DPaVVE3fd5JKuIC29dqyMB54sA6mfgki2H2+swh+zNJoynC8pMPzOkidqHOSc6Wj032fhl8Z0TVn1GiPpAiJg==", - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-svg-dynamic-title": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-6.5.1.tgz", - "integrity": "sha512-FwOEi0Il72iAzlkaHrlemVurgSQRDFbk0OC8dSvD5fSBPHltNh7JtLsxmZUhjYBZo2PpcU/RJvvi6Q0l7O7ogw==", - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-svg-em-dimensions": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-6.5.1.tgz", - "integrity": "sha512-gWGsiwjb4tw+ITOJ86ndY/DZZ6cuXMNE/SjcDRg+HLuCmwpcjOktwRF9WgAiycTqJD/QXqL2f8IzE2Rzh7aVXA==", - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-transform-react-native-svg": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-6.5.1.tgz", - "integrity": "sha512-2jT3nTayyYP7kI6aGutkyfJ7UMGtuguD72OjeGLwVNyfPRBD8zQthlvL+fAbAKk5n9ZNcvFkp/b1lZ7VsYqVJg==", - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-transform-svg-component": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-6.5.1.tgz", - "integrity": "sha512-a1p6LF5Jt33O3rZoVRBqdxL350oge54iZWHNI6LJB5tQ7EelvD/Mb1mfBiZNAan0dt4i3VArkFRjA4iObuNykQ==", - "engines": { - "node": ">=12" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-preset": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-6.5.1.tgz", - "integrity": "sha512-6127fvO/FF2oi5EzSQOAjo1LE3OtNVh11R+/8FXa+mHx1ptAaS4cknIjnUA7e6j6fwGGJ17NzaTJFUwOV2zwCw==", - "dependencies": { - "@svgr/babel-plugin-add-jsx-attribute": "^6.5.1", - "@svgr/babel-plugin-remove-jsx-attribute": "*", - "@svgr/babel-plugin-remove-jsx-empty-expression": "*", - "@svgr/babel-plugin-replace-jsx-attribute-value": "^6.5.1", - "@svgr/babel-plugin-svg-dynamic-title": "^6.5.1", - "@svgr/babel-plugin-svg-em-dimensions": "^6.5.1", - "@svgr/babel-plugin-transform-react-native-svg": "^6.5.1", - "@svgr/babel-plugin-transform-svg-component": "^6.5.1" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/core": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/core/-/core-6.5.1.tgz", - "integrity": "sha512-/xdLSWxK5QkqG524ONSjvg3V/FkNyCv538OIBdQqPNaAta3AsXj/Bd2FbvR87yMbXO2hFSWiAe/Q6IkVPDw+mw==", - "dependencies": { - "@babel/core": "^7.19.6", - "@svgr/babel-preset": "^6.5.1", - "@svgr/plugin-jsx": "^6.5.1", - "camelcase": "^6.2.0", - "cosmiconfig": "^7.0.1" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@svgr/hast-util-to-babel-ast": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-6.5.1.tgz", - "integrity": "sha512-1hnUxxjd83EAxbL4a0JDJoD3Dao3hmjvyvyEV8PzWmLK3B9m9NPlW7GKjFyoWE8nM7HnXzPcmmSyOW8yOddSXw==", - "dependencies": { - "@babel/types": "^7.20.0", - "entities": "^4.4.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@svgr/plugin-jsx": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-6.5.1.tgz", - "integrity": "sha512-+UdQxI3jgtSjCykNSlEMuy1jSRQlGC7pqBCPvkG/2dATdWo082zHTTK3uhnAju2/6XpE6B5mZ3z4Z8Ns01S8Gw==", - "dependencies": { - "@babel/core": "^7.19.6", - "@svgr/babel-preset": "^6.5.1", - "@svgr/hast-util-to-babel-ast": "^6.5.1", - "svg-parser": "^2.0.4" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@svgr/core": "^6.0.0" - } - }, - "node_modules/@svgr/plugin-svgo": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/plugin-svgo/-/plugin-svgo-6.5.1.tgz", - "integrity": "sha512-omvZKf8ixP9z6GWgwbtmP9qQMPX4ODXi+wzbVZgomNFsUIlHA1sf4fThdwTWSsZGgvGAG6yE+b/F5gWUkcZ/iQ==", - "dependencies": { - "cosmiconfig": "^7.0.1", - "deepmerge": "^4.2.2", - "svgo": "^2.8.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@svgr/core": "*" - } - }, - "node_modules/@svgr/webpack": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/webpack/-/webpack-6.5.1.tgz", - "integrity": "sha512-cQ/AsnBkXPkEK8cLbv4Dm7JGXq2XrumKnL1dRpJD9rIO2fTIlJI9a1uCciYG1F2aUsox/hJQyNGbt3soDxSRkA==", - "dependencies": { - "@babel/core": "^7.19.6", - "@babel/plugin-transform-react-constant-elements": "^7.18.12", - "@babel/preset-env": "^7.19.4", - "@babel/preset-react": "^7.18.6", - "@babel/preset-typescript": "^7.18.6", - "@svgr/core": "^6.5.1", - "@svgr/plugin-jsx": "^6.5.1", - "@svgr/plugin-svgo": "^6.5.1" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@szmarczak/http-timer": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", - "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", - "dependencies": { - "defer-to-connect": "^1.0.1" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/@trysound/sax": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", - "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==", - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/@tsconfig/docusaurus": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/@tsconfig/docusaurus/-/docusaurus-1.0.7.tgz", - "integrity": "sha512-ffTXxGIP/IRMCjuzHd6M4/HdIrw1bMfC7Bv8hMkTadnePkpe0lG0oDSdbRpSDZb2rQMAgpbWiR10BvxvNYwYrg==", - "dev": true - }, - "node_modules/@types/body-parser": { - "version": "1.19.2", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", - "integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==", - "dependencies": { - "@types/connect": "*", - "@types/node": "*" - } - }, - "node_modules/@types/bonjour": { - "version": "3.5.10", - "resolved": "https://registry.npmjs.org/@types/bonjour/-/bonjour-3.5.10.tgz", - "integrity": "sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/connect": { - "version": "3.4.35", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", - "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/connect-history-api-fallback": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.0.tgz", - "integrity": "sha512-4x5FkPpLipqwthjPsF7ZRbOv3uoLUFkTA9G9v583qi4pACvq0uTELrB8OLUzPWUI4IJIyvM85vzkV1nyiI2Lig==", - "dependencies": { - "@types/express-serve-static-core": "*", - "@types/node": "*" - } - }, - "node_modules/@types/debug": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz", - "integrity": "sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==", - "dependencies": { - "@types/ms": "*" - } - }, - "node_modules/@types/eslint": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.40.0.tgz", - "integrity": "sha512-nbq2mvc/tBrK9zQQuItvjJl++GTN5j06DaPtp3hZCpngmG6Q3xoyEmd0TwZI0gAy/G1X0zhGBbr2imsGFdFV0g==", - "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "node_modules/@types/eslint-scope": { - "version": "3.7.4", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", - "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", - "dependencies": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, - "node_modules/@types/estree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", - "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==" - }, - "node_modules/@types/express": { - "version": "4.17.17", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz", - "integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==", - "dependencies": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^4.17.33", - "@types/qs": "*", - "@types/serve-static": "*" - } - }, - "node_modules/@types/express-serve-static-core": { - "version": "4.17.35", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.35.tgz", - "integrity": "sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==", - "dependencies": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" - } - }, - "node_modules/@types/hast": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.4.tgz", - "integrity": "sha512-wLEm0QvaoawEDoTRwzTXp4b4jpwiJDvR5KMnFnVodm3scufTlBOWRD6N1OBf9TZMhjlNsSfcO5V+7AF4+Vy+9g==", - "dependencies": { - "@types/unist": "*" - } - }, - "node_modules/@types/history": { - "version": "4.7.11", - "resolved": "https://registry.npmjs.org/@types/history/-/history-4.7.11.tgz", - "integrity": "sha512-qjDJRrmvBMiTx+jyLxvLfJU7UznFuokDv4f3WRuriHKERccVpFU+8XMQUAbDzoiJCsmexxRExQeMwwCdamSKDA==" - }, - "node_modules/@types/html-minifier-terser": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", - "integrity": "sha512-oh/6byDPnL1zeNXFrDXFLyZjkr1MsBG667IM792caf1L2UPOOMf65NFzjUH/ltyfwjAGfs1rsX1eftK0jC/KIg==" - }, - "node_modules/@types/http-proxy": { - "version": "1.17.11", - "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.11.tgz", - "integrity": "sha512-HC8G7c1WmaF2ekqpnFq626xd3Zz0uvaqFmBJNRZCGEZCXkvSdJoNFn/8Ygbd9fKNQj8UzLdCETaI0UWPAjK7IA==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/istanbul-lib-coverage": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", - "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==" - }, - "node_modules/@types/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", - "dependencies": { - "@types/istanbul-lib-coverage": "*" - } - }, - "node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/@types/json-schema": { - "version": "7.0.12", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", - "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==" - }, - "node_modules/@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true - }, - "node_modules/@types/mdast": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.11.tgz", - "integrity": "sha512-Y/uImid8aAwrEA24/1tcRZwpxX3pIFTSilcNDKSPn+Y2iDywSEachzRuvgAYYLR3wpGXAsMbv5lvKLDZLeYPAw==", - "dependencies": { - "@types/unist": "*" - } - }, - "node_modules/@types/mime": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz", - "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==" - }, - "node_modules/@types/minimist": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", - "integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==", - "dev": true - }, - "node_modules/@types/ms": { - "version": "0.7.31", - "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz", - "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==" - }, - "node_modules/@types/node": { - "version": "20.2.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.5.tgz", - "integrity": "sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ==" - }, - "node_modules/@types/normalize-package-data": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz", - "integrity": "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==", - "dev": true - }, - "node_modules/@types/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==" - }, - "node_modules/@types/parse5": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/@types/parse5/-/parse5-5.0.3.tgz", - "integrity": "sha512-kUNnecmtkunAoQ3CnjmMkzNU/gtxG8guhi+Fk2U/kOpIKjIMKnXGp4IJCgQJrXSgMsWYimYG4TGjz/UzbGEBTw==" - }, - "node_modules/@types/prop-types": { - "version": "15.7.5", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", - "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==" - }, - "node_modules/@types/qs": { - "version": "6.9.7", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", - "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==" - }, - "node_modules/@types/range-parser": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", - "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==" - }, - "node_modules/@types/react": { - "version": "18.2.8", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.8.tgz", - "integrity": "sha512-lTyWUNrd8ntVkqycEEplasWy2OxNlShj3zqS0LuB1ENUGis5HodmhM7DtCoUGbxj3VW/WsGA0DUhpG6XrM7gPA==", - "dependencies": { - "@types/prop-types": "*", - "@types/scheduler": "*", - "csstype": "^3.0.2" - } - }, - "node_modules/@types/react-router": { - "version": "5.1.20", - "resolved": "https://registry.npmjs.org/@types/react-router/-/react-router-5.1.20.tgz", - "integrity": "sha512-jGjmu/ZqS7FjSH6owMcD5qpq19+1RS9DeVRqfl1FeBMxTDQAGwlMWOcs52NDoXaNKyG3d1cYQFMs9rCrb88o9Q==", - "dependencies": { - "@types/history": "^4.7.11", - "@types/react": "*" - } - }, - "node_modules/@types/react-router-config": { - "version": "5.0.7", - "resolved": "https://registry.npmjs.org/@types/react-router-config/-/react-router-config-5.0.7.tgz", - "integrity": "sha512-pFFVXUIydHlcJP6wJm7sDii5mD/bCmmAY0wQzq+M+uX7bqS95AQqHZWP1iNMKrWVQSuHIzj5qi9BvrtLX2/T4w==", - "dependencies": { - "@types/history": "^4.7.11", - "@types/react": "*", - "@types/react-router": "^5.1.0" - } - }, - "node_modules/@types/react-router-dom": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/@types/react-router-dom/-/react-router-dom-5.3.3.tgz", - "integrity": "sha512-kpqnYK4wcdm5UaWI3fLcELopqLrHgLqNsdpHauzlQktfkHL3npOSwtj1Uz9oKBAzs7lFtVkV8j83voAz2D8fhw==", - "dependencies": { - "@types/history": "^4.7.11", - "@types/react": "*", - "@types/react-router": "*" - } - }, - "node_modules/@types/retry": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", - "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==" - }, - "node_modules/@types/sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@types/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-pSAff4IAxJjfAXUG6tFkO7dsSbTmf8CtUpfhhZ5VhkRpC4628tJhh3+V6H1E+/Gs9piSzYKT5yzHO5M4GG9jkw==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/scheduler": { - "version": "0.16.3", - "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.3.tgz", - "integrity": "sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==" - }, - "node_modules/@types/semver": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.0.tgz", - "integrity": "sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==", - "dev": true - }, - "node_modules/@types/send": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.1.tgz", - "integrity": "sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==", - "dependencies": { - "@types/mime": "^1", - "@types/node": "*" - } - }, - "node_modules/@types/serve-index": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.1.tgz", - "integrity": "sha512-d/Hs3nWDxNL2xAczmOVZNj92YZCS6RGxfBPjKzuu/XirCgXdpKEb88dYNbrYGint6IVWLNP+yonwVAuRC0T2Dg==", - "dependencies": { - "@types/express": "*" - } - }, - "node_modules/@types/serve-static": { - "version": "1.15.1", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz", - "integrity": "sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==", - "dependencies": { - "@types/mime": "*", - "@types/node": "*" - } - }, - "node_modules/@types/sockjs": { - "version": "0.3.33", - "resolved": "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.33.tgz", - "integrity": "sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/unist": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.6.tgz", - "integrity": "sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==" - }, - "node_modules/@types/ws": { - "version": "8.5.4", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.4.tgz", - "integrity": "sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/yargs": { - "version": "17.0.24", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", - "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/@types/yargs-parser": { - "version": "21.0.0", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", - "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==" - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.9.tgz", - "integrity": "sha512-4uQIBq1ffXd2YvF7MAvehWKW3zVv/w+mSfRAu+8cKbfj3nwzyqJLNcZJpQ/WZ1HLbJDiowwmQ6NO+63nCA+fqA==", - "dev": true, - "dependencies": { - "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.59.9", - "@typescript-eslint/type-utils": "5.59.9", - "@typescript-eslint/utils": "5.59.9", - "debug": "^4.3.4", - "grapheme-splitter": "^1.0.4", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/@typescript-eslint/parser": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.9.tgz", - "integrity": "sha512-FsPkRvBtcLQ/eVK1ivDiNYBjn3TGJdXy2fhXX+rc7czWl4ARwnpArwbihSOHI2Peg9WbtGHrbThfBUkZZGTtvQ==", - "dev": true, - "dependencies": { - "@typescript-eslint/scope-manager": "5.59.9", - "@typescript-eslint/types": "5.59.9", - "@typescript-eslint/typescript-estree": "5.59.9", - "debug": "^4.3.4" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.9.tgz", - "integrity": "sha512-8RA+E+w78z1+2dzvK/tGZ2cpGigBZ58VMEHDZtpE1v+LLjzrYGc8mMaTONSxKyEkz3IuXFM0IqYiGHlCsmlZxQ==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "5.59.9", - "@typescript-eslint/visitor-keys": "5.59.9" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.9.tgz", - "integrity": "sha512-ksEsT0/mEHg9e3qZu98AlSrONAQtrSTljL3ow9CGej8eRo7pe+yaC/mvTjptp23Xo/xIf2mLZKC6KPv4Sji26Q==", - "dev": true, - "dependencies": { - "@typescript-eslint/typescript-estree": "5.59.9", - "@typescript-eslint/utils": "5.59.9", - "debug": "^4.3.4", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "*" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/types": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.9.tgz", - "integrity": "sha512-uW8H5NRgTVneSVTfiCVffBb8AbwWSKg7qcA4Ot3JI3MPCJGsB4Db4BhvAODIIYE5mNj7Q+VJkK7JxmRhk2Lyjw==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.9.tgz", - "integrity": "sha512-pmM0/VQ7kUhd1QyIxgS+aRvMgw+ZljB3eDb+jYyp6d2bC0mQWLzUDF+DLwCTkQ3tlNyVsvZRXjFyV0LkU/aXjA==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "5.59.9", - "@typescript-eslint/visitor-keys": "5.59.9", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/@typescript-eslint/utils": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.9.tgz", - "integrity": "sha512-1PuMYsju/38I5Ggblaeb98TOoUvjhRvLpLa1DoTOFaLWqaXl/1iQ1eGurTXgBY58NUdtfTXKP5xBq7q9NDaLKg==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.59.9", - "@typescript-eslint/types": "5.59.9", - "@typescript-eslint/typescript-estree": "5.59.9", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.9.tgz", - "integrity": "sha512-bT7s0td97KMaLwpEBckbzj/YohnvXtqbe2XgqNvTl6RJVakY5mvENOTPvw5u66nljfZxthESpDozs86U+oLY8Q==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "5.59.9", - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", - "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@webassemblyjs/ast": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", - "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", - "dependencies": { - "@webassemblyjs/helper-numbers": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6" - } - }, - "node_modules/@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", - "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==" - }, - "node_modules/@webassemblyjs/helper-api-error": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", - "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==" - }, - "node_modules/@webassemblyjs/helper-buffer": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", - "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==" - }, - "node_modules/@webassemblyjs/helper-numbers": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", - "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", - "dependencies": { - "@webassemblyjs/floating-point-hex-parser": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", - "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==" - }, - "node_modules/@webassemblyjs/helper-wasm-section": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", - "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6" - } - }, - "node_modules/@webassemblyjs/ieee754": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", - "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", - "dependencies": { - "@xtuc/ieee754": "^1.2.0" - } - }, - "node_modules/@webassemblyjs/leb128": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", - "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", - "dependencies": { - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webassemblyjs/utf8": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", - "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==" - }, - "node_modules/@webassemblyjs/wasm-edit": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", - "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/helper-wasm-section": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-opt": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6", - "@webassemblyjs/wast-printer": "1.11.6" - } - }, - "node_modules/@webassemblyjs/wasm-gen": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", - "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" - } - }, - "node_modules/@webassemblyjs/wasm-opt": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", - "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6" - } - }, - "node_modules/@webassemblyjs/wasm-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", - "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" - } - }, - "node_modules/@webassemblyjs/wast-printer": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", - "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==" - }, - "node_modules/@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==" - }, - "node_modules/accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "dependencies": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/accepts/node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/accepts/node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-import-assertions": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", - "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", - "peerDependencies": { - "acorn": "^8" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "devOptional": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/address": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/address/-/address-1.2.2.tgz", - "integrity": "sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA==", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/aggregate-error": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", - "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", - "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-formats": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", - "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", - "dependencies": { - "ajv": "^8.0.0" - }, - "peerDependencies": { - "ajv": "^8.0.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - } - }, - "node_modules/ajv-formats/node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-formats/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "peerDependencies": { - "ajv": "^6.9.1" - } - }, - "node_modules/algoliasearch": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/algoliasearch/-/algoliasearch-4.17.1.tgz", - "integrity": "sha512-4GDQ1RhP2qUR3x8PevFRbEdqZqIARNViZYjgTJmA1T7wRNtFA3W4Aqc/RsODqa1J8IO/QDla5x4tWuUS8NV8wA==", - "dependencies": { - "@algolia/cache-browser-local-storage": "4.17.1", - "@algolia/cache-common": "4.17.1", - "@algolia/cache-in-memory": "4.17.1", - "@algolia/client-account": "4.17.1", - "@algolia/client-analytics": "4.17.1", - "@algolia/client-common": "4.17.1", - "@algolia/client-personalization": "4.17.1", - "@algolia/client-search": "4.17.1", - "@algolia/logger-common": "4.17.1", - "@algolia/logger-console": "4.17.1", - "@algolia/requester-browser-xhr": "4.17.1", - "@algolia/requester-common": "4.17.1", - "@algolia/requester-node-http": "4.17.1", - "@algolia/transporter": "4.17.1" - } - }, - "node_modules/algoliasearch-helper": { - "version": "3.13.0", - "resolved": "https://registry.npmjs.org/algoliasearch-helper/-/algoliasearch-helper-3.13.0.tgz", - "integrity": "sha512-kV3c1jMQCvkARtGsSDvAwuht4PAMSsQILqPiH4WFiARoa3jXJ/r1TQoBWAjWyWF48rsNYCv7kzxgB4LTxrvvuw==", - "dependencies": { - "@algolia/events": "^4.0.1" - }, - "peerDependencies": { - "algoliasearch": ">= 3.1 < 6" - } - }, - "node_modules/ansi-align": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz", - "integrity": "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==", - "dependencies": { - "string-width": "^4.1.0" - } - }, - "node_modules/ansi-align/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/ansi-align/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-align/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dev": true, - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ansi-escapes/node_modules/type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ansi-html-community": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", - "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==", - "engines": [ - "node >= 0.8.0" - ], - "bin": { - "ansi-html": "bin/ansi-html" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/arg": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", - "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==" - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - }, - "node_modules/aria-query": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz", - "integrity": "sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==", - "dev": true, - "dependencies": { - "deep-equal": "^2.0.5" - } - }, - "node_modules/array-buffer-byte-length": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", - "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "is-array-buffer": "^3.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array-flatten": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", - "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==" - }, - "node_modules/array-includes": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", - "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "is-string": "^1.0.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/array.prototype.flat": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", - "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.flatmap": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", - "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.tosorted": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz", - "integrity": "sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0", - "get-intrinsic": "^1.1.3" - } - }, - "node_modules/arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/asap": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==" - }, - "node_modules/ast-types-flow": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", - "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", - "dev": true - }, - "node_modules/astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/at-least-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/autoprefixer": { - "version": "10.4.14", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz", - "integrity": "sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/autoprefixer" - } - ], - "dependencies": { - "browserslist": "^4.21.5", - "caniuse-lite": "^1.0.30001464", - "fraction.js": "^4.2.0", - "normalize-range": "^0.1.2", - "picocolors": "^1.0.0", - "postcss-value-parser": "^4.2.0" - }, - "bin": { - "autoprefixer": "bin/autoprefixer" - }, - "engines": { - "node": "^10 || ^12 || >=14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/axe-core": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.2.tgz", - "integrity": "sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/axios": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.25.0.tgz", - "integrity": "sha512-cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g==", - "dependencies": { - "follow-redirects": "^1.14.7" - } - }, - "node_modules/axobject-query": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz", - "integrity": "sha512-goKlv8DZrK9hUh975fnHzhNIO4jUnFCfv/dszV5VwUGDFjI6vQ2VwoyjYjYNEbBE8AH87TduWP5uyDR1D+Iteg==", - "dev": true, - "dependencies": { - "deep-equal": "^2.0.5" - } - }, - "node_modules/babel-loader": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.3.0.tgz", - "integrity": "sha512-H8SvsMF+m9t15HNLMipppzkC+Y2Yq+v3SonZyU70RBL/h1gxPkH08Ot8pEE9Z4Kd+czyWJClmFS8qzIP9OZ04Q==", - "dependencies": { - "find-cache-dir": "^3.3.1", - "loader-utils": "^2.0.0", - "make-dir": "^3.1.0", - "schema-utils": "^2.6.5" - }, - "engines": { - "node": ">= 8.9" - }, - "peerDependencies": { - "@babel/core": "^7.0.0", - "webpack": ">=2" - } - }, - "node_modules/babel-plugin-apply-mdx-type-prop": { - "version": "1.6.22", - "resolved": "https://registry.npmjs.org/babel-plugin-apply-mdx-type-prop/-/babel-plugin-apply-mdx-type-prop-1.6.22.tgz", - "integrity": "sha512-VefL+8o+F/DfK24lPZMtJctrCVOfgbqLAGZSkxwhazQv4VxPg3Za/i40fu22KR2m8eEda+IfSOlPLUSIiLcnCQ==", - "dependencies": { - "@babel/helper-plugin-utils": "7.10.4", - "@mdx-js/util": "1.6.22" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - }, - "peerDependencies": { - "@babel/core": "^7.11.6" - } - }, - "node_modules/babel-plugin-apply-mdx-type-prop/node_modules/@babel/helper-plugin-utils": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz", - "integrity": "sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==" - }, - "node_modules/babel-plugin-dynamic-import-node": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", - "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==", - "dependencies": { - "object.assign": "^4.1.0" - } - }, - "node_modules/babel-plugin-extract-import-names": { - "version": "1.6.22", - "resolved": "https://registry.npmjs.org/babel-plugin-extract-import-names/-/babel-plugin-extract-import-names-1.6.22.tgz", - "integrity": "sha512-yJ9BsJaISua7d8zNT7oRG1ZLBJCIdZ4PZqmH8qa9N5AK01ifk3fnkc98AXhtzE7UkfCsEumvoQWgoYLhOnJ7jQ==", - "dependencies": { - "@babel/helper-plugin-utils": "7.10.4" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/babel-plugin-extract-import-names/node_modules/@babel/helper-plugin-utils": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz", - "integrity": "sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==" - }, - "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.3.tgz", - "integrity": "sha512-bM3gHc337Dta490gg+/AseNB9L4YLHxq1nGKZZSHbhXv4aTYU2MD2cjza1Ru4S6975YLTaL1K8uJf6ukJhhmtw==", - "dependencies": { - "@babel/compat-data": "^7.17.7", - "@babel/helper-define-polyfill-provider": "^0.4.0", - "semver": "^6.1.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.1.tgz", - "integrity": "sha512-ikFrZITKg1xH6pLND8zT14UPgjKHiGLqex7rGEZCH2EvhsneJaJPemmpQaIZV5AL03II+lXylw3UmddDK8RU5Q==", - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.4.0", - "core-js-compat": "^3.30.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.0.tgz", - "integrity": "sha512-hDJtKjMLVa7Z+LwnTCxoDLQj6wdc+B8dun7ayF2fYieI6OzfuvcLMB32ihJZ4UhCBwNYGl5bg/x/P9cMdnkc2g==", - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.4.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/bail": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/bail/-/bail-1.0.5.tgz", - "integrity": "sha512-xFbRxM1tahm08yHBP16MMjVUAvDaBMD38zsM9EMAUN61omwLmKlOpB/Zku5QkjZ8TZ4vn53pj+t518cH0S03RQ==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "node_modules/base16": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/base16/-/base16-1.0.0.tgz", - "integrity": "sha512-pNdYkNPiJUnEhnfXV56+sQy8+AaPcG3POZAUnwr4EeqCUZFz4u2PePbo3e5Gj4ziYPCWGUZT9RHisvJKnwFuBQ==" - }, - "node_modules/batch": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", - "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==" - }, - "node_modules/big.js": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", - "engines": { - "node": "*" - } - }, - "node_modules/binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "engines": { - "node": ">=8" - } - }, - "node_modules/body-parser": { - "version": "1.20.1", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", - "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", - "dependencies": { - "bytes": "3.1.2", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.11.0", - "raw-body": "2.5.1", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/body-parser/node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/body-parser/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/body-parser/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/bonjour-service": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.1.1.tgz", - "integrity": "sha512-Z/5lQRMOG9k7W+FkeGTNjh7htqn/2LMnfOvBZ8pynNZCM9MwkQkI3zeI4oz09uWdcgmgHugVvBqxGg4VQJ5PCg==", - "dependencies": { - "array-flatten": "^2.1.2", - "dns-equal": "^1.0.0", - "fast-deep-equal": "^3.1.3", - "multicast-dns": "^7.2.5" - } - }, - "node_modules/boolbase": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==" - }, - "node_modules/boxen": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/boxen/-/boxen-6.2.1.tgz", - "integrity": "sha512-H4PEsJXfFI/Pt8sjDWbHlQPx4zL/bvSQjcilJmaulGt5mLDorHOHpmdXAJcBcmru7PhYSp/cDMWRko4ZUMFkSw==", - "dependencies": { - "ansi-align": "^3.0.1", - "camelcase": "^6.2.0", - "chalk": "^4.1.2", - "cli-boxes": "^3.0.0", - "string-width": "^5.0.1", - "type-fest": "^2.5.0", - "widest-line": "^4.0.1", - "wrap-ansi": "^8.0.1" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/boxen/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/boxen/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/boxen/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/boxen/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/boxen/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/boxen/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browserslist": { - "version": "4.21.7", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.7.tgz", - "integrity": "sha512-BauCXrQ7I2ftSqd2mvKHGo85XR0u7Ru3C/Hxsy/0TkfCtjrmAbPdzLGasmoiBxplpDXlPvdjX9u7srIMfgasNA==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "caniuse-lite": "^1.0.30001489", - "electron-to-chromium": "^1.4.411", - "node-releases": "^2.0.12", - "update-browserslist-db": "^1.0.11" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" - }, - "node_modules/bytes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", - "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/cacheable-request": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", - "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", - "dependencies": { - "clone-response": "^1.0.2", - "get-stream": "^5.1.0", - "http-cache-semantics": "^4.0.0", - "keyv": "^3.0.0", - "lowercase-keys": "^2.0.0", - "normalize-url": "^4.1.0", - "responselike": "^1.0.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cacheable-request/node_modules/get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/cacheable-request/node_modules/lowercase-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", - "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", - "engines": { - "node": ">=8" - } - }, - "node_modules/cacheable-request/node_modules/normalize-url": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz", - "integrity": "sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==", - "engines": { - "node": ">=8" - } - }, - "node_modules/call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/camel-case": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", - "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", - "dependencies": { - "pascal-case": "^3.1.2", - "tslib": "^2.0.3" - } - }, - "node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/camelcase-css": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", - "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", - "engines": { - "node": ">= 6" - } - }, - "node_modules/camelcase-keys": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", - "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", - "dev": true, - "dependencies": { - "camelcase": "^5.3.1", - "map-obj": "^4.0.0", - "quick-lru": "^4.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/camelcase-keys/node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/caniuse-api": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", - "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", - "dependencies": { - "browserslist": "^4.0.0", - "caniuse-lite": "^1.0.0", - "lodash.memoize": "^4.1.2", - "lodash.uniq": "^4.5.0" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001495", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001495.tgz", - "integrity": "sha512-F6x5IEuigtUfU5ZMQK2jsy5JqUUlEFRVZq8bO2a+ysq5K7jD6PPc9YXZj78xDNS3uNchesp1Jw47YXEqr+Viyg==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ] - }, - "node_modules/ccount": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/ccount/-/ccount-1.1.0.tgz", - "integrity": "sha512-vlNK021QdI7PNeiUh/lKkC/mNHHfV0m/Ad5JoI0TYtlBnJAslM/JIkm/tGC88bkLIwO6OQ5uV6ztS6kVAtCDlg==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/chalk/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/character-entities": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz", - "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/character-entities-legacy": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz", - "integrity": "sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/character-reference-invalid": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-1.1.4.tgz", - "integrity": "sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/cheerio": { - "version": "1.0.0-rc.12", - "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.12.tgz", - "integrity": "sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==", - "dependencies": { - "cheerio-select": "^2.1.0", - "dom-serializer": "^2.0.0", - "domhandler": "^5.0.3", - "domutils": "^3.0.1", - "htmlparser2": "^8.0.1", - "parse5": "^7.0.0", - "parse5-htmlparser2-tree-adapter": "^7.0.0" - }, - "engines": { - "node": ">= 6" - }, - "funding": { - "url": "https://github.com/cheeriojs/cheerio?sponsor=1" - } - }, - "node_modules/cheerio-select": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-2.1.0.tgz", - "integrity": "sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==", - "dependencies": { - "boolbase": "^1.0.0", - "css-select": "^5.1.0", - "css-what": "^6.1.0", - "domelementtype": "^2.3.0", - "domhandler": "^5.0.3", - "domutils": "^3.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/chrome-trace-event": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", - "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", - "engines": { - "node": ">=6.0" - } - }, - "node_modules/ci-info": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", - "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "engines": { - "node": ">=8" - } - }, - "node_modules/classnames": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.2.tgz", - "integrity": "sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==" - }, - "node_modules/clean-css": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.2.tgz", - "integrity": "sha512-JVJbM+f3d3Q704rF4bqQ5UUyTtuJ0JRKNbTKVEeujCCBoMdkEi+V+e8oktO9qGQNSvHrFTM6JZRXrUvGR1czww==", - "dependencies": { - "source-map": "~0.6.0" - }, - "engines": { - "node": ">= 10.0" - } - }, - "node_modules/clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "engines": { - "node": ">=6" - } - }, - "node_modules/cli-boxes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-3.0.0.tgz", - "integrity": "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/cli-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", - "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", - "dev": true, - "dependencies": { - "restore-cursor": "^3.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cli-table3": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.3.tgz", - "integrity": "sha512-w5Jac5SykAeZJKntOxJCrm63Eg5/4dhMWIcuTbo9rpE+brgaSZo0RuNJZeOyMgsUdhDeojvgyQLmjI+K50ZGyg==", - "dependencies": { - "string-width": "^4.2.0" - }, - "engines": { - "node": "10.* || >= 12.*" - }, - "optionalDependencies": { - "@colors/colors": "1.5.0" - } - }, - "node_modules/cli-table3/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/cli-table3/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/cli-table3/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cli-truncate": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-3.1.0.tgz", - "integrity": "sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA==", - "dev": true, - "dependencies": { - "slice-ansi": "^5.0.0", - "string-width": "^5.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/clone-deep": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", - "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", - "dependencies": { - "is-plain-object": "^2.0.4", - "kind-of": "^6.0.2", - "shallow-clone": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/clone-deep/node_modules/is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dependencies": { - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/clone-response": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", - "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", - "dependencies": { - "mimic-response": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/clsx": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz", - "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==", - "engines": { - "node": ">=6" - } - }, - "node_modules/collapse-white-space": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/collapse-white-space/-/collapse-white-space-1.0.6.tgz", - "integrity": "sha512-jEovNnrhMuqyCcjfEJA56v0Xq8SkIoPKDyaHahwo3POf4qcSXqMYuwNcOTzp74vTsR9Tn08z4MxWqAhcekogkQ==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" - }, - "node_modules/colord": { - "version": "2.9.3", - "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz", - "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==" - }, - "node_modules/colorette": { - "version": "2.0.20", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", - "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==" - }, - "node_modules/combine-promises": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/combine-promises/-/combine-promises-1.1.0.tgz", - "integrity": "sha512-ZI9jvcLDxqwaXEixOhArm3r7ReIivsXkpbyEWyeOhzz1QS0iSgBPnWvEqvIQtYyamGCYA88gFhmUrs9hrrQ0pg==", - "engines": { - "node": ">=10" - } - }, - "node_modules/comma-separated-tokens": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz", - "integrity": "sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/commander": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", - "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", - "engines": { - "node": ">= 6" - } - }, - "node_modules/comment-parser": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.3.1.tgz", - "integrity": "sha512-B52sN2VNghyq5ofvUsqZjmk6YkihBX5vMSChmSK9v4ShjKf3Vk5Xcmgpw4o+iIgtrnM/u5FiMpz9VKb8lpBveA==", - "dev": true, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==" - }, - "node_modules/compressible": { - "version": "2.0.18", - "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", - "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", - "dependencies": { - "mime-db": ">= 1.43.0 < 2" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/compressible/node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/compression": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", - "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", - "dependencies": { - "accepts": "~1.3.5", - "bytes": "3.0.0", - "compressible": "~2.0.16", - "debug": "2.6.9", - "on-headers": "~1.0.2", - "safe-buffer": "5.1.2", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/compression/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/compression/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/compression/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" - }, - "node_modules/configstore": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", - "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", - "dependencies": { - "dot-prop": "^5.2.0", - "graceful-fs": "^4.1.2", - "make-dir": "^3.0.0", - "unique-string": "^2.0.0", - "write-file-atomic": "^3.0.0", - "xdg-basedir": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/configstore/node_modules/write-file-atomic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", - "dependencies": { - "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" - } - }, - "node_modules/confusing-browser-globals": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", - "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", - "dev": true - }, - "node_modules/connect-history-api-fallback": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz", - "integrity": "sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==", - "engines": { - "node": ">=0.8" - } - }, - "node_modules/consola": { - "version": "2.15.3", - "resolved": "https://registry.npmjs.org/consola/-/consola-2.15.3.tgz", - "integrity": "sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==" - }, - "node_modules/content-disposition": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz", - "integrity": "sha512-kRGRZw3bLlFISDBgwTSA1TMBFN6J6GWDeubmDE3AF+3+yXL8hTWv8r5rkLbqYXY4RjPk/EzHnClI3zQf1cFmHA==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/content-type": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" - }, - "node_modules/cookie": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", - "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" - }, - "node_modules/copy-text-to-clipboard": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/copy-text-to-clipboard/-/copy-text-to-clipboard-3.1.0.tgz", - "integrity": "sha512-PFM6BnjLnOON/lB3ta/Jg7Ywsv+l9kQGD4TWDCSlRBGmqnnTM5MrDkhAFgw+8HZt0wW6Q2BBE4cmy9sq+s9Qng==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/copy-webpack-plugin": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-11.0.0.tgz", - "integrity": "sha512-fX2MWpamkW0hZxMEg0+mYnA40LTosOSa5TqZ9GYIBzyJa9C3QUaMPSE2xAi/buNr8u89SfD9wHSQVBzrRa/SOQ==", - "dependencies": { - "fast-glob": "^3.2.11", - "glob-parent": "^6.0.1", - "globby": "^13.1.1", - "normalize-path": "^3.0.0", - "schema-utils": "^4.0.0", - "serialize-javascript": "^6.0.0" - }, - "engines": { - "node": ">= 14.15.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.1.0" - } - }, - "node_modules/copy-webpack-plugin/node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/copy-webpack-plugin/node_modules/ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "dependencies": { - "fast-deep-equal": "^3.1.3" - }, - "peerDependencies": { - "ajv": "^8.8.2" - } - }, - "node_modules/copy-webpack-plugin/node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/copy-webpack-plugin/node_modules/globby": { - "version": "13.1.4", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.4.tgz", - "integrity": "sha512-iui/IiiW+QrJ1X1hKH5qwlMQyv34wJAYwH1vrf8b9kBA4sNiif3gKsMHa+BrdnOpEudWjpotfa7LrTzB1ERS/g==", - "dependencies": { - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.11", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/copy-webpack-plugin/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/copy-webpack-plugin/node_modules/schema-utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", - "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/copy-webpack-plugin/node_modules/slash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", - "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/core-js": { - "version": "3.30.2", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.30.2.tgz", - "integrity": "sha512-uBJiDmwqsbJCWHAwjrx3cvjbMXP7xD72Dmsn5LOJpiRmE3WbBbN5rCqQ2Qh6Ek6/eOrjlWngEynBWo4VxerQhg==", - "hasInstallScript": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/core-js-compat": { - "version": "3.30.2", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.30.2.tgz", - "integrity": "sha512-nriW1nuJjUgvkEjIot1Spwakz52V9YkYHZAQG6A1eCgC8AA1p0zngrQEP9R0+V6hji5XilWKG1Bd0YRppmGimA==", - "dependencies": { - "browserslist": "^4.21.5" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/core-js-pure": { - "version": "3.30.2", - "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.30.2.tgz", - "integrity": "sha512-p/npFUJXXBkCCTIlEGBdghofn00jWG6ZOtdoIXSJmAu2QBvN0IqpZXWweOytcwE6cfx8ZvVUy1vw8zxhe4Y2vg==", - "hasInstallScript": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" - }, - "node_modules/cosmiconfig": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", - "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", - "dependencies": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.2.1", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.10.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/cross-fetch": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.6.tgz", - "integrity": "sha512-riRvo06crlE8HiqOwIpQhxwdOk4fOeR7FVM/wXoxchFEqMNUjvbs3bfo4OTgMEMHzppd4DxFBDbyySj8Cv781g==", - "dependencies": { - "node-fetch": "^2.6.11" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/crypto-random-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", - "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", - "engines": { - "node": ">=8" - } - }, - "node_modules/css-declaration-sorter": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.0.tgz", - "integrity": "sha512-jDfsatwWMWN0MODAFuHszfjphEXfNw9JUAhmY4pLu3TyTU+ohUpsbVtbU+1MZn4a47D9kqh03i4eyOm+74+zew==", - "engines": { - "node": "^10 || ^12 || >=14" - }, - "peerDependencies": { - "postcss": "^8.0.9" - } - }, - "node_modules/css-functions-list": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/css-functions-list/-/css-functions-list-3.1.0.tgz", - "integrity": "sha512-/9lCvYZaUbBGvYUgYGFJ4dcYiyqdhSjG7IPVluoV8A1ILjkF7ilmhp1OGUz8n+nmBcu0RNrQAzgD8B6FJbrt2w==", - "dev": true, - "engines": { - "node": ">=12.22" - } - }, - "node_modules/css-loader": { - "version": "6.8.1", - "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.8.1.tgz", - "integrity": "sha512-xDAXtEVGlD0gJ07iclwWVkLoZOpEvAWaSyf6W18S2pOC//K8+qUDIx8IIT3D+HjnmkJPQeesOPv5aiUaJsCM2g==", - "dependencies": { - "icss-utils": "^5.1.0", - "postcss": "^8.4.21", - "postcss-modules-extract-imports": "^3.0.0", - "postcss-modules-local-by-default": "^4.0.3", - "postcss-modules-scope": "^3.0.0", - "postcss-modules-values": "^4.0.0", - "postcss-value-parser": "^4.2.0", - "semver": "^7.3.8" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" - } - }, - "node_modules/css-loader/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/css-loader/node_modules/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/css-loader/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, - "node_modules/css-minimizer-webpack-plugin": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-4.2.2.tgz", - "integrity": "sha512-s3Of/4jKfw1Hj9CxEO1E5oXhQAxlayuHO2y/ML+C6I9sQ7FdzfEV6QgMLN3vI+qFsjJGIAFLKtQK7t8BOXAIyA==", - "dependencies": { - "cssnano": "^5.1.8", - "jest-worker": "^29.1.2", - "postcss": "^8.4.17", - "schema-utils": "^4.0.0", - "serialize-javascript": "^6.0.0", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">= 14.15.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" - }, - "peerDependenciesMeta": { - "@parcel/css": { - "optional": true - }, - "@swc/css": { - "optional": true - }, - "clean-css": { - "optional": true - }, - "csso": { - "optional": true - }, - "esbuild": { - "optional": true - }, - "lightningcss": { - "optional": true - } - } - }, - "node_modules/css-minimizer-webpack-plugin/node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "dependencies": { - "fast-deep-equal": "^3.1.3" - }, - "peerDependencies": { - "ajv": "^8.8.2" - } - }, - "node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", - "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/css-select": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", - "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", - "dependencies": { - "boolbase": "^1.0.0", - "css-what": "^6.1.0", - "domhandler": "^5.0.2", - "domutils": "^3.0.1", - "nth-check": "^2.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/css-tree": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", - "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", - "dependencies": { - "mdn-data": "2.0.14", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/css-what": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", - "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", - "engines": { - "node": ">= 6" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "bin": { - "cssesc": "bin/cssesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/cssnano": { - "version": "5.1.15", - "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.15.tgz", - "integrity": "sha512-j+BKgDcLDQA+eDifLx0EO4XSA56b7uut3BQFH+wbSaSTuGLuiyTa/wbRYthUXX8LC9mLg+WWKe8h+qJuwTAbHw==", - "dependencies": { - "cssnano-preset-default": "^5.2.14", - "lilconfig": "^2.0.3", - "yaml": "^1.10.2" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/cssnano" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/cssnano-preset-advanced": { - "version": "5.3.10", - "resolved": "https://registry.npmjs.org/cssnano-preset-advanced/-/cssnano-preset-advanced-5.3.10.tgz", - "integrity": "sha512-fnYJyCS9jgMU+cmHO1rPSPf9axbQyD7iUhLO5Df6O4G+fKIOMps+ZbU0PdGFejFBBZ3Pftf18fn1eG7MAPUSWQ==", - "dependencies": { - "autoprefixer": "^10.4.12", - "cssnano-preset-default": "^5.2.14", - "postcss-discard-unused": "^5.1.0", - "postcss-merge-idents": "^5.1.1", - "postcss-reduce-idents": "^5.2.0", - "postcss-zindex": "^5.1.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/cssnano-preset-default": { - "version": "5.2.14", - "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.14.tgz", - "integrity": "sha512-t0SFesj/ZV2OTylqQVOrFgEh5uanxbO6ZAdeCrNsUQ6fVuXwYTxJPNAGvGTxHbD68ldIJNec7PyYZDBrfDQ+6A==", - "dependencies": { - "css-declaration-sorter": "^6.3.1", - "cssnano-utils": "^3.1.0", - "postcss-calc": "^8.2.3", - "postcss-colormin": "^5.3.1", - "postcss-convert-values": "^5.1.3", - "postcss-discard-comments": "^5.1.2", - "postcss-discard-duplicates": "^5.1.0", - "postcss-discard-empty": "^5.1.1", - "postcss-discard-overridden": "^5.1.0", - "postcss-merge-longhand": "^5.1.7", - "postcss-merge-rules": "^5.1.4", - "postcss-minify-font-values": "^5.1.0", - "postcss-minify-gradients": "^5.1.1", - "postcss-minify-params": "^5.1.4", - "postcss-minify-selectors": "^5.2.1", - "postcss-normalize-charset": "^5.1.0", - "postcss-normalize-display-values": "^5.1.0", - "postcss-normalize-positions": "^5.1.1", - "postcss-normalize-repeat-style": "^5.1.1", - "postcss-normalize-string": "^5.1.0", - "postcss-normalize-timing-functions": "^5.1.0", - "postcss-normalize-unicode": "^5.1.1", - "postcss-normalize-url": "^5.1.0", - "postcss-normalize-whitespace": "^5.1.1", - "postcss-ordered-values": "^5.1.3", - "postcss-reduce-initial": "^5.1.2", - "postcss-reduce-transforms": "^5.1.0", - "postcss-svgo": "^5.1.0", - "postcss-unique-selectors": "^5.1.1" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/cssnano-utils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz", - "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/csso": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", - "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", - "dependencies": { - "css-tree": "^1.1.2" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/csstype": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", - "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==" - }, - "node_modules/damerau-levenshtein": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", - "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", - "dev": true - }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/decamelize-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.1.tgz", - "integrity": "sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==", - "dev": true, - "dependencies": { - "decamelize": "^1.1.0", - "map-obj": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/decamelize-keys/node_modules/map-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/decode-named-character-reference": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.0.2.tgz", - "integrity": "sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==", - "dependencies": { - "character-entities": "^2.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/decompress-response": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", - "integrity": "sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA==", - "dependencies": { - "mimic-response": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/deep-equal": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.1.tgz", - "integrity": "sha512-lKdkdV6EOGoVn65XaOsPdH4rMxTZOnmFyuIkMjM1i5HHCbfjC97dawgTAy0deYNfuqUqW+Q5VrVaQYtUpSd6yQ==", - "dev": true, - "dependencies": { - "array-buffer-byte-length": "^1.0.0", - "call-bind": "^1.0.2", - "es-get-iterator": "^1.1.3", - "get-intrinsic": "^1.2.0", - "is-arguments": "^1.1.1", - "is-array-buffer": "^3.0.2", - "is-date-object": "^1.0.5", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "isarray": "^2.0.5", - "object-is": "^1.1.5", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.5.0", - "side-channel": "^1.0.4", - "which-boxed-primitive": "^1.0.2", - "which-collection": "^1.0.1", - "which-typed-array": "^1.1.9" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "devOptional": true - }, - "node_modules/deepmerge": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/default-gateway": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", - "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==", - "dependencies": { - "execa": "^5.0.0" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/default-gateway/node_modules/execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/default-gateway/node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "engines": { - "node": ">=10.17.0" - } - }, - "node_modules/default-gateway/node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/default-gateway/node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "engines": { - "node": ">=6" - } - }, - "node_modules/default-gateway/node_modules/npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/default-gateway/node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/default-gateway/node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/defer-to-connect": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", - "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==" - }, - "node_modules/define-lazy-prop": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", - "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", - "engines": { - "node": ">=8" - } - }, - "node_modules/define-properties": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", - "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", - "dependencies": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/del": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/del/-/del-6.1.1.tgz", - "integrity": "sha512-ua8BhapfP0JUJKC/zV9yHHDW/rDoDxP4Zhn3AkA6/xT6gY7jYXJiaeyBZznYVujhZZET+UgcbZiQ7sN3WqcImg==", - "dependencies": { - "globby": "^11.0.1", - "graceful-fs": "^4.2.4", - "is-glob": "^4.0.1", - "is-path-cwd": "^2.2.0", - "is-path-inside": "^3.0.2", - "p-map": "^4.0.0", - "rimraf": "^3.0.2", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/dequal": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", - "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/detab": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/detab/-/detab-2.0.4.tgz", - "integrity": "sha512-8zdsQA5bIkoRECvCrNKPla84lyoR7DSAyf7p0YgXzBO9PDJx8KntPUay7NS6yp+KdxdVtiE5SpHKtbp2ZQyA9g==", - "dependencies": { - "repeat-string": "^1.5.4" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/detect-node": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", - "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==" - }, - "node_modules/detect-port": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/detect-port/-/detect-port-1.5.1.tgz", - "integrity": "sha512-aBzdj76lueB6uUst5iAs7+0H/oOjqI5D16XUWxlWMIMROhcM0rfsNVk93zTngq1dDNpoXRr++Sus7ETAExppAQ==", - "dependencies": { - "address": "^1.0.1", - "debug": "4" - }, - "bin": { - "detect": "bin/detect-port.js", - "detect-port": "bin/detect-port.js" - } - }, - "node_modules/detect-port-alt": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/detect-port-alt/-/detect-port-alt-1.1.6.tgz", - "integrity": "sha512-5tQykt+LqfJFBEYaDITx7S7cR7mJ/zQmLXZ2qt5w04ainYZw6tBf9dBunMjVeVOdYVRUzUOE4HkY5J7+uttb5Q==", - "dependencies": { - "address": "^1.0.1", - "debug": "^2.6.0" - }, - "bin": { - "detect": "bin/detect-port", - "detect-port": "bin/detect-port" - }, - "engines": { - "node": ">= 4.2.1" - } - }, - "node_modules/detect-port-alt/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/detect-port-alt/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/diff": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz", - "integrity": "sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==", - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/dns-equal": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", - "integrity": "sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==" - }, - "node_modules/dns-packet": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.6.0.tgz", - "integrity": "sha512-rza3UH1LwdHh9qyPXp8lkwpjSNk/AMD3dPytUoRoqnypDUhY0xvbdmVhWOfxO68frEfV9BU8V12Ez7ZsHGZpCQ==", - "dependencies": { - "@leichtgewicht/ip-codec": "^2.0.1" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "devOptional": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/dom-converter": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", - "integrity": "sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==", - "dependencies": { - "utila": "~0.4" - } - }, - "node_modules/dom-serializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", - "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", - "dependencies": { - "domelementtype": "^2.3.0", - "domhandler": "^5.0.2", - "entities": "^4.2.0" - }, - "funding": { - "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" - } - }, - "node_modules/domelementtype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", - "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ] - }, - "node_modules/domhandler": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", - "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", - "dependencies": { - "domelementtype": "^2.3.0" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, - "node_modules/domutils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.1.0.tgz", - "integrity": "sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==", - "dependencies": { - "dom-serializer": "^2.0.0", - "domelementtype": "^2.3.0", - "domhandler": "^5.0.3" - }, - "funding": { - "url": "https://github.com/fb55/domutils?sponsor=1" - } - }, - "node_modules/dot-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", - "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/dot-prop": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", - "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", - "dependencies": { - "is-obj": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/dot-prop/node_modules/is-obj": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", - "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", - "engines": { - "node": ">=8" - } - }, - "node_modules/dotenv": { - "version": "16.1.4", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.1.4.tgz", - "integrity": "sha512-m55RtE8AsPeJBpOIFKihEmqUcoVncQIwo7x9U8ZwLEZw9ZpXboz2c+rvog+jUaJvVrZ5kBOeYQBX5+8Aa/OZQw==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/motdotla/dotenv?sponsor=1" - } - }, - "node_modules/duplexer": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", - "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==" - }, - "node_modules/duplexer3": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.5.tgz", - "integrity": "sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA==" - }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" - }, - "node_modules/ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" - }, - "node_modules/electron-to-chromium": { - "version": "1.4.421", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.421.tgz", - "integrity": "sha512-wZOyn3s/aQOtLGAwXMZfteQPN68kgls2wDAnYOA8kCjBvKVrW5RwmWVspxJYTqrcN7Y263XJVsC66VCIGzDO3g==" - }, - "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" - }, - "node_modules/emojis-list": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", - "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", - "engines": { - "node": ">= 4" - } - }, - "node_modules/emoticon": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/emoticon/-/emoticon-3.2.0.tgz", - "integrity": "sha512-SNujglcLTTg+lDAcApPNgEdudaqQFiAbJCqzjNxJkvN9vAwCGi0uu8IUVvx+f16h+V44KCY6Y2yboroc9pilHg==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dependencies": { - "once": "^1.4.0" - } - }, - "node_modules/enhanced-resolve": { - "version": "5.14.1", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.14.1.tgz", - "integrity": "sha512-Vklwq2vDKtl0y/vtwjSesgJ5MYS7Etuk5txS8VdKL4AOS1aUlD96zqIfsOSLQsdv3xgMRbtkWM8eG9XDfKUPow==", - "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/entities": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/es-abstract": { - "version": "1.21.2", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz", - "integrity": "sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==", - "dev": true, - "dependencies": { - "array-buffer-byte-length": "^1.0.0", - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "es-set-tostringtag": "^2.0.1", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.2.0", - "get-symbol-description": "^1.0.0", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has": "^1.0.3", - "has-property-descriptors": "^1.0.0", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.5", - "is-array-buffer": "^3.0.2", - "is-callable": "^1.2.7", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.10", - "is-weakref": "^1.0.2", - "object-inspect": "^1.12.3", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", - "safe-regex-test": "^1.0.0", - "string.prototype.trim": "^1.2.7", - "string.prototype.trimend": "^1.0.6", - "string.prototype.trimstart": "^1.0.6", - "typed-array-length": "^1.0.4", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.9" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-get-iterator": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz", - "integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "has-symbols": "^1.0.3", - "is-arguments": "^1.1.1", - "is-map": "^2.0.2", - "is-set": "^2.0.2", - "is-string": "^1.0.7", - "isarray": "^2.0.5", - "stop-iteration-iterator": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-module-lexer": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.2.1.tgz", - "integrity": "sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg==" - }, - "node_modules/es-set-tostringtag": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", - "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.3", - "has": "^1.0.3", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-shim-unscopables": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", - "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", - "dev": true, - "dependencies": { - "has": "^1.0.3" - } - }, - "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-goat": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz", - "integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "8.42.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.42.0.tgz", - "integrity": "sha512-ulg9Ms6E1WPf67PHaEY4/6E2tEn5/f7FXGzr3t9cBMugOmf1INYvuUwwh1aXQN4MfJ6a5K2iNwP3w4AColvI9A==", - "devOptional": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.4.0", - "@eslint/eslintrc": "^2.0.3", - "@eslint/js": "8.42.0", - "@humanwhocodes/config-array": "^0.11.10", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.0", - "eslint-visitor-keys": "^3.4.1", - "espree": "^9.5.2", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", - "text-table": "^0.2.0" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-config-airbnb": { - "version": "19.0.4", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb/-/eslint-config-airbnb-19.0.4.tgz", - "integrity": "sha512-T75QYQVQX57jiNgpF9r1KegMICE94VYwoFQyMGhrvc+lB8YF2E/M/PYDaQe1AJcWaEgqLE+ErXV1Og/+6Vyzew==", - "dev": true, - "dependencies": { - "eslint-config-airbnb-base": "^15.0.0", - "object.assign": "^4.1.2", - "object.entries": "^1.1.5" - }, - "engines": { - "node": "^10.12.0 || ^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^7.32.0 || ^8.2.0", - "eslint-plugin-import": "^2.25.3", - "eslint-plugin-jsx-a11y": "^6.5.1", - "eslint-plugin-react": "^7.28.0", - "eslint-plugin-react-hooks": "^4.3.0" - } - }, - "node_modules/eslint-config-airbnb-base": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz", - "integrity": "sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==", - "dev": true, - "dependencies": { - "confusing-browser-globals": "^1.0.10", - "object.assign": "^4.1.2", - "object.entries": "^1.1.5", - "semver": "^6.3.0" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - }, - "peerDependencies": { - "eslint": "^7.32.0 || ^8.2.0", - "eslint-plugin-import": "^2.25.2" - } - }, - "node_modules/eslint-config-prettier": { - "version": "8.8.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz", - "integrity": "sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==", - "dev": true, - "bin": { - "eslint-config-prettier": "bin/cli.js" - }, - "peerDependencies": { - "eslint": ">=7.0.0" - } - }, - "node_modules/eslint-import-resolver-node": { - "version": "0.3.7", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", - "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", - "dev": true, - "dependencies": { - "debug": "^3.2.7", - "is-core-module": "^2.11.0", - "resolve": "^1.22.1" - } - }, - "node_modules/eslint-import-resolver-node/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-module-utils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", - "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", - "dev": true, - "dependencies": { - "debug": "^3.2.7" - }, - "engines": { - "node": ">=4" - }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - } - } - }, - "node_modules/eslint-module-utils/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-plugin-import": { - "version": "2.27.5", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", - "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", - "dev": true, - "dependencies": { - "array-includes": "^3.1.6", - "array.prototype.flat": "^1.3.1", - "array.prototype.flatmap": "^1.3.1", - "debug": "^3.2.7", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.7", - "eslint-module-utils": "^2.7.4", - "has": "^1.0.3", - "is-core-module": "^2.11.0", - "is-glob": "^4.0.3", - "minimatch": "^3.1.2", - "object.values": "^1.1.6", - "resolve": "^1.22.1", - "semver": "^6.3.0", - "tsconfig-paths": "^3.14.1" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" - } - }, - "node_modules/eslint-plugin-import/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-plugin-import/node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eslint-plugin-jsx-a11y": { - "version": "6.7.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", - "integrity": "sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==", - "dev": true, - "dependencies": { - "@babel/runtime": "^7.20.7", - "aria-query": "^5.1.3", - "array-includes": "^3.1.6", - "array.prototype.flatmap": "^1.3.1", - "ast-types-flow": "^0.0.7", - "axe-core": "^4.6.2", - "axobject-query": "^3.1.1", - "damerau-levenshtein": "^1.0.8", - "emoji-regex": "^9.2.2", - "has": "^1.0.3", - "jsx-ast-utils": "^3.3.3", - "language-tags": "=1.0.5", - "minimatch": "^3.1.2", - "object.entries": "^1.1.6", - "object.fromentries": "^2.0.6", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=4.0" - }, - "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" - } - }, - "node_modules/eslint-plugin-prettier": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", - "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", - "dev": true, - "dependencies": { - "prettier-linter-helpers": "^1.0.0" - }, - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "eslint": ">=7.28.0", - "prettier": ">=2.0.0" - }, - "peerDependenciesMeta": { - "eslint-config-prettier": { - "optional": true - } - } - }, - "node_modules/eslint-plugin-react": { - "version": "7.32.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.32.2.tgz", - "integrity": "sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==", - "dev": true, - "dependencies": { - "array-includes": "^3.1.6", - "array.prototype.flatmap": "^1.3.1", - "array.prototype.tosorted": "^1.1.1", - "doctrine": "^2.1.0", - "estraverse": "^5.3.0", - "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.1.2", - "object.entries": "^1.1.6", - "object.fromentries": "^2.0.6", - "object.hasown": "^1.1.2", - "object.values": "^1.1.6", - "prop-types": "^15.8.1", - "resolve": "^2.0.0-next.4", - "semver": "^6.3.0", - "string.prototype.matchall": "^4.0.8" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" - } - }, - "node_modules/eslint-plugin-react-hooks": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz", - "integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==", - "dev": true, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" - } - }, - "node_modules/eslint-plugin-react/node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eslint-plugin-react/node_modules/resolve": { - "version": "2.0.0-next.4", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz", - "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==", - "dev": true, - "dependencies": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/eslint-plugin-regexp": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-regexp/-/eslint-plugin-regexp-1.15.0.tgz", - "integrity": "sha512-YEtQPfdudafU7RBIFci81R/Q1yErm0mVh3BkGnXD2Dk8DLwTFdc2ITYH1wCnHKim2gnHfPFgrkh+b2ozyyU7ag==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.4.0", - "comment-parser": "^1.1.2", - "grapheme-splitter": "^1.0.4", - "jsdoctypeparser": "^9.0.0", - "refa": "^0.11.0", - "regexp-ast-analysis": "^0.6.0", - "scslre": "^0.2.0" - }, - "engines": { - "node": "^12 || >=14" - }, - "peerDependencies": { - "eslint": ">=6.0.0" - } - }, - "node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/eslint-scope/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/eslint/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "devOptional": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/eslint/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "devOptional": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/eslint/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "devOptional": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/eslint/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "devOptional": true - }, - "node_modules/eslint/node_modules/eslint-scope": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", - "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", - "devOptional": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/eslint-visitor-keys": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", - "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", - "devOptional": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "devOptional": true, - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/eslint/node_modules/globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", - "devOptional": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "devOptional": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/eslint/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "devOptional": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/eslint/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "devOptional": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/espree": { - "version": "9.5.2", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", - "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", - "devOptional": true, - "dependencies": { - "acorn": "^8.8.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/espree/node_modules/eslint-visitor-keys": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", - "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", - "devOptional": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/esquery": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", - "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", - "devOptional": true, - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eta": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/eta/-/eta-2.2.0.tgz", - "integrity": "sha512-UVQ72Rqjy/ZKQalzV5dCCJP80GrmPrMxh6NlNf+erV6ObL0ZFkhCstWRawS85z3smdr3d2wXPsZEY7rDPfGd2g==", - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "url": "https://github.com/eta-dev/eta?sponsor=1" - } - }, - "node_modules/etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/eval": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/eval/-/eval-0.1.8.tgz", - "integrity": "sha512-EzV94NYKoO09GLXGjXj9JIlXijVck4ONSr5wiCWDvhsvj5jxSrzTmRU/9C1DyB6uToszLs8aifA6NQ7lEQdvFw==", - "dependencies": { - "@types/node": "*", - "require-like": ">= 0.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/eventemitter3": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", - "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" - }, - "node_modules/events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "engines": { - "node": ">=0.8.x" - } - }, - "node_modules/execa": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-7.1.1.tgz", - "integrity": "sha512-wH0eMf/UXckdUYnO21+HDztteVv05rq2GXksxT4fCGeHkBhw1DROXh40wcjMcRqDOWE7iPJ4n3M7e2+YFP+76Q==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.1", - "human-signals": "^4.3.0", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", - "signal-exit": "^3.0.7", - "strip-final-newline": "^3.0.0" - }, - "engines": { - "node": "^14.18.0 || ^16.14.0 || >=18.0.0" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/express": { - "version": "4.18.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", - "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", - "dependencies": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "1.20.1", - "content-disposition": "0.5.4", - "content-type": "~1.0.4", - "cookie": "0.5.0", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "1.2.0", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "merge-descriptors": "1.0.1", - "methods": "~1.1.2", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.7", - "proxy-addr": "~2.0.7", - "qs": "6.11.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "0.18.0", - "serve-static": "1.15.0", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/express/node_modules/array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" - }, - "node_modules/express/node_modules/content-disposition": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", - "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "dependencies": { - "safe-buffer": "5.2.1" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/express/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/express/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/express/node_modules/path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" - }, - "node_modules/express/node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" - }, - "node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - }, - "node_modules/fast-diff": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", - "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", - "dev": true - }, - "node_modules/fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "devOptional": true - }, - "node_modules/fast-url-parser": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/fast-url-parser/-/fast-url-parser-1.1.3.tgz", - "integrity": "sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ==", - "dependencies": { - "punycode": "^1.3.2" - } - }, - "node_modules/fastest-levenshtein": { - "version": "1.0.16", - "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", - "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", - "dev": true, - "engines": { - "node": ">= 4.9.1" - } - }, - "node_modules/fastq": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/faye-websocket": { - "version": "0.11.4", - "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", - "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", - "dependencies": { - "websocket-driver": ">=0.5.1" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/fbemitter": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/fbemitter/-/fbemitter-3.0.0.tgz", - "integrity": "sha512-KWKaceCwKQU0+HPoop6gn4eOHk50bBv/VxjJtGMfwmJt3D29JpN4H4eisCtIPA+a8GVBam+ldMMpMjJUvpDyHw==", - "dependencies": { - "fbjs": "^3.0.0" - } - }, - "node_modules/fbjs": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-3.0.5.tgz", - "integrity": "sha512-ztsSx77JBtkuMrEypfhgc3cI0+0h+svqeie7xHbh1k/IKdcydnvadp/mUaGgjAOXQmQSxsqgaRhS3q9fy+1kxg==", - "dependencies": { - "cross-fetch": "^3.1.5", - "fbjs-css-vars": "^1.0.0", - "loose-envify": "^1.0.0", - "object-assign": "^4.1.0", - "promise": "^7.1.1", - "setimmediate": "^1.0.5", - "ua-parser-js": "^1.0.35" - } - }, - "node_modules/fbjs-css-vars": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/fbjs-css-vars/-/fbjs-css-vars-1.0.2.tgz", - "integrity": "sha512-b2XGFAFdWZWg0phtAWLHCk836A1Xann+I+Dgd3Gk64MHKZO44FfoD1KxyvbSh0qZsIoXQGGlVztIY+oitJPpRQ==" - }, - "node_modules/feed": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/feed/-/feed-4.2.2.tgz", - "integrity": "sha512-u5/sxGfiMfZNtJ3OvQpXcvotFpYkL0n9u9mM2vkui2nGo8b4wvDkJ8gAkYqbA8QpGyFCv3RK0Z+Iv+9veCS9bQ==", - "dependencies": { - "xml-js": "^1.6.11" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "devOptional": true, - "dependencies": { - "flat-cache": "^3.0.4" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/file-loader": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz", - "integrity": "sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==", - "dependencies": { - "loader-utils": "^2.0.0", - "schema-utils": "^3.0.0" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^4.0.0 || ^5.0.0" - } - }, - "node_modules/file-loader/node_modules/schema-utils": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", - "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/filesize": { - "version": "8.0.7", - "resolved": "https://registry.npmjs.org/filesize/-/filesize-8.0.7.tgz", - "integrity": "sha512-pjmC+bkIF8XI7fWaH8KxHcZL3DPybs1roSKP4rKDvy20tAWwIObE4+JIseG2byfGKhud5ZnM4YSGKBz7Sh0ndQ==", - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/finalhandler": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", - "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", - "dependencies": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "statuses": "2.0.1", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/finalhandler/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/finalhandler/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/find-cache-dir": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", - "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", - "dependencies": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/avajs/find-cache-dir?sponsor=1" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", - "devOptional": true, - "dependencies": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "devOptional": true - }, - "node_modules/flux": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/flux/-/flux-4.0.4.tgz", - "integrity": "sha512-NCj3XlayA2UsapRpM7va6wU1+9rE5FIL7qoMcmxWHRzbp0yujihMBm9BBHZ1MDIk5h5o2Bl6eGiCe8rYELAmYw==", - "dependencies": { - "fbemitter": "^3.0.0", - "fbjs": "^3.0.1" - }, - "peerDependencies": { - "react": "^15.0.2 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/follow-redirects": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", - "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, - "node_modules/for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "dev": true, - "dependencies": { - "is-callable": "^1.1.3" - } - }, - "node_modules/fork-ts-checker-webpack-plugin": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.5.3.tgz", - "integrity": "sha512-SbH/l9ikmMWycd5puHJKTkZJKddF4iRLyW3DeZ08HTI7NGyLS38MXd/KGgeWumQO7YNQbW2u/NtPT2YowbPaGQ==", - "dependencies": { - "@babel/code-frame": "^7.8.3", - "@types/json-schema": "^7.0.5", - "chalk": "^4.1.0", - "chokidar": "^3.4.2", - "cosmiconfig": "^6.0.0", - "deepmerge": "^4.2.2", - "fs-extra": "^9.0.0", - "glob": "^7.1.6", - "memfs": "^3.1.2", - "minimatch": "^3.0.4", - "schema-utils": "2.7.0", - "semver": "^7.3.2", - "tapable": "^1.0.0" - }, - "engines": { - "node": ">=10", - "yarn": ">=1.0.0" - }, - "peerDependencies": { - "eslint": ">= 6", - "typescript": ">= 2.7", - "vue-template-compiler": "*", - "webpack": ">= 4" - }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - }, - "vue-template-compiler": { - "optional": true - } - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/cosmiconfig": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz", - "integrity": "sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==", - "dependencies": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.1.0", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.7.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "dependencies": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/schema-utils": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.0.tgz", - "integrity": "sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==", - "dependencies": { - "@types/json-schema": "^7.0.4", - "ajv": "^6.12.2", - "ajv-keywords": "^3.4.1" - }, - "engines": { - "node": ">= 8.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/tapable": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz", - "integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, - "node_modules/forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fraction.js": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", - "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==", - "engines": { - "node": "*" - }, - "funding": { - "type": "patreon", - "url": "https://www.patreon.com/infusion" - } - }, - "node_modules/fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/fs-monkey": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.4.tgz", - "integrity": "sha512-INM/fWAxMICjttnD0DX1rBvinKskj5G1w+oy/pnm9u/tSlnBrzFonJMcalKJ30P8RRsPzKcCG7Q8l0jx5Fh9YQ==" - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" - }, - "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" - }, - "node_modules/function.prototype.name": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-intrinsic": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", - "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", - "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-own-enumerable-property-symbols": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz", - "integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==" - }, - "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/github-buttons": { - "version": "2.27.0", - "resolved": "https://registry.npmjs.org/github-buttons/-/github-buttons-2.27.0.tgz", - "integrity": "sha512-PmfRMI2Rttg/2jDfKBeSl621sEznrsKF019SuoLdoNlO7qRUZaOyEI5Li4uW+79pVqnDtKfIEVuHTIJ5lgy64w==" - }, - "node_modules/github-slugger": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-1.5.0.tgz", - "integrity": "sha512-wIh+gKBI9Nshz2o46B0B3f5k/W+WI9ZAv6y5Dn5WJ5SK1t0TnDimB4WE5rmTD05ZAIn8HALCZVmCsvj0w0v0lw==" - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/glob-to-regexp": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" - }, - "node_modules/global-dirs": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.1.tgz", - "integrity": "sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA==", - "dependencies": { - "ini": "2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/global-dirs/node_modules/ini": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz", - "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==", - "engines": { - "node": ">=10" - } - }, - "node_modules/global-modules": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", - "integrity": "sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==", - "dependencies": { - "global-prefix": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/global-prefix": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz", - "integrity": "sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==", - "dependencies": { - "ini": "^1.3.5", - "kind-of": "^6.0.2", - "which": "^1.3.1" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/global-prefix/node_modules/which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" - } - }, - "node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "engines": { - "node": ">=4" - } - }, - "node_modules/globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", - "dev": true, - "dependencies": { - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globjoin": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/globjoin/-/globjoin-0.1.4.tgz", - "integrity": "sha512-xYfnw62CKG8nLkZBfWbhWwDw02CHty86jfPcc2cr3ZfeuK9ysoVPPEUxf21bAD/rWAgk52SuBrLJlefNy8mvFg==", - "dev": true - }, - "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/got": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", - "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", - "dependencies": { - "@sindresorhus/is": "^0.14.0", - "@szmarczak/http-timer": "^1.1.2", - "cacheable-request": "^6.0.0", - "decompress-response": "^3.3.0", - "duplexer3": "^0.1.4", - "get-stream": "^4.1.0", - "lowercase-keys": "^1.0.1", - "mimic-response": "^1.0.1", - "p-cancelable": "^1.0.0", - "to-readable-stream": "^1.0.0", - "url-parse-lax": "^3.0.0" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/got/node_modules/get-stream": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" - }, - "node_modules/grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", - "dev": true - }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "devOptional": true - }, - "node_modules/gray-matter": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-4.0.3.tgz", - "integrity": "sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==", - "dependencies": { - "js-yaml": "^3.13.1", - "kind-of": "^6.0.2", - "section-matter": "^1.0.0", - "strip-bom-string": "^1.0.0" - }, - "engines": { - "node": ">=6.0" - } - }, - "node_modules/gray-matter/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/gray-matter/node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/gzip-size": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", - "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", - "dependencies": { - "duplexer": "^0.1.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/handle-thing": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", - "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==" - }, - "node_modules/hard-rejection": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", - "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "engines": { - "node": ">=4" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", - "dependencies": { - "get-intrinsic": "^1.1.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-yarn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", - "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/hast-to-hyperscript": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/hast-to-hyperscript/-/hast-to-hyperscript-9.0.1.tgz", - "integrity": "sha512-zQgLKqF+O2F72S1aa4y2ivxzSlko3MAvxkwG8ehGmNiqd98BIN3JM1rAJPmplEyLmGLO2QZYJtIneOSZ2YbJuA==", - "dependencies": { - "@types/unist": "^2.0.3", - "comma-separated-tokens": "^1.0.0", - "property-information": "^5.3.0", - "space-separated-tokens": "^1.0.0", - "style-to-object": "^0.3.0", - "unist-util-is": "^4.0.0", - "web-namespaces": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-from-parse5": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-6.0.1.tgz", - "integrity": "sha512-jeJUWiN5pSxW12Rh01smtVkZgZr33wBokLzKLwinYOUfSzm1Nl/c3GUGebDyOKjdsRgMvoVbV0VpAcpjF4NrJA==", - "dependencies": { - "@types/parse5": "^5.0.0", - "hastscript": "^6.0.0", - "property-information": "^5.0.0", - "vfile": "^4.0.0", - "vfile-location": "^3.2.0", - "web-namespaces": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-parse-selector": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-2.2.5.tgz", - "integrity": "sha512-7j6mrk/qqkSehsM92wQjdIgWM2/BW61u/53G6xmC8i1OmEdKLHbk419QKQUjz6LglWsfqoiHmyMRkP1BGjecNQ==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-raw": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-6.0.1.tgz", - "integrity": "sha512-ZMuiYA+UF7BXBtsTBNcLBF5HzXzkyE6MLzJnL605LKE8GJylNjGc4jjxazAHUtcwT5/CEt6afRKViYB4X66dig==", - "dependencies": { - "@types/hast": "^2.0.0", - "hast-util-from-parse5": "^6.0.0", - "hast-util-to-parse5": "^6.0.0", - "html-void-elements": "^1.0.0", - "parse5": "^6.0.0", - "unist-util-position": "^3.0.0", - "vfile": "^4.0.0", - "web-namespaces": "^1.0.0", - "xtend": "^4.0.0", - "zwitch": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-raw/node_modules/parse5": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", - "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==" - }, - "node_modules/hast-util-to-parse5": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/hast-util-to-parse5/-/hast-util-to-parse5-6.0.0.tgz", - "integrity": "sha512-Lu5m6Lgm/fWuz8eWnrKezHtVY83JeRGaNQ2kn9aJgqaxvVkFCZQBEhgodZUDUvoodgyROHDb3r5IxAEdl6suJQ==", - "dependencies": { - "hast-to-hyperscript": "^9.0.0", - "property-information": "^5.0.0", - "web-namespaces": "^1.0.0", - "xtend": "^4.0.0", - "zwitch": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-whitespace": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-2.0.1.tgz", - "integrity": "sha512-nAxA0v8+vXSBDt3AnRUNjyRIQ0rD+ntpbAp4LnPkumc5M9yUbSMa4XDU9Q6etY4f1Wp4bNgvc1yjiZtsTTrSng==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hastscript": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-6.0.0.tgz", - "integrity": "sha512-nDM6bvd7lIqDUiYEiu5Sl/+6ReP0BMk/2f4U/Rooccxkj0P5nm+acM5PrGJ/t5I8qPGiqZSE6hVAwZEdZIvP4w==", - "dependencies": { - "@types/hast": "^2.0.0", - "comma-separated-tokens": "^1.0.0", - "hast-util-parse-selector": "^2.0.0", - "property-information": "^5.0.0", - "space-separated-tokens": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "bin": { - "he": "bin/he" - } - }, - "node_modules/history": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/history/-/history-4.10.1.tgz", - "integrity": "sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew==", - "dependencies": { - "@babel/runtime": "^7.1.2", - "loose-envify": "^1.2.0", - "resolve-pathname": "^3.0.0", - "tiny-invariant": "^1.0.2", - "tiny-warning": "^1.0.0", - "value-equal": "^1.0.1" - } - }, - "node_modules/hoist-non-react-statics": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", - "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", - "dependencies": { - "react-is": "^16.7.0" - } - }, - "node_modules/hosted-git-info": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", - "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/hosted-git-info/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/hosted-git-info/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/hpack.js": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", - "integrity": "sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==", - "dependencies": { - "inherits": "^2.0.1", - "obuf": "^1.0.0", - "readable-stream": "^2.0.1", - "wbuf": "^1.1.0" - } - }, - "node_modules/hpack.js/node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" - }, - "node_modules/hpack.js/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/hpack.js/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "node_modules/hpack.js/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/html-entities": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.4.tgz", - "integrity": "sha512-TtiHkpRBqP40OzizVWjwBPBsiqchEZxAg/nys6D6lIpdoVLo7sWZ/5Sf/s4UaBHQ6pzUzEr3NiItvEoO46sPtQ==" - }, - "node_modules/html-minifier-terser": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", - "integrity": "sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw==", - "dependencies": { - "camel-case": "^4.1.2", - "clean-css": "^5.2.2", - "commander": "^8.3.0", - "he": "^1.2.0", - "param-case": "^3.0.4", - "relateurl": "^0.2.7", - "terser": "^5.10.0" - }, - "bin": { - "html-minifier-terser": "cli.js" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/html-minifier-terser/node_modules/commander": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", - "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", - "engines": { - "node": ">= 12" - } - }, - "node_modules/html-tags": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/html-tags/-/html-tags-3.3.1.tgz", - "integrity": "sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/html-void-elements": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-1.0.5.tgz", - "integrity": "sha512-uE/TxKuyNIcx44cIWnjr/rfIATDH7ZaOMmstu0CwhFG1Dunhlp4OC6/NMbhiwoq5BpW0ubi303qnEk/PZj614w==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/html-webpack-plugin": { - "version": "5.5.1", - "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.5.1.tgz", - "integrity": "sha512-cTUzZ1+NqjGEKjmVgZKLMdiFg3m9MdRXkZW2OEe69WYVi5ONLMmlnSZdXzGGMOq0C8jGDrL6EWyEDDUioHO/pA==", - "dependencies": { - "@types/html-minifier-terser": "^6.0.0", - "html-minifier-terser": "^6.0.2", - "lodash": "^4.17.21", - "pretty-error": "^4.0.0", - "tapable": "^2.0.0" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/html-webpack-plugin" - }, - "peerDependencies": { - "webpack": "^5.20.0" - } - }, - "node_modules/htmlparser2": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz", - "integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==", - "funding": [ - "https://github.com/fb55/htmlparser2?sponsor=1", - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ], - "dependencies": { - "domelementtype": "^2.3.0", - "domhandler": "^5.0.3", - "domutils": "^3.0.1", - "entities": "^4.4.0" - } - }, - "node_modules/http-cache-semantics": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", - "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==" - }, - "node_modules/http-deceiver": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", - "integrity": "sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==" - }, - "node_modules/http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "dependencies": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/http-parser-js": { - "version": "0.5.8", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.8.tgz", - "integrity": "sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q==" - }, - "node_modules/http-proxy": { - "version": "1.18.1", - "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", - "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", - "dependencies": { - "eventemitter3": "^4.0.0", - "follow-redirects": "^1.0.0", - "requires-port": "^1.0.0" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/http-proxy-middleware": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", - "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", - "dependencies": { - "@types/http-proxy": "^1.17.8", - "http-proxy": "^1.18.1", - "is-glob": "^4.0.1", - "is-plain-obj": "^3.0.0", - "micromatch": "^4.0.2" - }, - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "@types/express": "^4.17.13" - }, - "peerDependenciesMeta": { - "@types/express": { - "optional": true - } - } - }, - "node_modules/http-proxy-middleware/node_modules/is-plain-obj": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", - "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/human-signals": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", - "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", - "dev": true, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/husky": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", - "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", - "dev": true, - "bin": { - "husky": "lib/bin.js" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/typicode" - } - }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/icss-utils": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", - "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", - "engines": { - "node": ">= 4" - } - }, - "node_modules/image-size": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/image-size/-/image-size-1.0.2.tgz", - "integrity": "sha512-xfOoWjceHntRb3qFCrh5ZFORYH8XCdYpASltMhZ/Q0KZiOwjdE/Yl2QCiWdwD+lygV5bMCvauzgu5PxBX/Yerg==", - "dependencies": { - "queue": "6.0.2" - }, - "bin": { - "image-size": "bin/image-size.js" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/immediate": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.3.0.tgz", - "integrity": "sha512-HR7EVodfFUdQCTIeySw+WDRFJlPcLOJbXfwwZ7Oom6tjsvZ3bOkCDJHehQC3nxJrv7+f9XecwazynjU8e4Vw3Q==" - }, - "node_modules/immer": { - "version": "9.0.21", - "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", - "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/immer" - } - }, - "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/import-lazy": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-4.0.0.tgz", - "integrity": "sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/infima": { - "version": "0.2.0-alpha.43", - "resolved": "https://registry.npmjs.org/infima/-/infima-0.2.0-alpha.43.tgz", - "integrity": "sha512-2uw57LvUqW0rK/SWYnd/2rRfxNA5DDNOh33jxF7fy46VWoNhGxiUQyVZHbBMjQ33mQem0cjdDVwgWVAmlRfgyQ==", - "engines": { - "node": ">=12" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "node_modules/ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" - }, - "node_modules/inline-style-parser": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.1.1.tgz", - "integrity": "sha512-7NXolsK4CAS5+xvdj5OMMbI962hU/wvwoxk+LWR9Ek9bVtyuuYScDN6eS0rUm6TxApFpw7CX1o4uJzcd4AyD3Q==" - }, - "node_modules/internal-slot": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", - "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.2.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dependencies": { - "loose-envify": "^1.0.0" - } - }, - "node_modules/ipaddr.js": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.1.0.tgz", - "integrity": "sha512-LlbxQ7xKzfBusov6UMi4MFpEg0m+mAm9xyNGEduwXMEDuf4WfzB/RZwMVYEd7IKGvh4IUkEXYxtAVu9T3OelJQ==", - "engines": { - "node": ">= 10" - } - }, - "node_modules/is-alphabetical": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-1.0.4.tgz", - "integrity": "sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-alphanumerical": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-1.0.4.tgz", - "integrity": "sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A==", - "dependencies": { - "is-alphabetical": "^1.0.0", - "is-decimal": "^1.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-arguments": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-array-buffer": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", - "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "is-typed-array": "^1.1.10" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" - }, - "node_modules/is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "dependencies": { - "has-bigints": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-buffer": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", - "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "engines": { - "node": ">=4" - } - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-ci": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", - "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", - "dependencies": { - "ci-info": "^2.0.0" - }, - "bin": { - "is-ci": "bin.js" - } - }, - "node_modules/is-ci/node_modules/ci-info": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", - "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==" - }, - "node_modules/is-core-module": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", - "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", - "dependencies": { - "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-decimal": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-1.0.4.tgz", - "integrity": "sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "bin": { - "is-docker": "cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz", - "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-hexadecimal": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz", - "integrity": "sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-installed-globally": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz", - "integrity": "sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==", - "dependencies": { - "global-dirs": "^3.0.0", - "is-path-inside": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-map": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", - "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-npm": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-5.0.0.tgz", - "integrity": "sha512-WW/rQLOazUq+ST/bCAVBp/2oMERWLsR7OrKyt052dNDk4DHcDE0/7QSXITlmi+VBcV13DfIbysG3tZJm5RfdBA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", - "integrity": "sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-path-cwd": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", - "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-plain-obj": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", - "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-plain-object": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", - "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-regexp": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz", - "integrity": "sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-root": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-root/-/is-root-2.1.0.tgz", - "integrity": "sha512-AGOriNp96vNBd3HtU+RzFEc75FfR5ymiYv8E553I71SCeXBiMsVDUtdio1OEFvrPyLIQ9tVR5RxXIFe5PUFjMg==", - "engines": { - "node": ">=6" - } - }, - "node_modules/is-set": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", - "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", - "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", - "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", - "dev": true, - "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" - }, - "node_modules/is-weakmap": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", - "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakset": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", - "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-whitespace-character": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-whitespace-character/-/is-whitespace-character-1.0.4.tgz", - "integrity": "sha512-SDweEzfIZM0SJV0EUga669UTKlmL0Pq8Lno0QDQsPnvECB3IM2aP0gdx5TrU0A01MAPfViaZiI2V1QMZLaKK5w==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-word-character": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-word-character/-/is-word-character-1.0.4.tgz", - "integrity": "sha512-5SMO8RVennx3nZrqtKwCGyyetPE9VDba5ugvKLaD4KopPG5kR4mQ7tNt/r7feL5yt5h3lpuBbIUmCOG2eSzXHA==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "dependencies": { - "is-docker": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-yarn-global": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", - "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==" - }, - "node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" - }, - "node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/jest-util": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.5.0.tgz", - "integrity": "sha512-RYMgG/MTadOr5t8KdhejfvUU82MxsCu5MF6KuDUHl+NuwzUt+Sm6jJWxTJVrDR1j5M/gJVCPKQEpWXY+yIQ6lQ==", - "dependencies": { - "@jest/types": "^29.5.0", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-util/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-util/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-util/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-util/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-util/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-util/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-worker": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.5.0.tgz", - "integrity": "sha512-NcrQnevGoSp4b5kg+akIpthoAFHxPBcb5P6mYPY0fUNT+sSvmtu6jlkEle3anczUKIKEbMxFimk9oTP/tpIPgA==", - "dependencies": { - "@types/node": "*", - "jest-util": "^29.5.0", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-worker/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-worker/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/jiti": { - "version": "1.18.2", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.18.2.tgz", - "integrity": "sha512-QAdOptna2NYiSSpv0O/BwoHBSmz4YhpzJHyi+fnMRTXFjp7B8i/YG5Z8IfusxB1ufjcD2Sre1F3R+nX3fvy7gg==", - "bin": { - "jiti": "bin/jiti.js" - } - }, - "node_modules/joi": { - "version": "17.9.2", - "resolved": "https://registry.npmjs.org/joi/-/joi-17.9.2.tgz", - "integrity": "sha512-Itk/r+V4Dx0V3c7RLFdRh12IOjySm2/WGPMubBT92cQvRfYZhPM2W0hZlctjj72iES8jsRCwp7S/cRmWBnJ4nw==", - "dependencies": { - "@hapi/hoek": "^9.0.0", - "@hapi/topo": "^5.0.0", - "@sideway/address": "^4.1.3", - "@sideway/formula": "^3.0.1", - "@sideway/pinpoint": "^2.0.0" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsdoctypeparser": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/jsdoctypeparser/-/jsdoctypeparser-9.0.0.tgz", - "integrity": "sha512-jrTA2jJIL6/DAEILBEh2/w9QxCuwmvNXIry39Ay/HVfhE3o2yVV0U44blYkqdHA/OKloJEqvJy0xU+GSdE2SIw==", - "dev": true, - "bin": { - "jsdoctypeparser": "bin/jsdoctypeparser" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/json-buffer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", - "integrity": "sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ==" - }, - "node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "devOptional": true - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/jsx-ast-utils": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", - "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", - "dev": true, - "dependencies": { - "array-includes": "^3.1.5", - "object.assign": "^4.1.3" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/keyv": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", - "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", - "dependencies": { - "json-buffer": "3.0.0" - } - }, - "node_modules/kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/klaw-sync": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz", - "integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==", - "dependencies": { - "graceful-fs": "^4.1.11" - } - }, - "node_modules/kleur": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", - "engines": { - "node": ">=6" - } - }, - "node_modules/klona": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.6.tgz", - "integrity": "sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/known-css-properties": { - "version": "0.26.0", - "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.26.0.tgz", - "integrity": "sha512-5FZRzrZzNTBruuurWpvZnvP9pum+fe0HcK8z/ooo+U+Hmp4vtbyp1/QDsqmufirXy4egGzbaH/y2uCZf+6W5Kg==", - "dev": true - }, - "node_modules/language-subtag-registry": { - "version": "0.3.22", - "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", - "integrity": "sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==", - "dev": true - }, - "node_modules/language-tags": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", - "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==", - "dev": true, - "dependencies": { - "language-subtag-registry": "~0.3.2" - } - }, - "node_modules/latest-version": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", - "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", - "dependencies": { - "package-json": "^6.3.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/launch-editor": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.6.0.tgz", - "integrity": "sha512-JpDCcQnyAAzZZaZ7vEiSqL690w7dAEyLao+KC96zBplnYbJS7TYNjvM3M7y3dGz+v7aIsJk3hllWuc0kWAjyRQ==", - "dependencies": { - "picocolors": "^1.0.0", - "shell-quote": "^1.7.3" - } - }, - "node_modules/leven": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", - "engines": { - "node": ">=6" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "devOptional": true, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/lilconfig": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", - "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", - "engines": { - "node": ">=10" - } - }, - "node_modules/lines-and-columns": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" - }, - "node_modules/lint-staged": { - "version": "13.2.2", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-13.2.2.tgz", - "integrity": "sha512-71gSwXKy649VrSU09s10uAT0rWCcY3aewhMaHyl2N84oBk4Xs9HgxvUp3AYu+bNsK4NrOYYxvSgg7FyGJ+jGcA==", - "dev": true, - "dependencies": { - "chalk": "5.2.0", - "cli-truncate": "^3.1.0", - "commander": "^10.0.0", - "debug": "^4.3.4", - "execa": "^7.0.0", - "lilconfig": "2.1.0", - "listr2": "^5.0.7", - "micromatch": "^4.0.5", - "normalize-path": "^3.0.0", - "object-inspect": "^1.12.3", - "pidtree": "^0.6.0", - "string-argv": "^0.3.1", - "yaml": "^2.2.2" - }, - "bin": { - "lint-staged": "bin/lint-staged.js" - }, - "engines": { - "node": "^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/lint-staged" - } - }, - "node_modules/lint-staged/node_modules/chalk": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.2.0.tgz", - "integrity": "sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA==", - "dev": true, - "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/lint-staged/node_modules/commander": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", - "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", - "dev": true, - "engines": { - "node": ">=14" - } - }, - "node_modules/lint-staged/node_modules/yaml": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz", - "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==", - "dev": true, - "engines": { - "node": ">= 14" - } - }, - "node_modules/listr2": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/listr2/-/listr2-5.0.8.tgz", - "integrity": "sha512-mC73LitKHj9w6v30nLNGPetZIlfpUniNSsxxrbaPcWOjDb92SHPzJPi/t+v1YC/lxKz/AJ9egOjww0qUuFxBpA==", - "dev": true, - "dependencies": { - "cli-truncate": "^2.1.0", - "colorette": "^2.0.19", - "log-update": "^4.0.0", - "p-map": "^4.0.0", - "rfdc": "^1.3.0", - "rxjs": "^7.8.0", - "through": "^2.3.8", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": "^14.13.1 || >=16.0.0" - }, - "peerDependencies": { - "enquirer": ">= 2.3.0 < 3" - }, - "peerDependenciesMeta": { - "enquirer": { - "optional": true - } - } - }, - "node_modules/listr2/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/listr2/node_modules/cli-truncate": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz", - "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==", - "dev": true, - "dependencies": { - "slice-ansi": "^3.0.0", - "string-width": "^4.2.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/listr2/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/listr2/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/listr2/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/listr2/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/listr2/node_modules/slice-ansi": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz", - "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/listr2/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/listr2/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/load-script": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/load-script/-/load-script-1.0.0.tgz", - "integrity": "sha512-kPEjMFtZvwL9TaZo0uZ2ml+Ye9HUMmPwbYRJ324qF9tqMejwykJ5ggTyvzmrbBeapCAbk98BSbTeovHEEP1uCA==" - }, - "node_modules/loader-runner": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", - "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", - "engines": { - "node": ">=6.11.5" - } - }, - "node_modules/loader-utils": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", - "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", - "dependencies": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - }, - "engines": { - "node": ">=8.9.0" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "node_modules/lodash.curry": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.curry/-/lodash.curry-4.1.1.tgz", - "integrity": "sha512-/u14pXGviLaweY5JI0IUzgzF2J6Ne8INyzAZjImcryjgkZ+ebruBxy2/JaOOkTqScddcYtakjhSaeemV8lR0tA==" - }, - "node_modules/lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" - }, - "node_modules/lodash.flow": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/lodash.flow/-/lodash.flow-3.5.0.tgz", - "integrity": "sha512-ff3BX/tSioo+XojX4MOsOMhJw0nZoUEF011LX8g8d3gvjVbxd89cCio4BCXronjxcTUIJUoqKEUA+n4CqvvRPw==" - }, - "node_modules/lodash.memoize": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==" - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "devOptional": true - }, - "node_modules/lodash.truncate": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", - "integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==", - "dev": true - }, - "node_modules/lodash.uniq": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", - "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==" - }, - "node_modules/log-update": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/log-update/-/log-update-4.0.0.tgz", - "integrity": "sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==", - "dev": true, - "dependencies": { - "ansi-escapes": "^4.3.0", - "cli-cursor": "^3.1.0", - "slice-ansi": "^4.0.0", - "wrap-ansi": "^6.2.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/log-update/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/log-update/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/log-update/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/log-update/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/log-update/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/log-update/node_modules/slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, - "node_modules/log-update/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/log-update/node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/longest-streak": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz", - "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, - "node_modules/lower-case": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", - "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", - "dependencies": { - "tslib": "^2.0.3" - } - }, - "node_modules/lowercase-keys": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", - "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/lunr": { - "version": "2.3.9", - "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz", - "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==" - }, - "node_modules/lunr-languages": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/lunr-languages/-/lunr-languages-1.12.0.tgz", - "integrity": "sha512-C2z02jt74ymrDocBwxYB4Cr1LNZj9rHGLTH/00+JuoT6eJOSSuPBzeqQG8kjnlPUQe+/PAWv1/KHbDT+YYYRnA==" - }, - "node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/map-obj": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", - "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mark.js": { - "version": "8.11.1", - "resolved": "https://registry.npmjs.org/mark.js/-/mark.js-8.11.1.tgz", - "integrity": "sha512-1I+1qpDt4idfgLQG+BNWmrqku+7/2bi5nLf4YwF8y8zXvmfiTBY3PV3ZibfrjBueCByROpuBjLLFCajqkgYoLQ==" - }, - "node_modules/markdown-escapes": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/markdown-escapes/-/markdown-escapes-1.0.4.tgz", - "integrity": "sha512-8z4efJYk43E0upd0NbVXwgSTQs6cT3T06etieCMEg7dRbzCbxUCK/GHlX8mhHRDcp+OLlHkPKsvqQTCvsRl2cg==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/mathml-tag-names": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/mathml-tag-names/-/mathml-tag-names-2.1.3.tgz", - "integrity": "sha512-APMBEanjybaPzUrfqU0IMU5I0AswKMH7k8OTLs0vvV4KZpExkTkY87nR/zpbuTPj+gARop7aGUbl11pnDfW6xg==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/mdast-squeeze-paragraphs": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mdast-squeeze-paragraphs/-/mdast-squeeze-paragraphs-4.0.0.tgz", - "integrity": "sha512-zxdPn69hkQ1rm4J+2Cs2j6wDEv7O17TfXTJ33tl/+JPIoEmtV9t2ZzBM5LPHE8QlHsmVD8t3vPKCyY3oH+H8MQ==", - "dependencies": { - "unist-util-remove": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-definitions": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-definitions/-/mdast-util-definitions-4.0.0.tgz", - "integrity": "sha512-k8AJ6aNnUkB7IE+5azR9h81O5EQ/cTDXtWdMq9Kk5KcEW/8ritU5CeLg/9HhOC++nALHBlaogJ5jz0Ybk3kPMQ==", - "dependencies": { - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-from-markdown": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-1.3.1.tgz", - "integrity": "sha512-4xTO/M8c82qBcnQc1tgpNtubGUW/Y1tBQ1B0i5CtSoelOLKFYlElIr3bvgREYYO5iRqbMY1YuqZng0GVOI8Qww==", - "dependencies": { - "@types/mdast": "^3.0.0", - "@types/unist": "^2.0.0", - "decode-named-character-reference": "^1.0.0", - "mdast-util-to-string": "^3.1.0", - "micromark": "^3.0.0", - "micromark-util-decode-numeric-character-reference": "^1.0.0", - "micromark-util-decode-string": "^1.0.0", - "micromark-util-normalize-identifier": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0", - "unist-util-stringify-position": "^3.0.0", - "uvu": "^0.5.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz", - "integrity": "sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==", - "dependencies": { - "@types/mdast": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-phrasing": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-3.0.1.tgz", - "integrity": "sha512-WmI1gTXUBJo4/ZmSk79Wcb2HcjPJBzM1nlI/OUWA8yk2X9ik3ffNbBGsU+09BFmXaL1IBb9fiuvq6/KMiNycSg==", - "dependencies": { - "@types/mdast": "^3.0.0", - "unist-util-is": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-phrasing/node_modules/unist-util-is": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", - "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", - "dependencies": { - "@types/unist": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-hast": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-10.0.1.tgz", - "integrity": "sha512-BW3LM9SEMnjf4HXXVApZMt8gLQWVNXc3jryK0nJu/rOXPOnlkUjmdkDlmxMirpbU9ILncGFIwLH/ubnWBbcdgA==", - "dependencies": { - "@types/mdast": "^3.0.0", - "@types/unist": "^2.0.0", - "mdast-util-definitions": "^4.0.0", - "mdurl": "^1.0.0", - "unist-builder": "^2.0.0", - "unist-util-generated": "^1.0.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-markdown": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-1.5.0.tgz", - "integrity": "sha512-bbv7TPv/WC49thZPg3jXuqzuvI45IL2EVAr/KxF0BSdHsU0ceFHOmwQn6evxAh1GaoK/6GQ1wp4R4oW2+LFL/A==", - "dependencies": { - "@types/mdast": "^3.0.0", - "@types/unist": "^2.0.0", - "longest-streak": "^3.0.0", - "mdast-util-phrasing": "^3.0.0", - "mdast-util-to-string": "^3.0.0", - "micromark-util-decode-string": "^1.0.0", - "unist-util-visit": "^4.0.0", - "zwitch": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-markdown/node_modules/mdast-util-to-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz", - "integrity": "sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==", - "dependencies": { - "@types/mdast": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-markdown/node_modules/unist-util-is": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", - "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", - "dependencies": { - "@types/unist": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-markdown/node_modules/unist-util-visit": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz", - "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^5.0.0", - "unist-util-visit-parents": "^5.1.1" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-markdown/node_modules/unist-util-visit-parents": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz", - "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-markdown/node_modules/zwitch": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", - "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/mdast-util-to-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-2.0.0.tgz", - "integrity": "sha512-AW4DRS3QbBayY/jJmD8437V1Gombjf8RSOUCMFBuo5iHi58AGEgVCKQ+ezHkZZDpAQS75hcBMpLqjpJTjtUL7w==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdn-data": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", - "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==" - }, - "node_modules/mdurl": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", - "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==" - }, - "node_modules/media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/memfs": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.5.2.tgz", - "integrity": "sha512-4kbWXbVZ+LU4XFDS2CuA7frnwz2HxCMB/0yOXc86q7aCQrfWKkL11t6al1e2CsVC7uhnBNTQ1TfUsAxVauO9IQ==", - "dependencies": { - "fs-monkey": "^1.0.3" - }, - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/memoize-one": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-5.2.1.tgz", - "integrity": "sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==" - }, - "node_modules/meow": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-9.0.0.tgz", - "integrity": "sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ==", - "dev": true, - "dependencies": { - "@types/minimist": "^1.2.0", - "camelcase-keys": "^6.2.2", - "decamelize": "^1.2.0", - "decamelize-keys": "^1.1.0", - "hard-rejection": "^2.1.0", - "minimist-options": "4.1.0", - "normalize-package-data": "^3.0.0", - "read-pkg-up": "^7.0.1", - "redent": "^3.0.0", - "trim-newlines": "^3.0.0", - "type-fest": "^0.18.0", - "yargs-parser": "^20.2.3" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/meow/node_modules/type-fest": { - "version": "0.18.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", - "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/micromark": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/micromark/-/micromark-3.2.0.tgz", - "integrity": "sha512-uD66tJj54JLYq0De10AhWycZWGQNUvDI55xPgk2sQM5kn1JYlhbCMTtEeT27+vAhW2FBQxLlOmS3pmA7/2z4aA==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "@types/debug": "^4.0.0", - "debug": "^4.0.0", - "decode-named-character-reference": "^1.0.0", - "micromark-core-commonmark": "^1.0.1", - "micromark-factory-space": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-chunked": "^1.0.0", - "micromark-util-combine-extensions": "^1.0.0", - "micromark-util-decode-numeric-character-reference": "^1.0.0", - "micromark-util-encode": "^1.0.0", - "micromark-util-normalize-identifier": "^1.0.0", - "micromark-util-resolve-all": "^1.0.0", - "micromark-util-sanitize-uri": "^1.0.0", - "micromark-util-subtokenize": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.1", - "uvu": "^0.5.0" - } - }, - "node_modules/micromark-core-commonmark": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-1.1.0.tgz", - "integrity": "sha512-BgHO1aRbolh2hcrzL2d1La37V0Aoz73ymF8rAcKnohLy93titmv62E0gP8Hrx9PKcKrqCZ1BbLGbP3bEhoXYlw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "decode-named-character-reference": "^1.0.0", - "micromark-factory-destination": "^1.0.0", - "micromark-factory-label": "^1.0.0", - "micromark-factory-space": "^1.0.0", - "micromark-factory-title": "^1.0.0", - "micromark-factory-whitespace": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-chunked": "^1.0.0", - "micromark-util-classify-character": "^1.0.0", - "micromark-util-html-tag-name": "^1.0.0", - "micromark-util-normalize-identifier": "^1.0.0", - "micromark-util-resolve-all": "^1.0.0", - "micromark-util-subtokenize": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.1", - "uvu": "^0.5.0" - } - }, - "node_modules/micromark-factory-destination": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-1.1.0.tgz", - "integrity": "sha512-XaNDROBgx9SgSChd69pjiGKbV+nfHGDPVYFs5dOoDd7ZnMAE+Cuu91BCpsY8RT2NP9vo/B8pds2VQNCLiu0zhg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-factory-label": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-1.1.0.tgz", - "integrity": "sha512-OLtyez4vZo/1NjxGhcpDSbHQ+m0IIGnT8BoPamh+7jVlzLJBH98zzuCoUeMxvM6WsNeh8wx8cKvqLiPHEACn0w==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0", - "uvu": "^0.5.0" - } - }, - "node_modules/micromark-factory-space": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-1.1.0.tgz", - "integrity": "sha512-cRzEj7c0OL4Mw2v6nwzttyOZe8XY/Z8G0rzmWQZTBi/jjwyw/U4uqKtUORXQrR5bAZZnbTI/feRV/R7hc4jQYQ==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-factory-title": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-1.1.0.tgz", - "integrity": "sha512-J7n9R3vMmgjDOCY8NPw55jiyaQnH5kBdV2/UXCtZIpnHH3P6nHUKaH7XXEYuWwx/xUJcawa8plLBEjMPU24HzQ==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-factory-space": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-factory-whitespace": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-1.1.0.tgz", - "integrity": "sha512-v2WlmiymVSp5oMg+1Q0N1Lxmt6pMhIHD457whWM7/GUlEks1hI9xj5w3zbc4uuMKXGisksZk8DzP2UyGbGqNsQ==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-factory-space": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-util-character": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz", - "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-util-chunked": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-1.1.0.tgz", - "integrity": "sha512-Ye01HXpkZPNcV6FiyoW2fGZDUw4Yc7vT0E9Sad83+bEDiCJ1uXu0S3mr8WLpsz3HaG3x2q0HM6CTuPdcZcluFQ==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^1.0.0" - } - }, - "node_modules/micromark-util-classify-character": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-1.1.0.tgz", - "integrity": "sha512-SL0wLxtKSnklKSUplok1WQFoGhUdWYKggKUiqhX+Swala+BtptGCu5iPRc+xvzJ4PXE/hwM3FNXsfEVgoZsWbw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-util-combine-extensions": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-1.1.0.tgz", - "integrity": "sha512-Q20sp4mfNf9yEqDL50WwuWZHUrCO4fEyeDCnMGmG5Pr0Cz15Uo7KBs6jq+dq0EgX4DPwwrh9m0X+zPV1ypFvUA==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-chunked": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-util-decode-numeric-character-reference": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-1.1.0.tgz", - "integrity": "sha512-m9V0ExGv0jB1OT21mrWcuf4QhP46pH1KkfWy9ZEezqHKAxkj4mPCy3nIH1rkbdMlChLHX531eOrymlwyZIf2iw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^1.0.0" - } - }, - "node_modules/micromark-util-decode-string": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-1.1.0.tgz", - "integrity": "sha512-YphLGCK8gM1tG1bd54azwyrQRjCFcmgj2S2GoJDNnh4vYtnL38JS8M4gpxzOPNyHdNEpheyWXCTnnTDY3N+NVQ==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "decode-named-character-reference": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-decode-numeric-character-reference": "^1.0.0", - "micromark-util-symbol": "^1.0.0" - } - }, - "node_modules/micromark-util-encode": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-1.1.0.tgz", - "integrity": "sha512-EuEzTWSTAj9PA5GOAs992GzNh2dGQO52UvAbtSOMvXTxv3Criqb6IOzJUBCmEqrrXSblJIJBbFFv6zPxpreiJw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-html-tag-name": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-1.2.0.tgz", - "integrity": "sha512-VTQzcuQgFUD7yYztuQFKXT49KghjtETQ+Wv/zUjGSGBioZnkA4P1XXZPT1FHeJA6RwRXSF47yvJ1tsJdoxwO+Q==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-normalize-identifier": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-1.1.0.tgz", - "integrity": "sha512-N+w5vhqrBihhjdpM8+5Xsxy71QWqGn7HYNUvch71iV2PM7+E3uWGox1Qp90loa1ephtCxG2ftRV/Conitc6P2Q==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^1.0.0" - } - }, - "node_modules/micromark-util-resolve-all": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-1.1.0.tgz", - "integrity": "sha512-b/G6BTMSg+bX+xVCshPTPyAu2tmA0E4X98NSR7eIbeC6ycCqCeE7wjfDIgzEbkzdEVJXRtOG4FbEm/uGbCRouA==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-util-sanitize-uri": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-1.2.0.tgz", - "integrity": "sha512-QO4GXv0XZfWey4pYFndLUKEAktKkG5kZTdUNaTAkzbuJxn2tNBOr+QtxR2XpWaMhbImT2dPzyLrPXLlPhph34A==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^1.0.0", - "micromark-util-encode": "^1.0.0", - "micromark-util-symbol": "^1.0.0" - } - }, - "node_modules/micromark-util-subtokenize": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-1.1.0.tgz", - "integrity": "sha512-kUQHyzRoxvZO2PuLzMt2P/dwVsTiivCK8icYTeR+3WgbuPqfHgPPy7nFKbeqRivBvn/3N3GBiNC+JRTMSxEC7A==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-chunked": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0", - "uvu": "^0.5.0" - } - }, - "node_modules/micromark-util-symbol": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz", - "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-types": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz", - "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "dependencies": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/mime-db": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", - "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.18", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", - "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", - "dependencies": { - "mime-db": "~1.33.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mimic-fn": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", - "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mimic-response": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", - "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", - "engines": { - "node": ">=4" - } - }, - "node_modules/min-indent": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", - "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/mini-css-extract-plugin": { - "version": "2.7.6", - "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.7.6.tgz", - "integrity": "sha512-Qk7HcgaPkGG6eD77mLvZS1nmxlao3j+9PkrT9Uc7HAE1id3F41+DdBRYRYkbyfNRGzm8/YWtzhw7nVPmwhqTQw==", - "dependencies": { - "schema-utils": "^4.0.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" - } - }, - "node_modules/mini-css-extract-plugin/node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/mini-css-extract-plugin/node_modules/ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "dependencies": { - "fast-deep-equal": "^3.1.3" - }, - "peerDependencies": { - "ajv": "^8.8.2" - } - }, - "node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/mini-css-extract-plugin/node_modules/schema-utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", - "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/minimist-options": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", - "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", - "dev": true, - "dependencies": { - "arrify": "^1.0.1", - "is-plain-obj": "^1.1.0", - "kind-of": "^6.0.3" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/mri": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", - "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", - "engines": { - "node": ">=4" - } - }, - "node_modules/mrmime": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-1.0.1.tgz", - "integrity": "sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==", - "engines": { - "node": ">=10" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "node_modules/multicast-dns": { - "version": "7.2.5", - "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-7.2.5.tgz", - "integrity": "sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg==", - "dependencies": { - "dns-packet": "^5.2.2", - "thunky": "^1.0.2" - }, - "bin": { - "multicast-dns": "cli.js" - } - }, - "node_modules/nanoid": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", - "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "devOptional": true - }, - "node_modules/natural-compare-lite": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", - "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", - "dev": true - }, - "node_modules/negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" - }, - "node_modules/no-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", - "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", - "dependencies": { - "lower-case": "^2.0.2", - "tslib": "^2.0.3" - } - }, - "node_modules/node-emoji": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.11.0.tgz", - "integrity": "sha512-wo2DpQkQp7Sjm2A0cq+sN7EHKO6Sl0ctXeBdFZrL9T9+UywORbufTcTZxom8YqpLQt/FqNMUkOpkZrJVYSKD3A==", - "dependencies": { - "lodash": "^4.17.21" - } - }, - "node_modules/node-fetch": { - "version": "2.6.11", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz", - "integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/node-forge": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", - "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", - "engines": { - "node": ">= 6.13.0" - } - }, - "node_modules/node-releases": { - "version": "2.0.12", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz", - "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==" - }, - "node_modules/normalize-package-data": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", - "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", - "dev": true, - "dependencies": { - "hosted-git-info": "^4.0.1", - "is-core-module": "^2.5.0", - "semver": "^7.3.4", - "validate-npm-package-license": "^3.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/normalize-package-data/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/normalize-package-data/node_modules/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/normalize-package-data/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/normalize-range": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", - "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/normalize-url": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", - "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/npm-run-path": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz", - "integrity": "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==", - "dev": true, - "dependencies": { - "path-key": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/npm-run-path/node_modules/path-key": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", - "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/nprogress": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/nprogress/-/nprogress-0.2.0.tgz", - "integrity": "sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==" - }, - "node_modules/nth-check": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", - "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", - "dependencies": { - "boolbase": "^1.0.0" - }, - "funding": { - "url": "https://github.com/fb55/nth-check?sponsor=1" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-inspect": { - "version": "1.12.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", - "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-is": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", - "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.assign": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.entries": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz", - "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.fromentries": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz", - "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.hasown": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.2.tgz", - "integrity": "sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==", - "dev": true, - "dependencies": { - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.values": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", - "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/obuf": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", - "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==" - }, - "node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/on-headers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", - "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/onetime": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", - "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", - "dev": true, - "dependencies": { - "mimic-fn": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/open": { - "version": "8.4.2", - "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", - "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", - "dependencies": { - "define-lazy-prop": "^2.0.0", - "is-docker": "^2.1.1", - "is-wsl": "^2.2.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/opener": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", - "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", - "bin": { - "opener": "bin/opener-bin.js" - } - }, - "node_modules/optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", - "devOptional": true, - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-cancelable": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", - "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==", - "engines": { - "node": ">=6" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-map": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", - "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", - "dependencies": { - "aggregate-error": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-retry": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz", - "integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==", - "dependencies": { - "@types/retry": "0.12.0", - "retry": "^0.13.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/package-json": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", - "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", - "dependencies": { - "got": "^9.6.0", - "registry-auth-token": "^4.0.0", - "registry-url": "^5.0.0", - "semver": "^6.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/param-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", - "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", - "dependencies": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/parse-entities": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-2.0.0.tgz", - "integrity": "sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==", - "dependencies": { - "character-entities": "^1.0.0", - "character-entities-legacy": "^1.0.0", - "character-reference-invalid": "^1.0.0", - "is-alphanumerical": "^1.0.0", - "is-decimal": "^1.0.0", - "is-hexadecimal": "^1.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/parse-entities/node_modules/character-entities": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-1.2.4.tgz", - "integrity": "sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parse-numeric-range": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/parse-numeric-range/-/parse-numeric-range-1.3.0.tgz", - "integrity": "sha512-twN+njEipszzlMJd4ONUYgSfZPDxgHhT9Ahed5uTigpQn90FggW4SA/AIPq/6a149fTbE9qBEcSwE3FAEp6wQQ==" - }, - "node_modules/parse5": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", - "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", - "dependencies": { - "entities": "^4.4.0" - }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" - } - }, - "node_modules/parse5-htmlparser2-tree-adapter": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.0.0.tgz", - "integrity": "sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==", - "dependencies": { - "domhandler": "^5.0.2", - "parse5": "^7.0.0" - }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" - } - }, - "node_modules/parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/pascal-case": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", - "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-is-inside": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", - "integrity": "sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w==" - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" - }, - "node_modules/path-to-regexp": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", - "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", - "dependencies": { - "isarray": "0.0.1" - } - }, - "node_modules/path-to-regexp/node_modules/isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" - }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pidtree": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz", - "integrity": "sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==", - "dev": true, - "bin": { - "pidtree": "bin/pidtree.js" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pkg-dir/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-up": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz", - "integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==", - "dependencies": { - "find-up": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-up/node_modules/find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dependencies": { - "locate-path": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-up/node_modules/locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-up/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pkg-up/node_modules/p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dependencies": { - "p-limit": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-up/node_modules/path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", - "engines": { - "node": ">=4" - } - }, - "node_modules/postcss": { - "version": "8.4.24", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.24.tgz", - "integrity": "sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "nanoid": "^3.3.6", - "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/postcss-calc": { - "version": "8.2.4", - "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.2.4.tgz", - "integrity": "sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==", - "dependencies": { - "postcss-selector-parser": "^6.0.9", - "postcss-value-parser": "^4.2.0" - }, - "peerDependencies": { - "postcss": "^8.2.2" - } - }, - "node_modules/postcss-colormin": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.1.tgz", - "integrity": "sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ==", - "dependencies": { - "browserslist": "^4.21.4", - "caniuse-api": "^3.0.0", - "colord": "^2.9.1", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-convert-values": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.1.3.tgz", - "integrity": "sha512-82pC1xkJZtcJEfiLw6UXnXVXScgtBrjlO5CBmuDQc+dlb88ZYheFsjTn40+zBVi3DkfF7iezO0nJUPLcJK3pvA==", - "dependencies": { - "browserslist": "^4.21.4", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-discard-comments": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz", - "integrity": "sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-discard-duplicates": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz", - "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-discard-empty": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz", - "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-discard-overridden": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz", - "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-discard-unused": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-unused/-/postcss-discard-unused-5.1.0.tgz", - "integrity": "sha512-KwLWymI9hbwXmJa0dkrzpRbSJEh0vVUd7r8t0yOGPcfKzyJJxFM8kLyC5Ev9avji6nY95pOp1W6HqIrfT+0VGw==", - "dependencies": { - "postcss-selector-parser": "^6.0.5" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-loader": { - "version": "7.3.2", - "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-7.3.2.tgz", - "integrity": "sha512-c7qDlXErX6n0VT+LUsW+nwefVtTu3ORtVvK8EXuUIDcxo+b/euYqpuHlJAvePb0Af5e8uMjR/13e0lTuYifaig==", - "dependencies": { - "cosmiconfig": "^8.1.3", - "jiti": "^1.18.2", - "klona": "^2.0.6", - "semver": "^7.3.8" - }, - "engines": { - "node": ">= 14.15.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "postcss": "^7.0.0 || ^8.0.1", - "webpack": "^5.0.0" - } - }, - "node_modules/postcss-loader/node_modules/cosmiconfig": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.2.0.tgz", - "integrity": "sha512-3rTMnFJA1tCOPwRxtgF4wd7Ab2qvDbL8jX+3smjIbS4HlZBagTlpERbdN7iAbWlrfxE3M8c27kTwTawQ7st+OQ==", - "dependencies": { - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "parse-json": "^5.0.0", - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/d-fischer" - } - }, - "node_modules/postcss-loader/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/postcss-loader/node_modules/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/postcss-loader/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, - "node_modules/postcss-media-query-parser": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz", - "integrity": "sha512-3sOlxmbKcSHMjlUXQZKQ06jOswE7oVkXPxmZdoB1r5l0q6gTFTQSHxNxOrCccElbW7dxNytifNEo8qidX2Vsig==", - "dev": true - }, - "node_modules/postcss-merge-idents": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-merge-idents/-/postcss-merge-idents-5.1.1.tgz", - "integrity": "sha512-pCijL1TREiCoog5nQp7wUe+TUonA2tC2sQ54UGeMmryK3UFGIYKqDyjnqd6RcuI4znFn9hWSLNN8xKE/vWcUQw==", - "dependencies": { - "cssnano-utils": "^3.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-merge-longhand": { - "version": "5.1.7", - "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz", - "integrity": "sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ==", - "dependencies": { - "postcss-value-parser": "^4.2.0", - "stylehacks": "^5.1.1" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-merge-rules": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.1.4.tgz", - "integrity": "sha512-0R2IuYpgU93y9lhVbO/OylTtKMVcHb67zjWIfCiKR9rWL3GUk1677LAqD/BcHizukdZEjT8Ru3oHRoAYoJy44g==", - "dependencies": { - "browserslist": "^4.21.4", - "caniuse-api": "^3.0.0", - "cssnano-utils": "^3.1.0", - "postcss-selector-parser": "^6.0.5" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-minify-font-values": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz", - "integrity": "sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-minify-gradients": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz", - "integrity": "sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==", - "dependencies": { - "colord": "^2.9.1", - "cssnano-utils": "^3.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-minify-params": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.4.tgz", - "integrity": "sha512-+mePA3MgdmVmv6g+30rn57USjOGSAyuxUmkfiWpzalZ8aiBkdPYjXWtHuwJGm1v5Ojy0Z0LaSYhHaLJQB0P8Jw==", - "dependencies": { - "browserslist": "^4.21.4", - "cssnano-utils": "^3.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-minify-selectors": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz", - "integrity": "sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==", - "dependencies": { - "postcss-selector-parser": "^6.0.5" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-modules-extract-imports": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", - "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-modules-local-by-default": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.3.tgz", - "integrity": "sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==", - "dependencies": { - "icss-utils": "^5.0.0", - "postcss-selector-parser": "^6.0.2", - "postcss-value-parser": "^4.1.0" - }, - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-modules-scope": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", - "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", - "dependencies": { - "postcss-selector-parser": "^6.0.4" - }, - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-modules-values": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", - "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", - "dependencies": { - "icss-utils": "^5.0.0" - }, - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-normalize-charset": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz", - "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-display-values": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz", - "integrity": "sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-positions": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz", - "integrity": "sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-repeat-style": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz", - "integrity": "sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-string": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz", - "integrity": "sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-timing-functions": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz", - "integrity": "sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-unicode": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz", - "integrity": "sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA==", - "dependencies": { - "browserslist": "^4.21.4", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-url": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz", - "integrity": "sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==", - "dependencies": { - "normalize-url": "^6.0.1", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-whitespace": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz", - "integrity": "sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-ordered-values": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz", - "integrity": "sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==", - "dependencies": { - "cssnano-utils": "^3.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-reduce-idents": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/postcss-reduce-idents/-/postcss-reduce-idents-5.2.0.tgz", - "integrity": "sha512-BTrLjICoSB6gxbc58D5mdBK8OhXRDqud/zodYfdSi52qvDHdMwk+9kB9xsM8yJThH/sZU5A6QVSmMmaN001gIg==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-reduce-initial": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz", - "integrity": "sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg==", - "dependencies": { - "browserslist": "^4.21.4", - "caniuse-api": "^3.0.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-reduce-transforms": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz", - "integrity": "sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-resolve-nested-selector": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/postcss-resolve-nested-selector/-/postcss-resolve-nested-selector-0.1.1.tgz", - "integrity": "sha512-HvExULSwLqHLgUy1rl3ANIqCsvMS0WHss2UOsXhXnQaZ9VCc2oBvIpXrl00IUFT5ZDITME0o6oiXeiHr2SAIfw==", - "dev": true - }, - "node_modules/postcss-safe-parser": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-6.0.0.tgz", - "integrity": "sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==", - "dev": true, - "engines": { - "node": ">=12.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - "peerDependencies": { - "postcss": "^8.3.3" - } - }, - "node_modules/postcss-selector-parser": { - "version": "6.0.13", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", - "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", - "dependencies": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/postcss-sort-media-queries": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/postcss-sort-media-queries/-/postcss-sort-media-queries-4.4.1.tgz", - "integrity": "sha512-QDESFzDDGKgpiIh4GYXsSy6sek2yAwQx1JASl5AxBtU1Lq2JfKBljIPNdil989NcSKRQX1ToiaKphImtBuhXWw==", - "dependencies": { - "sort-css-media-queries": "2.1.0" - }, - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "postcss": "^8.4.16" - } - }, - "node_modules/postcss-svgo": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.1.0.tgz", - "integrity": "sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==", - "dependencies": { - "postcss-value-parser": "^4.2.0", - "svgo": "^2.7.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-unique-selectors": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz", - "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==", - "dependencies": { - "postcss-selector-parser": "^6.0.5" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-value-parser": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", - "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" - }, - "node_modules/postcss-zindex": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-zindex/-/postcss-zindex-5.1.0.tgz", - "integrity": "sha512-fgFMf0OtVSBR1va1JNHYgMxYk73yhn/qb4uQDq1DLGYolz8gHCyr/sesEuGUaYs58E3ZJRcpoGuPVoB7Meiq9A==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "devOptional": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prepend-http": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", - "integrity": "sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==", - "engines": { - "node": ">=4" - } - }, - "node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", - "dev": true, - "bin": { - "prettier": "bin-prettier.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", - "dev": true, - "dependencies": { - "fast-diff": "^1.1.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/pretty-error": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-4.0.0.tgz", - "integrity": "sha512-AoJ5YMAcXKYxKhuJGdcvse+Voc6v1RgnsR3nWcYU7q4t6z0Q6T86sv5Zq8VIRbOWWFpvdGE83LtdSMNd+6Y0xw==", - "dependencies": { - "lodash": "^4.17.20", - "renderkid": "^3.0.0" - } - }, - "node_modules/pretty-time": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/pretty-time/-/pretty-time-1.1.0.tgz", - "integrity": "sha512-28iF6xPQrP8Oa6uxE6a1biz+lWeTOAPKggvjB8HAs6nVMKZwf5bG++632Dx614hIWgUPkgivRfG+a8uAXGTIbA==", - "engines": { - "node": ">=4" - } - }, - "node_modules/prism-react-renderer": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/prism-react-renderer/-/prism-react-renderer-1.3.5.tgz", - "integrity": "sha512-IJ+MSwBWKG+SM3b2SUfdrhC+gu01QkV2KmRQgREThBfSQRoufqRfxfHUxpG1WcaFjP+kojcFyO9Qqtpgt3qLCg==", - "peerDependencies": { - "react": ">=0.14.9" - } - }, - "node_modules/prismjs": { - "version": "1.29.0", - "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz", - "integrity": "sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==", - "engines": { - "node": ">=6" - } - }, - "node_modules/process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" - }, - "node_modules/promise": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", - "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", - "dependencies": { - "asap": "~2.0.3" - } - }, - "node_modules/prompts": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", - "dependencies": { - "kleur": "^3.0.3", - "sisteransi": "^1.0.5" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/prop-types": { - "version": "15.8.1", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", - "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", - "dependencies": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.13.1" - } - }, - "node_modules/property-information": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/property-information/-/property-information-5.6.0.tgz", - "integrity": "sha512-YUHSPk+A30YPv+0Qf8i9Mbfe/C0hdPXk1s1jPVToV8pk8BQtpw10ct89Eo7OWkutrwqvT0eicAxlOg3dOAu8JA==", - "dependencies": { - "xtend": "^4.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "dependencies": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/proxy-addr/node_modules/ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "node_modules/punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==" - }, - "node_modules/pupa": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/pupa/-/pupa-2.1.1.tgz", - "integrity": "sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A==", - "dependencies": { - "escape-goat": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pure-color": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/pure-color/-/pure-color-1.3.0.tgz", - "integrity": "sha512-QFADYnsVoBMw1srW7OVKEYjG+MbIa49s54w1MA1EDY6r2r/sTcKKYqRX1f4GYvnXP7eN/Pe9HFcX+hwzmrXRHA==" - }, - "node_modules/qs": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", - "dependencies": { - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/queue": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/queue/-/queue-6.0.2.tgz", - "integrity": "sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==", - "dependencies": { - "inherits": "~2.0.3" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/quick-lru": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", - "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dependencies": { - "safe-buffer": "^5.1.0" - } - }, - "node_modules/range-parser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz", - "integrity": "sha512-kA5WQoNVo4t9lNx2kQNFCxKeBl5IbbSNBl1M/tLkw9WCn+hxNBAW5Qh8gdhs63CJnhjJ2zQWFoqPJP2sK1AV5A==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/raw-body": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", - "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", - "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/raw-body/node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "dependencies": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "bin": { - "rc": "cli.js" - } - }, - "node_modules/rc/node_modules/strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz", - "integrity": "sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==", - "dependencies": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react-base16-styling": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/react-base16-styling/-/react-base16-styling-0.6.0.tgz", - "integrity": "sha512-yvh/7CArceR/jNATXOKDlvTnPKPmGZz7zsenQ3jUwLzHkNUR0CvY3yGYJbWJ/nnxsL8Sgmt5cO3/SILVuPO6TQ==", - "dependencies": { - "base16": "^1.0.0", - "lodash.curry": "^4.0.1", - "lodash.flow": "^3.3.0", - "pure-color": "^1.2.0" - } - }, - "node_modules/react-dev-utils": { - "version": "12.0.1", - "resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz", - "integrity": "sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ==", - "dependencies": { - "@babel/code-frame": "^7.16.0", - "address": "^1.1.2", - "browserslist": "^4.18.1", - "chalk": "^4.1.2", - "cross-spawn": "^7.0.3", - "detect-port-alt": "^1.1.6", - "escape-string-regexp": "^4.0.0", - "filesize": "^8.0.6", - "find-up": "^5.0.0", - "fork-ts-checker-webpack-plugin": "^6.5.0", - "global-modules": "^2.0.0", - "globby": "^11.0.4", - "gzip-size": "^6.0.0", - "immer": "^9.0.7", - "is-root": "^2.1.0", - "loader-utils": "^3.2.0", - "open": "^8.4.0", - "pkg-up": "^3.1.0", - "prompts": "^2.4.2", - "react-error-overlay": "^6.0.11", - "recursive-readdir": "^2.2.2", - "shell-quote": "^1.7.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/react-dev-utils/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/react-dev-utils/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/react-dev-utils/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/react-dev-utils/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/react-dev-utils/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/react-dev-utils/node_modules/loader-utils": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-3.2.1.tgz", - "integrity": "sha512-ZvFw1KWS3GVyYBYb7qkmRM/WwL2TQQBxgCK62rlvm4WpVQ23Nb4tYjApUlfjrEGvOs7KHEsmyUn75OHZrJMWPw==", - "engines": { - "node": ">= 12.13.0" - } - }, - "node_modules/react-dev-utils/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/react-dom": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-17.0.2.tgz", - "integrity": "sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==", - "dependencies": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1", - "scheduler": "^0.20.2" - }, - "peerDependencies": { - "react": "17.0.2" - } - }, - "node_modules/react-error-overlay": { - "version": "6.0.11", - "resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz", - "integrity": "sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==" - }, - "node_modules/react-fast-compare": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.2.tgz", - "integrity": "sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==" - }, - "node_modules/react-github-btn": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/react-github-btn/-/react-github-btn-1.4.0.tgz", - "integrity": "sha512-lV4FYClAfjWnBfv0iNlJUGhamDgIq6TayD0kPZED6VzHWdpcHmPfsYOZ/CFwLfPv4Zp+F4m8QKTj0oy2HjiGXg==", - "dependencies": { - "github-buttons": "^2.22.0" - }, - "peerDependencies": { - "react": ">=16.3.0" - } - }, - "node_modules/react-helmet-async": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/react-helmet-async/-/react-helmet-async-1.3.0.tgz", - "integrity": "sha512-9jZ57/dAn9t3q6hneQS0wukqC2ENOBgMNVEhb/ZG9ZSxUetzVIw4iAmEU38IaVg3QGYauQPhSeUTuIUtFglWpg==", - "dependencies": { - "@babel/runtime": "^7.12.5", - "invariant": "^2.2.4", - "prop-types": "^15.7.2", - "react-fast-compare": "^3.2.0", - "shallowequal": "^1.1.0" - }, - "peerDependencies": { - "react": "^16.6.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.6.0 || ^17.0.0 || ^18.0.0" - } - }, - "node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" - }, - "node_modules/react-json-view": { - "version": "1.21.3", - "resolved": "https://registry.npmjs.org/react-json-view/-/react-json-view-1.21.3.tgz", - "integrity": "sha512-13p8IREj9/x/Ye4WI/JpjhoIwuzEgUAtgJZNBJckfzJt1qyh24BdTm6UQNGnyTq9dapQdrqvquZTo3dz1X6Cjw==", - "dependencies": { - "flux": "^4.0.1", - "react-base16-styling": "^0.6.0", - "react-lifecycles-compat": "^3.0.4", - "react-textarea-autosize": "^8.3.2" - }, - "peerDependencies": { - "react": "^17.0.0 || ^16.3.0 || ^15.5.4", - "react-dom": "^17.0.0 || ^16.3.0 || ^15.5.4" - } - }, - "node_modules/react-lifecycles-compat": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz", - "integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==" - }, - "node_modules/react-loadable": { - "name": "@docusaurus/react-loadable", - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz", - "integrity": "sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ==", - "dependencies": { - "@types/react": "*", - "prop-types": "^15.6.2" - }, - "peerDependencies": { - "react": "*" - } - }, - "node_modules/react-loadable-ssr-addon-v5-slorber": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/react-loadable-ssr-addon-v5-slorber/-/react-loadable-ssr-addon-v5-slorber-1.0.1.tgz", - "integrity": "sha512-lq3Lyw1lGku8zUEJPDxsNm1AfYHBrO9Y1+olAYwpUJ2IGFBskM0DMKok97A6LWUpHm+o7IvQBOWu9MLenp9Z+A==", - "dependencies": { - "@babel/runtime": "^7.10.3" - }, - "engines": { - "node": ">=10.13.0" - }, - "peerDependencies": { - "react-loadable": "*", - "webpack": ">=4.41.1 || 5.x" - } - }, - "node_modules/react-markdown": { - "version": "8.0.7", - "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-8.0.7.tgz", - "integrity": "sha512-bvWbzG4MtOU62XqBx3Xx+zB2raaFFsq4mYiAzfjXJMEz2sixgeAfraA3tvzULF02ZdOMUOKTBFFaZJDDrq+BJQ==", - "dependencies": { - "@types/hast": "^2.0.0", - "@types/prop-types": "^15.0.0", - "@types/unist": "^2.0.0", - "comma-separated-tokens": "^2.0.0", - "hast-util-whitespace": "^2.0.0", - "prop-types": "^15.0.0", - "property-information": "^6.0.0", - "react-is": "^18.0.0", - "remark-parse": "^10.0.0", - "remark-rehype": "^10.0.0", - "space-separated-tokens": "^2.0.0", - "style-to-object": "^0.4.0", - "unified": "^10.0.0", - "unist-util-visit": "^4.0.0", - "vfile": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - }, - "peerDependencies": { - "@types/react": ">=16", - "react": ">=16" - } - }, - "node_modules/react-markdown/node_modules/bail": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", - "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/react-markdown/node_modules/comma-separated-tokens": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", - "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/react-markdown/node_modules/is-plain-obj": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", - "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/react-markdown/node_modules/property-information": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/property-information/-/property-information-6.2.0.tgz", - "integrity": "sha512-kma4U7AFCTwpqq5twzC1YVIDXSqg6qQK6JN0smOw8fgRy1OkMi0CYSzFmsy6dnqSenamAtj0CyXMUJ1Mf6oROg==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/react-markdown/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" - }, - "node_modules/react-markdown/node_modules/remark-parse": { - "version": "10.0.2", - "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-10.0.2.tgz", - "integrity": "sha512-3ydxgHa/ZQzG8LvC7jTXccARYDcRld3VfcgIIFs7bI6vbRSxJJmzgLEIIoYKyrfhaY+ujuWaf/PJiMZXoiCXgw==", - "dependencies": { - "@types/mdast": "^3.0.0", - "mdast-util-from-markdown": "^1.0.0", - "unified": "^10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/react-markdown/node_modules/space-separated-tokens": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz", - "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/react-markdown/node_modules/style-to-object": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-0.4.1.tgz", - "integrity": "sha512-HFpbb5gr2ypci7Qw+IOhnP2zOU7e77b+rzM+wTzXzfi1PrtBCX0E7Pk4wL4iTLnhzZ+JgEGAhX81ebTg/aYjQw==", - "dependencies": { - "inline-style-parser": "0.1.1" - } - }, - "node_modules/react-markdown/node_modules/trough": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/trough/-/trough-2.1.0.tgz", - "integrity": "sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/react-markdown/node_modules/unified": { - "version": "10.1.2", - "resolved": "https://registry.npmjs.org/unified/-/unified-10.1.2.tgz", - "integrity": "sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==", - "dependencies": { - "@types/unist": "^2.0.0", - "bail": "^2.0.0", - "extend": "^3.0.0", - "is-buffer": "^2.0.0", - "is-plain-obj": "^4.0.0", - "trough": "^2.0.0", - "vfile": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/react-markdown/node_modules/unist-util-is": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", - "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", - "dependencies": { - "@types/unist": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/react-markdown/node_modules/unist-util-visit": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz", - "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^5.0.0", - "unist-util-visit-parents": "^5.1.1" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/react-markdown/node_modules/unist-util-visit-parents": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz", - "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/react-markdown/node_modules/vfile": { - "version": "5.3.7", - "resolved": "https://registry.npmjs.org/vfile/-/vfile-5.3.7.tgz", - "integrity": "sha512-r7qlzkgErKjobAmyNIkkSpizsFPYiUPuJb5pNW1RB4JcYVZhs4lIbVqk8XPk033CV/1z8ss5pkax8SuhGpcG8g==", - "dependencies": { - "@types/unist": "^2.0.0", - "is-buffer": "^2.0.0", - "unist-util-stringify-position": "^3.0.0", - "vfile-message": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/react-markdown/node_modules/vfile-message": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-3.1.4.tgz", - "integrity": "sha512-fa0Z6P8HUrQN4BZaX05SIVXic+7kE3b05PWAtPuYP9QLHsLKYR7/AlLW3NtOrpXRLeawpDLMsVkmk5DG0NXgWw==", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-stringify-position": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/react-player": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/react-player/-/react-player-2.12.0.tgz", - "integrity": "sha512-rymLRz/2GJJD+Wc01S7S+i9pGMFYnNmQibR2gVE3KmHJCBNN8BhPAlOPTGZtn1uKpJ6p4RPLlzPQ1OLreXd8gw==", - "dependencies": { - "deepmerge": "^4.0.0", - "load-script": "^1.0.0", - "memoize-one": "^5.1.1", - "prop-types": "^15.7.2", - "react-fast-compare": "^3.0.1" - }, - "peerDependencies": { - "react": ">=16.6.0" - } - }, - "node_modules/react-router": { - "version": "5.3.4", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-5.3.4.tgz", - "integrity": "sha512-Ys9K+ppnJah3QuaRiLxk+jDWOR1MekYQrlytiXxC1RyfbdsZkS5pvKAzCCr031xHixZwpnsYNT5xysdFHQaYsA==", - "dependencies": { - "@babel/runtime": "^7.12.13", - "history": "^4.9.0", - "hoist-non-react-statics": "^3.1.0", - "loose-envify": "^1.3.1", - "path-to-regexp": "^1.7.0", - "prop-types": "^15.6.2", - "react-is": "^16.6.0", - "tiny-invariant": "^1.0.2", - "tiny-warning": "^1.0.0" - }, - "peerDependencies": { - "react": ">=15" - } - }, - "node_modules/react-router-config": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/react-router-config/-/react-router-config-5.1.1.tgz", - "integrity": "sha512-DuanZjaD8mQp1ppHjgnnUnyOlqYXZVjnov/JzFhjLEwd3Z4dYjMSnqrEzzGThH47vpCOqPPwJM2FtthLeJ8Pbg==", - "dependencies": { - "@babel/runtime": "^7.1.2" - }, - "peerDependencies": { - "react": ">=15", - "react-router": ">=5" - } - }, - "node_modules/react-router-dom": { - "version": "5.3.4", - "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-5.3.4.tgz", - "integrity": "sha512-m4EqFMHv/Ih4kpcBCONHbkT68KoAeHN4p3lAGoNryfHi0dMy0kCzEZakiKRsvg5wHZ/JLrLW8o8KomWiz/qbYQ==", - "dependencies": { - "@babel/runtime": "^7.12.13", - "history": "^4.9.0", - "loose-envify": "^1.3.1", - "prop-types": "^15.6.2", - "react-router": "5.3.4", - "tiny-invariant": "^1.0.2", - "tiny-warning": "^1.0.0" - }, - "peerDependencies": { - "react": ">=15" - } - }, - "node_modules/react-textarea-autosize": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/react-textarea-autosize/-/react-textarea-autosize-8.4.1.tgz", - "integrity": "sha512-aD2C+qK6QypknC+lCMzteOdIjoMbNlgSFmJjCV+DrfTPwp59i/it9mMNf2HDzvRjQgKAyBDPyLJhcrzElf2U4Q==", - "dependencies": { - "@babel/runtime": "^7.20.13", - "use-composed-ref": "^1.3.0", - "use-latest": "^1.2.1" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0" - } - }, - "node_modules/read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", - "dev": true, - "dependencies": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", - "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", - "dev": true, - "dependencies": { - "find-up": "^4.1.0", - "read-pkg": "^5.2.0", - "type-fest": "^0.8.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/read-pkg-up/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/read-pkg-up/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up/node_modules/type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg/node_modules/hosted-git-info": { - "version": "2.8.9", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", - "dev": true - }, - "node_modules/read-pkg/node_modules/normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", - "dev": true, - "dependencies": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "node_modules/read-pkg/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/read-pkg/node_modules/type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/reading-time": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/reading-time/-/reading-time-1.5.0.tgz", - "integrity": "sha512-onYyVhBNr4CmAxFsKS7bz+uTLRakypIe4R+5A824vBSkQy/hB3fZepoVEf8OVAxzLvK+H/jm9TzpI3ETSm64Kg==" - }, - "node_modules/rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", - "dependencies": { - "resolve": "^1.1.6" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/recursive-readdir": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.2.3.tgz", - "integrity": "sha512-8HrF5ZsXk5FAH9dgsx3BlUer73nIhuj+9OrQwEbLTPOBzGkL1lsFCR01am+v+0m2Cmbs1nP12hLDl5FA7EszKA==", - "dependencies": { - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/redent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", - "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", - "dev": true, - "dependencies": { - "indent-string": "^4.0.0", - "strip-indent": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/refa": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/refa/-/refa-0.11.0.tgz", - "integrity": "sha512-486O8/pQXwj9jV0mVvUnTsxq0uknpBnNJ0eCUhkZqJRQ8KutrT1PhzmumdCeM1hSBF2eMlFPmwECRER4IbKXlQ==", - "dev": true, - "dependencies": { - "@eslint-community/regexpp": "^4.5.0" - }, - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==" - }, - "node_modules/regenerate-unicode-properties": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz", - "integrity": "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==", - "dependencies": { - "regenerate": "^1.4.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regenerator-runtime": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", - "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" - }, - "node_modules/regenerator-transform": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.1.tgz", - "integrity": "sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg==", - "dependencies": { - "@babel/runtime": "^7.8.4" - } - }, - "node_modules/regexp-ast-analysis": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/regexp-ast-analysis/-/regexp-ast-analysis-0.6.0.tgz", - "integrity": "sha512-OLxjyjPkVH+rQlBLb1I/P/VTmamSjGkvN5PTV5BXP432k3uVz727J7H29GA5IFiY0m7e1xBN7049Wn59FY3DEQ==", - "dev": true, - "dependencies": { - "@eslint-community/regexpp": "^4.5.0", - "refa": "^0.11.0" - }, - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/regexp.prototype.flags": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", - "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "functions-have-names": "^1.2.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/regexpu-core": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", - "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", - "dependencies": { - "@babel/regjsgen": "^0.8.0", - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.1.0", - "regjsparser": "^0.9.1", - "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/registry-auth-token": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.2.tgz", - "integrity": "sha512-PC5ZysNb42zpFME6D/XlIgtNGdTl8bBOCw90xQLVMpzuuubJKYDWFAEuUNc+Cn8Z8724tg2SDhDRrkVEsqfDMg==", - "dependencies": { - "rc": "1.2.8" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/registry-url": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", - "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", - "dependencies": { - "rc": "^1.2.8" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/regjsparser": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", - "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", - "dependencies": { - "jsesc": "~0.5.0" - }, - "bin": { - "regjsparser": "bin/parser" - } - }, - "node_modules/regjsparser/node_modules/jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", - "bin": { - "jsesc": "bin/jsesc" - } - }, - "node_modules/relateurl": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", - "integrity": "sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/remark-deflist": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/remark-deflist/-/remark-deflist-1.0.0.tgz", - "integrity": "sha512-sDHM+ZbgWC6wwaxltMdH5x+XYMW8VpjyeHyC2ZCI106+iYgbPv8lBYKiNqdW0Cs0FVox/LysYhb3qIZe1b0cmg==", - "dependencies": { - "mdast-util-from-markdown": "^1.0.0", - "mdast-util-to-markdown": "^1.1.1", - "mdast-util-to-string": "^3.1.0", - "unist-util-visit": "^4.0.0" - } - }, - "node_modules/remark-deflist/node_modules/mdast-util-to-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz", - "integrity": "sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==", - "dependencies": { - "@types/mdast": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-deflist/node_modules/unist-util-is": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", - "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", - "dependencies": { - "@types/unist": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-deflist/node_modules/unist-util-visit": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz", - "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^5.0.0", - "unist-util-visit-parents": "^5.1.1" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-deflist/node_modules/unist-util-visit-parents": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz", - "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-emoji": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/remark-emoji/-/remark-emoji-2.2.0.tgz", - "integrity": "sha512-P3cj9s5ggsUvWw5fS2uzCHJMGuXYRb0NnZqYlNecewXt8QBU9n5vW3DUUKOhepS8F9CwdMx9B8a3i7pqFWAI5w==", - "dependencies": { - "emoticon": "^3.2.0", - "node-emoji": "^1.10.0", - "unist-util-visit": "^2.0.3" - } - }, - "node_modules/remark-footnotes": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/remark-footnotes/-/remark-footnotes-2.0.0.tgz", - "integrity": "sha512-3Clt8ZMH75Ayjp9q4CorNeyjwIxHFcTkaektplKGl2A1jNGEUey8cKL0ZC5vJwfcD5GFGsNLImLG/NGzWIzoMQ==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-mdx": { - "version": "1.6.22", - "resolved": "https://registry.npmjs.org/remark-mdx/-/remark-mdx-1.6.22.tgz", - "integrity": "sha512-phMHBJgeV76uyFkH4rvzCftLfKCr2RZuF+/gmVcaKrpsihyzmhXjA0BEMDaPTXG5y8qZOKPVo83NAOX01LPnOQ==", - "dependencies": { - "@babel/core": "7.12.9", - "@babel/helper-plugin-utils": "7.10.4", - "@babel/plugin-proposal-object-rest-spread": "7.12.1", - "@babel/plugin-syntax-jsx": "7.12.1", - "@mdx-js/util": "1.6.22", - "is-alphabetical": "1.0.4", - "remark-parse": "8.0.3", - "unified": "9.2.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-mdx/node_modules/@babel/core": { - "version": "7.12.9", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.9.tgz", - "integrity": "sha512-gTXYh3M5wb7FRXQy+FErKFAv90BnlOuNn1QkCK2lREoPAjrQCO49+HVSrFoe5uakFAF5eenS75KbO2vQiLrTMQ==", - "dependencies": { - "@babel/code-frame": "^7.10.4", - "@babel/generator": "^7.12.5", - "@babel/helper-module-transforms": "^7.12.1", - "@babel/helpers": "^7.12.5", - "@babel/parser": "^7.12.7", - "@babel/template": "^7.12.7", - "@babel/traverse": "^7.12.9", - "@babel/types": "^7.12.7", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.1", - "json5": "^2.1.2", - "lodash": "^4.17.19", - "resolve": "^1.3.2", - "semver": "^5.4.1", - "source-map": "^0.5.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/remark-mdx/node_modules/@babel/helper-plugin-utils": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz", - "integrity": "sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==" - }, - "node_modules/remark-mdx/node_modules/@babel/plugin-syntax-jsx": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.12.1.tgz", - "integrity": "sha512-1yRi7yAtB0ETgxdY9ti/p2TivUxJkTdhu/ZbF9MshVGqOx1TdB3b7xCXs49Fupgg50N45KcAsRP/ZqWjs9SRjg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/remark-mdx/node_modules/is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", - "engines": { - "node": ">=8" - } - }, - "node_modules/remark-mdx/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/remark-mdx/node_modules/source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/remark-mdx/node_modules/unified": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/unified/-/unified-9.2.0.tgz", - "integrity": "sha512-vx2Z0vY+a3YoTj8+pttM3tiJHCwY5UFbYdiWrwBEbHmK8pvsPj2rtAX2BFfgXen8T39CJWblWRDT4L5WGXtDdg==", - "dependencies": { - "bail": "^1.0.0", - "extend": "^3.0.0", - "is-buffer": "^2.0.0", - "is-plain-obj": "^2.0.0", - "trough": "^1.0.0", - "vfile": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-parse": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-8.0.3.tgz", - "integrity": "sha512-E1K9+QLGgggHxCQtLt++uXltxEprmWzNfg+MxpfHsZlrddKzZ/hZyWHDbK3/Ap8HJQqYJRXP+jHczdL6q6i85Q==", - "dependencies": { - "ccount": "^1.0.0", - "collapse-white-space": "^1.0.2", - "is-alphabetical": "^1.0.0", - "is-decimal": "^1.0.0", - "is-whitespace-character": "^1.0.0", - "is-word-character": "^1.0.0", - "markdown-escapes": "^1.0.0", - "parse-entities": "^2.0.0", - "repeat-string": "^1.5.4", - "state-toggle": "^1.0.0", - "trim": "0.0.1", - "trim-trailing-lines": "^1.0.0", - "unherit": "^1.0.4", - "unist-util-remove-position": "^2.0.0", - "vfile-location": "^3.0.0", - "xtend": "^4.0.1" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-rehype": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-10.1.0.tgz", - "integrity": "sha512-EFmR5zppdBp0WQeDVZ/b66CWJipB2q2VLNFMabzDSGR66Z2fQii83G5gTBbgGEnEEA0QRussvrFHxk1HWGJskw==", - "dependencies": { - "@types/hast": "^2.0.0", - "@types/mdast": "^3.0.0", - "mdast-util-to-hast": "^12.1.0", - "unified": "^10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-rehype/node_modules/bail": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", - "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/remark-rehype/node_modules/is-plain-obj": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", - "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/remark-rehype/node_modules/mdast-util-definitions": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/mdast-util-definitions/-/mdast-util-definitions-5.1.2.tgz", - "integrity": "sha512-8SVPMuHqlPME/z3gqVwWY4zVXn8lqKv/pAhC57FuJ40ImXyBpmO5ukh98zB2v7Blql2FiHjHv9LVztSIqjY+MA==", - "dependencies": { - "@types/mdast": "^3.0.0", - "@types/unist": "^2.0.0", - "unist-util-visit": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-rehype/node_modules/mdast-util-to-hast": { - "version": "12.3.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-12.3.0.tgz", - "integrity": "sha512-pits93r8PhnIoU4Vy9bjW39M2jJ6/tdHyja9rrot9uujkN7UTU9SDnE6WNJz/IGyQk3XHX6yNNtrBH6cQzm8Hw==", - "dependencies": { - "@types/hast": "^2.0.0", - "@types/mdast": "^3.0.0", - "mdast-util-definitions": "^5.0.0", - "micromark-util-sanitize-uri": "^1.1.0", - "trim-lines": "^3.0.0", - "unist-util-generated": "^2.0.0", - "unist-util-position": "^4.0.0", - "unist-util-visit": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-rehype/node_modules/trough": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/trough/-/trough-2.1.0.tgz", - "integrity": "sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/remark-rehype/node_modules/unified": { - "version": "10.1.2", - "resolved": "https://registry.npmjs.org/unified/-/unified-10.1.2.tgz", - "integrity": "sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==", - "dependencies": { - "@types/unist": "^2.0.0", - "bail": "^2.0.0", - "extend": "^3.0.0", - "is-buffer": "^2.0.0", - "is-plain-obj": "^4.0.0", - "trough": "^2.0.0", - "vfile": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-rehype/node_modules/unist-util-generated": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/unist-util-generated/-/unist-util-generated-2.0.1.tgz", - "integrity": "sha512-qF72kLmPxAw0oN2fwpWIqbXAVyEqUzDHMsbtPvOudIlUzXYFIeQIuxXQCRCFh22B7cixvU0MG7m3MW8FTq/S+A==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-rehype/node_modules/unist-util-is": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", - "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", - "dependencies": { - "@types/unist": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-rehype/node_modules/unist-util-position": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-4.0.4.tgz", - "integrity": "sha512-kUBE91efOWfIVBo8xzh/uZQ7p9ffYRtUbMRZBNFYwf0RK8koUMx6dGUfwylLOKmaT2cs4wSW96QoYUSXAyEtpg==", - "dependencies": { - "@types/unist": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-rehype/node_modules/unist-util-visit": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz", - "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^5.0.0", - "unist-util-visit-parents": "^5.1.1" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-rehype/node_modules/unist-util-visit-parents": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz", - "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-rehype/node_modules/vfile": { - "version": "5.3.7", - "resolved": "https://registry.npmjs.org/vfile/-/vfile-5.3.7.tgz", - "integrity": "sha512-r7qlzkgErKjobAmyNIkkSpizsFPYiUPuJb5pNW1RB4JcYVZhs4lIbVqk8XPk033CV/1z8ss5pkax8SuhGpcG8g==", - "dependencies": { - "@types/unist": "^2.0.0", - "is-buffer": "^2.0.0", - "unist-util-stringify-position": "^3.0.0", - "vfile-message": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-rehype/node_modules/vfile-message": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-3.1.4.tgz", - "integrity": "sha512-fa0Z6P8HUrQN4BZaX05SIVXic+7kE3b05PWAtPuYP9QLHsLKYR7/AlLW3NtOrpXRLeawpDLMsVkmk5DG0NXgWw==", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-stringify-position": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-squeeze-paragraphs": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/remark-squeeze-paragraphs/-/remark-squeeze-paragraphs-4.0.0.tgz", - "integrity": "sha512-8qRqmL9F4nuLPIgl92XUuxI3pFxize+F1H0e/W3llTk0UsjJaj01+RrirkMw7P21RKe4X6goQhYRSvNWX+70Rw==", - "dependencies": { - "mdast-squeeze-paragraphs": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/renderkid": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-3.0.0.tgz", - "integrity": "sha512-q/7VIQA8lmM1hF+jn+sFSPWGlMkSAeNYcPLmDQx2zzuiDfaLrOmumR8iaUKlenFgh0XRPIUeSPlH3A+AW3Z5pg==", - "dependencies": { - "css-select": "^4.1.3", - "dom-converter": "^0.2.0", - "htmlparser2": "^6.1.0", - "lodash": "^4.17.21", - "strip-ansi": "^6.0.1" - } - }, - "node_modules/renderkid/node_modules/css-select": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", - "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", - "dependencies": { - "boolbase": "^1.0.0", - "css-what": "^6.0.1", - "domhandler": "^4.3.1", - "domutils": "^2.8.0", - "nth-check": "^2.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/renderkid/node_modules/dom-serializer": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", - "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", - "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^4.2.0", - "entities": "^2.0.0" - }, - "funding": { - "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" - } - }, - "node_modules/renderkid/node_modules/domhandler": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", - "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", - "dependencies": { - "domelementtype": "^2.2.0" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, - "node_modules/renderkid/node_modules/domutils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", - "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", - "dependencies": { - "dom-serializer": "^1.0.1", - "domelementtype": "^2.2.0", - "domhandler": "^4.2.0" - }, - "funding": { - "url": "https://github.com/fb55/domutils?sponsor=1" - } - }, - "node_modules/renderkid/node_modules/entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/renderkid/node_modules/htmlparser2": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", - "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", - "funding": [ - "https://github.com/fb55/htmlparser2?sponsor=1", - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ], - "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^4.0.0", - "domutils": "^2.5.2", - "entities": "^2.0.0" - } - }, - "node_modules/repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", - "engines": { - "node": ">=0.10" - } - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-like": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/require-like/-/require-like-0.1.2.tgz", - "integrity": "sha512-oyrU88skkMtDdauHDuKVrgR+zuItqr6/c//FXzvmxRGMexSDc6hNvJInGW3LL46n+8b50RykrvwSUIIQH2LQ5A==", - "engines": { - "node": "*" - } - }, - "node_modules/requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" - }, - "node_modules/resolve": { - "version": "1.22.2", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", - "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", - "dependencies": { - "is-core-module": "^2.11.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "engines": { - "node": ">=4" - } - }, - "node_modules/resolve-pathname": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-pathname/-/resolve-pathname-3.0.0.tgz", - "integrity": "sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng==" - }, - "node_modules/responselike": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", - "integrity": "sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ==", - "dependencies": { - "lowercase-keys": "^1.0.0" - } - }, - "node_modules/restore-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", - "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", - "dev": true, - "dependencies": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/restore-cursor/node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/restore-cursor/node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/retry": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", - "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", - "engines": { - "node": ">= 4" - } - }, - "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rfdc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz", - "integrity": "sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==", - "dev": true - }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/rtl-detect": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/rtl-detect/-/rtl-detect-1.0.4.tgz", - "integrity": "sha512-EBR4I2VDSSYr7PkBmFy04uhycIpDKp+21p/jARYXlCSjQksTBQcJ0HFUPOO79EPPH5JS6VAhiIQbycf0O3JAxQ==" - }, - "node_modules/rtlcss": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/rtlcss/-/rtlcss-3.5.0.tgz", - "integrity": "sha512-wzgMaMFHQTnyi9YOwsx9LjOxYXJPzS8sYnFaKm6R5ysvTkwzHiB0vxnbHwchHQT65PTdBjDG21/kQBWI7q9O7A==", - "dependencies": { - "find-up": "^5.0.0", - "picocolors": "^1.0.0", - "postcss": "^8.3.11", - "strip-json-comments": "^3.1.1" - }, - "bin": { - "rtlcss": "bin/rtlcss.js" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/rxjs": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", - "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", - "dependencies": { - "tslib": "^2.1.0" - } - }, - "node_modules/sade": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz", - "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==", - "dependencies": { - "mri": "^1.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/safe-regex-test": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", - "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-regex": "^1.1.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - }, - "node_modules/sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" - }, - "node_modules/scheduler": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", - "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", - "dependencies": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1" - } - }, - "node_modules/schema-utils": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", - "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", - "dependencies": { - "@types/json-schema": "^7.0.5", - "ajv": "^6.12.4", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 8.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/scslre": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/scslre/-/scslre-0.2.0.tgz", - "integrity": "sha512-4hc49fUMmX3jM0XdFUAPBrs1xwEcdHa0KyjEsjFs+Zfc66mpFpq5YmRgDtl+Ffo6AtJIilfei+yKw8fUn3N88w==", - "dev": true, - "dependencies": { - "@eslint-community/regexpp": "^4.5.0", - "refa": "^0.11.0", - "regexp-ast-analysis": "^0.6.0" - } - }, - "node_modules/section-matter": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/section-matter/-/section-matter-1.0.0.tgz", - "integrity": "sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==", - "dependencies": { - "extend-shallow": "^2.0.1", - "kind-of": "^6.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/select-hose": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", - "integrity": "sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==" - }, - "node_modules/selfsigned": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.1.1.tgz", - "integrity": "sha512-GSL3aowiF7wa/WtSFwnUrludWFoNhftq8bUkH9pkzjpN2XSPOAYEgg6e0sS9s0rZwgJzJiQRPU18A6clnoW5wQ==", - "dependencies": { - "node-forge": "^1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/semver-diff": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", - "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", - "dependencies": { - "semver": "^6.3.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/send": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", - "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", - "dependencies": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "2.4.1", - "range-parser": "~1.2.1", - "statuses": "2.0.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/send/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/send/node_modules/debug/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/send/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - }, - "node_modules/send/node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/serialize-javascript": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", - "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", - "dependencies": { - "randombytes": "^2.1.0" - } - }, - "node_modules/serve-handler": { - "version": "6.1.5", - "resolved": "https://registry.npmjs.org/serve-handler/-/serve-handler-6.1.5.tgz", - "integrity": "sha512-ijPFle6Hwe8zfmBxJdE+5fta53fdIY0lHISJvuikXB3VYFafRjMRpOffSPvCYsbKyBA7pvy9oYr/BT1O3EArlg==", - "dependencies": { - "bytes": "3.0.0", - "content-disposition": "0.5.2", - "fast-url-parser": "1.1.3", - "mime-types": "2.1.18", - "minimatch": "3.1.2", - "path-is-inside": "1.0.2", - "path-to-regexp": "2.2.1", - "range-parser": "1.2.0" - } - }, - "node_modules/serve-handler/node_modules/path-to-regexp": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-2.2.1.tgz", - "integrity": "sha512-gu9bD6Ta5bwGrrU8muHzVOBFFREpp2iRkVfhBJahwJ6p6Xw20SjT0MxLnwkjOibQmGSYhiUnf2FLe7k+jcFmGQ==" - }, - "node_modules/serve-index": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", - "integrity": "sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw==", - "dependencies": { - "accepts": "~1.3.4", - "batch": "0.6.1", - "debug": "2.6.9", - "escape-html": "~1.0.3", - "http-errors": "~1.6.2", - "mime-types": "~2.1.17", - "parseurl": "~1.3.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/serve-index/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/serve-index/node_modules/depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/serve-index/node_modules/http-errors": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", - "integrity": "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==", - "dependencies": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.0", - "statuses": ">= 1.4.0 < 2" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/serve-index/node_modules/inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==" - }, - "node_modules/serve-index/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/serve-index/node_modules/setprototypeof": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", - "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" - }, - "node_modules/serve-index/node_modules/statuses": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/serve-static": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", - "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", - "dependencies": { - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.18.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/setimmediate": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==" - }, - "node_modules/setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" - }, - "node_modules/shallow-clone": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", - "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", - "dependencies": { - "kind-of": "^6.0.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shallowequal": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz", - "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==" - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "engines": { - "node": ">=8" - } - }, - "node_modules/shell-quote": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", - "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/shelljs": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", - "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", - "dependencies": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" - }, - "bin": { - "shjs": "bin/shjs" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" - }, - "node_modules/sirv": { - "version": "1.0.19", - "resolved": "https://registry.npmjs.org/sirv/-/sirv-1.0.19.tgz", - "integrity": "sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==", - "dependencies": { - "@polka/url": "^1.0.0-next.20", - "mrmime": "^1.0.0", - "totalist": "^1.0.0" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/sisteransi": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==" - }, - "node_modules/sitemap": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/sitemap/-/sitemap-7.1.1.tgz", - "integrity": "sha512-mK3aFtjz4VdJN0igpIJrinf3EO8U8mxOPsTBzSsy06UtjZQJ3YY3o3Xa7zSc5nMqcMrRwlChHZ18Kxg0caiPBg==", - "dependencies": { - "@types/node": "^17.0.5", - "@types/sax": "^1.2.1", - "arg": "^5.0.0", - "sax": "^1.2.4" - }, - "bin": { - "sitemap": "dist/cli.js" - }, - "engines": { - "node": ">=12.0.0", - "npm": ">=5.6.0" - } - }, - "node_modules/sitemap/node_modules/@types/node": { - "version": "17.0.45", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz", - "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==" - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/slice-ansi": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz", - "integrity": "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^6.0.0", - "is-fullwidth-code-point": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, - "node_modules/slice-ansi/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/sockjs": { - "version": "0.3.24", - "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz", - "integrity": "sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ==", - "dependencies": { - "faye-websocket": "^0.11.3", - "uuid": "^8.3.2", - "websocket-driver": "^0.7.4" - } - }, - "node_modules/sort-css-media-queries": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/sort-css-media-queries/-/sort-css-media-queries-2.1.0.tgz", - "integrity": "sha512-IeWvo8NkNiY2vVYdPa27MCQiR0MN0M80johAYFVxWWXQ44KU84WNxjslwBHmc/7ZL2ccwkM7/e6S5aiKZXm7jA==", - "engines": { - "node": ">= 6.3.0" - } - }, - "node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/space-separated-tokens": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz", - "integrity": "sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/spdx-correct": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", - "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", - "dev": true, - "dependencies": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-exceptions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", - "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", - "dev": true - }, - "node_modules/spdx-expression-parse": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", - "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", - "dev": true, - "dependencies": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-license-ids": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.13.tgz", - "integrity": "sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==", - "dev": true - }, - "node_modules/spdy": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", - "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", - "dependencies": { - "debug": "^4.1.0", - "handle-thing": "^2.0.0", - "http-deceiver": "^1.2.7", - "select-hose": "^2.0.0", - "spdy-transport": "^3.0.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/spdy-transport": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", - "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", - "dependencies": { - "debug": "^4.1.0", - "detect-node": "^2.0.4", - "hpack.js": "^2.1.6", - "obuf": "^1.1.2", - "readable-stream": "^3.0.6", - "wbuf": "^1.7.3" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" - }, - "node_modules/stable": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", - "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", - "deprecated": "Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility" - }, - "node_modules/state-toggle": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/state-toggle/-/state-toggle-1.0.3.tgz", - "integrity": "sha512-d/5Z4/2iiCnHw6Xzghyhb+GcmF89bxwgXG60wjIiZaxnymbyOmI8Hk4VqHXiVVp6u2ysaskFfXg3ekCj4WNftQ==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/std-env": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.3.3.tgz", - "integrity": "sha512-Rz6yejtVyWnVjC1RFvNmYL10kgjC49EOghxWn0RFqlCHGFpQx+Xe7yW3I4ceK1SGrWIGMjD5Kbue8W/udkbMJg==" - }, - "node_modules/stop-iteration-iterator": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz", - "integrity": "sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==", - "dev": true, - "dependencies": { - "internal-slot": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/string-argv": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz", - "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==", - "dev": true, - "engines": { - "node": ">=0.6.19" - } - }, - "node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/string-width/node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/string-width/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/string.prototype.matchall": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz", - "integrity": "sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.3", - "regexp.prototype.flags": "^1.4.3", - "side-channel": "^1.0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trim": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", - "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimend": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", - "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", - "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/stringify-object": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.3.0.tgz", - "integrity": "sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==", - "dependencies": { - "get-own-enumerable-property-symbols": "^3.0.0", - "is-obj": "^1.0.1", - "is-regexp": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-bom-string": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-bom-string/-/strip-bom-string-1.0.0.tgz", - "integrity": "sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/strip-final-newline": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", - "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/strip-indent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", - "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", - "dev": true, - "dependencies": { - "min-indent": "^1.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/style-search": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/style-search/-/style-search-0.1.0.tgz", - "integrity": "sha512-Dj1Okke1C3uKKwQcetra4jSuk0DqbzbYtXipzFlFMZtowbF1x7BKJwB9AayVMyFARvU8EDrZdcax4At/452cAg==", - "dev": true - }, - "node_modules/style-to-object": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-0.3.0.tgz", - "integrity": "sha512-CzFnRRXhzWIdItT3OmF8SQfWyahHhjq3HwcMNCNLn+N7klOOqPjMeG/4JSu77D7ypZdGvSzvkrbyeTMizz2VrA==", - "dependencies": { - "inline-style-parser": "0.1.1" - } - }, - "node_modules/stylehacks": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz", - "integrity": "sha512-sBpcd5Hx7G6seo7b1LkpttvTz7ikD0LlH5RmdcBNb6fFR0Fl7LQwHDFr300q4cwUqi+IYrFGmsIHieMBfnN/Bw==", - "dependencies": { - "browserslist": "^4.21.4", - "postcss-selector-parser": "^6.0.4" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/stylelint": { - "version": "14.16.1", - "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-14.16.1.tgz", - "integrity": "sha512-ErlzR/T3hhbV+a925/gbfc3f3Fep9/bnspMiJPorfGEmcBbXdS+oo6LrVtoUZ/w9fqD6o6k7PtUlCOsCRdjX/A==", - "dev": true, - "dependencies": { - "@csstools/selector-specificity": "^2.0.2", - "balanced-match": "^2.0.0", - "colord": "^2.9.3", - "cosmiconfig": "^7.1.0", - "css-functions-list": "^3.1.0", - "debug": "^4.3.4", - "fast-glob": "^3.2.12", - "fastest-levenshtein": "^1.0.16", - "file-entry-cache": "^6.0.1", - "global-modules": "^2.0.0", - "globby": "^11.1.0", - "globjoin": "^0.1.4", - "html-tags": "^3.2.0", - "ignore": "^5.2.1", - "import-lazy": "^4.0.0", - "imurmurhash": "^0.1.4", - "is-plain-object": "^5.0.0", - "known-css-properties": "^0.26.0", - "mathml-tag-names": "^2.1.3", - "meow": "^9.0.0", - "micromatch": "^4.0.5", - "normalize-path": "^3.0.0", - "picocolors": "^1.0.0", - "postcss": "^8.4.19", - "postcss-media-query-parser": "^0.2.3", - "postcss-resolve-nested-selector": "^0.1.1", - "postcss-safe-parser": "^6.0.0", - "postcss-selector-parser": "^6.0.11", - "postcss-value-parser": "^4.2.0", - "resolve-from": "^5.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1", - "style-search": "^0.1.0", - "supports-hyperlinks": "^2.3.0", - "svg-tags": "^1.0.0", - "table": "^6.8.1", - "v8-compile-cache": "^2.3.0", - "write-file-atomic": "^4.0.2" - }, - "bin": { - "stylelint": "bin/stylelint.js" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/stylelint" - } - }, - "node_modules/stylelint-config-prettier": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/stylelint-config-prettier/-/stylelint-config-prettier-9.0.5.tgz", - "integrity": "sha512-U44lELgLZhbAD/xy/vncZ2Pq8sh2TnpiPvo38Ifg9+zeioR+LAkHu0i6YORIOxFafZoVg0xqQwex6e6F25S5XA==", - "dev": true, - "bin": { - "stylelint-config-prettier": "bin/check.js", - "stylelint-config-prettier-check": "bin/check.js" - }, - "engines": { - "node": ">= 12" - }, - "peerDependencies": { - "stylelint": ">= 11.x < 15" - } - }, - "node_modules/stylelint-config-recommended": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-9.0.0.tgz", - "integrity": "sha512-9YQSrJq4NvvRuTbzDsWX3rrFOzOlYBmZP+o513BJN/yfEmGSr0AxdvrWs0P/ilSpVV/wisamAHu5XSk8Rcf4CQ==", - "dev": true, - "peerDependencies": { - "stylelint": "^14.10.0" - } - }, - "node_modules/stylelint-config-standard": { - "version": "29.0.0", - "resolved": "https://registry.npmjs.org/stylelint-config-standard/-/stylelint-config-standard-29.0.0.tgz", - "integrity": "sha512-uy8tZLbfq6ZrXy4JKu3W+7lYLgRQBxYTUUB88vPgQ+ZzAxdrvcaSUW9hOMNLYBnwH+9Kkj19M2DHdZ4gKwI7tg==", - "dev": true, - "dependencies": { - "stylelint-config-recommended": "^9.0.0" - }, - "peerDependencies": { - "stylelint": "^14.14.0" - } - }, - "node_modules/stylelint/node_modules/balanced-match": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-2.0.0.tgz", - "integrity": "sha512-1ugUSr8BHXRnK23KfuYS+gVMC3LB8QGH9W1iGtDPsNWoQbgtXSExkBu2aDR4epiGWZOjZsj6lDl/N/AqqTC3UA==", - "dev": true - }, - "node_modules/stylelint/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/stylelint/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/stylelint/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/stylelint/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/supports-hyperlinks": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", - "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0", - "supports-color": "^7.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-hyperlinks/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-hyperlinks/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/svg-parser": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/svg-parser/-/svg-parser-2.0.4.tgz", - "integrity": "sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==" - }, - "node_modules/svg-tags": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/svg-tags/-/svg-tags-1.0.0.tgz", - "integrity": "sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==", - "dev": true - }, - "node_modules/svgo": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", - "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", - "dependencies": { - "@trysound/sax": "0.2.0", - "commander": "^7.2.0", - "css-select": "^4.1.3", - "css-tree": "^1.1.3", - "csso": "^4.2.0", - "picocolors": "^1.0.0", - "stable": "^0.1.8" - }, - "bin": { - "svgo": "bin/svgo" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/svgo/node_modules/commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", - "engines": { - "node": ">= 10" - } - }, - "node_modules/svgo/node_modules/css-select": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", - "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", - "dependencies": { - "boolbase": "^1.0.0", - "css-what": "^6.0.1", - "domhandler": "^4.3.1", - "domutils": "^2.8.0", - "nth-check": "^2.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/svgo/node_modules/dom-serializer": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", - "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", - "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^4.2.0", - "entities": "^2.0.0" - }, - "funding": { - "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" - } - }, - "node_modules/svgo/node_modules/domhandler": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", - "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", - "dependencies": { - "domelementtype": "^2.2.0" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, - "node_modules/svgo/node_modules/domutils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", - "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", - "dependencies": { - "dom-serializer": "^1.0.1", - "domelementtype": "^2.2.0", - "domhandler": "^4.2.0" - }, - "funding": { - "url": "https://github.com/fb55/domutils?sponsor=1" - } - }, - "node_modules/svgo/node_modules/entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/table": { - "version": "6.8.1", - "resolved": "https://registry.npmjs.org/table/-/table-6.8.1.tgz", - "integrity": "sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA==", - "dev": true, - "dependencies": { - "ajv": "^8.0.1", - "lodash.truncate": "^4.4.2", - "slice-ansi": "^4.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/table/node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/table/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/table/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/table/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/table/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/table/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/table/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "node_modules/table/node_modules/slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, - "node_modules/table/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tapable": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/terser": { - "version": "5.17.7", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.17.7.tgz", - "integrity": "sha512-/bi0Zm2C6VAexlGgLlVxA0P2lru/sdLyfCVaRMfKVo9nWxbmz7f/sD8VPybPeSUJaJcwmCJis9pBIhcVcG1QcQ==", - "dependencies": { - "@jridgewell/source-map": "^0.3.3", - "acorn": "^8.8.2", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - }, - "bin": { - "terser": "bin/terser" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/terser-webpack-plugin": { - "version": "5.3.9", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", - "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.17", - "jest-worker": "^27.4.5", - "schema-utils": "^3.1.1", - "serialize-javascript": "^6.0.1", - "terser": "^5.16.8" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.1.0" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "esbuild": { - "optional": true - }, - "uglify-js": { - "optional": true - } - } - }, - "node_modules/terser-webpack-plugin/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/terser-webpack-plugin/node_modules/jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/terser-webpack-plugin/node_modules/schema-utils": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", - "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/terser-webpack-plugin/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/terser/node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" - }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==" - }, - "node_modules/through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", - "dev": true - }, - "node_modules/thunky": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", - "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==" - }, - "node_modules/tiny-invariant": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.1.tgz", - "integrity": "sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw==" - }, - "node_modules/tiny-warning": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz", - "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==" - }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "engines": { - "node": ">=4" - } - }, - "node_modules/to-readable-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", - "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==", - "engines": { - "node": ">=6" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "engines": { - "node": ">=0.6" - } - }, - "node_modules/totalist": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/totalist/-/totalist-1.1.0.tgz", - "integrity": "sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==", - "engines": { - "node": ">=6" - } - }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, - "node_modules/trim": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/trim/-/trim-0.0.1.tgz", - "integrity": "sha512-YzQV+TZg4AxpKxaTHK3c3D+kRDCGVEE7LemdlQZoQXn0iennk10RsIoY6ikzAqJTc9Xjl9C1/waHom/J86ziAQ==", - "deprecated": "Use String.prototype.trim() instead" - }, - "node_modules/trim-lines": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", - "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/trim-newlines": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", - "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/trim-trailing-lines": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/trim-trailing-lines/-/trim-trailing-lines-1.1.4.tgz", - "integrity": "sha512-rjUWSqnfTNrjbB9NQWfPMH/xRK1deHeGsHoVfpxJ++XeYXE0d6B1En37AHfw3jtfTU7dzMzZL2jjpe8Qb5gLIQ==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/trough": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/trough/-/trough-1.0.5.tgz", - "integrity": "sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/tsconfig-paths": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", - "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", - "dev": true, - "dependencies": { - "@types/json5": "^0.0.29", - "json5": "^1.0.2", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - } - }, - "node_modules/tsconfig-paths/node_modules/json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dev": true, - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, - "node_modules/tslib": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz", - "integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==" - }, - "node_modules/tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "dependencies": { - "tslib": "^1.8.1" - }, - "engines": { - "node": ">= 6" - }, - "peerDependencies": { - "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" - } - }, - "node_modules/tsutils/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "devOptional": true, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-fest": { - "version": "2.19.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz", - "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==", - "engines": { - "node": ">=12.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "dependencies": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/type-is/node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/type-is/node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/typed-array-length": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", - "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "is-typed-array": "^1.1.9" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "dependencies": { - "is-typedarray": "^1.0.0" - } - }, - "node_modules/typescript": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz", - "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/ua-parser-js": { - "version": "1.0.35", - "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.35.tgz", - "integrity": "sha512-fKnGuqmTBnIE+/KXSzCn4db8RTigUzw1AN0DmdU6hJovUTbYJKyqj+8Mt1c4VfRDnOVJnENmfYkIPZ946UrSAA==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/ua-parser-js" - }, - { - "type": "paypal", - "url": "https://paypal.me/faisalman" - } - ], - "engines": { - "node": "*" - } - }, - "node_modules/unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/unherit": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/unherit/-/unherit-1.1.3.tgz", - "integrity": "sha512-Ft16BJcnapDKp0+J/rqFC3Rrk6Y/Ng4nzsC028k2jdDII/rdZ7Wd3pPT/6+vIIxRagwRc9K0IUX0Ra4fKvw+WQ==", - "dependencies": { - "inherits": "^2.0.0", - "xtend": "^4.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/unicode-canonical-property-names-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", - "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", - "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", - "dependencies": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-value-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", - "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-property-aliases-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", - "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", - "engines": { - "node": ">=4" - } - }, - "node_modules/unified": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/unified/-/unified-9.2.2.tgz", - "integrity": "sha512-Sg7j110mtefBD+qunSLO1lqOEKdrwBFBrR6Qd8f4uwkhWNlbkaqwHse6e7QvD3AP/MNoJdEDLaf8OxYyoWgorQ==", - "dependencies": { - "bail": "^1.0.0", - "extend": "^3.0.0", - "is-buffer": "^2.0.0", - "is-plain-obj": "^2.0.0", - "trough": "^1.0.0", - "vfile": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unified/node_modules/is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", - "engines": { - "node": ">=8" - } - }, - "node_modules/unique-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", - "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", - "dependencies": { - "crypto-random-string": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/unist-builder": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/unist-builder/-/unist-builder-2.0.3.tgz", - "integrity": "sha512-f98yt5pnlMWlzP539tPc4grGMsFaQQlP/vM396b00jngsiINumNmsY8rkXjfoi1c6QaM8nQ3vaGDuoKWbe/1Uw==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-generated": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/unist-util-generated/-/unist-util-generated-1.1.6.tgz", - "integrity": "sha512-cln2Mm1/CZzN5ttGK7vkoGw+RZ8VcUH6BtGbq98DDtRGquAAOXig1mrBQYelOwMXYS8rK+vZDyyojSjp7JX+Lg==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-is": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.1.0.tgz", - "integrity": "sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-position": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-3.1.0.tgz", - "integrity": "sha512-w+PkwCbYSFw8vpgWD0v7zRCl1FpY3fjDSQ3/N/wNd9Ffa4gPi8+4keqt99N3XW6F99t/mUzp2xAhNmfKWp95QA==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-remove": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unist-util-remove/-/unist-util-remove-2.1.0.tgz", - "integrity": "sha512-J8NYPyBm4baYLdCbjmf1bhPu45Cr1MWTm77qd9istEkzWpnN6O9tMsEbB2JhNnBCqGENRqEWomQ+He6au0B27Q==", - "dependencies": { - "unist-util-is": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-remove-position": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/unist-util-remove-position/-/unist-util-remove-position-2.0.1.tgz", - "integrity": "sha512-fDZsLYIe2uT+oGFnuZmy73K6ZxOPG/Qcm+w7jbEjaFcJgbQ6cqjs/eSPzXhsmGpAsWPkqZM9pYjww5QTn3LHMA==", - "dependencies": { - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-stringify-position": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-3.0.3.tgz", - "integrity": "sha512-k5GzIBZ/QatR8N5X2y+drfpWG8IDBzdnVj6OInRNWm1oXrzydiaAT2OQiA8DPRRZyAKb9b6I2a6PxYklZD0gKg==", - "dependencies": { - "@types/unist": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-visit": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.3.tgz", - "integrity": "sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^4.0.0", - "unist-util-visit-parents": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-visit-parents": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz", - "integrity": "sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/universalify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", - "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/update-notifier": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-5.1.0.tgz", - "integrity": "sha512-ItnICHbeMh9GqUy31hFPrD1kcuZ3rpxDZbf4KUDavXwS0bW5m7SLbDQpGX3UYr072cbrF5hFUs3r5tUsPwjfHw==", - "dependencies": { - "boxen": "^5.0.0", - "chalk": "^4.1.0", - "configstore": "^5.0.1", - "has-yarn": "^2.1.0", - "import-lazy": "^2.1.0", - "is-ci": "^2.0.0", - "is-installed-globally": "^0.4.0", - "is-npm": "^5.0.0", - "is-yarn-global": "^0.3.0", - "latest-version": "^5.1.0", - "pupa": "^2.1.1", - "semver": "^7.3.4", - "semver-diff": "^3.1.1", - "xdg-basedir": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/yeoman/update-notifier?sponsor=1" - } - }, - "node_modules/update-notifier/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/update-notifier/node_modules/boxen": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/boxen/-/boxen-5.1.2.tgz", - "integrity": "sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ==", - "dependencies": { - "ansi-align": "^3.0.0", - "camelcase": "^6.2.0", - "chalk": "^4.1.0", - "cli-boxes": "^2.2.1", - "string-width": "^4.2.2", - "type-fest": "^0.20.2", - "widest-line": "^3.1.0", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/update-notifier/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/update-notifier/node_modules/cli-boxes": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", - "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/update-notifier/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/update-notifier/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/update-notifier/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/update-notifier/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/update-notifier/node_modules/import-lazy": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", - "integrity": "sha512-m7ZEHgtw69qOGw+jwxXkHlrlIPdTGkyh66zXZ1ajZbxkDBNjSY/LGbmjc7h0s2ELsUDTAhFr55TrPSSqJGPG0A==", - "engines": { - "node": ">=4" - } - }, - "node_modules/update-notifier/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/update-notifier/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/update-notifier/node_modules/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/update-notifier/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/update-notifier/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/update-notifier/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/update-notifier/node_modules/widest-line": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", - "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", - "dependencies": { - "string-width": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/update-notifier/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/update-notifier/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/uri-js/node_modules/punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/url-loader": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/url-loader/-/url-loader-4.1.1.tgz", - "integrity": "sha512-3BTV812+AVHHOJQO8O5MkWgZ5aosP7GnROJwvzLS9hWDj00lZ6Z0wNak423Lp9PBZN05N+Jk/N5Si8jRAlGyWA==", - "dependencies": { - "loader-utils": "^2.0.0", - "mime-types": "^2.1.27", - "schema-utils": "^3.0.0" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "file-loader": "*", - "webpack": "^4.0.0 || ^5.0.0" - }, - "peerDependenciesMeta": { - "file-loader": { - "optional": true - } - } - }, - "node_modules/url-loader/node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/url-loader/node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/url-loader/node_modules/schema-utils": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", - "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/url-parse-lax": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", - "integrity": "sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ==", - "dependencies": { - "prepend-http": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/use-composed-ref": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/use-composed-ref/-/use-composed-ref-1.3.0.tgz", - "integrity": "sha512-GLMG0Jc/jiKov/3Ulid1wbv3r54K9HlMW29IWcDFPEqFkSO2nS0MuefWgMJpeHQ9YJeXDL3ZUF+P3jdXlZX/cQ==", - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0" - } - }, - "node_modules/use-isomorphic-layout-effect": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.2.tgz", - "integrity": "sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==", - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/use-latest": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/use-latest/-/use-latest-1.2.1.tgz", - "integrity": "sha512-xA+AVm/Wlg3e2P/JiItTziwS7FK92LWrDB0p+hgXloIMuVCeJJ8v6f0eeHyPZaJrM+usM1FkFfbNCrJGs8A/zw==", - "dependencies": { - "use-isomorphic-layout-effect": "^1.1.1" - }, - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/use-sync-external-store": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz", - "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==", - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" - }, - "node_modules/utila": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz", - "integrity": "sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA==" - }, - "node_modules/utility-types": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", - "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==", - "engines": { - "node": ">= 4" - } - }, - "node_modules/utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/uvu": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/uvu/-/uvu-0.5.6.tgz", - "integrity": "sha512-+g8ENReyr8YsOc6fv/NVJs2vFdHBnBNdfE49rshrTzDWOlUx4Gq7KOS2GD8eqhy2j+Ejq29+SbKH8yjkAqXqoA==", - "dependencies": { - "dequal": "^2.0.0", - "diff": "^5.0.0", - "kleur": "^4.0.3", - "sade": "^1.7.3" - }, - "bin": { - "uvu": "bin.js" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/uvu/node_modules/kleur": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", - "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/v8-compile-cache": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", - "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", - "dev": true - }, - "node_modules/validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dev": true, - "dependencies": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "node_modules/value-equal": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/value-equal/-/value-equal-1.0.1.tgz", - "integrity": "sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw==" - }, - "node_modules/vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/vfile": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/vfile/-/vfile-4.2.1.tgz", - "integrity": "sha512-O6AE4OskCG5S1emQ/4gl8zK586RqA3srz3nfK/Viy0UPToBc5Trp9BVFb1u0CjsKrAWwnpr4ifM/KBXPWwJbCA==", - "dependencies": { - "@types/unist": "^2.0.0", - "is-buffer": "^2.0.0", - "unist-util-stringify-position": "^2.0.0", - "vfile-message": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/vfile-location": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-3.2.0.tgz", - "integrity": "sha512-aLEIZKv/oxuCDZ8lkJGhuhztf/BW4M+iHdCwglA/eWc+vtuRFJj8EtgceYFX4LRjOhCAAiNHsKGssC6onJ+jbA==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/vfile-message": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-2.0.4.tgz", - "integrity": "sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ==", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-stringify-position": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/vfile-message/node_modules/unist-util-stringify-position": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz", - "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==", - "dependencies": { - "@types/unist": "^2.0.2" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/vfile/node_modules/unist-util-stringify-position": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz", - "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==", - "dependencies": { - "@types/unist": "^2.0.2" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/wait-on": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/wait-on/-/wait-on-6.0.1.tgz", - "integrity": "sha512-zht+KASY3usTY5u2LgaNqn/Cd8MukxLGjdcZxT2ns5QzDmTFc4XoWBgC+C/na+sMRZTuVygQoMYwdcVjHnYIVw==", - "dependencies": { - "axios": "^0.25.0", - "joi": "^17.6.0", - "lodash": "^4.17.21", - "minimist": "^1.2.5", - "rxjs": "^7.5.4" - }, - "bin": { - "wait-on": "bin/wait-on" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/watchpack": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", - "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", - "dependencies": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/wbuf": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", - "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", - "dependencies": { - "minimalistic-assert": "^1.0.0" - } - }, - "node_modules/web-namespaces": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-1.1.4.tgz", - "integrity": "sha512-wYxSGajtmoP4WxfejAPIr4l0fVh+jeMXZb08wNc0tMg6xsfZXj3cECqIK0G7ZAqUq0PP8WlMDtaOGVBTAWztNw==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - }, - "node_modules/webpack": { - "version": "5.85.1", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.85.1.tgz", - "integrity": "sha512-xTb7MRf4LY8Z5rzn7aIx4TDrwYJrjcHnIfU1TqtyZOoObyuGSpAUwIvVuqq5wPnv7WEgQr8UvO1q/dgoGG4HjA==", - "dependencies": { - "@types/eslint-scope": "^3.7.3", - "@types/estree": "^1.0.0", - "@webassemblyjs/ast": "^1.11.5", - "@webassemblyjs/wasm-edit": "^1.11.5", - "@webassemblyjs/wasm-parser": "^1.11.5", - "acorn": "^8.7.1", - "acorn-import-assertions": "^1.9.0", - "browserslist": "^4.14.5", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.14.1", - "es-module-lexer": "^1.2.1", - "eslint-scope": "5.1.1", - "events": "^3.2.0", - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.9", - "json-parse-even-better-errors": "^2.3.1", - "loader-runner": "^4.2.0", - "mime-types": "^2.1.27", - "neo-async": "^2.6.2", - "schema-utils": "^3.1.2", - "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.3.7", - "watchpack": "^2.4.0", - "webpack-sources": "^3.2.3" - }, - "bin": { - "webpack": "bin/webpack.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependenciesMeta": { - "webpack-cli": { - "optional": true - } - } - }, - "node_modules/webpack-bundle-analyzer": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.9.0.tgz", - "integrity": "sha512-+bXGmO1LyiNx0i9enBu3H8mv42sj/BJWhZNFwjz92tVnBa9J3JMGo2an2IXlEleoDOPn/Hofl5hr/xCpObUDtw==", - "dependencies": { - "@discoveryjs/json-ext": "0.5.7", - "acorn": "^8.0.4", - "acorn-walk": "^8.0.0", - "chalk": "^4.1.0", - "commander": "^7.2.0", - "gzip-size": "^6.0.0", - "lodash": "^4.17.20", - "opener": "^1.5.2", - "sirv": "^1.0.7", - "ws": "^7.3.1" - }, - "bin": { - "webpack-bundle-analyzer": "lib/bin/analyzer.js" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/webpack-bundle-analyzer/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/webpack-bundle-analyzer/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/webpack-bundle-analyzer/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/webpack-bundle-analyzer/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/webpack-bundle-analyzer/node_modules/commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", - "engines": { - "node": ">= 10" - } - }, - "node_modules/webpack-bundle-analyzer/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/webpack-bundle-analyzer/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/webpack-dev-middleware": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz", - "integrity": "sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA==", - "dependencies": { - "colorette": "^2.0.10", - "memfs": "^3.4.3", - "mime-types": "^2.1.31", - "range-parser": "^1.2.1", - "schema-utils": "^4.0.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^4.0.0 || ^5.0.0" - } - }, - "node_modules/webpack-dev-middleware/node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/webpack-dev-middleware/node_modules/ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "dependencies": { - "fast-deep-equal": "^3.1.3" - }, - "peerDependencies": { - "ajv": "^8.8.2" - } - }, - "node_modules/webpack-dev-middleware/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/webpack-dev-middleware/node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/webpack-dev-middleware/node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/webpack-dev-middleware/node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/webpack-dev-middleware/node_modules/schema-utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", - "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/webpack-dev-server": { - "version": "4.15.0", - "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.0.tgz", - "integrity": "sha512-HmNB5QeSl1KpulTBQ8UT4FPrByYyaLxpJoQ0+s7EvUrMc16m0ZS1sgb1XGqzmgCPk0c9y+aaXxn11tbLzuM7NQ==", - "dependencies": { - "@types/bonjour": "^3.5.9", - "@types/connect-history-api-fallback": "^1.3.5", - "@types/express": "^4.17.13", - "@types/serve-index": "^1.9.1", - "@types/serve-static": "^1.13.10", - "@types/sockjs": "^0.3.33", - "@types/ws": "^8.5.1", - "ansi-html-community": "^0.0.8", - "bonjour-service": "^1.0.11", - "chokidar": "^3.5.3", - "colorette": "^2.0.10", - "compression": "^1.7.4", - "connect-history-api-fallback": "^2.0.0", - "default-gateway": "^6.0.3", - "express": "^4.17.3", - "graceful-fs": "^4.2.6", - "html-entities": "^2.3.2", - "http-proxy-middleware": "^2.0.3", - "ipaddr.js": "^2.0.1", - "launch-editor": "^2.6.0", - "open": "^8.0.9", - "p-retry": "^4.5.0", - "rimraf": "^3.0.2", - "schema-utils": "^4.0.0", - "selfsigned": "^2.1.1", - "serve-index": "^1.9.1", - "sockjs": "^0.3.24", - "spdy": "^4.0.2", - "webpack-dev-middleware": "^5.3.1", - "ws": "^8.13.0" - }, - "bin": { - "webpack-dev-server": "bin/webpack-dev-server.js" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^4.37.0 || ^5.0.0" - }, - "peerDependenciesMeta": { - "webpack": { - "optional": true - }, - "webpack-cli": { - "optional": true - } - } - }, - "node_modules/webpack-dev-server/node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/webpack-dev-server/node_modules/ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "dependencies": { - "fast-deep-equal": "^3.1.3" - }, - "peerDependencies": { - "ajv": "^8.8.2" - } - }, - "node_modules/webpack-dev-server/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/webpack-dev-server/node_modules/schema-utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", - "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/webpack-dev-server/node_modules/ws": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", - "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/webpack-merge": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.9.0.tgz", - "integrity": "sha512-6NbRQw4+Sy50vYNTw7EyOn41OZItPiXB8GNv3INSoe3PSFaHJEz3SHTrYVaRm2LilNGnFUzh0FAwqPEmU/CwDg==", - "dependencies": { - "clone-deep": "^4.0.1", - "wildcard": "^2.0.0" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/webpack-sources": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", - "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/webpack/node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/webpack/node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/webpack/node_modules/schema-utils": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", - "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/webpackbar": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/webpackbar/-/webpackbar-5.0.2.tgz", - "integrity": "sha512-BmFJo7veBDgQzfWXl/wwYXr/VFus0614qZ8i9znqcl9fnEdiVkdbi0TedLQ6xAK92HZHDJ0QmyQ0fmuZPAgCYQ==", - "dependencies": { - "chalk": "^4.1.0", - "consola": "^2.15.3", - "pretty-time": "^1.1.0", - "std-env": "^3.0.1" - }, - "engines": { - "node": ">=12" - }, - "peerDependencies": { - "webpack": "3 || 4 || 5" - } - }, - "node_modules/webpackbar/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/webpackbar/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/webpackbar/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/webpackbar/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/webpackbar/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/webpackbar/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/websocket-driver": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", - "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", - "dependencies": { - "http-parser-js": ">=0.5.1", - "safe-buffer": ">=5.1.0", - "websocket-extensions": ">=0.1.1" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/websocket-extensions": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", - "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dev": true, - "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-collection": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", - "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", - "dev": true, - "dependencies": { - "is-map": "^2.0.1", - "is-set": "^2.0.1", - "is-weakmap": "^2.0.1", - "is-weakset": "^2.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-typed-array": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", - "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", - "dev": true, - "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0", - "is-typed-array": "^1.1.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/widest-line": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-4.0.1.tgz", - "integrity": "sha512-o0cyEG0e8GPzT4iGHphIOh0cJOV8fivsXxddQasHPHfoZf1ZexrfeA21w2NaEN1RHE+fXlfISmOE8R9N3u3Qig==", - "dependencies": { - "string-width": "^5.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/wildcard": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", - "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==" - }, - "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "devOptional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" - }, - "node_modules/write-file-atomic": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", - "dev": true, - "dependencies": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", - "engines": { - "node": ">=8.3.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/xdg-basedir": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", - "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/xml-js": { - "version": "1.6.11", - "resolved": "https://registry.npmjs.org/xml-js/-/xml-js-1.6.11.tgz", - "integrity": "sha512-7rVi2KMfwfWFl+GpPg6m80IVMWXLRjO+PxTq7V2CDhoGak0wzYzFgUY2m4XJ47OGdXd8eLE8EmwfAmdjw7lC1g==", - "dependencies": { - "sax": "^1.2.4" - }, - "bin": { - "xml-js": "bin/cli.js" - } - }, - "node_modules/xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "engines": { - "node": ">=0.4" - } - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" - }, - "node_modules/yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", - "engines": { - "node": ">= 6" - } - }, - "node_modules/yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/zwitch": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-1.0.5.tgz", - "integrity": "sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - } - }, - "dependencies": { - "@algolia/autocomplete-core": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/@algolia/autocomplete-core/-/autocomplete-core-1.8.2.tgz", - "integrity": "sha512-mTeshsyFhAqw/ebqNsQpMtbnjr+qVOSKXArEj4K0d7sqc8It1XD0gkASwecm9mF/jlOQ4Z9RNg1HbdA8JPdRwQ==", - "requires": { - "@algolia/autocomplete-shared": "1.8.2" - } - }, - "@algolia/autocomplete-preset-algolia": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/@algolia/autocomplete-preset-algolia/-/autocomplete-preset-algolia-1.8.2.tgz", - "integrity": "sha512-J0oTx4me6ZM9kIKPuL3lyU3aB8DEvpVvR6xWmHVROx5rOYJGQcZsdG4ozxwcOyiiu3qxMkIbzntnV1S1VWD8yA==", - "requires": { - "@algolia/autocomplete-shared": "1.8.2" - } - }, - "@algolia/autocomplete-shared": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/@algolia/autocomplete-shared/-/autocomplete-shared-1.8.2.tgz", - "integrity": "sha512-b6Z/X4MczChMcfhk6kfRmBzPgjoPzuS9KGR4AFsiLulLNRAAqhP+xZTKtMnZGhLuc61I20d5WqlId02AZvcO6g==" - }, - "@algolia/cache-browser-local-storage": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/cache-browser-local-storage/-/cache-browser-local-storage-4.17.1.tgz", - "integrity": "sha512-e91Jpu93X3t3mVdQwF3ZDjSFMFIfzSc+I76G4EX8nl9RYXgqcjframoL05VTjcD2YCsI18RIHAWVCBoCXVZnrw==", - "requires": { - "@algolia/cache-common": "4.17.1" - } - }, - "@algolia/cache-common": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/cache-common/-/cache-common-4.17.1.tgz", - "integrity": "sha512-fvi1WT8aSiGAKrcTw8Qg3RYgcwW8GZMHcqEm4AyDBEy72JZlFBSY80cTQ75MslINjCHXLDT+9EN8AGI9WVY7uA==" - }, - "@algolia/cache-in-memory": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/cache-in-memory/-/cache-in-memory-4.17.1.tgz", - "integrity": "sha512-NbBt6eBWlsXc5geSpfPRC5dkIB/0Ptthw8r0yM5Z7D3sPlYdnTZSO9y9XWXIptRMwmZe4cM8iBMN8y0tzbcBkA==", - "requires": { - "@algolia/cache-common": "4.17.1" - } - }, - "@algolia/client-account": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/client-account/-/client-account-4.17.1.tgz", - "integrity": "sha512-3rL/6ofJvyL+q8TiWM3qoM9tig+SY4gB1Vbsj+UeJPnJm8Khm+7OS+r+mFraqR6pTehYqN8yGYoE7x4diEn4aA==", - "requires": { - "@algolia/client-common": "4.17.1", - "@algolia/client-search": "4.17.1", - "@algolia/transporter": "4.17.1" - } - }, - "@algolia/client-analytics": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/client-analytics/-/client-analytics-4.17.1.tgz", - "integrity": "sha512-Bepr2w249vODqeBtM7i++tPmUsQ9B81aupUGbDWmjA/FX+jzQqOdhW8w1CFO5kWViNKTbz2WBIJ9U3x8hOa4bA==", - "requires": { - "@algolia/client-common": "4.17.1", - "@algolia/client-search": "4.17.1", - "@algolia/requester-common": "4.17.1", - "@algolia/transporter": "4.17.1" - } - }, - "@algolia/client-common": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/client-common/-/client-common-4.17.1.tgz", - "integrity": "sha512-+r7kg4EgbFnGsDnoGSVNtXZO8xvZ0vzf1WAOV7sqV9PMf1bp6cpJP/3IuPrSk4t5w2KVl+pC8jfTM7HcFlfBEQ==", - "requires": { - "@algolia/requester-common": "4.17.1", - "@algolia/transporter": "4.17.1" - } - }, - "@algolia/client-personalization": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/client-personalization/-/client-personalization-4.17.1.tgz", - "integrity": "sha512-gJku9DG/THJpfsSlG/az0a3QIn+VVff9kKh8PG8+7ZfxOHS+C+Y5YSeZVsC+c2cfoKLPo3CuHIiJ/p86erR3bA==", - "requires": { - "@algolia/client-common": "4.17.1", - "@algolia/requester-common": "4.17.1", - "@algolia/transporter": "4.17.1" - } - }, - "@algolia/client-search": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/client-search/-/client-search-4.17.1.tgz", - "integrity": "sha512-Q5YfT5gVkx60PZDQBqp/zH9aUbBdC7HVvxupiHUgnCKqRQsRZjOhLest7AI6FahepuZLBZS62COrO7v+JvKY7w==", - "requires": { - "@algolia/client-common": "4.17.1", - "@algolia/requester-common": "4.17.1", - "@algolia/transporter": "4.17.1" - } - }, - "@algolia/events": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@algolia/events/-/events-4.0.1.tgz", - "integrity": "sha512-FQzvOCgoFXAbf5Y6mYozw2aj5KCJoA3m4heImceldzPSMbdyS4atVjJzXKMsfX3wnZTFYwkkt8/z8UesLHlSBQ==" - }, - "@algolia/logger-common": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/logger-common/-/logger-common-4.17.1.tgz", - "integrity": "sha512-Us28Ot+fLEmX9M96sa65VZ8EyEEzhYPxfhV9aQyKDjfXbUdJlJxKt6wZpoEg9RAPSdO8IjK9nmuW2P8au3rRsg==" - }, - "@algolia/logger-console": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/logger-console/-/logger-console-4.17.1.tgz", - "integrity": "sha512-iKGQTpOjHiE64W3JIOu6dmDvn+AfYIElI9jf/Nt6umRPmP/JI9rK+OHUoW4pKrBtdG0DPd62ppeNXzSnLxY6/g==", - "requires": { - "@algolia/logger-common": "4.17.1" - } - }, - "@algolia/requester-browser-xhr": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/requester-browser-xhr/-/requester-browser-xhr-4.17.1.tgz", - "integrity": "sha512-W5mGfGDsyfVR+r4pUFrYLGBEM18gs38+GNt5PE5uPULy4uVTSnnVSkJkWeRkmLBk9zEZ/Nld8m4zavK6dtEuYg==", - "requires": { - "@algolia/requester-common": "4.17.1" - } - }, - "@algolia/requester-common": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/requester-common/-/requester-common-4.17.1.tgz", - "integrity": "sha512-HggXdjvVFQR0I5l7hM5WdHgQ1tqcRWeyXZz8apQ7zPWZhirmY2E9D6LVhDh/UnWQNEm7nBtM+eMFONJ3bZccIQ==" - }, - "@algolia/requester-node-http": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/requester-node-http/-/requester-node-http-4.17.1.tgz", - "integrity": "sha512-NzFWecXT6d0PPsQY9L+/qoK2deF74OLcpvqCH+Vh3mh+QzPsFafcBExdguAjZsAWDn1R6JEeFW7/fo/p0SE57w==", - "requires": { - "@algolia/requester-common": "4.17.1" - } - }, - "@algolia/transporter": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/@algolia/transporter/-/transporter-4.17.1.tgz", - "integrity": "sha512-ZM+qhX47Vh46mWH8/U9ihvy98HdTYpYQDSlqBD7IbiUbbyoCMke+qmdSX2MGhR2FCcXBSxejsJKKVAfbpaLVgg==", - "requires": { - "@algolia/cache-common": "4.17.1", - "@algolia/logger-common": "4.17.1", - "@algolia/requester-common": "4.17.1" - } - }, - "@ampproject/remapping": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", - "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", - "requires": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "@babel/code-frame": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.21.4.tgz", - "integrity": "sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g==", - "requires": { - "@babel/highlight": "^7.18.6" - } - }, - "@babel/compat-data": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.3.tgz", - "integrity": "sha512-aNtko9OPOwVESUFp3MZfD8Uzxl7JzSeJpd7npIoxCasU37PFbAQRpKglkaKwlHOyeJdrREpo8TW8ldrkYWwvIQ==" - }, - "@babel/core": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.1.tgz", - "integrity": "sha512-Hkqu7J4ynysSXxmAahpN1jjRwVJ+NdpraFLIWflgjpVob3KNyK3/tIUc7Q7szed8WMp0JNa7Qtd1E9Oo22F9gA==", - "requires": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.21.4", - "@babel/generator": "^7.22.0", - "@babel/helper-compilation-targets": "^7.22.1", - "@babel/helper-module-transforms": "^7.22.1", - "@babel/helpers": "^7.22.0", - "@babel/parser": "^7.22.0", - "@babel/template": "^7.21.9", - "@babel/traverse": "^7.22.1", - "@babel/types": "^7.22.0", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.2", - "semver": "^6.3.0" - } - }, - "@babel/eslint-parser": { - "version": "7.21.8", - "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.21.8.tgz", - "integrity": "sha512-HLhI+2q+BP3sf78mFUZNCGc10KEmoUqtUT1OCdMZsN+qr4qFeLUod62/zAnF3jNQstwyasDkZnVXwfK2Bml7MQ==", - "dev": true, - "requires": { - "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", - "eslint-visitor-keys": "^2.1.0", - "semver": "^6.3.0" - } - }, - "@babel/generator": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.3.tgz", - "integrity": "sha512-C17MW4wlk//ES/CJDL51kPNwl+qiBQyN7b9SKyVp11BLGFeSPoVaHrv+MNt8jwQFhQWowW88z1eeBx3pFz9v8A==", - "requires": { - "@babel/types": "^7.22.3", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", - "jsesc": "^2.5.1" - } - }, - "@babel/helper-annotate-as-pure": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", - "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.3.tgz", - "integrity": "sha512-ahEoxgqNoYXm0k22TvOke48i1PkavGu0qGCmcq9ugi6gnmvKNaMjKBSrZTnWUi1CFEeNAUiVba0Wtzm03aSkJg==", - "requires": { - "@babel/types": "^7.22.3" - } - }, - "@babel/helper-compilation-targets": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.1.tgz", - "integrity": "sha512-Rqx13UM3yVB5q0D/KwQ8+SPfX/+Rnsy1Lw1k/UwOC4KC6qrzIQoY3lYnBu5EHKBlEHHcj0M0W8ltPSkD8rqfsQ==", - "requires": { - "@babel/compat-data": "^7.22.0", - "@babel/helper-validator-option": "^7.21.0", - "browserslist": "^4.21.3", - "lru-cache": "^5.1.1", - "semver": "^6.3.0" - } - }, - "@babel/helper-create-class-features-plugin": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.1.tgz", - "integrity": "sha512-SowrZ9BWzYFgzUMwUmowbPSGu6CXL5MSuuCkG3bejahSpSymioPmuLdhPxNOc9MjuNGjy7M/HaXvJ8G82Lywlw==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-environment-visitor": "^7.22.1", - "@babel/helper-function-name": "^7.21.0", - "@babel/helper-member-expression-to-functions": "^7.22.0", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-replace-supers": "^7.22.1", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", - "@babel/helper-split-export-declaration": "^7.18.6", - "semver": "^6.3.0" - } - }, - "@babel/helper-create-regexp-features-plugin": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.1.tgz", - "integrity": "sha512-WWjdnfR3LPIe+0EY8td7WmjhytxXtjKAEpnAxun/hkNiyOaPlvGK+NZaBFIdi9ndYV3Gav7BpFvtUwnaJlwi1w==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "regexpu-core": "^5.3.1", - "semver": "^6.3.0" - } - }, - "@babel/helper-define-polyfill-provider": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.0.tgz", - "integrity": "sha512-RnanLx5ETe6aybRi1cO/edaRH+bNYWaryCEmjDDYyNr4wnSzyOp8T0dWipmqVHKEY3AbVKUom50AKSlj1zmKbg==", - "requires": { - "@babel/helper-compilation-targets": "^7.17.7", - "@babel/helper-plugin-utils": "^7.16.7", - "debug": "^4.1.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.14.2", - "semver": "^6.1.2" - } - }, - "@babel/helper-environment-visitor": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.1.tgz", - "integrity": "sha512-Z2tgopurB/kTbidvzeBrc2To3PUP/9i5MUe+fU6QJCQDyPwSH2oRapkLw3KGECDYSjhQZCNxEvNvZlLw8JjGwA==" - }, - "@babel/helper-function-name": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz", - "integrity": "sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg==", - "requires": { - "@babel/template": "^7.20.7", - "@babel/types": "^7.21.0" - } - }, - "@babel/helper-hoist-variables": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", - "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-member-expression-to-functions": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.22.3.tgz", - "integrity": "sha512-Gl7sK04b/2WOb6OPVeNy9eFKeD3L6++CzL3ykPOWqTn08xgYYK0wz4TUh2feIImDXxcVW3/9WQ1NMKY66/jfZA==", - "requires": { - "@babel/types": "^7.22.3" - } - }, - "@babel/helper-module-imports": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.21.4.tgz", - "integrity": "sha512-orajc5T2PsRYUN3ZryCEFeMDYwyw09c/pZeaQEZPH0MpKzSvn3e0uXsDBu3k03VI+9DBiRo+l22BfKTpKwa/Wg==", - "requires": { - "@babel/types": "^7.21.4" - } - }, - "@babel/helper-module-transforms": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.1.tgz", - "integrity": "sha512-dxAe9E7ySDGbQdCVOY/4+UcD8M9ZFqZcZhSPsPacvCG4M+9lwtDDQfI2EoaSvmf7W/8yCBkGU0m7Pvt1ru3UZw==", - "requires": { - "@babel/helper-environment-visitor": "^7.22.1", - "@babel/helper-module-imports": "^7.21.4", - "@babel/helper-simple-access": "^7.21.5", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/helper-validator-identifier": "^7.19.1", - "@babel/template": "^7.21.9", - "@babel/traverse": "^7.22.1", - "@babel/types": "^7.22.0" - } - }, - "@babel/helper-optimise-call-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz", - "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==", - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-plugin-utils": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.21.5.tgz", - "integrity": "sha512-0WDaIlXKOX/3KfBK/dwP1oQGiPh6rjMkT7HIRv7i5RR2VUMwrx5ZL0dwBkKx7+SW1zwNdgjHd34IMk5ZjTeHVg==" - }, - "@babel/helper-remap-async-to-generator": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz", - "integrity": "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-wrap-function": "^7.18.9", - "@babel/types": "^7.18.9" - } - }, - "@babel/helper-replace-supers": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.1.tgz", - "integrity": "sha512-ut4qrkE4AuSfrwHSps51ekR1ZY/ygrP1tp0WFm8oVq6nzc/hvfV/22JylndIbsf2U2M9LOMwiSddr6y+78j+OQ==", - "requires": { - "@babel/helper-environment-visitor": "^7.22.1", - "@babel/helper-member-expression-to-functions": "^7.22.0", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/template": "^7.21.9", - "@babel/traverse": "^7.22.1", - "@babel/types": "^7.22.0" - } - }, - "@babel/helper-simple-access": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.21.5.tgz", - "integrity": "sha512-ENPDAMC1wAjR0uaCUwliBdiSl1KBJAVnMTzXqi64c2MG8MPR6ii4qf7bSXDqSFbr4W6W028/rf5ivoHop5/mkg==", - "requires": { - "@babel/types": "^7.21.5" - } - }, - "@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz", - "integrity": "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==", - "requires": { - "@babel/types": "^7.20.0" - } - }, - "@babel/helper-split-export-declaration": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", - "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-string-parser": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.21.5.tgz", - "integrity": "sha512-5pTUx3hAJaZIdW99sJ6ZUUgWq/Y+Hja7TowEnLNMm1VivRgZQL3vpBY3qUACVsvw+yQU6+YgfBVmcbLaZtrA1w==" - }, - "@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==" - }, - "@babel/helper-validator-option": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz", - "integrity": "sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==" - }, - "@babel/helper-wrap-function": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.20.5.tgz", - "integrity": "sha512-bYMxIWK5mh+TgXGVqAtnu5Yn1un+v8DDZtqyzKRLUzrh70Eal2O3aZ7aPYiMADO4uKlkzOiRiZ6GX5q3qxvW9Q==", - "requires": { - "@babel/helper-function-name": "^7.19.0", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.20.5", - "@babel/types": "^7.20.5" - } - }, - "@babel/helpers": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.3.tgz", - "integrity": "sha512-jBJ7jWblbgr7r6wYZHMdIqKc73ycaTcCaWRq4/2LpuPHcx7xMlZvpGQkOYc9HeSjn6rcx15CPlgVcBtZ4WZJ2w==", - "requires": { - "@babel/template": "^7.21.9", - "@babel/traverse": "^7.22.1", - "@babel/types": "^7.22.3" - } - }, - "@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", - "requires": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - }, - "@babel/parser": { - "version": "7.22.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.4.tgz", - "integrity": "sha512-VLLsx06XkEYqBtE5YGPwfSGwfrjnyPP5oiGty3S8pQLFDFLaS8VwWSIxkTXpcvr5zeYLE6+MBNl2npl/YnfofA==" - }, - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz", - "integrity": "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.22.3.tgz", - "integrity": "sha512-6r4yRwEnorYByILoDRnEqxtojYKuiIv9FojW2E8GUKo9eWBwbKcd9IiZOZpdyXc64RmyGGyPu3/uAcrz/dq2kQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", - "@babel/plugin-transform-optional-chaining": "^7.22.3" - } - }, - "@babel/plugin-proposal-object-rest-spread": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.12.1.tgz", - "integrity": "sha512-s6SowJIjzlhx8o7lsFx5zmY4At6CTtDvgNQDdPzkBQucle58A6b/TTeEBYtyDgmcXjUTM+vE8YOGHZzzbc/ioA==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.0", - "@babel/plugin-transform-parameters": "^7.12.1" - } - }, - "@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.11.tgz", - "integrity": "sha512-0QZ8qP/3RLDVBwBFoWAwCtgcDZJVwA5LUJRZU8x2YFfKNuFq161wK3cuGrALu5yiPu+vzwTAg/sMWVNeWeNyaw==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-create-class-features-plugin": "^7.21.0", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - } - }, - "@babel/plugin-proposal-unicode-property-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", - "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "requires": { - "@babel/helper-plugin-utils": "^7.12.13" - } - }, - "@babel/plugin-syntax-class-static-block": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", - "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-syntax-dynamic-import": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", - "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-export-namespace-from": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", - "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.3" - } - }, - "@babel/plugin-syntax-import-assertions": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz", - "integrity": "sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.19.0" - } - }, - "@babel/plugin-syntax-import-attributes": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.22.3.tgz", - "integrity": "sha512-i35jZJv6aO7hxEbIWQ41adVfOzjm9dcYDNeWlBMd8p0ZQRtNUCBrmGwZt+H5lb+oOC9a3svp956KP0oWGA1YsA==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-syntax-import-meta": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-jsx": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.21.4.tgz", - "integrity": "sha512-5hewiLct5OKyh6PLKEYaFclcqtIgCb6bmELouxjF6up5q3Sov7rOayW4RwhbaBL0dit8rA80GNfY+UuDp2mBbQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.20.2" - } - }, - "@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-private-property-in-object": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", - "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-syntax-typescript": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.21.4.tgz", - "integrity": "sha512-xz0D39NvhQn4t4RNsHmDnnsaQizIlUkdtYvLs8La1BlfjQ6JEwxkJGeqJMW2tAXx+q6H+WFuUTXNdYVpEya0YA==", - "requires": { - "@babel/helper-plugin-utils": "^7.20.2" - } - }, - "@babel/plugin-syntax-unicode-sets-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", - "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-arrow-functions": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.21.5.tgz", - "integrity": "sha512-wb1mhwGOCaXHDTcsRYMKF9e5bbMgqwxtqa2Y1ifH96dXJPwbuLX9qHy3clhrxVqgMz7nyNXs8VkxdH8UBcjKqA==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-transform-async-generator-functions": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.22.3.tgz", - "integrity": "sha512-36A4Aq48t66btydbZd5Fk0/xJqbpg/v4QWI4AH4cYHBXy9Mu42UOupZpebKFiCFNT9S9rJFcsld0gsv0ayLjtA==", - "requires": { - "@babel/helper-environment-visitor": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-remap-async-to-generator": "^7.18.9", - "@babel/plugin-syntax-async-generators": "^7.8.4" - } - }, - "@babel/plugin-transform-async-to-generator": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.20.7.tgz", - "integrity": "sha512-Uo5gwHPT9vgnSXQxqGtpdufUiWp96gk7yiP4Mp5bm1QMkEmLXBO7PAGYbKoJ6DhAwiNkcHFBol/x5zZZkL/t0Q==", - "requires": { - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-remap-async-to-generator": "^7.18.9" - } - }, - "@babel/plugin-transform-block-scoped-functions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz", - "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-block-scoping": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.21.0.tgz", - "integrity": "sha512-Mdrbunoh9SxwFZapeHVrwFmri16+oYotcZysSzhNIVDwIAb1UV+kvnxULSYq9J3/q5MDG+4X6w8QVgD1zhBXNQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.20.2" - } - }, - "@babel/plugin-transform-class-properties": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.22.3.tgz", - "integrity": "sha512-mASLsd6rhOrLZ5F3WbCxkzl67mmOnqik0zrg5W6D/X0QMW7HtvnoL1dRARLKIbMP3vXwkwziuLesPqWVGIl6Bw==", - "requires": { - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-transform-class-static-block": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.22.3.tgz", - "integrity": "sha512-5BirgNWNOx7cwbTJCOmKFJ1pZjwk5MUfMIwiBBvsirCJMZeQgs5pk6i1OlkVg+1Vef5LfBahFOrdCnAWvkVKMw==", - "requires": { - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-class-static-block": "^7.14.5" - } - }, - "@babel/plugin-transform-classes": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.21.0.tgz", - "integrity": "sha512-RZhbYTCEUAe6ntPehC4hlslPWosNHDox+vAs4On/mCLRLfoDVHf6hVEd7kuxr1RnHwJmxFfUM3cZiZRmPxJPXQ==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-compilation-targets": "^7.20.7", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.21.0", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-replace-supers": "^7.20.7", - "@babel/helper-split-export-declaration": "^7.18.6", - "globals": "^11.1.0" - } - }, - "@babel/plugin-transform-computed-properties": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.21.5.tgz", - "integrity": "sha512-TR653Ki3pAwxBxUe8srfF3e4Pe3FTA46uaNHYyQwIoM4oWKSoOZiDNyHJ0oIoDIUPSRQbQG7jzgVBX3FPVne1Q==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/template": "^7.20.7" - } - }, - "@babel/plugin-transform-destructuring": { - "version": "7.21.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.21.3.tgz", - "integrity": "sha512-bp6hwMFzuiE4HqYEyoGJ/V2LeIWn+hLVKc4pnj++E5XQptwhtcGmSayM029d/j2X1bPKGTlsyPwAubuU22KhMA==", - "requires": { - "@babel/helper-plugin-utils": "^7.20.2" - } - }, - "@babel/plugin-transform-dotall-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz", - "integrity": "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==", - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-duplicate-keys": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz", - "integrity": "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.9" - } - }, - "@babel/plugin-transform-dynamic-import": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.22.1.tgz", - "integrity": "sha512-rlhWtONnVBPdmt+jeewS0qSnMz/3yLFrqAP8hHC6EDcrYRSyuz9f9yQhHvVn2Ad6+yO9fHXac5piudeYrInxwQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3" - } - }, - "@babel/plugin-transform-exponentiation-operator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz", - "integrity": "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==", - "requires": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-export-namespace-from": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.22.3.tgz", - "integrity": "sha512-5Ti1cHLTDnt3vX61P9KZ5IG09bFXp4cDVFJIAeCZuxu9OXXJJZp5iP0n/rzM2+iAutJY+KWEyyHcRaHlpQ/P5g==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3" - } - }, - "@babel/plugin-transform-for-of": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.21.5.tgz", - "integrity": "sha512-nYWpjKW/7j/I/mZkGVgHJXh4bA1sfdFnJoOXwJuj4m3Q2EraO/8ZyrkCau9P5tbHQk01RMSt6KYLCsW7730SXQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-transform-function-name": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz", - "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==", - "requires": { - "@babel/helper-compilation-targets": "^7.18.9", - "@babel/helper-function-name": "^7.18.9", - "@babel/helper-plugin-utils": "^7.18.9" - } - }, - "@babel/plugin-transform-json-strings": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.22.3.tgz", - "integrity": "sha512-IuvOMdeOOY2X4hRNAT6kwbePtK21BUyrAEgLKviL8pL6AEEVUVcqtRdN/HJXBLGIbt9T3ETmXRnFedRRmQNTYw==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-json-strings": "^7.8.3" - } - }, - "@babel/plugin-transform-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz", - "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.9" - } - }, - "@babel/plugin-transform-logical-assignment-operators": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.22.3.tgz", - "integrity": "sha512-CbayIfOw4av2v/HYZEsH+Klks3NC2/MFIR3QR8gnpGNNPEaq2fdlVCRYG/paKs7/5hvBLQ+H70pGWOHtlNEWNA==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" - } - }, - "@babel/plugin-transform-member-expression-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz", - "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-modules-amd": { - "version": "7.20.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.20.11.tgz", - "integrity": "sha512-NuzCt5IIYOW0O30UvqktzHYR2ud5bOWbY0yaxWZ6G+aFzOMJvrs5YHNikrbdaT15+KNO31nPOy5Fim3ku6Zb5g==", - "requires": { - "@babel/helper-module-transforms": "^7.20.11", - "@babel/helper-plugin-utils": "^7.20.2" - } - }, - "@babel/plugin-transform-modules-commonjs": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.21.5.tgz", - "integrity": "sha512-OVryBEgKUbtqMoB7eG2rs6UFexJi6Zj6FDXx+esBLPTCxCNxAY9o+8Di7IsUGJ+AVhp5ncK0fxWUBd0/1gPhrQ==", - "requires": { - "@babel/helper-module-transforms": "^7.21.5", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-simple-access": "^7.21.5" - } - }, - "@babel/plugin-transform-modules-systemjs": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.22.3.tgz", - "integrity": "sha512-V21W3bKLxO3ZjcBJZ8biSvo5gQ85uIXW2vJfh7JSWf/4SLUSr1tOoHX3ruN4+Oqa2m+BKfsxTR1I+PsvkIWvNw==", - "requires": { - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-module-transforms": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-validator-identifier": "^7.19.1" - } - }, - "@babel/plugin-transform-modules-umd": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz", - "integrity": "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==", - "requires": { - "@babel/helper-module-transforms": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.3.tgz", - "integrity": "sha512-c6HrD/LpUdNNJsISQZpds3TXvfYIAbo+efE9aWmY/PmSRD0agrJ9cPMt4BmArwUQ7ZymEWTFjTyp+yReLJZh0Q==", - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-transform-new-target": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.22.3.tgz", - "integrity": "sha512-5RuJdSo89wKdkRTqtM9RVVJzHum9c2s0te9rB7vZC1zKKxcioWIy+xcu4OoIAjyFZhb/bp5KkunuLin1q7Ct+w==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-transform-nullish-coalescing-operator": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.22.3.tgz", - "integrity": "sha512-CpaoNp16nX7ROtLONNuCyenYdY/l7ZsR6aoVa7rW7nMWisoNoQNIH5Iay/4LDyRjKMuElMqXiBoOQCDLTMGZiw==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" - } - }, - "@babel/plugin-transform-numeric-separator": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.22.3.tgz", - "integrity": "sha512-+AF88fPDJrnseMh5vD9+SH6wq4ZMvpiTMHh58uLs+giMEyASFVhcT3NkoyO+NebFCNnpHJEq5AXO2txV4AGPDQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-numeric-separator": "^7.10.4" - } - }, - "@babel/plugin-transform-object-rest-spread": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.22.3.tgz", - "integrity": "sha512-38bzTsqMMCI46/TQnJwPPpy33EjLCc1Gsm2hRTF6zTMWnKsN61vdrpuzIEGQyKEhDSYDKyZHrrd5FMj4gcUHhw==", - "requires": { - "@babel/compat-data": "^7.22.3", - "@babel/helper-compilation-targets": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.22.3" - } - }, - "@babel/plugin-transform-object-super": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz", - "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/helper-replace-supers": "^7.18.6" - } - }, - "@babel/plugin-transform-optional-catch-binding": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.22.3.tgz", - "integrity": "sha512-bnDFWXFzWY0BsOyqaoSXvMQ2F35zutQipugog/rqotL2S4ciFOKlRYUu9djt4iq09oh2/34hqfRR2k1dIvuu4g==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" - } - }, - "@babel/plugin-transform-optional-chaining": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.22.3.tgz", - "integrity": "sha512-63v3/UFFxhPKT8j8u1jTTGVyITxl7/7AfOqK8C5gz1rHURPUGe3y5mvIf68eYKGoBNahtJnTxBKug4BQOnzeJg==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", - "@babel/plugin-syntax-optional-chaining": "^7.8.3" - } - }, - "@babel/plugin-transform-parameters": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.3.tgz", - "integrity": "sha512-x7QHQJHPuD9VmfpzboyGJ5aHEr9r7DsAsdxdhJiTB3J3j8dyl+NFZ+rX5Q2RWFDCs61c06qBfS4ys2QYn8UkMw==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-transform-private-methods": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.22.3.tgz", - "integrity": "sha512-fC7jtjBPFqhqpPAE+O4LKwnLq7gGkD3ZmC2E3i4qWH34mH3gOg2Xrq5YMHUq6DM30xhqM1DNftiRaSqVjEG+ug==", - "requires": { - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-transform-private-property-in-object": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.22.3.tgz", - "integrity": "sha512-C7MMl4qWLpgVCbXfj3UW8rR1xeCnisQ0cU7YJHV//8oNBS0aCIVg1vFnZXxOckHhEpQyqNNkWmvSEWnMLlc+Vw==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - } - }, - "@babel/plugin-transform-property-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz", - "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-react-constant-elements": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.22.3.tgz", - "integrity": "sha512-b5J6muxQYp4H7loAQv/c7GO5cPuRA6H5hx4gO+/Hn+Cu9MRQU0PNiUoWq1L//8sq6kFSNxGXFb2XTaUfa9y+Pg==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-transform-react-display-name": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz", - "integrity": "sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-react-jsx": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.22.3.tgz", - "integrity": "sha512-JEulRWG2f04a7L8VWaOngWiK6p+JOSpB+DAtwfJgOaej1qdbNxqtK7MwTBHjUA10NeFcszlFNqCdbRcirzh2uQ==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-module-imports": "^7.21.4", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-jsx": "^7.21.4", - "@babel/types": "^7.22.3" - } - }, - "@babel/plugin-transform-react-jsx-development": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz", - "integrity": "sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==", - "requires": { - "@babel/plugin-transform-react-jsx": "^7.18.6" - } - }, - "@babel/plugin-transform-react-pure-annotations": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz", - "integrity": "sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-regenerator": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.21.5.tgz", - "integrity": "sha512-ZoYBKDb6LyMi5yCsByQ5jmXsHAQDDYeexT1Szvlmui+lADvfSecr5Dxd/PkrTC3pAD182Fcju1VQkB4oCp9M+w==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "regenerator-transform": "^0.15.1" - } - }, - "@babel/plugin-transform-reserved-words": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz", - "integrity": "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-runtime": { - "version": "7.22.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.22.4.tgz", - "integrity": "sha512-Urkiz1m4zqiRo17klj+l3nXgiRTFQng91Bc1eiLF7BMQu1e7wE5Gcq9xSv062IF068NHjcutSbIMev60gXxAvA==", - "requires": { - "@babel/helper-module-imports": "^7.21.4", - "@babel/helper-plugin-utils": "^7.21.5", - "babel-plugin-polyfill-corejs2": "^0.4.3", - "babel-plugin-polyfill-corejs3": "^0.8.1", - "babel-plugin-polyfill-regenerator": "^0.5.0", - "semver": "^6.3.0" - } - }, - "@babel/plugin-transform-shorthand-properties": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz", - "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-spread": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.20.7.tgz", - "integrity": "sha512-ewBbHQ+1U/VnH1fxltbJqDeWBU1oNLG8Dj11uIv3xVf7nrQu0bPGe5Rf716r7K5Qz+SqtAOVswoVunoiBtGhxw==", - "requires": { - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0" - } - }, - "@babel/plugin-transform-sticky-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz", - "integrity": "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-template-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz", - "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.9" - } - }, - "@babel/plugin-transform-typeof-symbol": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz", - "integrity": "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.9" - } - }, - "@babel/plugin-transform-typescript": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.22.3.tgz", - "integrity": "sha512-pyjnCIniO5PNaEuGxT28h0HbMru3qCVrMqVgVOz/krComdIrY9W6FCLBq9NWHY8HDGaUlan+UhmZElDENIfCcw==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-typescript": "^7.21.4" - } - }, - "@babel/plugin-transform-unicode-escapes": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.21.5.tgz", - "integrity": "sha512-LYm/gTOwZqsYohlvFUe/8Tujz75LqqVC2w+2qPHLR+WyWHGCZPN1KBpJCJn+4Bk4gOkQy/IXKIge6az5MqwlOg==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-transform-unicode-property-regex": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.22.3.tgz", - "integrity": "sha512-5ScJ+OmdX+O6HRuMGW4kv7RL9vIKdtdAj9wuWUKy1wbHY3jaM/UlyIiC1G7J6UJiiyMukjjK0QwL3P0vBd0yYg==", - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-transform-unicode-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz", - "integrity": "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==", - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-unicode-sets-regex": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.22.3.tgz", - "integrity": "sha512-hNufLdkF8vqywRp+P55j4FHXqAX2LRUccoZHH7AFn1pq5ZOO2ISKW9w13bFZVjBoTqeve2HOgoJCcaziJVhGNw==", - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/preset-env": { - "version": "7.22.4", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.22.4.tgz", - "integrity": "sha512-c3lHOjbwBv0TkhYCr+XCR6wKcSZ1QbQTVdSkZUaVpLv8CVWotBMArWUi5UAJrcrQaEnleVkkvaV8F/pmc/STZQ==", - "requires": { - "@babel/compat-data": "^7.22.3", - "@babel/helper-compilation-targets": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-validator-option": "^7.21.0", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.18.6", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.22.3", - "@babel/plugin-proposal-private-property-in-object": "^7.21.0", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3", - "@babel/plugin-syntax-import-assertions": "^7.20.0", - "@babel/plugin-syntax-import-attributes": "^7.22.3", - "@babel/plugin-syntax-import-meta": "^7.10.4", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5", - "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", - "@babel/plugin-transform-arrow-functions": "^7.21.5", - "@babel/plugin-transform-async-generator-functions": "^7.22.3", - "@babel/plugin-transform-async-to-generator": "^7.20.7", - "@babel/plugin-transform-block-scoped-functions": "^7.18.6", - "@babel/plugin-transform-block-scoping": "^7.21.0", - "@babel/plugin-transform-class-properties": "^7.22.3", - "@babel/plugin-transform-class-static-block": "^7.22.3", - "@babel/plugin-transform-classes": "^7.21.0", - "@babel/plugin-transform-computed-properties": "^7.21.5", - "@babel/plugin-transform-destructuring": "^7.21.3", - "@babel/plugin-transform-dotall-regex": "^7.18.6", - "@babel/plugin-transform-duplicate-keys": "^7.18.9", - "@babel/plugin-transform-dynamic-import": "^7.22.1", - "@babel/plugin-transform-exponentiation-operator": "^7.18.6", - "@babel/plugin-transform-export-namespace-from": "^7.22.3", - "@babel/plugin-transform-for-of": "^7.21.5", - "@babel/plugin-transform-function-name": "^7.18.9", - "@babel/plugin-transform-json-strings": "^7.22.3", - "@babel/plugin-transform-literals": "^7.18.9", - "@babel/plugin-transform-logical-assignment-operators": "^7.22.3", - "@babel/plugin-transform-member-expression-literals": "^7.18.6", - "@babel/plugin-transform-modules-amd": "^7.20.11", - "@babel/plugin-transform-modules-commonjs": "^7.21.5", - "@babel/plugin-transform-modules-systemjs": "^7.22.3", - "@babel/plugin-transform-modules-umd": "^7.18.6", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.3", - "@babel/plugin-transform-new-target": "^7.22.3", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.3", - "@babel/plugin-transform-numeric-separator": "^7.22.3", - "@babel/plugin-transform-object-rest-spread": "^7.22.3", - "@babel/plugin-transform-object-super": "^7.18.6", - "@babel/plugin-transform-optional-catch-binding": "^7.22.3", - "@babel/plugin-transform-optional-chaining": "^7.22.3", - "@babel/plugin-transform-parameters": "^7.22.3", - "@babel/plugin-transform-private-methods": "^7.22.3", - "@babel/plugin-transform-private-property-in-object": "^7.22.3", - "@babel/plugin-transform-property-literals": "^7.18.6", - "@babel/plugin-transform-regenerator": "^7.21.5", - "@babel/plugin-transform-reserved-words": "^7.18.6", - "@babel/plugin-transform-shorthand-properties": "^7.18.6", - "@babel/plugin-transform-spread": "^7.20.7", - "@babel/plugin-transform-sticky-regex": "^7.18.6", - "@babel/plugin-transform-template-literals": "^7.18.9", - "@babel/plugin-transform-typeof-symbol": "^7.18.9", - "@babel/plugin-transform-unicode-escapes": "^7.21.5", - "@babel/plugin-transform-unicode-property-regex": "^7.22.3", - "@babel/plugin-transform-unicode-regex": "^7.18.6", - "@babel/plugin-transform-unicode-sets-regex": "^7.22.3", - "@babel/preset-modules": "^0.1.5", - "@babel/types": "^7.22.4", - "babel-plugin-polyfill-corejs2": "^0.4.3", - "babel-plugin-polyfill-corejs3": "^0.8.1", - "babel-plugin-polyfill-regenerator": "^0.5.0", - "core-js-compat": "^3.30.2", - "semver": "^6.3.0" - } - }, - "@babel/preset-modules": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", - "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", - "@babel/plugin-transform-dotall-regex": "^7.4.4", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - } - }, - "@babel/preset-react": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.22.3.tgz", - "integrity": "sha512-lxDz1mnZ9polqClBCVBjIVUypoB4qV3/tZUDb/IlYbW1kiiLaXaX+bInbRjl+lNQ/iUZraQ3+S8daEmoELMWug==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-validator-option": "^7.21.0", - "@babel/plugin-transform-react-display-name": "^7.18.6", - "@babel/plugin-transform-react-jsx": "^7.22.3", - "@babel/plugin-transform-react-jsx-development": "^7.18.6", - "@babel/plugin-transform-react-pure-annotations": "^7.18.6" - } - }, - "@babel/preset-typescript": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.21.5.tgz", - "integrity": "sha512-iqe3sETat5EOrORXiQ6rWfoOg2y68Cs75B9wNxdPW4kixJxh7aXQE1KPdWLDniC24T/6dSnguF33W9j/ZZQcmA==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-validator-option": "^7.21.0", - "@babel/plugin-syntax-jsx": "^7.21.4", - "@babel/plugin-transform-modules-commonjs": "^7.21.5", - "@babel/plugin-transform-typescript": "^7.21.3" - } - }, - "@babel/regjsgen": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", - "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==" - }, - "@babel/runtime": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.3.tgz", - "integrity": "sha512-XsDuspWKLUsxwCp6r7EhsExHtYfbe5oAGQ19kqngTdCPUoPQzOPdUbD/pB9PJiwb2ptYKQDjSJT3R6dC+EPqfQ==", - "requires": { - "regenerator-runtime": "^0.13.11" - } - }, - "@babel/runtime-corejs3": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.22.3.tgz", - "integrity": "sha512-6bdmknScYKmt8I9VjsJuKKGr+TwUb555FTf6tT1P/ANlCjTHCiYLhiQ4X/O7J731w5NOqu8c1aYHEVuOwPz7jA==", - "requires": { - "core-js-pure": "^3.30.2", - "regenerator-runtime": "^0.13.11" - } - }, - "@babel/template": { - "version": "7.21.9", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.21.9.tgz", - "integrity": "sha512-MK0X5k8NKOuWRamiEfc3KEJiHMTkGZNUjzMipqCGDDc6ijRl/B7RGSKVGncu4Ro/HdyzzY6cmoXuKI2Gffk7vQ==", - "requires": { - "@babel/code-frame": "^7.21.4", - "@babel/parser": "^7.21.9", - "@babel/types": "^7.21.5" - } - }, - "@babel/traverse": { - "version": "7.22.4", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.4.tgz", - "integrity": "sha512-Tn1pDsjIcI+JcLKq1AVlZEr4226gpuAQTsLMorsYg9tuS/kG7nuwwJ4AB8jfQuEgb/COBwR/DqJxmoiYFu5/rQ==", - "requires": { - "@babel/code-frame": "^7.21.4", - "@babel/generator": "^7.22.3", - "@babel/helper-environment-visitor": "^7.22.1", - "@babel/helper-function-name": "^7.21.0", - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/parser": "^7.22.4", - "@babel/types": "^7.22.4", - "debug": "^4.1.0", - "globals": "^11.1.0" - } - }, - "@babel/types": { - "version": "7.22.4", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.4.tgz", - "integrity": "sha512-Tx9x3UBHTTsMSW85WB2kphxYQVvrZ/t1FxD88IpSgIjiUJlCm9z+xWIDwyo1vffTwSqteqyznB8ZE9vYYk16zA==", - "requires": { - "@babel/helper-string-parser": "^7.21.5", - "@babel/helper-validator-identifier": "^7.19.1", - "to-fast-properties": "^2.0.0" - } - }, - "@colors/colors": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", - "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", - "optional": true - }, - "@csstools/selector-specificity": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-2.2.0.tgz", - "integrity": "sha512-+OJ9konv95ClSTOJCmMZqpd5+YGsB2S+x6w3E1oaM8UuR5j8nTNHYSz8c9BEPGDOCMQYIEEGlVPj/VY64iTbGw==", - "dev": true, - "requires": {} - }, - "@discoveryjs/json-ext": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", - "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==" - }, - "@docsearch/css": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/@docsearch/css/-/css-3.4.0.tgz", - "integrity": "sha512-Hg8Xfma+rFwRi6Y/pfei4FJoQ1hdVURmmNs/XPoMTCPAImU+d5yxj+M+qdLtNjWRpfWziU4dQcqY94xgFBn2dg==" - }, - "@docsearch/react": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/@docsearch/react/-/react-3.4.0.tgz", - "integrity": "sha512-ufrp5879XYGojgS30ZAp8H4qIMbahRHB9M85VDBP36Xgz5QjYM54i1URKj5e219F7gqTtOivfztFTij6itc0MQ==", - "requires": { - "@algolia/autocomplete-core": "1.8.2", - "@algolia/autocomplete-preset-algolia": "1.8.2", - "@docsearch/css": "3.4.0", - "algoliasearch": "^4.0.0" - } - }, - "@docusaurus/core": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/core/-/core-2.4.1.tgz", - "integrity": "sha512-SNsY7PshK3Ri7vtsLXVeAJGS50nJN3RgF836zkyUfAD01Fq+sAk5EwWgLw+nnm5KVNGDu7PRR2kRGDsWvqpo0g==", - "requires": { - "@babel/core": "^7.18.6", - "@babel/generator": "^7.18.7", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-transform-runtime": "^7.18.6", - "@babel/preset-env": "^7.18.6", - "@babel/preset-react": "^7.18.6", - "@babel/preset-typescript": "^7.18.6", - "@babel/runtime": "^7.18.6", - "@babel/runtime-corejs3": "^7.18.6", - "@babel/traverse": "^7.18.8", - "@docusaurus/cssnano-preset": "2.4.1", - "@docusaurus/logger": "2.4.1", - "@docusaurus/mdx-loader": "2.4.1", - "@docusaurus/react-loadable": "5.5.2", - "@docusaurus/utils": "2.4.1", - "@docusaurus/utils-common": "2.4.1", - "@docusaurus/utils-validation": "2.4.1", - "@slorber/static-site-generator-webpack-plugin": "^4.0.7", - "@svgr/webpack": "^6.2.1", - "autoprefixer": "^10.4.7", - "babel-loader": "^8.2.5", - "babel-plugin-dynamic-import-node": "^2.3.3", - "boxen": "^6.2.1", - "chalk": "^4.1.2", - "chokidar": "^3.5.3", - "clean-css": "^5.3.0", - "cli-table3": "^0.6.2", - "combine-promises": "^1.1.0", - "commander": "^5.1.0", - "copy-webpack-plugin": "^11.0.0", - "core-js": "^3.23.3", - "css-loader": "^6.7.1", - "css-minimizer-webpack-plugin": "^4.0.0", - "cssnano": "^5.1.12", - "del": "^6.1.1", - "detect-port": "^1.3.0", - "escape-html": "^1.0.3", - "eta": "^2.0.0", - "file-loader": "^6.2.0", - "fs-extra": "^10.1.0", - "html-minifier-terser": "^6.1.0", - "html-tags": "^3.2.0", - "html-webpack-plugin": "^5.5.0", - "import-fresh": "^3.3.0", - "leven": "^3.1.0", - "lodash": "^4.17.21", - "mini-css-extract-plugin": "^2.6.1", - "postcss": "^8.4.14", - "postcss-loader": "^7.0.0", - "prompts": "^2.4.2", - "react-dev-utils": "^12.0.1", - "react-helmet-async": "^1.3.0", - "react-loadable": "npm:@docusaurus/react-loadable@5.5.2", - "react-loadable-ssr-addon-v5-slorber": "^1.0.1", - "react-router": "^5.3.3", - "react-router-config": "^5.1.1", - "react-router-dom": "^5.3.3", - "rtl-detect": "^1.0.4", - "semver": "^7.3.7", - "serve-handler": "^6.1.3", - "shelljs": "^0.8.5", - "terser-webpack-plugin": "^5.3.3", - "tslib": "^2.4.0", - "update-notifier": "^5.1.0", - "url-loader": "^4.1.1", - "wait-on": "^6.0.1", - "webpack": "^5.73.0", - "webpack-bundle-analyzer": "^4.5.0", - "webpack-dev-server": "^4.9.3", - "webpack-merge": "^5.8.0", - "webpackbar": "^5.0.2" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "requires": { - "yallist": "^4.0.0" - } - }, - "semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", - "requires": { - "lru-cache": "^6.0.0" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - } - } - }, - "@docusaurus/cssnano-preset": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/cssnano-preset/-/cssnano-preset-2.4.1.tgz", - "integrity": "sha512-ka+vqXwtcW1NbXxWsh6yA1Ckii1klY9E53cJ4O9J09nkMBgrNX3iEFED1fWdv8wf4mJjvGi5RLZ2p9hJNjsLyQ==", - "requires": { - "cssnano-preset-advanced": "^5.3.8", - "postcss": "^8.4.14", - "postcss-sort-media-queries": "^4.2.1", - "tslib": "^2.4.0" - } - }, - "@docusaurus/eslint-plugin": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/eslint-plugin/-/eslint-plugin-2.4.1.tgz", - "integrity": "sha512-Sb+aLgf07v2xenPHlcBtvADFkE6xi1Nx9cKNb98Tq5MGoywHpxUfwT3RHar+eA8vCjR3fu0npSzuRt26AJa5lw==", - "dev": true, - "requires": { - "@typescript-eslint/utils": "^5.30.5", - "tslib": "^2.4.0" - } - }, - "@docusaurus/logger": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/logger/-/logger-2.4.1.tgz", - "integrity": "sha512-5h5ysIIWYIDHyTVd8BjheZmQZmEgWDR54aQ1BX9pjFfpyzFo5puKXKYrYJXbjEHGyVhEzmB9UXwbxGfaZhOjcg==", - "requires": { - "chalk": "^4.1.2", - "tslib": "^2.4.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "@docusaurus/mdx-loader": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/mdx-loader/-/mdx-loader-2.4.1.tgz", - "integrity": "sha512-4KhUhEavteIAmbBj7LVFnrVYDiU51H5YWW1zY6SmBSte/YLhDutztLTBE0PQl1Grux1jzUJeaSvAzHpTn6JJDQ==", - "requires": { - "@babel/parser": "^7.18.8", - "@babel/traverse": "^7.18.8", - "@docusaurus/logger": "2.4.1", - "@docusaurus/utils": "2.4.1", - "@mdx-js/mdx": "^1.6.22", - "escape-html": "^1.0.3", - "file-loader": "^6.2.0", - "fs-extra": "^10.1.0", - "image-size": "^1.0.1", - "mdast-util-to-string": "^2.0.0", - "remark-emoji": "^2.2.0", - "stringify-object": "^3.3.0", - "tslib": "^2.4.0", - "unified": "^9.2.2", - "unist-util-visit": "^2.0.3", - "url-loader": "^4.1.1", - "webpack": "^5.73.0" - } - }, - "@docusaurus/module-type-aliases": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/module-type-aliases/-/module-type-aliases-2.4.1.tgz", - "integrity": "sha512-gLBuIFM8Dp2XOCWffUDSjtxY7jQgKvYujt7Mx5s4FCTfoL5dN1EVbnrn+O2Wvh8b0a77D57qoIDY7ghgmatR1A==", - "requires": { - "@docusaurus/react-loadable": "5.5.2", - "@docusaurus/types": "2.4.1", - "@types/history": "^4.7.11", - "@types/react": "*", - "@types/react-router-config": "*", - "@types/react-router-dom": "*", - "react-helmet-async": "*", - "react-loadable": "npm:@docusaurus/react-loadable@5.5.2" - } - }, - "@docusaurus/plugin-content-blog": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-blog/-/plugin-content-blog-2.4.1.tgz", - "integrity": "sha512-E2i7Knz5YIbE1XELI6RlTnZnGgS52cUO4BlCiCUCvQHbR+s1xeIWz4C6BtaVnlug0Ccz7nFSksfwDpVlkujg5Q==", - "requires": { - "@docusaurus/core": "2.4.1", - "@docusaurus/logger": "2.4.1", - "@docusaurus/mdx-loader": "2.4.1", - "@docusaurus/types": "2.4.1", - "@docusaurus/utils": "2.4.1", - "@docusaurus/utils-common": "2.4.1", - "@docusaurus/utils-validation": "2.4.1", - "cheerio": "^1.0.0-rc.12", - "feed": "^4.2.2", - "fs-extra": "^10.1.0", - "lodash": "^4.17.21", - "reading-time": "^1.5.0", - "tslib": "^2.4.0", - "unist-util-visit": "^2.0.3", - "utility-types": "^3.10.0", - "webpack": "^5.73.0" - } - }, - "@docusaurus/plugin-content-docs": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-docs/-/plugin-content-docs-2.4.1.tgz", - "integrity": "sha512-Lo7lSIcpswa2Kv4HEeUcGYqaasMUQNpjTXpV0N8G6jXgZaQurqp7E8NGYeGbDXnb48czmHWbzDL4S3+BbK0VzA==", - "requires": { - "@docusaurus/core": "2.4.1", - "@docusaurus/logger": "2.4.1", - "@docusaurus/mdx-loader": "2.4.1", - "@docusaurus/module-type-aliases": "2.4.1", - "@docusaurus/types": "2.4.1", - "@docusaurus/utils": "2.4.1", - "@docusaurus/utils-validation": "2.4.1", - "@types/react-router-config": "^5.0.6", - "combine-promises": "^1.1.0", - "fs-extra": "^10.1.0", - "import-fresh": "^3.3.0", - "js-yaml": "^4.1.0", - "lodash": "^4.17.21", - "tslib": "^2.4.0", - "utility-types": "^3.10.0", - "webpack": "^5.73.0" - } - }, - "@docusaurus/plugin-content-pages": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-pages/-/plugin-content-pages-2.4.1.tgz", - "integrity": "sha512-/UjuH/76KLaUlL+o1OvyORynv6FURzjurSjvn2lbWTFc4tpYY2qLYTlKpTCBVPhlLUQsfyFnshEJDLmPneq2oA==", - "requires": { - "@docusaurus/core": "2.4.1", - "@docusaurus/mdx-loader": "2.4.1", - "@docusaurus/types": "2.4.1", - "@docusaurus/utils": "2.4.1", - "@docusaurus/utils-validation": "2.4.1", - "fs-extra": "^10.1.0", - "tslib": "^2.4.0", - "webpack": "^5.73.0" - } - }, - "@docusaurus/plugin-debug": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-debug/-/plugin-debug-2.4.1.tgz", - "integrity": "sha512-7Yu9UPzRShlrH/G8btOpR0e6INFZr0EegWplMjOqelIwAcx3PKyR8mgPTxGTxcqiYj6hxSCRN0D8R7YrzImwNA==", - "requires": { - "@docusaurus/core": "2.4.1", - "@docusaurus/types": "2.4.1", - "@docusaurus/utils": "2.4.1", - "fs-extra": "^10.1.0", - "react-json-view": "^1.21.3", - "tslib": "^2.4.0" - } - }, - "@docusaurus/plugin-google-analytics": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-google-analytics/-/plugin-google-analytics-2.4.1.tgz", - "integrity": "sha512-dyZJdJiCoL+rcfnm0RPkLt/o732HvLiEwmtoNzOoz9MSZz117UH2J6U2vUDtzUzwtFLIf32KkeyzisbwUCgcaQ==", - "requires": { - "@docusaurus/core": "2.4.1", - "@docusaurus/types": "2.4.1", - "@docusaurus/utils-validation": "2.4.1", - "tslib": "^2.4.0" - } - }, - "@docusaurus/plugin-google-gtag": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-google-gtag/-/plugin-google-gtag-2.4.1.tgz", - "integrity": "sha512-mKIefK+2kGTQBYvloNEKtDmnRD7bxHLsBcxgnbt4oZwzi2nxCGjPX6+9SQO2KCN5HZbNrYmGo5GJfMgoRvy6uA==", - "requires": { - "@docusaurus/core": "2.4.1", - "@docusaurus/types": "2.4.1", - "@docusaurus/utils-validation": "2.4.1", - "tslib": "^2.4.0" - } - }, - "@docusaurus/plugin-google-tag-manager": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-google-tag-manager/-/plugin-google-tag-manager-2.4.1.tgz", - "integrity": "sha512-Zg4Ii9CMOLfpeV2nG74lVTWNtisFaH9QNtEw48R5QE1KIwDBdTVaiSA18G1EujZjrzJJzXN79VhINSbOJO/r3g==", - "requires": { - "@docusaurus/core": "2.4.1", - "@docusaurus/types": "2.4.1", - "@docusaurus/utils-validation": "2.4.1", - "tslib": "^2.4.0" - } - }, - "@docusaurus/plugin-sitemap": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-sitemap/-/plugin-sitemap-2.4.1.tgz", - "integrity": "sha512-lZx+ijt/+atQ3FVE8FOHV/+X3kuok688OydDXrqKRJyXBJZKgGjA2Qa8RjQ4f27V2woaXhtnyrdPop/+OjVMRg==", - "requires": { - "@docusaurus/core": "2.4.1", - "@docusaurus/logger": "2.4.1", - "@docusaurus/types": "2.4.1", - "@docusaurus/utils": "2.4.1", - "@docusaurus/utils-common": "2.4.1", - "@docusaurus/utils-validation": "2.4.1", - "fs-extra": "^10.1.0", - "sitemap": "^7.1.1", - "tslib": "^2.4.0" - } - }, - "@docusaurus/preset-classic": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/preset-classic/-/preset-classic-2.4.1.tgz", - "integrity": "sha512-P4//+I4zDqQJ+UDgoFrjIFaQ1MeS9UD1cvxVQaI6O7iBmiHQm0MGROP1TbE7HlxlDPXFJjZUK3x3cAoK63smGQ==", - "requires": { - "@docusaurus/core": "2.4.1", - "@docusaurus/plugin-content-blog": "2.4.1", - "@docusaurus/plugin-content-docs": "2.4.1", - "@docusaurus/plugin-content-pages": "2.4.1", - "@docusaurus/plugin-debug": "2.4.1", - "@docusaurus/plugin-google-analytics": "2.4.1", - "@docusaurus/plugin-google-gtag": "2.4.1", - "@docusaurus/plugin-google-tag-manager": "2.4.1", - "@docusaurus/plugin-sitemap": "2.4.1", - "@docusaurus/theme-classic": "2.4.1", - "@docusaurus/theme-common": "2.4.1", - "@docusaurus/theme-search-algolia": "2.4.1", - "@docusaurus/types": "2.4.1" - } - }, - "@docusaurus/react-loadable": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz", - "integrity": "sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ==", - "requires": { - "@types/react": "*", - "prop-types": "^15.6.2" - } - }, - "@docusaurus/theme-classic": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/theme-classic/-/theme-classic-2.4.1.tgz", - "integrity": "sha512-Rz0wKUa+LTW1PLXmwnf8mn85EBzaGSt6qamqtmnh9Hflkc+EqiYMhtUJeLdV+wsgYq4aG0ANc+bpUDpsUhdnwg==", - "requires": { - "@docusaurus/core": "2.4.1", - "@docusaurus/mdx-loader": "2.4.1", - "@docusaurus/module-type-aliases": "2.4.1", - "@docusaurus/plugin-content-blog": "2.4.1", - "@docusaurus/plugin-content-docs": "2.4.1", - "@docusaurus/plugin-content-pages": "2.4.1", - "@docusaurus/theme-common": "2.4.1", - "@docusaurus/theme-translations": "2.4.1", - "@docusaurus/types": "2.4.1", - "@docusaurus/utils": "2.4.1", - "@docusaurus/utils-common": "2.4.1", - "@docusaurus/utils-validation": "2.4.1", - "@mdx-js/react": "^1.6.22", - "clsx": "^1.2.1", - "copy-text-to-clipboard": "^3.0.1", - "infima": "0.2.0-alpha.43", - "lodash": "^4.17.21", - "nprogress": "^0.2.0", - "postcss": "^8.4.14", - "prism-react-renderer": "^1.3.5", - "prismjs": "^1.28.0", - "react-router-dom": "^5.3.3", - "rtlcss": "^3.5.0", - "tslib": "^2.4.0", - "utility-types": "^3.10.0" - } - }, - "@docusaurus/theme-common": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/theme-common/-/theme-common-2.4.1.tgz", - "integrity": "sha512-G7Zau1W5rQTaFFB3x3soQoZpkgMbl/SYNG8PfMFIjKa3M3q8n0m/GRf5/H/e5BqOvt8c+ZWIXGCiz+kUCSHovA==", - "requires": { - "@docusaurus/mdx-loader": "2.4.1", - "@docusaurus/module-type-aliases": "2.4.1", - "@docusaurus/plugin-content-blog": "2.4.1", - "@docusaurus/plugin-content-docs": "2.4.1", - "@docusaurus/plugin-content-pages": "2.4.1", - "@docusaurus/utils": "2.4.1", - "@docusaurus/utils-common": "2.4.1", - "@types/history": "^4.7.11", - "@types/react": "*", - "@types/react-router-config": "*", - "clsx": "^1.2.1", - "parse-numeric-range": "^1.3.0", - "prism-react-renderer": "^1.3.5", - "tslib": "^2.4.0", - "use-sync-external-store": "^1.2.0", - "utility-types": "^3.10.0" - } - }, - "@docusaurus/theme-search-algolia": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/theme-search-algolia/-/theme-search-algolia-2.4.1.tgz", - "integrity": "sha512-6BcqW2lnLhZCXuMAvPRezFs1DpmEKzXFKlYjruuas+Xy3AQeFzDJKTJFIm49N77WFCTyxff8d3E4Q9pi/+5McQ==", - "requires": { - "@docsearch/react": "^3.1.1", - "@docusaurus/core": "2.4.1", - "@docusaurus/logger": "2.4.1", - "@docusaurus/plugin-content-docs": "2.4.1", - "@docusaurus/theme-common": "2.4.1", - "@docusaurus/theme-translations": "2.4.1", - "@docusaurus/utils": "2.4.1", - "@docusaurus/utils-validation": "2.4.1", - "algoliasearch": "^4.13.1", - "algoliasearch-helper": "^3.10.0", - "clsx": "^1.2.1", - "eta": "^2.0.0", - "fs-extra": "^10.1.0", - "lodash": "^4.17.21", - "tslib": "^2.4.0", - "utility-types": "^3.10.0" - } - }, - "@docusaurus/theme-translations": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/theme-translations/-/theme-translations-2.4.1.tgz", - "integrity": "sha512-T1RAGP+f86CA1kfE8ejZ3T3pUU3XcyvrGMfC/zxCtc2BsnoexuNI9Vk2CmuKCb+Tacvhxjv5unhxXce0+NKyvA==", - "requires": { - "fs-extra": "^10.1.0", - "tslib": "^2.4.0" - } - }, - "@docusaurus/types": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/types/-/types-2.4.1.tgz", - "integrity": "sha512-0R+cbhpMkhbRXX138UOc/2XZFF8hiZa6ooZAEEJFp5scytzCw4tC1gChMFXrpa3d2tYE6AX8IrOEpSonLmfQuQ==", - "requires": { - "@types/history": "^4.7.11", - "@types/react": "*", - "commander": "^5.1.0", - "joi": "^17.6.0", - "react-helmet-async": "^1.3.0", - "utility-types": "^3.10.0", - "webpack": "^5.73.0", - "webpack-merge": "^5.8.0" - } - }, - "@docusaurus/utils": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/utils/-/utils-2.4.1.tgz", - "integrity": "sha512-1lvEZdAQhKNht9aPXPoh69eeKnV0/62ROhQeFKKxmzd0zkcuE/Oc5Gpnt00y/f5bIsmOsYMY7Pqfm/5rteT5GA==", - "requires": { - "@docusaurus/logger": "2.4.1", - "@svgr/webpack": "^6.2.1", - "escape-string-regexp": "^4.0.0", - "file-loader": "^6.2.0", - "fs-extra": "^10.1.0", - "github-slugger": "^1.4.0", - "globby": "^11.1.0", - "gray-matter": "^4.0.3", - "js-yaml": "^4.1.0", - "lodash": "^4.17.21", - "micromatch": "^4.0.5", - "resolve-pathname": "^3.0.0", - "shelljs": "^0.8.5", - "tslib": "^2.4.0", - "url-loader": "^4.1.1", - "webpack": "^5.73.0" - } - }, - "@docusaurus/utils-common": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/utils-common/-/utils-common-2.4.1.tgz", - "integrity": "sha512-bCVGdZU+z/qVcIiEQdyx0K13OC5mYwxhSuDUR95oFbKVuXYRrTVrwZIqQljuo1fyJvFTKHiL9L9skQOPokuFNQ==", - "requires": { - "tslib": "^2.4.0" - } - }, - "@docusaurus/utils-validation": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@docusaurus/utils-validation/-/utils-validation-2.4.1.tgz", - "integrity": "sha512-unII3hlJlDwZ3w8U+pMO3Lx3RhI4YEbY3YNsQj4yzrkZzlpqZOLuAiZK2JyULnD+TKbceKU0WyWkQXtYbLNDFA==", - "requires": { - "@docusaurus/logger": "2.4.1", - "@docusaurus/utils": "2.4.1", - "joi": "^17.6.0", - "js-yaml": "^4.1.0", - "tslib": "^2.4.0" - } - }, - "@easyops-cn/autocomplete.js": { - "version": "0.38.1", - "resolved": "https://registry.npmjs.org/@easyops-cn/autocomplete.js/-/autocomplete.js-0.38.1.tgz", - "integrity": "sha512-drg76jS6syilOUmVNkyo1c7ZEBPcPuK+aJA7AksM5ZIIbV57DMHCywiCr+uHyv8BE5jUTU98j/H7gVrkHrWW3Q==", - "requires": { - "cssesc": "^3.0.0", - "immediate": "^3.2.3" - } - }, - "@easyops-cn/docusaurus-search-local": { - "version": "0.35.0", - "resolved": "https://registry.npmjs.org/@easyops-cn/docusaurus-search-local/-/docusaurus-search-local-0.35.0.tgz", - "integrity": "sha512-sHQ8jxsVgHH8MNXJlj20nZZfP/Q0peNTAJwKCN2aPuBwfRIoO0i7LmZFaYKenZmVAW/BD2MtfVd65SREmm3zxg==", - "requires": { - "@docusaurus/plugin-content-docs": "^2.0.0-rc.1", - "@docusaurus/theme-translations": "^2.0.0-rc.1", - "@docusaurus/utils": "^2.0.0-rc.1", - "@docusaurus/utils-common": "^2.0.0-rc.1", - "@docusaurus/utils-validation": "^2.0.0-rc.1", - "@easyops-cn/autocomplete.js": "^0.38.1", - "@node-rs/jieba": "^1.6.0", - "cheerio": "^1.0.0-rc.3", - "clsx": "^1.1.1", - "debug": "^4.2.0", - "fs-extra": "^10.0.0", - "klaw-sync": "^6.0.0", - "lunr": "^2.3.9", - "lunr-languages": "^1.4.0", - "mark.js": "^8.11.1", - "tslib": "^2.4.0" - } - }, - "@eslint-community/eslint-utils": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", - "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", - "devOptional": true, - "requires": { - "eslint-visitor-keys": "^3.3.0" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", - "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", - "devOptional": true - } - } - }, - "@eslint-community/regexpp": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", - "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", - "devOptional": true - }, - "@eslint/eslintrc": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz", - "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==", - "devOptional": true, - "requires": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.5.2", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "dependencies": { - "globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", - "devOptional": true, - "requires": { - "type-fest": "^0.20.2" - } - }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "devOptional": true - } - } - }, - "@eslint/js": { - "version": "8.42.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.42.0.tgz", - "integrity": "sha512-6SWlXpWU5AvId8Ac7zjzmIOqMOba/JWY8XZ4A7q7Gn1Vlfg/SFFIlrtHXt9nPn4op9ZPAkl91Jao+QQv3r/ukw==", - "devOptional": true - }, - "@hapi/hoek": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", - "integrity": "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==" - }, - "@hapi/topo": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz", - "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==", - "requires": { - "@hapi/hoek": "^9.0.0" - } - }, - "@humanwhocodes/config-array": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz", - "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==", - "devOptional": true, - "requires": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", - "minimatch": "^3.0.5" - } - }, - "@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "devOptional": true - }, - "@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", - "devOptional": true - }, - "@jest/schemas": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.4.3.tgz", - "integrity": "sha512-VLYKXQmtmuEz6IxJsrZwzG9NvtkQsWNnWMsKxqWNu3+CnfzJQhp0WDDKWLVV9hLKr0l3SLLFRqcYHjhtyuDVxg==", - "requires": { - "@sinclair/typebox": "^0.25.16" - } - }, - "@jest/types": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.5.0.tgz", - "integrity": "sha512-qbu7kN6czmVRc3xWFQcAN03RAUamgppVUdXrvl1Wr3jlNF93o9mJbGcDWrwGB6ht44u7efB1qCFgVQmca24Uog==", - "requires": { - "@jest/schemas": "^29.4.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^17.0.8", - "chalk": "^4.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", - "requires": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==" - }, - "@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==" - }, - "@jridgewell/source-map": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz", - "integrity": "sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==", - "requires": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" - }, - "@jridgewell/trace-mapping": { - "version": "0.3.18", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", - "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", - "requires": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" - }, - "dependencies": { - "@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" - } - } - }, - "@leichtgewicht/ip-codec": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz", - "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==" - }, - "@mdx-js/mdx": { - "version": "1.6.22", - "resolved": "https://registry.npmjs.org/@mdx-js/mdx/-/mdx-1.6.22.tgz", - "integrity": "sha512-AMxuLxPz2j5/6TpF/XSdKpQP1NlG0z11dFOlq+2IP/lSgl11GY8ji6S/rgsViN/L0BDvHvUMruRb7ub+24LUYA==", - "requires": { - "@babel/core": "7.12.9", - "@babel/plugin-syntax-jsx": "7.12.1", - "@babel/plugin-syntax-object-rest-spread": "7.8.3", - "@mdx-js/util": "1.6.22", - "babel-plugin-apply-mdx-type-prop": "1.6.22", - "babel-plugin-extract-import-names": "1.6.22", - "camelcase-css": "2.0.1", - "detab": "2.0.4", - "hast-util-raw": "6.0.1", - "lodash.uniq": "4.5.0", - "mdast-util-to-hast": "10.0.1", - "remark-footnotes": "2.0.0", - "remark-mdx": "1.6.22", - "remark-parse": "8.0.3", - "remark-squeeze-paragraphs": "4.0.0", - "style-to-object": "0.3.0", - "unified": "9.2.0", - "unist-builder": "2.0.3", - "unist-util-visit": "2.0.3" - }, - "dependencies": { - "@babel/core": { - "version": "7.12.9", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.9.tgz", - "integrity": "sha512-gTXYh3M5wb7FRXQy+FErKFAv90BnlOuNn1QkCK2lREoPAjrQCO49+HVSrFoe5uakFAF5eenS75KbO2vQiLrTMQ==", - "requires": { - "@babel/code-frame": "^7.10.4", - "@babel/generator": "^7.12.5", - "@babel/helper-module-transforms": "^7.12.1", - "@babel/helpers": "^7.12.5", - "@babel/parser": "^7.12.7", - "@babel/template": "^7.12.7", - "@babel/traverse": "^7.12.9", - "@babel/types": "^7.12.7", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.1", - "json5": "^2.1.2", - "lodash": "^4.17.19", - "resolve": "^1.3.2", - "semver": "^5.4.1", - "source-map": "^0.5.0" - } - }, - "@babel/plugin-syntax-jsx": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.12.1.tgz", - "integrity": "sha512-1yRi7yAtB0ETgxdY9ti/p2TivUxJkTdhu/ZbF9MshVGqOx1TdB3b7xCXs49Fupgg50N45KcAsRP/ZqWjs9SRjg==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==" - }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==" - }, - "unified": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/unified/-/unified-9.2.0.tgz", - "integrity": "sha512-vx2Z0vY+a3YoTj8+pttM3tiJHCwY5UFbYdiWrwBEbHmK8pvsPj2rtAX2BFfgXen8T39CJWblWRDT4L5WGXtDdg==", - "requires": { - "bail": "^1.0.0", - "extend": "^3.0.0", - "is-buffer": "^2.0.0", - "is-plain-obj": "^2.0.0", - "trough": "^1.0.0", - "vfile": "^4.0.0" - } - } - } - }, - "@mdx-js/react": { - "version": "1.6.22", - "resolved": "https://registry.npmjs.org/@mdx-js/react/-/react-1.6.22.tgz", - "integrity": "sha512-TDoPum4SHdfPiGSAaRBw7ECyI8VaHpK8GJugbJIJuqyh6kzw9ZLJZW3HGL3NNrJGxcAixUvqROm+YuQOo5eXtg==", - "requires": {} - }, - "@mdx-js/util": { - "version": "1.6.22", - "resolved": "https://registry.npmjs.org/@mdx-js/util/-/util-1.6.22.tgz", - "integrity": "sha512-H1rQc1ZOHANWBvPcW+JpGwr+juXSxM8Q8YCkm3GhZd8REu1fHR3z99CErO1p9pkcfcxZnMdIZdIsXkOHY0NilA==" - }, - "@nicolo-ribaudo/eslint-scope-5-internals": { - "version": "5.1.1-v1", - "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz", - "integrity": "sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==", - "dev": true, - "requires": { - "eslint-scope": "5.1.1" - } - }, - "@node-rs/jieba": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba/-/jieba-1.7.0.tgz", - "integrity": "sha512-Hm1JIlejxkWe1FSFZRns/g1j5hZmp357n+0n2BluABA4KLZ8EraHfPmPRmVMW6vbdMZObTYIVu5aVrPnUfBOxg==", - "requires": { - "@node-rs/jieba-android-arm-eabi": "1.7.0", - "@node-rs/jieba-android-arm64": "1.7.0", - "@node-rs/jieba-darwin-arm64": "1.7.0", - "@node-rs/jieba-darwin-x64": "1.7.0", - "@node-rs/jieba-freebsd-x64": "1.7.0", - "@node-rs/jieba-linux-arm-gnueabihf": "1.7.0", - "@node-rs/jieba-linux-arm64-gnu": "1.7.0", - "@node-rs/jieba-linux-arm64-musl": "1.7.0", - "@node-rs/jieba-linux-x64-gnu": "1.7.0", - "@node-rs/jieba-linux-x64-musl": "1.7.0", - "@node-rs/jieba-win32-arm64-msvc": "1.7.0", - "@node-rs/jieba-win32-ia32-msvc": "1.7.0", - "@node-rs/jieba-win32-x64-msvc": "1.7.0" - } - }, - "@node-rs/jieba-android-arm-eabi": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-android-arm-eabi/-/jieba-android-arm-eabi-1.7.0.tgz", - "integrity": "sha512-XF4OYcZCyDiBK+jm1Zmt2o+xEO7K2K5OvUC3MTc9jd3Lwvy3EdHp8tpGvEp8PxfVFe2/JxNzX4OQQQP3Dhmk9A==", - "optional": true - }, - "@node-rs/jieba-android-arm64": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-android-arm64/-/jieba-android-arm64-1.7.0.tgz", - "integrity": "sha512-9oWwFVr/37T89WC+jjiI9A6u0zUJNTJl5ZC4CMxX45MVMokWI7bBXU7t7qBmMdFBzj+OFwDd3sm1fh4vl7NSWA==", - "optional": true - }, - "@node-rs/jieba-darwin-arm64": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-darwin-arm64/-/jieba-darwin-arm64-1.7.0.tgz", - "integrity": "sha512-9gBuxJCNITNI/gU5l8eeVGQ9MAf0BV86lfeo9TeU61vJCy6sqyx26wFMLODQgLNdiMP+q/fZme/G0hfZUjfPVA==", - "optional": true - }, - "@node-rs/jieba-darwin-x64": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-darwin-x64/-/jieba-darwin-x64-1.7.0.tgz", - "integrity": "sha512-FFUSMY4tl0Prpxa1SHy7Yzze2KfV/bZzccpO5nd+a8zCKbiX6gVkJ89FfxSAD2QrXUGkZvJYiPmu5nkZItqRZQ==", - "optional": true - }, - "@node-rs/jieba-freebsd-x64": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-freebsd-x64/-/jieba-freebsd-x64-1.7.0.tgz", - "integrity": "sha512-QFz2pz0Br+621QbKkgQPqTn90j1kcCD9jaI++qTLNHJGlWLRn6sFoAjb+jQEQEy9aE7VqfIV56eaVcCoU5VO2w==", - "optional": true - }, - "@node-rs/jieba-linux-arm-gnueabihf": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-arm-gnueabihf/-/jieba-linux-arm-gnueabihf-1.7.0.tgz", - "integrity": "sha512-kHJxO2sd7gMKqI1YS5DjABEcRwRemaCtgbKSuUqEaHGmUz9nAaUF6FSY8U4rXwr7HXt+kQa4NgyYDjgz+Pscrw==", - "optional": true - }, - "@node-rs/jieba-linux-arm64-gnu": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-arm64-gnu/-/jieba-linux-arm64-gnu-1.7.0.tgz", - "integrity": "sha512-3qoCV9pF6llPBGDMu7K8JdHjI10WPkrq6P2gpZESqekcE4DatV6DcU9FWR+QL7MK/7meoE3/Zhjm7OK+qBd8gg==", - "optional": true - }, - "@node-rs/jieba-linux-arm64-musl": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-arm64-musl/-/jieba-linux-arm64-musl-1.7.0.tgz", - "integrity": "sha512-xv6hvzOV7iTCq7mM8SWhC3zEk6CqmBwhOSlfbb3gvPkc4U1UA1hmvcrD7oO5Qn+U+nuswysGCdVU6Z5AypLDfg==", - "optional": true - }, - "@node-rs/jieba-linux-x64-gnu": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-x64-gnu/-/jieba-linux-x64-gnu-1.7.0.tgz", - "integrity": "sha512-NpelWidMSNLoFTw+ov3y5jhJZjapHwEnh0Fyfm/7mvqkdwzVyedqNj22etRGum+nsAosMotCUWUznIMAD075gQ==", - "optional": true - }, - "@node-rs/jieba-linux-x64-musl": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-x64-musl/-/jieba-linux-x64-musl-1.7.0.tgz", - "integrity": "sha512-yG4F8sy+fW4RbhyKXmEMT/JGuQuKH0TGymCEGYgT0km2I60iys63jWf2VTzCtrx583wxN5XoHv5HN60nhtIBtw==", - "optional": true - }, - "@node-rs/jieba-win32-arm64-msvc": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-win32-arm64-msvc/-/jieba-win32-arm64-msvc-1.7.0.tgz", - "integrity": "sha512-R6l/BSMs6R6BwpZS6DIDZuAEjUIPdAHgyi+xptP3mICjm6U+GMsvsRTeZkIJ7a/yzYUfqvz54VpQsfE5f0psBQ==", - "optional": true - }, - "@node-rs/jieba-win32-ia32-msvc": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-win32-ia32-msvc/-/jieba-win32-ia32-msvc-1.7.0.tgz", - "integrity": "sha512-FwibbuizEjzom02K2JM2T8tL0VlxW5xGDDy3L3dgx46xIGE85PwGYjgju+eDt4UODgxDsxGC4DUMMZf3XvCc7A==", - "optional": true - }, - "@node-rs/jieba-win32-x64-msvc": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@node-rs/jieba-win32-x64-msvc/-/jieba-win32-x64-msvc-1.7.0.tgz", - "integrity": "sha512-pJv7nluB6azhsOWvJB86Dyfg/M7n9k49bs9Bwmsylz9uhdZX9QnEShDW934RdmnjPYQ5aPgsSFrY6NXP/aovUA==", - "optional": true - }, - "@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "requires": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - } - }, - "@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==" - }, - "@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "requires": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - } - }, - "@polka/url": { - "version": "1.0.0-next.21", - "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.21.tgz", - "integrity": "sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==" - }, - "@sideway/address": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.4.tgz", - "integrity": "sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw==", - "requires": { - "@hapi/hoek": "^9.0.0" - } - }, - "@sideway/formula": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.1.tgz", - "integrity": "sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==" - }, - "@sideway/pinpoint": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz", - "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==" - }, - "@sinclair/typebox": { - "version": "0.25.24", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.25.24.tgz", - "integrity": "sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==" - }, - "@sindresorhus/is": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", - "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==" - }, - "@slorber/static-site-generator-webpack-plugin": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/@slorber/static-site-generator-webpack-plugin/-/static-site-generator-webpack-plugin-4.0.7.tgz", - "integrity": "sha512-Ug7x6z5lwrz0WqdnNFOMYrDQNTPAprvHLSh6+/fmml3qUiz6l5eq+2MzLKWtn/q5K5NpSiFsZTP/fck/3vjSxA==", - "requires": { - "eval": "^0.1.8", - "p-map": "^4.0.0", - "webpack-sources": "^3.2.2" - } - }, - "@svgr/babel-plugin-add-jsx-attribute": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-6.5.1.tgz", - "integrity": "sha512-9PYGcXrAxitycIjRmZB+Q0JaN07GZIWaTBIGQzfaZv+qr1n8X1XUEJ5rZ/vx6OVD9RRYlrNnXWExQXcmZeD/BQ==", - "requires": {} - }, - "@svgr/babel-plugin-remove-jsx-attribute": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-8.0.0.tgz", - "integrity": "sha512-BcCkm/STipKvbCl6b7QFrMh/vx00vIP63k2eM66MfHJzPr6O2U0jYEViXkHJWqXqQYjdeA9cuCl5KWmlwjDvbA==", - "requires": {} - }, - "@svgr/babel-plugin-remove-jsx-empty-expression": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-8.0.0.tgz", - "integrity": "sha512-5BcGCBfBxB5+XSDSWnhTThfI9jcO5f0Ai2V24gZpG+wXF14BzwxxdDb4g6trdOux0rhibGs385BeFMSmxtS3uA==", - "requires": {} - }, - "@svgr/babel-plugin-replace-jsx-attribute-value": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-6.5.1.tgz", - "integrity": "sha512-8DPaVVE3fd5JKuIC29dqyMB54sA6mfgki2H2+swh+zNJoynC8pMPzOkidqHOSc6Wj032fhl8Z0TVn1GiPpAiJg==", - "requires": {} - }, - "@svgr/babel-plugin-svg-dynamic-title": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-6.5.1.tgz", - "integrity": "sha512-FwOEi0Il72iAzlkaHrlemVurgSQRDFbk0OC8dSvD5fSBPHltNh7JtLsxmZUhjYBZo2PpcU/RJvvi6Q0l7O7ogw==", - "requires": {} - }, - "@svgr/babel-plugin-svg-em-dimensions": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-6.5.1.tgz", - "integrity": "sha512-gWGsiwjb4tw+ITOJ86ndY/DZZ6cuXMNE/SjcDRg+HLuCmwpcjOktwRF9WgAiycTqJD/QXqL2f8IzE2Rzh7aVXA==", - "requires": {} - }, - "@svgr/babel-plugin-transform-react-native-svg": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-6.5.1.tgz", - "integrity": "sha512-2jT3nTayyYP7kI6aGutkyfJ7UMGtuguD72OjeGLwVNyfPRBD8zQthlvL+fAbAKk5n9ZNcvFkp/b1lZ7VsYqVJg==", - "requires": {} - }, - "@svgr/babel-plugin-transform-svg-component": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-6.5.1.tgz", - "integrity": "sha512-a1p6LF5Jt33O3rZoVRBqdxL350oge54iZWHNI6LJB5tQ7EelvD/Mb1mfBiZNAan0dt4i3VArkFRjA4iObuNykQ==", - "requires": {} - }, - "@svgr/babel-preset": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-6.5.1.tgz", - "integrity": "sha512-6127fvO/FF2oi5EzSQOAjo1LE3OtNVh11R+/8FXa+mHx1ptAaS4cknIjnUA7e6j6fwGGJ17NzaTJFUwOV2zwCw==", - "requires": { - "@svgr/babel-plugin-add-jsx-attribute": "^6.5.1", - "@svgr/babel-plugin-remove-jsx-attribute": "*", - "@svgr/babel-plugin-remove-jsx-empty-expression": "*", - "@svgr/babel-plugin-replace-jsx-attribute-value": "^6.5.1", - "@svgr/babel-plugin-svg-dynamic-title": "^6.5.1", - "@svgr/babel-plugin-svg-em-dimensions": "^6.5.1", - "@svgr/babel-plugin-transform-react-native-svg": "^6.5.1", - "@svgr/babel-plugin-transform-svg-component": "^6.5.1" - } - }, - "@svgr/core": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/core/-/core-6.5.1.tgz", - "integrity": "sha512-/xdLSWxK5QkqG524ONSjvg3V/FkNyCv538OIBdQqPNaAta3AsXj/Bd2FbvR87yMbXO2hFSWiAe/Q6IkVPDw+mw==", - "requires": { - "@babel/core": "^7.19.6", - "@svgr/babel-preset": "^6.5.1", - "@svgr/plugin-jsx": "^6.5.1", - "camelcase": "^6.2.0", - "cosmiconfig": "^7.0.1" - } - }, - "@svgr/hast-util-to-babel-ast": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-6.5.1.tgz", - "integrity": "sha512-1hnUxxjd83EAxbL4a0JDJoD3Dao3hmjvyvyEV8PzWmLK3B9m9NPlW7GKjFyoWE8nM7HnXzPcmmSyOW8yOddSXw==", - "requires": { - "@babel/types": "^7.20.0", - "entities": "^4.4.0" - } - }, - "@svgr/plugin-jsx": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-6.5.1.tgz", - "integrity": "sha512-+UdQxI3jgtSjCykNSlEMuy1jSRQlGC7pqBCPvkG/2dATdWo082zHTTK3uhnAju2/6XpE6B5mZ3z4Z8Ns01S8Gw==", - "requires": { - "@babel/core": "^7.19.6", - "@svgr/babel-preset": "^6.5.1", - "@svgr/hast-util-to-babel-ast": "^6.5.1", - "svg-parser": "^2.0.4" - } - }, - "@svgr/plugin-svgo": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/plugin-svgo/-/plugin-svgo-6.5.1.tgz", - "integrity": "sha512-omvZKf8ixP9z6GWgwbtmP9qQMPX4ODXi+wzbVZgomNFsUIlHA1sf4fThdwTWSsZGgvGAG6yE+b/F5gWUkcZ/iQ==", - "requires": { - "cosmiconfig": "^7.0.1", - "deepmerge": "^4.2.2", - "svgo": "^2.8.0" - } - }, - "@svgr/webpack": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/webpack/-/webpack-6.5.1.tgz", - "integrity": "sha512-cQ/AsnBkXPkEK8cLbv4Dm7JGXq2XrumKnL1dRpJD9rIO2fTIlJI9a1uCciYG1F2aUsox/hJQyNGbt3soDxSRkA==", - "requires": { - "@babel/core": "^7.19.6", - "@babel/plugin-transform-react-constant-elements": "^7.18.12", - "@babel/preset-env": "^7.19.4", - "@babel/preset-react": "^7.18.6", - "@babel/preset-typescript": "^7.18.6", - "@svgr/core": "^6.5.1", - "@svgr/plugin-jsx": "^6.5.1", - "@svgr/plugin-svgo": "^6.5.1" - } - }, - "@szmarczak/http-timer": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", - "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", - "requires": { - "defer-to-connect": "^1.0.1" - } - }, - "@trysound/sax": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", - "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==" - }, - "@tsconfig/docusaurus": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/@tsconfig/docusaurus/-/docusaurus-1.0.7.tgz", - "integrity": "sha512-ffTXxGIP/IRMCjuzHd6M4/HdIrw1bMfC7Bv8hMkTadnePkpe0lG0oDSdbRpSDZb2rQMAgpbWiR10BvxvNYwYrg==", - "dev": true - }, - "@types/body-parser": { - "version": "1.19.2", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", - "integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==", - "requires": { - "@types/connect": "*", - "@types/node": "*" - } - }, - "@types/bonjour": { - "version": "3.5.10", - "resolved": "https://registry.npmjs.org/@types/bonjour/-/bonjour-3.5.10.tgz", - "integrity": "sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==", - "requires": { - "@types/node": "*" - } - }, - "@types/connect": { - "version": "3.4.35", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", - "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", - "requires": { - "@types/node": "*" - } - }, - "@types/connect-history-api-fallback": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.0.tgz", - "integrity": "sha512-4x5FkPpLipqwthjPsF7ZRbOv3uoLUFkTA9G9v583qi4pACvq0uTELrB8OLUzPWUI4IJIyvM85vzkV1nyiI2Lig==", - "requires": { - "@types/express-serve-static-core": "*", - "@types/node": "*" - } - }, - "@types/debug": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz", - "integrity": "sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==", - "requires": { - "@types/ms": "*" - } - }, - "@types/eslint": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.40.0.tgz", - "integrity": "sha512-nbq2mvc/tBrK9zQQuItvjJl++GTN5j06DaPtp3hZCpngmG6Q3xoyEmd0TwZI0gAy/G1X0zhGBbr2imsGFdFV0g==", - "requires": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "@types/eslint-scope": { - "version": "3.7.4", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", - "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", - "requires": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, - "@types/estree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", - "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==" - }, - "@types/express": { - "version": "4.17.17", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz", - "integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==", - "requires": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^4.17.33", - "@types/qs": "*", - "@types/serve-static": "*" - } - }, - "@types/express-serve-static-core": { - "version": "4.17.35", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.35.tgz", - "integrity": "sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==", - "requires": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" - } - }, - "@types/hast": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.4.tgz", - "integrity": "sha512-wLEm0QvaoawEDoTRwzTXp4b4jpwiJDvR5KMnFnVodm3scufTlBOWRD6N1OBf9TZMhjlNsSfcO5V+7AF4+Vy+9g==", - "requires": { - "@types/unist": "*" - } - }, - "@types/history": { - "version": "4.7.11", - "resolved": "https://registry.npmjs.org/@types/history/-/history-4.7.11.tgz", - "integrity": "sha512-qjDJRrmvBMiTx+jyLxvLfJU7UznFuokDv4f3WRuriHKERccVpFU+8XMQUAbDzoiJCsmexxRExQeMwwCdamSKDA==" - }, - "@types/html-minifier-terser": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", - "integrity": "sha512-oh/6byDPnL1zeNXFrDXFLyZjkr1MsBG667IM792caf1L2UPOOMf65NFzjUH/ltyfwjAGfs1rsX1eftK0jC/KIg==" - }, - "@types/http-proxy": { - "version": "1.17.11", - "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.11.tgz", - "integrity": "sha512-HC8G7c1WmaF2ekqpnFq626xd3Zz0uvaqFmBJNRZCGEZCXkvSdJoNFn/8Ygbd9fKNQj8UzLdCETaI0UWPAjK7IA==", - "requires": { - "@types/node": "*" - } - }, - "@types/istanbul-lib-coverage": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", - "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==" - }, - "@types/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", - "requires": { - "@types/istanbul-lib-coverage": "*" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/json-schema": { - "version": "7.0.12", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", - "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==" - }, - "@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true - }, - "@types/mdast": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.11.tgz", - "integrity": "sha512-Y/uImid8aAwrEA24/1tcRZwpxX3pIFTSilcNDKSPn+Y2iDywSEachzRuvgAYYLR3wpGXAsMbv5lvKLDZLeYPAw==", - "requires": { - "@types/unist": "*" - } - }, - "@types/mime": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz", - "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==" - }, - "@types/minimist": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", - "integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==", - "dev": true - }, - "@types/ms": { - "version": "0.7.31", - "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz", - "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==" - }, - "@types/node": { - "version": "20.2.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.5.tgz", - "integrity": "sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ==" - }, - "@types/normalize-package-data": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz", - "integrity": "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==", - "dev": true - }, - "@types/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==" - }, - "@types/parse5": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/@types/parse5/-/parse5-5.0.3.tgz", - "integrity": "sha512-kUNnecmtkunAoQ3CnjmMkzNU/gtxG8guhi+Fk2U/kOpIKjIMKnXGp4IJCgQJrXSgMsWYimYG4TGjz/UzbGEBTw==" - }, - "@types/prop-types": { - "version": "15.7.5", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", - "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==" - }, - "@types/qs": { - "version": "6.9.7", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", - "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==" - }, - "@types/range-parser": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", - "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==" - }, - "@types/react": { - "version": "18.2.8", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.8.tgz", - "integrity": "sha512-lTyWUNrd8ntVkqycEEplasWy2OxNlShj3zqS0LuB1ENUGis5HodmhM7DtCoUGbxj3VW/WsGA0DUhpG6XrM7gPA==", - "requires": { - "@types/prop-types": "*", - "@types/scheduler": "*", - "csstype": "^3.0.2" - } - }, - "@types/react-router": { - "version": "5.1.20", - "resolved": "https://registry.npmjs.org/@types/react-router/-/react-router-5.1.20.tgz", - "integrity": "sha512-jGjmu/ZqS7FjSH6owMcD5qpq19+1RS9DeVRqfl1FeBMxTDQAGwlMWOcs52NDoXaNKyG3d1cYQFMs9rCrb88o9Q==", - "requires": { - "@types/history": "^4.7.11", - "@types/react": "*" - } - }, - "@types/react-router-config": { - "version": "5.0.7", - "resolved": "https://registry.npmjs.org/@types/react-router-config/-/react-router-config-5.0.7.tgz", - "integrity": "sha512-pFFVXUIydHlcJP6wJm7sDii5mD/bCmmAY0wQzq+M+uX7bqS95AQqHZWP1iNMKrWVQSuHIzj5qi9BvrtLX2/T4w==", - "requires": { - "@types/history": "^4.7.11", - "@types/react": "*", - "@types/react-router": "^5.1.0" - } - }, - "@types/react-router-dom": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/@types/react-router-dom/-/react-router-dom-5.3.3.tgz", - "integrity": "sha512-kpqnYK4wcdm5UaWI3fLcELopqLrHgLqNsdpHauzlQktfkHL3npOSwtj1Uz9oKBAzs7lFtVkV8j83voAz2D8fhw==", - "requires": { - "@types/history": "^4.7.11", - "@types/react": "*", - "@types/react-router": "*" - } - }, - "@types/retry": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", - "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==" - }, - "@types/sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@types/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-pSAff4IAxJjfAXUG6tFkO7dsSbTmf8CtUpfhhZ5VhkRpC4628tJhh3+V6H1E+/Gs9piSzYKT5yzHO5M4GG9jkw==", - "requires": { - "@types/node": "*" - } - }, - "@types/scheduler": { - "version": "0.16.3", - "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.3.tgz", - "integrity": "sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==" - }, - "@types/semver": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.0.tgz", - "integrity": "sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==", - "dev": true - }, - "@types/send": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.1.tgz", - "integrity": "sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==", - "requires": { - "@types/mime": "^1", - "@types/node": "*" - } - }, - "@types/serve-index": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.1.tgz", - "integrity": "sha512-d/Hs3nWDxNL2xAczmOVZNj92YZCS6RGxfBPjKzuu/XirCgXdpKEb88dYNbrYGint6IVWLNP+yonwVAuRC0T2Dg==", - "requires": { - "@types/express": "*" - } - }, - "@types/serve-static": { - "version": "1.15.1", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz", - "integrity": "sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==", - "requires": { - "@types/mime": "*", - "@types/node": "*" - } - }, - "@types/sockjs": { - "version": "0.3.33", - "resolved": "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.33.tgz", - "integrity": "sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw==", - "requires": { - "@types/node": "*" - } - }, - "@types/unist": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.6.tgz", - "integrity": "sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==" - }, - "@types/ws": { - "version": "8.5.4", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.4.tgz", - "integrity": "sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==", - "requires": { - "@types/node": "*" - } - }, - "@types/yargs": { - "version": "17.0.24", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", - "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", - "requires": { - "@types/yargs-parser": "*" - } - }, - "@types/yargs-parser": { - "version": "21.0.0", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", - "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==" - }, - "@typescript-eslint/eslint-plugin": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.9.tgz", - "integrity": "sha512-4uQIBq1ffXd2YvF7MAvehWKW3zVv/w+mSfRAu+8cKbfj3nwzyqJLNcZJpQ/WZ1HLbJDiowwmQ6NO+63nCA+fqA==", - "dev": true, - "requires": { - "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.59.9", - "@typescript-eslint/type-utils": "5.59.9", - "@typescript-eslint/utils": "5.59.9", - "debug": "^4.3.4", - "grapheme-splitter": "^1.0.4", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } - } - }, - "@typescript-eslint/parser": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.9.tgz", - "integrity": "sha512-FsPkRvBtcLQ/eVK1ivDiNYBjn3TGJdXy2fhXX+rc7czWl4ARwnpArwbihSOHI2Peg9WbtGHrbThfBUkZZGTtvQ==", - "dev": true, - "requires": { - "@typescript-eslint/scope-manager": "5.59.9", - "@typescript-eslint/types": "5.59.9", - "@typescript-eslint/typescript-estree": "5.59.9", - "debug": "^4.3.4" - } - }, - "@typescript-eslint/scope-manager": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.9.tgz", - "integrity": "sha512-8RA+E+w78z1+2dzvK/tGZ2cpGigBZ58VMEHDZtpE1v+LLjzrYGc8mMaTONSxKyEkz3IuXFM0IqYiGHlCsmlZxQ==", - "dev": true, - "requires": { - "@typescript-eslint/types": "5.59.9", - "@typescript-eslint/visitor-keys": "5.59.9" - } - }, - "@typescript-eslint/type-utils": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.9.tgz", - "integrity": "sha512-ksEsT0/mEHg9e3qZu98AlSrONAQtrSTljL3ow9CGej8eRo7pe+yaC/mvTjptp23Xo/xIf2mLZKC6KPv4Sji26Q==", - "dev": true, - "requires": { - "@typescript-eslint/typescript-estree": "5.59.9", - "@typescript-eslint/utils": "5.59.9", - "debug": "^4.3.4", - "tsutils": "^3.21.0" - } - }, - "@typescript-eslint/types": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.9.tgz", - "integrity": "sha512-uW8H5NRgTVneSVTfiCVffBb8AbwWSKg7qcA4Ot3JI3MPCJGsB4Db4BhvAODIIYE5mNj7Q+VJkK7JxmRhk2Lyjw==", - "dev": true - }, - "@typescript-eslint/typescript-estree": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.9.tgz", - "integrity": "sha512-pmM0/VQ7kUhd1QyIxgS+aRvMgw+ZljB3eDb+jYyp6d2bC0mQWLzUDF+DLwCTkQ3tlNyVsvZRXjFyV0LkU/aXjA==", - "dev": true, - "requires": { - "@typescript-eslint/types": "5.59.9", - "@typescript-eslint/visitor-keys": "5.59.9", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } - } - }, - "@typescript-eslint/utils": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.9.tgz", - "integrity": "sha512-1PuMYsju/38I5Ggblaeb98TOoUvjhRvLpLa1DoTOFaLWqaXl/1iQ1eGurTXgBY58NUdtfTXKP5xBq7q9NDaLKg==", - "dev": true, - "requires": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.59.9", - "@typescript-eslint/types": "5.59.9", - "@typescript-eslint/typescript-estree": "5.59.9", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } - } - }, - "@typescript-eslint/visitor-keys": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.9.tgz", - "integrity": "sha512-bT7s0td97KMaLwpEBckbzj/YohnvXtqbe2XgqNvTl6RJVakY5mvENOTPvw5u66nljfZxthESpDozs86U+oLY8Q==", - "dev": true, - "requires": { - "@typescript-eslint/types": "5.59.9", - "eslint-visitor-keys": "^3.3.0" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", - "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", - "dev": true - } - } - }, - "@webassemblyjs/ast": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", - "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", - "requires": { - "@webassemblyjs/helper-numbers": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6" - } - }, - "@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", - "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==" - }, - "@webassemblyjs/helper-api-error": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", - "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==" - }, - "@webassemblyjs/helper-buffer": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", - "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==" - }, - "@webassemblyjs/helper-numbers": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", - "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", - "requires": { - "@webassemblyjs/floating-point-hex-parser": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", - "@xtuc/long": "4.2.2" - } - }, - "@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", - "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==" - }, - "@webassemblyjs/helper-wasm-section": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", - "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", - "requires": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6" - } - }, - "@webassemblyjs/ieee754": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", - "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", - "requires": { - "@xtuc/ieee754": "^1.2.0" - } - }, - "@webassemblyjs/leb128": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", - "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", - "requires": { - "@xtuc/long": "4.2.2" - } - }, - "@webassemblyjs/utf8": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", - "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==" - }, - "@webassemblyjs/wasm-edit": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", - "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", - "requires": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/helper-wasm-section": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-opt": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6", - "@webassemblyjs/wast-printer": "1.11.6" - } - }, - "@webassemblyjs/wasm-gen": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", - "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", - "requires": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" - } - }, - "@webassemblyjs/wasm-opt": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", - "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", - "requires": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6" - } - }, - "@webassemblyjs/wasm-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", - "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", - "requires": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" - } - }, - "@webassemblyjs/wast-printer": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", - "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", - "requires": { - "@webassemblyjs/ast": "1.11.6", - "@xtuc/long": "4.2.2" - } - }, - "@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==" - }, - "@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==" - }, - "accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "requires": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" - }, - "dependencies": { - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "requires": { - "mime-db": "1.52.0" - } - } - } - }, - "acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==" - }, - "acorn-import-assertions": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", - "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", - "requires": {} - }, - "acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "devOptional": true, - "requires": {} - }, - "acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==" - }, - "address": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/address/-/address-1.2.2.tgz", - "integrity": "sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA==" - }, - "aggregate-error": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", - "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", - "requires": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - } - }, - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ajv-formats": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", - "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", - "requires": { - "ajv": "^8.0.0" - }, - "dependencies": { - "ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - } - } - }, - "ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "requires": {} - }, - "algoliasearch": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/algoliasearch/-/algoliasearch-4.17.1.tgz", - "integrity": "sha512-4GDQ1RhP2qUR3x8PevFRbEdqZqIARNViZYjgTJmA1T7wRNtFA3W4Aqc/RsODqa1J8IO/QDla5x4tWuUS8NV8wA==", - "requires": { - "@algolia/cache-browser-local-storage": "4.17.1", - "@algolia/cache-common": "4.17.1", - "@algolia/cache-in-memory": "4.17.1", - "@algolia/client-account": "4.17.1", - "@algolia/client-analytics": "4.17.1", - "@algolia/client-common": "4.17.1", - "@algolia/client-personalization": "4.17.1", - "@algolia/client-search": "4.17.1", - "@algolia/logger-common": "4.17.1", - "@algolia/logger-console": "4.17.1", - "@algolia/requester-browser-xhr": "4.17.1", - "@algolia/requester-common": "4.17.1", - "@algolia/requester-node-http": "4.17.1", - "@algolia/transporter": "4.17.1" - } - }, - "algoliasearch-helper": { - "version": "3.13.0", - "resolved": "https://registry.npmjs.org/algoliasearch-helper/-/algoliasearch-helper-3.13.0.tgz", - "integrity": "sha512-kV3c1jMQCvkARtGsSDvAwuht4PAMSsQILqPiH4WFiARoa3jXJ/r1TQoBWAjWyWF48rsNYCv7kzxgB4LTxrvvuw==", - "requires": { - "@algolia/events": "^4.0.1" - } - }, - "ansi-align": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz", - "integrity": "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==", - "requires": { - "string-width": "^4.1.0" - }, - "dependencies": { - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - } - } - }, - "ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dev": true, - "requires": { - "type-fest": "^0.21.3" - }, - "dependencies": { - "type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true - } - } - }, - "ansi-html-community": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", - "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==" - }, - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "requires": { - "color-convert": "^1.9.0" - } - }, - "anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "arg": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", - "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==" - }, - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - }, - "aria-query": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz", - "integrity": "sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==", - "dev": true, - "requires": { - "deep-equal": "^2.0.5" - } - }, - "array-buffer-byte-length": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", - "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "is-array-buffer": "^3.0.1" - } - }, - "array-flatten": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", - "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==" - }, - "array-includes": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", - "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "is-string": "^1.0.7" - } - }, - "array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==" - }, - "array.prototype.flat": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", - "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - } - }, - "array.prototype.flatmap": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", - "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - } - }, - "array.prototype.tosorted": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz", - "integrity": "sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0", - "get-intrinsic": "^1.1.3" - } - }, - "arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", - "dev": true - }, - "asap": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==" - }, - "ast-types-flow": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", - "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", - "dev": true - }, - "astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", - "dev": true - }, - "at-least-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==" - }, - "autoprefixer": { - "version": "10.4.14", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz", - "integrity": "sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==", - "requires": { - "browserslist": "^4.21.5", - "caniuse-lite": "^1.0.30001464", - "fraction.js": "^4.2.0", - "normalize-range": "^0.1.2", - "picocolors": "^1.0.0", - "postcss-value-parser": "^4.2.0" - } - }, - "available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", - "dev": true - }, - "axe-core": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.2.tgz", - "integrity": "sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==", - "dev": true - }, - "axios": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.25.0.tgz", - "integrity": "sha512-cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g==", - "requires": { - "follow-redirects": "^1.14.7" - } - }, - "axobject-query": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz", - "integrity": "sha512-goKlv8DZrK9hUh975fnHzhNIO4jUnFCfv/dszV5VwUGDFjI6vQ2VwoyjYjYNEbBE8AH87TduWP5uyDR1D+Iteg==", - "dev": true, - "requires": { - "deep-equal": "^2.0.5" - } - }, - "babel-loader": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.3.0.tgz", - "integrity": "sha512-H8SvsMF+m9t15HNLMipppzkC+Y2Yq+v3SonZyU70RBL/h1gxPkH08Ot8pEE9Z4Kd+czyWJClmFS8qzIP9OZ04Q==", - "requires": { - "find-cache-dir": "^3.3.1", - "loader-utils": "^2.0.0", - "make-dir": "^3.1.0", - "schema-utils": "^2.6.5" - } - }, - "babel-plugin-apply-mdx-type-prop": { - "version": "1.6.22", - "resolved": "https://registry.npmjs.org/babel-plugin-apply-mdx-type-prop/-/babel-plugin-apply-mdx-type-prop-1.6.22.tgz", - "integrity": "sha512-VefL+8o+F/DfK24lPZMtJctrCVOfgbqLAGZSkxwhazQv4VxPg3Za/i40fu22KR2m8eEda+IfSOlPLUSIiLcnCQ==", - "requires": { - "@babel/helper-plugin-utils": "7.10.4", - "@mdx-js/util": "1.6.22" - }, - "dependencies": { - "@babel/helper-plugin-utils": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz", - "integrity": "sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==" - } - } - }, - "babel-plugin-dynamic-import-node": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", - "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==", - "requires": { - "object.assign": "^4.1.0" - } - }, - "babel-plugin-extract-import-names": { - "version": "1.6.22", - "resolved": "https://registry.npmjs.org/babel-plugin-extract-import-names/-/babel-plugin-extract-import-names-1.6.22.tgz", - "integrity": "sha512-yJ9BsJaISua7d8zNT7oRG1ZLBJCIdZ4PZqmH8qa9N5AK01ifk3fnkc98AXhtzE7UkfCsEumvoQWgoYLhOnJ7jQ==", - "requires": { - "@babel/helper-plugin-utils": "7.10.4" - }, - "dependencies": { - "@babel/helper-plugin-utils": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz", - "integrity": "sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==" - } - } - }, - "babel-plugin-polyfill-corejs2": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.3.tgz", - "integrity": "sha512-bM3gHc337Dta490gg+/AseNB9L4YLHxq1nGKZZSHbhXv4aTYU2MD2cjza1Ru4S6975YLTaL1K8uJf6ukJhhmtw==", - "requires": { - "@babel/compat-data": "^7.17.7", - "@babel/helper-define-polyfill-provider": "^0.4.0", - "semver": "^6.1.1" - } - }, - "babel-plugin-polyfill-corejs3": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.1.tgz", - "integrity": "sha512-ikFrZITKg1xH6pLND8zT14UPgjKHiGLqex7rGEZCH2EvhsneJaJPemmpQaIZV5AL03II+lXylw3UmddDK8RU5Q==", - "requires": { - "@babel/helper-define-polyfill-provider": "^0.4.0", - "core-js-compat": "^3.30.1" - } - }, - "babel-plugin-polyfill-regenerator": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.0.tgz", - "integrity": "sha512-hDJtKjMLVa7Z+LwnTCxoDLQj6wdc+B8dun7ayF2fYieI6OzfuvcLMB32ihJZ4UhCBwNYGl5bg/x/P9cMdnkc2g==", - "requires": { - "@babel/helper-define-polyfill-provider": "^0.4.0" - } - }, - "bail": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/bail/-/bail-1.0.5.tgz", - "integrity": "sha512-xFbRxM1tahm08yHBP16MMjVUAvDaBMD38zsM9EMAUN61omwLmKlOpB/Zku5QkjZ8TZ4vn53pj+t518cH0S03RQ==" - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "base16": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/base16/-/base16-1.0.0.tgz", - "integrity": "sha512-pNdYkNPiJUnEhnfXV56+sQy8+AaPcG3POZAUnwr4EeqCUZFz4u2PePbo3e5Gj4ziYPCWGUZT9RHisvJKnwFuBQ==" - }, - "batch": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", - "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==" - }, - "big.js": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==" - }, - "binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==" - }, - "body-parser": { - "version": "1.20.1", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", - "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", - "requires": { - "bytes": "3.1.2", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.11.0", - "raw-body": "2.5.1", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - }, - "dependencies": { - "bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==" - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - } - } - }, - "bonjour-service": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.1.1.tgz", - "integrity": "sha512-Z/5lQRMOG9k7W+FkeGTNjh7htqn/2LMnfOvBZ8pynNZCM9MwkQkI3zeI4oz09uWdcgmgHugVvBqxGg4VQJ5PCg==", - "requires": { - "array-flatten": "^2.1.2", - "dns-equal": "^1.0.0", - "fast-deep-equal": "^3.1.3", - "multicast-dns": "^7.2.5" - } - }, - "boolbase": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==" - }, - "boxen": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/boxen/-/boxen-6.2.1.tgz", - "integrity": "sha512-H4PEsJXfFI/Pt8sjDWbHlQPx4zL/bvSQjcilJmaulGt5mLDorHOHpmdXAJcBcmru7PhYSp/cDMWRko4ZUMFkSw==", - "requires": { - "ansi-align": "^3.0.1", - "camelcase": "^6.2.0", - "chalk": "^4.1.2", - "cli-boxes": "^3.0.0", - "string-width": "^5.0.1", - "type-fest": "^2.5.0", - "widest-line": "^4.0.1", - "wrap-ansi": "^8.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "requires": { - "fill-range": "^7.0.1" - } - }, - "browserslist": { - "version": "4.21.7", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.7.tgz", - "integrity": "sha512-BauCXrQ7I2ftSqd2mvKHGo85XR0u7Ru3C/Hxsy/0TkfCtjrmAbPdzLGasmoiBxplpDXlPvdjX9u7srIMfgasNA==", - "requires": { - "caniuse-lite": "^1.0.30001489", - "electron-to-chromium": "^1.4.411", - "node-releases": "^2.0.12", - "update-browserslist-db": "^1.0.11" - } - }, - "buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" - }, - "bytes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", - "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==" - }, - "cacheable-request": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", - "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", - "requires": { - "clone-response": "^1.0.2", - "get-stream": "^5.1.0", - "http-cache-semantics": "^4.0.0", - "keyv": "^3.0.0", - "lowercase-keys": "^2.0.0", - "normalize-url": "^4.1.0", - "responselike": "^1.0.2" - }, - "dependencies": { - "get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "requires": { - "pump": "^3.0.0" - } - }, - "lowercase-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", - "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==" - }, - "normalize-url": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz", - "integrity": "sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==" - } - } - }, - "call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "requires": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - } - }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==" - }, - "camel-case": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", - "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", - "requires": { - "pascal-case": "^3.1.2", - "tslib": "^2.0.3" - } - }, - "camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==" - }, - "camelcase-css": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", - "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==" - }, - "camelcase-keys": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", - "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", - "dev": true, - "requires": { - "camelcase": "^5.3.1", - "map-obj": "^4.0.0", - "quick-lru": "^4.0.1" - }, - "dependencies": { - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true - } - } - }, - "caniuse-api": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", - "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", - "requires": { - "browserslist": "^4.0.0", - "caniuse-lite": "^1.0.0", - "lodash.memoize": "^4.1.2", - "lodash.uniq": "^4.5.0" - } - }, - "caniuse-lite": { - "version": "1.0.30001495", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001495.tgz", - "integrity": "sha512-F6x5IEuigtUfU5ZMQK2jsy5JqUUlEFRVZq8bO2a+ysq5K7jD6PPc9YXZj78xDNS3uNchesp1Jw47YXEqr+Viyg==" - }, - "ccount": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/ccount/-/ccount-1.1.0.tgz", - "integrity": "sha512-vlNK021QdI7PNeiUh/lKkC/mNHHfV0m/Ad5JoI0TYtlBnJAslM/JIkm/tGC88bkLIwO6OQ5uV6ztS6kVAtCDlg==" - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "dependencies": { - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==" - } - } - }, - "character-entities": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz", - "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==" - }, - "character-entities-legacy": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz", - "integrity": "sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA==" - }, - "character-reference-invalid": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-1.1.4.tgz", - "integrity": "sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==" - }, - "cheerio": { - "version": "1.0.0-rc.12", - "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.12.tgz", - "integrity": "sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==", - "requires": { - "cheerio-select": "^2.1.0", - "dom-serializer": "^2.0.0", - "domhandler": "^5.0.3", - "domutils": "^3.0.1", - "htmlparser2": "^8.0.1", - "parse5": "^7.0.0", - "parse5-htmlparser2-tree-adapter": "^7.0.0" - } - }, - "cheerio-select": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-2.1.0.tgz", - "integrity": "sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==", - "requires": { - "boolbase": "^1.0.0", - "css-select": "^5.1.0", - "css-what": "^6.1.0", - "domelementtype": "^2.3.0", - "domhandler": "^5.0.3", - "domutils": "^3.0.1" - } - }, - "chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "requires": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "fsevents": "~2.3.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - } - }, - "chrome-trace-event": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", - "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==" - }, - "ci-info": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", - "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==" - }, - "classnames": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.2.tgz", - "integrity": "sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==" - }, - "clean-css": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.2.tgz", - "integrity": "sha512-JVJbM+f3d3Q704rF4bqQ5UUyTtuJ0JRKNbTKVEeujCCBoMdkEi+V+e8oktO9qGQNSvHrFTM6JZRXrUvGR1czww==", - "requires": { - "source-map": "~0.6.0" - } - }, - "clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==" - }, - "cli-boxes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-3.0.0.tgz", - "integrity": "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==" - }, - "cli-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", - "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", - "dev": true, - "requires": { - "restore-cursor": "^3.1.0" - } - }, - "cli-table3": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.3.tgz", - "integrity": "sha512-w5Jac5SykAeZJKntOxJCrm63Eg5/4dhMWIcuTbo9rpE+brgaSZo0RuNJZeOyMgsUdhDeojvgyQLmjI+K50ZGyg==", - "requires": { - "@colors/colors": "1.5.0", - "string-width": "^4.2.0" - }, - "dependencies": { - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - } - } - }, - "cli-truncate": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-3.1.0.tgz", - "integrity": "sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA==", - "dev": true, - "requires": { - "slice-ansi": "^5.0.0", - "string-width": "^5.0.0" - } - }, - "clone-deep": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", - "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", - "requires": { - "is-plain-object": "^2.0.4", - "kind-of": "^6.0.2", - "shallow-clone": "^3.0.0" - }, - "dependencies": { - "is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "requires": { - "isobject": "^3.0.1" - } - } - } - }, - "clone-response": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", - "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", - "requires": { - "mimic-response": "^1.0.0" - } - }, - "clsx": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz", - "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==" - }, - "collapse-white-space": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/collapse-white-space/-/collapse-white-space-1.0.6.tgz", - "integrity": "sha512-jEovNnrhMuqyCcjfEJA56v0Xq8SkIoPKDyaHahwo3POf4qcSXqMYuwNcOTzp74vTsR9Tn08z4MxWqAhcekogkQ==" - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" - }, - "colord": { - "version": "2.9.3", - "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz", - "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==" - }, - "colorette": { - "version": "2.0.20", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", - "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==" - }, - "combine-promises": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/combine-promises/-/combine-promises-1.1.0.tgz", - "integrity": "sha512-ZI9jvcLDxqwaXEixOhArm3r7ReIivsXkpbyEWyeOhzz1QS0iSgBPnWvEqvIQtYyamGCYA88gFhmUrs9hrrQ0pg==" - }, - "comma-separated-tokens": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz", - "integrity": "sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw==" - }, - "commander": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", - "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==" - }, - "comment-parser": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.3.1.tgz", - "integrity": "sha512-B52sN2VNghyq5ofvUsqZjmk6YkihBX5vMSChmSK9v4ShjKf3Vk5Xcmgpw4o+iIgtrnM/u5FiMpz9VKb8lpBveA==", - "dev": true - }, - "commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==" - }, - "compressible": { - "version": "2.0.18", - "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", - "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", - "requires": { - "mime-db": ">= 1.43.0 < 2" - }, - "dependencies": { - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" - } - } - }, - "compression": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", - "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", - "requires": { - "accepts": "~1.3.5", - "bytes": "3.0.0", - "compressible": "~2.0.16", - "debug": "2.6.9", - "on-headers": "~1.0.2", - "safe-buffer": "5.1.2", - "vary": "~1.1.2" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - } - } - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" - }, - "configstore": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", - "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", - "requires": { - "dot-prop": "^5.2.0", - "graceful-fs": "^4.1.2", - "make-dir": "^3.0.0", - "unique-string": "^2.0.0", - "write-file-atomic": "^3.0.0", - "xdg-basedir": "^4.0.0" - }, - "dependencies": { - "write-file-atomic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", - "requires": { - "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" - } - } - } - }, - "confusing-browser-globals": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", - "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", - "dev": true - }, - "connect-history-api-fallback": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz", - "integrity": "sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==" - }, - "consola": { - "version": "2.15.3", - "resolved": "https://registry.npmjs.org/consola/-/consola-2.15.3.tgz", - "integrity": "sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==" - }, - "content-disposition": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz", - "integrity": "sha512-kRGRZw3bLlFISDBgwTSA1TMBFN6J6GWDeubmDE3AF+3+yXL8hTWv8r5rkLbqYXY4RjPk/EzHnClI3zQf1cFmHA==" - }, - "content-type": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==" - }, - "convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" - }, - "cookie": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", - "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==" - }, - "cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" - }, - "copy-text-to-clipboard": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/copy-text-to-clipboard/-/copy-text-to-clipboard-3.1.0.tgz", - "integrity": "sha512-PFM6BnjLnOON/lB3ta/Jg7Ywsv+l9kQGD4TWDCSlRBGmqnnTM5MrDkhAFgw+8HZt0wW6Q2BBE4cmy9sq+s9Qng==" - }, - "copy-webpack-plugin": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-11.0.0.tgz", - "integrity": "sha512-fX2MWpamkW0hZxMEg0+mYnA40LTosOSa5TqZ9GYIBzyJa9C3QUaMPSE2xAi/buNr8u89SfD9wHSQVBzrRa/SOQ==", - "requires": { - "fast-glob": "^3.2.11", - "glob-parent": "^6.0.1", - "globby": "^13.1.1", - "normalize-path": "^3.0.0", - "schema-utils": "^4.0.0", - "serialize-javascript": "^6.0.0" - }, - "dependencies": { - "ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "requires": { - "fast-deep-equal": "^3.1.3" - } - }, - "glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "requires": { - "is-glob": "^4.0.3" - } - }, - "globby": { - "version": "13.1.4", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.4.tgz", - "integrity": "sha512-iui/IiiW+QrJ1X1hKH5qwlMQyv34wJAYwH1vrf8b9kBA4sNiif3gKsMHa+BrdnOpEudWjpotfa7LrTzB1ERS/g==", - "requires": { - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.11", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^4.0.0" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "schema-utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", - "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", - "requires": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - } - }, - "slash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", - "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==" - } - } - }, - "core-js": { - "version": "3.30.2", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.30.2.tgz", - "integrity": "sha512-uBJiDmwqsbJCWHAwjrx3cvjbMXP7xD72Dmsn5LOJpiRmE3WbBbN5rCqQ2Qh6Ek6/eOrjlWngEynBWo4VxerQhg==" - }, - "core-js-compat": { - "version": "3.30.2", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.30.2.tgz", - "integrity": "sha512-nriW1nuJjUgvkEjIot1Spwakz52V9YkYHZAQG6A1eCgC8AA1p0zngrQEP9R0+V6hji5XilWKG1Bd0YRppmGimA==", - "requires": { - "browserslist": "^4.21.5" - } - }, - "core-js-pure": { - "version": "3.30.2", - "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.30.2.tgz", - "integrity": "sha512-p/npFUJXXBkCCTIlEGBdghofn00jWG6ZOtdoIXSJmAu2QBvN0IqpZXWweOytcwE6cfx8ZvVUy1vw8zxhe4Y2vg==" - }, - "core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" - }, - "cosmiconfig": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", - "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", - "requires": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.2.1", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.10.0" - } - }, - "cross-fetch": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.6.tgz", - "integrity": "sha512-riRvo06crlE8HiqOwIpQhxwdOk4fOeR7FVM/wXoxchFEqMNUjvbs3bfo4OTgMEMHzppd4DxFBDbyySj8Cv781g==", - "requires": { - "node-fetch": "^2.6.11" - } - }, - "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "crypto-random-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", - "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==" - }, - "css-declaration-sorter": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.0.tgz", - "integrity": "sha512-jDfsatwWMWN0MODAFuHszfjphEXfNw9JUAhmY4pLu3TyTU+ohUpsbVtbU+1MZn4a47D9kqh03i4eyOm+74+zew==", - "requires": {} - }, - "css-functions-list": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/css-functions-list/-/css-functions-list-3.1.0.tgz", - "integrity": "sha512-/9lCvYZaUbBGvYUgYGFJ4dcYiyqdhSjG7IPVluoV8A1ILjkF7ilmhp1OGUz8n+nmBcu0RNrQAzgD8B6FJbrt2w==", - "dev": true - }, - "css-loader": { - "version": "6.8.1", - "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.8.1.tgz", - "integrity": "sha512-xDAXtEVGlD0gJ07iclwWVkLoZOpEvAWaSyf6W18S2pOC//K8+qUDIx8IIT3D+HjnmkJPQeesOPv5aiUaJsCM2g==", - "requires": { - "icss-utils": "^5.1.0", - "postcss": "^8.4.21", - "postcss-modules-extract-imports": "^3.0.0", - "postcss-modules-local-by-default": "^4.0.3", - "postcss-modules-scope": "^3.0.0", - "postcss-modules-values": "^4.0.0", - "postcss-value-parser": "^4.2.0", - "semver": "^7.3.8" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "requires": { - "yallist": "^4.0.0" - } - }, - "semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", - "requires": { - "lru-cache": "^6.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - } - } - }, - "css-minimizer-webpack-plugin": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-4.2.2.tgz", - "integrity": "sha512-s3Of/4jKfw1Hj9CxEO1E5oXhQAxlayuHO2y/ML+C6I9sQ7FdzfEV6QgMLN3vI+qFsjJGIAFLKtQK7t8BOXAIyA==", - "requires": { - "cssnano": "^5.1.8", - "jest-worker": "^29.1.2", - "postcss": "^8.4.17", - "schema-utils": "^4.0.0", - "serialize-javascript": "^6.0.0", - "source-map": "^0.6.1" - }, - "dependencies": { - "ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "requires": { - "fast-deep-equal": "^3.1.3" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "schema-utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", - "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", - "requires": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - } - } - } - }, - "css-select": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", - "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", - "requires": { - "boolbase": "^1.0.0", - "css-what": "^6.1.0", - "domhandler": "^5.0.2", - "domutils": "^3.0.1", - "nth-check": "^2.0.1" - } - }, - "css-tree": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", - "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", - "requires": { - "mdn-data": "2.0.14", - "source-map": "^0.6.1" - } - }, - "css-what": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", - "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==" - }, - "cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==" - }, - "cssnano": { - "version": "5.1.15", - "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.15.tgz", - "integrity": "sha512-j+BKgDcLDQA+eDifLx0EO4XSA56b7uut3BQFH+wbSaSTuGLuiyTa/wbRYthUXX8LC9mLg+WWKe8h+qJuwTAbHw==", - "requires": { - "cssnano-preset-default": "^5.2.14", - "lilconfig": "^2.0.3", - "yaml": "^1.10.2" - } - }, - "cssnano-preset-advanced": { - "version": "5.3.10", - "resolved": "https://registry.npmjs.org/cssnano-preset-advanced/-/cssnano-preset-advanced-5.3.10.tgz", - "integrity": "sha512-fnYJyCS9jgMU+cmHO1rPSPf9axbQyD7iUhLO5Df6O4G+fKIOMps+ZbU0PdGFejFBBZ3Pftf18fn1eG7MAPUSWQ==", - "requires": { - "autoprefixer": "^10.4.12", - "cssnano-preset-default": "^5.2.14", - "postcss-discard-unused": "^5.1.0", - "postcss-merge-idents": "^5.1.1", - "postcss-reduce-idents": "^5.2.0", - "postcss-zindex": "^5.1.0" - } - }, - "cssnano-preset-default": { - "version": "5.2.14", - "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.14.tgz", - "integrity": "sha512-t0SFesj/ZV2OTylqQVOrFgEh5uanxbO6ZAdeCrNsUQ6fVuXwYTxJPNAGvGTxHbD68ldIJNec7PyYZDBrfDQ+6A==", - "requires": { - "css-declaration-sorter": "^6.3.1", - "cssnano-utils": "^3.1.0", - "postcss-calc": "^8.2.3", - "postcss-colormin": "^5.3.1", - "postcss-convert-values": "^5.1.3", - "postcss-discard-comments": "^5.1.2", - "postcss-discard-duplicates": "^5.1.0", - "postcss-discard-empty": "^5.1.1", - "postcss-discard-overridden": "^5.1.0", - "postcss-merge-longhand": "^5.1.7", - "postcss-merge-rules": "^5.1.4", - "postcss-minify-font-values": "^5.1.0", - "postcss-minify-gradients": "^5.1.1", - "postcss-minify-params": "^5.1.4", - "postcss-minify-selectors": "^5.2.1", - "postcss-normalize-charset": "^5.1.0", - "postcss-normalize-display-values": "^5.1.0", - "postcss-normalize-positions": "^5.1.1", - "postcss-normalize-repeat-style": "^5.1.1", - "postcss-normalize-string": "^5.1.0", - "postcss-normalize-timing-functions": "^5.1.0", - "postcss-normalize-unicode": "^5.1.1", - "postcss-normalize-url": "^5.1.0", - "postcss-normalize-whitespace": "^5.1.1", - "postcss-ordered-values": "^5.1.3", - "postcss-reduce-initial": "^5.1.2", - "postcss-reduce-transforms": "^5.1.0", - "postcss-svgo": "^5.1.0", - "postcss-unique-selectors": "^5.1.1" - } - }, - "cssnano-utils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz", - "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==", - "requires": {} - }, - "csso": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", - "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", - "requires": { - "css-tree": "^1.1.2" - } - }, - "csstype": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", - "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==" - }, - "damerau-levenshtein": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", - "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", - "dev": true - }, - "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "requires": { - "ms": "2.1.2" - } - }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", - "dev": true - }, - "decamelize-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.1.tgz", - "integrity": "sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==", - "dev": true, - "requires": { - "decamelize": "^1.1.0", - "map-obj": "^1.0.0" - }, - "dependencies": { - "map-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", - "dev": true - } - } - }, - "decode-named-character-reference": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.0.2.tgz", - "integrity": "sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==", - "requires": { - "character-entities": "^2.0.0" - } - }, - "decompress-response": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", - "integrity": "sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA==", - "requires": { - "mimic-response": "^1.0.0" - } - }, - "deep-equal": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.1.tgz", - "integrity": "sha512-lKdkdV6EOGoVn65XaOsPdH4rMxTZOnmFyuIkMjM1i5HHCbfjC97dawgTAy0deYNfuqUqW+Q5VrVaQYtUpSd6yQ==", - "dev": true, - "requires": { - "array-buffer-byte-length": "^1.0.0", - "call-bind": "^1.0.2", - "es-get-iterator": "^1.1.3", - "get-intrinsic": "^1.2.0", - "is-arguments": "^1.1.1", - "is-array-buffer": "^3.0.2", - "is-date-object": "^1.0.5", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "isarray": "^2.0.5", - "object-is": "^1.1.5", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.5.0", - "side-channel": "^1.0.4", - "which-boxed-primitive": "^1.0.2", - "which-collection": "^1.0.1", - "which-typed-array": "^1.1.9" - } - }, - "deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==" - }, - "deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "devOptional": true - }, - "deepmerge": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==" - }, - "default-gateway": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", - "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==", - "requires": { - "execa": "^5.0.0" - }, - "dependencies": { - "execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "requires": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - } - }, - "human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==" - }, - "is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==" - }, - "mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==" - }, - "npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "requires": { - "path-key": "^3.0.0" - } - }, - "onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "requires": { - "mimic-fn": "^2.1.0" - } - }, - "strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==" - } - } - }, - "defer-to-connect": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", - "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==" - }, - "define-lazy-prop": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", - "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==" - }, - "define-properties": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", - "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", - "requires": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - } - }, - "del": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/del/-/del-6.1.1.tgz", - "integrity": "sha512-ua8BhapfP0JUJKC/zV9yHHDW/rDoDxP4Zhn3AkA6/xT6gY7jYXJiaeyBZznYVujhZZET+UgcbZiQ7sN3WqcImg==", - "requires": { - "globby": "^11.0.1", - "graceful-fs": "^4.2.4", - "is-glob": "^4.0.1", - "is-path-cwd": "^2.2.0", - "is-path-inside": "^3.0.2", - "p-map": "^4.0.0", - "rimraf": "^3.0.2", - "slash": "^3.0.0" - } - }, - "depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" - }, - "dequal": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", - "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==" - }, - "destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==" - }, - "detab": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/detab/-/detab-2.0.4.tgz", - "integrity": "sha512-8zdsQA5bIkoRECvCrNKPla84lyoR7DSAyf7p0YgXzBO9PDJx8KntPUay7NS6yp+KdxdVtiE5SpHKtbp2ZQyA9g==", - "requires": { - "repeat-string": "^1.5.4" - } - }, - "detect-node": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", - "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==" - }, - "detect-port": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/detect-port/-/detect-port-1.5.1.tgz", - "integrity": "sha512-aBzdj76lueB6uUst5iAs7+0H/oOjqI5D16XUWxlWMIMROhcM0rfsNVk93zTngq1dDNpoXRr++Sus7ETAExppAQ==", - "requires": { - "address": "^1.0.1", - "debug": "4" - } - }, - "detect-port-alt": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/detect-port-alt/-/detect-port-alt-1.1.6.tgz", - "integrity": "sha512-5tQykt+LqfJFBEYaDITx7S7cR7mJ/zQmLXZ2qt5w04ainYZw6tBf9dBunMjVeVOdYVRUzUOE4HkY5J7+uttb5Q==", - "requires": { - "address": "^1.0.1", - "debug": "^2.6.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - } - } - }, - "diff": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz", - "integrity": "sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==" - }, - "dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "requires": { - "path-type": "^4.0.0" - } - }, - "dns-equal": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", - "integrity": "sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==" - }, - "dns-packet": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.6.0.tgz", - "integrity": "sha512-rza3UH1LwdHh9qyPXp8lkwpjSNk/AMD3dPytUoRoqnypDUhY0xvbdmVhWOfxO68frEfV9BU8V12Ez7ZsHGZpCQ==", - "requires": { - "@leichtgewicht/ip-codec": "^2.0.1" - } - }, - "doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "devOptional": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "dom-converter": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", - "integrity": "sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==", - "requires": { - "utila": "~0.4" - } - }, - "dom-serializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", - "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", - "requires": { - "domelementtype": "^2.3.0", - "domhandler": "^5.0.2", - "entities": "^4.2.0" - } - }, - "domelementtype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", - "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==" - }, - "domhandler": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", - "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", - "requires": { - "domelementtype": "^2.3.0" - } - }, - "domutils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.1.0.tgz", - "integrity": "sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==", - "requires": { - "dom-serializer": "^2.0.0", - "domelementtype": "^2.3.0", - "domhandler": "^5.0.3" - } - }, - "dot-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", - "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", - "requires": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "dot-prop": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", - "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", - "requires": { - "is-obj": "^2.0.0" - }, - "dependencies": { - "is-obj": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", - "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==" - } - } - }, - "dotenv": { - "version": "16.1.4", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.1.4.tgz", - "integrity": "sha512-m55RtE8AsPeJBpOIFKihEmqUcoVncQIwo7x9U8ZwLEZw9ZpXboz2c+rvog+jUaJvVrZ5kBOeYQBX5+8Aa/OZQw==" - }, - "duplexer": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", - "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==" - }, - "duplexer3": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.5.tgz", - "integrity": "sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA==" - }, - "eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" - }, - "ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" - }, - "electron-to-chromium": { - "version": "1.4.421", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.421.tgz", - "integrity": "sha512-wZOyn3s/aQOtLGAwXMZfteQPN68kgls2wDAnYOA8kCjBvKVrW5RwmWVspxJYTqrcN7Y263XJVsC66VCIGzDO3g==" - }, - "emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" - }, - "emojis-list": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", - "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==" - }, - "emoticon": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/emoticon/-/emoticon-3.2.0.tgz", - "integrity": "sha512-SNujglcLTTg+lDAcApPNgEdudaqQFiAbJCqzjNxJkvN9vAwCGi0uu8IUVvx+f16h+V44KCY6Y2yboroc9pilHg==" - }, - "encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==" - }, - "end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "requires": { - "once": "^1.4.0" - } - }, - "enhanced-resolve": { - "version": "5.14.1", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.14.1.tgz", - "integrity": "sha512-Vklwq2vDKtl0y/vtwjSesgJ5MYS7Etuk5txS8VdKL4AOS1aUlD96zqIfsOSLQsdv3xgMRbtkWM8eG9XDfKUPow==", - "requires": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" - } - }, - "entities": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==" - }, - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "es-abstract": { - "version": "1.21.2", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz", - "integrity": "sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==", - "dev": true, - "requires": { - "array-buffer-byte-length": "^1.0.0", - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "es-set-tostringtag": "^2.0.1", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.2.0", - "get-symbol-description": "^1.0.0", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has": "^1.0.3", - "has-property-descriptors": "^1.0.0", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.5", - "is-array-buffer": "^3.0.2", - "is-callable": "^1.2.7", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.10", - "is-weakref": "^1.0.2", - "object-inspect": "^1.12.3", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", - "safe-regex-test": "^1.0.0", - "string.prototype.trim": "^1.2.7", - "string.prototype.trimend": "^1.0.6", - "string.prototype.trimstart": "^1.0.6", - "typed-array-length": "^1.0.4", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.9" - } - }, - "es-get-iterator": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz", - "integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "has-symbols": "^1.0.3", - "is-arguments": "^1.1.1", - "is-map": "^2.0.2", - "is-set": "^2.0.2", - "is-string": "^1.0.7", - "isarray": "^2.0.5", - "stop-iteration-iterator": "^1.0.0" - } - }, - "es-module-lexer": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.2.1.tgz", - "integrity": "sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg==" - }, - "es-set-tostringtag": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", - "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", - "dev": true, - "requires": { - "get-intrinsic": "^1.1.3", - "has": "^1.0.3", - "has-tostringtag": "^1.0.0" - } - }, - "es-shim-unscopables": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", - "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, - "es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - } - }, - "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" - }, - "escape-goat": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz", - "integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==" - }, - "escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==" - }, - "eslint": { - "version": "8.42.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.42.0.tgz", - "integrity": "sha512-ulg9Ms6E1WPf67PHaEY4/6E2tEn5/f7FXGzr3t9cBMugOmf1INYvuUwwh1aXQN4MfJ6a5K2iNwP3w4AColvI9A==", - "devOptional": true, - "requires": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.4.0", - "@eslint/eslintrc": "^2.0.3", - "@eslint/js": "8.42.0", - "@humanwhocodes/config-array": "^0.11.10", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.0", - "eslint-visitor-keys": "^3.4.1", - "espree": "^9.5.2", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", - "text-table": "^0.2.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "devOptional": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "devOptional": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "devOptional": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "devOptional": true - }, - "eslint-scope": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", - "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", - "devOptional": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - } - }, - "eslint-visitor-keys": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", - "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", - "devOptional": true - }, - "glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "devOptional": true, - "requires": { - "is-glob": "^4.0.3" - } - }, - "globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", - "devOptional": true, - "requires": { - "type-fest": "^0.20.2" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "devOptional": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "devOptional": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "devOptional": true - } - } - }, - "eslint-config-airbnb": { - "version": "19.0.4", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb/-/eslint-config-airbnb-19.0.4.tgz", - "integrity": "sha512-T75QYQVQX57jiNgpF9r1KegMICE94VYwoFQyMGhrvc+lB8YF2E/M/PYDaQe1AJcWaEgqLE+ErXV1Og/+6Vyzew==", - "dev": true, - "requires": { - "eslint-config-airbnb-base": "^15.0.0", - "object.assign": "^4.1.2", - "object.entries": "^1.1.5" - } - }, - "eslint-config-airbnb-base": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz", - "integrity": "sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==", - "dev": true, - "requires": { - "confusing-browser-globals": "^1.0.10", - "object.assign": "^4.1.2", - "object.entries": "^1.1.5", - "semver": "^6.3.0" - } - }, - "eslint-config-prettier": { - "version": "8.8.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz", - "integrity": "sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==", - "dev": true, - "requires": {} - }, - "eslint-import-resolver-node": { - "version": "0.3.7", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", - "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", - "dev": true, - "requires": { - "debug": "^3.2.7", - "is-core-module": "^2.11.0", - "resolve": "^1.22.1" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - } - } - }, - "eslint-module-utils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", - "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", - "dev": true, - "requires": { - "debug": "^3.2.7" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - } - } - }, - "eslint-plugin-import": { - "version": "2.27.5", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", - "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", - "dev": true, - "requires": { - "array-includes": "^3.1.6", - "array.prototype.flat": "^1.3.1", - "array.prototype.flatmap": "^1.3.1", - "debug": "^3.2.7", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.7", - "eslint-module-utils": "^2.7.4", - "has": "^1.0.3", - "is-core-module": "^2.11.0", - "is-glob": "^4.0.3", - "minimatch": "^3.1.2", - "object.values": "^1.1.6", - "resolve": "^1.22.1", - "semver": "^6.3.0", - "tsconfig-paths": "^3.14.1" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - } - } - }, - "eslint-plugin-jsx-a11y": { - "version": "6.7.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", - "integrity": "sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==", - "dev": true, - "requires": { - "@babel/runtime": "^7.20.7", - "aria-query": "^5.1.3", - "array-includes": "^3.1.6", - "array.prototype.flatmap": "^1.3.1", - "ast-types-flow": "^0.0.7", - "axe-core": "^4.6.2", - "axobject-query": "^3.1.1", - "damerau-levenshtein": "^1.0.8", - "emoji-regex": "^9.2.2", - "has": "^1.0.3", - "jsx-ast-utils": "^3.3.3", - "language-tags": "=1.0.5", - "minimatch": "^3.1.2", - "object.entries": "^1.1.6", - "object.fromentries": "^2.0.6", - "semver": "^6.3.0" - } - }, - "eslint-plugin-prettier": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", - "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", - "dev": true, - "requires": { - "prettier-linter-helpers": "^1.0.0" - } - }, - "eslint-plugin-react": { - "version": "7.32.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.32.2.tgz", - "integrity": "sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==", - "dev": true, - "requires": { - "array-includes": "^3.1.6", - "array.prototype.flatmap": "^1.3.1", - "array.prototype.tosorted": "^1.1.1", - "doctrine": "^2.1.0", - "estraverse": "^5.3.0", - "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.1.2", - "object.entries": "^1.1.6", - "object.fromentries": "^2.0.6", - "object.hasown": "^1.1.2", - "object.values": "^1.1.6", - "prop-types": "^15.8.1", - "resolve": "^2.0.0-next.4", - "semver": "^6.3.0", - "string.prototype.matchall": "^4.0.8" - }, - "dependencies": { - "doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "resolve": { - "version": "2.0.0-next.4", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz", - "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==", - "dev": true, - "requires": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } - } - } - }, - "eslint-plugin-react-hooks": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz", - "integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==", - "dev": true, - "requires": {} - }, - "eslint-plugin-regexp": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-regexp/-/eslint-plugin-regexp-1.15.0.tgz", - "integrity": "sha512-YEtQPfdudafU7RBIFci81R/Q1yErm0mVh3BkGnXD2Dk8DLwTFdc2ITYH1wCnHKim2gnHfPFgrkh+b2ozyyU7ag==", - "dev": true, - "requires": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.4.0", - "comment-parser": "^1.1.2", - "grapheme-splitter": "^1.0.4", - "jsdoctypeparser": "^9.0.0", - "refa": "^0.11.0", - "regexp-ast-analysis": "^0.6.0", - "scslre": "^0.2.0" - } - }, - "eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "dependencies": { - "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==" - } - } - }, - "eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true - }, - "espree": { - "version": "9.5.2", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", - "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", - "devOptional": true, - "requires": { - "acorn": "^8.8.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", - "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", - "devOptional": true - } - } - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" - }, - "esquery": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", - "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", - "devOptional": true, - "requires": { - "estraverse": "^5.1.0" - } - }, - "esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "requires": { - "estraverse": "^5.2.0" - } - }, - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==" - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" - }, - "eta": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/eta/-/eta-2.2.0.tgz", - "integrity": "sha512-UVQ72Rqjy/ZKQalzV5dCCJP80GrmPrMxh6NlNf+erV6ObL0ZFkhCstWRawS85z3smdr3d2wXPsZEY7rDPfGd2g==" - }, - "etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==" - }, - "eval": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/eval/-/eval-0.1.8.tgz", - "integrity": "sha512-EzV94NYKoO09GLXGjXj9JIlXijVck4ONSr5wiCWDvhsvj5jxSrzTmRU/9C1DyB6uToszLs8aifA6NQ7lEQdvFw==", - "requires": { - "@types/node": "*", - "require-like": ">= 0.1.1" - } - }, - "eventemitter3": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", - "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" - }, - "events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==" - }, - "execa": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-7.1.1.tgz", - "integrity": "sha512-wH0eMf/UXckdUYnO21+HDztteVv05rq2GXksxT4fCGeHkBhw1DROXh40wcjMcRqDOWE7iPJ4n3M7e2+YFP+76Q==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.1", - "human-signals": "^4.3.0", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", - "signal-exit": "^3.0.7", - "strip-final-newline": "^3.0.0" - } - }, - "express": { - "version": "4.18.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", - "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", - "requires": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "1.20.1", - "content-disposition": "0.5.4", - "content-type": "~1.0.4", - "cookie": "0.5.0", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "1.2.0", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "merge-descriptors": "1.0.1", - "methods": "~1.1.2", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.7", - "proxy-addr": "~2.0.7", - "qs": "6.11.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "0.18.0", - "serve-static": "1.15.0", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "dependencies": { - "array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" - }, - "content-disposition": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", - "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "requires": { - "safe-buffer": "5.2.1" - } - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" - }, - "range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" - } - } - }, - "extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "requires": { - "is-extendable": "^0.1.0" - } - }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - }, - "fast-diff": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", - "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", - "dev": true - }, - "fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", - "requires": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - } - }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "devOptional": true - }, - "fast-url-parser": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/fast-url-parser/-/fast-url-parser-1.1.3.tgz", - "integrity": "sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ==", - "requires": { - "punycode": "^1.3.2" - } - }, - "fastest-levenshtein": { - "version": "1.0.16", - "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", - "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", - "dev": true - }, - "fastq": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", - "requires": { - "reusify": "^1.0.4" - } - }, - "faye-websocket": { - "version": "0.11.4", - "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", - "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", - "requires": { - "websocket-driver": ">=0.5.1" - } - }, - "fbemitter": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/fbemitter/-/fbemitter-3.0.0.tgz", - "integrity": "sha512-KWKaceCwKQU0+HPoop6gn4eOHk50bBv/VxjJtGMfwmJt3D29JpN4H4eisCtIPA+a8GVBam+ldMMpMjJUvpDyHw==", - "requires": { - "fbjs": "^3.0.0" - } - }, - "fbjs": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-3.0.5.tgz", - "integrity": "sha512-ztsSx77JBtkuMrEypfhgc3cI0+0h+svqeie7xHbh1k/IKdcydnvadp/mUaGgjAOXQmQSxsqgaRhS3q9fy+1kxg==", - "requires": { - "cross-fetch": "^3.1.5", - "fbjs-css-vars": "^1.0.0", - "loose-envify": "^1.0.0", - "object-assign": "^4.1.0", - "promise": "^7.1.1", - "setimmediate": "^1.0.5", - "ua-parser-js": "^1.0.35" - } - }, - "fbjs-css-vars": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/fbjs-css-vars/-/fbjs-css-vars-1.0.2.tgz", - "integrity": "sha512-b2XGFAFdWZWg0phtAWLHCk836A1Xann+I+Dgd3Gk64MHKZO44FfoD1KxyvbSh0qZsIoXQGGlVztIY+oitJPpRQ==" - }, - "feed": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/feed/-/feed-4.2.2.tgz", - "integrity": "sha512-u5/sxGfiMfZNtJ3OvQpXcvotFpYkL0n9u9mM2vkui2nGo8b4wvDkJ8gAkYqbA8QpGyFCv3RK0Z+Iv+9veCS9bQ==", - "requires": { - "xml-js": "^1.6.11" - } - }, - "file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "devOptional": true, - "requires": { - "flat-cache": "^3.0.4" - } - }, - "file-loader": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz", - "integrity": "sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==", - "requires": { - "loader-utils": "^2.0.0", - "schema-utils": "^3.0.0" - }, - "dependencies": { - "schema-utils": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", - "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } - } - } - }, - "filesize": { - "version": "8.0.7", - "resolved": "https://registry.npmjs.org/filesize/-/filesize-8.0.7.tgz", - "integrity": "sha512-pjmC+bkIF8XI7fWaH8KxHcZL3DPybs1roSKP4rKDvy20tAWwIObE4+JIseG2byfGKhud5ZnM4YSGKBz7Sh0ndQ==" - }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "finalhandler": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", - "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", - "requires": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "statuses": "2.0.1", - "unpipe": "~1.0.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - } - } - }, - "find-cache-dir": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", - "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", - "requires": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - } - }, - "find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "requires": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - } - }, - "flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", - "devOptional": true, - "requires": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" - } - }, - "flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "devOptional": true - }, - "flux": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/flux/-/flux-4.0.4.tgz", - "integrity": "sha512-NCj3XlayA2UsapRpM7va6wU1+9rE5FIL7qoMcmxWHRzbp0yujihMBm9BBHZ1MDIk5h5o2Bl6eGiCe8rYELAmYw==", - "requires": { - "fbemitter": "^3.0.0", - "fbjs": "^3.0.1" - } - }, - "follow-redirects": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", - "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==" - }, - "for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "dev": true, - "requires": { - "is-callable": "^1.1.3" - } - }, - "fork-ts-checker-webpack-plugin": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.5.3.tgz", - "integrity": "sha512-SbH/l9ikmMWycd5puHJKTkZJKddF4iRLyW3DeZ08HTI7NGyLS38MXd/KGgeWumQO7YNQbW2u/NtPT2YowbPaGQ==", - "requires": { - "@babel/code-frame": "^7.8.3", - "@types/json-schema": "^7.0.5", - "chalk": "^4.1.0", - "chokidar": "^3.4.2", - "cosmiconfig": "^6.0.0", - "deepmerge": "^4.2.2", - "fs-extra": "^9.0.0", - "glob": "^7.1.6", - "memfs": "^3.1.2", - "minimatch": "^3.0.4", - "schema-utils": "2.7.0", - "semver": "^7.3.2", - "tapable": "^1.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "cosmiconfig": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz", - "integrity": "sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==", - "requires": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.1.0", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.7.2" - } - }, - "fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "requires": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "requires": { - "yallist": "^4.0.0" - } - }, - "schema-utils": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.0.tgz", - "integrity": "sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==", - "requires": { - "@types/json-schema": "^7.0.4", - "ajv": "^6.12.2", - "ajv-keywords": "^3.4.1" - } - }, - "semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", - "requires": { - "lru-cache": "^6.0.0" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - }, - "tapable": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz", - "integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==" - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - } - } - }, - "forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==" - }, - "fraction.js": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", - "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==" - }, - "fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==" - }, - "fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "requires": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } - }, - "fs-monkey": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.4.tgz", - "integrity": "sha512-INM/fWAxMICjttnD0DX1rBvinKskj5G1w+oy/pnm9u/tSlnBrzFonJMcalKJ30P8RRsPzKcCG7Q8l0jx5Fh9YQ==" - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" - }, - "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "optional": true - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" - }, - "function.prototype.name": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" - } - }, - "functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true - }, - "gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==" - }, - "get-intrinsic": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", - "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", - "requires": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3" - } - }, - "get-own-enumerable-property-symbols": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz", - "integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==" - }, - "get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==" - }, - "get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - } - }, - "github-buttons": { - "version": "2.27.0", - "resolved": "https://registry.npmjs.org/github-buttons/-/github-buttons-2.27.0.tgz", - "integrity": "sha512-PmfRMI2Rttg/2jDfKBeSl621sEznrsKF019SuoLdoNlO7qRUZaOyEI5Li4uW+79pVqnDtKfIEVuHTIJ5lgy64w==" - }, - "github-slugger": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-1.5.0.tgz", - "integrity": "sha512-wIh+gKBI9Nshz2o46B0B3f5k/W+WI9ZAv6y5Dn5WJ5SK1t0TnDimB4WE5rmTD05ZAIn8HALCZVmCsvj0w0v0lw==" - }, - "glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "requires": { - "is-glob": "^4.0.1" - } - }, - "glob-to-regexp": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" - }, - "global-dirs": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.1.tgz", - "integrity": "sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA==", - "requires": { - "ini": "2.0.0" - }, - "dependencies": { - "ini": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz", - "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==" - } - } - }, - "global-modules": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", - "integrity": "sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==", - "requires": { - "global-prefix": "^3.0.0" - } + "react-dom": { + "optional": true + } + } + }, + "node_modules/@docusaurus/core": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/core/-/core-2.4.1.tgz", + "integrity": "sha512-SNsY7PshK3Ri7vtsLXVeAJGS50nJN3RgF836zkyUfAD01Fq+sAk5EwWgLw+nnm5KVNGDu7PRR2kRGDsWvqpo0g==", + "dependencies": { + "@babel/core": "^7.18.6", + "@babel/generator": "^7.18.7", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-transform-runtime": "^7.18.6", + "@babel/preset-env": "^7.18.6", + "@babel/preset-react": "^7.18.6", + "@babel/preset-typescript": "^7.18.6", + "@babel/runtime": "^7.18.6", + "@babel/runtime-corejs3": "^7.18.6", + "@babel/traverse": "^7.18.8", + "@docusaurus/cssnano-preset": "2.4.1", + "@docusaurus/logger": "2.4.1", + "@docusaurus/mdx-loader": "2.4.1", + "@docusaurus/react-loadable": "5.5.2", + "@docusaurus/utils": "2.4.1", + "@docusaurus/utils-common": "2.4.1", + "@docusaurus/utils-validation": "2.4.1", + "@slorber/static-site-generator-webpack-plugin": "^4.0.7", + "@svgr/webpack": "^6.2.1", + "autoprefixer": "^10.4.7", + "babel-loader": "^8.2.5", + "babel-plugin-dynamic-import-node": "^2.3.3", + "boxen": "^6.2.1", + "chalk": "^4.1.2", + "chokidar": "^3.5.3", + "clean-css": "^5.3.0", + "cli-table3": "^0.6.2", + "combine-promises": "^1.1.0", + "commander": "^5.1.0", + "copy-webpack-plugin": "^11.0.0", + "core-js": "^3.23.3", + "css-loader": "^6.7.1", + "css-minimizer-webpack-plugin": "^4.0.0", + "cssnano": "^5.1.12", + "del": "^6.1.1", + "detect-port": "^1.3.0", + "escape-html": "^1.0.3", + "eta": "^2.0.0", + "file-loader": "^6.2.0", + "fs-extra": "^10.1.0", + "html-minifier-terser": "^6.1.0", + "html-tags": "^3.2.0", + "html-webpack-plugin": "^5.5.0", + "import-fresh": "^3.3.0", + "leven": "^3.1.0", + "lodash": "^4.17.21", + "mini-css-extract-plugin": "^2.6.1", + "postcss": "^8.4.14", + "postcss-loader": "^7.0.0", + "prompts": "^2.4.2", + "react-dev-utils": "^12.0.1", + "react-helmet-async": "^1.3.0", + "react-loadable": "npm:@docusaurus/react-loadable@5.5.2", + "react-loadable-ssr-addon-v5-slorber": "^1.0.1", + "react-router": "^5.3.3", + "react-router-config": "^5.1.1", + "react-router-dom": "^5.3.3", + "rtl-detect": "^1.0.4", + "semver": "^7.3.7", + "serve-handler": "^6.1.3", + "shelljs": "^0.8.5", + "terser-webpack-plugin": "^5.3.3", + "tslib": "^2.4.0", + "update-notifier": "^5.1.0", + "url-loader": "^4.1.1", + "wait-on": "^6.0.1", + "webpack": "^5.73.0", + "webpack-bundle-analyzer": "^4.5.0", + "webpack-dev-server": "^4.9.3", + "webpack-merge": "^5.8.0", + "webpackbar": "^5.0.2" + }, + "bin": { + "docusaurus": "bin/docusaurus.mjs" + }, + "engines": { + "node": ">=16.14" + }, + "peerDependencies": { + "react": "^16.8.4 || ^17.0.0", + "react-dom": "^16.8.4 || ^17.0.0" + } + }, + "node_modules/@docusaurus/core/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@docusaurus/core/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@docusaurus/core/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@docusaurus/core/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/@docusaurus/core/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/@docusaurus/core/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@docusaurus/core/node_modules/semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@docusaurus/core/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@docusaurus/core/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "node_modules/@docusaurus/cssnano-preset": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/cssnano-preset/-/cssnano-preset-2.4.1.tgz", + "integrity": "sha512-ka+vqXwtcW1NbXxWsh6yA1Ckii1klY9E53cJ4O9J09nkMBgrNX3iEFED1fWdv8wf4mJjvGi5RLZ2p9hJNjsLyQ==", + "dependencies": { + "cssnano-preset-advanced": "^5.3.8", + "postcss": "^8.4.14", + "postcss-sort-media-queries": "^4.2.1", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.14" + } + }, + "node_modules/@docusaurus/eslint-plugin": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/eslint-plugin/-/eslint-plugin-2.4.1.tgz", + "integrity": "sha512-Sb+aLgf07v2xenPHlcBtvADFkE6xi1Nx9cKNb98Tq5MGoywHpxUfwT3RHar+eA8vCjR3fu0npSzuRt26AJa5lw==", + "dev": true, + "dependencies": { + "@typescript-eslint/utils": "^5.30.5", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.14" + }, + "peerDependencies": { + "eslint": ">=6" + } + }, + "node_modules/@docusaurus/logger": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/logger/-/logger-2.4.1.tgz", + "integrity": "sha512-5h5ysIIWYIDHyTVd8BjheZmQZmEgWDR54aQ1BX9pjFfpyzFo5puKXKYrYJXbjEHGyVhEzmB9UXwbxGfaZhOjcg==", + "dependencies": { + "chalk": "^4.1.2", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.14" + } + }, + "node_modules/@docusaurus/logger/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@docusaurus/logger/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@docusaurus/logger/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@docusaurus/logger/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/@docusaurus/logger/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/@docusaurus/logger/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@docusaurus/mdx-loader": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/mdx-loader/-/mdx-loader-2.4.1.tgz", + "integrity": "sha512-4KhUhEavteIAmbBj7LVFnrVYDiU51H5YWW1zY6SmBSte/YLhDutztLTBE0PQl1Grux1jzUJeaSvAzHpTn6JJDQ==", + "dependencies": { + "@babel/parser": "^7.18.8", + "@babel/traverse": "^7.18.8", + "@docusaurus/logger": "2.4.1", + "@docusaurus/utils": "2.4.1", + "@mdx-js/mdx": "^1.6.22", + "escape-html": "^1.0.3", + "file-loader": "^6.2.0", + "fs-extra": "^10.1.0", + "image-size": "^1.0.1", + "mdast-util-to-string": "^2.0.0", + "remark-emoji": "^2.2.0", + "stringify-object": "^3.3.0", + "tslib": "^2.4.0", + "unified": "^9.2.2", + "unist-util-visit": "^2.0.3", + "url-loader": "^4.1.1", + "webpack": "^5.73.0" + }, + "engines": { + "node": ">=16.14" + }, + "peerDependencies": { + "react": "^16.8.4 || ^17.0.0", + "react-dom": "^16.8.4 || ^17.0.0" + } + }, + "node_modules/@docusaurus/module-type-aliases": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/module-type-aliases/-/module-type-aliases-2.4.1.tgz", + "integrity": "sha512-gLBuIFM8Dp2XOCWffUDSjtxY7jQgKvYujt7Mx5s4FCTfoL5dN1EVbnrn+O2Wvh8b0a77D57qoIDY7ghgmatR1A==", + "dependencies": { + "@docusaurus/react-loadable": "5.5.2", + "@docusaurus/types": "2.4.1", + "@types/history": "^4.7.11", + "@types/react": "*", + "@types/react-router-config": "*", + "@types/react-router-dom": "*", + "react-helmet-async": "*", + "react-loadable": "npm:@docusaurus/react-loadable@5.5.2" + }, + "peerDependencies": { + "react": "*", + "react-dom": "*" + } + }, + "node_modules/@docusaurus/plugin-content-blog": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-blog/-/plugin-content-blog-2.4.1.tgz", + "integrity": "sha512-E2i7Knz5YIbE1XELI6RlTnZnGgS52cUO4BlCiCUCvQHbR+s1xeIWz4C6BtaVnlug0Ccz7nFSksfwDpVlkujg5Q==", + "dependencies": { + "@docusaurus/core": "2.4.1", + "@docusaurus/logger": "2.4.1", + "@docusaurus/mdx-loader": "2.4.1", + "@docusaurus/types": "2.4.1", + "@docusaurus/utils": "2.4.1", + "@docusaurus/utils-common": "2.4.1", + "@docusaurus/utils-validation": "2.4.1", + "cheerio": "^1.0.0-rc.12", + "feed": "^4.2.2", + "fs-extra": "^10.1.0", + "lodash": "^4.17.21", + "reading-time": "^1.5.0", + "tslib": "^2.4.0", + "unist-util-visit": "^2.0.3", + "utility-types": "^3.10.0", + "webpack": "^5.73.0" + }, + "engines": { + "node": ">=16.14" + }, + "peerDependencies": { + "react": "^16.8.4 || ^17.0.0", + "react-dom": "^16.8.4 || ^17.0.0" + } + }, + "node_modules/@docusaurus/plugin-content-docs": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-docs/-/plugin-content-docs-2.4.1.tgz", + "integrity": "sha512-Lo7lSIcpswa2Kv4HEeUcGYqaasMUQNpjTXpV0N8G6jXgZaQurqp7E8NGYeGbDXnb48czmHWbzDL4S3+BbK0VzA==", + "dependencies": { + "@docusaurus/core": "2.4.1", + "@docusaurus/logger": "2.4.1", + "@docusaurus/mdx-loader": "2.4.1", + "@docusaurus/module-type-aliases": "2.4.1", + "@docusaurus/types": "2.4.1", + "@docusaurus/utils": "2.4.1", + "@docusaurus/utils-validation": "2.4.1", + "@types/react-router-config": "^5.0.6", + "combine-promises": "^1.1.0", + "fs-extra": "^10.1.0", + "import-fresh": "^3.3.0", + "js-yaml": "^4.1.0", + "lodash": "^4.17.21", + "tslib": "^2.4.0", + "utility-types": "^3.10.0", + "webpack": "^5.73.0" + }, + "engines": { + "node": ">=16.14" + }, + "peerDependencies": { + "react": "^16.8.4 || ^17.0.0", + "react-dom": "^16.8.4 || ^17.0.0" + } + }, + "node_modules/@docusaurus/plugin-content-pages": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-pages/-/plugin-content-pages-2.4.1.tgz", + "integrity": "sha512-/UjuH/76KLaUlL+o1OvyORynv6FURzjurSjvn2lbWTFc4tpYY2qLYTlKpTCBVPhlLUQsfyFnshEJDLmPneq2oA==", + "dependencies": { + "@docusaurus/core": "2.4.1", + "@docusaurus/mdx-loader": "2.4.1", + "@docusaurus/types": "2.4.1", + "@docusaurus/utils": "2.4.1", + "@docusaurus/utils-validation": "2.4.1", + "fs-extra": "^10.1.0", + "tslib": "^2.4.0", + "webpack": "^5.73.0" + }, + "engines": { + "node": ">=16.14" + }, + "peerDependencies": { + "react": "^16.8.4 || ^17.0.0", + "react-dom": "^16.8.4 || ^17.0.0" + } + }, + "node_modules/@docusaurus/plugin-debug": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-debug/-/plugin-debug-2.4.1.tgz", + "integrity": "sha512-7Yu9UPzRShlrH/G8btOpR0e6INFZr0EegWplMjOqelIwAcx3PKyR8mgPTxGTxcqiYj6hxSCRN0D8R7YrzImwNA==", + "dependencies": { + "@docusaurus/core": "2.4.1", + "@docusaurus/types": "2.4.1", + "@docusaurus/utils": "2.4.1", + "fs-extra": "^10.1.0", + "react-json-view": "^1.21.3", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.14" + }, + "peerDependencies": { + "react": "^16.8.4 || ^17.0.0", + "react-dom": "^16.8.4 || ^17.0.0" + } + }, + "node_modules/@docusaurus/plugin-google-analytics": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-google-analytics/-/plugin-google-analytics-2.4.1.tgz", + "integrity": "sha512-dyZJdJiCoL+rcfnm0RPkLt/o732HvLiEwmtoNzOoz9MSZz117UH2J6U2vUDtzUzwtFLIf32KkeyzisbwUCgcaQ==", + "dependencies": { + "@docusaurus/core": "2.4.1", + "@docusaurus/types": "2.4.1", + "@docusaurus/utils-validation": "2.4.1", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.14" + }, + "peerDependencies": { + "react": "^16.8.4 || ^17.0.0", + "react-dom": "^16.8.4 || ^17.0.0" + } + }, + "node_modules/@docusaurus/plugin-google-gtag": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-google-gtag/-/plugin-google-gtag-2.4.1.tgz", + "integrity": "sha512-mKIefK+2kGTQBYvloNEKtDmnRD7bxHLsBcxgnbt4oZwzi2nxCGjPX6+9SQO2KCN5HZbNrYmGo5GJfMgoRvy6uA==", + "dependencies": { + "@docusaurus/core": "2.4.1", + "@docusaurus/types": "2.4.1", + "@docusaurus/utils-validation": "2.4.1", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.14" + }, + "peerDependencies": { + "react": "^16.8.4 || ^17.0.0", + "react-dom": "^16.8.4 || ^17.0.0" + } + }, + "node_modules/@docusaurus/plugin-google-tag-manager": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-google-tag-manager/-/plugin-google-tag-manager-2.4.1.tgz", + "integrity": "sha512-Zg4Ii9CMOLfpeV2nG74lVTWNtisFaH9QNtEw48R5QE1KIwDBdTVaiSA18G1EujZjrzJJzXN79VhINSbOJO/r3g==", + "dependencies": { + "@docusaurus/core": "2.4.1", + "@docusaurus/types": "2.4.1", + "@docusaurus/utils-validation": "2.4.1", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.14" + }, + "peerDependencies": { + "react": "^16.8.4 || ^17.0.0", + "react-dom": "^16.8.4 || ^17.0.0" + } + }, + "node_modules/@docusaurus/plugin-sitemap": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-sitemap/-/plugin-sitemap-2.4.1.tgz", + "integrity": "sha512-lZx+ijt/+atQ3FVE8FOHV/+X3kuok688OydDXrqKRJyXBJZKgGjA2Qa8RjQ4f27V2woaXhtnyrdPop/+OjVMRg==", + "dependencies": { + "@docusaurus/core": "2.4.1", + "@docusaurus/logger": "2.4.1", + "@docusaurus/types": "2.4.1", + "@docusaurus/utils": "2.4.1", + "@docusaurus/utils-common": "2.4.1", + "@docusaurus/utils-validation": "2.4.1", + "fs-extra": "^10.1.0", + "sitemap": "^7.1.1", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.14" + }, + "peerDependencies": { + "react": "^16.8.4 || ^17.0.0", + "react-dom": "^16.8.4 || ^17.0.0" + } + }, + "node_modules/@docusaurus/preset-classic": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/preset-classic/-/preset-classic-2.4.1.tgz", + "integrity": "sha512-P4//+I4zDqQJ+UDgoFrjIFaQ1MeS9UD1cvxVQaI6O7iBmiHQm0MGROP1TbE7HlxlDPXFJjZUK3x3cAoK63smGQ==", + "dependencies": { + "@docusaurus/core": "2.4.1", + "@docusaurus/plugin-content-blog": "2.4.1", + "@docusaurus/plugin-content-docs": "2.4.1", + "@docusaurus/plugin-content-pages": "2.4.1", + "@docusaurus/plugin-debug": "2.4.1", + "@docusaurus/plugin-google-analytics": "2.4.1", + "@docusaurus/plugin-google-gtag": "2.4.1", + "@docusaurus/plugin-google-tag-manager": "2.4.1", + "@docusaurus/plugin-sitemap": "2.4.1", + "@docusaurus/theme-classic": "2.4.1", + "@docusaurus/theme-common": "2.4.1", + "@docusaurus/theme-search-algolia": "2.4.1", + "@docusaurus/types": "2.4.1" + }, + "engines": { + "node": ">=16.14" + }, + "peerDependencies": { + "react": "^16.8.4 || ^17.0.0", + "react-dom": "^16.8.4 || ^17.0.0" + } + }, + "node_modules/@docusaurus/react-loadable": { + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz", + "integrity": "sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ==", + "dependencies": { + "@types/react": "*", + "prop-types": "^15.6.2" + }, + "peerDependencies": { + "react": "*" + } + }, + "node_modules/@docusaurus/theme-classic": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/theme-classic/-/theme-classic-2.4.1.tgz", + "integrity": "sha512-Rz0wKUa+LTW1PLXmwnf8mn85EBzaGSt6qamqtmnh9Hflkc+EqiYMhtUJeLdV+wsgYq4aG0ANc+bpUDpsUhdnwg==", + "dependencies": { + "@docusaurus/core": "2.4.1", + "@docusaurus/mdx-loader": "2.4.1", + "@docusaurus/module-type-aliases": "2.4.1", + "@docusaurus/plugin-content-blog": "2.4.1", + "@docusaurus/plugin-content-docs": "2.4.1", + "@docusaurus/plugin-content-pages": "2.4.1", + "@docusaurus/theme-common": "2.4.1", + "@docusaurus/theme-translations": "2.4.1", + "@docusaurus/types": "2.4.1", + "@docusaurus/utils": "2.4.1", + "@docusaurus/utils-common": "2.4.1", + "@docusaurus/utils-validation": "2.4.1", + "@mdx-js/react": "^1.6.22", + "clsx": "^1.2.1", + "copy-text-to-clipboard": "^3.0.1", + "infima": "0.2.0-alpha.43", + "lodash": "^4.17.21", + "nprogress": "^0.2.0", + "postcss": "^8.4.14", + "prism-react-renderer": "^1.3.5", + "prismjs": "^1.28.0", + "react-router-dom": "^5.3.3", + "rtlcss": "^3.5.0", + "tslib": "^2.4.0", + "utility-types": "^3.10.0" + }, + "engines": { + "node": ">=16.14" + }, + "peerDependencies": { + "react": "^16.8.4 || ^17.0.0", + "react-dom": "^16.8.4 || ^17.0.0" + } + }, + "node_modules/@docusaurus/theme-common": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/theme-common/-/theme-common-2.4.1.tgz", + "integrity": "sha512-G7Zau1W5rQTaFFB3x3soQoZpkgMbl/SYNG8PfMFIjKa3M3q8n0m/GRf5/H/e5BqOvt8c+ZWIXGCiz+kUCSHovA==", + "dependencies": { + "@docusaurus/mdx-loader": "2.4.1", + "@docusaurus/module-type-aliases": "2.4.1", + "@docusaurus/plugin-content-blog": "2.4.1", + "@docusaurus/plugin-content-docs": "2.4.1", + "@docusaurus/plugin-content-pages": "2.4.1", + "@docusaurus/utils": "2.4.1", + "@docusaurus/utils-common": "2.4.1", + "@types/history": "^4.7.11", + "@types/react": "*", + "@types/react-router-config": "*", + "clsx": "^1.2.1", + "parse-numeric-range": "^1.3.0", + "prism-react-renderer": "^1.3.5", + "tslib": "^2.4.0", + "use-sync-external-store": "^1.2.0", + "utility-types": "^3.10.0" + }, + "engines": { + "node": ">=16.14" + }, + "peerDependencies": { + "react": "^16.8.4 || ^17.0.0", + "react-dom": "^16.8.4 || ^17.0.0" + } + }, + "node_modules/@docusaurus/theme-search-algolia": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/theme-search-algolia/-/theme-search-algolia-2.4.1.tgz", + "integrity": "sha512-6BcqW2lnLhZCXuMAvPRezFs1DpmEKzXFKlYjruuas+Xy3AQeFzDJKTJFIm49N77WFCTyxff8d3E4Q9pi/+5McQ==", + "dependencies": { + "@docsearch/react": "^3.1.1", + "@docusaurus/core": "2.4.1", + "@docusaurus/logger": "2.4.1", + "@docusaurus/plugin-content-docs": "2.4.1", + "@docusaurus/theme-common": "2.4.1", + "@docusaurus/theme-translations": "2.4.1", + "@docusaurus/utils": "2.4.1", + "@docusaurus/utils-validation": "2.4.1", + "algoliasearch": "^4.13.1", + "algoliasearch-helper": "^3.10.0", + "clsx": "^1.2.1", + "eta": "^2.0.0", + "fs-extra": "^10.1.0", + "lodash": "^4.17.21", + "tslib": "^2.4.0", + "utility-types": "^3.10.0" + }, + "engines": { + "node": ">=16.14" + }, + "peerDependencies": { + "react": "^16.8.4 || ^17.0.0", + "react-dom": "^16.8.4 || ^17.0.0" + } + }, + "node_modules/@docusaurus/theme-translations": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/theme-translations/-/theme-translations-2.4.1.tgz", + "integrity": "sha512-T1RAGP+f86CA1kfE8ejZ3T3pUU3XcyvrGMfC/zxCtc2BsnoexuNI9Vk2CmuKCb+Tacvhxjv5unhxXce0+NKyvA==", + "dependencies": { + "fs-extra": "^10.1.0", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.14" + } + }, + "node_modules/@docusaurus/types": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/types/-/types-2.4.1.tgz", + "integrity": "sha512-0R+cbhpMkhbRXX138UOc/2XZFF8hiZa6ooZAEEJFp5scytzCw4tC1gChMFXrpa3d2tYE6AX8IrOEpSonLmfQuQ==", + "dependencies": { + "@types/history": "^4.7.11", + "@types/react": "*", + "commander": "^5.1.0", + "joi": "^17.6.0", + "react-helmet-async": "^1.3.0", + "utility-types": "^3.10.0", + "webpack": "^5.73.0", + "webpack-merge": "^5.8.0" + }, + "peerDependencies": { + "react": "^16.8.4 || ^17.0.0", + "react-dom": "^16.8.4 || ^17.0.0" + } + }, + "node_modules/@docusaurus/utils": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/utils/-/utils-2.4.1.tgz", + "integrity": "sha512-1lvEZdAQhKNht9aPXPoh69eeKnV0/62ROhQeFKKxmzd0zkcuE/Oc5Gpnt00y/f5bIsmOsYMY7Pqfm/5rteT5GA==", + "dependencies": { + "@docusaurus/logger": "2.4.1", + "@svgr/webpack": "^6.2.1", + "escape-string-regexp": "^4.0.0", + "file-loader": "^6.2.0", + "fs-extra": "^10.1.0", + "github-slugger": "^1.4.0", + "globby": "^11.1.0", + "gray-matter": "^4.0.3", + "js-yaml": "^4.1.0", + "lodash": "^4.17.21", + "micromatch": "^4.0.5", + "resolve-pathname": "^3.0.0", + "shelljs": "^0.8.5", + "tslib": "^2.4.0", + "url-loader": "^4.1.1", + "webpack": "^5.73.0" + }, + "engines": { + "node": ">=16.14" + }, + "peerDependencies": { + "@docusaurus/types": "*" + }, + "peerDependenciesMeta": { + "@docusaurus/types": { + "optional": true + } + } + }, + "node_modules/@docusaurus/utils-common": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/utils-common/-/utils-common-2.4.1.tgz", + "integrity": "sha512-bCVGdZU+z/qVcIiEQdyx0K13OC5mYwxhSuDUR95oFbKVuXYRrTVrwZIqQljuo1fyJvFTKHiL9L9skQOPokuFNQ==", + "dependencies": { + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.14" + }, + "peerDependencies": { + "@docusaurus/types": "*" + }, + "peerDependenciesMeta": { + "@docusaurus/types": { + "optional": true + } + } + }, + "node_modules/@docusaurus/utils-validation": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/utils-validation/-/utils-validation-2.4.1.tgz", + "integrity": "sha512-unII3hlJlDwZ3w8U+pMO3Lx3RhI4YEbY3YNsQj4yzrkZzlpqZOLuAiZK2JyULnD+TKbceKU0WyWkQXtYbLNDFA==", + "dependencies": { + "@docusaurus/logger": "2.4.1", + "@docusaurus/utils": "2.4.1", + "joi": "^17.6.0", + "js-yaml": "^4.1.0", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.14" + } + }, + "node_modules/@easyops-cn/autocomplete.js": { + "version": "0.38.1", + "resolved": "https://registry.npmjs.org/@easyops-cn/autocomplete.js/-/autocomplete.js-0.38.1.tgz", + "integrity": "sha512-drg76jS6syilOUmVNkyo1c7ZEBPcPuK+aJA7AksM5ZIIbV57DMHCywiCr+uHyv8BE5jUTU98j/H7gVrkHrWW3Q==", + "dependencies": { + "cssesc": "^3.0.0", + "immediate": "^3.2.3" + } + }, + "node_modules/@easyops-cn/docusaurus-search-local": { + "version": "0.35.0", + "resolved": "https://registry.npmjs.org/@easyops-cn/docusaurus-search-local/-/docusaurus-search-local-0.35.0.tgz", + "integrity": "sha512-sHQ8jxsVgHH8MNXJlj20nZZfP/Q0peNTAJwKCN2aPuBwfRIoO0i7LmZFaYKenZmVAW/BD2MtfVd65SREmm3zxg==", + "dependencies": { + "@docusaurus/plugin-content-docs": "^2.0.0-rc.1", + "@docusaurus/theme-translations": "^2.0.0-rc.1", + "@docusaurus/utils": "^2.0.0-rc.1", + "@docusaurus/utils-common": "^2.0.0-rc.1", + "@docusaurus/utils-validation": "^2.0.0-rc.1", + "@easyops-cn/autocomplete.js": "^0.38.1", + "@node-rs/jieba": "^1.6.0", + "cheerio": "^1.0.0-rc.3", + "clsx": "^1.1.1", + "debug": "^4.2.0", + "fs-extra": "^10.0.0", + "klaw-sync": "^6.0.0", + "lunr": "^2.3.9", + "lunr-languages": "^1.4.0", + "mark.js": "^8.11.1", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "@docusaurus/theme-common": "^2.0.0-rc.1", + "react": "^16.14.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "devOptional": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "devOptional": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", + "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", + "devOptional": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz", + "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==", + "devOptional": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.5.2", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "devOptional": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/eslintrc/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "devOptional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "8.42.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.42.0.tgz", + "integrity": "sha512-6SWlXpWU5AvId8Ac7zjzmIOqMOba/JWY8XZ4A7q7Gn1Vlfg/SFFIlrtHXt9nPn4op9ZPAkl91Jao+QQv3r/ukw==", + "devOptional": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@hapi/hoek": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", + "integrity": "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==" + }, + "node_modules/@hapi/topo": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz", + "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==", + "dependencies": { + "@hapi/hoek": "^9.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz", + "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==", + "devOptional": true, + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "devOptional": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "devOptional": true + }, + "node_modules/@jest/schemas": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.4.3.tgz", + "integrity": "sha512-VLYKXQmtmuEz6IxJsrZwzG9NvtkQsWNnWMsKxqWNu3+CnfzJQhp0WDDKWLVV9hLKr0l3SLLFRqcYHjhtyuDVxg==", + "dependencies": { + "@sinclair/typebox": "^0.25.16" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.5.0.tgz", + "integrity": "sha512-qbu7kN6czmVRc3xWFQcAN03RAUamgppVUdXrvl1Wr3jlNF93o9mJbGcDWrwGB6ht44u7efB1qCFgVQmca24Uog==", + "dependencies": { + "@jest/schemas": "^29.4.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/types/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/types/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/types/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/@jest/types/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/types/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz", + "integrity": "sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.18", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", + "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", + "dependencies": { + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + } + }, + "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" + }, + "node_modules/@leichtgewicht/ip-codec": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz", + "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==" + }, + "node_modules/@mdx-js/mdx": { + "version": "1.6.22", + "resolved": "https://registry.npmjs.org/@mdx-js/mdx/-/mdx-1.6.22.tgz", + "integrity": "sha512-AMxuLxPz2j5/6TpF/XSdKpQP1NlG0z11dFOlq+2IP/lSgl11GY8ji6S/rgsViN/L0BDvHvUMruRb7ub+24LUYA==", + "dependencies": { + "@babel/core": "7.12.9", + "@babel/plugin-syntax-jsx": "7.12.1", + "@babel/plugin-syntax-object-rest-spread": "7.8.3", + "@mdx-js/util": "1.6.22", + "babel-plugin-apply-mdx-type-prop": "1.6.22", + "babel-plugin-extract-import-names": "1.6.22", + "camelcase-css": "2.0.1", + "detab": "2.0.4", + "hast-util-raw": "6.0.1", + "lodash.uniq": "4.5.0", + "mdast-util-to-hast": "10.0.1", + "remark-footnotes": "2.0.0", + "remark-mdx": "1.6.22", + "remark-parse": "8.0.3", + "remark-squeeze-paragraphs": "4.0.0", + "style-to-object": "0.3.0", + "unified": "9.2.0", + "unist-builder": "2.0.3", + "unist-util-visit": "2.0.3" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/@mdx-js/mdx/node_modules/@babel/core": { + "version": "7.12.9", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.9.tgz", + "integrity": "sha512-gTXYh3M5wb7FRXQy+FErKFAv90BnlOuNn1QkCK2lREoPAjrQCO49+HVSrFoe5uakFAF5eenS75KbO2vQiLrTMQ==", + "dependencies": { + "@babel/code-frame": "^7.10.4", + "@babel/generator": "^7.12.5", + "@babel/helper-module-transforms": "^7.12.1", + "@babel/helpers": "^7.12.5", + "@babel/parser": "^7.12.7", + "@babel/template": "^7.12.7", + "@babel/traverse": "^7.12.9", + "@babel/types": "^7.12.7", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.1", + "json5": "^2.1.2", + "lodash": "^4.17.19", + "resolve": "^1.3.2", + "semver": "^5.4.1", + "source-map": "^0.5.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@mdx-js/mdx/node_modules/@babel/plugin-syntax-jsx": { + "version": "7.12.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.12.1.tgz", + "integrity": "sha512-1yRi7yAtB0ETgxdY9ti/p2TivUxJkTdhu/ZbF9MshVGqOx1TdB3b7xCXs49Fupgg50N45KcAsRP/ZqWjs9SRjg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@mdx-js/mdx/node_modules/is-plain-obj": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", + "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/@mdx-js/mdx/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/@mdx-js/mdx/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@mdx-js/mdx/node_modules/unified": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/unified/-/unified-9.2.0.tgz", + "integrity": "sha512-vx2Z0vY+a3YoTj8+pttM3tiJHCwY5UFbYdiWrwBEbHmK8pvsPj2rtAX2BFfgXen8T39CJWblWRDT4L5WGXtDdg==", + "dependencies": { + "bail": "^1.0.0", + "extend": "^3.0.0", + "is-buffer": "^2.0.0", + "is-plain-obj": "^2.0.0", + "trough": "^1.0.0", + "vfile": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/@mdx-js/react": { + "version": "1.6.22", + "resolved": "https://registry.npmjs.org/@mdx-js/react/-/react-1.6.22.tgz", + "integrity": "sha512-TDoPum4SHdfPiGSAaRBw7ECyI8VaHpK8GJugbJIJuqyh6kzw9ZLJZW3HGL3NNrJGxcAixUvqROm+YuQOo5eXtg==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + }, + "peerDependencies": { + "react": "^16.13.1 || ^17.0.0" + } + }, + "node_modules/@mdx-js/util": { + "version": "1.6.22", + "resolved": "https://registry.npmjs.org/@mdx-js/util/-/util-1.6.22.tgz", + "integrity": "sha512-H1rQc1ZOHANWBvPcW+JpGwr+juXSxM8Q8YCkm3GhZd8REu1fHR3z99CErO1p9pkcfcxZnMdIZdIsXkOHY0NilA==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/@nicolo-ribaudo/eslint-scope-5-internals": { + "version": "5.1.1-v1", + "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz", + "integrity": "sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==", + "dev": true, + "dependencies": { + "eslint-scope": "5.1.1" + } + }, + "node_modules/@node-rs/jieba": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba/-/jieba-1.7.0.tgz", + "integrity": "sha512-Hm1JIlejxkWe1FSFZRns/g1j5hZmp357n+0n2BluABA4KLZ8EraHfPmPRmVMW6vbdMZObTYIVu5aVrPnUfBOxg==", + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "optionalDependencies": { + "@node-rs/jieba-android-arm-eabi": "1.7.0", + "@node-rs/jieba-android-arm64": "1.7.0", + "@node-rs/jieba-darwin-arm64": "1.7.0", + "@node-rs/jieba-darwin-x64": "1.7.0", + "@node-rs/jieba-freebsd-x64": "1.7.0", + "@node-rs/jieba-linux-arm-gnueabihf": "1.7.0", + "@node-rs/jieba-linux-arm64-gnu": "1.7.0", + "@node-rs/jieba-linux-arm64-musl": "1.7.0", + "@node-rs/jieba-linux-x64-gnu": "1.7.0", + "@node-rs/jieba-linux-x64-musl": "1.7.0", + "@node-rs/jieba-win32-arm64-msvc": "1.7.0", + "@node-rs/jieba-win32-ia32-msvc": "1.7.0", + "@node-rs/jieba-win32-x64-msvc": "1.7.0" + } + }, + "node_modules/@node-rs/jieba-android-arm-eabi": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-android-arm-eabi/-/jieba-android-arm-eabi-1.7.0.tgz", + "integrity": "sha512-XF4OYcZCyDiBK+jm1Zmt2o+xEO7K2K5OvUC3MTc9jd3Lwvy3EdHp8tpGvEp8PxfVFe2/JxNzX4OQQQP3Dhmk9A==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/jieba-android-arm64": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-android-arm64/-/jieba-android-arm64-1.7.0.tgz", + "integrity": "sha512-9oWwFVr/37T89WC+jjiI9A6u0zUJNTJl5ZC4CMxX45MVMokWI7bBXU7t7qBmMdFBzj+OFwDd3sm1fh4vl7NSWA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/jieba-darwin-arm64": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-darwin-arm64/-/jieba-darwin-arm64-1.7.0.tgz", + "integrity": "sha512-9gBuxJCNITNI/gU5l8eeVGQ9MAf0BV86lfeo9TeU61vJCy6sqyx26wFMLODQgLNdiMP+q/fZme/G0hfZUjfPVA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/jieba-darwin-x64": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-darwin-x64/-/jieba-darwin-x64-1.7.0.tgz", + "integrity": "sha512-FFUSMY4tl0Prpxa1SHy7Yzze2KfV/bZzccpO5nd+a8zCKbiX6gVkJ89FfxSAD2QrXUGkZvJYiPmu5nkZItqRZQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/jieba-freebsd-x64": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-freebsd-x64/-/jieba-freebsd-x64-1.7.0.tgz", + "integrity": "sha512-QFz2pz0Br+621QbKkgQPqTn90j1kcCD9jaI++qTLNHJGlWLRn6sFoAjb+jQEQEy9aE7VqfIV56eaVcCoU5VO2w==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/jieba-linux-arm-gnueabihf": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-arm-gnueabihf/-/jieba-linux-arm-gnueabihf-1.7.0.tgz", + "integrity": "sha512-kHJxO2sd7gMKqI1YS5DjABEcRwRemaCtgbKSuUqEaHGmUz9nAaUF6FSY8U4rXwr7HXt+kQa4NgyYDjgz+Pscrw==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/jieba-linux-arm64-gnu": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-arm64-gnu/-/jieba-linux-arm64-gnu-1.7.0.tgz", + "integrity": "sha512-3qoCV9pF6llPBGDMu7K8JdHjI10WPkrq6P2gpZESqekcE4DatV6DcU9FWR+QL7MK/7meoE3/Zhjm7OK+qBd8gg==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/jieba-linux-arm64-musl": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-arm64-musl/-/jieba-linux-arm64-musl-1.7.0.tgz", + "integrity": "sha512-xv6hvzOV7iTCq7mM8SWhC3zEk6CqmBwhOSlfbb3gvPkc4U1UA1hmvcrD7oO5Qn+U+nuswysGCdVU6Z5AypLDfg==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/jieba-linux-x64-gnu": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-x64-gnu/-/jieba-linux-x64-gnu-1.7.0.tgz", + "integrity": "sha512-NpelWidMSNLoFTw+ov3y5jhJZjapHwEnh0Fyfm/7mvqkdwzVyedqNj22etRGum+nsAosMotCUWUznIMAD075gQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/jieba-linux-x64-musl": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-x64-musl/-/jieba-linux-x64-musl-1.7.0.tgz", + "integrity": "sha512-yG4F8sy+fW4RbhyKXmEMT/JGuQuKH0TGymCEGYgT0km2I60iys63jWf2VTzCtrx583wxN5XoHv5HN60nhtIBtw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/jieba-win32-arm64-msvc": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-win32-arm64-msvc/-/jieba-win32-arm64-msvc-1.7.0.tgz", + "integrity": "sha512-R6l/BSMs6R6BwpZS6DIDZuAEjUIPdAHgyi+xptP3mICjm6U+GMsvsRTeZkIJ7a/yzYUfqvz54VpQsfE5f0psBQ==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/jieba-win32-ia32-msvc": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-win32-ia32-msvc/-/jieba-win32-ia32-msvc-1.7.0.tgz", + "integrity": "sha512-FwibbuizEjzom02K2JM2T8tL0VlxW5xGDDy3L3dgx46xIGE85PwGYjgju+eDt4UODgxDsxGC4DUMMZf3XvCc7A==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/jieba-win32-x64-msvc": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-win32-x64-msvc/-/jieba-win32-x64-msvc-1.7.0.tgz", + "integrity": "sha512-pJv7nluB6azhsOWvJB86Dyfg/M7n9k49bs9Bwmsylz9uhdZX9QnEShDW934RdmnjPYQ5aPgsSFrY6NXP/aovUA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@polka/url": { + "version": "1.0.0-next.21", + "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.21.tgz", + "integrity": "sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==" + }, + "node_modules/@sideway/address": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.4.tgz", + "integrity": "sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw==", + "dependencies": { + "@hapi/hoek": "^9.0.0" + } + }, + "node_modules/@sideway/formula": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.1.tgz", + "integrity": "sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==" + }, + "node_modules/@sideway/pinpoint": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz", + "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==" + }, + "node_modules/@sinclair/typebox": { + "version": "0.25.24", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.25.24.tgz", + "integrity": "sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==" + }, + "node_modules/@sindresorhus/is": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", + "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/@slorber/static-site-generator-webpack-plugin": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/@slorber/static-site-generator-webpack-plugin/-/static-site-generator-webpack-plugin-4.0.7.tgz", + "integrity": "sha512-Ug7x6z5lwrz0WqdnNFOMYrDQNTPAprvHLSh6+/fmml3qUiz6l5eq+2MzLKWtn/q5K5NpSiFsZTP/fck/3vjSxA==", + "dependencies": { + "eval": "^0.1.8", + "p-map": "^4.0.0", + "webpack-sources": "^3.2.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@svgr/babel-plugin-add-jsx-attribute": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-6.5.1.tgz", + "integrity": "sha512-9PYGcXrAxitycIjRmZB+Q0JaN07GZIWaTBIGQzfaZv+qr1n8X1XUEJ5rZ/vx6OVD9RRYlrNnXWExQXcmZeD/BQ==", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@svgr/babel-plugin-remove-jsx-attribute": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-8.0.0.tgz", + "integrity": "sha512-BcCkm/STipKvbCl6b7QFrMh/vx00vIP63k2eM66MfHJzPr6O2U0jYEViXkHJWqXqQYjdeA9cuCl5KWmlwjDvbA==", + "engines": { + "node": ">=14" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@svgr/babel-plugin-remove-jsx-empty-expression": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-8.0.0.tgz", + "integrity": "sha512-5BcGCBfBxB5+XSDSWnhTThfI9jcO5f0Ai2V24gZpG+wXF14BzwxxdDb4g6trdOux0rhibGs385BeFMSmxtS3uA==", + "engines": { + "node": ">=14" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@svgr/babel-plugin-replace-jsx-attribute-value": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-6.5.1.tgz", + "integrity": "sha512-8DPaVVE3fd5JKuIC29dqyMB54sA6mfgki2H2+swh+zNJoynC8pMPzOkidqHOSc6Wj032fhl8Z0TVn1GiPpAiJg==", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@svgr/babel-plugin-svg-dynamic-title": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-6.5.1.tgz", + "integrity": "sha512-FwOEi0Il72iAzlkaHrlemVurgSQRDFbk0OC8dSvD5fSBPHltNh7JtLsxmZUhjYBZo2PpcU/RJvvi6Q0l7O7ogw==", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@svgr/babel-plugin-svg-em-dimensions": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-6.5.1.tgz", + "integrity": "sha512-gWGsiwjb4tw+ITOJ86ndY/DZZ6cuXMNE/SjcDRg+HLuCmwpcjOktwRF9WgAiycTqJD/QXqL2f8IzE2Rzh7aVXA==", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@svgr/babel-plugin-transform-react-native-svg": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-6.5.1.tgz", + "integrity": "sha512-2jT3nTayyYP7kI6aGutkyfJ7UMGtuguD72OjeGLwVNyfPRBD8zQthlvL+fAbAKk5n9ZNcvFkp/b1lZ7VsYqVJg==", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@svgr/babel-plugin-transform-svg-component": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-6.5.1.tgz", + "integrity": "sha512-a1p6LF5Jt33O3rZoVRBqdxL350oge54iZWHNI6LJB5tQ7EelvD/Mb1mfBiZNAan0dt4i3VArkFRjA4iObuNykQ==", + "engines": { + "node": ">=12" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@svgr/babel-preset": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-6.5.1.tgz", + "integrity": "sha512-6127fvO/FF2oi5EzSQOAjo1LE3OtNVh11R+/8FXa+mHx1ptAaS4cknIjnUA7e6j6fwGGJ17NzaTJFUwOV2zwCw==", + "dependencies": { + "@svgr/babel-plugin-add-jsx-attribute": "^6.5.1", + "@svgr/babel-plugin-remove-jsx-attribute": "*", + "@svgr/babel-plugin-remove-jsx-empty-expression": "*", + "@svgr/babel-plugin-replace-jsx-attribute-value": "^6.5.1", + "@svgr/babel-plugin-svg-dynamic-title": "^6.5.1", + "@svgr/babel-plugin-svg-em-dimensions": "^6.5.1", + "@svgr/babel-plugin-transform-react-native-svg": "^6.5.1", + "@svgr/babel-plugin-transform-svg-component": "^6.5.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@svgr/core": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/core/-/core-6.5.1.tgz", + "integrity": "sha512-/xdLSWxK5QkqG524ONSjvg3V/FkNyCv538OIBdQqPNaAta3AsXj/Bd2FbvR87yMbXO2hFSWiAe/Q6IkVPDw+mw==", + "dependencies": { + "@babel/core": "^7.19.6", + "@svgr/babel-preset": "^6.5.1", + "@svgr/plugin-jsx": "^6.5.1", + "camelcase": "^6.2.0", + "cosmiconfig": "^7.0.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/hast-util-to-babel-ast": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-6.5.1.tgz", + "integrity": "sha512-1hnUxxjd83EAxbL4a0JDJoD3Dao3hmjvyvyEV8PzWmLK3B9m9NPlW7GKjFyoWE8nM7HnXzPcmmSyOW8yOddSXw==", + "dependencies": { + "@babel/types": "^7.20.0", + "entities": "^4.4.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/plugin-jsx": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-6.5.1.tgz", + "integrity": "sha512-+UdQxI3jgtSjCykNSlEMuy1jSRQlGC7pqBCPvkG/2dATdWo082zHTTK3uhnAju2/6XpE6B5mZ3z4Z8Ns01S8Gw==", + "dependencies": { + "@babel/core": "^7.19.6", + "@svgr/babel-preset": "^6.5.1", + "@svgr/hast-util-to-babel-ast": "^6.5.1", + "svg-parser": "^2.0.4" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@svgr/core": "^6.0.0" + } + }, + "node_modules/@svgr/plugin-svgo": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/plugin-svgo/-/plugin-svgo-6.5.1.tgz", + "integrity": "sha512-omvZKf8ixP9z6GWgwbtmP9qQMPX4ODXi+wzbVZgomNFsUIlHA1sf4fThdwTWSsZGgvGAG6yE+b/F5gWUkcZ/iQ==", + "dependencies": { + "cosmiconfig": "^7.0.1", + "deepmerge": "^4.2.2", + "svgo": "^2.8.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@svgr/core": "*" + } + }, + "node_modules/@svgr/webpack": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/webpack/-/webpack-6.5.1.tgz", + "integrity": "sha512-cQ/AsnBkXPkEK8cLbv4Dm7JGXq2XrumKnL1dRpJD9rIO2fTIlJI9a1uCciYG1F2aUsox/hJQyNGbt3soDxSRkA==", + "dependencies": { + "@babel/core": "^7.19.6", + "@babel/plugin-transform-react-constant-elements": "^7.18.12", + "@babel/preset-env": "^7.19.4", + "@babel/preset-react": "^7.18.6", + "@babel/preset-typescript": "^7.18.6", + "@svgr/core": "^6.5.1", + "@svgr/plugin-jsx": "^6.5.1", + "@svgr/plugin-svgo": "^6.5.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@szmarczak/http-timer": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", + "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", + "dependencies": { + "defer-to-connect": "^1.0.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@trysound/sax": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", + "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/@tsconfig/docusaurus": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@tsconfig/docusaurus/-/docusaurus-1.0.7.tgz", + "integrity": "sha512-ffTXxGIP/IRMCjuzHd6M4/HdIrw1bMfC7Bv8hMkTadnePkpe0lG0oDSdbRpSDZb2rQMAgpbWiR10BvxvNYwYrg==", + "dev": true + }, + "node_modules/@types/body-parser": { + "version": "1.19.2", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", + "integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==", + "dependencies": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "node_modules/@types/bonjour": { + "version": "3.5.10", + "resolved": "https://registry.npmjs.org/@types/bonjour/-/bonjour-3.5.10.tgz", + "integrity": "sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/connect": { + "version": "3.4.35", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", + "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/connect-history-api-fallback": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.0.tgz", + "integrity": "sha512-4x5FkPpLipqwthjPsF7ZRbOv3uoLUFkTA9G9v583qi4pACvq0uTELrB8OLUzPWUI4IJIyvM85vzkV1nyiI2Lig==", + "dependencies": { + "@types/express-serve-static-core": "*", + "@types/node": "*" + } + }, + "node_modules/@types/debug": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz", + "integrity": "sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==", + "dependencies": { + "@types/ms": "*" + } + }, + "node_modules/@types/eslint": { + "version": "8.40.0", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.40.0.tgz", + "integrity": "sha512-nbq2mvc/tBrK9zQQuItvjJl++GTN5j06DaPtp3hZCpngmG6Q3xoyEmd0TwZI0gAy/G1X0zhGBbr2imsGFdFV0g==", + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", + "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", + "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==" + }, + "node_modules/@types/express": { + "version": "4.17.17", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz", + "integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==", + "dependencies": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^4.17.33", + "@types/qs": "*", + "@types/serve-static": "*" + } + }, + "node_modules/@types/express-serve-static-core": { + "version": "4.17.35", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.35.tgz", + "integrity": "sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==", + "dependencies": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" + } + }, + "node_modules/@types/hast": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.4.tgz", + "integrity": "sha512-wLEm0QvaoawEDoTRwzTXp4b4jpwiJDvR5KMnFnVodm3scufTlBOWRD6N1OBf9TZMhjlNsSfcO5V+7AF4+Vy+9g==", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/history": { + "version": "4.7.11", + "resolved": "https://registry.npmjs.org/@types/history/-/history-4.7.11.tgz", + "integrity": "sha512-qjDJRrmvBMiTx+jyLxvLfJU7UznFuokDv4f3WRuriHKERccVpFU+8XMQUAbDzoiJCsmexxRExQeMwwCdamSKDA==" + }, + "node_modules/@types/html-minifier-terser": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", + "integrity": "sha512-oh/6byDPnL1zeNXFrDXFLyZjkr1MsBG667IM792caf1L2UPOOMf65NFzjUH/ltyfwjAGfs1rsX1eftK0jC/KIg==" + }, + "node_modules/@types/http-proxy": { + "version": "1.17.11", + "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.11.tgz", + "integrity": "sha512-HC8G7c1WmaF2ekqpnFq626xd3Zz0uvaqFmBJNRZCGEZCXkvSdJoNFn/8Ygbd9fKNQj8UzLdCETaI0UWPAjK7IA==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", + "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==" + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", + "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/json-schema": { + "version": "7.0.12", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", + "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==" + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true + }, + "node_modules/@types/mdast": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.11.tgz", + "integrity": "sha512-Y/uImid8aAwrEA24/1tcRZwpxX3pIFTSilcNDKSPn+Y2iDywSEachzRuvgAYYLR3wpGXAsMbv5lvKLDZLeYPAw==", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/mime": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz", + "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==" + }, + "node_modules/@types/minimist": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", + "integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==", + "dev": true + }, + "node_modules/@types/ms": { + "version": "0.7.31", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz", + "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==" + }, + "node_modules/@types/node": { + "version": "20.2.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.5.tgz", + "integrity": "sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ==" + }, + "node_modules/@types/normalize-package-data": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz", + "integrity": "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==", + "dev": true + }, + "node_modules/@types/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==" + }, + "node_modules/@types/parse5": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/@types/parse5/-/parse5-5.0.3.tgz", + "integrity": "sha512-kUNnecmtkunAoQ3CnjmMkzNU/gtxG8guhi+Fk2U/kOpIKjIMKnXGp4IJCgQJrXSgMsWYimYG4TGjz/UzbGEBTw==" + }, + "node_modules/@types/prop-types": { + "version": "15.7.5", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", + "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==" + }, + "node_modules/@types/qs": { + "version": "6.9.7", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", + "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==" + }, + "node_modules/@types/range-parser": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", + "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==" + }, + "node_modules/@types/react": { + "version": "18.2.8", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.8.tgz", + "integrity": "sha512-lTyWUNrd8ntVkqycEEplasWy2OxNlShj3zqS0LuB1ENUGis5HodmhM7DtCoUGbxj3VW/WsGA0DUhpG6XrM7gPA==", + "dependencies": { + "@types/prop-types": "*", + "@types/scheduler": "*", + "csstype": "^3.0.2" + } + }, + "node_modules/@types/react-router": { + "version": "5.1.20", + "resolved": "https://registry.npmjs.org/@types/react-router/-/react-router-5.1.20.tgz", + "integrity": "sha512-jGjmu/ZqS7FjSH6owMcD5qpq19+1RS9DeVRqfl1FeBMxTDQAGwlMWOcs52NDoXaNKyG3d1cYQFMs9rCrb88o9Q==", + "dependencies": { + "@types/history": "^4.7.11", + "@types/react": "*" + } + }, + "node_modules/@types/react-router-config": { + "version": "5.0.7", + "resolved": "https://registry.npmjs.org/@types/react-router-config/-/react-router-config-5.0.7.tgz", + "integrity": "sha512-pFFVXUIydHlcJP6wJm7sDii5mD/bCmmAY0wQzq+M+uX7bqS95AQqHZWP1iNMKrWVQSuHIzj5qi9BvrtLX2/T4w==", + "dependencies": { + "@types/history": "^4.7.11", + "@types/react": "*", + "@types/react-router": "^5.1.0" + } + }, + "node_modules/@types/react-router-dom": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/@types/react-router-dom/-/react-router-dom-5.3.3.tgz", + "integrity": "sha512-kpqnYK4wcdm5UaWI3fLcELopqLrHgLqNsdpHauzlQktfkHL3npOSwtj1Uz9oKBAzs7lFtVkV8j83voAz2D8fhw==", + "dependencies": { + "@types/history": "^4.7.11", + "@types/react": "*", + "@types/react-router": "*" + } + }, + "node_modules/@types/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==" + }, + "node_modules/@types/sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@types/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-pSAff4IAxJjfAXUG6tFkO7dsSbTmf8CtUpfhhZ5VhkRpC4628tJhh3+V6H1E+/Gs9piSzYKT5yzHO5M4GG9jkw==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/scheduler": { + "version": "0.16.3", + "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.3.tgz", + "integrity": "sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==" + }, + "node_modules/@types/semver": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.0.tgz", + "integrity": "sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==", + "dev": true + }, + "node_modules/@types/send": { + "version": "0.17.1", + "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.1.tgz", + "integrity": "sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==", + "dependencies": { + "@types/mime": "^1", + "@types/node": "*" + } + }, + "node_modules/@types/serve-index": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.1.tgz", + "integrity": "sha512-d/Hs3nWDxNL2xAczmOVZNj92YZCS6RGxfBPjKzuu/XirCgXdpKEb88dYNbrYGint6IVWLNP+yonwVAuRC0T2Dg==", + "dependencies": { + "@types/express": "*" + } + }, + "node_modules/@types/serve-static": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz", + "integrity": "sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==", + "dependencies": { + "@types/mime": "*", + "@types/node": "*" + } + }, + "node_modules/@types/sockjs": { + "version": "0.3.33", + "resolved": "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.33.tgz", + "integrity": "sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/unist": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.6.tgz", + "integrity": "sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==" + }, + "node_modules/@types/ws": { + "version": "8.5.4", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.4.tgz", + "integrity": "sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/yargs": { + "version": "17.0.24", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", + "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", + "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==" + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "5.59.9", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.9.tgz", + "integrity": "sha512-4uQIBq1ffXd2YvF7MAvehWKW3zVv/w+mSfRAu+8cKbfj3nwzyqJLNcZJpQ/WZ1HLbJDiowwmQ6NO+63nCA+fqA==", + "dev": true, + "dependencies": { + "@eslint-community/regexpp": "^4.4.0", + "@typescript-eslint/scope-manager": "5.59.9", + "@typescript-eslint/type-utils": "5.59.9", + "@typescript-eslint/utils": "5.59.9", + "debug": "^4.3.4", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "natural-compare-lite": "^1.4.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/@typescript-eslint/parser": { + "version": "5.59.9", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.9.tgz", + "integrity": "sha512-FsPkRvBtcLQ/eVK1ivDiNYBjn3TGJdXy2fhXX+rc7czWl4ARwnpArwbihSOHI2Peg9WbtGHrbThfBUkZZGTtvQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "5.59.9", + "@typescript-eslint/types": "5.59.9", + "@typescript-eslint/typescript-estree": "5.59.9", + "debug": "^4.3.4" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "5.59.9", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.9.tgz", + "integrity": "sha512-8RA+E+w78z1+2dzvK/tGZ2cpGigBZ58VMEHDZtpE1v+LLjzrYGc8mMaTONSxKyEkz3IuXFM0IqYiGHlCsmlZxQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.59.9", + "@typescript-eslint/visitor-keys": "5.59.9" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "5.59.9", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.9.tgz", + "integrity": "sha512-ksEsT0/mEHg9e3qZu98AlSrONAQtrSTljL3ow9CGej8eRo7pe+yaC/mvTjptp23Xo/xIf2mLZKC6KPv4Sji26Q==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "5.59.9", + "@typescript-eslint/utils": "5.59.9", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "5.59.9", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.9.tgz", + "integrity": "sha512-uW8H5NRgTVneSVTfiCVffBb8AbwWSKg7qcA4Ot3JI3MPCJGsB4Db4BhvAODIIYE5mNj7Q+VJkK7JxmRhk2Lyjw==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "5.59.9", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.9.tgz", + "integrity": "sha512-pmM0/VQ7kUhd1QyIxgS+aRvMgw+ZljB3eDb+jYyp6d2bC0mQWLzUDF+DLwCTkQ3tlNyVsvZRXjFyV0LkU/aXjA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.59.9", + "@typescript-eslint/visitor-keys": "5.59.9", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/@typescript-eslint/utils": { + "version": "5.59.9", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.9.tgz", + "integrity": "sha512-1PuMYsju/38I5Ggblaeb98TOoUvjhRvLpLa1DoTOFaLWqaXl/1iQ1eGurTXgBY58NUdtfTXKP5xBq7q9NDaLKg==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.59.9", + "@typescript-eslint/types": "5.59.9", + "@typescript-eslint/typescript-estree": "5.59.9", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "5.59.9", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.9.tgz", + "integrity": "sha512-bT7s0td97KMaLwpEBckbzj/YohnvXtqbe2XgqNvTl6RJVakY5mvENOTPvw5u66nljfZxthESpDozs86U+oLY8Q==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.59.9", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@webassemblyjs/ast": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", + "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", + "dependencies": { + "@webassemblyjs/helper-numbers": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", + "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==" + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", + "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==" + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", + "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==" + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", + "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", + "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==" + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", + "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", + "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", + "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", + "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==" + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", + "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/helper-wasm-section": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-opt": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6", + "@webassemblyjs/wast-printer": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", + "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", + "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", + "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", + "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==" + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==" + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/accepts/node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/accepts/node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-assertions": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", + "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "devOptional": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/address": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/address/-/address-1.2.2.tgz", + "integrity": "sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA==", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-formats/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/algoliasearch": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/algoliasearch/-/algoliasearch-4.17.1.tgz", + "integrity": "sha512-4GDQ1RhP2qUR3x8PevFRbEdqZqIARNViZYjgTJmA1T7wRNtFA3W4Aqc/RsODqa1J8IO/QDla5x4tWuUS8NV8wA==", + "dependencies": { + "@algolia/cache-browser-local-storage": "4.17.1", + "@algolia/cache-common": "4.17.1", + "@algolia/cache-in-memory": "4.17.1", + "@algolia/client-account": "4.17.1", + "@algolia/client-analytics": "4.17.1", + "@algolia/client-common": "4.17.1", + "@algolia/client-personalization": "4.17.1", + "@algolia/client-search": "4.17.1", + "@algolia/logger-common": "4.17.1", + "@algolia/logger-console": "4.17.1", + "@algolia/requester-browser-xhr": "4.17.1", + "@algolia/requester-common": "4.17.1", + "@algolia/requester-node-http": "4.17.1", + "@algolia/transporter": "4.17.1" + } + }, + "node_modules/algoliasearch-helper": { + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/algoliasearch-helper/-/algoliasearch-helper-3.13.0.tgz", + "integrity": "sha512-kV3c1jMQCvkARtGsSDvAwuht4PAMSsQILqPiH4WFiARoa3jXJ/r1TQoBWAjWyWF48rsNYCv7kzxgB4LTxrvvuw==", + "dependencies": { + "@algolia/events": "^4.0.1" + }, + "peerDependencies": { + "algoliasearch": ">= 3.1 < 6" + } + }, + "node_modules/ansi-align": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz", + "integrity": "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==", + "dependencies": { + "string-width": "^4.1.0" + } + }, + "node_modules/ansi-align/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/ansi-align/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-align/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-escapes/node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-html-community": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", + "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==", + "engines": [ + "node >= 0.8.0" + ], + "bin": { + "ansi-html": "bin/ansi-html" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==" + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + }, + "node_modules/aria-query": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz", + "integrity": "sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==", + "dev": true, + "dependencies": { + "deep-equal": "^2.0.5" + } + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-flatten": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", + "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==" + }, + "node_modules/array-includes": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", + "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", + "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", + "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.tosorted": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz", + "integrity": "sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.1.3" + } + }, + "node_modules/arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/asap": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==" + }, + "node_modules/ast-types-flow": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", + "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", + "dev": true + }, + "node_modules/astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/autoprefixer": { + "version": "10.4.14", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz", + "integrity": "sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + } + ], + "dependencies": { + "browserslist": "^4.21.5", + "caniuse-lite": "^1.0.30001464", + "fraction.js": "^4.2.0", + "normalize-range": "^0.1.2", + "picocolors": "^1.0.0", + "postcss-value-parser": "^4.2.0" + }, + "bin": { + "autoprefixer": "bin/autoprefixer" + }, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/axe-core": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.2.tgz", + "integrity": "sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/axios": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.25.0.tgz", + "integrity": "sha512-cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g==", + "dependencies": { + "follow-redirects": "^1.14.7" + } + }, + "node_modules/axobject-query": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz", + "integrity": "sha512-goKlv8DZrK9hUh975fnHzhNIO4jUnFCfv/dszV5VwUGDFjI6vQ2VwoyjYjYNEbBE8AH87TduWP5uyDR1D+Iteg==", + "dev": true, + "dependencies": { + "deep-equal": "^2.0.5" + } + }, + "node_modules/babel-loader": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.3.0.tgz", + "integrity": "sha512-H8SvsMF+m9t15HNLMipppzkC+Y2Yq+v3SonZyU70RBL/h1gxPkH08Ot8pEE9Z4Kd+czyWJClmFS8qzIP9OZ04Q==", + "dependencies": { + "find-cache-dir": "^3.3.1", + "loader-utils": "^2.0.0", + "make-dir": "^3.1.0", + "schema-utils": "^2.6.5" + }, + "engines": { + "node": ">= 8.9" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "webpack": ">=2" + } + }, + "node_modules/babel-plugin-apply-mdx-type-prop": { + "version": "1.6.22", + "resolved": "https://registry.npmjs.org/babel-plugin-apply-mdx-type-prop/-/babel-plugin-apply-mdx-type-prop-1.6.22.tgz", + "integrity": "sha512-VefL+8o+F/DfK24lPZMtJctrCVOfgbqLAGZSkxwhazQv4VxPg3Za/i40fu22KR2m8eEda+IfSOlPLUSIiLcnCQ==", + "dependencies": { + "@babel/helper-plugin-utils": "7.10.4", + "@mdx-js/util": "1.6.22" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + }, + "peerDependencies": { + "@babel/core": "^7.11.6" + } + }, + "node_modules/babel-plugin-apply-mdx-type-prop/node_modules/@babel/helper-plugin-utils": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz", + "integrity": "sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==" + }, + "node_modules/babel-plugin-dynamic-import-node": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", + "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==", + "dependencies": { + "object.assign": "^4.1.0" + } + }, + "node_modules/babel-plugin-extract-import-names": { + "version": "1.6.22", + "resolved": "https://registry.npmjs.org/babel-plugin-extract-import-names/-/babel-plugin-extract-import-names-1.6.22.tgz", + "integrity": "sha512-yJ9BsJaISua7d8zNT7oRG1ZLBJCIdZ4PZqmH8qa9N5AK01ifk3fnkc98AXhtzE7UkfCsEumvoQWgoYLhOnJ7jQ==", + "dependencies": { + "@babel/helper-plugin-utils": "7.10.4" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/babel-plugin-extract-import-names/node_modules/@babel/helper-plugin-utils": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz", + "integrity": "sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==" + }, + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.3.tgz", + "integrity": "sha512-bM3gHc337Dta490gg+/AseNB9L4YLHxq1nGKZZSHbhXv4aTYU2MD2cjza1Ru4S6975YLTaL1K8uJf6ukJhhmtw==", + "dependencies": { + "@babel/compat-data": "^7.17.7", + "@babel/helper-define-polyfill-provider": "^0.4.0", + "semver": "^6.1.1" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.1.tgz", + "integrity": "sha512-ikFrZITKg1xH6pLND8zT14UPgjKHiGLqex7rGEZCH2EvhsneJaJPemmpQaIZV5AL03II+lXylw3UmddDK8RU5Q==", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.4.0", + "core-js-compat": "^3.30.1" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.0.tgz", + "integrity": "sha512-hDJtKjMLVa7Z+LwnTCxoDLQj6wdc+B8dun7ayF2fYieI6OzfuvcLMB32ihJZ4UhCBwNYGl5bg/x/P9cMdnkc2g==", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.4.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/bail": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/bail/-/bail-1.0.5.tgz", + "integrity": "sha512-xFbRxM1tahm08yHBP16MMjVUAvDaBMD38zsM9EMAUN61omwLmKlOpB/Zku5QkjZ8TZ4vn53pj+t518cH0S03RQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/base16": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/base16/-/base16-1.0.0.tgz", + "integrity": "sha512-pNdYkNPiJUnEhnfXV56+sQy8+AaPcG3POZAUnwr4EeqCUZFz4u2PePbo3e5Gj4ziYPCWGUZT9RHisvJKnwFuBQ==" + }, + "node_modules/batch": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", + "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==" + }, + "node_modules/big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "engines": { + "node": "*" + } + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/body-parser": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", + "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/body-parser/node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/bonjour-service": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.1.1.tgz", + "integrity": "sha512-Z/5lQRMOG9k7W+FkeGTNjh7htqn/2LMnfOvBZ8pynNZCM9MwkQkI3zeI4oz09uWdcgmgHugVvBqxGg4VQJ5PCg==", + "dependencies": { + "array-flatten": "^2.1.2", + "dns-equal": "^1.0.0", + "fast-deep-equal": "^3.1.3", + "multicast-dns": "^7.2.5" + } + }, + "node_modules/boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==" + }, + "node_modules/boxen": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-6.2.1.tgz", + "integrity": "sha512-H4PEsJXfFI/Pt8sjDWbHlQPx4zL/bvSQjcilJmaulGt5mLDorHOHpmdXAJcBcmru7PhYSp/cDMWRko4ZUMFkSw==", + "dependencies": { + "ansi-align": "^3.0.1", + "camelcase": "^6.2.0", + "chalk": "^4.1.2", + "cli-boxes": "^3.0.0", + "string-width": "^5.0.1", + "type-fest": "^2.5.0", + "widest-line": "^4.0.1", + "wrap-ansi": "^8.0.1" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/boxen/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/boxen/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/boxen/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/boxen/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/boxen/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/boxen/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.21.7", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.7.tgz", + "integrity": "sha512-BauCXrQ7I2ftSqd2mvKHGo85XR0u7Ru3C/Hxsy/0TkfCtjrmAbPdzLGasmoiBxplpDXlPvdjX9u7srIMfgasNA==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001489", + "electron-to-chromium": "^1.4.411", + "node-releases": "^2.0.12", + "update-browserslist-db": "^1.0.11" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + }, + "node_modules/bytes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", + "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/cacheable-request": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", + "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", + "dependencies": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^3.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^4.1.0", + "responselike": "^1.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cacheable-request/node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cacheable-request/node_modules/lowercase-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/cacheable-request/node_modules/normalize-url": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz", + "integrity": "sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/camel-case": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", + "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", + "dependencies": { + "pascal-case": "^3.1.2", + "tslib": "^2.0.3" + } + }, + "node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/camelcase-css": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", + "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/camelcase-keys": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", + "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "map-obj": "^4.0.0", + "quick-lru": "^4.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/camelcase-keys/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-api": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", + "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", + "dependencies": { + "browserslist": "^4.0.0", + "caniuse-lite": "^1.0.0", + "lodash.memoize": "^4.1.2", + "lodash.uniq": "^4.5.0" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001495", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001495.tgz", + "integrity": "sha512-F6x5IEuigtUfU5ZMQK2jsy5JqUUlEFRVZq8bO2a+ysq5K7jD6PPc9YXZj78xDNS3uNchesp1Jw47YXEqr+Viyg==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/ccount": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/ccount/-/ccount-1.1.0.tgz", + "integrity": "sha512-vlNK021QdI7PNeiUh/lKkC/mNHHfV0m/Ad5JoI0TYtlBnJAslM/JIkm/tGC88bkLIwO6OQ5uV6ztS6kVAtCDlg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/chalk/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/character-entities": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz", + "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-legacy": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz", + "integrity": "sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-reference-invalid": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-1.1.4.tgz", + "integrity": "sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/cheerio": { + "version": "1.0.0-rc.12", + "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.12.tgz", + "integrity": "sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==", + "dependencies": { + "cheerio-select": "^2.1.0", + "dom-serializer": "^2.0.0", + "domhandler": "^5.0.3", + "domutils": "^3.0.1", + "htmlparser2": "^8.0.1", + "parse5": "^7.0.0", + "parse5-htmlparser2-tree-adapter": "^7.0.0" + }, + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/cheeriojs/cheerio?sponsor=1" + } + }, + "node_modules/cheerio-select": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-2.1.0.tgz", + "integrity": "sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==", + "dependencies": { + "boolbase": "^1.0.0", + "css-select": "^5.1.0", + "css-what": "^6.1.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3", + "domutils": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "engines": { + "node": ">=6.0" + } + }, + "node_modules/ci-info": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", + "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } + }, + "node_modules/classnames": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.2.tgz", + "integrity": "sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==" + }, + "node_modules/clean-css": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.2.tgz", + "integrity": "sha512-JVJbM+f3d3Q704rF4bqQ5UUyTtuJ0JRKNbTKVEeujCCBoMdkEi+V+e8oktO9qGQNSvHrFTM6JZRXrUvGR1czww==", + "dependencies": { + "source-map": "~0.6.0" + }, + "engines": { + "node": ">= 10.0" + } + }, + "node_modules/clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "engines": { + "node": ">=6" + } + }, + "node_modules/cli-boxes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-3.0.0.tgz", + "integrity": "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "dev": true, + "dependencies": { + "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-table3": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.3.tgz", + "integrity": "sha512-w5Jac5SykAeZJKntOxJCrm63Eg5/4dhMWIcuTbo9rpE+brgaSZo0RuNJZeOyMgsUdhDeojvgyQLmjI+K50ZGyg==", + "dependencies": { + "string-width": "^4.2.0" + }, + "engines": { + "node": "10.* || >= 12.*" + }, + "optionalDependencies": { + "@colors/colors": "1.5.0" + } + }, + "node_modules/cli-table3/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/cli-table3/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-table3/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-truncate": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-3.1.0.tgz", + "integrity": "sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA==", + "dev": true, + "dependencies": { + "slice-ansi": "^5.0.0", + "string-width": "^5.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "dependencies": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/clone-deep/node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/clone-response": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", + "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", + "dependencies": { + "mimic-response": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/clsx": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz", + "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/collapse-white-space": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/collapse-white-space/-/collapse-white-space-1.0.6.tgz", + "integrity": "sha512-jEovNnrhMuqyCcjfEJA56v0Xq8SkIoPKDyaHahwo3POf4qcSXqMYuwNcOTzp74vTsR9Tn08z4MxWqAhcekogkQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/colord": { + "version": "2.9.3", + "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz", + "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==" + }, + "node_modules/colorette": { + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==" + }, + "node_modules/combine-promises": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/combine-promises/-/combine-promises-1.1.0.tgz", + "integrity": "sha512-ZI9jvcLDxqwaXEixOhArm3r7ReIivsXkpbyEWyeOhzz1QS0iSgBPnWvEqvIQtYyamGCYA88gFhmUrs9hrrQ0pg==", + "engines": { + "node": ">=10" + } + }, + "node_modules/comma-separated-tokens": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz", + "integrity": "sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/commander": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", + "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/comment-parser": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.3.1.tgz", + "integrity": "sha512-B52sN2VNghyq5ofvUsqZjmk6YkihBX5vMSChmSK9v4ShjKf3Vk5Xcmgpw4o+iIgtrnM/u5FiMpz9VKb8lpBveA==", + "dev": true, + "engines": { + "node": ">= 12.0.0" + } + }, + "node_modules/commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==" + }, + "node_modules/compressible": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", + "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", + "dependencies": { + "mime-db": ">= 1.43.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/compressible/node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/compression": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", + "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", + "dependencies": { + "accepts": "~1.3.5", + "bytes": "3.0.0", + "compressible": "~2.0.16", + "debug": "2.6.9", + "on-headers": "~1.0.2", + "safe-buffer": "5.1.2", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/compression/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/compression/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/compression/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "node_modules/configstore": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", + "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", + "dependencies": { + "dot-prop": "^5.2.0", + "graceful-fs": "^4.1.2", + "make-dir": "^3.0.0", + "unique-string": "^2.0.0", + "write-file-atomic": "^3.0.0", + "xdg-basedir": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/configstore/node_modules/write-file-atomic": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "dependencies": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "node_modules/confusing-browser-globals": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", + "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", + "dev": true + }, + "node_modules/connect-history-api-fallback": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz", + "integrity": "sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/consola": { + "version": "2.15.3", + "resolved": "https://registry.npmjs.org/consola/-/consola-2.15.3.tgz", + "integrity": "sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==" + }, + "node_modules/content-disposition": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz", + "integrity": "sha512-kRGRZw3bLlFISDBgwTSA1TMBFN6J6GWDeubmDE3AF+3+yXL8hTWv8r5rkLbqYXY4RjPk/EzHnClI3zQf1cFmHA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" + }, + "node_modules/cookie": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", + "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" + }, + "node_modules/copy-text-to-clipboard": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/copy-text-to-clipboard/-/copy-text-to-clipboard-3.1.0.tgz", + "integrity": "sha512-PFM6BnjLnOON/lB3ta/Jg7Ywsv+l9kQGD4TWDCSlRBGmqnnTM5MrDkhAFgw+8HZt0wW6Q2BBE4cmy9sq+s9Qng==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/copy-webpack-plugin": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-11.0.0.tgz", + "integrity": "sha512-fX2MWpamkW0hZxMEg0+mYnA40LTosOSa5TqZ9GYIBzyJa9C3QUaMPSE2xAi/buNr8u89SfD9wHSQVBzrRa/SOQ==", + "dependencies": { + "fast-glob": "^3.2.11", + "glob-parent": "^6.0.1", + "globby": "^13.1.1", + "normalize-path": "^3.0.0", + "schema-utils": "^4.0.0", + "serialize-javascript": "^6.0.0" + }, + "engines": { + "node": ">= 14.15.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + } + }, + "node_modules/copy-webpack-plugin/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/copy-webpack-plugin/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/copy-webpack-plugin/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/copy-webpack-plugin/node_modules/globby": { + "version": "13.1.4", + "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.4.tgz", + "integrity": "sha512-iui/IiiW+QrJ1X1hKH5qwlMQyv34wJAYwH1vrf8b9kBA4sNiif3gKsMHa+BrdnOpEudWjpotfa7LrTzB1ERS/g==", + "dependencies": { + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.11", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/copy-webpack-plugin/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/copy-webpack-plugin/node_modules/schema-utils": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", + "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/copy-webpack-plugin/node_modules/slash": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", + "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/core-js": { + "version": "3.30.2", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.30.2.tgz", + "integrity": "sha512-uBJiDmwqsbJCWHAwjrx3cvjbMXP7xD72Dmsn5LOJpiRmE3WbBbN5rCqQ2Qh6Ek6/eOrjlWngEynBWo4VxerQhg==", + "hasInstallScript": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-js-compat": { + "version": "3.30.2", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.30.2.tgz", + "integrity": "sha512-nriW1nuJjUgvkEjIot1Spwakz52V9YkYHZAQG6A1eCgC8AA1p0zngrQEP9R0+V6hji5XilWKG1Bd0YRppmGimA==", + "dependencies": { + "browserslist": "^4.21.5" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-js-pure": { + "version": "3.30.2", + "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.30.2.tgz", + "integrity": "sha512-p/npFUJXXBkCCTIlEGBdghofn00jWG6ZOtdoIXSJmAu2QBvN0IqpZXWweOytcwE6cfx8ZvVUy1vw8zxhe4Y2vg==", + "hasInstallScript": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" + }, + "node_modules/cosmiconfig": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", + "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/cross-fetch": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.6.tgz", + "integrity": "sha512-riRvo06crlE8HiqOwIpQhxwdOk4fOeR7FVM/wXoxchFEqMNUjvbs3bfo4OTgMEMHzppd4DxFBDbyySj8Cv781g==", + "dependencies": { + "node-fetch": "^2.6.11" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/crypto-random-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", + "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/css-declaration-sorter": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.0.tgz", + "integrity": "sha512-jDfsatwWMWN0MODAFuHszfjphEXfNw9JUAhmY4pLu3TyTU+ohUpsbVtbU+1MZn4a47D9kqh03i4eyOm+74+zew==", + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.0.9" + } + }, + "node_modules/css-functions-list": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/css-functions-list/-/css-functions-list-3.1.0.tgz", + "integrity": "sha512-/9lCvYZaUbBGvYUgYGFJ4dcYiyqdhSjG7IPVluoV8A1ILjkF7ilmhp1OGUz8n+nmBcu0RNrQAzgD8B6FJbrt2w==", + "dev": true, + "engines": { + "node": ">=12.22" + } + }, + "node_modules/css-loader": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.8.1.tgz", + "integrity": "sha512-xDAXtEVGlD0gJ07iclwWVkLoZOpEvAWaSyf6W18S2pOC//K8+qUDIx8IIT3D+HjnmkJPQeesOPv5aiUaJsCM2g==", + "dependencies": { + "icss-utils": "^5.1.0", + "postcss": "^8.4.21", + "postcss-modules-extract-imports": "^3.0.0", + "postcss-modules-local-by-default": "^4.0.3", + "postcss-modules-scope": "^3.0.0", + "postcss-modules-values": "^4.0.0", + "postcss-value-parser": "^4.2.0", + "semver": "^7.3.8" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/css-loader/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/css-loader/node_modules/semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/css-loader/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "node_modules/css-minimizer-webpack-plugin": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-4.2.2.tgz", + "integrity": "sha512-s3Of/4jKfw1Hj9CxEO1E5oXhQAxlayuHO2y/ML+C6I9sQ7FdzfEV6QgMLN3vI+qFsjJGIAFLKtQK7t8BOXAIyA==", + "dependencies": { + "cssnano": "^5.1.8", + "jest-worker": "^29.1.2", + "postcss": "^8.4.17", + "schema-utils": "^4.0.0", + "serialize-javascript": "^6.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">= 14.15.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "@parcel/css": { + "optional": true + }, + "@swc/css": { + "optional": true }, - "global-prefix": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz", - "integrity": "sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==", - "requires": { - "ini": "^1.3.5", - "kind-of": "^6.0.2", - "which": "^1.3.1" - }, - "dependencies": { - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "requires": { - "isexe": "^2.0.0" - } - } - } + "clean-css": { + "optional": true }, - "globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==" - }, - "globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", - "dev": true, - "requires": { - "define-properties": "^1.1.3" - } + "csso": { + "optional": true }, - "globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "requires": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - } + "esbuild": { + "optional": true }, - "globjoin": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/globjoin/-/globjoin-0.1.4.tgz", - "integrity": "sha512-xYfnw62CKG8nLkZBfWbhWwDw02CHty86jfPcc2cr3ZfeuK9ysoVPPEUxf21bAD/rWAgk52SuBrLJlefNy8mvFg==", - "dev": true - }, - "gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dev": true, - "requires": { - "get-intrinsic": "^1.1.3" - } + "lightningcss": { + "optional": true + } + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", + "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/css-select": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", + "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^6.1.0", + "domhandler": "^5.0.2", + "domutils": "^3.0.1", + "nth-check": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css-tree": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", + "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "dependencies": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/css-what": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", + "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cssnano": { + "version": "5.1.15", + "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.15.tgz", + "integrity": "sha512-j+BKgDcLDQA+eDifLx0EO4XSA56b7uut3BQFH+wbSaSTuGLuiyTa/wbRYthUXX8LC9mLg+WWKe8h+qJuwTAbHw==", + "dependencies": { + "cssnano-preset-default": "^5.2.14", + "lilconfig": "^2.0.3", + "yaml": "^1.10.2" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/cssnano" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/cssnano-preset-advanced": { + "version": "5.3.10", + "resolved": "https://registry.npmjs.org/cssnano-preset-advanced/-/cssnano-preset-advanced-5.3.10.tgz", + "integrity": "sha512-fnYJyCS9jgMU+cmHO1rPSPf9axbQyD7iUhLO5Df6O4G+fKIOMps+ZbU0PdGFejFBBZ3Pftf18fn1eG7MAPUSWQ==", + "dependencies": { + "autoprefixer": "^10.4.12", + "cssnano-preset-default": "^5.2.14", + "postcss-discard-unused": "^5.1.0", + "postcss-merge-idents": "^5.1.1", + "postcss-reduce-idents": "^5.2.0", + "postcss-zindex": "^5.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/cssnano-preset-default": { + "version": "5.2.14", + "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.14.tgz", + "integrity": "sha512-t0SFesj/ZV2OTylqQVOrFgEh5uanxbO6ZAdeCrNsUQ6fVuXwYTxJPNAGvGTxHbD68ldIJNec7PyYZDBrfDQ+6A==", + "dependencies": { + "css-declaration-sorter": "^6.3.1", + "cssnano-utils": "^3.1.0", + "postcss-calc": "^8.2.3", + "postcss-colormin": "^5.3.1", + "postcss-convert-values": "^5.1.3", + "postcss-discard-comments": "^5.1.2", + "postcss-discard-duplicates": "^5.1.0", + "postcss-discard-empty": "^5.1.1", + "postcss-discard-overridden": "^5.1.0", + "postcss-merge-longhand": "^5.1.7", + "postcss-merge-rules": "^5.1.4", + "postcss-minify-font-values": "^5.1.0", + "postcss-minify-gradients": "^5.1.1", + "postcss-minify-params": "^5.1.4", + "postcss-minify-selectors": "^5.2.1", + "postcss-normalize-charset": "^5.1.0", + "postcss-normalize-display-values": "^5.1.0", + "postcss-normalize-positions": "^5.1.1", + "postcss-normalize-repeat-style": "^5.1.1", + "postcss-normalize-string": "^5.1.0", + "postcss-normalize-timing-functions": "^5.1.0", + "postcss-normalize-unicode": "^5.1.1", + "postcss-normalize-url": "^5.1.0", + "postcss-normalize-whitespace": "^5.1.1", + "postcss-ordered-values": "^5.1.3", + "postcss-reduce-initial": "^5.1.2", + "postcss-reduce-transforms": "^5.1.0", + "postcss-svgo": "^5.1.0", + "postcss-unique-selectors": "^5.1.1" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/cssnano-utils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz", + "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/csso": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", + "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", + "dependencies": { + "css-tree": "^1.1.2" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/csstype": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", + "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==" + }, + "node_modules/damerau-levenshtein": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", + "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", + "dev": true + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decamelize-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.1.tgz", + "integrity": "sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==", + "dev": true, + "dependencies": { + "decamelize": "^1.1.0", + "map-obj": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/decamelize-keys/node_modules/map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decode-named-character-reference": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.0.2.tgz", + "integrity": "sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==", + "dependencies": { + "character-entities": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/decompress-response": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", + "integrity": "sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA==", + "dependencies": { + "mimic-response": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/deep-equal": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.1.tgz", + "integrity": "sha512-lKdkdV6EOGoVn65XaOsPdH4rMxTZOnmFyuIkMjM1i5HHCbfjC97dawgTAy0deYNfuqUqW+Q5VrVaQYtUpSd6yQ==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "es-get-iterator": "^1.1.3", + "get-intrinsic": "^1.2.0", + "is-arguments": "^1.1.1", + "is-array-buffer": "^3.0.2", + "is-date-object": "^1.0.5", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "isarray": "^2.0.5", + "object-is": "^1.1.5", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.0", + "side-channel": "^1.0.4", + "which-boxed-primitive": "^1.0.2", + "which-collection": "^1.0.1", + "which-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "devOptional": true + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/default-gateway": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", + "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==", + "dependencies": { + "execa": "^5.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/default-gateway/node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/default-gateway/node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/default-gateway/node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-gateway/node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/default-gateway/node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/default-gateway/node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-gateway/node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/defer-to-connect": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", + "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==" + }, + "node_modules/define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "engines": { + "node": ">=8" + } + }, + "node_modules/define-properties": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", + "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", + "dependencies": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/del": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/del/-/del-6.1.1.tgz", + "integrity": "sha512-ua8BhapfP0JUJKC/zV9yHHDW/rDoDxP4Zhn3AkA6/xT6gY7jYXJiaeyBZznYVujhZZET+UgcbZiQ7sN3WqcImg==", + "dependencies": { + "globby": "^11.0.1", + "graceful-fs": "^4.2.4", + "is-glob": "^4.0.1", + "is-path-cwd": "^2.2.0", + "is-path-inside": "^3.0.2", + "p-map": "^4.0.0", + "rimraf": "^3.0.2", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/detab": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/detab/-/detab-2.0.4.tgz", + "integrity": "sha512-8zdsQA5bIkoRECvCrNKPla84lyoR7DSAyf7p0YgXzBO9PDJx8KntPUay7NS6yp+KdxdVtiE5SpHKtbp2ZQyA9g==", + "dependencies": { + "repeat-string": "^1.5.4" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/detect-node": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", + "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==" + }, + "node_modules/detect-port": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/detect-port/-/detect-port-1.5.1.tgz", + "integrity": "sha512-aBzdj76lueB6uUst5iAs7+0H/oOjqI5D16XUWxlWMIMROhcM0rfsNVk93zTngq1dDNpoXRr++Sus7ETAExppAQ==", + "dependencies": { + "address": "^1.0.1", + "debug": "4" + }, + "bin": { + "detect": "bin/detect-port.js", + "detect-port": "bin/detect-port.js" + } + }, + "node_modules/detect-port-alt": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/detect-port-alt/-/detect-port-alt-1.1.6.tgz", + "integrity": "sha512-5tQykt+LqfJFBEYaDITx7S7cR7mJ/zQmLXZ2qt5w04ainYZw6tBf9dBunMjVeVOdYVRUzUOE4HkY5J7+uttb5Q==", + "dependencies": { + "address": "^1.0.1", + "debug": "^2.6.0" + }, + "bin": { + "detect": "bin/detect-port", + "detect-port": "bin/detect-port" + }, + "engines": { + "node": ">= 4.2.1" + } + }, + "node_modules/detect-port-alt/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/detect-port-alt/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/diff": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz", + "integrity": "sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/dns-equal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", + "integrity": "sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==" + }, + "node_modules/dns-packet": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.6.0.tgz", + "integrity": "sha512-rza3UH1LwdHh9qyPXp8lkwpjSNk/AMD3dPytUoRoqnypDUhY0xvbdmVhWOfxO68frEfV9BU8V12Ez7ZsHGZpCQ==", + "dependencies": { + "@leichtgewicht/ip-codec": "^2.0.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "devOptional": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/dom-converter": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", + "integrity": "sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==", + "dependencies": { + "utila": "~0.4" + } + }, + "node_modules/dom-serializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", + "dependencies": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "entities": "^4.2.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ] + }, + "node_modules/domhandler": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "dependencies": { + "domelementtype": "^2.3.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/domutils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.1.0.tgz", + "integrity": "sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==", + "dependencies": { + "dom-serializer": "^2.0.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/dot-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", + "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/dot-prop": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", + "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", + "dependencies": { + "is-obj": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/dot-prop/node_modules/is-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", + "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", + "engines": { + "node": ">=8" + } + }, + "node_modules/dotenv": { + "version": "16.1.4", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.1.4.tgz", + "integrity": "sha512-m55RtE8AsPeJBpOIFKihEmqUcoVncQIwo7x9U8ZwLEZw9ZpXboz2c+rvog+jUaJvVrZ5kBOeYQBX5+8Aa/OZQw==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/motdotla/dotenv?sponsor=1" + } + }, + "node_modules/duplexer": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", + "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==" + }, + "node_modules/duplexer3": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.5.tgz", + "integrity": "sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA==" + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" + }, + "node_modules/electron-to-chromium": { + "version": "1.4.421", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.421.tgz", + "integrity": "sha512-wZOyn3s/aQOtLGAwXMZfteQPN68kgls2wDAnYOA8kCjBvKVrW5RwmWVspxJYTqrcN7Y263XJVsC66VCIGzDO3g==" + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" + }, + "node_modules/emojis-list": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/emoticon": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/emoticon/-/emoticon-3.2.0.tgz", + "integrity": "sha512-SNujglcLTTg+lDAcApPNgEdudaqQFiAbJCqzjNxJkvN9vAwCGi0uu8IUVvx+f16h+V44KCY6Y2yboroc9pilHg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.14.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.14.1.tgz", + "integrity": "sha512-Vklwq2vDKtl0y/vtwjSesgJ5MYS7Etuk5txS8VdKL4AOS1aUlD96zqIfsOSLQsdv3xgMRbtkWM8eG9XDfKUPow==", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-abstract": { + "version": "1.21.2", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz", + "integrity": "sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.5", + "get-intrinsic": "^1.2.0", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.10", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.4.3", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.7", + "string.prototype.trimend": "^1.0.6", + "string.prototype.trimstart": "^1.0.6", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.9" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-get-iterator": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz", + "integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "is-arguments": "^1.1.1", + "is-map": "^2.0.2", + "is-set": "^2.0.2", + "is-string": "^1.0.7", + "isarray": "^2.0.5", + "stop-iteration-iterator": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-module-lexer": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.2.1.tgz", + "integrity": "sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg==" + }, + "node_modules/es-set-tostringtag": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", + "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", + "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-goat": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz", + "integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.42.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.42.0.tgz", + "integrity": "sha512-ulg9Ms6E1WPf67PHaEY4/6E2tEn5/f7FXGzr3t9cBMugOmf1INYvuUwwh1aXQN4MfJ6a5K2iNwP3w4AColvI9A==", + "devOptional": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.0.3", + "@eslint/js": "8.42.0", + "@humanwhocodes/config-array": "^0.11.10", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.0", + "eslint-visitor-keys": "^3.4.1", + "espree": "^9.5.2", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-airbnb": { + "version": "19.0.4", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb/-/eslint-config-airbnb-19.0.4.tgz", + "integrity": "sha512-T75QYQVQX57jiNgpF9r1KegMICE94VYwoFQyMGhrvc+lB8YF2E/M/PYDaQe1AJcWaEgqLE+ErXV1Og/+6Vyzew==", + "dev": true, + "dependencies": { + "eslint-config-airbnb-base": "^15.0.0", + "object.assign": "^4.1.2", + "object.entries": "^1.1.5" + }, + "engines": { + "node": "^10.12.0 || ^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^7.32.0 || ^8.2.0", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-jsx-a11y": "^6.5.1", + "eslint-plugin-react": "^7.28.0", + "eslint-plugin-react-hooks": "^4.3.0" + } + }, + "node_modules/eslint-config-airbnb-base": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz", + "integrity": "sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==", + "dev": true, + "dependencies": { + "confusing-browser-globals": "^1.0.10", + "object.assign": "^4.1.2", + "object.entries": "^1.1.5", + "semver": "^6.3.0" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + }, + "peerDependencies": { + "eslint": "^7.32.0 || ^8.2.0", + "eslint-plugin-import": "^2.25.2" + } + }, + "node_modules/eslint-config-prettier": { + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz", + "integrity": "sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==", + "dev": true, + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", + "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", + "dev": true, + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.11.0", + "resolve": "^1.22.1" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-module-utils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", + "dev": true, + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.27.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", + "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "array.prototype.flatmap": "^1.3.1", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.7", + "eslint-module-utils": "^2.7.4", + "has": "^1.0.3", + "is-core-module": "^2.11.0", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.values": "^1.1.6", + "resolve": "^1.22.1", + "semver": "^6.3.0", + "tsconfig-paths": "^3.14.1" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-jsx-a11y": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", + "integrity": "sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.20.7", + "aria-query": "^5.1.3", + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "ast-types-flow": "^0.0.7", + "axe-core": "^4.6.2", + "axobject-query": "^3.1.1", + "damerau-levenshtein": "^1.0.8", + "emoji-regex": "^9.2.2", + "has": "^1.0.3", + "jsx-ast-utils": "^3.3.3", + "language-tags": "=1.0.5", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=4.0" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + } + }, + "node_modules/eslint-plugin-prettier": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", + "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", + "dev": true, + "dependencies": { + "prettier-linter-helpers": "^1.0.0" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "eslint": ">=7.28.0", + "prettier": ">=2.0.0" + }, + "peerDependenciesMeta": { + "eslint-config-prettier": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-react": { + "version": "7.32.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.32.2.tgz", + "integrity": "sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "array.prototype.tosorted": "^1.1.1", + "doctrine": "^2.1.0", + "estraverse": "^5.3.0", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "object.hasown": "^1.1.2", + "object.values": "^1.1.6", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.4", + "semver": "^6.3.0", + "string.prototype.matchall": "^4.0.8" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz", + "integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==", + "dev": true, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" + } + }, + "node_modules/eslint-plugin-react/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-react/node_modules/resolve": { + "version": "2.0.0-next.4", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz", + "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==", + "dev": true, + "dependencies": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/eslint-plugin-regexp": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-regexp/-/eslint-plugin-regexp-1.15.0.tgz", + "integrity": "sha512-YEtQPfdudafU7RBIFci81R/Q1yErm0mVh3BkGnXD2Dk8DLwTFdc2ITYH1wCnHKim2gnHfPFgrkh+b2ozyyU7ag==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "comment-parser": "^1.1.2", + "grapheme-splitter": "^1.0.4", + "jsdoctypeparser": "^9.0.0", + "refa": "^0.11.0", + "regexp-ast-analysis": "^0.6.0", + "scslre": "^0.2.0" + }, + "engines": { + "node": "^12 || >=14" + }, + "peerDependencies": { + "eslint": ">=6.0.0" + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/eslint-scope/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/eslint/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "devOptional": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/eslint/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "devOptional": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/eslint/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "devOptional": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/eslint/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "devOptional": true + }, + "node_modules/eslint/node_modules/eslint-scope": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", + "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", + "devOptional": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "devOptional": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "devOptional": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/eslint/node_modules/globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "devOptional": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "devOptional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "devOptional": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "devOptional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/espree": { + "version": "9.5.2", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", + "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", + "devOptional": true, + "dependencies": { + "acorn": "^8.8.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "devOptional": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "devOptional": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eta": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/eta/-/eta-2.2.0.tgz", + "integrity": "sha512-UVQ72Rqjy/ZKQalzV5dCCJP80GrmPrMxh6NlNf+erV6ObL0ZFkhCstWRawS85z3smdr3d2wXPsZEY7rDPfGd2g==", + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "url": "https://github.com/eta-dev/eta?sponsor=1" + } + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/eval": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/eval/-/eval-0.1.8.tgz", + "integrity": "sha512-EzV94NYKoO09GLXGjXj9JIlXijVck4ONSr5wiCWDvhsvj5jxSrzTmRU/9C1DyB6uToszLs8aifA6NQ7lEQdvFw==", + "dependencies": { + "@types/node": "*", + "require-like": ">= 0.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/execa": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-7.1.1.tgz", + "integrity": "sha512-wH0eMf/UXckdUYnO21+HDztteVv05rq2GXksxT4fCGeHkBhw1DROXh40wcjMcRqDOWE7iPJ4n3M7e2+YFP+76Q==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.1", + "human-signals": "^4.3.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^3.0.7", + "strip-final-newline": "^3.0.0" + }, + "engines": { + "node": "^14.18.0 || ^16.14.0 || >=18.0.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/express": { + "version": "4.18.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", + "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/express/node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" + }, + "node_modules/express/node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/express/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/express/node_modules/path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" + }, + "node_modules/express/node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" + }, + "node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "node_modules/fast-diff": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", + "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.2.12", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", + "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "devOptional": true + }, + "node_modules/fast-url-parser": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/fast-url-parser/-/fast-url-parser-1.1.3.tgz", + "integrity": "sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ==", + "dependencies": { + "punycode": "^1.3.2" + } + }, + "node_modules/fastest-levenshtein": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", + "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", + "dev": true, + "engines": { + "node": ">= 4.9.1" + } + }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/faye-websocket": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", + "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", + "dependencies": { + "websocket-driver": ">=0.5.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/fbemitter": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/fbemitter/-/fbemitter-3.0.0.tgz", + "integrity": "sha512-KWKaceCwKQU0+HPoop6gn4eOHk50bBv/VxjJtGMfwmJt3D29JpN4H4eisCtIPA+a8GVBam+ldMMpMjJUvpDyHw==", + "dependencies": { + "fbjs": "^3.0.0" + } + }, + "node_modules/fbjs": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-3.0.5.tgz", + "integrity": "sha512-ztsSx77JBtkuMrEypfhgc3cI0+0h+svqeie7xHbh1k/IKdcydnvadp/mUaGgjAOXQmQSxsqgaRhS3q9fy+1kxg==", + "dependencies": { + "cross-fetch": "^3.1.5", + "fbjs-css-vars": "^1.0.0", + "loose-envify": "^1.0.0", + "object-assign": "^4.1.0", + "promise": "^7.1.1", + "setimmediate": "^1.0.5", + "ua-parser-js": "^1.0.35" + } + }, + "node_modules/fbjs-css-vars": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/fbjs-css-vars/-/fbjs-css-vars-1.0.2.tgz", + "integrity": "sha512-b2XGFAFdWZWg0phtAWLHCk836A1Xann+I+Dgd3Gk64MHKZO44FfoD1KxyvbSh0qZsIoXQGGlVztIY+oitJPpRQ==" + }, + "node_modules/feed": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/feed/-/feed-4.2.2.tgz", + "integrity": "sha512-u5/sxGfiMfZNtJ3OvQpXcvotFpYkL0n9u9mM2vkui2nGo8b4wvDkJ8gAkYqbA8QpGyFCv3RK0Z+Iv+9veCS9bQ==", + "dependencies": { + "xml-js": "^1.6.11" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "devOptional": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/file-loader": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz", + "integrity": "sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==", + "dependencies": { + "loader-utils": "^2.0.0", + "schema-utils": "^3.0.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/file-loader/node_modules/schema-utils": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", + "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/filesize": { + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/filesize/-/filesize-8.0.7.tgz", + "integrity": "sha512-pjmC+bkIF8XI7fWaH8KxHcZL3DPybs1roSKP4rKDvy20tAWwIObE4+JIseG2byfGKhud5ZnM4YSGKBz7Sh0ndQ==", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", + "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/find-cache-dir": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", + "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", + "dependencies": { + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/avajs/find-cache-dir?sponsor=1" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "devOptional": true, + "dependencies": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", + "devOptional": true + }, + "node_modules/flux": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/flux/-/flux-4.0.4.tgz", + "integrity": "sha512-NCj3XlayA2UsapRpM7va6wU1+9rE5FIL7qoMcmxWHRzbp0yujihMBm9BBHZ1MDIk5h5o2Bl6eGiCe8rYELAmYw==", + "dependencies": { + "fbemitter": "^3.0.0", + "fbjs": "^3.0.1" + }, + "peerDependencies": { + "react": "^15.0.2 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/follow-redirects": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", + "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "node_modules/fork-ts-checker-webpack-plugin": { + "version": "6.5.3", + "resolved": "https://registry.npmjs.org/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.5.3.tgz", + "integrity": "sha512-SbH/l9ikmMWycd5puHJKTkZJKddF4iRLyW3DeZ08HTI7NGyLS38MXd/KGgeWumQO7YNQbW2u/NtPT2YowbPaGQ==", + "dependencies": { + "@babel/code-frame": "^7.8.3", + "@types/json-schema": "^7.0.5", + "chalk": "^4.1.0", + "chokidar": "^3.4.2", + "cosmiconfig": "^6.0.0", + "deepmerge": "^4.2.2", + "fs-extra": "^9.0.0", + "glob": "^7.1.6", + "memfs": "^3.1.2", + "minimatch": "^3.0.4", + "schema-utils": "2.7.0", + "semver": "^7.3.2", + "tapable": "^1.0.0" + }, + "engines": { + "node": ">=10", + "yarn": ">=1.0.0" + }, + "peerDependencies": { + "eslint": ">= 6", + "typescript": ">= 2.7", + "vue-template-compiler": "*", + "webpack": ">= 4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true }, - "got": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", - "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", - "requires": { - "@sindresorhus/is": "^0.14.0", - "@szmarczak/http-timer": "^1.1.2", - "cacheable-request": "^6.0.0", - "decompress-response": "^3.3.0", - "duplexer3": "^0.1.4", - "get-stream": "^4.1.0", - "lowercase-keys": "^1.0.1", - "mimic-response": "^1.0.1", - "p-cancelable": "^1.0.0", - "to-readable-stream": "^1.0.0", - "url-parse-lax": "^3.0.0" - }, - "dependencies": { - "get-stream": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "requires": { - "pump": "^3.0.0" - } - } - } + "vue-template-compiler": { + "optional": true + } + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/cosmiconfig": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz", + "integrity": "sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==", + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.1.0", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.7.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/schema-utils": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.0.tgz", + "integrity": "sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==", + "dependencies": { + "@types/json-schema": "^7.0.4", + "ajv": "^6.12.2", + "ajv-keywords": "^3.4.1" + }, + "engines": { + "node": ">= 8.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/tapable": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz", + "integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fraction.js": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", + "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==", + "engines": { + "node": "*" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/infusion" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/fs-monkey": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.4.tgz", + "integrity": "sha512-INM/fWAxMICjttnD0DX1rBvinKskj5G1w+oy/pnm9u/tSlnBrzFonJMcalKJ30P8RRsPzKcCG7Q8l0jx5Fh9YQ==" + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "node_modules/function.prototype.name": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", + "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-own-enumerable-property-symbols": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz", + "integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==" + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/github-buttons": { + "version": "2.27.0", + "resolved": "https://registry.npmjs.org/github-buttons/-/github-buttons-2.27.0.tgz", + "integrity": "sha512-PmfRMI2Rttg/2jDfKBeSl621sEznrsKF019SuoLdoNlO7qRUZaOyEI5Li4uW+79pVqnDtKfIEVuHTIJ5lgy64w==" + }, + "node_modules/github-slugger": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-1.5.0.tgz", + "integrity": "sha512-wIh+gKBI9Nshz2o46B0B3f5k/W+WI9ZAv6y5Dn5WJ5SK1t0TnDimB4WE5rmTD05ZAIn8HALCZVmCsvj0w0v0lw==" + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" + }, + "node_modules/global-dirs": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.1.tgz", + "integrity": "sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA==", + "dependencies": { + "ini": "2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/global-dirs/node_modules/ini": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz", + "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==", + "engines": { + "node": ">=10" + } + }, + "node_modules/global-modules": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", + "integrity": "sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==", + "dependencies": { + "global-prefix": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/global-prefix": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz", + "integrity": "sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==", + "dependencies": { + "ini": "^1.3.5", + "kind-of": "^6.0.2", + "which": "^1.3.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/global-prefix/node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "engines": { + "node": ">=4" + } + }, + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globjoin": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/globjoin/-/globjoin-0.1.4.tgz", + "integrity": "sha512-xYfnw62CKG8nLkZBfWbhWwDw02CHty86jfPcc2cr3ZfeuK9ysoVPPEUxf21bAD/rWAgk52SuBrLJlefNy8mvFg==", + "dev": true + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/got": { + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", + "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", + "dependencies": { + "@sindresorhus/is": "^0.14.0", + "@szmarczak/http-timer": "^1.1.2", + "cacheable-request": "^6.0.0", + "decompress-response": "^3.3.0", + "duplexer3": "^0.1.4", + "get-stream": "^4.1.0", + "lowercase-keys": "^1.0.1", + "mimic-response": "^1.0.1", + "p-cancelable": "^1.0.0", + "to-readable-stream": "^1.0.0", + "url-parse-lax": "^3.0.0" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/got/node_modules/get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" + }, + "node_modules/grapheme-splitter": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", + "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", + "dev": true + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "devOptional": true + }, + "node_modules/gray-matter": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-4.0.3.tgz", + "integrity": "sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==", + "dependencies": { + "js-yaml": "^3.13.1", + "kind-of": "^6.0.2", + "section-matter": "^1.0.0", + "strip-bom-string": "^1.0.0" + }, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/gray-matter/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/gray-matter/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/gzip-size": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", + "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", + "dependencies": { + "duplexer": "^0.1.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/handle-thing": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", + "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==" + }, + "node_modules/hard-rejection": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", + "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "dependencies": { + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-yarn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", + "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/hast-to-hyperscript": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/hast-to-hyperscript/-/hast-to-hyperscript-9.0.1.tgz", + "integrity": "sha512-zQgLKqF+O2F72S1aa4y2ivxzSlko3MAvxkwG8ehGmNiqd98BIN3JM1rAJPmplEyLmGLO2QZYJtIneOSZ2YbJuA==", + "dependencies": { + "@types/unist": "^2.0.3", + "comma-separated-tokens": "^1.0.0", + "property-information": "^5.3.0", + "space-separated-tokens": "^1.0.0", + "style-to-object": "^0.3.0", + "unist-util-is": "^4.0.0", + "web-namespaces": "^1.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-from-parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-6.0.1.tgz", + "integrity": "sha512-jeJUWiN5pSxW12Rh01smtVkZgZr33wBokLzKLwinYOUfSzm1Nl/c3GUGebDyOKjdsRgMvoVbV0VpAcpjF4NrJA==", + "dependencies": { + "@types/parse5": "^5.0.0", + "hastscript": "^6.0.0", + "property-information": "^5.0.0", + "vfile": "^4.0.0", + "vfile-location": "^3.2.0", + "web-namespaces": "^1.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-parse-selector": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-2.2.5.tgz", + "integrity": "sha512-7j6mrk/qqkSehsM92wQjdIgWM2/BW61u/53G6xmC8i1OmEdKLHbk419QKQUjz6LglWsfqoiHmyMRkP1BGjecNQ==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-raw": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-6.0.1.tgz", + "integrity": "sha512-ZMuiYA+UF7BXBtsTBNcLBF5HzXzkyE6MLzJnL605LKE8GJylNjGc4jjxazAHUtcwT5/CEt6afRKViYB4X66dig==", + "dependencies": { + "@types/hast": "^2.0.0", + "hast-util-from-parse5": "^6.0.0", + "hast-util-to-parse5": "^6.0.0", + "html-void-elements": "^1.0.0", + "parse5": "^6.0.0", + "unist-util-position": "^3.0.0", + "vfile": "^4.0.0", + "web-namespaces": "^1.0.0", + "xtend": "^4.0.0", + "zwitch": "^1.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-raw/node_modules/parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==" + }, + "node_modules/hast-util-to-parse5": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/hast-util-to-parse5/-/hast-util-to-parse5-6.0.0.tgz", + "integrity": "sha512-Lu5m6Lgm/fWuz8eWnrKezHtVY83JeRGaNQ2kn9aJgqaxvVkFCZQBEhgodZUDUvoodgyROHDb3r5IxAEdl6suJQ==", + "dependencies": { + "hast-to-hyperscript": "^9.0.0", + "property-information": "^5.0.0", + "web-namespaces": "^1.0.0", + "xtend": "^4.0.0", + "zwitch": "^1.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-whitespace": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-2.0.1.tgz", + "integrity": "sha512-nAxA0v8+vXSBDt3AnRUNjyRIQ0rD+ntpbAp4LnPkumc5M9yUbSMa4XDU9Q6etY4f1Wp4bNgvc1yjiZtsTTrSng==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hastscript": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-6.0.0.tgz", + "integrity": "sha512-nDM6bvd7lIqDUiYEiu5Sl/+6ReP0BMk/2f4U/Rooccxkj0P5nm+acM5PrGJ/t5I8qPGiqZSE6hVAwZEdZIvP4w==", + "dependencies": { + "@types/hast": "^2.0.0", + "comma-separated-tokens": "^1.0.0", + "hast-util-parse-selector": "^2.0.0", + "property-information": "^5.0.0", + "space-separated-tokens": "^1.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "bin": { + "he": "bin/he" + } + }, + "node_modules/history": { + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/history/-/history-4.10.1.tgz", + "integrity": "sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew==", + "dependencies": { + "@babel/runtime": "^7.1.2", + "loose-envify": "^1.2.0", + "resolve-pathname": "^3.0.0", + "tiny-invariant": "^1.0.2", + "tiny-warning": "^1.0.0", + "value-equal": "^1.0.1" + } + }, + "node_modules/hoist-non-react-statics": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", + "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", + "dependencies": { + "react-is": "^16.7.0" + } + }, + "node_modules/hosted-git-info": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", + "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/hosted-git-info/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/hosted-git-info/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/hpack.js": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", + "integrity": "sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==", + "dependencies": { + "inherits": "^2.0.1", + "obuf": "^1.0.0", + "readable-stream": "^2.0.1", + "wbuf": "^1.1.0" + } + }, + "node_modules/hpack.js/node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + }, + "node_modules/hpack.js/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/hpack.js/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/hpack.js/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/html-entities": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.4.tgz", + "integrity": "sha512-TtiHkpRBqP40OzizVWjwBPBsiqchEZxAg/nys6D6lIpdoVLo7sWZ/5Sf/s4UaBHQ6pzUzEr3NiItvEoO46sPtQ==" + }, + "node_modules/html-minifier-terser": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", + "integrity": "sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw==", + "dependencies": { + "camel-case": "^4.1.2", + "clean-css": "^5.2.2", + "commander": "^8.3.0", + "he": "^1.2.0", + "param-case": "^3.0.4", + "relateurl": "^0.2.7", + "terser": "^5.10.0" + }, + "bin": { + "html-minifier-terser": "cli.js" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/html-minifier-terser/node_modules/commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "engines": { + "node": ">= 12" + } + }, + "node_modules/html-tags": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/html-tags/-/html-tags-3.3.1.tgz", + "integrity": "sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/html-void-elements": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-1.0.5.tgz", + "integrity": "sha512-uE/TxKuyNIcx44cIWnjr/rfIATDH7ZaOMmstu0CwhFG1Dunhlp4OC6/NMbhiwoq5BpW0ubi303qnEk/PZj614w==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/html-webpack-plugin": { + "version": "5.5.1", + "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.5.1.tgz", + "integrity": "sha512-cTUzZ1+NqjGEKjmVgZKLMdiFg3m9MdRXkZW2OEe69WYVi5ONLMmlnSZdXzGGMOq0C8jGDrL6EWyEDDUioHO/pA==", + "dependencies": { + "@types/html-minifier-terser": "^6.0.0", + "html-minifier-terser": "^6.0.2", + "lodash": "^4.17.21", + "pretty-error": "^4.0.0", + "tapable": "^2.0.0" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/html-webpack-plugin" + }, + "peerDependencies": { + "webpack": "^5.20.0" + } + }, + "node_modules/htmlparser2": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz", + "integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==", + "funding": [ + "https://github.com/fb55/htmlparser2?sponsor=1", + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "dependencies": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3", + "domutils": "^3.0.1", + "entities": "^4.4.0" + } + }, + "node_modules/http-cache-semantics": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", + "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==" + }, + "node_modules/http-deceiver": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", + "integrity": "sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==" + }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/http-parser-js": { + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.8.tgz", + "integrity": "sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q==" + }, + "node_modules/http-proxy": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", + "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", + "dependencies": { + "eventemitter3": "^4.0.0", + "follow-redirects": "^1.0.0", + "requires-port": "^1.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/http-proxy-middleware": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", + "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", + "dependencies": { + "@types/http-proxy": "^1.17.8", + "http-proxy": "^1.18.1", + "is-glob": "^4.0.1", + "is-plain-obj": "^3.0.0", + "micromatch": "^4.0.2" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "@types/express": "^4.17.13" + }, + "peerDependenciesMeta": { + "@types/express": { + "optional": true + } + } + }, + "node_modules/http-proxy-middleware/node_modules/is-plain-obj": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", + "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/human-signals": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", + "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", + "dev": true, + "engines": { + "node": ">=14.18.0" + } + }, + "node_modules/husky": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", + "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "dev": true, + "bin": { + "husky": "lib/bin.js" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/icss-utils": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", + "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/ignore": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/image-size": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/image-size/-/image-size-1.0.2.tgz", + "integrity": "sha512-xfOoWjceHntRb3qFCrh5ZFORYH8XCdYpASltMhZ/Q0KZiOwjdE/Yl2QCiWdwD+lygV5bMCvauzgu5PxBX/Yerg==", + "dependencies": { + "queue": "6.0.2" + }, + "bin": { + "image-size": "bin/image-size.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/immediate": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.3.0.tgz", + "integrity": "sha512-HR7EVodfFUdQCTIeySw+WDRFJlPcLOJbXfwwZ7Oom6tjsvZ3bOkCDJHehQC3nxJrv7+f9XecwazynjU8e4Vw3Q==" + }, + "node_modules/immer": { + "version": "9.0.21", + "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", + "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-lazy": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-4.0.0.tgz", + "integrity": "sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/infima": { + "version": "0.2.0-alpha.43", + "resolved": "https://registry.npmjs.org/infima/-/infima-0.2.0-alpha.43.tgz", + "integrity": "sha512-2uw57LvUqW0rK/SWYnd/2rRfxNA5DDNOh33jxF7fy46VWoNhGxiUQyVZHbBMjQ33mQem0cjdDVwgWVAmlRfgyQ==", + "engines": { + "node": ">=12" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" + }, + "node_modules/inline-style-parser": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.1.1.tgz", + "integrity": "sha512-7NXolsK4CAS5+xvdj5OMMbI962hU/wvwoxk+LWR9Ek9bVtyuuYScDN6eS0rUm6TxApFpw7CX1o4uJzcd4AyD3Q==" + }, + "node_modules/internal-slot": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", + "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/interpret": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/invariant": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "dependencies": { + "loose-envify": "^1.0.0" + } + }, + "node_modules/ipaddr.js": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.1.0.tgz", + "integrity": "sha512-LlbxQ7xKzfBusov6UMi4MFpEg0m+mAm9xyNGEduwXMEDuf4WfzB/RZwMVYEd7IKGvh4IUkEXYxtAVu9T3OelJQ==", + "engines": { + "node": ">= 10" + } + }, + "node_modules/is-alphabetical": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-1.0.4.tgz", + "integrity": "sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-alphanumerical": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-1.0.4.tgz", + "integrity": "sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A==", + "dependencies": { + "is-alphabetical": "^1.0.0", + "is-decimal": "^1.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-arguments": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-buffer": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", + "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "engines": { + "node": ">=4" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-ci": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "dependencies": { + "ci-info": "^2.0.0" + }, + "bin": { + "is-ci": "bin.js" + } + }, + "node_modules/is-ci/node_modules/ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==" + }, + "node_modules/is-core-module": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", + "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-decimal": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-1.0.4.tgz", + "integrity": "sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz", + "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-hexadecimal": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz", + "integrity": "sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-installed-globally": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz", + "integrity": "sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==", + "dependencies": { + "global-dirs": "^3.0.0", + "is-path-inside": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-map": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", + "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-npm": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-5.0.0.tgz", + "integrity": "sha512-WW/rQLOazUq+ST/bCAVBp/2oMERWLsR7OrKyt052dNDk4DHcDE0/7QSXITlmi+VBcV13DfIbysG3tZJm5RfdBA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", + "integrity": "sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-path-cwd": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", + "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-plain-object": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", + "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-regexp": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz", + "integrity": "sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-root": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-root/-/is-root-2.1.0.tgz", + "integrity": "sha512-AGOriNp96vNBd3HtU+RzFEc75FfR5ymiYv8E553I71SCeXBiMsVDUtdio1OEFvrPyLIQ9tVR5RxXIFe5PUFjMg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/is-set": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", + "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", + "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" + }, + "node_modules/is-weakmap": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", + "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakset": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", + "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-whitespace-character": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-whitespace-character/-/is-whitespace-character-1.0.4.tgz", + "integrity": "sha512-SDweEzfIZM0SJV0EUga669UTKlmL0Pq8Lno0QDQsPnvECB3IM2aP0gdx5TrU0A01MAPfViaZiI2V1QMZLaKK5w==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-word-character": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-word-character/-/is-word-character-1.0.4.tgz", + "integrity": "sha512-5SMO8RVennx3nZrqtKwCGyyetPE9VDba5ugvKLaD4KopPG5kR4mQ7tNt/r7feL5yt5h3lpuBbIUmCOG2eSzXHA==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-yarn-global": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", + "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==" + }, + "node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/jest-util": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.5.0.tgz", + "integrity": "sha512-RYMgG/MTadOr5t8KdhejfvUU82MxsCu5MF6KuDUHl+NuwzUt+Sm6jJWxTJVrDR1j5M/gJVCPKQEpWXY+yIQ6lQ==", + "dependencies": { + "@jest/types": "^29.5.0", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-util/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-util/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-util/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-util/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/jest-util/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-util/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.5.0.tgz", + "integrity": "sha512-NcrQnevGoSp4b5kg+akIpthoAFHxPBcb5P6mYPY0fUNT+sSvmtu6jlkEle3anczUKIKEbMxFimk9oTP/tpIPgA==", + "dependencies": { + "@types/node": "*", + "jest-util": "^29.5.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/jiti": { + "version": "1.18.2", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.18.2.tgz", + "integrity": "sha512-QAdOptna2NYiSSpv0O/BwoHBSmz4YhpzJHyi+fnMRTXFjp7B8i/YG5Z8IfusxB1ufjcD2Sre1F3R+nX3fvy7gg==", + "bin": { + "jiti": "bin/jiti.js" + } + }, + "node_modules/joi": { + "version": "17.9.2", + "resolved": "https://registry.npmjs.org/joi/-/joi-17.9.2.tgz", + "integrity": "sha512-Itk/r+V4Dx0V3c7RLFdRh12IOjySm2/WGPMubBT92cQvRfYZhPM2W0hZlctjj72iES8jsRCwp7S/cRmWBnJ4nw==", + "dependencies": { + "@hapi/hoek": "^9.0.0", + "@hapi/topo": "^5.0.0", + "@sideway/address": "^4.1.3", + "@sideway/formula": "^3.0.1", + "@sideway/pinpoint": "^2.0.0" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsdoctypeparser": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/jsdoctypeparser/-/jsdoctypeparser-9.0.0.tgz", + "integrity": "sha512-jrTA2jJIL6/DAEILBEh2/w9QxCuwmvNXIry39Ay/HVfhE3o2yVV0U44blYkqdHA/OKloJEqvJy0xU+GSdE2SIw==", + "dev": true, + "bin": { + "jsdoctypeparser": "bin/jsdoctypeparser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", + "integrity": "sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ==" + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "devOptional": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsx-ast-utils": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", + "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.5", + "object.assign": "^4.1.3" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/keyv": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", + "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", + "dependencies": { + "json-buffer": "3.0.0" + } + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/klaw-sync": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz", + "integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==", + "dependencies": { + "graceful-fs": "^4.1.11" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "engines": { + "node": ">=6" + } + }, + "node_modules/klona": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.6.tgz", + "integrity": "sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/known-css-properties": { + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.26.0.tgz", + "integrity": "sha512-5FZRzrZzNTBruuurWpvZnvP9pum+fe0HcK8z/ooo+U+Hmp4vtbyp1/QDsqmufirXy4egGzbaH/y2uCZf+6W5Kg==", + "dev": true + }, + "node_modules/language-subtag-registry": { + "version": "0.3.22", + "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", + "integrity": "sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==", + "dev": true + }, + "node_modules/language-tags": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", + "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==", + "dev": true, + "dependencies": { + "language-subtag-registry": "~0.3.2" + } + }, + "node_modules/latest-version": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", + "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", + "dependencies": { + "package-json": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/launch-editor": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.6.0.tgz", + "integrity": "sha512-JpDCcQnyAAzZZaZ7vEiSqL690w7dAEyLao+KC96zBplnYbJS7TYNjvM3M7y3dGz+v7aIsJk3hllWuc0kWAjyRQ==", + "dependencies": { + "picocolors": "^1.0.0", + "shell-quote": "^1.7.3" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "devOptional": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lilconfig": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", + "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", + "engines": { + "node": ">=10" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" + }, + "node_modules/lint-staged": { + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-13.2.2.tgz", + "integrity": "sha512-71gSwXKy649VrSU09s10uAT0rWCcY3aewhMaHyl2N84oBk4Xs9HgxvUp3AYu+bNsK4NrOYYxvSgg7FyGJ+jGcA==", + "dev": true, + "dependencies": { + "chalk": "5.2.0", + "cli-truncate": "^3.1.0", + "commander": "^10.0.0", + "debug": "^4.3.4", + "execa": "^7.0.0", + "lilconfig": "2.1.0", + "listr2": "^5.0.7", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "object-inspect": "^1.12.3", + "pidtree": "^0.6.0", + "string-argv": "^0.3.1", + "yaml": "^2.2.2" + }, + "bin": { + "lint-staged": "bin/lint-staged.js" + }, + "engines": { + "node": "^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/lint-staged" + } + }, + "node_modules/lint-staged/node_modules/chalk": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.2.0.tgz", + "integrity": "sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA==", + "dev": true, + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/lint-staged/node_modules/commander": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", + "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", + "dev": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/lint-staged/node_modules/yaml": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz", + "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==", + "dev": true, + "engines": { + "node": ">= 14" + } + }, + "node_modules/listr2": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/listr2/-/listr2-5.0.8.tgz", + "integrity": "sha512-mC73LitKHj9w6v30nLNGPetZIlfpUniNSsxxrbaPcWOjDb92SHPzJPi/t+v1YC/lxKz/AJ9egOjww0qUuFxBpA==", + "dev": true, + "dependencies": { + "cli-truncate": "^2.1.0", + "colorette": "^2.0.19", + "log-update": "^4.0.0", + "p-map": "^4.0.0", + "rfdc": "^1.3.0", + "rxjs": "^7.8.0", + "through": "^2.3.8", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": "^14.13.1 || >=16.0.0" + }, + "peerDependencies": { + "enquirer": ">= 2.3.0 < 3" + }, + "peerDependenciesMeta": { + "enquirer": { + "optional": true + } + } + }, + "node_modules/listr2/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/listr2/node_modules/cli-truncate": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz", + "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==", + "dev": true, + "dependencies": { + "slice-ansi": "^3.0.0", + "string-width": "^4.2.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/listr2/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/listr2/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/listr2/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/listr2/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/listr2/node_modules/slice-ansi": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz", + "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/listr2/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/listr2/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/load-script": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/load-script/-/load-script-1.0.0.tgz", + "integrity": "sha512-kPEjMFtZvwL9TaZo0uZ2ml+Ye9HUMmPwbYRJ324qF9tqMejwykJ5ggTyvzmrbBeapCAbk98BSbTeovHEEP1uCA==" + }, + "node_modules/loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "engines": { + "node": ">=6.11.5" + } + }, + "node_modules/loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/lodash.curry": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.curry/-/lodash.curry-4.1.1.tgz", + "integrity": "sha512-/u14pXGviLaweY5JI0IUzgzF2J6Ne8INyzAZjImcryjgkZ+ebruBxy2/JaOOkTqScddcYtakjhSaeemV8lR0tA==" + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" + }, + "node_modules/lodash.flow": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/lodash.flow/-/lodash.flow-3.5.0.tgz", + "integrity": "sha512-ff3BX/tSioo+XojX4MOsOMhJw0nZoUEF011LX8g8d3gvjVbxd89cCio4BCXronjxcTUIJUoqKEUA+n4CqvvRPw==" + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "devOptional": true + }, + "node_modules/lodash.truncate": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", + "integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==", + "dev": true + }, + "node_modules/lodash.uniq": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", + "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==" + }, + "node_modules/log-update": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/log-update/-/log-update-4.0.0.tgz", + "integrity": "sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==", + "dev": true, + "dependencies": { + "ansi-escapes": "^4.3.0", + "cli-cursor": "^3.1.0", + "slice-ansi": "^4.0.0", + "wrap-ansi": "^6.2.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-update/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/log-update/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/log-update/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/log-update/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/log-update/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/log-update/node_modules/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" + } + }, + "node_modules/log-update/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/log-update/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/longest-streak": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz", + "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lower-case": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", + "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", + "dependencies": { + "tslib": "^2.0.3" + } + }, + "node_modules/lowercase-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/lunr": { + "version": "2.3.9", + "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz", + "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==" + }, + "node_modules/lunr-languages": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/lunr-languages/-/lunr-languages-1.12.0.tgz", + "integrity": "sha512-C2z02jt74ymrDocBwxYB4Cr1LNZj9rHGLTH/00+JuoT6eJOSSuPBzeqQG8kjnlPUQe+/PAWv1/KHbDT+YYYRnA==" + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/map-obj": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", + "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mark.js": { + "version": "8.11.1", + "resolved": "https://registry.npmjs.org/mark.js/-/mark.js-8.11.1.tgz", + "integrity": "sha512-1I+1qpDt4idfgLQG+BNWmrqku+7/2bi5nLf4YwF8y8zXvmfiTBY3PV3ZibfrjBueCByROpuBjLLFCajqkgYoLQ==" + }, + "node_modules/markdown-escapes": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/markdown-escapes/-/markdown-escapes-1.0.4.tgz", + "integrity": "sha512-8z4efJYk43E0upd0NbVXwgSTQs6cT3T06etieCMEg7dRbzCbxUCK/GHlX8mhHRDcp+OLlHkPKsvqQTCvsRl2cg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/mathml-tag-names": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/mathml-tag-names/-/mathml-tag-names-2.1.3.tgz", + "integrity": "sha512-APMBEanjybaPzUrfqU0IMU5I0AswKMH7k8OTLs0vvV4KZpExkTkY87nR/zpbuTPj+gARop7aGUbl11pnDfW6xg==", + "dev": true, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/mdast-squeeze-paragraphs": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mdast-squeeze-paragraphs/-/mdast-squeeze-paragraphs-4.0.0.tgz", + "integrity": "sha512-zxdPn69hkQ1rm4J+2Cs2j6wDEv7O17TfXTJ33tl/+JPIoEmtV9t2ZzBM5LPHE8QlHsmVD8t3vPKCyY3oH+H8MQ==", + "dependencies": { + "unist-util-remove": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-definitions": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-definitions/-/mdast-util-definitions-4.0.0.tgz", + "integrity": "sha512-k8AJ6aNnUkB7IE+5azR9h81O5EQ/cTDXtWdMq9Kk5KcEW/8ritU5CeLg/9HhOC++nALHBlaogJ5jz0Ybk3kPMQ==", + "dependencies": { + "unist-util-visit": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-from-markdown": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-1.3.1.tgz", + "integrity": "sha512-4xTO/M8c82qBcnQc1tgpNtubGUW/Y1tBQ1B0i5CtSoelOLKFYlElIr3bvgREYYO5iRqbMY1YuqZng0GVOI8Qww==", + "dependencies": { + "@types/mdast": "^3.0.0", + "@types/unist": "^2.0.0", + "decode-named-character-reference": "^1.0.0", + "mdast-util-to-string": "^3.1.0", + "micromark": "^3.0.0", + "micromark-util-decode-numeric-character-reference": "^1.0.0", + "micromark-util-decode-string": "^1.0.0", + "micromark-util-normalize-identifier": "^1.0.0", + "micromark-util-symbol": "^1.0.0", + "micromark-util-types": "^1.0.0", + "unist-util-stringify-position": "^3.0.0", + "uvu": "^0.5.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz", + "integrity": "sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==", + "dependencies": { + "@types/mdast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-phrasing": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-3.0.1.tgz", + "integrity": "sha512-WmI1gTXUBJo4/ZmSk79Wcb2HcjPJBzM1nlI/OUWA8yk2X9ik3ffNbBGsU+09BFmXaL1IBb9fiuvq6/KMiNycSg==", + "dependencies": { + "@types/mdast": "^3.0.0", + "unist-util-is": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-phrasing/node_modules/unist-util-is": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", + "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", + "dependencies": { + "@types/unist": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-hast": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-10.0.1.tgz", + "integrity": "sha512-BW3LM9SEMnjf4HXXVApZMt8gLQWVNXc3jryK0nJu/rOXPOnlkUjmdkDlmxMirpbU9ILncGFIwLH/ubnWBbcdgA==", + "dependencies": { + "@types/mdast": "^3.0.0", + "@types/unist": "^2.0.0", + "mdast-util-definitions": "^4.0.0", + "mdurl": "^1.0.0", + "unist-builder": "^2.0.0", + "unist-util-generated": "^1.0.0", + "unist-util-position": "^3.0.0", + "unist-util-visit": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-markdown": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-1.5.0.tgz", + "integrity": "sha512-bbv7TPv/WC49thZPg3jXuqzuvI45IL2EVAr/KxF0BSdHsU0ceFHOmwQn6evxAh1GaoK/6GQ1wp4R4oW2+LFL/A==", + "dependencies": { + "@types/mdast": "^3.0.0", + "@types/unist": "^2.0.0", + "longest-streak": "^3.0.0", + "mdast-util-phrasing": "^3.0.0", + "mdast-util-to-string": "^3.0.0", + "micromark-util-decode-string": "^1.0.0", + "unist-util-visit": "^4.0.0", + "zwitch": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-markdown/node_modules/mdast-util-to-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz", + "integrity": "sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==", + "dependencies": { + "@types/mdast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-markdown/node_modules/unist-util-is": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", + "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", + "dependencies": { + "@types/unist": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-markdown/node_modules/unist-util-visit": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz", + "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-is": "^5.0.0", + "unist-util-visit-parents": "^5.1.1" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-markdown/node_modules/unist-util-visit-parents": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz", + "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-is": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-markdown/node_modules/zwitch": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", + "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/mdast-util-to-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-2.0.0.tgz", + "integrity": "sha512-AW4DRS3QbBayY/jJmD8437V1Gombjf8RSOUCMFBuo5iHi58AGEgVCKQ+ezHkZZDpAQS75hcBMpLqjpJTjtUL7w==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdn-data": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", + "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==" + }, + "node_modules/mdurl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", + "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==" + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/memfs": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.5.2.tgz", + "integrity": "sha512-4kbWXbVZ+LU4XFDS2CuA7frnwz2HxCMB/0yOXc86q7aCQrfWKkL11t6al1e2CsVC7uhnBNTQ1TfUsAxVauO9IQ==", + "dependencies": { + "fs-monkey": "^1.0.3" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/memoize-one": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-5.2.1.tgz", + "integrity": "sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==" + }, + "node_modules/meow": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-9.0.0.tgz", + "integrity": "sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ==", + "dev": true, + "dependencies": { + "@types/minimist": "^1.2.0", + "camelcase-keys": "^6.2.2", + "decamelize": "^1.2.0", + "decamelize-keys": "^1.1.0", + "hard-rejection": "^2.1.0", + "minimist-options": "4.1.0", + "normalize-package-data": "^3.0.0", + "read-pkg-up": "^7.0.1", + "redent": "^3.0.0", + "trim-newlines": "^3.0.0", + "type-fest": "^0.18.0", + "yargs-parser": "^20.2.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/meow/node_modules/type-fest": { + "version": "0.18.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", + "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/micromark": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/micromark/-/micromark-3.2.0.tgz", + "integrity": "sha512-uD66tJj54JLYq0De10AhWycZWGQNUvDI55xPgk2sQM5kn1JYlhbCMTtEeT27+vAhW2FBQxLlOmS3pmA7/2z4aA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "@types/debug": "^4.0.0", + "debug": "^4.0.0", + "decode-named-character-reference": "^1.0.0", + "micromark-core-commonmark": "^1.0.1", + "micromark-factory-space": "^1.0.0", + "micromark-util-character": "^1.0.0", + "micromark-util-chunked": "^1.0.0", + "micromark-util-combine-extensions": "^1.0.0", + "micromark-util-decode-numeric-character-reference": "^1.0.0", + "micromark-util-encode": "^1.0.0", + "micromark-util-normalize-identifier": "^1.0.0", + "micromark-util-resolve-all": "^1.0.0", + "micromark-util-sanitize-uri": "^1.0.0", + "micromark-util-subtokenize": "^1.0.0", + "micromark-util-symbol": "^1.0.0", + "micromark-util-types": "^1.0.1", + "uvu": "^0.5.0" + } + }, + "node_modules/micromark-core-commonmark": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-1.1.0.tgz", + "integrity": "sha512-BgHO1aRbolh2hcrzL2d1La37V0Aoz73ymF8rAcKnohLy93titmv62E0gP8Hrx9PKcKrqCZ1BbLGbP3bEhoXYlw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "decode-named-character-reference": "^1.0.0", + "micromark-factory-destination": "^1.0.0", + "micromark-factory-label": "^1.0.0", + "micromark-factory-space": "^1.0.0", + "micromark-factory-title": "^1.0.0", + "micromark-factory-whitespace": "^1.0.0", + "micromark-util-character": "^1.0.0", + "micromark-util-chunked": "^1.0.0", + "micromark-util-classify-character": "^1.0.0", + "micromark-util-html-tag-name": "^1.0.0", + "micromark-util-normalize-identifier": "^1.0.0", + "micromark-util-resolve-all": "^1.0.0", + "micromark-util-subtokenize": "^1.0.0", + "micromark-util-symbol": "^1.0.0", + "micromark-util-types": "^1.0.1", + "uvu": "^0.5.0" + } + }, + "node_modules/micromark-factory-destination": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-1.1.0.tgz", + "integrity": "sha512-XaNDROBgx9SgSChd69pjiGKbV+nfHGDPVYFs5dOoDd7ZnMAE+Cuu91BCpsY8RT2NP9vo/B8pds2VQNCLiu0zhg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-character": "^1.0.0", + "micromark-util-symbol": "^1.0.0", + "micromark-util-types": "^1.0.0" + } + }, + "node_modules/micromark-factory-label": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-1.1.0.tgz", + "integrity": "sha512-OLtyez4vZo/1NjxGhcpDSbHQ+m0IIGnT8BoPamh+7jVlzLJBH98zzuCoUeMxvM6WsNeh8wx8cKvqLiPHEACn0w==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-character": "^1.0.0", + "micromark-util-symbol": "^1.0.0", + "micromark-util-types": "^1.0.0", + "uvu": "^0.5.0" + } + }, + "node_modules/micromark-factory-space": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-1.1.0.tgz", + "integrity": "sha512-cRzEj7c0OL4Mw2v6nwzttyOZe8XY/Z8G0rzmWQZTBi/jjwyw/U4uqKtUORXQrR5bAZZnbTI/feRV/R7hc4jQYQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-character": "^1.0.0", + "micromark-util-types": "^1.0.0" + } + }, + "node_modules/micromark-factory-title": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-1.1.0.tgz", + "integrity": "sha512-J7n9R3vMmgjDOCY8NPw55jiyaQnH5kBdV2/UXCtZIpnHH3P6nHUKaH7XXEYuWwx/xUJcawa8plLBEjMPU24HzQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-factory-space": "^1.0.0", + "micromark-util-character": "^1.0.0", + "micromark-util-symbol": "^1.0.0", + "micromark-util-types": "^1.0.0" + } + }, + "node_modules/micromark-factory-whitespace": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-1.1.0.tgz", + "integrity": "sha512-v2WlmiymVSp5oMg+1Q0N1Lxmt6pMhIHD457whWM7/GUlEks1hI9xj5w3zbc4uuMKXGisksZk8DzP2UyGbGqNsQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-factory-space": "^1.0.0", + "micromark-util-character": "^1.0.0", + "micromark-util-symbol": "^1.0.0", + "micromark-util-types": "^1.0.0" + } + }, + "node_modules/micromark-util-character": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz", + "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-symbol": "^1.0.0", + "micromark-util-types": "^1.0.0" + } + }, + "node_modules/micromark-util-chunked": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-1.1.0.tgz", + "integrity": "sha512-Ye01HXpkZPNcV6FiyoW2fGZDUw4Yc7vT0E9Sad83+bEDiCJ1uXu0S3mr8WLpsz3HaG3x2q0HM6CTuPdcZcluFQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-symbol": "^1.0.0" + } + }, + "node_modules/micromark-util-classify-character": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-1.1.0.tgz", + "integrity": "sha512-SL0wLxtKSnklKSUplok1WQFoGhUdWYKggKUiqhX+Swala+BtptGCu5iPRc+xvzJ4PXE/hwM3FNXsfEVgoZsWbw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-character": "^1.0.0", + "micromark-util-symbol": "^1.0.0", + "micromark-util-types": "^1.0.0" + } + }, + "node_modules/micromark-util-combine-extensions": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-1.1.0.tgz", + "integrity": "sha512-Q20sp4mfNf9yEqDL50WwuWZHUrCO4fEyeDCnMGmG5Pr0Cz15Uo7KBs6jq+dq0EgX4DPwwrh9m0X+zPV1ypFvUA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-chunked": "^1.0.0", + "micromark-util-types": "^1.0.0" + } + }, + "node_modules/micromark-util-decode-numeric-character-reference": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-1.1.0.tgz", + "integrity": "sha512-m9V0ExGv0jB1OT21mrWcuf4QhP46pH1KkfWy9ZEezqHKAxkj4mPCy3nIH1rkbdMlChLHX531eOrymlwyZIf2iw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-symbol": "^1.0.0" + } + }, + "node_modules/micromark-util-decode-string": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-1.1.0.tgz", + "integrity": "sha512-YphLGCK8gM1tG1bd54azwyrQRjCFcmgj2S2GoJDNnh4vYtnL38JS8M4gpxzOPNyHdNEpheyWXCTnnTDY3N+NVQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "decode-named-character-reference": "^1.0.0", + "micromark-util-character": "^1.0.0", + "micromark-util-decode-numeric-character-reference": "^1.0.0", + "micromark-util-symbol": "^1.0.0" + } + }, + "node_modules/micromark-util-encode": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-1.1.0.tgz", + "integrity": "sha512-EuEzTWSTAj9PA5GOAs992GzNh2dGQO52UvAbtSOMvXTxv3Criqb6IOzJUBCmEqrrXSblJIJBbFFv6zPxpreiJw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ] + }, + "node_modules/micromark-util-html-tag-name": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-1.2.0.tgz", + "integrity": "sha512-VTQzcuQgFUD7yYztuQFKXT49KghjtETQ+Wv/zUjGSGBioZnkA4P1XXZPT1FHeJA6RwRXSF47yvJ1tsJdoxwO+Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ] + }, + "node_modules/micromark-util-normalize-identifier": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-1.1.0.tgz", + "integrity": "sha512-N+w5vhqrBihhjdpM8+5Xsxy71QWqGn7HYNUvch71iV2PM7+E3uWGox1Qp90loa1ephtCxG2ftRV/Conitc6P2Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-symbol": "^1.0.0" + } + }, + "node_modules/micromark-util-resolve-all": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-1.1.0.tgz", + "integrity": "sha512-b/G6BTMSg+bX+xVCshPTPyAu2tmA0E4X98NSR7eIbeC6ycCqCeE7wjfDIgzEbkzdEVJXRtOG4FbEm/uGbCRouA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-types": "^1.0.0" + } + }, + "node_modules/micromark-util-sanitize-uri": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-1.2.0.tgz", + "integrity": "sha512-QO4GXv0XZfWey4pYFndLUKEAktKkG5kZTdUNaTAkzbuJxn2tNBOr+QtxR2XpWaMhbImT2dPzyLrPXLlPhph34A==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-character": "^1.0.0", + "micromark-util-encode": "^1.0.0", + "micromark-util-symbol": "^1.0.0" + } + }, + "node_modules/micromark-util-subtokenize": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-1.1.0.tgz", + "integrity": "sha512-kUQHyzRoxvZO2PuLzMt2P/dwVsTiivCK8icYTeR+3WgbuPqfHgPPy7nFKbeqRivBvn/3N3GBiNC+JRTMSxEC7A==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-chunked": "^1.0.0", + "micromark-util-symbol": "^1.0.0", + "micromark-util-types": "^1.0.0", + "uvu": "^0.5.0" + } + }, + "node_modules/micromark-util-symbol": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz", + "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ] + }, + "node_modules/micromark-util-types": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz", + "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ] + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", + "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.18", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", + "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", + "dependencies": { + "mime-db": "~1.33.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/mini-css-extract-plugin": { + "version": "2.7.6", + "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.7.6.tgz", + "integrity": "sha512-Qk7HcgaPkGG6eD77mLvZS1nmxlao3j+9PkrT9Uc7HAE1id3F41+DdBRYRYkbyfNRGzm8/YWtzhw7nVPmwhqTQw==", + "dependencies": { + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/mini-css-extract-plugin/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/mini-css-extract-plugin/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/mini-css-extract-plugin/node_modules/schema-utils": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", + "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minimist-options": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", + "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", + "dev": true, + "dependencies": { + "arrify": "^1.0.1", + "is-plain-obj": "^1.1.0", + "kind-of": "^6.0.3" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/mri": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", + "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", + "engines": { + "node": ">=4" + } + }, + "node_modules/mrmime": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-1.0.1.tgz", + "integrity": "sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==", + "engines": { + "node": ">=10" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/multicast-dns": { + "version": "7.2.5", + "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-7.2.5.tgz", + "integrity": "sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg==", + "dependencies": { + "dns-packet": "^5.2.2", + "thunky": "^1.0.2" + }, + "bin": { + "multicast-dns": "cli.js" + } + }, + "node_modules/nanoid": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", + "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "devOptional": true + }, + "node_modules/natural-compare-lite": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", + "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", + "dev": true + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" + }, + "node_modules/no-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", + "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", + "dependencies": { + "lower-case": "^2.0.2", + "tslib": "^2.0.3" + } + }, + "node_modules/node-emoji": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.11.0.tgz", + "integrity": "sha512-wo2DpQkQp7Sjm2A0cq+sN7EHKO6Sl0ctXeBdFZrL9T9+UywORbufTcTZxom8YqpLQt/FqNMUkOpkZrJVYSKD3A==", + "dependencies": { + "lodash": "^4.17.21" + } + }, + "node_modules/node-fetch": { + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz", + "integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-forge": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", + "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", + "engines": { + "node": ">= 6.13.0" + } + }, + "node_modules/node-releases": { + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz", + "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==" + }, + "node_modules/normalize-package-data": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", + "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", + "dev": true, + "dependencies": { + "hosted-git-info": "^4.0.1", + "is-core-module": "^2.5.0", + "semver": "^7.3.4", + "validate-npm-package-license": "^3.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/normalize-package-data/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/normalize-package-data/node_modules/semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/normalize-package-data/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-url": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm-run-path": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz", + "integrity": "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==", + "dev": true, + "dependencies": { + "path-key": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm-run-path/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/nprogress": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/nprogress/-/nprogress-0.2.0.tgz", + "integrity": "sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==" + }, + "node_modules/nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.12.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", + "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-is": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", + "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.entries": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz", + "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz", + "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.hasown": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.2.tgz", + "integrity": "sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.values": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", + "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/obuf": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", + "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==" + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/on-headers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "dev": true, + "dependencies": { + "mimic-fn": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/open": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", + "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", + "dependencies": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/opener": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", + "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", + "bin": { + "opener": "bin/opener-bin.js" + } + }, + "node_modules/optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "devOptional": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-cancelable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", + "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==", + "engines": { + "node": ">=6" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-map": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", + "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-retry": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz", + "integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==", + "dependencies": { + "@types/retry": "0.12.0", + "retry": "^0.13.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/package-json": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", + "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", + "dependencies": { + "got": "^9.6.0", + "registry-auth-token": "^4.0.0", + "registry-url": "^5.0.0", + "semver": "^6.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/param-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", + "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", + "dependencies": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-entities": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-2.0.0.tgz", + "integrity": "sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==", + "dependencies": { + "character-entities": "^1.0.0", + "character-entities-legacy": "^1.0.0", + "character-reference-invalid": "^1.0.0", + "is-alphanumerical": "^1.0.0", + "is-decimal": "^1.0.0", + "is-hexadecimal": "^1.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/parse-entities/node_modules/character-entities": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-1.2.4.tgz", + "integrity": "sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parse-numeric-range": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/parse-numeric-range/-/parse-numeric-range-1.3.0.tgz", + "integrity": "sha512-twN+njEipszzlMJd4ONUYgSfZPDxgHhT9Ahed5uTigpQn90FggW4SA/AIPq/6a149fTbE9qBEcSwE3FAEp6wQQ==" + }, + "node_modules/parse5": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", + "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", + "dependencies": { + "entities": "^4.4.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/parse5-htmlparser2-tree-adapter": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.0.0.tgz", + "integrity": "sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==", + "dependencies": { + "domhandler": "^5.0.2", + "parse5": "^7.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/pascal-case": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", + "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-is-inside": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w==" + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" + }, + "node_modules/path-to-regexp": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", + "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", + "dependencies": { + "isarray": "0.0.1" + } + }, + "node_modules/path-to-regexp/node_modules/isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pidtree": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz", + "integrity": "sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==", + "dev": true, + "bin": { + "pidtree": "bin/pidtree.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-dir/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-up": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz", + "integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==", + "dependencies": { + "find-up": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-up/node_modules/find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dependencies": { + "locate-path": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-up/node_modules/locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dependencies": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-up/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-up/node_modules/p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dependencies": { + "p-limit": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-up/node_modules/path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss": { + "version": "8.4.24", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.24.tgz", + "integrity": "sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-calc": { + "version": "8.2.4", + "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.2.4.tgz", + "integrity": "sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==", + "dependencies": { + "postcss-selector-parser": "^6.0.9", + "postcss-value-parser": "^4.2.0" + }, + "peerDependencies": { + "postcss": "^8.2.2" + } + }, + "node_modules/postcss-colormin": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.1.tgz", + "integrity": "sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ==", + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "colord": "^2.9.1", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-convert-values": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.1.3.tgz", + "integrity": "sha512-82pC1xkJZtcJEfiLw6UXnXVXScgtBrjlO5CBmuDQc+dlb88ZYheFsjTn40+zBVi3DkfF7iezO0nJUPLcJK3pvA==", + "dependencies": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-comments": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz", + "integrity": "sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-duplicates": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz", + "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-empty": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz", + "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-overridden": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz", + "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-unused": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-unused/-/postcss-discard-unused-5.1.0.tgz", + "integrity": "sha512-KwLWymI9hbwXmJa0dkrzpRbSJEh0vVUd7r8t0yOGPcfKzyJJxFM8kLyC5Ev9avji6nY95pOp1W6HqIrfT+0VGw==", + "dependencies": { + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-loader": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-7.3.2.tgz", + "integrity": "sha512-c7qDlXErX6n0VT+LUsW+nwefVtTu3ORtVvK8EXuUIDcxo+b/euYqpuHlJAvePb0Af5e8uMjR/13e0lTuYifaig==", + "dependencies": { + "cosmiconfig": "^8.1.3", + "jiti": "^1.18.2", + "klona": "^2.0.6", + "semver": "^7.3.8" + }, + "engines": { + "node": ">= 14.15.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "postcss": "^7.0.0 || ^8.0.1", + "webpack": "^5.0.0" + } + }, + "node_modules/postcss-loader/node_modules/cosmiconfig": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.2.0.tgz", + "integrity": "sha512-3rTMnFJA1tCOPwRxtgF4wd7Ab2qvDbL8jX+3smjIbS4HlZBagTlpERbdN7iAbWlrfxE3M8c27kTwTawQ7st+OQ==", + "dependencies": { + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "parse-json": "^5.0.0", + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/d-fischer" + } + }, + "node_modules/postcss-loader/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/postcss-loader/node_modules/semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/postcss-loader/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "node_modules/postcss-media-query-parser": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz", + "integrity": "sha512-3sOlxmbKcSHMjlUXQZKQ06jOswE7oVkXPxmZdoB1r5l0q6gTFTQSHxNxOrCccElbW7dxNytifNEo8qidX2Vsig==", + "dev": true + }, + "node_modules/postcss-merge-idents": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-merge-idents/-/postcss-merge-idents-5.1.1.tgz", + "integrity": "sha512-pCijL1TREiCoog5nQp7wUe+TUonA2tC2sQ54UGeMmryK3UFGIYKqDyjnqd6RcuI4znFn9hWSLNN8xKE/vWcUQw==", + "dependencies": { + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-merge-longhand": { + "version": "5.1.7", + "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz", + "integrity": "sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ==", + "dependencies": { + "postcss-value-parser": "^4.2.0", + "stylehacks": "^5.1.1" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-merge-rules": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.1.4.tgz", + "integrity": "sha512-0R2IuYpgU93y9lhVbO/OylTtKMVcHb67zjWIfCiKR9rWL3GUk1677LAqD/BcHizukdZEjT8Ru3oHRoAYoJy44g==", + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "cssnano-utils": "^3.1.0", + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-font-values": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz", + "integrity": "sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-gradients": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz", + "integrity": "sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==", + "dependencies": { + "colord": "^2.9.1", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-params": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.4.tgz", + "integrity": "sha512-+mePA3MgdmVmv6g+30rn57USjOGSAyuxUmkfiWpzalZ8aiBkdPYjXWtHuwJGm1v5Ojy0Z0LaSYhHaLJQB0P8Jw==", + "dependencies": { + "browserslist": "^4.21.4", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-selectors": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz", + "integrity": "sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==", + "dependencies": { + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-modules-extract-imports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", + "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-local-by-default": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.3.tgz", + "integrity": "sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==", + "dependencies": { + "icss-utils": "^5.0.0", + "postcss-selector-parser": "^6.0.2", + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-scope": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", + "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", + "dependencies": { + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-values": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", + "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", + "dependencies": { + "icss-utils": "^5.0.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-normalize-charset": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz", + "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-display-values": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz", + "integrity": "sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-positions": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz", + "integrity": "sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-repeat-style": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz", + "integrity": "sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-string": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz", + "integrity": "sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-timing-functions": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz", + "integrity": "sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-unicode": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz", + "integrity": "sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA==", + "dependencies": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-url": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz", + "integrity": "sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==", + "dependencies": { + "normalize-url": "^6.0.1", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-whitespace": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz", + "integrity": "sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-ordered-values": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz", + "integrity": "sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==", + "dependencies": { + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-reduce-idents": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/postcss-reduce-idents/-/postcss-reduce-idents-5.2.0.tgz", + "integrity": "sha512-BTrLjICoSB6gxbc58D5mdBK8OhXRDqud/zodYfdSi52qvDHdMwk+9kB9xsM8yJThH/sZU5A6QVSmMmaN001gIg==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-reduce-initial": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz", + "integrity": "sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg==", + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-reduce-transforms": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz", + "integrity": "sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-resolve-nested-selector": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/postcss-resolve-nested-selector/-/postcss-resolve-nested-selector-0.1.1.tgz", + "integrity": "sha512-HvExULSwLqHLgUy1rl3ANIqCsvMS0WHss2UOsXhXnQaZ9VCc2oBvIpXrl00IUFT5ZDITME0o6oiXeiHr2SAIfw==", + "dev": true + }, + "node_modules/postcss-safe-parser": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-6.0.0.tgz", + "integrity": "sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==", + "dev": true, + "engines": { + "node": ">=12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.3.3" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.0.13", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", + "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-sort-media-queries": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/postcss-sort-media-queries/-/postcss-sort-media-queries-4.4.1.tgz", + "integrity": "sha512-QDESFzDDGKgpiIh4GYXsSy6sek2yAwQx1JASl5AxBtU1Lq2JfKBljIPNdil989NcSKRQX1ToiaKphImtBuhXWw==", + "dependencies": { + "sort-css-media-queries": "2.1.0" + }, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "postcss": "^8.4.16" + } + }, + "node_modules/postcss-svgo": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.1.0.tgz", + "integrity": "sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==", + "dependencies": { + "postcss-value-parser": "^4.2.0", + "svgo": "^2.7.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-unique-selectors": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz", + "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==", + "dependencies": { + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" + }, + "node_modules/postcss-zindex": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-zindex/-/postcss-zindex-5.1.0.tgz", + "integrity": "sha512-fgFMf0OtVSBR1va1JNHYgMxYk73yhn/qb4uQDq1DLGYolz8gHCyr/sesEuGUaYs58E3ZJRcpoGuPVoB7Meiq9A==", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "devOptional": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prepend-http": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", + "integrity": "sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==", + "engines": { + "node": ">=4" + } + }, + "node_modules/prettier": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "dev": true, + "dependencies": { + "fast-diff": "^1.1.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/pretty-error": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-4.0.0.tgz", + "integrity": "sha512-AoJ5YMAcXKYxKhuJGdcvse+Voc6v1RgnsR3nWcYU7q4t6z0Q6T86sv5Zq8VIRbOWWFpvdGE83LtdSMNd+6Y0xw==", + "dependencies": { + "lodash": "^4.17.20", + "renderkid": "^3.0.0" + } + }, + "node_modules/pretty-time": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pretty-time/-/pretty-time-1.1.0.tgz", + "integrity": "sha512-28iF6xPQrP8Oa6uxE6a1biz+lWeTOAPKggvjB8HAs6nVMKZwf5bG++632Dx614hIWgUPkgivRfG+a8uAXGTIbA==", + "engines": { + "node": ">=4" + } + }, + "node_modules/prism-react-renderer": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/prism-react-renderer/-/prism-react-renderer-1.3.5.tgz", + "integrity": "sha512-IJ+MSwBWKG+SM3b2SUfdrhC+gu01QkV2KmRQgREThBfSQRoufqRfxfHUxpG1WcaFjP+kojcFyO9Qqtpgt3qLCg==", + "peerDependencies": { + "react": ">=0.14.9" + } + }, + "node_modules/prismjs": { + "version": "1.29.0", + "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz", + "integrity": "sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==", + "engines": { + "node": ">=6" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "node_modules/promise": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", + "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", + "dependencies": { + "asap": "~2.0.3" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/prop-types": { + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + } + }, + "node_modules/property-information": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/property-information/-/property-information-5.6.0.tgz", + "integrity": "sha512-YUHSPk+A30YPv+0Qf8i9Mbfe/C0hdPXk1s1jPVToV8pk8BQtpw10ct89Eo7OWkutrwqvT0eicAxlOg3dOAu8JA==", + "dependencies": { + "xtend": "^4.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/proxy-addr/node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==" + }, + "node_modules/pupa": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/pupa/-/pupa-2.1.1.tgz", + "integrity": "sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A==", + "dependencies": { + "escape-goat": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pure-color": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/pure-color/-/pure-color-1.3.0.tgz", + "integrity": "sha512-QFADYnsVoBMw1srW7OVKEYjG+MbIa49s54w1MA1EDY6r2r/sTcKKYqRX1f4GYvnXP7eN/Pe9HFcX+hwzmrXRHA==" + }, + "node_modules/qs": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/queue": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/queue/-/queue-6.0.2.tgz", + "integrity": "sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==", + "dependencies": { + "inherits": "~2.0.3" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/quick-lru": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", + "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/range-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz", + "integrity": "sha512-kA5WQoNVo4t9lNx2kQNFCxKeBl5IbbSNBl1M/tLkw9WCn+hxNBAW5Qh8gdhs63CJnhjJ2zQWFoqPJP2sK1AV5A==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", + "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/raw-body/node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "dependencies": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "bin": { + "rc": "cli.js" + } + }, + "node_modules/rc/node_modules/strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz", + "integrity": "sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==", + "dependencies": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-base16-styling": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/react-base16-styling/-/react-base16-styling-0.6.0.tgz", + "integrity": "sha512-yvh/7CArceR/jNATXOKDlvTnPKPmGZz7zsenQ3jUwLzHkNUR0CvY3yGYJbWJ/nnxsL8Sgmt5cO3/SILVuPO6TQ==", + "dependencies": { + "base16": "^1.0.0", + "lodash.curry": "^4.0.1", + "lodash.flow": "^3.3.0", + "pure-color": "^1.2.0" + } + }, + "node_modules/react-dev-utils": { + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz", + "integrity": "sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ==", + "dependencies": { + "@babel/code-frame": "^7.16.0", + "address": "^1.1.2", + "browserslist": "^4.18.1", + "chalk": "^4.1.2", + "cross-spawn": "^7.0.3", + "detect-port-alt": "^1.1.6", + "escape-string-regexp": "^4.0.0", + "filesize": "^8.0.6", + "find-up": "^5.0.0", + "fork-ts-checker-webpack-plugin": "^6.5.0", + "global-modules": "^2.0.0", + "globby": "^11.0.4", + "gzip-size": "^6.0.0", + "immer": "^9.0.7", + "is-root": "^2.1.0", + "loader-utils": "^3.2.0", + "open": "^8.4.0", + "pkg-up": "^3.1.0", + "prompts": "^2.4.2", + "react-error-overlay": "^6.0.11", + "recursive-readdir": "^2.2.2", + "shell-quote": "^1.7.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/react-dev-utils/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/react-dev-utils/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/react-dev-utils/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/react-dev-utils/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/react-dev-utils/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/react-dev-utils/node_modules/loader-utils": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-3.2.1.tgz", + "integrity": "sha512-ZvFw1KWS3GVyYBYb7qkmRM/WwL2TQQBxgCK62rlvm4WpVQ23Nb4tYjApUlfjrEGvOs7KHEsmyUn75OHZrJMWPw==", + "engines": { + "node": ">= 12.13.0" + } + }, + "node_modules/react-dev-utils/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/react-dom": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-17.0.2.tgz", + "integrity": "sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==", + "dependencies": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1", + "scheduler": "^0.20.2" + }, + "peerDependencies": { + "react": "17.0.2" + } + }, + "node_modules/react-error-overlay": { + "version": "6.0.11", + "resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz", + "integrity": "sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==" + }, + "node_modules/react-fast-compare": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.2.tgz", + "integrity": "sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==" + }, + "node_modules/react-github-btn": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/react-github-btn/-/react-github-btn-1.4.0.tgz", + "integrity": "sha512-lV4FYClAfjWnBfv0iNlJUGhamDgIq6TayD0kPZED6VzHWdpcHmPfsYOZ/CFwLfPv4Zp+F4m8QKTj0oy2HjiGXg==", + "dependencies": { + "github-buttons": "^2.22.0" + }, + "peerDependencies": { + "react": ">=16.3.0" + } + }, + "node_modules/react-helmet-async": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/react-helmet-async/-/react-helmet-async-1.3.0.tgz", + "integrity": "sha512-9jZ57/dAn9t3q6hneQS0wukqC2ENOBgMNVEhb/ZG9ZSxUetzVIw4iAmEU38IaVg3QGYauQPhSeUTuIUtFglWpg==", + "dependencies": { + "@babel/runtime": "^7.12.5", + "invariant": "^2.2.4", + "prop-types": "^15.7.2", + "react-fast-compare": "^3.2.0", + "shallowequal": "^1.1.0" + }, + "peerDependencies": { + "react": "^16.6.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.6.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" + }, + "node_modules/react-json-view": { + "version": "1.21.3", + "resolved": "https://registry.npmjs.org/react-json-view/-/react-json-view-1.21.3.tgz", + "integrity": "sha512-13p8IREj9/x/Ye4WI/JpjhoIwuzEgUAtgJZNBJckfzJt1qyh24BdTm6UQNGnyTq9dapQdrqvquZTo3dz1X6Cjw==", + "dependencies": { + "flux": "^4.0.1", + "react-base16-styling": "^0.6.0", + "react-lifecycles-compat": "^3.0.4", + "react-textarea-autosize": "^8.3.2" + }, + "peerDependencies": { + "react": "^17.0.0 || ^16.3.0 || ^15.5.4", + "react-dom": "^17.0.0 || ^16.3.0 || ^15.5.4" + } + }, + "node_modules/react-lifecycles-compat": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz", + "integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==" + }, + "node_modules/react-loadable": { + "name": "@docusaurus/react-loadable", + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz", + "integrity": "sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ==", + "dependencies": { + "@types/react": "*", + "prop-types": "^15.6.2" + }, + "peerDependencies": { + "react": "*" + } + }, + "node_modules/react-loadable-ssr-addon-v5-slorber": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/react-loadable-ssr-addon-v5-slorber/-/react-loadable-ssr-addon-v5-slorber-1.0.1.tgz", + "integrity": "sha512-lq3Lyw1lGku8zUEJPDxsNm1AfYHBrO9Y1+olAYwpUJ2IGFBskM0DMKok97A6LWUpHm+o7IvQBOWu9MLenp9Z+A==", + "dependencies": { + "@babel/runtime": "^7.10.3" + }, + "engines": { + "node": ">=10.13.0" + }, + "peerDependencies": { + "react-loadable": "*", + "webpack": ">=4.41.1 || 5.x" + } + }, + "node_modules/react-markdown": { + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-8.0.7.tgz", + "integrity": "sha512-bvWbzG4MtOU62XqBx3Xx+zB2raaFFsq4mYiAzfjXJMEz2sixgeAfraA3tvzULF02ZdOMUOKTBFFaZJDDrq+BJQ==", + "dependencies": { + "@types/hast": "^2.0.0", + "@types/prop-types": "^15.0.0", + "@types/unist": "^2.0.0", + "comma-separated-tokens": "^2.0.0", + "hast-util-whitespace": "^2.0.0", + "prop-types": "^15.0.0", + "property-information": "^6.0.0", + "react-is": "^18.0.0", + "remark-parse": "^10.0.0", + "remark-rehype": "^10.0.0", + "space-separated-tokens": "^2.0.0", + "style-to-object": "^0.4.0", + "unified": "^10.0.0", + "unist-util-visit": "^4.0.0", + "vfile": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + }, + "peerDependencies": { + "@types/react": ">=16", + "react": ">=16" + } + }, + "node_modules/react-markdown/node_modules/bail": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", + "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/react-markdown/node_modules/comma-separated-tokens": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", + "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/react-markdown/node_modules/is-plain-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", + "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/react-markdown/node_modules/property-information": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/property-information/-/property-information-6.2.0.tgz", + "integrity": "sha512-kma4U7AFCTwpqq5twzC1YVIDXSqg6qQK6JN0smOw8fgRy1OkMi0CYSzFmsy6dnqSenamAtj0CyXMUJ1Mf6oROg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/react-markdown/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" + }, + "node_modules/react-markdown/node_modules/remark-parse": { + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-10.0.2.tgz", + "integrity": "sha512-3ydxgHa/ZQzG8LvC7jTXccARYDcRld3VfcgIIFs7bI6vbRSxJJmzgLEIIoYKyrfhaY+ujuWaf/PJiMZXoiCXgw==", + "dependencies": { + "@types/mdast": "^3.0.0", + "mdast-util-from-markdown": "^1.0.0", + "unified": "^10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/react-markdown/node_modules/space-separated-tokens": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz", + "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/react-markdown/node_modules/style-to-object": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-0.4.1.tgz", + "integrity": "sha512-HFpbb5gr2ypci7Qw+IOhnP2zOU7e77b+rzM+wTzXzfi1PrtBCX0E7Pk4wL4iTLnhzZ+JgEGAhX81ebTg/aYjQw==", + "dependencies": { + "inline-style-parser": "0.1.1" + } + }, + "node_modules/react-markdown/node_modules/trough": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/trough/-/trough-2.1.0.tgz", + "integrity": "sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/react-markdown/node_modules/unified": { + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/unified/-/unified-10.1.2.tgz", + "integrity": "sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==", + "dependencies": { + "@types/unist": "^2.0.0", + "bail": "^2.0.0", + "extend": "^3.0.0", + "is-buffer": "^2.0.0", + "is-plain-obj": "^4.0.0", + "trough": "^2.0.0", + "vfile": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/react-markdown/node_modules/unist-util-is": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", + "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", + "dependencies": { + "@types/unist": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/react-markdown/node_modules/unist-util-visit": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz", + "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-is": "^5.0.0", + "unist-util-visit-parents": "^5.1.1" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/react-markdown/node_modules/unist-util-visit-parents": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz", + "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-is": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/react-markdown/node_modules/vfile": { + "version": "5.3.7", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-5.3.7.tgz", + "integrity": "sha512-r7qlzkgErKjobAmyNIkkSpizsFPYiUPuJb5pNW1RB4JcYVZhs4lIbVqk8XPk033CV/1z8ss5pkax8SuhGpcG8g==", + "dependencies": { + "@types/unist": "^2.0.0", + "is-buffer": "^2.0.0", + "unist-util-stringify-position": "^3.0.0", + "vfile-message": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/react-markdown/node_modules/vfile-message": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-3.1.4.tgz", + "integrity": "sha512-fa0Z6P8HUrQN4BZaX05SIVXic+7kE3b05PWAtPuYP9QLHsLKYR7/AlLW3NtOrpXRLeawpDLMsVkmk5DG0NXgWw==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-stringify-position": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/react-player": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/react-player/-/react-player-2.12.0.tgz", + "integrity": "sha512-rymLRz/2GJJD+Wc01S7S+i9pGMFYnNmQibR2gVE3KmHJCBNN8BhPAlOPTGZtn1uKpJ6p4RPLlzPQ1OLreXd8gw==", + "dependencies": { + "deepmerge": "^4.0.0", + "load-script": "^1.0.0", + "memoize-one": "^5.1.1", + "prop-types": "^15.7.2", + "react-fast-compare": "^3.0.1" + }, + "peerDependencies": { + "react": ">=16.6.0" + } + }, + "node_modules/react-router": { + "version": "5.3.4", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-5.3.4.tgz", + "integrity": "sha512-Ys9K+ppnJah3QuaRiLxk+jDWOR1MekYQrlytiXxC1RyfbdsZkS5pvKAzCCr031xHixZwpnsYNT5xysdFHQaYsA==", + "dependencies": { + "@babel/runtime": "^7.12.13", + "history": "^4.9.0", + "hoist-non-react-statics": "^3.1.0", + "loose-envify": "^1.3.1", + "path-to-regexp": "^1.7.0", + "prop-types": "^15.6.2", + "react-is": "^16.6.0", + "tiny-invariant": "^1.0.2", + "tiny-warning": "^1.0.0" + }, + "peerDependencies": { + "react": ">=15" + } + }, + "node_modules/react-router-config": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/react-router-config/-/react-router-config-5.1.1.tgz", + "integrity": "sha512-DuanZjaD8mQp1ppHjgnnUnyOlqYXZVjnov/JzFhjLEwd3Z4dYjMSnqrEzzGThH47vpCOqPPwJM2FtthLeJ8Pbg==", + "dependencies": { + "@babel/runtime": "^7.1.2" + }, + "peerDependencies": { + "react": ">=15", + "react-router": ">=5" + } + }, + "node_modules/react-router-dom": { + "version": "5.3.4", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-5.3.4.tgz", + "integrity": "sha512-m4EqFMHv/Ih4kpcBCONHbkT68KoAeHN4p3lAGoNryfHi0dMy0kCzEZakiKRsvg5wHZ/JLrLW8o8KomWiz/qbYQ==", + "dependencies": { + "@babel/runtime": "^7.12.13", + "history": "^4.9.0", + "loose-envify": "^1.3.1", + "prop-types": "^15.6.2", + "react-router": "5.3.4", + "tiny-invariant": "^1.0.2", + "tiny-warning": "^1.0.0" + }, + "peerDependencies": { + "react": ">=15" + } + }, + "node_modules/react-textarea-autosize": { + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/react-textarea-autosize/-/react-textarea-autosize-8.4.1.tgz", + "integrity": "sha512-aD2C+qK6QypknC+lCMzteOdIjoMbNlgSFmJjCV+DrfTPwp59i/it9mMNf2HDzvRjQgKAyBDPyLJhcrzElf2U4Q==", + "dependencies": { + "@babel/runtime": "^7.20.13", + "use-composed-ref": "^1.3.0", + "use-latest": "^1.2.1" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "dependencies": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dev": true, + "dependencies": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg/node_modules/hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true + }, + "node_modules/read-pkg/node_modules/normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "dependencies": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "node_modules/read-pkg/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/read-pkg/node_modules/type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/reading-time": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/reading-time/-/reading-time-1.5.0.tgz", + "integrity": "sha512-onYyVhBNr4CmAxFsKS7bz+uTLRakypIe4R+5A824vBSkQy/hB3fZepoVEf8OVAxzLvK+H/jm9TzpI3ETSm64Kg==" + }, + "node_modules/rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", + "dependencies": { + "resolve": "^1.1.6" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/recursive-readdir": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.2.3.tgz", + "integrity": "sha512-8HrF5ZsXk5FAH9dgsx3BlUer73nIhuj+9OrQwEbLTPOBzGkL1lsFCR01am+v+0m2Cmbs1nP12hLDl5FA7EszKA==", + "dependencies": { + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/redent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", + "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", + "dev": true, + "dependencies": { + "indent-string": "^4.0.0", + "strip-indent": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/refa": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/refa/-/refa-0.11.0.tgz", + "integrity": "sha512-486O8/pQXwj9jV0mVvUnTsxq0uknpBnNJ0eCUhkZqJRQ8KutrT1PhzmumdCeM1hSBF2eMlFPmwECRER4IbKXlQ==", + "dev": true, + "dependencies": { + "@eslint-community/regexpp": "^4.5.0" + }, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==" + }, + "node_modules/regenerate-unicode-properties": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz", + "integrity": "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==", + "dependencies": { + "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" + }, + "node_modules/regenerator-transform": { + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.1.tgz", + "integrity": "sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg==", + "dependencies": { + "@babel/runtime": "^7.8.4" + } + }, + "node_modules/regexp-ast-analysis": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/regexp-ast-analysis/-/regexp-ast-analysis-0.6.0.tgz", + "integrity": "sha512-OLxjyjPkVH+rQlBLb1I/P/VTmamSjGkvN5PTV5BXP432k3uVz727J7H29GA5IFiY0m7e1xBN7049Wn59FY3DEQ==", + "dev": true, + "dependencies": { + "@eslint-community/regexpp": "^4.5.0", + "refa": "^0.11.0" + }, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", + "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "functions-have-names": "^1.2.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regexpu-core": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", + "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", + "dependencies": { + "@babel/regjsgen": "^0.8.0", + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.1.0", + "regjsparser": "^0.9.1", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/registry-auth-token": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.2.tgz", + "integrity": "sha512-PC5ZysNb42zpFME6D/XlIgtNGdTl8bBOCw90xQLVMpzuuubJKYDWFAEuUNc+Cn8Z8724tg2SDhDRrkVEsqfDMg==", + "dependencies": { + "rc": "1.2.8" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/registry-url": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", + "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", + "dependencies": { + "rc": "^1.2.8" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/regjsparser": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", + "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", + "dependencies": { + "jsesc": "~0.5.0" + }, + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/regjsparser/node_modules/jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", + "bin": { + "jsesc": "bin/jsesc" + } + }, + "node_modules/relateurl": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", + "integrity": "sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/remark-deflist": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/remark-deflist/-/remark-deflist-1.0.0.tgz", + "integrity": "sha512-sDHM+ZbgWC6wwaxltMdH5x+XYMW8VpjyeHyC2ZCI106+iYgbPv8lBYKiNqdW0Cs0FVox/LysYhb3qIZe1b0cmg==", + "dependencies": { + "mdast-util-from-markdown": "^1.0.0", + "mdast-util-to-markdown": "^1.1.1", + "mdast-util-to-string": "^3.1.0", + "unist-util-visit": "^4.0.0" + } + }, + "node_modules/remark-deflist/node_modules/mdast-util-to-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz", + "integrity": "sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==", + "dependencies": { + "@types/mdast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-deflist/node_modules/unist-util-is": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", + "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", + "dependencies": { + "@types/unist": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-deflist/node_modules/unist-util-visit": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz", + "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-is": "^5.0.0", + "unist-util-visit-parents": "^5.1.1" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-deflist/node_modules/unist-util-visit-parents": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz", + "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-is": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-emoji": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/remark-emoji/-/remark-emoji-2.2.0.tgz", + "integrity": "sha512-P3cj9s5ggsUvWw5fS2uzCHJMGuXYRb0NnZqYlNecewXt8QBU9n5vW3DUUKOhepS8F9CwdMx9B8a3i7pqFWAI5w==", + "dependencies": { + "emoticon": "^3.2.0", + "node-emoji": "^1.10.0", + "unist-util-visit": "^2.0.3" + } + }, + "node_modules/remark-footnotes": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/remark-footnotes/-/remark-footnotes-2.0.0.tgz", + "integrity": "sha512-3Clt8ZMH75Ayjp9q4CorNeyjwIxHFcTkaektplKGl2A1jNGEUey8cKL0ZC5vJwfcD5GFGsNLImLG/NGzWIzoMQ==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-mdx": { + "version": "1.6.22", + "resolved": "https://registry.npmjs.org/remark-mdx/-/remark-mdx-1.6.22.tgz", + "integrity": "sha512-phMHBJgeV76uyFkH4rvzCftLfKCr2RZuF+/gmVcaKrpsihyzmhXjA0BEMDaPTXG5y8qZOKPVo83NAOX01LPnOQ==", + "dependencies": { + "@babel/core": "7.12.9", + "@babel/helper-plugin-utils": "7.10.4", + "@babel/plugin-proposal-object-rest-spread": "7.12.1", + "@babel/plugin-syntax-jsx": "7.12.1", + "@mdx-js/util": "1.6.22", + "is-alphabetical": "1.0.4", + "remark-parse": "8.0.3", + "unified": "9.2.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-mdx/node_modules/@babel/core": { + "version": "7.12.9", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.9.tgz", + "integrity": "sha512-gTXYh3M5wb7FRXQy+FErKFAv90BnlOuNn1QkCK2lREoPAjrQCO49+HVSrFoe5uakFAF5eenS75KbO2vQiLrTMQ==", + "dependencies": { + "@babel/code-frame": "^7.10.4", + "@babel/generator": "^7.12.5", + "@babel/helper-module-transforms": "^7.12.1", + "@babel/helpers": "^7.12.5", + "@babel/parser": "^7.12.7", + "@babel/template": "^7.12.7", + "@babel/traverse": "^7.12.9", + "@babel/types": "^7.12.7", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.1", + "json5": "^2.1.2", + "lodash": "^4.17.19", + "resolve": "^1.3.2", + "semver": "^5.4.1", + "source-map": "^0.5.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/remark-mdx/node_modules/@babel/helper-plugin-utils": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz", + "integrity": "sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==" + }, + "node_modules/remark-mdx/node_modules/@babel/plugin-syntax-jsx": { + "version": "7.12.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.12.1.tgz", + "integrity": "sha512-1yRi7yAtB0ETgxdY9ti/p2TivUxJkTdhu/ZbF9MshVGqOx1TdB3b7xCXs49Fupgg50N45KcAsRP/ZqWjs9SRjg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/remark-mdx/node_modules/is-plain-obj": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", + "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/remark-mdx/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/remark-mdx/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/remark-mdx/node_modules/unified": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/unified/-/unified-9.2.0.tgz", + "integrity": "sha512-vx2Z0vY+a3YoTj8+pttM3tiJHCwY5UFbYdiWrwBEbHmK8pvsPj2rtAX2BFfgXen8T39CJWblWRDT4L5WGXtDdg==", + "dependencies": { + "bail": "^1.0.0", + "extend": "^3.0.0", + "is-buffer": "^2.0.0", + "is-plain-obj": "^2.0.0", + "trough": "^1.0.0", + "vfile": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-parse": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-8.0.3.tgz", + "integrity": "sha512-E1K9+QLGgggHxCQtLt++uXltxEprmWzNfg+MxpfHsZlrddKzZ/hZyWHDbK3/Ap8HJQqYJRXP+jHczdL6q6i85Q==", + "dependencies": { + "ccount": "^1.0.0", + "collapse-white-space": "^1.0.2", + "is-alphabetical": "^1.0.0", + "is-decimal": "^1.0.0", + "is-whitespace-character": "^1.0.0", + "is-word-character": "^1.0.0", + "markdown-escapes": "^1.0.0", + "parse-entities": "^2.0.0", + "repeat-string": "^1.5.4", + "state-toggle": "^1.0.0", + "trim": "0.0.1", + "trim-trailing-lines": "^1.0.0", + "unherit": "^1.0.4", + "unist-util-remove-position": "^2.0.0", + "vfile-location": "^3.0.0", + "xtend": "^4.0.1" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-rehype": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-10.1.0.tgz", + "integrity": "sha512-EFmR5zppdBp0WQeDVZ/b66CWJipB2q2VLNFMabzDSGR66Z2fQii83G5gTBbgGEnEEA0QRussvrFHxk1HWGJskw==", + "dependencies": { + "@types/hast": "^2.0.0", + "@types/mdast": "^3.0.0", + "mdast-util-to-hast": "^12.1.0", + "unified": "^10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-rehype/node_modules/bail": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", + "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/remark-rehype/node_modules/is-plain-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", + "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/remark-rehype/node_modules/mdast-util-definitions": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/mdast-util-definitions/-/mdast-util-definitions-5.1.2.tgz", + "integrity": "sha512-8SVPMuHqlPME/z3gqVwWY4zVXn8lqKv/pAhC57FuJ40ImXyBpmO5ukh98zB2v7Blql2FiHjHv9LVztSIqjY+MA==", + "dependencies": { + "@types/mdast": "^3.0.0", + "@types/unist": "^2.0.0", + "unist-util-visit": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-rehype/node_modules/mdast-util-to-hast": { + "version": "12.3.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-12.3.0.tgz", + "integrity": "sha512-pits93r8PhnIoU4Vy9bjW39M2jJ6/tdHyja9rrot9uujkN7UTU9SDnE6WNJz/IGyQk3XHX6yNNtrBH6cQzm8Hw==", + "dependencies": { + "@types/hast": "^2.0.0", + "@types/mdast": "^3.0.0", + "mdast-util-definitions": "^5.0.0", + "micromark-util-sanitize-uri": "^1.1.0", + "trim-lines": "^3.0.0", + "unist-util-generated": "^2.0.0", + "unist-util-position": "^4.0.0", + "unist-util-visit": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-rehype/node_modules/trough": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/trough/-/trough-2.1.0.tgz", + "integrity": "sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/remark-rehype/node_modules/unified": { + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/unified/-/unified-10.1.2.tgz", + "integrity": "sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==", + "dependencies": { + "@types/unist": "^2.0.0", + "bail": "^2.0.0", + "extend": "^3.0.0", + "is-buffer": "^2.0.0", + "is-plain-obj": "^4.0.0", + "trough": "^2.0.0", + "vfile": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-rehype/node_modules/unist-util-generated": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unist-util-generated/-/unist-util-generated-2.0.1.tgz", + "integrity": "sha512-qF72kLmPxAw0oN2fwpWIqbXAVyEqUzDHMsbtPvOudIlUzXYFIeQIuxXQCRCFh22B7cixvU0MG7m3MW8FTq/S+A==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-rehype/node_modules/unist-util-is": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", + "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", + "dependencies": { + "@types/unist": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-rehype/node_modules/unist-util-position": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-4.0.4.tgz", + "integrity": "sha512-kUBE91efOWfIVBo8xzh/uZQ7p9ffYRtUbMRZBNFYwf0RK8koUMx6dGUfwylLOKmaT2cs4wSW96QoYUSXAyEtpg==", + "dependencies": { + "@types/unist": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-rehype/node_modules/unist-util-visit": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz", + "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-is": "^5.0.0", + "unist-util-visit-parents": "^5.1.1" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-rehype/node_modules/unist-util-visit-parents": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz", + "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-is": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-rehype/node_modules/vfile": { + "version": "5.3.7", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-5.3.7.tgz", + "integrity": "sha512-r7qlzkgErKjobAmyNIkkSpizsFPYiUPuJb5pNW1RB4JcYVZhs4lIbVqk8XPk033CV/1z8ss5pkax8SuhGpcG8g==", + "dependencies": { + "@types/unist": "^2.0.0", + "is-buffer": "^2.0.0", + "unist-util-stringify-position": "^3.0.0", + "vfile-message": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-rehype/node_modules/vfile-message": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-3.1.4.tgz", + "integrity": "sha512-fa0Z6P8HUrQN4BZaX05SIVXic+7kE3b05PWAtPuYP9QLHsLKYR7/AlLW3NtOrpXRLeawpDLMsVkmk5DG0NXgWw==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-stringify-position": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-squeeze-paragraphs": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/remark-squeeze-paragraphs/-/remark-squeeze-paragraphs-4.0.0.tgz", + "integrity": "sha512-8qRqmL9F4nuLPIgl92XUuxI3pFxize+F1H0e/W3llTk0UsjJaj01+RrirkMw7P21RKe4X6goQhYRSvNWX+70Rw==", + "dependencies": { + "mdast-squeeze-paragraphs": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/renderkid": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-3.0.0.tgz", + "integrity": "sha512-q/7VIQA8lmM1hF+jn+sFSPWGlMkSAeNYcPLmDQx2zzuiDfaLrOmumR8iaUKlenFgh0XRPIUeSPlH3A+AW3Z5pg==", + "dependencies": { + "css-select": "^4.1.3", + "dom-converter": "^0.2.0", + "htmlparser2": "^6.1.0", + "lodash": "^4.17.21", + "strip-ansi": "^6.0.1" + } + }, + "node_modules/renderkid/node_modules/css-select": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", + "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/renderkid/node_modules/dom-serializer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", + "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/renderkid/node_modules/domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "dependencies": { + "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/renderkid/node_modules/domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "dependencies": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/renderkid/node_modules/entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/renderkid/node_modules/htmlparser2": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", + "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", + "funding": [ + "https://github.com/fb55/htmlparser2?sponsor=1", + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.0.0", + "domutils": "^2.5.2", + "entities": "^2.0.0" + } + }, + "node_modules/repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-like": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/require-like/-/require-like-0.1.2.tgz", + "integrity": "sha512-oyrU88skkMtDdauHDuKVrgR+zuItqr6/c//FXzvmxRGMexSDc6hNvJInGW3LL46n+8b50RykrvwSUIIQH2LQ5A==", + "engines": { + "node": "*" + } + }, + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" + }, + "node_modules/resolve": { + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", + "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", + "dependencies": { + "is-core-module": "^2.11.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "engines": { + "node": ">=4" + } + }, + "node_modules/resolve-pathname": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-pathname/-/resolve-pathname-3.0.0.tgz", + "integrity": "sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng==" + }, + "node_modules/responselike": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", + "integrity": "sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ==", + "dependencies": { + "lowercase-keys": "^1.0.0" + } + }, + "node_modules/restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "dev": true, + "dependencies": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/restore-cursor/node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/restore-cursor/node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/retry": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", + "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rfdc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz", + "integrity": "sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==", + "dev": true + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rtl-detect": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/rtl-detect/-/rtl-detect-1.0.4.tgz", + "integrity": "sha512-EBR4I2VDSSYr7PkBmFy04uhycIpDKp+21p/jARYXlCSjQksTBQcJ0HFUPOO79EPPH5JS6VAhiIQbycf0O3JAxQ==" + }, + "node_modules/rtlcss": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/rtlcss/-/rtlcss-3.5.0.tgz", + "integrity": "sha512-wzgMaMFHQTnyi9YOwsx9LjOxYXJPzS8sYnFaKm6R5ysvTkwzHiB0vxnbHwchHQT65PTdBjDG21/kQBWI7q9O7A==", + "dependencies": { + "find-up": "^5.0.0", + "picocolors": "^1.0.0", + "postcss": "^8.3.11", + "strip-json-comments": "^3.1.1" + }, + "bin": { + "rtlcss": "bin/rtlcss.js" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/rxjs": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/sade": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz", + "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==", + "dependencies": { + "mri": "^1.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/safe-regex-test": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", + "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" + }, + "node_modules/scheduler": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", + "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", + "dependencies": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" + } + }, + "node_modules/schema-utils": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", + "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", + "dependencies": { + "@types/json-schema": "^7.0.5", + "ajv": "^6.12.4", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 8.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/scslre": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/scslre/-/scslre-0.2.0.tgz", + "integrity": "sha512-4hc49fUMmX3jM0XdFUAPBrs1xwEcdHa0KyjEsjFs+Zfc66mpFpq5YmRgDtl+Ffo6AtJIilfei+yKw8fUn3N88w==", + "dev": true, + "dependencies": { + "@eslint-community/regexpp": "^4.5.0", + "refa": "^0.11.0", + "regexp-ast-analysis": "^0.6.0" + } + }, + "node_modules/section-matter": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/section-matter/-/section-matter-1.0.0.tgz", + "integrity": "sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==", + "dependencies": { + "extend-shallow": "^2.0.1", + "kind-of": "^6.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/select-hose": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", + "integrity": "sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==" + }, + "node_modules/selfsigned": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.1.1.tgz", + "integrity": "sha512-GSL3aowiF7wa/WtSFwnUrludWFoNhftq8bUkH9pkzjpN2XSPOAYEgg6e0sS9s0rZwgJzJiQRPU18A6clnoW5wQ==", + "dependencies": { + "node-forge": "^1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/semver-diff": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", + "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", + "dependencies": { + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/send": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/send/node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serialize-javascript": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", + "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/serve-handler": { + "version": "6.1.5", + "resolved": "https://registry.npmjs.org/serve-handler/-/serve-handler-6.1.5.tgz", + "integrity": "sha512-ijPFle6Hwe8zfmBxJdE+5fta53fdIY0lHISJvuikXB3VYFafRjMRpOffSPvCYsbKyBA7pvy9oYr/BT1O3EArlg==", + "dependencies": { + "bytes": "3.0.0", + "content-disposition": "0.5.2", + "fast-url-parser": "1.1.3", + "mime-types": "2.1.18", + "minimatch": "3.1.2", + "path-is-inside": "1.0.2", + "path-to-regexp": "2.2.1", + "range-parser": "1.2.0" + } + }, + "node_modules/serve-handler/node_modules/path-to-regexp": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-2.2.1.tgz", + "integrity": "sha512-gu9bD6Ta5bwGrrU8muHzVOBFFREpp2iRkVfhBJahwJ6p6Xw20SjT0MxLnwkjOibQmGSYhiUnf2FLe7k+jcFmGQ==" + }, + "node_modules/serve-index": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", + "integrity": "sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw==", + "dependencies": { + "accepts": "~1.3.4", + "batch": "0.6.1", + "debug": "2.6.9", + "escape-html": "~1.0.3", + "http-errors": "~1.6.2", + "mime-types": "~2.1.17", + "parseurl": "~1.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/serve-index/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/serve-index/node_modules/depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-index/node_modules/http-errors": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", + "integrity": "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==", + "dependencies": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": ">= 1.4.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-index/node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==" + }, + "node_modules/serve-index/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/serve-index/node_modules/setprototypeof": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", + "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" + }, + "node_modules/serve-index/node_modules/statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-static": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", + "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "dependencies": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/setimmediate": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==" + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + }, + "node_modules/shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "dependencies": { + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shallowequal": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz", + "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==" + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "engines": { + "node": ">=8" + } + }, + "node_modules/shell-quote": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", + "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/shelljs": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", + "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", + "dependencies": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + }, + "bin": { + "shjs": "bin/shjs" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" + }, + "node_modules/sirv": { + "version": "1.0.19", + "resolved": "https://registry.npmjs.org/sirv/-/sirv-1.0.19.tgz", + "integrity": "sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==", + "dependencies": { + "@polka/url": "^1.0.0-next.20", + "mrmime": "^1.0.0", + "totalist": "^1.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==" + }, + "node_modules/sitemap": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/sitemap/-/sitemap-7.1.1.tgz", + "integrity": "sha512-mK3aFtjz4VdJN0igpIJrinf3EO8U8mxOPsTBzSsy06UtjZQJ3YY3o3Xa7zSc5nMqcMrRwlChHZ18Kxg0caiPBg==", + "dependencies": { + "@types/node": "^17.0.5", + "@types/sax": "^1.2.1", + "arg": "^5.0.0", + "sax": "^1.2.4" + }, + "bin": { + "sitemap": "dist/cli.js" + }, + "engines": { + "node": ">=12.0.0", + "npm": ">=5.6.0" + } + }, + "node_modules/sitemap/node_modules/@types/node": { + "version": "17.0.45", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz", + "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==" + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/slice-ansi": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz", + "integrity": "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^6.0.0", + "is-fullwidth-code-point": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" + } + }, + "node_modules/slice-ansi/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/sockjs": { + "version": "0.3.24", + "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz", + "integrity": "sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ==", + "dependencies": { + "faye-websocket": "^0.11.3", + "uuid": "^8.3.2", + "websocket-driver": "^0.7.4" + } + }, + "node_modules/sort-css-media-queries": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/sort-css-media-queries/-/sort-css-media-queries-2.1.0.tgz", + "integrity": "sha512-IeWvo8NkNiY2vVYdPa27MCQiR0MN0M80johAYFVxWWXQ44KU84WNxjslwBHmc/7ZL2ccwkM7/e6S5aiKZXm7jA==", + "engines": { + "node": ">= 6.3.0" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/space-separated-tokens": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz", + "integrity": "sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/spdx-correct": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", + "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", + "dev": true, + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-exceptions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "dev": true + }, + "node_modules/spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dev": true, + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-license-ids": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.13.tgz", + "integrity": "sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==", + "dev": true + }, + "node_modules/spdy": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", + "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", + "dependencies": { + "debug": "^4.1.0", + "handle-thing": "^2.0.0", + "http-deceiver": "^1.2.7", + "select-hose": "^2.0.0", + "spdy-transport": "^3.0.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/spdy-transport": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", + "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", + "dependencies": { + "debug": "^4.1.0", + "detect-node": "^2.0.4", + "hpack.js": "^2.1.6", + "obuf": "^1.1.2", + "readable-stream": "^3.0.6", + "wbuf": "^1.7.3" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" + }, + "node_modules/stable": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", + "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", + "deprecated": "Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility" + }, + "node_modules/state-toggle": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/state-toggle/-/state-toggle-1.0.3.tgz", + "integrity": "sha512-d/5Z4/2iiCnHw6Xzghyhb+GcmF89bxwgXG60wjIiZaxnymbyOmI8Hk4VqHXiVVp6u2ysaskFfXg3ekCj4WNftQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/std-env": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.3.3.tgz", + "integrity": "sha512-Rz6yejtVyWnVjC1RFvNmYL10kgjC49EOghxWn0RFqlCHGFpQx+Xe7yW3I4ceK1SGrWIGMjD5Kbue8W/udkbMJg==" + }, + "node_modules/stop-iteration-iterator": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz", + "integrity": "sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==", + "dev": true, + "dependencies": { + "internal-slot": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-argv": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz", + "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==", + "dev": true, + "engines": { + "node": ">=0.6.19" + } + }, + "node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/string-width/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/string-width/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/string.prototype.matchall": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz", + "integrity": "sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.3", + "regexp.prototype.flags": "^1.4.3", + "side-channel": "^1.0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trim": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", + "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", + "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", + "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/stringify-object": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.3.0.tgz", + "integrity": "sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==", + "dependencies": { + "get-own-enumerable-property-symbols": "^3.0.0", + "is-obj": "^1.0.1", + "is-regexp": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-bom-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-bom-string/-/strip-bom-string-1.0.0.tgz", + "integrity": "sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-final-newline": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strip-indent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", + "dev": true, + "dependencies": { + "min-indent": "^1.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/style-search": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/style-search/-/style-search-0.1.0.tgz", + "integrity": "sha512-Dj1Okke1C3uKKwQcetra4jSuk0DqbzbYtXipzFlFMZtowbF1x7BKJwB9AayVMyFARvU8EDrZdcax4At/452cAg==", + "dev": true + }, + "node_modules/style-to-object": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-0.3.0.tgz", + "integrity": "sha512-CzFnRRXhzWIdItT3OmF8SQfWyahHhjq3HwcMNCNLn+N7klOOqPjMeG/4JSu77D7ypZdGvSzvkrbyeTMizz2VrA==", + "dependencies": { + "inline-style-parser": "0.1.1" + } + }, + "node_modules/stylehacks": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz", + "integrity": "sha512-sBpcd5Hx7G6seo7b1LkpttvTz7ikD0LlH5RmdcBNb6fFR0Fl7LQwHDFr300q4cwUqi+IYrFGmsIHieMBfnN/Bw==", + "dependencies": { + "browserslist": "^4.21.4", + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/stylelint": { + "version": "14.16.1", + "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-14.16.1.tgz", + "integrity": "sha512-ErlzR/T3hhbV+a925/gbfc3f3Fep9/bnspMiJPorfGEmcBbXdS+oo6LrVtoUZ/w9fqD6o6k7PtUlCOsCRdjX/A==", + "dev": true, + "dependencies": { + "@csstools/selector-specificity": "^2.0.2", + "balanced-match": "^2.0.0", + "colord": "^2.9.3", + "cosmiconfig": "^7.1.0", + "css-functions-list": "^3.1.0", + "debug": "^4.3.4", + "fast-glob": "^3.2.12", + "fastest-levenshtein": "^1.0.16", + "file-entry-cache": "^6.0.1", + "global-modules": "^2.0.0", + "globby": "^11.1.0", + "globjoin": "^0.1.4", + "html-tags": "^3.2.0", + "ignore": "^5.2.1", + "import-lazy": "^4.0.0", + "imurmurhash": "^0.1.4", + "is-plain-object": "^5.0.0", + "known-css-properties": "^0.26.0", + "mathml-tag-names": "^2.1.3", + "meow": "^9.0.0", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "picocolors": "^1.0.0", + "postcss": "^8.4.19", + "postcss-media-query-parser": "^0.2.3", + "postcss-resolve-nested-selector": "^0.1.1", + "postcss-safe-parser": "^6.0.0", + "postcss-selector-parser": "^6.0.11", + "postcss-value-parser": "^4.2.0", + "resolve-from": "^5.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "style-search": "^0.1.0", + "supports-hyperlinks": "^2.3.0", + "svg-tags": "^1.0.0", + "table": "^6.8.1", + "v8-compile-cache": "^2.3.0", + "write-file-atomic": "^4.0.2" + }, + "bin": { + "stylelint": "bin/stylelint.js" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/stylelint" + } + }, + "node_modules/stylelint-config-prettier": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/stylelint-config-prettier/-/stylelint-config-prettier-9.0.5.tgz", + "integrity": "sha512-U44lELgLZhbAD/xy/vncZ2Pq8sh2TnpiPvo38Ifg9+zeioR+LAkHu0i6YORIOxFafZoVg0xqQwex6e6F25S5XA==", + "dev": true, + "bin": { + "stylelint-config-prettier": "bin/check.js", + "stylelint-config-prettier-check": "bin/check.js" + }, + "engines": { + "node": ">= 12" + }, + "peerDependencies": { + "stylelint": ">= 11.x < 15" + } + }, + "node_modules/stylelint-config-recommended": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-9.0.0.tgz", + "integrity": "sha512-9YQSrJq4NvvRuTbzDsWX3rrFOzOlYBmZP+o513BJN/yfEmGSr0AxdvrWs0P/ilSpVV/wisamAHu5XSk8Rcf4CQ==", + "dev": true, + "peerDependencies": { + "stylelint": "^14.10.0" + } + }, + "node_modules/stylelint-config-standard": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/stylelint-config-standard/-/stylelint-config-standard-29.0.0.tgz", + "integrity": "sha512-uy8tZLbfq6ZrXy4JKu3W+7lYLgRQBxYTUUB88vPgQ+ZzAxdrvcaSUW9hOMNLYBnwH+9Kkj19M2DHdZ4gKwI7tg==", + "dev": true, + "dependencies": { + "stylelint-config-recommended": "^9.0.0" + }, + "peerDependencies": { + "stylelint": "^14.14.0" + } + }, + "node_modules/stylelint/node_modules/balanced-match": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-2.0.0.tgz", + "integrity": "sha512-1ugUSr8BHXRnK23KfuYS+gVMC3LB8QGH9W1iGtDPsNWoQbgtXSExkBu2aDR4epiGWZOjZsj6lDl/N/AqqTC3UA==", + "dev": true + }, + "node_modules/stylelint/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/stylelint/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/stylelint/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/stylelint/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/supports-hyperlinks": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", + "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-hyperlinks/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-hyperlinks/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/svg-parser": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/svg-parser/-/svg-parser-2.0.4.tgz", + "integrity": "sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==" + }, + "node_modules/svg-tags": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/svg-tags/-/svg-tags-1.0.0.tgz", + "integrity": "sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==", + "dev": true + }, + "node_modules/svgo": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", + "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", + "dependencies": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^4.1.3", + "css-tree": "^1.1.3", + "csso": "^4.2.0", + "picocolors": "^1.0.0", + "stable": "^0.1.8" + }, + "bin": { + "svgo": "bin/svgo" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/svgo/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "engines": { + "node": ">= 10" + } + }, + "node_modules/svgo/node_modules/css-select": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", + "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/svgo/node_modules/dom-serializer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", + "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/svgo/node_modules/domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "dependencies": { + "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/svgo/node_modules/domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "dependencies": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/svgo/node_modules/entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/table": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/table/-/table-6.8.1.tgz", + "integrity": "sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA==", + "dev": true, + "dependencies": { + "ajv": "^8.0.1", + "lodash.truncate": "^4.4.2", + "slice-ansi": "^4.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/table/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/table/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/table/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/table/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/table/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/table/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/table/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/table/node_modules/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" + } + }, + "node_modules/table/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/terser": { + "version": "5.17.7", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.17.7.tgz", + "integrity": "sha512-/bi0Zm2C6VAexlGgLlVxA0P2lru/sdLyfCVaRMfKVo9nWxbmz7f/sD8VPybPeSUJaJcwmCJis9pBIhcVcG1QcQ==", + "dependencies": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.3.9", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", + "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.17", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.16.8" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/terser-webpack-plugin/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/terser-webpack-plugin/node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/terser-webpack-plugin/node_modules/schema-utils": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", + "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/terser-webpack-plugin/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/terser/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==" + }, + "node_modules/through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "dev": true + }, + "node_modules/thunky": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", + "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==" + }, + "node_modules/tiny-invariant": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.1.tgz", + "integrity": "sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw==" + }, + "node_modules/tiny-warning": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz", + "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==" + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "engines": { + "node": ">=4" + } + }, + "node_modules/to-readable-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", + "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==", + "engines": { + "node": ">=6" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/totalist": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/totalist/-/totalist-1.1.0.tgz", + "integrity": "sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==", + "engines": { + "node": ">=6" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/trim": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/trim/-/trim-0.0.1.tgz", + "integrity": "sha512-YzQV+TZg4AxpKxaTHK3c3D+kRDCGVEE7LemdlQZoQXn0iennk10RsIoY6ikzAqJTc9Xjl9C1/waHom/J86ziAQ==", + "deprecated": "Use String.prototype.trim() instead" + }, + "node_modules/trim-lines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", + "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/trim-newlines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", + "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/trim-trailing-lines": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/trim-trailing-lines/-/trim-trailing-lines-1.1.4.tgz", + "integrity": "sha512-rjUWSqnfTNrjbB9NQWfPMH/xRK1deHeGsHoVfpxJ++XeYXE0d6B1En37AHfw3jtfTU7dzMzZL2jjpe8Qb5gLIQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/trough": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/trough/-/trough-1.0.5.tgz", + "integrity": "sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/tsconfig-paths": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", + "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", + "dev": true, + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/tsconfig-paths/node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/tslib": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz", + "integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==" + }, + "node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/tsutils/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "devOptional": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz", + "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==", + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/type-is/node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/type-is/node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "dependencies": { + "is-typedarray": "^1.0.0" + } + }, + "node_modules/typescript": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz", + "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/ua-parser-js": { + "version": "1.0.35", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.35.tgz", + "integrity": "sha512-fKnGuqmTBnIE+/KXSzCn4db8RTigUzw1AN0DmdU6hJovUTbYJKyqj+8Mt1c4VfRDnOVJnENmfYkIPZ946UrSAA==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/ua-parser-js" + }, + { + "type": "paypal", + "url": "https://paypal.me/faisalman" + } + ], + "engines": { + "node": "*" + } + }, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/unherit": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/unherit/-/unherit-1.1.3.tgz", + "integrity": "sha512-Ft16BJcnapDKp0+J/rqFC3Rrk6Y/Ng4nzsC028k2jdDII/rdZ7Wd3pPT/6+vIIxRagwRc9K0IUX0Ra4fKvw+WQ==", + "dependencies": { + "inherits": "^2.0.0", + "xtend": "^4.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/unicode-canonical-property-names-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", + "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "dependencies": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", + "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", + "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", + "engines": { + "node": ">=4" + } + }, + "node_modules/unified": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/unified/-/unified-9.2.2.tgz", + "integrity": "sha512-Sg7j110mtefBD+qunSLO1lqOEKdrwBFBrR6Qd8f4uwkhWNlbkaqwHse6e7QvD3AP/MNoJdEDLaf8OxYyoWgorQ==", + "dependencies": { + "bail": "^1.0.0", + "extend": "^3.0.0", + "is-buffer": "^2.0.0", + "is-plain-obj": "^2.0.0", + "trough": "^1.0.0", + "vfile": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unified/node_modules/is-plain-obj": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", + "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/unique-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", + "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", + "dependencies": { + "crypto-random-string": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/unist-builder": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/unist-builder/-/unist-builder-2.0.3.tgz", + "integrity": "sha512-f98yt5pnlMWlzP539tPc4grGMsFaQQlP/vM396b00jngsiINumNmsY8rkXjfoi1c6QaM8nQ3vaGDuoKWbe/1Uw==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-generated": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/unist-util-generated/-/unist-util-generated-1.1.6.tgz", + "integrity": "sha512-cln2Mm1/CZzN5ttGK7vkoGw+RZ8VcUH6BtGbq98DDtRGquAAOXig1mrBQYelOwMXYS8rK+vZDyyojSjp7JX+Lg==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-is": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.1.0.tgz", + "integrity": "sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-position": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-3.1.0.tgz", + "integrity": "sha512-w+PkwCbYSFw8vpgWD0v7zRCl1FpY3fjDSQ3/N/wNd9Ffa4gPi8+4keqt99N3XW6F99t/mUzp2xAhNmfKWp95QA==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-remove": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unist-util-remove/-/unist-util-remove-2.1.0.tgz", + "integrity": "sha512-J8NYPyBm4baYLdCbjmf1bhPu45Cr1MWTm77qd9istEkzWpnN6O9tMsEbB2JhNnBCqGENRqEWomQ+He6au0B27Q==", + "dependencies": { + "unist-util-is": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-remove-position": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unist-util-remove-position/-/unist-util-remove-position-2.0.1.tgz", + "integrity": "sha512-fDZsLYIe2uT+oGFnuZmy73K6ZxOPG/Qcm+w7jbEjaFcJgbQ6cqjs/eSPzXhsmGpAsWPkqZM9pYjww5QTn3LHMA==", + "dependencies": { + "unist-util-visit": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-stringify-position": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-3.0.3.tgz", + "integrity": "sha512-k5GzIBZ/QatR8N5X2y+drfpWG8IDBzdnVj6OInRNWm1oXrzydiaAT2OQiA8DPRRZyAKb9b6I2a6PxYklZD0gKg==", + "dependencies": { + "@types/unist": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.3.tgz", + "integrity": "sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-is": "^4.0.0", + "unist-util-visit-parents": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit-parents": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz", + "integrity": "sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-is": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", + "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/update-notifier": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-5.1.0.tgz", + "integrity": "sha512-ItnICHbeMh9GqUy31hFPrD1kcuZ3rpxDZbf4KUDavXwS0bW5m7SLbDQpGX3UYr072cbrF5hFUs3r5tUsPwjfHw==", + "dependencies": { + "boxen": "^5.0.0", + "chalk": "^4.1.0", + "configstore": "^5.0.1", + "has-yarn": "^2.1.0", + "import-lazy": "^2.1.0", + "is-ci": "^2.0.0", + "is-installed-globally": "^0.4.0", + "is-npm": "^5.0.0", + "is-yarn-global": "^0.3.0", + "latest-version": "^5.1.0", + "pupa": "^2.1.1", + "semver": "^7.3.4", + "semver-diff": "^3.1.1", + "xdg-basedir": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/yeoman/update-notifier?sponsor=1" + } + }, + "node_modules/update-notifier/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/update-notifier/node_modules/boxen": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-5.1.2.tgz", + "integrity": "sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ==", + "dependencies": { + "ansi-align": "^3.0.0", + "camelcase": "^6.2.0", + "chalk": "^4.1.0", + "cli-boxes": "^2.2.1", + "string-width": "^4.2.2", + "type-fest": "^0.20.2", + "widest-line": "^3.1.0", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/update-notifier/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/update-notifier/node_modules/cli-boxes": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", + "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/update-notifier/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/update-notifier/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/update-notifier/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/update-notifier/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/update-notifier/node_modules/import-lazy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", + "integrity": "sha512-m7ZEHgtw69qOGw+jwxXkHlrlIPdTGkyh66zXZ1ajZbxkDBNjSY/LGbmjc7h0s2ELsUDTAhFr55TrPSSqJGPG0A==", + "engines": { + "node": ">=4" + } + }, + "node_modules/update-notifier/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/update-notifier/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/update-notifier/node_modules/semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/update-notifier/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/update-notifier/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/update-notifier/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/update-notifier/node_modules/widest-line": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", + "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", + "dependencies": { + "string-width": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/update-notifier/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/update-notifier/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/uri-js/node_modules/punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/url-loader": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/url-loader/-/url-loader-4.1.1.tgz", + "integrity": "sha512-3BTV812+AVHHOJQO8O5MkWgZ5aosP7GnROJwvzLS9hWDj00lZ6Z0wNak423Lp9PBZN05N+Jk/N5Si8jRAlGyWA==", + "dependencies": { + "loader-utils": "^2.0.0", + "mime-types": "^2.1.27", + "schema-utils": "^3.0.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "file-loader": "*", + "webpack": "^4.0.0 || ^5.0.0" + }, + "peerDependenciesMeta": { + "file-loader": { + "optional": true + } + } + }, + "node_modules/url-loader/node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/url-loader/node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/url-loader/node_modules/schema-utils": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", + "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/url-parse-lax": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", + "integrity": "sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ==", + "dependencies": { + "prepend-http": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/use-composed-ref": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/use-composed-ref/-/use-composed-ref-1.3.0.tgz", + "integrity": "sha512-GLMG0Jc/jiKov/3Ulid1wbv3r54K9HlMW29IWcDFPEqFkSO2nS0MuefWgMJpeHQ9YJeXDL3ZUF+P3jdXlZX/cQ==", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/use-isomorphic-layout-effect": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.2.tgz", + "integrity": "sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/use-latest": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/use-latest/-/use-latest-1.2.1.tgz", + "integrity": "sha512-xA+AVm/Wlg3e2P/JiItTziwS7FK92LWrDB0p+hgXloIMuVCeJJ8v6f0eeHyPZaJrM+usM1FkFfbNCrJGs8A/zw==", + "dependencies": { + "use-isomorphic-layout-effect": "^1.1.1" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/use-sync-external-store": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz", + "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "node_modules/utila": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz", + "integrity": "sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA==" + }, + "node_modules/utility-types": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", + "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/uvu": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/uvu/-/uvu-0.5.6.tgz", + "integrity": "sha512-+g8ENReyr8YsOc6fv/NVJs2vFdHBnBNdfE49rshrTzDWOlUx4Gq7KOS2GD8eqhy2j+Ejq29+SbKH8yjkAqXqoA==", + "dependencies": { + "dequal": "^2.0.0", + "diff": "^5.0.0", + "kleur": "^4.0.3", + "sade": "^1.7.3" + }, + "bin": { + "uvu": "bin.js" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/uvu/node_modules/kleur": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", + "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/v8-compile-cache": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", + "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", + "dev": true + }, + "node_modules/validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/value-equal": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/value-equal/-/value-equal-1.0.1.tgz", + "integrity": "sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw==" + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/vfile": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-4.2.1.tgz", + "integrity": "sha512-O6AE4OskCG5S1emQ/4gl8zK586RqA3srz3nfK/Viy0UPToBc5Trp9BVFb1u0CjsKrAWwnpr4ifM/KBXPWwJbCA==", + "dependencies": { + "@types/unist": "^2.0.0", + "is-buffer": "^2.0.0", + "unist-util-stringify-position": "^2.0.0", + "vfile-message": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile-location": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-3.2.0.tgz", + "integrity": "sha512-aLEIZKv/oxuCDZ8lkJGhuhztf/BW4M+iHdCwglA/eWc+vtuRFJj8EtgceYFX4LRjOhCAAiNHsKGssC6onJ+jbA==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile-message": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-2.0.4.tgz", + "integrity": "sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-stringify-position": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile-message/node_modules/unist-util-stringify-position": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz", + "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==", + "dependencies": { + "@types/unist": "^2.0.2" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile/node_modules/unist-util-stringify-position": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz", + "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==", + "dependencies": { + "@types/unist": "^2.0.2" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/wait-on": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/wait-on/-/wait-on-6.0.1.tgz", + "integrity": "sha512-zht+KASY3usTY5u2LgaNqn/Cd8MukxLGjdcZxT2ns5QzDmTFc4XoWBgC+C/na+sMRZTuVygQoMYwdcVjHnYIVw==", + "dependencies": { + "axios": "^0.25.0", + "joi": "^17.6.0", + "lodash": "^4.17.21", + "minimist": "^1.2.5", + "rxjs": "^7.5.4" + }, + "bin": { + "wait-on": "bin/wait-on" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/watchpack": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/wbuf": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", + "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", + "dependencies": { + "minimalistic-assert": "^1.0.0" + } + }, + "node_modules/web-namespaces": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-1.1.4.tgz", + "integrity": "sha512-wYxSGajtmoP4WxfejAPIr4l0fVh+jeMXZb08wNc0tMg6xsfZXj3cECqIK0G7ZAqUq0PP8WlMDtaOGVBTAWztNw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/webpack": { + "version": "5.85.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.85.1.tgz", + "integrity": "sha512-xTb7MRf4LY8Z5rzn7aIx4TDrwYJrjcHnIfU1TqtyZOoObyuGSpAUwIvVuqq5wPnv7WEgQr8UvO1q/dgoGG4HjA==", + "dependencies": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^1.0.0", + "@webassemblyjs/ast": "^1.11.5", + "@webassemblyjs/wasm-edit": "^1.11.5", + "@webassemblyjs/wasm-parser": "^1.11.5", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.9.0", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.14.1", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.1.2", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.7", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-bundle-analyzer": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.9.0.tgz", + "integrity": "sha512-+bXGmO1LyiNx0i9enBu3H8mv42sj/BJWhZNFwjz92tVnBa9J3JMGo2an2IXlEleoDOPn/Hofl5hr/xCpObUDtw==", + "dependencies": { + "@discoveryjs/json-ext": "0.5.7", + "acorn": "^8.0.4", + "acorn-walk": "^8.0.0", + "chalk": "^4.1.0", + "commander": "^7.2.0", + "gzip-size": "^6.0.0", + "lodash": "^4.17.20", + "opener": "^1.5.2", + "sirv": "^1.0.7", + "ws": "^7.3.1" + }, + "bin": { + "webpack-bundle-analyzer": "lib/bin/analyzer.js" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/webpack-bundle-analyzer/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/webpack-bundle-analyzer/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/webpack-bundle-analyzer/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/webpack-bundle-analyzer/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/webpack-bundle-analyzer/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "engines": { + "node": ">= 10" + } + }, + "node_modules/webpack-bundle-analyzer/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/webpack-bundle-analyzer/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/webpack-dev-middleware": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz", + "integrity": "sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA==", + "dependencies": { + "colorette": "^2.0.10", + "memfs": "^3.4.3", + "mime-types": "^2.1.31", + "range-parser": "^1.2.1", + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/webpack-dev-middleware/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/webpack-dev-middleware/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/webpack-dev-middleware/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/webpack-dev-middleware/node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/webpack-dev-middleware/node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/webpack-dev-middleware/node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/webpack-dev-middleware/node_modules/schema-utils": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", + "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/webpack-dev-server": { + "version": "4.15.0", + "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.0.tgz", + "integrity": "sha512-HmNB5QeSl1KpulTBQ8UT4FPrByYyaLxpJoQ0+s7EvUrMc16m0ZS1sgb1XGqzmgCPk0c9y+aaXxn11tbLzuM7NQ==", + "dependencies": { + "@types/bonjour": "^3.5.9", + "@types/connect-history-api-fallback": "^1.3.5", + "@types/express": "^4.17.13", + "@types/serve-index": "^1.9.1", + "@types/serve-static": "^1.13.10", + "@types/sockjs": "^0.3.33", + "@types/ws": "^8.5.1", + "ansi-html-community": "^0.0.8", + "bonjour-service": "^1.0.11", + "chokidar": "^3.5.3", + "colorette": "^2.0.10", + "compression": "^1.7.4", + "connect-history-api-fallback": "^2.0.0", + "default-gateway": "^6.0.3", + "express": "^4.17.3", + "graceful-fs": "^4.2.6", + "html-entities": "^2.3.2", + "http-proxy-middleware": "^2.0.3", + "ipaddr.js": "^2.0.1", + "launch-editor": "^2.6.0", + "open": "^8.0.9", + "p-retry": "^4.5.0", + "rimraf": "^3.0.2", + "schema-utils": "^4.0.0", + "selfsigned": "^2.1.1", + "serve-index": "^1.9.1", + "sockjs": "^0.3.24", + "spdy": "^4.0.2", + "webpack-dev-middleware": "^5.3.1", + "ws": "^8.13.0" + }, + "bin": { + "webpack-dev-server": "bin/webpack-dev-server.js" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.37.0 || ^5.0.0" + }, + "peerDependenciesMeta": { + "webpack": { + "optional": true }, - "graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" - }, - "grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", - "dev": true - }, - "graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "devOptional": true - }, - "gray-matter": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-4.0.3.tgz", - "integrity": "sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==", - "requires": { - "js-yaml": "^3.13.1", - "kind-of": "^6.0.2", - "section-matter": "^1.0.0", - "strip-bom-string": "^1.0.0" - }, - "dependencies": { - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - } - } + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-dev-server/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/webpack-dev-server/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/webpack-dev-server/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/webpack-dev-server/node_modules/schema-utils": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", + "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/webpack-dev-server/node_modules/ws": { + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", + "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/webpack-merge": { + "version": "5.9.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.9.0.tgz", + "integrity": "sha512-6NbRQw4+Sy50vYNTw7EyOn41OZItPiXB8GNv3INSoe3PSFaHJEz3SHTrYVaRm2LilNGnFUzh0FAwqPEmU/CwDg==", + "dependencies": { + "clone-deep": "^4.0.1", + "wildcard": "^2.0.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack/node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/webpack/node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/webpack/node_modules/schema-utils": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", + "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/webpackbar": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/webpackbar/-/webpackbar-5.0.2.tgz", + "integrity": "sha512-BmFJo7veBDgQzfWXl/wwYXr/VFus0614qZ8i9znqcl9fnEdiVkdbi0TedLQ6xAK92HZHDJ0QmyQ0fmuZPAgCYQ==", + "dependencies": { + "chalk": "^4.1.0", + "consola": "^2.15.3", + "pretty-time": "^1.1.0", + "std-env": "^3.0.1" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "webpack": "3 || 4 || 5" + } + }, + "node_modules/webpackbar/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/webpackbar/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/webpackbar/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/webpackbar/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/webpackbar/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/webpackbar/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/websocket-driver": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", + "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", + "dependencies": { + "http-parser-js": ">=0.5.1", + "safe-buffer": ">=5.1.0", + "websocket-extensions": ">=0.1.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/websocket-extensions": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", + "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-collection": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", + "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", + "dev": true, + "dependencies": { + "is-map": "^2.0.1", + "is-set": "^2.0.1", + "is-weakmap": "^2.0.1", + "is-weakset": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", + "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/widest-line": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-4.0.1.tgz", + "integrity": "sha512-o0cyEG0e8GPzT4iGHphIOh0cJOV8fivsXxddQasHPHfoZf1ZexrfeA21w2NaEN1RHE+fXlfISmOE8R9N3u3Qig==", + "dependencies": { + "string-width": "^5.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/wildcard": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", + "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==" + }, + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "devOptional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xdg-basedir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", + "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/xml-js": { + "version": "1.6.11", + "resolved": "https://registry.npmjs.org/xml-js/-/xml-js-1.6.11.tgz", + "integrity": "sha512-7rVi2KMfwfWFl+GpPg6m80IVMWXLRjO+PxTq7V2CDhoGak0wzYzFgUY2m4XJ47OGdXd8eLE8EmwfAmdjw7lC1g==", + "dependencies": { + "sax": "^1.2.4" + }, + "bin": { + "xml-js": "bin/cli.js" + } + }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "engines": { + "node": ">=0.4" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" + }, + "node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zwitch": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-1.0.5.tgz", + "integrity": "sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + } + }, + "dependencies": { + "@algolia/autocomplete-core": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@algolia/autocomplete-core/-/autocomplete-core-1.8.2.tgz", + "integrity": "sha512-mTeshsyFhAqw/ebqNsQpMtbnjr+qVOSKXArEj4K0d7sqc8It1XD0gkASwecm9mF/jlOQ4Z9RNg1HbdA8JPdRwQ==", + "requires": { + "@algolia/autocomplete-shared": "1.8.2" + } + }, + "@algolia/autocomplete-preset-algolia": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@algolia/autocomplete-preset-algolia/-/autocomplete-preset-algolia-1.8.2.tgz", + "integrity": "sha512-J0oTx4me6ZM9kIKPuL3lyU3aB8DEvpVvR6xWmHVROx5rOYJGQcZsdG4ozxwcOyiiu3qxMkIbzntnV1S1VWD8yA==", + "requires": { + "@algolia/autocomplete-shared": "1.8.2" + } + }, + "@algolia/autocomplete-shared": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@algolia/autocomplete-shared/-/autocomplete-shared-1.8.2.tgz", + "integrity": "sha512-b6Z/X4MczChMcfhk6kfRmBzPgjoPzuS9KGR4AFsiLulLNRAAqhP+xZTKtMnZGhLuc61I20d5WqlId02AZvcO6g==" + }, + "@algolia/cache-browser-local-storage": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/cache-browser-local-storage/-/cache-browser-local-storage-4.17.1.tgz", + "integrity": "sha512-e91Jpu93X3t3mVdQwF3ZDjSFMFIfzSc+I76G4EX8nl9RYXgqcjframoL05VTjcD2YCsI18RIHAWVCBoCXVZnrw==", + "requires": { + "@algolia/cache-common": "4.17.1" + } + }, + "@algolia/cache-common": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/cache-common/-/cache-common-4.17.1.tgz", + "integrity": "sha512-fvi1WT8aSiGAKrcTw8Qg3RYgcwW8GZMHcqEm4AyDBEy72JZlFBSY80cTQ75MslINjCHXLDT+9EN8AGI9WVY7uA==" + }, + "@algolia/cache-in-memory": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/cache-in-memory/-/cache-in-memory-4.17.1.tgz", + "integrity": "sha512-NbBt6eBWlsXc5geSpfPRC5dkIB/0Ptthw8r0yM5Z7D3sPlYdnTZSO9y9XWXIptRMwmZe4cM8iBMN8y0tzbcBkA==", + "requires": { + "@algolia/cache-common": "4.17.1" + } + }, + "@algolia/client-account": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/client-account/-/client-account-4.17.1.tgz", + "integrity": "sha512-3rL/6ofJvyL+q8TiWM3qoM9tig+SY4gB1Vbsj+UeJPnJm8Khm+7OS+r+mFraqR6pTehYqN8yGYoE7x4diEn4aA==", + "requires": { + "@algolia/client-common": "4.17.1", + "@algolia/client-search": "4.17.1", + "@algolia/transporter": "4.17.1" + } + }, + "@algolia/client-analytics": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/client-analytics/-/client-analytics-4.17.1.tgz", + "integrity": "sha512-Bepr2w249vODqeBtM7i++tPmUsQ9B81aupUGbDWmjA/FX+jzQqOdhW8w1CFO5kWViNKTbz2WBIJ9U3x8hOa4bA==", + "requires": { + "@algolia/client-common": "4.17.1", + "@algolia/client-search": "4.17.1", + "@algolia/requester-common": "4.17.1", + "@algolia/transporter": "4.17.1" + } + }, + "@algolia/client-common": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/client-common/-/client-common-4.17.1.tgz", + "integrity": "sha512-+r7kg4EgbFnGsDnoGSVNtXZO8xvZ0vzf1WAOV7sqV9PMf1bp6cpJP/3IuPrSk4t5w2KVl+pC8jfTM7HcFlfBEQ==", + "requires": { + "@algolia/requester-common": "4.17.1", + "@algolia/transporter": "4.17.1" + } + }, + "@algolia/client-personalization": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/client-personalization/-/client-personalization-4.17.1.tgz", + "integrity": "sha512-gJku9DG/THJpfsSlG/az0a3QIn+VVff9kKh8PG8+7ZfxOHS+C+Y5YSeZVsC+c2cfoKLPo3CuHIiJ/p86erR3bA==", + "requires": { + "@algolia/client-common": "4.17.1", + "@algolia/requester-common": "4.17.1", + "@algolia/transporter": "4.17.1" + } + }, + "@algolia/client-search": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/client-search/-/client-search-4.17.1.tgz", + "integrity": "sha512-Q5YfT5gVkx60PZDQBqp/zH9aUbBdC7HVvxupiHUgnCKqRQsRZjOhLest7AI6FahepuZLBZS62COrO7v+JvKY7w==", + "requires": { + "@algolia/client-common": "4.17.1", + "@algolia/requester-common": "4.17.1", + "@algolia/transporter": "4.17.1" + } + }, + "@algolia/events": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@algolia/events/-/events-4.0.1.tgz", + "integrity": "sha512-FQzvOCgoFXAbf5Y6mYozw2aj5KCJoA3m4heImceldzPSMbdyS4atVjJzXKMsfX3wnZTFYwkkt8/z8UesLHlSBQ==" + }, + "@algolia/logger-common": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/logger-common/-/logger-common-4.17.1.tgz", + "integrity": "sha512-Us28Ot+fLEmX9M96sa65VZ8EyEEzhYPxfhV9aQyKDjfXbUdJlJxKt6wZpoEg9RAPSdO8IjK9nmuW2P8au3rRsg==" + }, + "@algolia/logger-console": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/logger-console/-/logger-console-4.17.1.tgz", + "integrity": "sha512-iKGQTpOjHiE64W3JIOu6dmDvn+AfYIElI9jf/Nt6umRPmP/JI9rK+OHUoW4pKrBtdG0DPd62ppeNXzSnLxY6/g==", + "requires": { + "@algolia/logger-common": "4.17.1" + } + }, + "@algolia/requester-browser-xhr": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/requester-browser-xhr/-/requester-browser-xhr-4.17.1.tgz", + "integrity": "sha512-W5mGfGDsyfVR+r4pUFrYLGBEM18gs38+GNt5PE5uPULy4uVTSnnVSkJkWeRkmLBk9zEZ/Nld8m4zavK6dtEuYg==", + "requires": { + "@algolia/requester-common": "4.17.1" + } + }, + "@algolia/requester-common": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/requester-common/-/requester-common-4.17.1.tgz", + "integrity": "sha512-HggXdjvVFQR0I5l7hM5WdHgQ1tqcRWeyXZz8apQ7zPWZhirmY2E9D6LVhDh/UnWQNEm7nBtM+eMFONJ3bZccIQ==" + }, + "@algolia/requester-node-http": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/requester-node-http/-/requester-node-http-4.17.1.tgz", + "integrity": "sha512-NzFWecXT6d0PPsQY9L+/qoK2deF74OLcpvqCH+Vh3mh+QzPsFafcBExdguAjZsAWDn1R6JEeFW7/fo/p0SE57w==", + "requires": { + "@algolia/requester-common": "4.17.1" + } + }, + "@algolia/transporter": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@algolia/transporter/-/transporter-4.17.1.tgz", + "integrity": "sha512-ZM+qhX47Vh46mWH8/U9ihvy98HdTYpYQDSlqBD7IbiUbbyoCMke+qmdSX2MGhR2FCcXBSxejsJKKVAfbpaLVgg==", + "requires": { + "@algolia/cache-common": "4.17.1", + "@algolia/logger-common": "4.17.1", + "@algolia/requester-common": "4.17.1" + } + }, + "@ampproject/remapping": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "requires": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@babel/code-frame": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.21.4.tgz", + "integrity": "sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g==", + "requires": { + "@babel/highlight": "^7.18.6" + } + }, + "@babel/compat-data": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.3.tgz", + "integrity": "sha512-aNtko9OPOwVESUFp3MZfD8Uzxl7JzSeJpd7npIoxCasU37PFbAQRpKglkaKwlHOyeJdrREpo8TW8ldrkYWwvIQ==" + }, + "@babel/core": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.1.tgz", + "integrity": "sha512-Hkqu7J4ynysSXxmAahpN1jjRwVJ+NdpraFLIWflgjpVob3KNyK3/tIUc7Q7szed8WMp0JNa7Qtd1E9Oo22F9gA==", + "requires": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.21.4", + "@babel/generator": "^7.22.0", + "@babel/helper-compilation-targets": "^7.22.1", + "@babel/helper-module-transforms": "^7.22.1", + "@babel/helpers": "^7.22.0", + "@babel/parser": "^7.22.0", + "@babel/template": "^7.21.9", + "@babel/traverse": "^7.22.1", + "@babel/types": "^7.22.0", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.2", + "semver": "^6.3.0" + } + }, + "@babel/eslint-parser": { + "version": "7.21.8", + "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.21.8.tgz", + "integrity": "sha512-HLhI+2q+BP3sf78mFUZNCGc10KEmoUqtUT1OCdMZsN+qr4qFeLUod62/zAnF3jNQstwyasDkZnVXwfK2Bml7MQ==", + "dev": true, + "requires": { + "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", + "eslint-visitor-keys": "^2.1.0", + "semver": "^6.3.0" + } + }, + "@babel/generator": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.3.tgz", + "integrity": "sha512-C17MW4wlk//ES/CJDL51kPNwl+qiBQyN7b9SKyVp11BLGFeSPoVaHrv+MNt8jwQFhQWowW88z1eeBx3pFz9v8A==", + "requires": { + "@babel/types": "^7.22.3", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + } + }, + "@babel/helper-annotate-as-pure": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", + "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.3.tgz", + "integrity": "sha512-ahEoxgqNoYXm0k22TvOke48i1PkavGu0qGCmcq9ugi6gnmvKNaMjKBSrZTnWUi1CFEeNAUiVba0Wtzm03aSkJg==", + "requires": { + "@babel/types": "^7.22.3" + } + }, + "@babel/helper-compilation-targets": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.1.tgz", + "integrity": "sha512-Rqx13UM3yVB5q0D/KwQ8+SPfX/+Rnsy1Lw1k/UwOC4KC6qrzIQoY3lYnBu5EHKBlEHHcj0M0W8ltPSkD8rqfsQ==", + "requires": { + "@babel/compat-data": "^7.22.0", + "@babel/helper-validator-option": "^7.21.0", + "browserslist": "^4.21.3", + "lru-cache": "^5.1.1", + "semver": "^6.3.0" + } + }, + "@babel/helper-create-class-features-plugin": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.1.tgz", + "integrity": "sha512-SowrZ9BWzYFgzUMwUmowbPSGu6CXL5MSuuCkG3bejahSpSymioPmuLdhPxNOc9MjuNGjy7M/HaXvJ8G82Lywlw==", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.22.1", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-member-expression-to-functions": "^7.22.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-replace-supers": "^7.22.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/helper-split-export-declaration": "^7.18.6", + "semver": "^6.3.0" + } + }, + "@babel/helper-create-regexp-features-plugin": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.1.tgz", + "integrity": "sha512-WWjdnfR3LPIe+0EY8td7WmjhytxXtjKAEpnAxun/hkNiyOaPlvGK+NZaBFIdi9ndYV3Gav7BpFvtUwnaJlwi1w==", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "regexpu-core": "^5.3.1", + "semver": "^6.3.0" + } + }, + "@babel/helper-define-polyfill-provider": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.0.tgz", + "integrity": "sha512-RnanLx5ETe6aybRi1cO/edaRH+bNYWaryCEmjDDYyNr4wnSzyOp8T0dWipmqVHKEY3AbVKUom50AKSlj1zmKbg==", + "requires": { + "@babel/helper-compilation-targets": "^7.17.7", + "@babel/helper-plugin-utils": "^7.16.7", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2", + "semver": "^6.1.2" + } + }, + "@babel/helper-environment-visitor": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.1.tgz", + "integrity": "sha512-Z2tgopurB/kTbidvzeBrc2To3PUP/9i5MUe+fU6QJCQDyPwSH2oRapkLw3KGECDYSjhQZCNxEvNvZlLw8JjGwA==" + }, + "@babel/helper-function-name": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz", + "integrity": "sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg==", + "requires": { + "@babel/template": "^7.20.7", + "@babel/types": "^7.21.0" + } + }, + "@babel/helper-hoist-variables": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", + "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-member-expression-to-functions": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.22.3.tgz", + "integrity": "sha512-Gl7sK04b/2WOb6OPVeNy9eFKeD3L6++CzL3ykPOWqTn08xgYYK0wz4TUh2feIImDXxcVW3/9WQ1NMKY66/jfZA==", + "requires": { + "@babel/types": "^7.22.3" + } + }, + "@babel/helper-module-imports": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.21.4.tgz", + "integrity": "sha512-orajc5T2PsRYUN3ZryCEFeMDYwyw09c/pZeaQEZPH0MpKzSvn3e0uXsDBu3k03VI+9DBiRo+l22BfKTpKwa/Wg==", + "requires": { + "@babel/types": "^7.21.4" + } + }, + "@babel/helper-module-transforms": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.1.tgz", + "integrity": "sha512-dxAe9E7ySDGbQdCVOY/4+UcD8M9ZFqZcZhSPsPacvCG4M+9lwtDDQfI2EoaSvmf7W/8yCBkGU0m7Pvt1ru3UZw==", + "requires": { + "@babel/helper-environment-visitor": "^7.22.1", + "@babel/helper-module-imports": "^7.21.4", + "@babel/helper-simple-access": "^7.21.5", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/helper-validator-identifier": "^7.19.1", + "@babel/template": "^7.21.9", + "@babel/traverse": "^7.22.1", + "@babel/types": "^7.22.0" + } + }, + "@babel/helper-optimise-call-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz", + "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==", + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-plugin-utils": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.21.5.tgz", + "integrity": "sha512-0WDaIlXKOX/3KfBK/dwP1oQGiPh6rjMkT7HIRv7i5RR2VUMwrx5ZL0dwBkKx7+SW1zwNdgjHd34IMk5ZjTeHVg==" + }, + "@babel/helper-remap-async-to-generator": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz", + "integrity": "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-wrap-function": "^7.18.9", + "@babel/types": "^7.18.9" + } + }, + "@babel/helper-replace-supers": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.1.tgz", + "integrity": "sha512-ut4qrkE4AuSfrwHSps51ekR1ZY/ygrP1tp0WFm8oVq6nzc/hvfV/22JylndIbsf2U2M9LOMwiSddr6y+78j+OQ==", + "requires": { + "@babel/helper-environment-visitor": "^7.22.1", + "@babel/helper-member-expression-to-functions": "^7.22.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/template": "^7.21.9", + "@babel/traverse": "^7.22.1", + "@babel/types": "^7.22.0" + } + }, + "@babel/helper-simple-access": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.21.5.tgz", + "integrity": "sha512-ENPDAMC1wAjR0uaCUwliBdiSl1KBJAVnMTzXqi64c2MG8MPR6ii4qf7bSXDqSFbr4W6W028/rf5ivoHop5/mkg==", + "requires": { + "@babel/types": "^7.21.5" + } + }, + "@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz", + "integrity": "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==", + "requires": { + "@babel/types": "^7.20.0" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", + "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-string-parser": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.21.5.tgz", + "integrity": "sha512-5pTUx3hAJaZIdW99sJ6ZUUgWq/Y+Hja7TowEnLNMm1VivRgZQL3vpBY3qUACVsvw+yQU6+YgfBVmcbLaZtrA1w==" + }, + "@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==" + }, + "@babel/helper-validator-option": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz", + "integrity": "sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==" + }, + "@babel/helper-wrap-function": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.20.5.tgz", + "integrity": "sha512-bYMxIWK5mh+TgXGVqAtnu5Yn1un+v8DDZtqyzKRLUzrh70Eal2O3aZ7aPYiMADO4uKlkzOiRiZ6GX5q3qxvW9Q==", + "requires": { + "@babel/helper-function-name": "^7.19.0", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.20.5", + "@babel/types": "^7.20.5" + } + }, + "@babel/helpers": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.3.tgz", + "integrity": "sha512-jBJ7jWblbgr7r6wYZHMdIqKc73ycaTcCaWRq4/2LpuPHcx7xMlZvpGQkOYc9HeSjn6rcx15CPlgVcBtZ4WZJ2w==", + "requires": { + "@babel/template": "^7.21.9", + "@babel/traverse": "^7.22.1", + "@babel/types": "^7.22.3" + } + }, + "@babel/highlight": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", + "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "requires": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + } + }, + "@babel/parser": { + "version": "7.22.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.4.tgz", + "integrity": "sha512-VLLsx06XkEYqBtE5YGPwfSGwfrjnyPP5oiGty3S8pQLFDFLaS8VwWSIxkTXpcvr5zeYLE6+MBNl2npl/YnfofA==" + }, + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz", + "integrity": "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.22.3.tgz", + "integrity": "sha512-6r4yRwEnorYByILoDRnEqxtojYKuiIv9FojW2E8GUKo9eWBwbKcd9IiZOZpdyXc64RmyGGyPu3/uAcrz/dq2kQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/plugin-transform-optional-chaining": "^7.22.3" + } + }, + "@babel/plugin-proposal-object-rest-spread": { + "version": "7.12.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.12.1.tgz", + "integrity": "sha512-s6SowJIjzlhx8o7lsFx5zmY4At6CTtDvgNQDdPzkBQucle58A6b/TTeEBYtyDgmcXjUTM+vE8YOGHZzzbc/ioA==", + "requires": { + "@babel/helper-plugin-utils": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.0", + "@babel/plugin-transform-parameters": "^7.12.1" + } + }, + "@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.11.tgz", + "integrity": "sha512-0QZ8qP/3RLDVBwBFoWAwCtgcDZJVwA5LUJRZU8x2YFfKNuFq161wK3cuGrALu5yiPu+vzwTAg/sMWVNeWeNyaw==", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.21.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + } + }, + "@babel/plugin-proposal-unicode-property-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", + "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "requires": { + "@babel/helper-plugin-utils": "^7.12.13" + } + }, + "@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-syntax-import-assertions": { + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz", + "integrity": "sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.19.0" + } + }, + "@babel/plugin-syntax-import-attributes": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.22.3.tgz", + "integrity": "sha512-i35jZJv6aO7hxEbIWQ41adVfOzjm9dcYDNeWlBMd8p0ZQRtNUCBrmGwZt+H5lb+oOC9a3svp956KP0oWGA1YsA==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-jsx": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.21.4.tgz", + "integrity": "sha512-5hewiLct5OKyh6PLKEYaFclcqtIgCb6bmELouxjF6up5q3Sov7rOayW4RwhbaBL0dit8rA80GNfY+UuDp2mBbQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-typescript": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.21.4.tgz", + "integrity": "sha512-xz0D39NvhQn4t4RNsHmDnnsaQizIlUkdtYvLs8La1BlfjQ6JEwxkJGeqJMW2tAXx+q6H+WFuUTXNdYVpEya0YA==", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-syntax-unicode-sets-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", + "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-arrow-functions": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.21.5.tgz", + "integrity": "sha512-wb1mhwGOCaXHDTcsRYMKF9e5bbMgqwxtqa2Y1ifH96dXJPwbuLX9qHy3clhrxVqgMz7nyNXs8VkxdH8UBcjKqA==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-transform-async-generator-functions": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.22.3.tgz", + "integrity": "sha512-36A4Aq48t66btydbZd5Fk0/xJqbpg/v4QWI4AH4cYHBXy9Mu42UOupZpebKFiCFNT9S9rJFcsld0gsv0ayLjtA==", + "requires": { + "@babel/helper-environment-visitor": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-remap-async-to-generator": "^7.18.9", + "@babel/plugin-syntax-async-generators": "^7.8.4" + } + }, + "@babel/plugin-transform-async-to-generator": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.20.7.tgz", + "integrity": "sha512-Uo5gwHPT9vgnSXQxqGtpdufUiWp96gk7yiP4Mp5bm1QMkEmLXBO7PAGYbKoJ6DhAwiNkcHFBol/x5zZZkL/t0Q==", + "requires": { + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-remap-async-to-generator": "^7.18.9" + } + }, + "@babel/plugin-transform-block-scoped-functions": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz", + "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-block-scoping": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.21.0.tgz", + "integrity": "sha512-Mdrbunoh9SxwFZapeHVrwFmri16+oYotcZysSzhNIVDwIAb1UV+kvnxULSYq9J3/q5MDG+4X6w8QVgD1zhBXNQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-transform-class-properties": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.22.3.tgz", + "integrity": "sha512-mASLsd6rhOrLZ5F3WbCxkzl67mmOnqik0zrg5W6D/X0QMW7HtvnoL1dRARLKIbMP3vXwkwziuLesPqWVGIl6Bw==", + "requires": { + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-transform-class-static-block": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.22.3.tgz", + "integrity": "sha512-5BirgNWNOx7cwbTJCOmKFJ1pZjwk5MUfMIwiBBvsirCJMZeQgs5pk6i1OlkVg+1Vef5LfBahFOrdCnAWvkVKMw==", + "requires": { + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + } + }, + "@babel/plugin-transform-classes": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.21.0.tgz", + "integrity": "sha512-RZhbYTCEUAe6ntPehC4hlslPWosNHDox+vAs4On/mCLRLfoDVHf6hVEd7kuxr1RnHwJmxFfUM3cZiZRmPxJPXQ==", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-compilation-targets": "^7.20.7", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-replace-supers": "^7.20.7", + "@babel/helper-split-export-declaration": "^7.18.6", + "globals": "^11.1.0" + } + }, + "@babel/plugin-transform-computed-properties": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.21.5.tgz", + "integrity": "sha512-TR653Ki3pAwxBxUe8srfF3e4Pe3FTA46uaNHYyQwIoM4oWKSoOZiDNyHJ0oIoDIUPSRQbQG7jzgVBX3FPVne1Q==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/template": "^7.20.7" + } + }, + "@babel/plugin-transform-destructuring": { + "version": "7.21.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.21.3.tgz", + "integrity": "sha512-bp6hwMFzuiE4HqYEyoGJ/V2LeIWn+hLVKc4pnj++E5XQptwhtcGmSayM029d/j2X1bPKGTlsyPwAubuU22KhMA==", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-transform-dotall-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz", + "integrity": "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==", + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-duplicate-keys": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz", + "integrity": "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-dynamic-import": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.22.1.tgz", + "integrity": "sha512-rlhWtONnVBPdmt+jeewS0qSnMz/3yLFrqAP8hHC6EDcrYRSyuz9f9yQhHvVn2Ad6+yO9fHXac5piudeYrInxwQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + } + }, + "@babel/plugin-transform-exponentiation-operator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz", + "integrity": "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==", + "requires": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-export-namespace-from": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.22.3.tgz", + "integrity": "sha512-5Ti1cHLTDnt3vX61P9KZ5IG09bFXp4cDVFJIAeCZuxu9OXXJJZp5iP0n/rzM2+iAutJY+KWEyyHcRaHlpQ/P5g==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + } + }, + "@babel/plugin-transform-for-of": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.21.5.tgz", + "integrity": "sha512-nYWpjKW/7j/I/mZkGVgHJXh4bA1sfdFnJoOXwJuj4m3Q2EraO/8ZyrkCau9P5tbHQk01RMSt6KYLCsW7730SXQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-transform-function-name": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz", + "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==", + "requires": { + "@babel/helper-compilation-targets": "^7.18.9", + "@babel/helper-function-name": "^7.18.9", + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-json-strings": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.22.3.tgz", + "integrity": "sha512-IuvOMdeOOY2X4hRNAT6kwbePtK21BUyrAEgLKviL8pL6AEEVUVcqtRdN/HJXBLGIbt9T3ETmXRnFedRRmQNTYw==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-json-strings": "^7.8.3" + } + }, + "@babel/plugin-transform-literals": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz", + "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-logical-assignment-operators": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.22.3.tgz", + "integrity": "sha512-CbayIfOw4av2v/HYZEsH+Klks3NC2/MFIR3QR8gnpGNNPEaq2fdlVCRYG/paKs7/5hvBLQ+H70pGWOHtlNEWNA==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + } + }, + "@babel/plugin-transform-member-expression-literals": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz", + "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-modules-amd": { + "version": "7.20.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.20.11.tgz", + "integrity": "sha512-NuzCt5IIYOW0O30UvqktzHYR2ud5bOWbY0yaxWZ6G+aFzOMJvrs5YHNikrbdaT15+KNO31nPOy5Fim3ku6Zb5g==", + "requires": { + "@babel/helper-module-transforms": "^7.20.11", + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-transform-modules-commonjs": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.21.5.tgz", + "integrity": "sha512-OVryBEgKUbtqMoB7eG2rs6UFexJi6Zj6FDXx+esBLPTCxCNxAY9o+8Di7IsUGJ+AVhp5ncK0fxWUBd0/1gPhrQ==", + "requires": { + "@babel/helper-module-transforms": "^7.21.5", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-simple-access": "^7.21.5" + } + }, + "@babel/plugin-transform-modules-systemjs": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.22.3.tgz", + "integrity": "sha512-V21W3bKLxO3ZjcBJZ8biSvo5gQ85uIXW2vJfh7JSWf/4SLUSr1tOoHX3ruN4+Oqa2m+BKfsxTR1I+PsvkIWvNw==", + "requires": { + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-module-transforms": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-validator-identifier": "^7.19.1" + } + }, + "@babel/plugin-transform-modules-umd": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz", + "integrity": "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==", + "requires": { + "@babel/helper-module-transforms": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.3.tgz", + "integrity": "sha512-c6HrD/LpUdNNJsISQZpds3TXvfYIAbo+efE9aWmY/PmSRD0agrJ9cPMt4BmArwUQ7ZymEWTFjTyp+yReLJZh0Q==", + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-transform-new-target": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.22.3.tgz", + "integrity": "sha512-5RuJdSo89wKdkRTqtM9RVVJzHum9c2s0te9rB7vZC1zKKxcioWIy+xcu4OoIAjyFZhb/bp5KkunuLin1q7Ct+w==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-transform-nullish-coalescing-operator": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.22.3.tgz", + "integrity": "sha512-CpaoNp16nX7ROtLONNuCyenYdY/l7ZsR6aoVa7rW7nMWisoNoQNIH5Iay/4LDyRjKMuElMqXiBoOQCDLTMGZiw==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + } + }, + "@babel/plugin-transform-numeric-separator": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.22.3.tgz", + "integrity": "sha512-+AF88fPDJrnseMh5vD9+SH6wq4ZMvpiTMHh58uLs+giMEyASFVhcT3NkoyO+NebFCNnpHJEq5AXO2txV4AGPDQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + } + }, + "@babel/plugin-transform-object-rest-spread": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.22.3.tgz", + "integrity": "sha512-38bzTsqMMCI46/TQnJwPPpy33EjLCc1Gsm2hRTF6zTMWnKsN61vdrpuzIEGQyKEhDSYDKyZHrrd5FMj4gcUHhw==", + "requires": { + "@babel/compat-data": "^7.22.3", + "@babel/helper-compilation-targets": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.22.3" + } + }, + "@babel/plugin-transform-object-super": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz", + "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/helper-replace-supers": "^7.18.6" + } + }, + "@babel/plugin-transform-optional-catch-binding": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.22.3.tgz", + "integrity": "sha512-bnDFWXFzWY0BsOyqaoSXvMQ2F35zutQipugog/rqotL2S4ciFOKlRYUu9djt4iq09oh2/34hqfRR2k1dIvuu4g==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + } + }, + "@babel/plugin-transform-optional-chaining": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.22.3.tgz", + "integrity": "sha512-63v3/UFFxhPKT8j8u1jTTGVyITxl7/7AfOqK8C5gz1rHURPUGe3y5mvIf68eYKGoBNahtJnTxBKug4BQOnzeJg==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + } + }, + "@babel/plugin-transform-parameters": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.3.tgz", + "integrity": "sha512-x7QHQJHPuD9VmfpzboyGJ5aHEr9r7DsAsdxdhJiTB3J3j8dyl+NFZ+rX5Q2RWFDCs61c06qBfS4ys2QYn8UkMw==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-transform-private-methods": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.22.3.tgz", + "integrity": "sha512-fC7jtjBPFqhqpPAE+O4LKwnLq7gGkD3ZmC2E3i4qWH34mH3gOg2Xrq5YMHUq6DM30xhqM1DNftiRaSqVjEG+ug==", + "requires": { + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-transform-private-property-in-object": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.22.3.tgz", + "integrity": "sha512-C7MMl4qWLpgVCbXfj3UW8rR1xeCnisQ0cU7YJHV//8oNBS0aCIVg1vFnZXxOckHhEpQyqNNkWmvSEWnMLlc+Vw==", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + } + }, + "@babel/plugin-transform-property-literals": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz", + "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-react-constant-elements": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.22.3.tgz", + "integrity": "sha512-b5J6muxQYp4H7loAQv/c7GO5cPuRA6H5hx4gO+/Hn+Cu9MRQU0PNiUoWq1L//8sq6kFSNxGXFb2XTaUfa9y+Pg==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-transform-react-display-name": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz", + "integrity": "sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-react-jsx": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.22.3.tgz", + "integrity": "sha512-JEulRWG2f04a7L8VWaOngWiK6p+JOSpB+DAtwfJgOaej1qdbNxqtK7MwTBHjUA10NeFcszlFNqCdbRcirzh2uQ==", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-module-imports": "^7.21.4", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-jsx": "^7.21.4", + "@babel/types": "^7.22.3" + } + }, + "@babel/plugin-transform-react-jsx-development": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz", + "integrity": "sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==", + "requires": { + "@babel/plugin-transform-react-jsx": "^7.18.6" + } + }, + "@babel/plugin-transform-react-pure-annotations": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz", + "integrity": "sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-regenerator": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.21.5.tgz", + "integrity": "sha512-ZoYBKDb6LyMi5yCsByQ5jmXsHAQDDYeexT1Szvlmui+lADvfSecr5Dxd/PkrTC3pAD182Fcju1VQkB4oCp9M+w==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "regenerator-transform": "^0.15.1" + } + }, + "@babel/plugin-transform-reserved-words": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz", + "integrity": "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-runtime": { + "version": "7.22.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.22.4.tgz", + "integrity": "sha512-Urkiz1m4zqiRo17klj+l3nXgiRTFQng91Bc1eiLF7BMQu1e7wE5Gcq9xSv062IF068NHjcutSbIMev60gXxAvA==", + "requires": { + "@babel/helper-module-imports": "^7.21.4", + "@babel/helper-plugin-utils": "^7.21.5", + "babel-plugin-polyfill-corejs2": "^0.4.3", + "babel-plugin-polyfill-corejs3": "^0.8.1", + "babel-plugin-polyfill-regenerator": "^0.5.0", + "semver": "^6.3.0" + } + }, + "@babel/plugin-transform-shorthand-properties": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz", + "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-spread": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.20.7.tgz", + "integrity": "sha512-ewBbHQ+1U/VnH1fxltbJqDeWBU1oNLG8Dj11uIv3xVf7nrQu0bPGe5Rf716r7K5Qz+SqtAOVswoVunoiBtGhxw==", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0" + } + }, + "@babel/plugin-transform-sticky-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz", + "integrity": "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-template-literals": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz", + "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-typeof-symbol": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz", + "integrity": "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-typescript": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.22.3.tgz", + "integrity": "sha512-pyjnCIniO5PNaEuGxT28h0HbMru3qCVrMqVgVOz/krComdIrY9W6FCLBq9NWHY8HDGaUlan+UhmZElDENIfCcw==", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-typescript": "^7.21.4" + } + }, + "@babel/plugin-transform-unicode-escapes": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.21.5.tgz", + "integrity": "sha512-LYm/gTOwZqsYohlvFUe/8Tujz75LqqVC2w+2qPHLR+WyWHGCZPN1KBpJCJn+4Bk4gOkQy/IXKIge6az5MqwlOg==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-transform-unicode-property-regex": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.22.3.tgz", + "integrity": "sha512-5ScJ+OmdX+O6HRuMGW4kv7RL9vIKdtdAj9wuWUKy1wbHY3jaM/UlyIiC1G7J6UJiiyMukjjK0QwL3P0vBd0yYg==", + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-transform-unicode-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz", + "integrity": "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==", + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-unicode-sets-regex": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.22.3.tgz", + "integrity": "sha512-hNufLdkF8vqywRp+P55j4FHXqAX2LRUccoZHH7AFn1pq5ZOO2ISKW9w13bFZVjBoTqeve2HOgoJCcaziJVhGNw==", + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/preset-env": { + "version": "7.22.4", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.22.4.tgz", + "integrity": "sha512-c3lHOjbwBv0TkhYCr+XCR6wKcSZ1QbQTVdSkZUaVpLv8CVWotBMArWUi5UAJrcrQaEnleVkkvaV8F/pmc/STZQ==", + "requires": { + "@babel/compat-data": "^7.22.3", + "@babel/helper-compilation-targets": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-validator-option": "^7.21.0", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.18.6", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.22.3", + "@babel/plugin-proposal-private-property-in-object": "^7.21.0", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3", + "@babel/plugin-syntax-import-assertions": "^7.20.0", + "@babel/plugin-syntax-import-attributes": "^7.22.3", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5", + "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", + "@babel/plugin-transform-arrow-functions": "^7.21.5", + "@babel/plugin-transform-async-generator-functions": "^7.22.3", + "@babel/plugin-transform-async-to-generator": "^7.20.7", + "@babel/plugin-transform-block-scoped-functions": "^7.18.6", + "@babel/plugin-transform-block-scoping": "^7.21.0", + "@babel/plugin-transform-class-properties": "^7.22.3", + "@babel/plugin-transform-class-static-block": "^7.22.3", + "@babel/plugin-transform-classes": "^7.21.0", + "@babel/plugin-transform-computed-properties": "^7.21.5", + "@babel/plugin-transform-destructuring": "^7.21.3", + "@babel/plugin-transform-dotall-regex": "^7.18.6", + "@babel/plugin-transform-duplicate-keys": "^7.18.9", + "@babel/plugin-transform-dynamic-import": "^7.22.1", + "@babel/plugin-transform-exponentiation-operator": "^7.18.6", + "@babel/plugin-transform-export-namespace-from": "^7.22.3", + "@babel/plugin-transform-for-of": "^7.21.5", + "@babel/plugin-transform-function-name": "^7.18.9", + "@babel/plugin-transform-json-strings": "^7.22.3", + "@babel/plugin-transform-literals": "^7.18.9", + "@babel/plugin-transform-logical-assignment-operators": "^7.22.3", + "@babel/plugin-transform-member-expression-literals": "^7.18.6", + "@babel/plugin-transform-modules-amd": "^7.20.11", + "@babel/plugin-transform-modules-commonjs": "^7.21.5", + "@babel/plugin-transform-modules-systemjs": "^7.22.3", + "@babel/plugin-transform-modules-umd": "^7.18.6", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.3", + "@babel/plugin-transform-new-target": "^7.22.3", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.3", + "@babel/plugin-transform-numeric-separator": "^7.22.3", + "@babel/plugin-transform-object-rest-spread": "^7.22.3", + "@babel/plugin-transform-object-super": "^7.18.6", + "@babel/plugin-transform-optional-catch-binding": "^7.22.3", + "@babel/plugin-transform-optional-chaining": "^7.22.3", + "@babel/plugin-transform-parameters": "^7.22.3", + "@babel/plugin-transform-private-methods": "^7.22.3", + "@babel/plugin-transform-private-property-in-object": "^7.22.3", + "@babel/plugin-transform-property-literals": "^7.18.6", + "@babel/plugin-transform-regenerator": "^7.21.5", + "@babel/plugin-transform-reserved-words": "^7.18.6", + "@babel/plugin-transform-shorthand-properties": "^7.18.6", + "@babel/plugin-transform-spread": "^7.20.7", + "@babel/plugin-transform-sticky-regex": "^7.18.6", + "@babel/plugin-transform-template-literals": "^7.18.9", + "@babel/plugin-transform-typeof-symbol": "^7.18.9", + "@babel/plugin-transform-unicode-escapes": "^7.21.5", + "@babel/plugin-transform-unicode-property-regex": "^7.22.3", + "@babel/plugin-transform-unicode-regex": "^7.18.6", + "@babel/plugin-transform-unicode-sets-regex": "^7.22.3", + "@babel/preset-modules": "^0.1.5", + "@babel/types": "^7.22.4", + "babel-plugin-polyfill-corejs2": "^0.4.3", + "babel-plugin-polyfill-corejs3": "^0.8.1", + "babel-plugin-polyfill-regenerator": "^0.5.0", + "core-js-compat": "^3.30.2", + "semver": "^6.3.0" + } + }, + "@babel/preset-modules": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", + "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", + "@babel/plugin-transform-dotall-regex": "^7.4.4", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + } + }, + "@babel/preset-react": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.22.3.tgz", + "integrity": "sha512-lxDz1mnZ9polqClBCVBjIVUypoB4qV3/tZUDb/IlYbW1kiiLaXaX+bInbRjl+lNQ/iUZraQ3+S8daEmoELMWug==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-validator-option": "^7.21.0", + "@babel/plugin-transform-react-display-name": "^7.18.6", + "@babel/plugin-transform-react-jsx": "^7.22.3", + "@babel/plugin-transform-react-jsx-development": "^7.18.6", + "@babel/plugin-transform-react-pure-annotations": "^7.18.6" + } + }, + "@babel/preset-typescript": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.21.5.tgz", + "integrity": "sha512-iqe3sETat5EOrORXiQ6rWfoOg2y68Cs75B9wNxdPW4kixJxh7aXQE1KPdWLDniC24T/6dSnguF33W9j/ZZQcmA==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-validator-option": "^7.21.0", + "@babel/plugin-syntax-jsx": "^7.21.4", + "@babel/plugin-transform-modules-commonjs": "^7.21.5", + "@babel/plugin-transform-typescript": "^7.21.3" + } + }, + "@babel/regjsgen": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", + "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==" + }, + "@babel/runtime": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.3.tgz", + "integrity": "sha512-XsDuspWKLUsxwCp6r7EhsExHtYfbe5oAGQ19kqngTdCPUoPQzOPdUbD/pB9PJiwb2ptYKQDjSJT3R6dC+EPqfQ==", + "requires": { + "regenerator-runtime": "^0.13.11" + } + }, + "@babel/runtime-corejs3": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.22.3.tgz", + "integrity": "sha512-6bdmknScYKmt8I9VjsJuKKGr+TwUb555FTf6tT1P/ANlCjTHCiYLhiQ4X/O7J731w5NOqu8c1aYHEVuOwPz7jA==", + "requires": { + "core-js-pure": "^3.30.2", + "regenerator-runtime": "^0.13.11" + } + }, + "@babel/template": { + "version": "7.21.9", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.21.9.tgz", + "integrity": "sha512-MK0X5k8NKOuWRamiEfc3KEJiHMTkGZNUjzMipqCGDDc6ijRl/B7RGSKVGncu4Ro/HdyzzY6cmoXuKI2Gffk7vQ==", + "requires": { + "@babel/code-frame": "^7.21.4", + "@babel/parser": "^7.21.9", + "@babel/types": "^7.21.5" + } + }, + "@babel/traverse": { + "version": "7.22.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.4.tgz", + "integrity": "sha512-Tn1pDsjIcI+JcLKq1AVlZEr4226gpuAQTsLMorsYg9tuS/kG7nuwwJ4AB8jfQuEgb/COBwR/DqJxmoiYFu5/rQ==", + "requires": { + "@babel/code-frame": "^7.21.4", + "@babel/generator": "^7.22.3", + "@babel/helper-environment-visitor": "^7.22.1", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/parser": "^7.22.4", + "@babel/types": "^7.22.4", + "debug": "^4.1.0", + "globals": "^11.1.0" + } + }, + "@babel/types": { + "version": "7.22.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.4.tgz", + "integrity": "sha512-Tx9x3UBHTTsMSW85WB2kphxYQVvrZ/t1FxD88IpSgIjiUJlCm9z+xWIDwyo1vffTwSqteqyznB8ZE9vYYk16zA==", + "requires": { + "@babel/helper-string-parser": "^7.21.5", + "@babel/helper-validator-identifier": "^7.19.1", + "to-fast-properties": "^2.0.0" + } + }, + "@colors/colors": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", + "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", + "optional": true + }, + "@csstools/selector-specificity": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-2.2.0.tgz", + "integrity": "sha512-+OJ9konv95ClSTOJCmMZqpd5+YGsB2S+x6w3E1oaM8UuR5j8nTNHYSz8c9BEPGDOCMQYIEEGlVPj/VY64iTbGw==", + "dev": true, + "requires": {} + }, + "@discoveryjs/json-ext": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", + "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==" + }, + "@docsearch/css": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docsearch/css/-/css-3.4.0.tgz", + "integrity": "sha512-Hg8Xfma+rFwRi6Y/pfei4FJoQ1hdVURmmNs/XPoMTCPAImU+d5yxj+M+qdLtNjWRpfWziU4dQcqY94xgFBn2dg==" + }, + "@docsearch/react": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docsearch/react/-/react-3.4.0.tgz", + "integrity": "sha512-ufrp5879XYGojgS30ZAp8H4qIMbahRHB9M85VDBP36Xgz5QjYM54i1URKj5e219F7gqTtOivfztFTij6itc0MQ==", + "requires": { + "@algolia/autocomplete-core": "1.8.2", + "@algolia/autocomplete-preset-algolia": "1.8.2", + "@docsearch/css": "3.4.0", + "algoliasearch": "^4.0.0" + } + }, + "@docusaurus/core": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/core/-/core-2.4.1.tgz", + "integrity": "sha512-SNsY7PshK3Ri7vtsLXVeAJGS50nJN3RgF836zkyUfAD01Fq+sAk5EwWgLw+nnm5KVNGDu7PRR2kRGDsWvqpo0g==", + "requires": { + "@babel/core": "^7.18.6", + "@babel/generator": "^7.18.7", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-transform-runtime": "^7.18.6", + "@babel/preset-env": "^7.18.6", + "@babel/preset-react": "^7.18.6", + "@babel/preset-typescript": "^7.18.6", + "@babel/runtime": "^7.18.6", + "@babel/runtime-corejs3": "^7.18.6", + "@babel/traverse": "^7.18.8", + "@docusaurus/cssnano-preset": "2.4.1", + "@docusaurus/logger": "2.4.1", + "@docusaurus/mdx-loader": "2.4.1", + "@docusaurus/react-loadable": "5.5.2", + "@docusaurus/utils": "2.4.1", + "@docusaurus/utils-common": "2.4.1", + "@docusaurus/utils-validation": "2.4.1", + "@slorber/static-site-generator-webpack-plugin": "^4.0.7", + "@svgr/webpack": "^6.2.1", + "autoprefixer": "^10.4.7", + "babel-loader": "^8.2.5", + "babel-plugin-dynamic-import-node": "^2.3.3", + "boxen": "^6.2.1", + "chalk": "^4.1.2", + "chokidar": "^3.5.3", + "clean-css": "^5.3.0", + "cli-table3": "^0.6.2", + "combine-promises": "^1.1.0", + "commander": "^5.1.0", + "copy-webpack-plugin": "^11.0.0", + "core-js": "^3.23.3", + "css-loader": "^6.7.1", + "css-minimizer-webpack-plugin": "^4.0.0", + "cssnano": "^5.1.12", + "del": "^6.1.1", + "detect-port": "^1.3.0", + "escape-html": "^1.0.3", + "eta": "^2.0.0", + "file-loader": "^6.2.0", + "fs-extra": "^10.1.0", + "html-minifier-terser": "^6.1.0", + "html-tags": "^3.2.0", + "html-webpack-plugin": "^5.5.0", + "import-fresh": "^3.3.0", + "leven": "^3.1.0", + "lodash": "^4.17.21", + "mini-css-extract-plugin": "^2.6.1", + "postcss": "^8.4.14", + "postcss-loader": "^7.0.0", + "prompts": "^2.4.2", + "react-dev-utils": "^12.0.1", + "react-helmet-async": "^1.3.0", + "react-loadable": "npm:@docusaurus/react-loadable@5.5.2", + "react-loadable-ssr-addon-v5-slorber": "^1.0.1", + "react-router": "^5.3.3", + "react-router-config": "^5.1.1", + "react-router-dom": "^5.3.3", + "rtl-detect": "^1.0.4", + "semver": "^7.3.7", + "serve-handler": "^6.1.3", + "shelljs": "^0.8.5", + "terser-webpack-plugin": "^5.3.3", + "tslib": "^2.4.0", + "update-notifier": "^5.1.0", + "url-loader": "^4.1.1", + "wait-on": "^6.0.1", + "webpack": "^5.73.0", + "webpack-bundle-analyzer": "^4.5.0", + "webpack-dev-server": "^4.9.3", + "webpack-merge": "^5.8.0", + "webpackbar": "^5.0.2" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } }, - "gzip-size": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", - "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", - "requires": { - "duplexer": "^0.1.2" - } + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } }, - "handle-thing": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", - "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==" - }, - "hard-rejection": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", - "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", - "dev": true - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "requires": { - "function-bind": "^1.1.1" - } + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } }, - "has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "dev": true + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==" - }, - "has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", - "requires": { - "get-intrinsic": "^1.1.1" - } - }, - "has-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==" - }, - "has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" - }, - "has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dev": true, - "requires": { - "has-symbols": "^1.0.2" - } - }, - "has-yarn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", - "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==" - }, - "hast-to-hyperscript": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/hast-to-hyperscript/-/hast-to-hyperscript-9.0.1.tgz", - "integrity": "sha512-zQgLKqF+O2F72S1aa4y2ivxzSlko3MAvxkwG8ehGmNiqd98BIN3JM1rAJPmplEyLmGLO2QZYJtIneOSZ2YbJuA==", - "requires": { - "@types/unist": "^2.0.3", - "comma-separated-tokens": "^1.0.0", - "property-information": "^5.3.0", - "space-separated-tokens": "^1.0.0", - "style-to-object": "^0.3.0", - "unist-util-is": "^4.0.0", - "web-namespaces": "^1.0.0" - } - }, - "hast-util-from-parse5": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-6.0.1.tgz", - "integrity": "sha512-jeJUWiN5pSxW12Rh01smtVkZgZr33wBokLzKLwinYOUfSzm1Nl/c3GUGebDyOKjdsRgMvoVbV0VpAcpjF4NrJA==", - "requires": { - "@types/parse5": "^5.0.0", - "hastscript": "^6.0.0", - "property-information": "^5.0.0", - "vfile": "^4.0.0", - "vfile-location": "^3.2.0", - "web-namespaces": "^1.0.0" - } - }, - "hast-util-parse-selector": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-2.2.5.tgz", - "integrity": "sha512-7j6mrk/qqkSehsM92wQjdIgWM2/BW61u/53G6xmC8i1OmEdKLHbk419QKQUjz6LglWsfqoiHmyMRkP1BGjecNQ==" - }, - "hast-util-raw": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-6.0.1.tgz", - "integrity": "sha512-ZMuiYA+UF7BXBtsTBNcLBF5HzXzkyE6MLzJnL605LKE8GJylNjGc4jjxazAHUtcwT5/CEt6afRKViYB4X66dig==", - "requires": { - "@types/hast": "^2.0.0", - "hast-util-from-parse5": "^6.0.0", - "hast-util-to-parse5": "^6.0.0", - "html-void-elements": "^1.0.0", - "parse5": "^6.0.0", - "unist-util-position": "^3.0.0", - "vfile": "^4.0.0", - "web-namespaces": "^1.0.0", - "xtend": "^4.0.0", - "zwitch": "^1.0.0" - }, - "dependencies": { - "parse5": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", - "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==" - } - } - }, - "hast-util-to-parse5": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/hast-util-to-parse5/-/hast-util-to-parse5-6.0.0.tgz", - "integrity": "sha512-Lu5m6Lgm/fWuz8eWnrKezHtVY83JeRGaNQ2kn9aJgqaxvVkFCZQBEhgodZUDUvoodgyROHDb3r5IxAEdl6suJQ==", - "requires": { - "hast-to-hyperscript": "^9.0.0", - "property-information": "^5.0.0", - "web-namespaces": "^1.0.0", - "xtend": "^4.0.0", - "zwitch": "^1.0.0" - } - }, - "hast-util-whitespace": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-2.0.1.tgz", - "integrity": "sha512-nAxA0v8+vXSBDt3AnRUNjyRIQ0rD+ntpbAp4LnPkumc5M9yUbSMa4XDU9Q6etY4f1Wp4bNgvc1yjiZtsTTrSng==" - }, - "hastscript": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-6.0.0.tgz", - "integrity": "sha512-nDM6bvd7lIqDUiYEiu5Sl/+6ReP0BMk/2f4U/Rooccxkj0P5nm+acM5PrGJ/t5I8qPGiqZSE6hVAwZEdZIvP4w==", - "requires": { - "@types/hast": "^2.0.0", - "comma-separated-tokens": "^1.0.0", - "hast-util-parse-selector": "^2.0.0", - "property-information": "^5.0.0", - "space-separated-tokens": "^1.0.0" - } - }, - "he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==" - }, - "history": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/history/-/history-4.10.1.tgz", - "integrity": "sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew==", - "requires": { - "@babel/runtime": "^7.1.2", - "loose-envify": "^1.2.0", - "resolve-pathname": "^3.0.0", - "tiny-invariant": "^1.0.2", - "tiny-warning": "^1.0.0", - "value-equal": "^1.0.1" - } - }, - "hoist-non-react-statics": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", - "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", - "requires": { - "react-is": "^16.7.0" - } - }, - "hosted-git-info": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", - "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } - } - }, - "hpack.js": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", - "integrity": "sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==", - "requires": { - "inherits": "^2.0.1", - "obuf": "^1.0.0", - "readable-stream": "^2.0.1", - "wbuf": "^1.1.0" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" - }, - "readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "html-entities": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.4.tgz", - "integrity": "sha512-TtiHkpRBqP40OzizVWjwBPBsiqchEZxAg/nys6D6lIpdoVLo7sWZ/5Sf/s4UaBHQ6pzUzEr3NiItvEoO46sPtQ==" - }, - "html-minifier-terser": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", - "integrity": "sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw==", - "requires": { - "camel-case": "^4.1.2", - "clean-css": "^5.2.2", - "commander": "^8.3.0", - "he": "^1.2.0", - "param-case": "^3.0.4", - "relateurl": "^0.2.7", - "terser": "^5.10.0" - }, - "dependencies": { - "commander": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", - "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==" - } - } - }, - "html-tags": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/html-tags/-/html-tags-3.3.1.tgz", - "integrity": "sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ==" - }, - "html-void-elements": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-1.0.5.tgz", - "integrity": "sha512-uE/TxKuyNIcx44cIWnjr/rfIATDH7ZaOMmstu0CwhFG1Dunhlp4OC6/NMbhiwoq5BpW0ubi303qnEk/PZj614w==" - }, - "html-webpack-plugin": { - "version": "5.5.1", - "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.5.1.tgz", - "integrity": "sha512-cTUzZ1+NqjGEKjmVgZKLMdiFg3m9MdRXkZW2OEe69WYVi5ONLMmlnSZdXzGGMOq0C8jGDrL6EWyEDDUioHO/pA==", - "requires": { - "@types/html-minifier-terser": "^6.0.0", - "html-minifier-terser": "^6.0.2", - "lodash": "^4.17.21", - "pretty-error": "^4.0.0", - "tapable": "^2.0.0" - } - }, - "htmlparser2": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz", - "integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==", - "requires": { - "domelementtype": "^2.3.0", - "domhandler": "^5.0.3", - "domutils": "^3.0.1", - "entities": "^4.4.0" - } - }, - "http-cache-semantics": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", - "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==" - }, - "http-deceiver": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", - "integrity": "sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==" - }, - "http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "requires": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - } - }, - "http-parser-js": { - "version": "0.5.8", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.8.tgz", - "integrity": "sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q==" - }, - "http-proxy": { - "version": "1.18.1", - "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", - "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", - "requires": { - "eventemitter3": "^4.0.0", - "follow-redirects": "^1.0.0", - "requires-port": "^1.0.0" - } - }, - "http-proxy-middleware": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", - "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", - "requires": { - "@types/http-proxy": "^1.17.8", - "http-proxy": "^1.18.1", - "is-glob": "^4.0.1", - "is-plain-obj": "^3.0.0", - "micromatch": "^4.0.2" - }, - "dependencies": { - "is-plain-obj": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", - "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==" - } - } - }, - "human-signals": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", - "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", - "dev": true - }, - "husky": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", - "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", - "dev": true - }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "icss-utils": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", - "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", - "requires": {} - }, - "ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==" - }, - "image-size": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/image-size/-/image-size-1.0.2.tgz", - "integrity": "sha512-xfOoWjceHntRb3qFCrh5ZFORYH8XCdYpASltMhZ/Q0KZiOwjdE/Yl2QCiWdwD+lygV5bMCvauzgu5PxBX/Yerg==", - "requires": { - "queue": "6.0.2" - } - }, - "immediate": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.3.0.tgz", - "integrity": "sha512-HR7EVodfFUdQCTIeySw+WDRFJlPcLOJbXfwwZ7Oom6tjsvZ3bOkCDJHehQC3nxJrv7+f9XecwazynjU8e4Vw3Q==" - }, - "immer": { - "version": "9.0.21", - "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", - "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==" - }, - "import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - } - }, - "import-lazy": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-4.0.0.tgz", - "integrity": "sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==", - "dev": true - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==" - }, - "indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==" - }, - "infima": { - "version": "0.2.0-alpha.43", - "resolved": "https://registry.npmjs.org/infima/-/infima-0.2.0-alpha.43.tgz", - "integrity": "sha512-2uw57LvUqW0rK/SWYnd/2rRfxNA5DDNOh33jxF7fy46VWoNhGxiUQyVZHbBMjQ33mQem0cjdDVwgWVAmlRfgyQ==" - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" - }, - "inline-style-parser": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.1.1.tgz", - "integrity": "sha512-7NXolsK4CAS5+xvdj5OMMbI962hU/wvwoxk+LWR9Ek9bVtyuuYScDN6eS0rUm6TxApFpw7CX1o4uJzcd4AyD3Q==" - }, - "internal-slot": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", - "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", - "dev": true, - "requires": { - "get-intrinsic": "^1.2.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" - } - }, - "interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==" - }, - "invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "requires": { - "loose-envify": "^1.0.0" - } - }, - "ipaddr.js": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.1.0.tgz", - "integrity": "sha512-LlbxQ7xKzfBusov6UMi4MFpEg0m+mAm9xyNGEduwXMEDuf4WfzB/RZwMVYEd7IKGvh4IUkEXYxtAVu9T3OelJQ==" - }, - "is-alphabetical": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-1.0.4.tgz", - "integrity": "sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==" - }, - "is-alphanumerical": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-1.0.4.tgz", - "integrity": "sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A==", - "requires": { - "is-alphabetical": "^1.0.0", - "is-decimal": "^1.0.0" - } - }, - "is-arguments": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-array-buffer": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", - "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "is-typed-array": "^1.1.10" - } - }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" - }, - "is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "requires": { - "has-bigints": "^1.0.1" - } - }, - "is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "requires": { - "binary-extensions": "^2.0.0" - } - }, - "is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-buffer": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", - "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==" - }, - "is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true - }, - "is-ci": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", - "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", - "requires": { - "ci-info": "^2.0.0" - }, - "dependencies": { - "ci-info": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", - "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==" - } - } - }, - "is-core-module": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", - "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", - "requires": { - "has": "^1.0.3" - } - }, - "is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-decimal": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-1.0.4.tgz", - "integrity": "sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==" - }, - "is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==" - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==" - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==" - }, - "is-fullwidth-code-point": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz", - "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==", - "dev": true - }, - "is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-hexadecimal": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz", - "integrity": "sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==" - }, - "is-installed-globally": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz", - "integrity": "sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==", - "requires": { - "global-dirs": "^3.0.0", - "is-path-inside": "^3.0.2" - } - }, - "is-map": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", - "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==", - "dev": true - }, - "is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "dev": true - }, - "is-npm": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-5.0.0.tgz", - "integrity": "sha512-WW/rQLOazUq+ST/bCAVBp/2oMERWLsR7OrKyt052dNDk4DHcDE0/7QSXITlmi+VBcV13DfIbysG3tZJm5RfdBA==" - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" - }, - "is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", - "integrity": "sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==" - }, - "is-path-cwd": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", - "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==" - }, - "is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==" - }, - "is-plain-obj": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", - "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", - "dev": true - }, - "is-plain-object": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", - "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", - "dev": true - }, - "is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-regexp": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz", - "integrity": "sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==" - }, - "is-root": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-root/-/is-root-2.1.0.tgz", - "integrity": "sha512-AGOriNp96vNBd3HtU+RzFEc75FfR5ymiYv8E553I71SCeXBiMsVDUtdio1OEFvrPyLIQ9tVR5RxXIFe5PUFjMg==" - }, - "is-set": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", - "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==", - "dev": true - }, - "is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2" - } - }, - "is-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", - "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", - "dev": true - }, - "is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dev": true, - "requires": { - "has-symbols": "^1.0.2" - } - }, - "is-typed-array": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", - "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", - "dev": true, - "requires": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0" - } - }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" - }, - "is-weakmap": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", - "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==", - "dev": true - }, - "is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2" - } - }, - "is-weakset": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", - "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - } - }, - "is-whitespace-character": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-whitespace-character/-/is-whitespace-character-1.0.4.tgz", - "integrity": "sha512-SDweEzfIZM0SJV0EUga669UTKlmL0Pq8Lno0QDQsPnvECB3IM2aP0gdx5TrU0A01MAPfViaZiI2V1QMZLaKK5w==" - }, - "is-word-character": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-word-character/-/is-word-character-1.0.4.tgz", - "integrity": "sha512-5SMO8RVennx3nZrqtKwCGyyetPE9VDba5ugvKLaD4KopPG5kR4mQ7tNt/r7feL5yt5h3lpuBbIUmCOG2eSzXHA==" - }, - "is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "requires": { - "is-docker": "^2.0.0" - } - }, - "is-yarn-global": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", - "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==" - }, - "isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==" - }, - "jest-util": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.5.0.tgz", - "integrity": "sha512-RYMgG/MTadOr5t8KdhejfvUU82MxsCu5MF6KuDUHl+NuwzUt+Sm6jJWxTJVrDR1j5M/gJVCPKQEpWXY+yIQ6lQ==", - "requires": { - "@jest/types": "^29.5.0", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-worker": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.5.0.tgz", - "integrity": "sha512-NcrQnevGoSp4b5kg+akIpthoAFHxPBcb5P6mYPY0fUNT+sSvmtu6jlkEle3anczUKIKEbMxFimk9oTP/tpIPgA==", - "requires": { - "@types/node": "*", - "jest-util": "^29.5.0", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jiti": { - "version": "1.18.2", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.18.2.tgz", - "integrity": "sha512-QAdOptna2NYiSSpv0O/BwoHBSmz4YhpzJHyi+fnMRTXFjp7B8i/YG5Z8IfusxB1ufjcD2Sre1F3R+nX3fvy7gg==" - }, - "joi": { - "version": "17.9.2", - "resolved": "https://registry.npmjs.org/joi/-/joi-17.9.2.tgz", - "integrity": "sha512-Itk/r+V4Dx0V3c7RLFdRh12IOjySm2/WGPMubBT92cQvRfYZhPM2W0hZlctjj72iES8jsRCwp7S/cRmWBnJ4nw==", - "requires": { - "@hapi/hoek": "^9.0.0", - "@hapi/topo": "^5.0.0", - "@sideway/address": "^4.1.3", - "@sideway/formula": "^3.0.1", - "@sideway/pinpoint": "^2.0.0" - } - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "requires": { - "argparse": "^2.0.1" - } - }, - "jsdoctypeparser": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/jsdoctypeparser/-/jsdoctypeparser-9.0.0.tgz", - "integrity": "sha512-jrTA2jJIL6/DAEILBEh2/w9QxCuwmvNXIry39Ay/HVfhE3o2yVV0U44blYkqdHA/OKloJEqvJy0xU+GSdE2SIw==", - "dev": true - }, - "jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==" - }, - "json-buffer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", - "integrity": "sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ==" - }, - "json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "devOptional": true - }, - "json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==" - }, - "jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "requires": { - "graceful-fs": "^4.1.6", - "universalify": "^2.0.0" - } - }, - "jsx-ast-utils": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", - "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", - "dev": true, - "requires": { - "array-includes": "^3.1.5", - "object.assign": "^4.1.3" - } - }, - "keyv": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", - "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", - "requires": { - "json-buffer": "3.0.0" - } - }, - "kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==" - }, - "klaw-sync": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz", - "integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==", - "requires": { - "graceful-fs": "^4.1.11" - } - }, - "kleur": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==" - }, - "klona": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.6.tgz", - "integrity": "sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==" - }, - "known-css-properties": { - "version": "0.26.0", - "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.26.0.tgz", - "integrity": "sha512-5FZRzrZzNTBruuurWpvZnvP9pum+fe0HcK8z/ooo+U+Hmp4vtbyp1/QDsqmufirXy4egGzbaH/y2uCZf+6W5Kg==", - "dev": true - }, - "language-subtag-registry": { - "version": "0.3.22", - "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", - "integrity": "sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==", - "dev": true - }, - "language-tags": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", - "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==", - "dev": true, - "requires": { - "language-subtag-registry": "~0.3.2" - } - }, - "latest-version": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", - "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", - "requires": { - "package-json": "^6.3.0" - } - }, - "launch-editor": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.6.0.tgz", - "integrity": "sha512-JpDCcQnyAAzZZaZ7vEiSqL690w7dAEyLao+KC96zBplnYbJS7TYNjvM3M7y3dGz+v7aIsJk3hllWuc0kWAjyRQ==", - "requires": { - "picocolors": "^1.0.0", - "shell-quote": "^1.7.3" - } - }, - "leven": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==" - }, - "levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "devOptional": true, - "requires": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - } - }, - "lilconfig": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", - "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==" - }, - "lines-and-columns": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" - }, - "lint-staged": { - "version": "13.2.2", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-13.2.2.tgz", - "integrity": "sha512-71gSwXKy649VrSU09s10uAT0rWCcY3aewhMaHyl2N84oBk4Xs9HgxvUp3AYu+bNsK4NrOYYxvSgg7FyGJ+jGcA==", - "dev": true, - "requires": { - "chalk": "5.2.0", - "cli-truncate": "^3.1.0", - "commander": "^10.0.0", - "debug": "^4.3.4", - "execa": "^7.0.0", - "lilconfig": "2.1.0", - "listr2": "^5.0.7", - "micromatch": "^4.0.5", - "normalize-path": "^3.0.0", - "object-inspect": "^1.12.3", - "pidtree": "^0.6.0", - "string-argv": "^0.3.1", - "yaml": "^2.2.2" - }, - "dependencies": { - "chalk": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.2.0.tgz", - "integrity": "sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA==", - "dev": true - }, - "commander": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", - "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", - "dev": true - }, - "yaml": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz", - "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==", - "dev": true - } - } - }, - "listr2": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/listr2/-/listr2-5.0.8.tgz", - "integrity": "sha512-mC73LitKHj9w6v30nLNGPetZIlfpUniNSsxxrbaPcWOjDb92SHPzJPi/t+v1YC/lxKz/AJ9egOjww0qUuFxBpA==", - "dev": true, - "requires": { - "cli-truncate": "^2.1.0", - "colorette": "^2.0.19", - "log-update": "^4.0.0", - "p-map": "^4.0.0", - "rfdc": "^1.3.0", - "rxjs": "^7.8.0", - "through": "^2.3.8", - "wrap-ansi": "^7.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "cli-truncate": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz", - "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==", - "dev": true, - "requires": { - "slice-ansi": "^3.0.0", - "string-width": "^4.2.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "slice-ansi": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz", - "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - } - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - } - } - } - }, - "load-script": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/load-script/-/load-script-1.0.0.tgz", - "integrity": "sha512-kPEjMFtZvwL9TaZo0uZ2ml+Ye9HUMmPwbYRJ324qF9tqMejwykJ5ggTyvzmrbBeapCAbk98BSbTeovHEEP1uCA==" - }, - "loader-runner": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", - "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==" - }, - "loader-utils": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", - "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", - "requires": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - } - }, - "locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "requires": { - "p-locate": "^5.0.0" - } - }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "lodash.curry": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.curry/-/lodash.curry-4.1.1.tgz", - "integrity": "sha512-/u14pXGviLaweY5JI0IUzgzF2J6Ne8INyzAZjImcryjgkZ+ebruBxy2/JaOOkTqScddcYtakjhSaeemV8lR0tA==" - }, - "lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" - }, - "lodash.flow": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/lodash.flow/-/lodash.flow-3.5.0.tgz", - "integrity": "sha512-ff3BX/tSioo+XojX4MOsOMhJw0nZoUEF011LX8g8d3gvjVbxd89cCio4BCXronjxcTUIJUoqKEUA+n4CqvvRPw==" - }, - "lodash.memoize": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==" - }, - "lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "devOptional": true - }, - "lodash.truncate": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", - "integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==", - "dev": true - }, - "lodash.uniq": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", - "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==" - }, - "log-update": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/log-update/-/log-update-4.0.0.tgz", - "integrity": "sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==", - "dev": true, - "requires": { - "ansi-escapes": "^4.3.0", - "cli-cursor": "^3.1.0", - "slice-ansi": "^4.0.0", - "wrap-ansi": "^6.2.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - } - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - } - } - } - }, - "longest-streak": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz", - "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==" - }, - "loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "requires": { - "js-tokens": "^3.0.0 || ^4.0.0" - } - }, - "lower-case": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", - "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", - "requires": { - "tslib": "^2.0.3" - } - }, - "lowercase-keys": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", - "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==" + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" }, "lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "requires": { - "yallist": "^3.0.2" - } - }, - "lunr": { - "version": "2.3.9", - "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz", - "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==" - }, - "lunr-languages": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/lunr-languages/-/lunr-languages-1.12.0.tgz", - "integrity": "sha512-C2z02jt74ymrDocBwxYB4Cr1LNZj9rHGLTH/00+JuoT6eJOSSuPBzeqQG8kjnlPUQe+/PAWv1/KHbDT+YYYRnA==" - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "requires": { - "semver": "^6.0.0" - } - }, - "map-obj": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", - "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", - "dev": true - }, - "mark.js": { - "version": "8.11.1", - "resolved": "https://registry.npmjs.org/mark.js/-/mark.js-8.11.1.tgz", - "integrity": "sha512-1I+1qpDt4idfgLQG+BNWmrqku+7/2bi5nLf4YwF8y8zXvmfiTBY3PV3ZibfrjBueCByROpuBjLLFCajqkgYoLQ==" - }, - "markdown-escapes": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/markdown-escapes/-/markdown-escapes-1.0.4.tgz", - "integrity": "sha512-8z4efJYk43E0upd0NbVXwgSTQs6cT3T06etieCMEg7dRbzCbxUCK/GHlX8mhHRDcp+OLlHkPKsvqQTCvsRl2cg==" - }, - "mathml-tag-names": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/mathml-tag-names/-/mathml-tag-names-2.1.3.tgz", - "integrity": "sha512-APMBEanjybaPzUrfqU0IMU5I0AswKMH7k8OTLs0vvV4KZpExkTkY87nR/zpbuTPj+gARop7aGUbl11pnDfW6xg==", - "dev": true - }, - "mdast-squeeze-paragraphs": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mdast-squeeze-paragraphs/-/mdast-squeeze-paragraphs-4.0.0.tgz", - "integrity": "sha512-zxdPn69hkQ1rm4J+2Cs2j6wDEv7O17TfXTJ33tl/+JPIoEmtV9t2ZzBM5LPHE8QlHsmVD8t3vPKCyY3oH+H8MQ==", - "requires": { - "unist-util-remove": "^2.0.0" - } - }, - "mdast-util-definitions": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-definitions/-/mdast-util-definitions-4.0.0.tgz", - "integrity": "sha512-k8AJ6aNnUkB7IE+5azR9h81O5EQ/cTDXtWdMq9Kk5KcEW/8ritU5CeLg/9HhOC++nALHBlaogJ5jz0Ybk3kPMQ==", - "requires": { - "unist-util-visit": "^2.0.0" - } - }, - "mdast-util-from-markdown": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-1.3.1.tgz", - "integrity": "sha512-4xTO/M8c82qBcnQc1tgpNtubGUW/Y1tBQ1B0i5CtSoelOLKFYlElIr3bvgREYYO5iRqbMY1YuqZng0GVOI8Qww==", - "requires": { - "@types/mdast": "^3.0.0", - "@types/unist": "^2.0.0", - "decode-named-character-reference": "^1.0.0", - "mdast-util-to-string": "^3.1.0", - "micromark": "^3.0.0", - "micromark-util-decode-numeric-character-reference": "^1.0.0", - "micromark-util-decode-string": "^1.0.0", - "micromark-util-normalize-identifier": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0", - "unist-util-stringify-position": "^3.0.0", - "uvu": "^0.5.0" - }, - "dependencies": { - "mdast-util-to-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz", - "integrity": "sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==", - "requires": { - "@types/mdast": "^3.0.0" - } - } - } + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "requires": { + "yallist": "^4.0.0" + } }, - "mdast-util-phrasing": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-3.0.1.tgz", - "integrity": "sha512-WmI1gTXUBJo4/ZmSk79Wcb2HcjPJBzM1nlI/OUWA8yk2X9ik3ffNbBGsU+09BFmXaL1IBb9fiuvq6/KMiNycSg==", - "requires": { - "@types/mdast": "^3.0.0", - "unist-util-is": "^5.0.0" - }, - "dependencies": { - "unist-util-is": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", - "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", - "requires": { - "@types/unist": "^2.0.0" - } - } - } + "semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "requires": { + "lru-cache": "^6.0.0" + } }, - "mdast-util-to-hast": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-10.0.1.tgz", - "integrity": "sha512-BW3LM9SEMnjf4HXXVApZMt8gLQWVNXc3jryK0nJu/rOXPOnlkUjmdkDlmxMirpbU9ILncGFIwLH/ubnWBbcdgA==", - "requires": { - "@types/mdast": "^3.0.0", - "@types/unist": "^2.0.0", - "mdast-util-definitions": "^4.0.0", - "mdurl": "^1.0.0", - "unist-builder": "^2.0.0", - "unist-util-generated": "^1.0.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - } + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } }, - "mdast-util-to-markdown": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-1.5.0.tgz", - "integrity": "sha512-bbv7TPv/WC49thZPg3jXuqzuvI45IL2EVAr/KxF0BSdHsU0ceFHOmwQn6evxAh1GaoK/6GQ1wp4R4oW2+LFL/A==", - "requires": { - "@types/mdast": "^3.0.0", - "@types/unist": "^2.0.0", - "longest-streak": "^3.0.0", - "mdast-util-phrasing": "^3.0.0", - "mdast-util-to-string": "^3.0.0", - "micromark-util-decode-string": "^1.0.0", - "unist-util-visit": "^4.0.0", - "zwitch": "^2.0.0" - }, - "dependencies": { - "mdast-util-to-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz", - "integrity": "sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==", - "requires": { - "@types/mdast": "^3.0.0" - } - }, - "unist-util-is": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", - "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", - "requires": { - "@types/unist": "^2.0.0" - } - }, - "unist-util-visit": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz", - "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==", - "requires": { - "@types/unist": "^2.0.0", - "unist-util-is": "^5.0.0", - "unist-util-visit-parents": "^5.1.1" - } - }, - "unist-util-visit-parents": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz", - "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==", - "requires": { - "@types/unist": "^2.0.0", - "unist-util-is": "^5.0.0" - } - }, - "zwitch": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", - "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==" - } - } + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + } + } + }, + "@docusaurus/cssnano-preset": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/cssnano-preset/-/cssnano-preset-2.4.1.tgz", + "integrity": "sha512-ka+vqXwtcW1NbXxWsh6yA1Ckii1klY9E53cJ4O9J09nkMBgrNX3iEFED1fWdv8wf4mJjvGi5RLZ2p9hJNjsLyQ==", + "requires": { + "cssnano-preset-advanced": "^5.3.8", + "postcss": "^8.4.14", + "postcss-sort-media-queries": "^4.2.1", + "tslib": "^2.4.0" + } + }, + "@docusaurus/eslint-plugin": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/eslint-plugin/-/eslint-plugin-2.4.1.tgz", + "integrity": "sha512-Sb+aLgf07v2xenPHlcBtvADFkE6xi1Nx9cKNb98Tq5MGoywHpxUfwT3RHar+eA8vCjR3fu0npSzuRt26AJa5lw==", + "dev": true, + "requires": { + "@typescript-eslint/utils": "^5.30.5", + "tslib": "^2.4.0" + } + }, + "@docusaurus/logger": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/logger/-/logger-2.4.1.tgz", + "integrity": "sha512-5h5ysIIWYIDHyTVd8BjheZmQZmEgWDR54aQ1BX9pjFfpyzFo5puKXKYrYJXbjEHGyVhEzmB9UXwbxGfaZhOjcg==", + "requires": { + "chalk": "^4.1.2", + "tslib": "^2.4.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } }, - "mdast-util-to-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-2.0.0.tgz", - "integrity": "sha512-AW4DRS3QbBayY/jJmD8437V1Gombjf8RSOUCMFBuo5iHi58AGEgVCKQ+ezHkZZDpAQS75hcBMpLqjpJTjtUL7w==" - }, - "mdn-data": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", - "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==" - }, - "mdurl": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", - "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==" - }, - "media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==" - }, - "memfs": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.5.2.tgz", - "integrity": "sha512-4kbWXbVZ+LU4XFDS2CuA7frnwz2HxCMB/0yOXc86q7aCQrfWKkL11t6al1e2CsVC7uhnBNTQ1TfUsAxVauO9IQ==", - "requires": { - "fs-monkey": "^1.0.3" - } + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } }, - "memoize-one": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-5.2.1.tgz", - "integrity": "sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==" - }, - "meow": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-9.0.0.tgz", - "integrity": "sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ==", - "dev": true, - "requires": { - "@types/minimist": "^1.2.0", - "camelcase-keys": "^6.2.2", - "decamelize": "^1.2.0", - "decamelize-keys": "^1.1.0", - "hard-rejection": "^2.1.0", - "minimist-options": "4.1.0", - "normalize-package-data": "^3.0.0", - "read-pkg-up": "^7.0.1", - "redent": "^3.0.0", - "trim-newlines": "^3.0.0", - "type-fest": "^0.18.0", - "yargs-parser": "^20.2.3" - }, - "dependencies": { - "type-fest": { - "version": "0.18.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", - "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==", - "dev": true - } - } + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } }, - "merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" - }, - "merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" - }, - "merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==" - }, - "methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==" - }, - "micromark": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/micromark/-/micromark-3.2.0.tgz", - "integrity": "sha512-uD66tJj54JLYq0De10AhWycZWGQNUvDI55xPgk2sQM5kn1JYlhbCMTtEeT27+vAhW2FBQxLlOmS3pmA7/2z4aA==", - "requires": { - "@types/debug": "^4.0.0", - "debug": "^4.0.0", - "decode-named-character-reference": "^1.0.0", - "micromark-core-commonmark": "^1.0.1", - "micromark-factory-space": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-chunked": "^1.0.0", - "micromark-util-combine-extensions": "^1.0.0", - "micromark-util-decode-numeric-character-reference": "^1.0.0", - "micromark-util-encode": "^1.0.0", - "micromark-util-normalize-identifier": "^1.0.0", - "micromark-util-resolve-all": "^1.0.0", - "micromark-util-sanitize-uri": "^1.0.0", - "micromark-util-subtokenize": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.1", - "uvu": "^0.5.0" - } + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, - "micromark-core-commonmark": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-1.1.0.tgz", - "integrity": "sha512-BgHO1aRbolh2hcrzL2d1La37V0Aoz73ymF8rAcKnohLy93titmv62E0gP8Hrx9PKcKrqCZ1BbLGbP3bEhoXYlw==", - "requires": { - "decode-named-character-reference": "^1.0.0", - "micromark-factory-destination": "^1.0.0", - "micromark-factory-label": "^1.0.0", - "micromark-factory-space": "^1.0.0", - "micromark-factory-title": "^1.0.0", - "micromark-factory-whitespace": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-chunked": "^1.0.0", - "micromark-util-classify-character": "^1.0.0", - "micromark-util-html-tag-name": "^1.0.0", - "micromark-util-normalize-identifier": "^1.0.0", - "micromark-util-resolve-all": "^1.0.0", - "micromark-util-subtokenize": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.1", - "uvu": "^0.5.0" - } + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" }, - "micromark-factory-destination": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-1.1.0.tgz", - "integrity": "sha512-XaNDROBgx9SgSChd69pjiGKbV+nfHGDPVYFs5dOoDd7ZnMAE+Cuu91BCpsY8RT2NP9vo/B8pds2VQNCLiu0zhg==", - "requires": { - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@docusaurus/mdx-loader": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/mdx-loader/-/mdx-loader-2.4.1.tgz", + "integrity": "sha512-4KhUhEavteIAmbBj7LVFnrVYDiU51H5YWW1zY6SmBSte/YLhDutztLTBE0PQl1Grux1jzUJeaSvAzHpTn6JJDQ==", + "requires": { + "@babel/parser": "^7.18.8", + "@babel/traverse": "^7.18.8", + "@docusaurus/logger": "2.4.1", + "@docusaurus/utils": "2.4.1", + "@mdx-js/mdx": "^1.6.22", + "escape-html": "^1.0.3", + "file-loader": "^6.2.0", + "fs-extra": "^10.1.0", + "image-size": "^1.0.1", + "mdast-util-to-string": "^2.0.0", + "remark-emoji": "^2.2.0", + "stringify-object": "^3.3.0", + "tslib": "^2.4.0", + "unified": "^9.2.2", + "unist-util-visit": "^2.0.3", + "url-loader": "^4.1.1", + "webpack": "^5.73.0" + } + }, + "@docusaurus/module-type-aliases": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/module-type-aliases/-/module-type-aliases-2.4.1.tgz", + "integrity": "sha512-gLBuIFM8Dp2XOCWffUDSjtxY7jQgKvYujt7Mx5s4FCTfoL5dN1EVbnrn+O2Wvh8b0a77D57qoIDY7ghgmatR1A==", + "requires": { + "@docusaurus/react-loadable": "5.5.2", + "@docusaurus/types": "2.4.1", + "@types/history": "^4.7.11", + "@types/react": "*", + "@types/react-router-config": "*", + "@types/react-router-dom": "*", + "react-helmet-async": "*", + "react-loadable": "npm:@docusaurus/react-loadable@5.5.2" + } + }, + "@docusaurus/plugin-content-blog": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-blog/-/plugin-content-blog-2.4.1.tgz", + "integrity": "sha512-E2i7Knz5YIbE1XELI6RlTnZnGgS52cUO4BlCiCUCvQHbR+s1xeIWz4C6BtaVnlug0Ccz7nFSksfwDpVlkujg5Q==", + "requires": { + "@docusaurus/core": "2.4.1", + "@docusaurus/logger": "2.4.1", + "@docusaurus/mdx-loader": "2.4.1", + "@docusaurus/types": "2.4.1", + "@docusaurus/utils": "2.4.1", + "@docusaurus/utils-common": "2.4.1", + "@docusaurus/utils-validation": "2.4.1", + "cheerio": "^1.0.0-rc.12", + "feed": "^4.2.2", + "fs-extra": "^10.1.0", + "lodash": "^4.17.21", + "reading-time": "^1.5.0", + "tslib": "^2.4.0", + "unist-util-visit": "^2.0.3", + "utility-types": "^3.10.0", + "webpack": "^5.73.0" + } + }, + "@docusaurus/plugin-content-docs": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-docs/-/plugin-content-docs-2.4.1.tgz", + "integrity": "sha512-Lo7lSIcpswa2Kv4HEeUcGYqaasMUQNpjTXpV0N8G6jXgZaQurqp7E8NGYeGbDXnb48czmHWbzDL4S3+BbK0VzA==", + "requires": { + "@docusaurus/core": "2.4.1", + "@docusaurus/logger": "2.4.1", + "@docusaurus/mdx-loader": "2.4.1", + "@docusaurus/module-type-aliases": "2.4.1", + "@docusaurus/types": "2.4.1", + "@docusaurus/utils": "2.4.1", + "@docusaurus/utils-validation": "2.4.1", + "@types/react-router-config": "^5.0.6", + "combine-promises": "^1.1.0", + "fs-extra": "^10.1.0", + "import-fresh": "^3.3.0", + "js-yaml": "^4.1.0", + "lodash": "^4.17.21", + "tslib": "^2.4.0", + "utility-types": "^3.10.0", + "webpack": "^5.73.0" + } + }, + "@docusaurus/plugin-content-pages": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-pages/-/plugin-content-pages-2.4.1.tgz", + "integrity": "sha512-/UjuH/76KLaUlL+o1OvyORynv6FURzjurSjvn2lbWTFc4tpYY2qLYTlKpTCBVPhlLUQsfyFnshEJDLmPneq2oA==", + "requires": { + "@docusaurus/core": "2.4.1", + "@docusaurus/mdx-loader": "2.4.1", + "@docusaurus/types": "2.4.1", + "@docusaurus/utils": "2.4.1", + "@docusaurus/utils-validation": "2.4.1", + "fs-extra": "^10.1.0", + "tslib": "^2.4.0", + "webpack": "^5.73.0" + } + }, + "@docusaurus/plugin-debug": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-debug/-/plugin-debug-2.4.1.tgz", + "integrity": "sha512-7Yu9UPzRShlrH/G8btOpR0e6INFZr0EegWplMjOqelIwAcx3PKyR8mgPTxGTxcqiYj6hxSCRN0D8R7YrzImwNA==", + "requires": { + "@docusaurus/core": "2.4.1", + "@docusaurus/types": "2.4.1", + "@docusaurus/utils": "2.4.1", + "fs-extra": "^10.1.0", + "react-json-view": "^1.21.3", + "tslib": "^2.4.0" + } + }, + "@docusaurus/plugin-google-analytics": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-google-analytics/-/plugin-google-analytics-2.4.1.tgz", + "integrity": "sha512-dyZJdJiCoL+rcfnm0RPkLt/o732HvLiEwmtoNzOoz9MSZz117UH2J6U2vUDtzUzwtFLIf32KkeyzisbwUCgcaQ==", + "requires": { + "@docusaurus/core": "2.4.1", + "@docusaurus/types": "2.4.1", + "@docusaurus/utils-validation": "2.4.1", + "tslib": "^2.4.0" + } + }, + "@docusaurus/plugin-google-gtag": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-google-gtag/-/plugin-google-gtag-2.4.1.tgz", + "integrity": "sha512-mKIefK+2kGTQBYvloNEKtDmnRD7bxHLsBcxgnbt4oZwzi2nxCGjPX6+9SQO2KCN5HZbNrYmGo5GJfMgoRvy6uA==", + "requires": { + "@docusaurus/core": "2.4.1", + "@docusaurus/types": "2.4.1", + "@docusaurus/utils-validation": "2.4.1", + "tslib": "^2.4.0" + } + }, + "@docusaurus/plugin-google-tag-manager": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-google-tag-manager/-/plugin-google-tag-manager-2.4.1.tgz", + "integrity": "sha512-Zg4Ii9CMOLfpeV2nG74lVTWNtisFaH9QNtEw48R5QE1KIwDBdTVaiSA18G1EujZjrzJJzXN79VhINSbOJO/r3g==", + "requires": { + "@docusaurus/core": "2.4.1", + "@docusaurus/types": "2.4.1", + "@docusaurus/utils-validation": "2.4.1", + "tslib": "^2.4.0" + } + }, + "@docusaurus/plugin-sitemap": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-sitemap/-/plugin-sitemap-2.4.1.tgz", + "integrity": "sha512-lZx+ijt/+atQ3FVE8FOHV/+X3kuok688OydDXrqKRJyXBJZKgGjA2Qa8RjQ4f27V2woaXhtnyrdPop/+OjVMRg==", + "requires": { + "@docusaurus/core": "2.4.1", + "@docusaurus/logger": "2.4.1", + "@docusaurus/types": "2.4.1", + "@docusaurus/utils": "2.4.1", + "@docusaurus/utils-common": "2.4.1", + "@docusaurus/utils-validation": "2.4.1", + "fs-extra": "^10.1.0", + "sitemap": "^7.1.1", + "tslib": "^2.4.0" + } + }, + "@docusaurus/preset-classic": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/preset-classic/-/preset-classic-2.4.1.tgz", + "integrity": "sha512-P4//+I4zDqQJ+UDgoFrjIFaQ1MeS9UD1cvxVQaI6O7iBmiHQm0MGROP1TbE7HlxlDPXFJjZUK3x3cAoK63smGQ==", + "requires": { + "@docusaurus/core": "2.4.1", + "@docusaurus/plugin-content-blog": "2.4.1", + "@docusaurus/plugin-content-docs": "2.4.1", + "@docusaurus/plugin-content-pages": "2.4.1", + "@docusaurus/plugin-debug": "2.4.1", + "@docusaurus/plugin-google-analytics": "2.4.1", + "@docusaurus/plugin-google-gtag": "2.4.1", + "@docusaurus/plugin-google-tag-manager": "2.4.1", + "@docusaurus/plugin-sitemap": "2.4.1", + "@docusaurus/theme-classic": "2.4.1", + "@docusaurus/theme-common": "2.4.1", + "@docusaurus/theme-search-algolia": "2.4.1", + "@docusaurus/types": "2.4.1" + } + }, + "@docusaurus/react-loadable": { + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz", + "integrity": "sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ==", + "requires": { + "@types/react": "*", + "prop-types": "^15.6.2" + } + }, + "@docusaurus/theme-classic": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/theme-classic/-/theme-classic-2.4.1.tgz", + "integrity": "sha512-Rz0wKUa+LTW1PLXmwnf8mn85EBzaGSt6qamqtmnh9Hflkc+EqiYMhtUJeLdV+wsgYq4aG0ANc+bpUDpsUhdnwg==", + "requires": { + "@docusaurus/core": "2.4.1", + "@docusaurus/mdx-loader": "2.4.1", + "@docusaurus/module-type-aliases": "2.4.1", + "@docusaurus/plugin-content-blog": "2.4.1", + "@docusaurus/plugin-content-docs": "2.4.1", + "@docusaurus/plugin-content-pages": "2.4.1", + "@docusaurus/theme-common": "2.4.1", + "@docusaurus/theme-translations": "2.4.1", + "@docusaurus/types": "2.4.1", + "@docusaurus/utils": "2.4.1", + "@docusaurus/utils-common": "2.4.1", + "@docusaurus/utils-validation": "2.4.1", + "@mdx-js/react": "^1.6.22", + "clsx": "^1.2.1", + "copy-text-to-clipboard": "^3.0.1", + "infima": "0.2.0-alpha.43", + "lodash": "^4.17.21", + "nprogress": "^0.2.0", + "postcss": "^8.4.14", + "prism-react-renderer": "^1.3.5", + "prismjs": "^1.28.0", + "react-router-dom": "^5.3.3", + "rtlcss": "^3.5.0", + "tslib": "^2.4.0", + "utility-types": "^3.10.0" + } + }, + "@docusaurus/theme-common": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/theme-common/-/theme-common-2.4.1.tgz", + "integrity": "sha512-G7Zau1W5rQTaFFB3x3soQoZpkgMbl/SYNG8PfMFIjKa3M3q8n0m/GRf5/H/e5BqOvt8c+ZWIXGCiz+kUCSHovA==", + "requires": { + "@docusaurus/mdx-loader": "2.4.1", + "@docusaurus/module-type-aliases": "2.4.1", + "@docusaurus/plugin-content-blog": "2.4.1", + "@docusaurus/plugin-content-docs": "2.4.1", + "@docusaurus/plugin-content-pages": "2.4.1", + "@docusaurus/utils": "2.4.1", + "@docusaurus/utils-common": "2.4.1", + "@types/history": "^4.7.11", + "@types/react": "*", + "@types/react-router-config": "*", + "clsx": "^1.2.1", + "parse-numeric-range": "^1.3.0", + "prism-react-renderer": "^1.3.5", + "tslib": "^2.4.0", + "use-sync-external-store": "^1.2.0", + "utility-types": "^3.10.0" + } + }, + "@docusaurus/theme-search-algolia": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/theme-search-algolia/-/theme-search-algolia-2.4.1.tgz", + "integrity": "sha512-6BcqW2lnLhZCXuMAvPRezFs1DpmEKzXFKlYjruuas+Xy3AQeFzDJKTJFIm49N77WFCTyxff8d3E4Q9pi/+5McQ==", + "requires": { + "@docsearch/react": "^3.1.1", + "@docusaurus/core": "2.4.1", + "@docusaurus/logger": "2.4.1", + "@docusaurus/plugin-content-docs": "2.4.1", + "@docusaurus/theme-common": "2.4.1", + "@docusaurus/theme-translations": "2.4.1", + "@docusaurus/utils": "2.4.1", + "@docusaurus/utils-validation": "2.4.1", + "algoliasearch": "^4.13.1", + "algoliasearch-helper": "^3.10.0", + "clsx": "^1.2.1", + "eta": "^2.0.0", + "fs-extra": "^10.1.0", + "lodash": "^4.17.21", + "tslib": "^2.4.0", + "utility-types": "^3.10.0" + } + }, + "@docusaurus/theme-translations": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/theme-translations/-/theme-translations-2.4.1.tgz", + "integrity": "sha512-T1RAGP+f86CA1kfE8ejZ3T3pUU3XcyvrGMfC/zxCtc2BsnoexuNI9Vk2CmuKCb+Tacvhxjv5unhxXce0+NKyvA==", + "requires": { + "fs-extra": "^10.1.0", + "tslib": "^2.4.0" + } + }, + "@docusaurus/types": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/types/-/types-2.4.1.tgz", + "integrity": "sha512-0R+cbhpMkhbRXX138UOc/2XZFF8hiZa6ooZAEEJFp5scytzCw4tC1gChMFXrpa3d2tYE6AX8IrOEpSonLmfQuQ==", + "requires": { + "@types/history": "^4.7.11", + "@types/react": "*", + "commander": "^5.1.0", + "joi": "^17.6.0", + "react-helmet-async": "^1.3.0", + "utility-types": "^3.10.0", + "webpack": "^5.73.0", + "webpack-merge": "^5.8.0" + } + }, + "@docusaurus/utils": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/utils/-/utils-2.4.1.tgz", + "integrity": "sha512-1lvEZdAQhKNht9aPXPoh69eeKnV0/62ROhQeFKKxmzd0zkcuE/Oc5Gpnt00y/f5bIsmOsYMY7Pqfm/5rteT5GA==", + "requires": { + "@docusaurus/logger": "2.4.1", + "@svgr/webpack": "^6.2.1", + "escape-string-regexp": "^4.0.0", + "file-loader": "^6.2.0", + "fs-extra": "^10.1.0", + "github-slugger": "^1.4.0", + "globby": "^11.1.0", + "gray-matter": "^4.0.3", + "js-yaml": "^4.1.0", + "lodash": "^4.17.21", + "micromatch": "^4.0.5", + "resolve-pathname": "^3.0.0", + "shelljs": "^0.8.5", + "tslib": "^2.4.0", + "url-loader": "^4.1.1", + "webpack": "^5.73.0" + } + }, + "@docusaurus/utils-common": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/utils-common/-/utils-common-2.4.1.tgz", + "integrity": "sha512-bCVGdZU+z/qVcIiEQdyx0K13OC5mYwxhSuDUR95oFbKVuXYRrTVrwZIqQljuo1fyJvFTKHiL9L9skQOPokuFNQ==", + "requires": { + "tslib": "^2.4.0" + } + }, + "@docusaurus/utils-validation": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@docusaurus/utils-validation/-/utils-validation-2.4.1.tgz", + "integrity": "sha512-unII3hlJlDwZ3w8U+pMO3Lx3RhI4YEbY3YNsQj4yzrkZzlpqZOLuAiZK2JyULnD+TKbceKU0WyWkQXtYbLNDFA==", + "requires": { + "@docusaurus/logger": "2.4.1", + "@docusaurus/utils": "2.4.1", + "joi": "^17.6.0", + "js-yaml": "^4.1.0", + "tslib": "^2.4.0" + } + }, + "@easyops-cn/autocomplete.js": { + "version": "0.38.1", + "resolved": "https://registry.npmjs.org/@easyops-cn/autocomplete.js/-/autocomplete.js-0.38.1.tgz", + "integrity": "sha512-drg76jS6syilOUmVNkyo1c7ZEBPcPuK+aJA7AksM5ZIIbV57DMHCywiCr+uHyv8BE5jUTU98j/H7gVrkHrWW3Q==", + "requires": { + "cssesc": "^3.0.0", + "immediate": "^3.2.3" + } + }, + "@easyops-cn/docusaurus-search-local": { + "version": "0.35.0", + "resolved": "https://registry.npmjs.org/@easyops-cn/docusaurus-search-local/-/docusaurus-search-local-0.35.0.tgz", + "integrity": "sha512-sHQ8jxsVgHH8MNXJlj20nZZfP/Q0peNTAJwKCN2aPuBwfRIoO0i7LmZFaYKenZmVAW/BD2MtfVd65SREmm3zxg==", + "requires": { + "@docusaurus/plugin-content-docs": "^2.0.0-rc.1", + "@docusaurus/theme-translations": "^2.0.0-rc.1", + "@docusaurus/utils": "^2.0.0-rc.1", + "@docusaurus/utils-common": "^2.0.0-rc.1", + "@docusaurus/utils-validation": "^2.0.0-rc.1", + "@easyops-cn/autocomplete.js": "^0.38.1", + "@node-rs/jieba": "^1.6.0", + "cheerio": "^1.0.0-rc.3", + "clsx": "^1.1.1", + "debug": "^4.2.0", + "fs-extra": "^10.0.0", + "klaw-sync": "^6.0.0", + "lunr": "^2.3.9", + "lunr-languages": "^1.4.0", + "mark.js": "^8.11.1", + "tslib": "^2.4.0" + } + }, + "@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "devOptional": true, + "requires": { + "eslint-visitor-keys": "^3.3.0" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "devOptional": true + } + } + }, + "@eslint-community/regexpp": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", + "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", + "devOptional": true + }, + "@eslint/eslintrc": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz", + "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==", + "devOptional": true, + "requires": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.5.2", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "dependencies": { + "globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "devOptional": true, + "requires": { + "type-fest": "^0.20.2" + } }, - "micromark-factory-label": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-1.1.0.tgz", - "integrity": "sha512-OLtyez4vZo/1NjxGhcpDSbHQ+m0IIGnT8BoPamh+7jVlzLJBH98zzuCoUeMxvM6WsNeh8wx8cKvqLiPHEACn0w==", - "requires": { - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0", - "uvu": "^0.5.0" - } + "type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "devOptional": true + } + } + }, + "@eslint/js": { + "version": "8.42.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.42.0.tgz", + "integrity": "sha512-6SWlXpWU5AvId8Ac7zjzmIOqMOba/JWY8XZ4A7q7Gn1Vlfg/SFFIlrtHXt9nPn4op9ZPAkl91Jao+QQv3r/ukw==", + "devOptional": true + }, + "@hapi/hoek": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", + "integrity": "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==" + }, + "@hapi/topo": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz", + "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==", + "requires": { + "@hapi/hoek": "^9.0.0" + } + }, + "@humanwhocodes/config-array": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz", + "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==", + "devOptional": true, + "requires": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + } + }, + "@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "devOptional": true + }, + "@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "devOptional": true + }, + "@jest/schemas": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.4.3.tgz", + "integrity": "sha512-VLYKXQmtmuEz6IxJsrZwzG9NvtkQsWNnWMsKxqWNu3+CnfzJQhp0WDDKWLVV9hLKr0l3SLLFRqcYHjhtyuDVxg==", + "requires": { + "@sinclair/typebox": "^0.25.16" + } + }, + "@jest/types": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.5.0.tgz", + "integrity": "sha512-qbu7kN6czmVRc3xWFQcAN03RAUamgppVUdXrvl1Wr3jlNF93o9mJbGcDWrwGB6ht44u7efB1qCFgVQmca24Uog==", + "requires": { + "@jest/schemas": "^29.4.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } }, - "micromark-factory-space": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-1.1.0.tgz", - "integrity": "sha512-cRzEj7c0OL4Mw2v6nwzttyOZe8XY/Z8G0rzmWQZTBi/jjwyw/U4uqKtUORXQrR5bAZZnbTI/feRV/R7hc4jQYQ==", - "requires": { - "micromark-util-character": "^1.0.0", - "micromark-util-types": "^1.0.0" - } + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } }, - "micromark-factory-title": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-1.1.0.tgz", - "integrity": "sha512-J7n9R3vMmgjDOCY8NPw55jiyaQnH5kBdV2/UXCtZIpnHH3P6nHUKaH7XXEYuWwx/xUJcawa8plLBEjMPU24HzQ==", - "requires": { - "micromark-factory-space": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } }, - "micromark-factory-whitespace": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-1.1.0.tgz", - "integrity": "sha512-v2WlmiymVSp5oMg+1Q0N1Lxmt6pMhIHD457whWM7/GUlEks1hI9xj5w3zbc4uuMKXGisksZk8DzP2UyGbGqNsQ==", - "requires": { - "micromark-factory-space": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, - "micromark-util-character": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz", - "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==", - "requires": { - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" }, - "micromark-util-chunked": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-1.1.0.tgz", - "integrity": "sha512-Ye01HXpkZPNcV6FiyoW2fGZDUw4Yc7vT0E9Sad83+bEDiCJ1uXu0S3mr8WLpsz3HaG3x2q0HM6CTuPdcZcluFQ==", - "requires": { - "micromark-util-symbol": "^1.0.0" - } + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==" + }, + "@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==" + }, + "@jridgewell/source-map": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz", + "integrity": "sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==", + "requires": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" + }, + "@jridgewell/trace-mapping": { + "version": "0.3.18", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", + "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", + "requires": { + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + }, + "dependencies": { + "@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" + } + } + }, + "@leichtgewicht/ip-codec": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz", + "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==" + }, + "@mdx-js/mdx": { + "version": "1.6.22", + "resolved": "https://registry.npmjs.org/@mdx-js/mdx/-/mdx-1.6.22.tgz", + "integrity": "sha512-AMxuLxPz2j5/6TpF/XSdKpQP1NlG0z11dFOlq+2IP/lSgl11GY8ji6S/rgsViN/L0BDvHvUMruRb7ub+24LUYA==", + "requires": { + "@babel/core": "7.12.9", + "@babel/plugin-syntax-jsx": "7.12.1", + "@babel/plugin-syntax-object-rest-spread": "7.8.3", + "@mdx-js/util": "1.6.22", + "babel-plugin-apply-mdx-type-prop": "1.6.22", + "babel-plugin-extract-import-names": "1.6.22", + "camelcase-css": "2.0.1", + "detab": "2.0.4", + "hast-util-raw": "6.0.1", + "lodash.uniq": "4.5.0", + "mdast-util-to-hast": "10.0.1", + "remark-footnotes": "2.0.0", + "remark-mdx": "1.6.22", + "remark-parse": "8.0.3", + "remark-squeeze-paragraphs": "4.0.0", + "style-to-object": "0.3.0", + "unified": "9.2.0", + "unist-builder": "2.0.3", + "unist-util-visit": "2.0.3" + }, + "dependencies": { + "@babel/core": { + "version": "7.12.9", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.9.tgz", + "integrity": "sha512-gTXYh3M5wb7FRXQy+FErKFAv90BnlOuNn1QkCK2lREoPAjrQCO49+HVSrFoe5uakFAF5eenS75KbO2vQiLrTMQ==", + "requires": { + "@babel/code-frame": "^7.10.4", + "@babel/generator": "^7.12.5", + "@babel/helper-module-transforms": "^7.12.1", + "@babel/helpers": "^7.12.5", + "@babel/parser": "^7.12.7", + "@babel/template": "^7.12.7", + "@babel/traverse": "^7.12.9", + "@babel/types": "^7.12.7", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.1", + "json5": "^2.1.2", + "lodash": "^4.17.19", + "resolve": "^1.3.2", + "semver": "^5.4.1", + "source-map": "^0.5.0" + } }, - "micromark-util-classify-character": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-1.1.0.tgz", - "integrity": "sha512-SL0wLxtKSnklKSUplok1WQFoGhUdWYKggKUiqhX+Swala+BtptGCu5iPRc+xvzJ4PXE/hwM3FNXsfEVgoZsWbw==", - "requires": { - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } + "@babel/plugin-syntax-jsx": { + "version": "7.12.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.12.1.tgz", + "integrity": "sha512-1yRi7yAtB0ETgxdY9ti/p2TivUxJkTdhu/ZbF9MshVGqOx1TdB3b7xCXs49Fupgg50N45KcAsRP/ZqWjs9SRjg==", + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } }, - "micromark-util-combine-extensions": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-1.1.0.tgz", - "integrity": "sha512-Q20sp4mfNf9yEqDL50WwuWZHUrCO4fEyeDCnMGmG5Pr0Cz15Uo7KBs6jq+dq0EgX4DPwwrh9m0X+zPV1ypFvUA==", - "requires": { - "micromark-util-chunked": "^1.0.0", - "micromark-util-types": "^1.0.0" - } + "is-plain-obj": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", + "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==" }, - "micromark-util-decode-numeric-character-reference": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-1.1.0.tgz", - "integrity": "sha512-m9V0ExGv0jB1OT21mrWcuf4QhP46pH1KkfWy9ZEezqHKAxkj4mPCy3nIH1rkbdMlChLHX531eOrymlwyZIf2iw==", - "requires": { - "micromark-util-symbol": "^1.0.0" - } + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, - "micromark-util-decode-string": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-1.1.0.tgz", - "integrity": "sha512-YphLGCK8gM1tG1bd54azwyrQRjCFcmgj2S2GoJDNnh4vYtnL38JS8M4gpxzOPNyHdNEpheyWXCTnnTDY3N+NVQ==", - "requires": { - "decode-named-character-reference": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-decode-numeric-character-reference": "^1.0.0", - "micromark-util-symbol": "^1.0.0" - } + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==" }, - "micromark-util-encode": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-1.1.0.tgz", - "integrity": "sha512-EuEzTWSTAj9PA5GOAs992GzNh2dGQO52UvAbtSOMvXTxv3Criqb6IOzJUBCmEqrrXSblJIJBbFFv6zPxpreiJw==" - }, - "micromark-util-html-tag-name": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-1.2.0.tgz", - "integrity": "sha512-VTQzcuQgFUD7yYztuQFKXT49KghjtETQ+Wv/zUjGSGBioZnkA4P1XXZPT1FHeJA6RwRXSF47yvJ1tsJdoxwO+Q==" - }, - "micromark-util-normalize-identifier": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-1.1.0.tgz", - "integrity": "sha512-N+w5vhqrBihhjdpM8+5Xsxy71QWqGn7HYNUvch71iV2PM7+E3uWGox1Qp90loa1ephtCxG2ftRV/Conitc6P2Q==", - "requires": { - "micromark-util-symbol": "^1.0.0" - } + "unified": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/unified/-/unified-9.2.0.tgz", + "integrity": "sha512-vx2Z0vY+a3YoTj8+pttM3tiJHCwY5UFbYdiWrwBEbHmK8pvsPj2rtAX2BFfgXen8T39CJWblWRDT4L5WGXtDdg==", + "requires": { + "bail": "^1.0.0", + "extend": "^3.0.0", + "is-buffer": "^2.0.0", + "is-plain-obj": "^2.0.0", + "trough": "^1.0.0", + "vfile": "^4.0.0" + } + } + } + }, + "@mdx-js/react": { + "version": "1.6.22", + "resolved": "https://registry.npmjs.org/@mdx-js/react/-/react-1.6.22.tgz", + "integrity": "sha512-TDoPum4SHdfPiGSAaRBw7ECyI8VaHpK8GJugbJIJuqyh6kzw9ZLJZW3HGL3NNrJGxcAixUvqROm+YuQOo5eXtg==", + "requires": {} + }, + "@mdx-js/util": { + "version": "1.6.22", + "resolved": "https://registry.npmjs.org/@mdx-js/util/-/util-1.6.22.tgz", + "integrity": "sha512-H1rQc1ZOHANWBvPcW+JpGwr+juXSxM8Q8YCkm3GhZd8REu1fHR3z99CErO1p9pkcfcxZnMdIZdIsXkOHY0NilA==" + }, + "@nicolo-ribaudo/eslint-scope-5-internals": { + "version": "5.1.1-v1", + "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz", + "integrity": "sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==", + "dev": true, + "requires": { + "eslint-scope": "5.1.1" + } + }, + "@node-rs/jieba": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba/-/jieba-1.7.0.tgz", + "integrity": "sha512-Hm1JIlejxkWe1FSFZRns/g1j5hZmp357n+0n2BluABA4KLZ8EraHfPmPRmVMW6vbdMZObTYIVu5aVrPnUfBOxg==", + "requires": { + "@node-rs/jieba-android-arm-eabi": "1.7.0", + "@node-rs/jieba-android-arm64": "1.7.0", + "@node-rs/jieba-darwin-arm64": "1.7.0", + "@node-rs/jieba-darwin-x64": "1.7.0", + "@node-rs/jieba-freebsd-x64": "1.7.0", + "@node-rs/jieba-linux-arm-gnueabihf": "1.7.0", + "@node-rs/jieba-linux-arm64-gnu": "1.7.0", + "@node-rs/jieba-linux-arm64-musl": "1.7.0", + "@node-rs/jieba-linux-x64-gnu": "1.7.0", + "@node-rs/jieba-linux-x64-musl": "1.7.0", + "@node-rs/jieba-win32-arm64-msvc": "1.7.0", + "@node-rs/jieba-win32-ia32-msvc": "1.7.0", + "@node-rs/jieba-win32-x64-msvc": "1.7.0" + } + }, + "@node-rs/jieba-android-arm-eabi": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-android-arm-eabi/-/jieba-android-arm-eabi-1.7.0.tgz", + "integrity": "sha512-XF4OYcZCyDiBK+jm1Zmt2o+xEO7K2K5OvUC3MTc9jd3Lwvy3EdHp8tpGvEp8PxfVFe2/JxNzX4OQQQP3Dhmk9A==", + "optional": true + }, + "@node-rs/jieba-android-arm64": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-android-arm64/-/jieba-android-arm64-1.7.0.tgz", + "integrity": "sha512-9oWwFVr/37T89WC+jjiI9A6u0zUJNTJl5ZC4CMxX45MVMokWI7bBXU7t7qBmMdFBzj+OFwDd3sm1fh4vl7NSWA==", + "optional": true + }, + "@node-rs/jieba-darwin-arm64": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-darwin-arm64/-/jieba-darwin-arm64-1.7.0.tgz", + "integrity": "sha512-9gBuxJCNITNI/gU5l8eeVGQ9MAf0BV86lfeo9TeU61vJCy6sqyx26wFMLODQgLNdiMP+q/fZme/G0hfZUjfPVA==", + "optional": true + }, + "@node-rs/jieba-darwin-x64": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-darwin-x64/-/jieba-darwin-x64-1.7.0.tgz", + "integrity": "sha512-FFUSMY4tl0Prpxa1SHy7Yzze2KfV/bZzccpO5nd+a8zCKbiX6gVkJ89FfxSAD2QrXUGkZvJYiPmu5nkZItqRZQ==", + "optional": true + }, + "@node-rs/jieba-freebsd-x64": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-freebsd-x64/-/jieba-freebsd-x64-1.7.0.tgz", + "integrity": "sha512-QFz2pz0Br+621QbKkgQPqTn90j1kcCD9jaI++qTLNHJGlWLRn6sFoAjb+jQEQEy9aE7VqfIV56eaVcCoU5VO2w==", + "optional": true + }, + "@node-rs/jieba-linux-arm-gnueabihf": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-arm-gnueabihf/-/jieba-linux-arm-gnueabihf-1.7.0.tgz", + "integrity": "sha512-kHJxO2sd7gMKqI1YS5DjABEcRwRemaCtgbKSuUqEaHGmUz9nAaUF6FSY8U4rXwr7HXt+kQa4NgyYDjgz+Pscrw==", + "optional": true + }, + "@node-rs/jieba-linux-arm64-gnu": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-arm64-gnu/-/jieba-linux-arm64-gnu-1.7.0.tgz", + "integrity": "sha512-3qoCV9pF6llPBGDMu7K8JdHjI10WPkrq6P2gpZESqekcE4DatV6DcU9FWR+QL7MK/7meoE3/Zhjm7OK+qBd8gg==", + "optional": true + }, + "@node-rs/jieba-linux-arm64-musl": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-arm64-musl/-/jieba-linux-arm64-musl-1.7.0.tgz", + "integrity": "sha512-xv6hvzOV7iTCq7mM8SWhC3zEk6CqmBwhOSlfbb3gvPkc4U1UA1hmvcrD7oO5Qn+U+nuswysGCdVU6Z5AypLDfg==", + "optional": true + }, + "@node-rs/jieba-linux-x64-gnu": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-x64-gnu/-/jieba-linux-x64-gnu-1.7.0.tgz", + "integrity": "sha512-NpelWidMSNLoFTw+ov3y5jhJZjapHwEnh0Fyfm/7mvqkdwzVyedqNj22etRGum+nsAosMotCUWUznIMAD075gQ==", + "optional": true + }, + "@node-rs/jieba-linux-x64-musl": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-x64-musl/-/jieba-linux-x64-musl-1.7.0.tgz", + "integrity": "sha512-yG4F8sy+fW4RbhyKXmEMT/JGuQuKH0TGymCEGYgT0km2I60iys63jWf2VTzCtrx583wxN5XoHv5HN60nhtIBtw==", + "optional": true + }, + "@node-rs/jieba-win32-arm64-msvc": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-win32-arm64-msvc/-/jieba-win32-arm64-msvc-1.7.0.tgz", + "integrity": "sha512-R6l/BSMs6R6BwpZS6DIDZuAEjUIPdAHgyi+xptP3mICjm6U+GMsvsRTeZkIJ7a/yzYUfqvz54VpQsfE5f0psBQ==", + "optional": true + }, + "@node-rs/jieba-win32-ia32-msvc": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-win32-ia32-msvc/-/jieba-win32-ia32-msvc-1.7.0.tgz", + "integrity": "sha512-FwibbuizEjzom02K2JM2T8tL0VlxW5xGDDy3L3dgx46xIGE85PwGYjgju+eDt4UODgxDsxGC4DUMMZf3XvCc7A==", + "optional": true + }, + "@node-rs/jieba-win32-x64-msvc": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@node-rs/jieba-win32-x64-msvc/-/jieba-win32-x64-msvc-1.7.0.tgz", + "integrity": "sha512-pJv7nluB6azhsOWvJB86Dyfg/M7n9k49bs9Bwmsylz9uhdZX9QnEShDW934RdmnjPYQ5aPgsSFrY6NXP/aovUA==", + "optional": true + }, + "@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "requires": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + } + }, + "@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==" + }, + "@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "requires": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + } + }, + "@polka/url": { + "version": "1.0.0-next.21", + "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.21.tgz", + "integrity": "sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==" + }, + "@sideway/address": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.4.tgz", + "integrity": "sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw==", + "requires": { + "@hapi/hoek": "^9.0.0" + } + }, + "@sideway/formula": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.1.tgz", + "integrity": "sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==" + }, + "@sideway/pinpoint": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz", + "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==" + }, + "@sinclair/typebox": { + "version": "0.25.24", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.25.24.tgz", + "integrity": "sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==" + }, + "@sindresorhus/is": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", + "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==" + }, + "@slorber/static-site-generator-webpack-plugin": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/@slorber/static-site-generator-webpack-plugin/-/static-site-generator-webpack-plugin-4.0.7.tgz", + "integrity": "sha512-Ug7x6z5lwrz0WqdnNFOMYrDQNTPAprvHLSh6+/fmml3qUiz6l5eq+2MzLKWtn/q5K5NpSiFsZTP/fck/3vjSxA==", + "requires": { + "eval": "^0.1.8", + "p-map": "^4.0.0", + "webpack-sources": "^3.2.2" + } + }, + "@svgr/babel-plugin-add-jsx-attribute": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-6.5.1.tgz", + "integrity": "sha512-9PYGcXrAxitycIjRmZB+Q0JaN07GZIWaTBIGQzfaZv+qr1n8X1XUEJ5rZ/vx6OVD9RRYlrNnXWExQXcmZeD/BQ==", + "requires": {} + }, + "@svgr/babel-plugin-remove-jsx-attribute": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-8.0.0.tgz", + "integrity": "sha512-BcCkm/STipKvbCl6b7QFrMh/vx00vIP63k2eM66MfHJzPr6O2U0jYEViXkHJWqXqQYjdeA9cuCl5KWmlwjDvbA==", + "requires": {} + }, + "@svgr/babel-plugin-remove-jsx-empty-expression": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-8.0.0.tgz", + "integrity": "sha512-5BcGCBfBxB5+XSDSWnhTThfI9jcO5f0Ai2V24gZpG+wXF14BzwxxdDb4g6trdOux0rhibGs385BeFMSmxtS3uA==", + "requires": {} + }, + "@svgr/babel-plugin-replace-jsx-attribute-value": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-6.5.1.tgz", + "integrity": "sha512-8DPaVVE3fd5JKuIC29dqyMB54sA6mfgki2H2+swh+zNJoynC8pMPzOkidqHOSc6Wj032fhl8Z0TVn1GiPpAiJg==", + "requires": {} + }, + "@svgr/babel-plugin-svg-dynamic-title": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-6.5.1.tgz", + "integrity": "sha512-FwOEi0Il72iAzlkaHrlemVurgSQRDFbk0OC8dSvD5fSBPHltNh7JtLsxmZUhjYBZo2PpcU/RJvvi6Q0l7O7ogw==", + "requires": {} + }, + "@svgr/babel-plugin-svg-em-dimensions": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-6.5.1.tgz", + "integrity": "sha512-gWGsiwjb4tw+ITOJ86ndY/DZZ6cuXMNE/SjcDRg+HLuCmwpcjOktwRF9WgAiycTqJD/QXqL2f8IzE2Rzh7aVXA==", + "requires": {} + }, + "@svgr/babel-plugin-transform-react-native-svg": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-6.5.1.tgz", + "integrity": "sha512-2jT3nTayyYP7kI6aGutkyfJ7UMGtuguD72OjeGLwVNyfPRBD8zQthlvL+fAbAKk5n9ZNcvFkp/b1lZ7VsYqVJg==", + "requires": {} + }, + "@svgr/babel-plugin-transform-svg-component": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-6.5.1.tgz", + "integrity": "sha512-a1p6LF5Jt33O3rZoVRBqdxL350oge54iZWHNI6LJB5tQ7EelvD/Mb1mfBiZNAan0dt4i3VArkFRjA4iObuNykQ==", + "requires": {} + }, + "@svgr/babel-preset": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-6.5.1.tgz", + "integrity": "sha512-6127fvO/FF2oi5EzSQOAjo1LE3OtNVh11R+/8FXa+mHx1ptAaS4cknIjnUA7e6j6fwGGJ17NzaTJFUwOV2zwCw==", + "requires": { + "@svgr/babel-plugin-add-jsx-attribute": "^6.5.1", + "@svgr/babel-plugin-remove-jsx-attribute": "*", + "@svgr/babel-plugin-remove-jsx-empty-expression": "*", + "@svgr/babel-plugin-replace-jsx-attribute-value": "^6.5.1", + "@svgr/babel-plugin-svg-dynamic-title": "^6.5.1", + "@svgr/babel-plugin-svg-em-dimensions": "^6.5.1", + "@svgr/babel-plugin-transform-react-native-svg": "^6.5.1", + "@svgr/babel-plugin-transform-svg-component": "^6.5.1" + } + }, + "@svgr/core": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/core/-/core-6.5.1.tgz", + "integrity": "sha512-/xdLSWxK5QkqG524ONSjvg3V/FkNyCv538OIBdQqPNaAta3AsXj/Bd2FbvR87yMbXO2hFSWiAe/Q6IkVPDw+mw==", + "requires": { + "@babel/core": "^7.19.6", + "@svgr/babel-preset": "^6.5.1", + "@svgr/plugin-jsx": "^6.5.1", + "camelcase": "^6.2.0", + "cosmiconfig": "^7.0.1" + } + }, + "@svgr/hast-util-to-babel-ast": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-6.5.1.tgz", + "integrity": "sha512-1hnUxxjd83EAxbL4a0JDJoD3Dao3hmjvyvyEV8PzWmLK3B9m9NPlW7GKjFyoWE8nM7HnXzPcmmSyOW8yOddSXw==", + "requires": { + "@babel/types": "^7.20.0", + "entities": "^4.4.0" + } + }, + "@svgr/plugin-jsx": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-6.5.1.tgz", + "integrity": "sha512-+UdQxI3jgtSjCykNSlEMuy1jSRQlGC7pqBCPvkG/2dATdWo082zHTTK3uhnAju2/6XpE6B5mZ3z4Z8Ns01S8Gw==", + "requires": { + "@babel/core": "^7.19.6", + "@svgr/babel-preset": "^6.5.1", + "@svgr/hast-util-to-babel-ast": "^6.5.1", + "svg-parser": "^2.0.4" + } + }, + "@svgr/plugin-svgo": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/plugin-svgo/-/plugin-svgo-6.5.1.tgz", + "integrity": "sha512-omvZKf8ixP9z6GWgwbtmP9qQMPX4ODXi+wzbVZgomNFsUIlHA1sf4fThdwTWSsZGgvGAG6yE+b/F5gWUkcZ/iQ==", + "requires": { + "cosmiconfig": "^7.0.1", + "deepmerge": "^4.2.2", + "svgo": "^2.8.0" + } + }, + "@svgr/webpack": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@svgr/webpack/-/webpack-6.5.1.tgz", + "integrity": "sha512-cQ/AsnBkXPkEK8cLbv4Dm7JGXq2XrumKnL1dRpJD9rIO2fTIlJI9a1uCciYG1F2aUsox/hJQyNGbt3soDxSRkA==", + "requires": { + "@babel/core": "^7.19.6", + "@babel/plugin-transform-react-constant-elements": "^7.18.12", + "@babel/preset-env": "^7.19.4", + "@babel/preset-react": "^7.18.6", + "@babel/preset-typescript": "^7.18.6", + "@svgr/core": "^6.5.1", + "@svgr/plugin-jsx": "^6.5.1", + "@svgr/plugin-svgo": "^6.5.1" + } + }, + "@szmarczak/http-timer": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", + "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", + "requires": { + "defer-to-connect": "^1.0.1" + } + }, + "@trysound/sax": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", + "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==" + }, + "@tsconfig/docusaurus": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@tsconfig/docusaurus/-/docusaurus-1.0.7.tgz", + "integrity": "sha512-ffTXxGIP/IRMCjuzHd6M4/HdIrw1bMfC7Bv8hMkTadnePkpe0lG0oDSdbRpSDZb2rQMAgpbWiR10BvxvNYwYrg==", + "dev": true + }, + "@types/body-parser": { + "version": "1.19.2", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", + "integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==", + "requires": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "@types/bonjour": { + "version": "3.5.10", + "resolved": "https://registry.npmjs.org/@types/bonjour/-/bonjour-3.5.10.tgz", + "integrity": "sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==", + "requires": { + "@types/node": "*" + } + }, + "@types/connect": { + "version": "3.4.35", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", + "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", + "requires": { + "@types/node": "*" + } + }, + "@types/connect-history-api-fallback": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.0.tgz", + "integrity": "sha512-4x5FkPpLipqwthjPsF7ZRbOv3uoLUFkTA9G9v583qi4pACvq0uTELrB8OLUzPWUI4IJIyvM85vzkV1nyiI2Lig==", + "requires": { + "@types/express-serve-static-core": "*", + "@types/node": "*" + } + }, + "@types/debug": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz", + "integrity": "sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==", + "requires": { + "@types/ms": "*" + } + }, + "@types/eslint": { + "version": "8.40.0", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.40.0.tgz", + "integrity": "sha512-nbq2mvc/tBrK9zQQuItvjJl++GTN5j06DaPtp3hZCpngmG6Q3xoyEmd0TwZI0gAy/G1X0zhGBbr2imsGFdFV0g==", + "requires": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "@types/eslint-scope": { + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", + "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", + "requires": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "@types/estree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", + "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==" + }, + "@types/express": { + "version": "4.17.17", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz", + "integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==", + "requires": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^4.17.33", + "@types/qs": "*", + "@types/serve-static": "*" + } + }, + "@types/express-serve-static-core": { + "version": "4.17.35", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.35.tgz", + "integrity": "sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==", + "requires": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" + } + }, + "@types/hast": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.4.tgz", + "integrity": "sha512-wLEm0QvaoawEDoTRwzTXp4b4jpwiJDvR5KMnFnVodm3scufTlBOWRD6N1OBf9TZMhjlNsSfcO5V+7AF4+Vy+9g==", + "requires": { + "@types/unist": "*" + } + }, + "@types/history": { + "version": "4.7.11", + "resolved": "https://registry.npmjs.org/@types/history/-/history-4.7.11.tgz", + "integrity": "sha512-qjDJRrmvBMiTx+jyLxvLfJU7UznFuokDv4f3WRuriHKERccVpFU+8XMQUAbDzoiJCsmexxRExQeMwwCdamSKDA==" + }, + "@types/html-minifier-terser": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", + "integrity": "sha512-oh/6byDPnL1zeNXFrDXFLyZjkr1MsBG667IM792caf1L2UPOOMf65NFzjUH/ltyfwjAGfs1rsX1eftK0jC/KIg==" + }, + "@types/http-proxy": { + "version": "1.17.11", + "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.11.tgz", + "integrity": "sha512-HC8G7c1WmaF2ekqpnFq626xd3Zz0uvaqFmBJNRZCGEZCXkvSdJoNFn/8Ygbd9fKNQj8UzLdCETaI0UWPAjK7IA==", + "requires": { + "@types/node": "*" + } + }, + "@types/istanbul-lib-coverage": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", + "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==" + }, + "@types/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "requires": { + "@types/istanbul-lib-coverage": "*" + } + }, + "@types/istanbul-reports": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", + "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/json-schema": { + "version": "7.0.12", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", + "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==" + }, + "@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true + }, + "@types/mdast": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.11.tgz", + "integrity": "sha512-Y/uImid8aAwrEA24/1tcRZwpxX3pIFTSilcNDKSPn+Y2iDywSEachzRuvgAYYLR3wpGXAsMbv5lvKLDZLeYPAw==", + "requires": { + "@types/unist": "*" + } + }, + "@types/mime": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz", + "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==" + }, + "@types/minimist": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", + "integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==", + "dev": true + }, + "@types/ms": { + "version": "0.7.31", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz", + "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==" + }, + "@types/node": { + "version": "20.2.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.5.tgz", + "integrity": "sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ==" + }, + "@types/normalize-package-data": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz", + "integrity": "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==", + "dev": true + }, + "@types/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==" + }, + "@types/parse5": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/@types/parse5/-/parse5-5.0.3.tgz", + "integrity": "sha512-kUNnecmtkunAoQ3CnjmMkzNU/gtxG8guhi+Fk2U/kOpIKjIMKnXGp4IJCgQJrXSgMsWYimYG4TGjz/UzbGEBTw==" + }, + "@types/prop-types": { + "version": "15.7.5", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", + "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==" + }, + "@types/qs": { + "version": "6.9.7", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", + "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==" + }, + "@types/range-parser": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", + "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==" + }, + "@types/react": { + "version": "18.2.8", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.8.tgz", + "integrity": "sha512-lTyWUNrd8ntVkqycEEplasWy2OxNlShj3zqS0LuB1ENUGis5HodmhM7DtCoUGbxj3VW/WsGA0DUhpG6XrM7gPA==", + "requires": { + "@types/prop-types": "*", + "@types/scheduler": "*", + "csstype": "^3.0.2" + } + }, + "@types/react-router": { + "version": "5.1.20", + "resolved": "https://registry.npmjs.org/@types/react-router/-/react-router-5.1.20.tgz", + "integrity": "sha512-jGjmu/ZqS7FjSH6owMcD5qpq19+1RS9DeVRqfl1FeBMxTDQAGwlMWOcs52NDoXaNKyG3d1cYQFMs9rCrb88o9Q==", + "requires": { + "@types/history": "^4.7.11", + "@types/react": "*" + } + }, + "@types/react-router-config": { + "version": "5.0.7", + "resolved": "https://registry.npmjs.org/@types/react-router-config/-/react-router-config-5.0.7.tgz", + "integrity": "sha512-pFFVXUIydHlcJP6wJm7sDii5mD/bCmmAY0wQzq+M+uX7bqS95AQqHZWP1iNMKrWVQSuHIzj5qi9BvrtLX2/T4w==", + "requires": { + "@types/history": "^4.7.11", + "@types/react": "*", + "@types/react-router": "^5.1.0" + } + }, + "@types/react-router-dom": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/@types/react-router-dom/-/react-router-dom-5.3.3.tgz", + "integrity": "sha512-kpqnYK4wcdm5UaWI3fLcELopqLrHgLqNsdpHauzlQktfkHL3npOSwtj1Uz9oKBAzs7lFtVkV8j83voAz2D8fhw==", + "requires": { + "@types/history": "^4.7.11", + "@types/react": "*", + "@types/react-router": "*" + } + }, + "@types/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==" + }, + "@types/sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@types/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-pSAff4IAxJjfAXUG6tFkO7dsSbTmf8CtUpfhhZ5VhkRpC4628tJhh3+V6H1E+/Gs9piSzYKT5yzHO5M4GG9jkw==", + "requires": { + "@types/node": "*" + } + }, + "@types/scheduler": { + "version": "0.16.3", + "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.3.tgz", + "integrity": "sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==" + }, + "@types/semver": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.0.tgz", + "integrity": "sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==", + "dev": true + }, + "@types/send": { + "version": "0.17.1", + "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.1.tgz", + "integrity": "sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==", + "requires": { + "@types/mime": "^1", + "@types/node": "*" + } + }, + "@types/serve-index": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.1.tgz", + "integrity": "sha512-d/Hs3nWDxNL2xAczmOVZNj92YZCS6RGxfBPjKzuu/XirCgXdpKEb88dYNbrYGint6IVWLNP+yonwVAuRC0T2Dg==", + "requires": { + "@types/express": "*" + } + }, + "@types/serve-static": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz", + "integrity": "sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==", + "requires": { + "@types/mime": "*", + "@types/node": "*" + } + }, + "@types/sockjs": { + "version": "0.3.33", + "resolved": "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.33.tgz", + "integrity": "sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw==", + "requires": { + "@types/node": "*" + } + }, + "@types/unist": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.6.tgz", + "integrity": "sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==" + }, + "@types/ws": { + "version": "8.5.4", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.4.tgz", + "integrity": "sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==", + "requires": { + "@types/node": "*" + } + }, + "@types/yargs": { + "version": "17.0.24", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", + "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", + "requires": { + "@types/yargs-parser": "*" + } + }, + "@types/yargs-parser": { + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", + "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==" + }, + "@typescript-eslint/eslint-plugin": { + "version": "5.59.9", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.9.tgz", + "integrity": "sha512-4uQIBq1ffXd2YvF7MAvehWKW3zVv/w+mSfRAu+8cKbfj3nwzyqJLNcZJpQ/WZ1HLbJDiowwmQ6NO+63nCA+fqA==", + "dev": true, + "requires": { + "@eslint-community/regexpp": "^4.4.0", + "@typescript-eslint/scope-manager": "5.59.9", + "@typescript-eslint/type-utils": "5.59.9", + "@typescript-eslint/utils": "5.59.9", + "debug": "^4.3.4", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "natural-compare-lite": "^1.4.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } }, - "micromark-util-resolve-all": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-1.1.0.tgz", - "integrity": "sha512-b/G6BTMSg+bX+xVCshPTPyAu2tmA0E4X98NSR7eIbeC6ycCqCeE7wjfDIgzEbkzdEVJXRtOG4FbEm/uGbCRouA==", - "requires": { - "micromark-util-types": "^1.0.0" - } + "semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } }, - "micromark-util-sanitize-uri": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-1.2.0.tgz", - "integrity": "sha512-QO4GXv0XZfWey4pYFndLUKEAktKkG5kZTdUNaTAkzbuJxn2tNBOr+QtxR2XpWaMhbImT2dPzyLrPXLlPhph34A==", - "requires": { - "micromark-util-character": "^1.0.0", - "micromark-util-encode": "^1.0.0", - "micromark-util-symbol": "^1.0.0" - } + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + } + } + }, + "@typescript-eslint/parser": { + "version": "5.59.9", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.9.tgz", + "integrity": "sha512-FsPkRvBtcLQ/eVK1ivDiNYBjn3TGJdXy2fhXX+rc7czWl4ARwnpArwbihSOHI2Peg9WbtGHrbThfBUkZZGTtvQ==", + "dev": true, + "requires": { + "@typescript-eslint/scope-manager": "5.59.9", + "@typescript-eslint/types": "5.59.9", + "@typescript-eslint/typescript-estree": "5.59.9", + "debug": "^4.3.4" + } + }, + "@typescript-eslint/scope-manager": { + "version": "5.59.9", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.9.tgz", + "integrity": "sha512-8RA+E+w78z1+2dzvK/tGZ2cpGigBZ58VMEHDZtpE1v+LLjzrYGc8mMaTONSxKyEkz3IuXFM0IqYiGHlCsmlZxQ==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.59.9", + "@typescript-eslint/visitor-keys": "5.59.9" + } + }, + "@typescript-eslint/type-utils": { + "version": "5.59.9", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.9.tgz", + "integrity": "sha512-ksEsT0/mEHg9e3qZu98AlSrONAQtrSTljL3ow9CGej8eRo7pe+yaC/mvTjptp23Xo/xIf2mLZKC6KPv4Sji26Q==", + "dev": true, + "requires": { + "@typescript-eslint/typescript-estree": "5.59.9", + "@typescript-eslint/utils": "5.59.9", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/types": { + "version": "5.59.9", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.9.tgz", + "integrity": "sha512-uW8H5NRgTVneSVTfiCVffBb8AbwWSKg7qcA4Ot3JI3MPCJGsB4Db4BhvAODIIYE5mNj7Q+VJkK7JxmRhk2Lyjw==", + "dev": true + }, + "@typescript-eslint/typescript-estree": { + "version": "5.59.9", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.9.tgz", + "integrity": "sha512-pmM0/VQ7kUhd1QyIxgS+aRvMgw+ZljB3eDb+jYyp6d2bC0mQWLzUDF+DLwCTkQ3tlNyVsvZRXjFyV0LkU/aXjA==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.59.9", + "@typescript-eslint/visitor-keys": "5.59.9", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } }, - "micromark-util-subtokenize": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-1.1.0.tgz", - "integrity": "sha512-kUQHyzRoxvZO2PuLzMt2P/dwVsTiivCK8icYTeR+3WgbuPqfHgPPy7nFKbeqRivBvn/3N3GBiNC+JRTMSxEC7A==", - "requires": { - "micromark-util-chunked": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0", - "uvu": "^0.5.0" - } + "semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } }, - "micromark-util-symbol": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz", - "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==" - }, - "micromark-util-types": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz", - "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==" - }, - "micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "requires": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" - } + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + } + } + }, + "@typescript-eslint/utils": { + "version": "5.59.9", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.9.tgz", + "integrity": "sha512-1PuMYsju/38I5Ggblaeb98TOoUvjhRvLpLa1DoTOFaLWqaXl/1iQ1eGurTXgBY58NUdtfTXKP5xBq7q9NDaLKg==", + "dev": true, + "requires": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.59.9", + "@typescript-eslint/types": "5.59.9", + "@typescript-eslint/typescript-estree": "5.59.9", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } }, - "mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" + "semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + } + } + }, + "@typescript-eslint/visitor-keys": { + "version": "5.59.9", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.9.tgz", + "integrity": "sha512-bT7s0td97KMaLwpEBckbzj/YohnvXtqbe2XgqNvTl6RJVakY5mvENOTPvw5u66nljfZxthESpDozs86U+oLY8Q==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.59.9", + "eslint-visitor-keys": "^3.3.0" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "dev": true + } + } + }, + "@webassemblyjs/ast": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", + "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", + "requires": { + "@webassemblyjs/helper-numbers": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + } + }, + "@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", + "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==" + }, + "@webassemblyjs/helper-api-error": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", + "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==" + }, + "@webassemblyjs/helper-buffer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", + "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==" + }, + "@webassemblyjs/helper-numbers": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", + "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", + "requires": { + "@webassemblyjs/floating-point-hex-parser": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", + "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==" + }, + "@webassemblyjs/helper-wasm-section": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", + "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6" + } + }, + "@webassemblyjs/ieee754": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", + "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", + "requires": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "@webassemblyjs/leb128": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", + "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", + "requires": { + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/utf8": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", + "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==" + }, + "@webassemblyjs/wasm-edit": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", + "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/helper-wasm-section": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-opt": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6", + "@webassemblyjs/wast-printer": "1.11.6" + } + }, + "@webassemblyjs/wasm-gen": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", + "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "@webassemblyjs/wasm-opt": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", + "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6" + } + }, + "@webassemblyjs/wasm-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", + "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "@webassemblyjs/wast-printer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", + "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==" + }, + "@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==" + }, + "accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "requires": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "dependencies": { "mime-db": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", - "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==" + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" }, "mime-types": { - "version": "2.1.18", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", - "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", - "requires": { - "mime-db": "~1.33.0" - } - }, - "mimic-fn": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", - "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", - "dev": true - }, - "mimic-response": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", - "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==" - }, - "min-indent": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", - "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", - "dev": true - }, - "mini-css-extract-plugin": { - "version": "2.7.6", - "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.7.6.tgz", - "integrity": "sha512-Qk7HcgaPkGG6eD77mLvZS1nmxlao3j+9PkrT9Uc7HAE1id3F41+DdBRYRYkbyfNRGzm8/YWtzhw7nVPmwhqTQw==", - "requires": { - "schema-utils": "^4.0.0" - }, - "dependencies": { - "ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "requires": { - "fast-deep-equal": "^3.1.3" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "schema-utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", - "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", - "requires": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - } - } - } - }, - "minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==" - }, - "minimist-options": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", - "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", - "dev": true, - "requires": { - "arrify": "^1.0.1", - "is-plain-obj": "^1.1.0", - "kind-of": "^6.0.3" - } - }, - "mri": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", - "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==" - }, - "mrmime": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-1.0.1.tgz", - "integrity": "sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==" - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "multicast-dns": { - "version": "7.2.5", - "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-7.2.5.tgz", - "integrity": "sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg==", - "requires": { - "dns-packet": "^5.2.2", - "thunky": "^1.0.2" - } - }, - "nanoid": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", - "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==" - }, - "natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "devOptional": true - }, - "natural-compare-lite": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", - "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", - "dev": true - }, - "negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==" - }, - "neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" - }, - "no-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", - "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", - "requires": { - "lower-case": "^2.0.2", - "tslib": "^2.0.3" - } - }, - "node-emoji": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.11.0.tgz", - "integrity": "sha512-wo2DpQkQp7Sjm2A0cq+sN7EHKO6Sl0ctXeBdFZrL9T9+UywORbufTcTZxom8YqpLQt/FqNMUkOpkZrJVYSKD3A==", - "requires": { - "lodash": "^4.17.21" - } - }, - "node-fetch": { - "version": "2.6.11", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz", - "integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==", - "requires": { - "whatwg-url": "^5.0.0" - } - }, - "node-forge": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", - "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==" - }, - "node-releases": { - "version": "2.0.12", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz", - "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==" - }, - "normalize-package-data": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", - "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", - "dev": true, - "requires": { - "hosted-git-info": "^4.0.1", - "is-core-module": "^2.5.0", - "semver": "^7.3.4", - "validate-npm-package-license": "^3.0.1" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } - } - }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" - }, - "normalize-range": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", - "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==" - }, - "normalize-url": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", - "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==" - }, - "npm-run-path": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz", - "integrity": "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==", - "dev": true, - "requires": { - "path-key": "^4.0.0" - }, - "dependencies": { - "path-key": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", - "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", - "dev": true - } - } - }, - "nprogress": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/nprogress/-/nprogress-0.2.0.tgz", - "integrity": "sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==" - }, - "nth-check": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", - "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", - "requires": { - "boolbase": "^1.0.0" - } - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==" - }, - "object-inspect": { - "version": "1.12.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", - "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==" - }, - "object-is": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", - "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" - } - }, - "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" - }, - "object.assign": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - } - }, - "object.entries": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz", - "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "requires": { + "mime-db": "1.52.0" + } + } + } + }, + "acorn": { + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==" + }, + "acorn-import-assertions": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", + "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", + "requires": {} + }, + "acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "devOptional": true, + "requires": {} + }, + "acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==" + }, + "address": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/address/-/address-1.2.2.tgz", + "integrity": "sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA==" + }, + "aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "requires": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + } + }, + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "requires": { + "ajv": "^8.0.0" + }, + "dependencies": { + "ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } }, - "object.fromentries": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz", - "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + } + } + }, + "ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "requires": {} + }, + "algoliasearch": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/algoliasearch/-/algoliasearch-4.17.1.tgz", + "integrity": "sha512-4GDQ1RhP2qUR3x8PevFRbEdqZqIARNViZYjgTJmA1T7wRNtFA3W4Aqc/RsODqa1J8IO/QDla5x4tWuUS8NV8wA==", + "requires": { + "@algolia/cache-browser-local-storage": "4.17.1", + "@algolia/cache-common": "4.17.1", + "@algolia/cache-in-memory": "4.17.1", + "@algolia/client-account": "4.17.1", + "@algolia/client-analytics": "4.17.1", + "@algolia/client-common": "4.17.1", + "@algolia/client-personalization": "4.17.1", + "@algolia/client-search": "4.17.1", + "@algolia/logger-common": "4.17.1", + "@algolia/logger-console": "4.17.1", + "@algolia/requester-browser-xhr": "4.17.1", + "@algolia/requester-common": "4.17.1", + "@algolia/requester-node-http": "4.17.1", + "@algolia/transporter": "4.17.1" + } + }, + "algoliasearch-helper": { + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/algoliasearch-helper/-/algoliasearch-helper-3.13.0.tgz", + "integrity": "sha512-kV3c1jMQCvkARtGsSDvAwuht4PAMSsQILqPiH4WFiARoa3jXJ/r1TQoBWAjWyWF48rsNYCv7kzxgB4LTxrvvuw==", + "requires": { + "@algolia/events": "^4.0.1" + } + }, + "ansi-align": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz", + "integrity": "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==", + "requires": { + "string-width": "^4.1.0" + }, + "dependencies": { + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" }, - "object.hasown": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.2.tgz", - "integrity": "sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==", - "dev": true, - "requires": { - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" }, - "object.values": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", - "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + } + } + }, + "ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "requires": { + "type-fest": "^0.21.3" + }, + "dependencies": { + "type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true + } + } + }, + "ansi-html-community": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", + "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==" + }, + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "requires": { + "color-convert": "^1.9.0" + } + }, + "anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, + "arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==" + }, + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + }, + "aria-query": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz", + "integrity": "sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==", + "dev": true, + "requires": { + "deep-equal": "^2.0.5" + } + }, + "array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + } + }, + "array-flatten": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", + "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==" + }, + "array-includes": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", + "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "is-string": "^1.0.7" + } + }, + "array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==" + }, + "array.prototype.flat": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", + "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + } + }, + "array.prototype.flatmap": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", + "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + } + }, + "array.prototype.tosorted": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz", + "integrity": "sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.1.3" + } + }, + "arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", + "dev": true + }, + "asap": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==" + }, + "ast-types-flow": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", + "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", + "dev": true + }, + "astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true + }, + "at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==" + }, + "autoprefixer": { + "version": "10.4.14", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz", + "integrity": "sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==", + "requires": { + "browserslist": "^4.21.5", + "caniuse-lite": "^1.0.30001464", + "fraction.js": "^4.2.0", + "normalize-range": "^0.1.2", + "picocolors": "^1.0.0", + "postcss-value-parser": "^4.2.0" + } + }, + "available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "dev": true + }, + "axe-core": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.2.tgz", + "integrity": "sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==", + "dev": true + }, + "axios": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.25.0.tgz", + "integrity": "sha512-cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g==", + "requires": { + "follow-redirects": "^1.14.7" + } + }, + "axobject-query": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz", + "integrity": "sha512-goKlv8DZrK9hUh975fnHzhNIO4jUnFCfv/dszV5VwUGDFjI6vQ2VwoyjYjYNEbBE8AH87TduWP5uyDR1D+Iteg==", + "dev": true, + "requires": { + "deep-equal": "^2.0.5" + } + }, + "babel-loader": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.3.0.tgz", + "integrity": "sha512-H8SvsMF+m9t15HNLMipppzkC+Y2Yq+v3SonZyU70RBL/h1gxPkH08Ot8pEE9Z4Kd+czyWJClmFS8qzIP9OZ04Q==", + "requires": { + "find-cache-dir": "^3.3.1", + "loader-utils": "^2.0.0", + "make-dir": "^3.1.0", + "schema-utils": "^2.6.5" + } + }, + "babel-plugin-apply-mdx-type-prop": { + "version": "1.6.22", + "resolved": "https://registry.npmjs.org/babel-plugin-apply-mdx-type-prop/-/babel-plugin-apply-mdx-type-prop-1.6.22.tgz", + "integrity": "sha512-VefL+8o+F/DfK24lPZMtJctrCVOfgbqLAGZSkxwhazQv4VxPg3Za/i40fu22KR2m8eEda+IfSOlPLUSIiLcnCQ==", + "requires": { + "@babel/helper-plugin-utils": "7.10.4", + "@mdx-js/util": "1.6.22" + }, + "dependencies": { + "@babel/helper-plugin-utils": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz", + "integrity": "sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==" + } + } + }, + "babel-plugin-dynamic-import-node": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", + "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==", + "requires": { + "object.assign": "^4.1.0" + } + }, + "babel-plugin-extract-import-names": { + "version": "1.6.22", + "resolved": "https://registry.npmjs.org/babel-plugin-extract-import-names/-/babel-plugin-extract-import-names-1.6.22.tgz", + "integrity": "sha512-yJ9BsJaISua7d8zNT7oRG1ZLBJCIdZ4PZqmH8qa9N5AK01ifk3fnkc98AXhtzE7UkfCsEumvoQWgoYLhOnJ7jQ==", + "requires": { + "@babel/helper-plugin-utils": "7.10.4" + }, + "dependencies": { + "@babel/helper-plugin-utils": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz", + "integrity": "sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==" + } + } + }, + "babel-plugin-polyfill-corejs2": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.3.tgz", + "integrity": "sha512-bM3gHc337Dta490gg+/AseNB9L4YLHxq1nGKZZSHbhXv4aTYU2MD2cjza1Ru4S6975YLTaL1K8uJf6ukJhhmtw==", + "requires": { + "@babel/compat-data": "^7.17.7", + "@babel/helper-define-polyfill-provider": "^0.4.0", + "semver": "^6.1.1" + } + }, + "babel-plugin-polyfill-corejs3": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.1.tgz", + "integrity": "sha512-ikFrZITKg1xH6pLND8zT14UPgjKHiGLqex7rGEZCH2EvhsneJaJPemmpQaIZV5AL03II+lXylw3UmddDK8RU5Q==", + "requires": { + "@babel/helper-define-polyfill-provider": "^0.4.0", + "core-js-compat": "^3.30.1" + } + }, + "babel-plugin-polyfill-regenerator": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.0.tgz", + "integrity": "sha512-hDJtKjMLVa7Z+LwnTCxoDLQj6wdc+B8dun7ayF2fYieI6OzfuvcLMB32ihJZ4UhCBwNYGl5bg/x/P9cMdnkc2g==", + "requires": { + "@babel/helper-define-polyfill-provider": "^0.4.0" + } + }, + "bail": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/bail/-/bail-1.0.5.tgz", + "integrity": "sha512-xFbRxM1tahm08yHBP16MMjVUAvDaBMD38zsM9EMAUN61omwLmKlOpB/Zku5QkjZ8TZ4vn53pj+t518cH0S03RQ==" + }, + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "base16": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/base16/-/base16-1.0.0.tgz", + "integrity": "sha512-pNdYkNPiJUnEhnfXV56+sQy8+AaPcG3POZAUnwr4EeqCUZFz4u2PePbo3e5Gj4ziYPCWGUZT9RHisvJKnwFuBQ==" + }, + "batch": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", + "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==" + }, + "big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==" + }, + "binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==" + }, + "body-parser": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", + "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", + "requires": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "dependencies": { + "bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==" }, - "obuf": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", - "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==" - }, - "on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "requires": { - "ee-first": "1.1.1" - } + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } }, - "on-headers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", - "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "requires": { - "wrappy": "1" - } + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + } + } + }, + "bonjour-service": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.1.1.tgz", + "integrity": "sha512-Z/5lQRMOG9k7W+FkeGTNjh7htqn/2LMnfOvBZ8pynNZCM9MwkQkI3zeI4oz09uWdcgmgHugVvBqxGg4VQJ5PCg==", + "requires": { + "array-flatten": "^2.1.2", + "dns-equal": "^1.0.0", + "fast-deep-equal": "^3.1.3", + "multicast-dns": "^7.2.5" + } + }, + "boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==" + }, + "boxen": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-6.2.1.tgz", + "integrity": "sha512-H4PEsJXfFI/Pt8sjDWbHlQPx4zL/bvSQjcilJmaulGt5mLDorHOHpmdXAJcBcmru7PhYSp/cDMWRko4ZUMFkSw==", + "requires": { + "ansi-align": "^3.0.1", + "camelcase": "^6.2.0", + "chalk": "^4.1.2", + "cli-boxes": "^3.0.0", + "string-width": "^5.0.1", + "type-fest": "^2.5.0", + "widest-line": "^4.0.1", + "wrap-ansi": "^8.0.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } }, - "onetime": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", - "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", - "dev": true, - "requires": { - "mimic-fn": "^4.0.0" - } + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } }, - "open": { - "version": "8.4.2", - "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", - "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", - "requires": { - "define-lazy-prop": "^2.0.0", - "is-docker": "^2.1.1", - "is-wsl": "^2.2.0" - } + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } }, - "opener": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", - "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==" - }, - "optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", - "devOptional": true, - "requires": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" - } + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, - "p-cancelable": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", - "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==" + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "requires": { - "yocto-queue": "^0.1.0" - } + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "requires": { + "fill-range": "^7.0.1" + } + }, + "browserslist": { + "version": "4.21.7", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.7.tgz", + "integrity": "sha512-BauCXrQ7I2ftSqd2mvKHGo85XR0u7Ru3C/Hxsy/0TkfCtjrmAbPdzLGasmoiBxplpDXlPvdjX9u7srIMfgasNA==", + "requires": { + "caniuse-lite": "^1.0.30001489", + "electron-to-chromium": "^1.4.411", + "node-releases": "^2.0.12", + "update-browserslist-db": "^1.0.11" + } + }, + "buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + }, + "bytes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", + "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==" + }, + "cacheable-request": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", + "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", + "requires": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^3.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^4.1.0", + "responselike": "^1.0.2" + }, + "dependencies": { + "get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "requires": { + "pump": "^3.0.0" + } }, - "p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "requires": { - "p-limit": "^3.0.2" - } + "lowercase-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==" }, - "p-map": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", - "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", - "requires": { - "aggregate-error": "^3.0.0" - } + "normalize-url": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz", + "integrity": "sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==" + } + } + }, + "call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "requires": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + } + }, + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==" + }, + "camel-case": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", + "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", + "requires": { + "pascal-case": "^3.1.2", + "tslib": "^2.0.3" + } + }, + "camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==" + }, + "camelcase-css": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", + "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==" + }, + "camelcase-keys": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", + "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", + "dev": true, + "requires": { + "camelcase": "^5.3.1", + "map-obj": "^4.0.0", + "quick-lru": "^4.0.1" + }, + "dependencies": { + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + } + } + }, + "caniuse-api": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", + "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", + "requires": { + "browserslist": "^4.0.0", + "caniuse-lite": "^1.0.0", + "lodash.memoize": "^4.1.2", + "lodash.uniq": "^4.5.0" + } + }, + "caniuse-lite": { + "version": "1.0.30001495", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001495.tgz", + "integrity": "sha512-F6x5IEuigtUfU5ZMQK2jsy5JqUUlEFRVZq8bO2a+ysq5K7jD6PPc9YXZj78xDNS3uNchesp1Jw47YXEqr+Viyg==" + }, + "ccount": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/ccount/-/ccount-1.1.0.tgz", + "integrity": "sha512-vlNK021QdI7PNeiUh/lKkC/mNHHfV0m/Ad5JoI0TYtlBnJAslM/JIkm/tGC88bkLIwO6OQ5uV6ztS6kVAtCDlg==" + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "dependencies": { + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==" + } + } + }, + "character-entities": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz", + "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==" + }, + "character-entities-legacy": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz", + "integrity": "sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA==" + }, + "character-reference-invalid": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-1.1.4.tgz", + "integrity": "sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==" + }, + "cheerio": { + "version": "1.0.0-rc.12", + "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.12.tgz", + "integrity": "sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==", + "requires": { + "cheerio-select": "^2.1.0", + "dom-serializer": "^2.0.0", + "domhandler": "^5.0.3", + "domutils": "^3.0.1", + "htmlparser2": "^8.0.1", + "parse5": "^7.0.0", + "parse5-htmlparser2-tree-adapter": "^7.0.0" + } + }, + "cheerio-select": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-2.1.0.tgz", + "integrity": "sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==", + "requires": { + "boolbase": "^1.0.0", + "css-select": "^5.1.0", + "css-what": "^6.1.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3", + "domutils": "^3.0.1" + } + }, + "chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "requires": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "fsevents": "~2.3.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + } + }, + "chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==" + }, + "ci-info": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", + "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==" + }, + "classnames": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.2.tgz", + "integrity": "sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==" + }, + "clean-css": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.2.tgz", + "integrity": "sha512-JVJbM+f3d3Q704rF4bqQ5UUyTtuJ0JRKNbTKVEeujCCBoMdkEi+V+e8oktO9qGQNSvHrFTM6JZRXrUvGR1czww==", + "requires": { + "source-map": "~0.6.0" + } + }, + "clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==" + }, + "cli-boxes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-3.0.0.tgz", + "integrity": "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==" + }, + "cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "dev": true, + "requires": { + "restore-cursor": "^3.1.0" + } + }, + "cli-table3": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.3.tgz", + "integrity": "sha512-w5Jac5SykAeZJKntOxJCrm63Eg5/4dhMWIcuTbo9rpE+brgaSZo0RuNJZeOyMgsUdhDeojvgyQLmjI+K50ZGyg==", + "requires": { + "@colors/colors": "1.5.0", + "string-width": "^4.2.0" + }, + "dependencies": { + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" }, - "p-retry": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz", - "integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==", - "requires": { - "@types/retry": "0.12.0", - "retry": "^0.13.1" - } + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" - }, - "package-json": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", - "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", - "requires": { - "got": "^9.6.0", - "registry-auth-token": "^4.0.0", - "registry-url": "^5.0.0", - "semver": "^6.2.0" - } + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + } + } + }, + "cli-truncate": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-3.1.0.tgz", + "integrity": "sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA==", + "dev": true, + "requires": { + "slice-ansi": "^5.0.0", + "string-width": "^5.0.0" + } + }, + "clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "requires": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + }, + "dependencies": { + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "requires": { + "isobject": "^3.0.1" + } + } + } + }, + "clone-response": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", + "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", + "requires": { + "mimic-response": "^1.0.0" + } + }, + "clsx": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz", + "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==" + }, + "collapse-white-space": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/collapse-white-space/-/collapse-white-space-1.0.6.tgz", + "integrity": "sha512-jEovNnrhMuqyCcjfEJA56v0Xq8SkIoPKDyaHahwo3POf4qcSXqMYuwNcOTzp74vTsR9Tn08z4MxWqAhcekogkQ==" + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "colord": { + "version": "2.9.3", + "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz", + "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==" + }, + "colorette": { + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==" + }, + "combine-promises": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/combine-promises/-/combine-promises-1.1.0.tgz", + "integrity": "sha512-ZI9jvcLDxqwaXEixOhArm3r7ReIivsXkpbyEWyeOhzz1QS0iSgBPnWvEqvIQtYyamGCYA88gFhmUrs9hrrQ0pg==" + }, + "comma-separated-tokens": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz", + "integrity": "sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw==" + }, + "commander": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", + "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==" + }, + "comment-parser": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.3.1.tgz", + "integrity": "sha512-B52sN2VNghyq5ofvUsqZjmk6YkihBX5vMSChmSK9v4ShjKf3Vk5Xcmgpw4o+iIgtrnM/u5FiMpz9VKb8lpBveA==", + "dev": true + }, + "commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==" + }, + "compressible": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", + "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", + "requires": { + "mime-db": ">= 1.43.0 < 2" + }, + "dependencies": { + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" + } + } + }, + "compression": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", + "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", + "requires": { + "accepts": "~1.3.5", + "bytes": "3.0.0", + "compressible": "~2.0.16", + "debug": "2.6.9", + "on-headers": "~1.0.2", + "safe-buffer": "5.1.2", + "vary": "~1.1.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } }, - "param-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", - "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", - "requires": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, - "parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "requires": { - "callsites": "^3.0.0" - } + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + } + } + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "configstore": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", + "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", + "requires": { + "dot-prop": "^5.2.0", + "graceful-fs": "^4.1.2", + "make-dir": "^3.0.0", + "unique-string": "^2.0.0", + "write-file-atomic": "^3.0.0", + "xdg-basedir": "^4.0.0" + }, + "dependencies": { + "write-file-atomic": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "requires": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + } + } + }, + "confusing-browser-globals": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", + "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", + "dev": true + }, + "connect-history-api-fallback": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz", + "integrity": "sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==" + }, + "consola": { + "version": "2.15.3", + "resolved": "https://registry.npmjs.org/consola/-/consola-2.15.3.tgz", + "integrity": "sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==" + }, + "content-disposition": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz", + "integrity": "sha512-kRGRZw3bLlFISDBgwTSA1TMBFN6J6GWDeubmDE3AF+3+yXL8hTWv8r5rkLbqYXY4RjPk/EzHnClI3zQf1cFmHA==" + }, + "content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==" + }, + "convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" + }, + "cookie": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", + "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==" + }, + "cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" + }, + "copy-text-to-clipboard": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/copy-text-to-clipboard/-/copy-text-to-clipboard-3.1.0.tgz", + "integrity": "sha512-PFM6BnjLnOON/lB3ta/Jg7Ywsv+l9kQGD4TWDCSlRBGmqnnTM5MrDkhAFgw+8HZt0wW6Q2BBE4cmy9sq+s9Qng==" + }, + "copy-webpack-plugin": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-11.0.0.tgz", + "integrity": "sha512-fX2MWpamkW0hZxMEg0+mYnA40LTosOSa5TqZ9GYIBzyJa9C3QUaMPSE2xAi/buNr8u89SfD9wHSQVBzrRa/SOQ==", + "requires": { + "fast-glob": "^3.2.11", + "glob-parent": "^6.0.1", + "globby": "^13.1.1", + "normalize-path": "^3.0.0", + "schema-utils": "^4.0.0", + "serialize-javascript": "^6.0.0" + }, + "dependencies": { + "ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } }, - "parse-entities": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-2.0.0.tgz", - "integrity": "sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==", - "requires": { - "character-entities": "^1.0.0", - "character-entities-legacy": "^1.0.0", - "character-reference-invalid": "^1.0.0", - "is-alphanumerical": "^1.0.0", - "is-decimal": "^1.0.0", - "is-hexadecimal": "^1.0.0" - }, - "dependencies": { - "character-entities": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-1.2.4.tgz", - "integrity": "sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw==" - } - } + "ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "requires": { + "fast-deep-equal": "^3.1.3" + } }, - "parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "requires": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - } + "glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "requires": { + "is-glob": "^4.0.3" + } }, - "parse-numeric-range": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/parse-numeric-range/-/parse-numeric-range-1.3.0.tgz", - "integrity": "sha512-twN+njEipszzlMJd4ONUYgSfZPDxgHhT9Ahed5uTigpQn90FggW4SA/AIPq/6a149fTbE9qBEcSwE3FAEp6wQQ==" + "globby": { + "version": "13.1.4", + "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.4.tgz", + "integrity": "sha512-iui/IiiW+QrJ1X1hKH5qwlMQyv34wJAYwH1vrf8b9kBA4sNiif3gKsMHa+BrdnOpEudWjpotfa7LrTzB1ERS/g==", + "requires": { + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.11", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^4.0.0" + } }, - "parse5": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", - "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", - "requires": { - "entities": "^4.4.0" - } + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, - "parse5-htmlparser2-tree-adapter": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.0.0.tgz", - "integrity": "sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==", - "requires": { - "domhandler": "^5.0.2", - "parse5": "^7.0.0" - } + "schema-utils": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", + "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", + "requires": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + } }, - "parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" - }, - "pascal-case": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", - "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", - "requires": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } + "slash": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", + "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==" + } + } + }, + "core-js": { + "version": "3.30.2", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.30.2.tgz", + "integrity": "sha512-uBJiDmwqsbJCWHAwjrx3cvjbMXP7xD72Dmsn5LOJpiRmE3WbBbN5rCqQ2Qh6Ek6/eOrjlWngEynBWo4VxerQhg==" + }, + "core-js-compat": { + "version": "3.30.2", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.30.2.tgz", + "integrity": "sha512-nriW1nuJjUgvkEjIot1Spwakz52V9YkYHZAQG6A1eCgC8AA1p0zngrQEP9R0+V6hji5XilWKG1Bd0YRppmGimA==", + "requires": { + "browserslist": "^4.21.5" + } + }, + "core-js-pure": { + "version": "3.30.2", + "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.30.2.tgz", + "integrity": "sha512-p/npFUJXXBkCCTIlEGBdghofn00jWG6ZOtdoIXSJmAu2QBvN0IqpZXWweOytcwE6cfx8ZvVUy1vw8zxhe4Y2vg==" + }, + "core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" + }, + "cosmiconfig": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", + "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", + "requires": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + } + }, + "cross-fetch": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.6.tgz", + "integrity": "sha512-riRvo06crlE8HiqOwIpQhxwdOk4fOeR7FVM/wXoxchFEqMNUjvbs3bfo4OTgMEMHzppd4DxFBDbyySj8Cv781g==", + "requires": { + "node-fetch": "^2.6.11" + } + }, + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "crypto-random-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", + "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==" + }, + "css-declaration-sorter": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.0.tgz", + "integrity": "sha512-jDfsatwWMWN0MODAFuHszfjphEXfNw9JUAhmY4pLu3TyTU+ohUpsbVtbU+1MZn4a47D9kqh03i4eyOm+74+zew==", + "requires": {} + }, + "css-functions-list": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/css-functions-list/-/css-functions-list-3.1.0.tgz", + "integrity": "sha512-/9lCvYZaUbBGvYUgYGFJ4dcYiyqdhSjG7IPVluoV8A1ILjkF7ilmhp1OGUz8n+nmBcu0RNrQAzgD8B6FJbrt2w==", + "dev": true + }, + "css-loader": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.8.1.tgz", + "integrity": "sha512-xDAXtEVGlD0gJ07iclwWVkLoZOpEvAWaSyf6W18S2pOC//K8+qUDIx8IIT3D+HjnmkJPQeesOPv5aiUaJsCM2g==", + "requires": { + "icss-utils": "^5.1.0", + "postcss": "^8.4.21", + "postcss-modules-extract-imports": "^3.0.0", + "postcss-modules-local-by-default": "^4.0.3", + "postcss-modules-scope": "^3.0.0", + "postcss-modules-values": "^4.0.0", + "postcss-value-parser": "^4.2.0", + "semver": "^7.3.8" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "requires": { + "yallist": "^4.0.0" + } }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" + "semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "requires": { + "lru-cache": "^6.0.0" + } }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + } + } + }, + "css-minimizer-webpack-plugin": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-4.2.2.tgz", + "integrity": "sha512-s3Of/4jKfw1Hj9CxEO1E5oXhQAxlayuHO2y/ML+C6I9sQ7FdzfEV6QgMLN3vI+qFsjJGIAFLKtQK7t8BOXAIyA==", + "requires": { + "cssnano": "^5.1.8", + "jest-worker": "^29.1.2", + "postcss": "^8.4.17", + "schema-utils": "^4.0.0", + "serialize-javascript": "^6.0.0", + "source-map": "^0.6.1" + }, + "dependencies": { + "ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } }, - "path-is-inside": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", - "integrity": "sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w==" + "ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "requires": { + "fast-deep-equal": "^3.1.3" + } }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, - "path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" + "schema-utils": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", + "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", + "requires": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + } + } + } + }, + "css-select": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", + "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", + "requires": { + "boolbase": "^1.0.0", + "css-what": "^6.1.0", + "domhandler": "^5.0.2", + "domutils": "^3.0.1", + "nth-check": "^2.0.1" + } + }, + "css-tree": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", + "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "requires": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + } + }, + "css-what": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", + "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==" + }, + "cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==" + }, + "cssnano": { + "version": "5.1.15", + "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.15.tgz", + "integrity": "sha512-j+BKgDcLDQA+eDifLx0EO4XSA56b7uut3BQFH+wbSaSTuGLuiyTa/wbRYthUXX8LC9mLg+WWKe8h+qJuwTAbHw==", + "requires": { + "cssnano-preset-default": "^5.2.14", + "lilconfig": "^2.0.3", + "yaml": "^1.10.2" + } + }, + "cssnano-preset-advanced": { + "version": "5.3.10", + "resolved": "https://registry.npmjs.org/cssnano-preset-advanced/-/cssnano-preset-advanced-5.3.10.tgz", + "integrity": "sha512-fnYJyCS9jgMU+cmHO1rPSPf9axbQyD7iUhLO5Df6O4G+fKIOMps+ZbU0PdGFejFBBZ3Pftf18fn1eG7MAPUSWQ==", + "requires": { + "autoprefixer": "^10.4.12", + "cssnano-preset-default": "^5.2.14", + "postcss-discard-unused": "^5.1.0", + "postcss-merge-idents": "^5.1.1", + "postcss-reduce-idents": "^5.2.0", + "postcss-zindex": "^5.1.0" + } + }, + "cssnano-preset-default": { + "version": "5.2.14", + "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.14.tgz", + "integrity": "sha512-t0SFesj/ZV2OTylqQVOrFgEh5uanxbO6ZAdeCrNsUQ6fVuXwYTxJPNAGvGTxHbD68ldIJNec7PyYZDBrfDQ+6A==", + "requires": { + "css-declaration-sorter": "^6.3.1", + "cssnano-utils": "^3.1.0", + "postcss-calc": "^8.2.3", + "postcss-colormin": "^5.3.1", + "postcss-convert-values": "^5.1.3", + "postcss-discard-comments": "^5.1.2", + "postcss-discard-duplicates": "^5.1.0", + "postcss-discard-empty": "^5.1.1", + "postcss-discard-overridden": "^5.1.0", + "postcss-merge-longhand": "^5.1.7", + "postcss-merge-rules": "^5.1.4", + "postcss-minify-font-values": "^5.1.0", + "postcss-minify-gradients": "^5.1.1", + "postcss-minify-params": "^5.1.4", + "postcss-minify-selectors": "^5.2.1", + "postcss-normalize-charset": "^5.1.0", + "postcss-normalize-display-values": "^5.1.0", + "postcss-normalize-positions": "^5.1.1", + "postcss-normalize-repeat-style": "^5.1.1", + "postcss-normalize-string": "^5.1.0", + "postcss-normalize-timing-functions": "^5.1.0", + "postcss-normalize-unicode": "^5.1.1", + "postcss-normalize-url": "^5.1.0", + "postcss-normalize-whitespace": "^5.1.1", + "postcss-ordered-values": "^5.1.3", + "postcss-reduce-initial": "^5.1.2", + "postcss-reduce-transforms": "^5.1.0", + "postcss-svgo": "^5.1.0", + "postcss-unique-selectors": "^5.1.1" + } + }, + "cssnano-utils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz", + "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==", + "requires": {} + }, + "csso": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", + "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", + "requires": { + "css-tree": "^1.1.2" + } + }, + "csstype": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", + "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==" + }, + "damerau-levenshtein": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", + "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", + "dev": true + }, + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "requires": { + "ms": "2.1.2" + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true + }, + "decamelize-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.1.tgz", + "integrity": "sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==", + "dev": true, + "requires": { + "decamelize": "^1.1.0", + "map-obj": "^1.0.0" + }, + "dependencies": { + "map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", + "dev": true + } + } + }, + "decode-named-character-reference": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.0.2.tgz", + "integrity": "sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==", + "requires": { + "character-entities": "^2.0.0" + } + }, + "decompress-response": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", + "integrity": "sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA==", + "requires": { + "mimic-response": "^1.0.0" + } + }, + "deep-equal": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.1.tgz", + "integrity": "sha512-lKdkdV6EOGoVn65XaOsPdH4rMxTZOnmFyuIkMjM1i5HHCbfjC97dawgTAy0deYNfuqUqW+Q5VrVaQYtUpSd6yQ==", + "dev": true, + "requires": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "es-get-iterator": "^1.1.3", + "get-intrinsic": "^1.2.0", + "is-arguments": "^1.1.1", + "is-array-buffer": "^3.0.2", + "is-date-object": "^1.0.5", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "isarray": "^2.0.5", + "object-is": "^1.1.5", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.0", + "side-channel": "^1.0.4", + "which-boxed-primitive": "^1.0.2", + "which-collection": "^1.0.1", + "which-typed-array": "^1.1.9" + } + }, + "deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==" + }, + "deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "devOptional": true + }, + "deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==" + }, + "default-gateway": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", + "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==", + "requires": { + "execa": "^5.0.0" + }, + "dependencies": { + "execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "requires": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + } }, - "path-to-regexp": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", - "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", - "requires": { - "isarray": "0.0.1" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" - } - } + "human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==" }, - "path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==" - }, - "picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" - }, - "picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==" - }, - "pidtree": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz", - "integrity": "sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==", - "dev": true - }, - "pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "requires": { - "find-up": "^4.0.0" - }, - "dependencies": { - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "requires": { - "p-limit": "^2.2.0" - } - } - } + "is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==" }, - "pkg-up": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz", - "integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==", - "requires": { - "find-up": "^3.0.0" - }, - "dependencies": { - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "requires": { - "locate-path": "^3.0.0" - } - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "requires": { - "p-limit": "^2.0.0" - } - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==" - } - } + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==" }, - "postcss": { - "version": "8.4.24", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.24.tgz", - "integrity": "sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg==", - "requires": { - "nanoid": "^3.3.6", - "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" - } + "npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "requires": { + "path-key": "^3.0.0" + } }, - "postcss-calc": { - "version": "8.2.4", - "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.2.4.tgz", - "integrity": "sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==", - "requires": { - "postcss-selector-parser": "^6.0.9", - "postcss-value-parser": "^4.2.0" - } + "onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "requires": { + "mimic-fn": "^2.1.0" + } }, - "postcss-colormin": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.1.tgz", - "integrity": "sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ==", - "requires": { - "browserslist": "^4.21.4", - "caniuse-api": "^3.0.0", - "colord": "^2.9.1", - "postcss-value-parser": "^4.2.0" - } + "strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==" + } + } + }, + "defer-to-connect": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", + "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==" + }, + "define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==" + }, + "define-properties": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", + "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", + "requires": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + } + }, + "del": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/del/-/del-6.1.1.tgz", + "integrity": "sha512-ua8BhapfP0JUJKC/zV9yHHDW/rDoDxP4Zhn3AkA6/xT6gY7jYXJiaeyBZznYVujhZZET+UgcbZiQ7sN3WqcImg==", + "requires": { + "globby": "^11.0.1", + "graceful-fs": "^4.2.4", + "is-glob": "^4.0.1", + "is-path-cwd": "^2.2.0", + "is-path-inside": "^3.0.2", + "p-map": "^4.0.0", + "rimraf": "^3.0.2", + "slash": "^3.0.0" + } + }, + "depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" + }, + "dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==" + }, + "destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==" + }, + "detab": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/detab/-/detab-2.0.4.tgz", + "integrity": "sha512-8zdsQA5bIkoRECvCrNKPla84lyoR7DSAyf7p0YgXzBO9PDJx8KntPUay7NS6yp+KdxdVtiE5SpHKtbp2ZQyA9g==", + "requires": { + "repeat-string": "^1.5.4" + } + }, + "detect-node": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", + "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==" + }, + "detect-port": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/detect-port/-/detect-port-1.5.1.tgz", + "integrity": "sha512-aBzdj76lueB6uUst5iAs7+0H/oOjqI5D16XUWxlWMIMROhcM0rfsNVk93zTngq1dDNpoXRr++Sus7ETAExppAQ==", + "requires": { + "address": "^1.0.1", + "debug": "4" + } + }, + "detect-port-alt": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/detect-port-alt/-/detect-port-alt-1.1.6.tgz", + "integrity": "sha512-5tQykt+LqfJFBEYaDITx7S7cR7mJ/zQmLXZ2qt5w04ainYZw6tBf9dBunMjVeVOdYVRUzUOE4HkY5J7+uttb5Q==", + "requires": { + "address": "^1.0.1", + "debug": "^2.6.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } }, - "postcss-convert-values": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.1.3.tgz", - "integrity": "sha512-82pC1xkJZtcJEfiLw6UXnXVXScgtBrjlO5CBmuDQc+dlb88ZYheFsjTn40+zBVi3DkfF7iezO0nJUPLcJK3pvA==", - "requires": { - "browserslist": "^4.21.4", - "postcss-value-parser": "^4.2.0" - } + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + } + } + }, + "diff": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz", + "integrity": "sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==" + }, + "dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "requires": { + "path-type": "^4.0.0" + } + }, + "dns-equal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", + "integrity": "sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==" + }, + "dns-packet": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.6.0.tgz", + "integrity": "sha512-rza3UH1LwdHh9qyPXp8lkwpjSNk/AMD3dPytUoRoqnypDUhY0xvbdmVhWOfxO68frEfV9BU8V12Ez7ZsHGZpCQ==", + "requires": { + "@leichtgewicht/ip-codec": "^2.0.1" + } + }, + "doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "devOptional": true, + "requires": { + "esutils": "^2.0.2" + } + }, + "dom-converter": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", + "integrity": "sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==", + "requires": { + "utila": "~0.4" + } + }, + "dom-serializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", + "requires": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "entities": "^4.2.0" + } + }, + "domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==" + }, + "domhandler": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "requires": { + "domelementtype": "^2.3.0" + } + }, + "domutils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.1.0.tgz", + "integrity": "sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==", + "requires": { + "dom-serializer": "^2.0.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3" + } + }, + "dot-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", + "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", + "requires": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "dot-prop": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", + "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", + "requires": { + "is-obj": "^2.0.0" + }, + "dependencies": { + "is-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", + "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==" + } + } + }, + "dotenv": { + "version": "16.1.4", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.1.4.tgz", + "integrity": "sha512-m55RtE8AsPeJBpOIFKihEmqUcoVncQIwo7x9U8ZwLEZw9ZpXboz2c+rvog+jUaJvVrZ5kBOeYQBX5+8Aa/OZQw==" + }, + "duplexer": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", + "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==" + }, + "duplexer3": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.5.tgz", + "integrity": "sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA==" + }, + "eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" + }, + "ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" + }, + "electron-to-chromium": { + "version": "1.4.421", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.421.tgz", + "integrity": "sha512-wZOyn3s/aQOtLGAwXMZfteQPN68kgls2wDAnYOA8kCjBvKVrW5RwmWVspxJYTqrcN7Y263XJVsC66VCIGzDO3g==" + }, + "emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" + }, + "emojis-list": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==" + }, + "emoticon": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/emoticon/-/emoticon-3.2.0.tgz", + "integrity": "sha512-SNujglcLTTg+lDAcApPNgEdudaqQFiAbJCqzjNxJkvN9vAwCGi0uu8IUVvx+f16h+V44KCY6Y2yboroc9pilHg==" + }, + "encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==" + }, + "end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "requires": { + "once": "^1.4.0" + } + }, + "enhanced-resolve": { + "version": "5.14.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.14.1.tgz", + "integrity": "sha512-Vklwq2vDKtl0y/vtwjSesgJ5MYS7Etuk5txS8VdKL4AOS1aUlD96zqIfsOSLQsdv3xgMRbtkWM8eG9XDfKUPow==", + "requires": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + } + }, + "entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==" + }, + "error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "requires": { + "is-arrayish": "^0.2.1" + } + }, + "es-abstract": { + "version": "1.21.2", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz", + "integrity": "sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==", + "dev": true, + "requires": { + "array-buffer-byte-length": "^1.0.0", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.5", + "get-intrinsic": "^1.2.0", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.10", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.4.3", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.7", + "string.prototype.trimend": "^1.0.6", + "string.prototype.trimstart": "^1.0.6", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.9" + } + }, + "es-get-iterator": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz", + "integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "is-arguments": "^1.1.1", + "is-map": "^2.0.2", + "is-set": "^2.0.2", + "is-string": "^1.0.7", + "isarray": "^2.0.5", + "stop-iteration-iterator": "^1.0.0" + } + }, + "es-module-lexer": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.2.1.tgz", + "integrity": "sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg==" + }, + "es-set-tostringtag": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", + "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", + "dev": true, + "requires": { + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", + "has-tostringtag": "^1.0.0" + } + }, + "es-shim-unscopables": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", + "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", + "dev": true, + "requires": { + "has": "^1.0.3" + } + }, + "es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + } + }, + "escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" + }, + "escape-goat": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz", + "integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==" + }, + "escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, + "escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==" + }, + "eslint": { + "version": "8.42.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.42.0.tgz", + "integrity": "sha512-ulg9Ms6E1WPf67PHaEY4/6E2tEn5/f7FXGzr3t9cBMugOmf1INYvuUwwh1aXQN4MfJ6a5K2iNwP3w4AColvI9A==", + "devOptional": true, + "requires": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.0.3", + "@eslint/js": "8.42.0", + "@humanwhocodes/config-array": "^0.11.10", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.0", + "eslint-visitor-keys": "^3.4.1", + "espree": "^9.5.2", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "devOptional": true, + "requires": { + "color-convert": "^2.0.1" + } }, - "postcss-discard-comments": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz", - "integrity": "sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==", - "requires": {} - }, - "postcss-discard-duplicates": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz", - "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==", - "requires": {} - }, - "postcss-discard-empty": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz", - "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==", - "requires": {} - }, - "postcss-discard-overridden": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz", - "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==", - "requires": {} - }, - "postcss-discard-unused": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-unused/-/postcss-discard-unused-5.1.0.tgz", - "integrity": "sha512-KwLWymI9hbwXmJa0dkrzpRbSJEh0vVUd7r8t0yOGPcfKzyJJxFM8kLyC5Ev9avji6nY95pOp1W6HqIrfT+0VGw==", - "requires": { - "postcss-selector-parser": "^6.0.5" - } + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "devOptional": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } }, - "postcss-loader": { - "version": "7.3.2", - "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-7.3.2.tgz", - "integrity": "sha512-c7qDlXErX6n0VT+LUsW+nwefVtTu3ORtVvK8EXuUIDcxo+b/euYqpuHlJAvePb0Af5e8uMjR/13e0lTuYifaig==", - "requires": { - "cosmiconfig": "^8.1.3", - "jiti": "^1.18.2", - "klona": "^2.0.6", - "semver": "^7.3.8" - }, - "dependencies": { - "cosmiconfig": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.2.0.tgz", - "integrity": "sha512-3rTMnFJA1tCOPwRxtgF4wd7Ab2qvDbL8jX+3smjIbS4HlZBagTlpERbdN7iAbWlrfxE3M8c27kTwTawQ7st+OQ==", - "requires": { - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "parse-json": "^5.0.0", - "path-type": "^4.0.0" - } - }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "requires": { - "yallist": "^4.0.0" - } - }, - "semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", - "requires": { - "lru-cache": "^6.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - } - } + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "devOptional": true, + "requires": { + "color-name": "~1.1.4" + } }, - "postcss-media-query-parser": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz", - "integrity": "sha512-3sOlxmbKcSHMjlUXQZKQ06jOswE7oVkXPxmZdoB1r5l0q6gTFTQSHxNxOrCccElbW7dxNytifNEo8qidX2Vsig==", - "dev": true - }, - "postcss-merge-idents": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-merge-idents/-/postcss-merge-idents-5.1.1.tgz", - "integrity": "sha512-pCijL1TREiCoog5nQp7wUe+TUonA2tC2sQ54UGeMmryK3UFGIYKqDyjnqd6RcuI4znFn9hWSLNN8xKE/vWcUQw==", - "requires": { - "cssnano-utils": "^3.1.0", - "postcss-value-parser": "^4.2.0" - } + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "devOptional": true }, - "postcss-merge-longhand": { - "version": "5.1.7", - "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz", - "integrity": "sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ==", - "requires": { - "postcss-value-parser": "^4.2.0", - "stylehacks": "^5.1.1" - } + "eslint-scope": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", + "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", + "devOptional": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + } }, - "postcss-merge-rules": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.1.4.tgz", - "integrity": "sha512-0R2IuYpgU93y9lhVbO/OylTtKMVcHb67zjWIfCiKR9rWL3GUk1677LAqD/BcHizukdZEjT8Ru3oHRoAYoJy44g==", - "requires": { - "browserslist": "^4.21.4", - "caniuse-api": "^3.0.0", - "cssnano-utils": "^3.1.0", - "postcss-selector-parser": "^6.0.5" - } + "eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "devOptional": true }, - "postcss-minify-font-values": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz", - "integrity": "sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==", - "requires": { - "postcss-value-parser": "^4.2.0" - } + "glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "devOptional": true, + "requires": { + "is-glob": "^4.0.3" + } }, - "postcss-minify-gradients": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz", - "integrity": "sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==", - "requires": { - "colord": "^2.9.1", - "cssnano-utils": "^3.1.0", - "postcss-value-parser": "^4.2.0" - } + "globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "devOptional": true, + "requires": { + "type-fest": "^0.20.2" + } }, - "postcss-minify-params": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.4.tgz", - "integrity": "sha512-+mePA3MgdmVmv6g+30rn57USjOGSAyuxUmkfiWpzalZ8aiBkdPYjXWtHuwJGm1v5Ojy0Z0LaSYhHaLJQB0P8Jw==", - "requires": { - "browserslist": "^4.21.4", - "cssnano-utils": "^3.1.0", - "postcss-value-parser": "^4.2.0" - } + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "devOptional": true }, - "postcss-minify-selectors": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz", - "integrity": "sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==", - "requires": { - "postcss-selector-parser": "^6.0.5" - } + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "devOptional": true, + "requires": { + "has-flag": "^4.0.0" + } }, - "postcss-modules-extract-imports": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", - "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", - "requires": {} - }, - "postcss-modules-local-by-default": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.3.tgz", - "integrity": "sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==", - "requires": { - "icss-utils": "^5.0.0", - "postcss-selector-parser": "^6.0.2", - "postcss-value-parser": "^4.1.0" - } + "type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "devOptional": true + } + } + }, + "eslint-config-airbnb": { + "version": "19.0.4", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb/-/eslint-config-airbnb-19.0.4.tgz", + "integrity": "sha512-T75QYQVQX57jiNgpF9r1KegMICE94VYwoFQyMGhrvc+lB8YF2E/M/PYDaQe1AJcWaEgqLE+ErXV1Og/+6Vyzew==", + "dev": true, + "requires": { + "eslint-config-airbnb-base": "^15.0.0", + "object.assign": "^4.1.2", + "object.entries": "^1.1.5" + } + }, + "eslint-config-airbnb-base": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz", + "integrity": "sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==", + "dev": true, + "requires": { + "confusing-browser-globals": "^1.0.10", + "object.assign": "^4.1.2", + "object.entries": "^1.1.5", + "semver": "^6.3.0" + } + }, + "eslint-config-prettier": { + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz", + "integrity": "sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==", + "dev": true, + "requires": {} + }, + "eslint-import-resolver-node": { + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", + "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", + "dev": true, + "requires": { + "debug": "^3.2.7", + "is-core-module": "^2.11.0", + "resolve": "^1.22.1" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "eslint-module-utils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", + "dev": true, + "requires": { + "debug": "^3.2.7" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "eslint-plugin-import": { + "version": "2.27.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", + "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", + "dev": true, + "requires": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "array.prototype.flatmap": "^1.3.1", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.7", + "eslint-module-utils": "^2.7.4", + "has": "^1.0.3", + "is-core-module": "^2.11.0", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.values": "^1.1.6", + "resolve": "^1.22.1", + "semver": "^6.3.0", + "tsconfig-paths": "^3.14.1" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } }, - "postcss-modules-scope": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", - "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", - "requires": { - "postcss-selector-parser": "^6.0.4" - } + "doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "requires": { + "esutils": "^2.0.2" + } + } + } + }, + "eslint-plugin-jsx-a11y": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", + "integrity": "sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==", + "dev": true, + "requires": { + "@babel/runtime": "^7.20.7", + "aria-query": "^5.1.3", + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "ast-types-flow": "^0.0.7", + "axe-core": "^4.6.2", + "axobject-query": "^3.1.1", + "damerau-levenshtein": "^1.0.8", + "emoji-regex": "^9.2.2", + "has": "^1.0.3", + "jsx-ast-utils": "^3.3.3", + "language-tags": "=1.0.5", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "semver": "^6.3.0" + } + }, + "eslint-plugin-prettier": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", + "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", + "dev": true, + "requires": { + "prettier-linter-helpers": "^1.0.0" + } + }, + "eslint-plugin-react": { + "version": "7.32.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.32.2.tgz", + "integrity": "sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==", + "dev": true, + "requires": { + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "array.prototype.tosorted": "^1.1.1", + "doctrine": "^2.1.0", + "estraverse": "^5.3.0", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "object.hasown": "^1.1.2", + "object.values": "^1.1.6", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.4", + "semver": "^6.3.0", + "string.prototype.matchall": "^4.0.8" + }, + "dependencies": { + "doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "requires": { + "esutils": "^2.0.2" + } }, - "postcss-modules-values": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", - "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", - "requires": { - "icss-utils": "^5.0.0" - } + "resolve": { + "version": "2.0.0-next.4", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz", + "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==", + "dev": true, + "requires": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + } + } + } + }, + "eslint-plugin-react-hooks": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz", + "integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==", + "dev": true, + "requires": {} + }, + "eslint-plugin-regexp": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-regexp/-/eslint-plugin-regexp-1.15.0.tgz", + "integrity": "sha512-YEtQPfdudafU7RBIFci81R/Q1yErm0mVh3BkGnXD2Dk8DLwTFdc2ITYH1wCnHKim2gnHfPFgrkh+b2ozyyU7ag==", + "dev": true, + "requires": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "comment-parser": "^1.1.2", + "grapheme-splitter": "^1.0.4", + "jsdoctypeparser": "^9.0.0", + "refa": "^0.11.0", + "regexp-ast-analysis": "^0.6.0", + "scslre": "^0.2.0" + } + }, + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "dependencies": { + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==" + } + } + }, + "eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true + }, + "espree": { + "version": "9.5.2", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", + "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", + "devOptional": true, + "requires": { + "acorn": "^8.8.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "devOptional": true + } + } + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" + }, + "esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "devOptional": true, + "requires": { + "estraverse": "^5.1.0" + } + }, + "esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "requires": { + "estraverse": "^5.2.0" + } + }, + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==" + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" + }, + "eta": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/eta/-/eta-2.2.0.tgz", + "integrity": "sha512-UVQ72Rqjy/ZKQalzV5dCCJP80GrmPrMxh6NlNf+erV6ObL0ZFkhCstWRawS85z3smdr3d2wXPsZEY7rDPfGd2g==" + }, + "etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==" + }, + "eval": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/eval/-/eval-0.1.8.tgz", + "integrity": "sha512-EzV94NYKoO09GLXGjXj9JIlXijVck4ONSr5wiCWDvhsvj5jxSrzTmRU/9C1DyB6uToszLs8aifA6NQ7lEQdvFw==", + "requires": { + "@types/node": "*", + "require-like": ">= 0.1.1" + } + }, + "eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" + }, + "events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==" + }, + "execa": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-7.1.1.tgz", + "integrity": "sha512-wH0eMf/UXckdUYnO21+HDztteVv05rq2GXksxT4fCGeHkBhw1DROXh40wcjMcRqDOWE7iPJ4n3M7e2+YFP+76Q==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.1", + "human-signals": "^4.3.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^3.0.7", + "strip-final-newline": "^3.0.0" + } + }, + "express": { + "version": "4.18.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", + "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", + "requires": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "dependencies": { + "array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" }, - "postcss-normalize-charset": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz", - "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==", - "requires": {} - }, - "postcss-normalize-display-values": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz", - "integrity": "sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==", - "requires": { - "postcss-value-parser": "^4.2.0" - } + "content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "requires": { + "safe-buffer": "5.2.1" + } }, - "postcss-normalize-positions": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz", - "integrity": "sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==", - "requires": { - "postcss-value-parser": "^4.2.0" - } + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } }, - "postcss-normalize-repeat-style": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz", - "integrity": "sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==", - "requires": { - "postcss-value-parser": "^4.2.0" - } + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, - "postcss-normalize-string": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz", - "integrity": "sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==", - "requires": { - "postcss-value-parser": "^4.2.0" - } + "path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" }, - "postcss-normalize-timing-functions": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz", - "integrity": "sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==", - "requires": { - "postcss-value-parser": "^4.2.0" - } + "range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" + } + } + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "requires": { + "is-extendable": "^0.1.0" + } + }, + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "fast-diff": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", + "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", + "dev": true + }, + "fast-glob": { + "version": "3.2.12", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", + "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + } + }, + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "devOptional": true + }, + "fast-url-parser": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/fast-url-parser/-/fast-url-parser-1.1.3.tgz", + "integrity": "sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ==", + "requires": { + "punycode": "^1.3.2" + } + }, + "fastest-levenshtein": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", + "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", + "dev": true + }, + "fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "requires": { + "reusify": "^1.0.4" + } + }, + "faye-websocket": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", + "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", + "requires": { + "websocket-driver": ">=0.5.1" + } + }, + "fbemitter": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/fbemitter/-/fbemitter-3.0.0.tgz", + "integrity": "sha512-KWKaceCwKQU0+HPoop6gn4eOHk50bBv/VxjJtGMfwmJt3D29JpN4H4eisCtIPA+a8GVBam+ldMMpMjJUvpDyHw==", + "requires": { + "fbjs": "^3.0.0" + } + }, + "fbjs": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-3.0.5.tgz", + "integrity": "sha512-ztsSx77JBtkuMrEypfhgc3cI0+0h+svqeie7xHbh1k/IKdcydnvadp/mUaGgjAOXQmQSxsqgaRhS3q9fy+1kxg==", + "requires": { + "cross-fetch": "^3.1.5", + "fbjs-css-vars": "^1.0.0", + "loose-envify": "^1.0.0", + "object-assign": "^4.1.0", + "promise": "^7.1.1", + "setimmediate": "^1.0.5", + "ua-parser-js": "^1.0.35" + } + }, + "fbjs-css-vars": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/fbjs-css-vars/-/fbjs-css-vars-1.0.2.tgz", + "integrity": "sha512-b2XGFAFdWZWg0phtAWLHCk836A1Xann+I+Dgd3Gk64MHKZO44FfoD1KxyvbSh0qZsIoXQGGlVztIY+oitJPpRQ==" + }, + "feed": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/feed/-/feed-4.2.2.tgz", + "integrity": "sha512-u5/sxGfiMfZNtJ3OvQpXcvotFpYkL0n9u9mM2vkui2nGo8b4wvDkJ8gAkYqbA8QpGyFCv3RK0Z+Iv+9veCS9bQ==", + "requires": { + "xml-js": "^1.6.11" + } + }, + "file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "devOptional": true, + "requires": { + "flat-cache": "^3.0.4" + } + }, + "file-loader": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz", + "integrity": "sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==", + "requires": { + "loader-utils": "^2.0.0", + "schema-utils": "^3.0.0" + }, + "dependencies": { + "schema-utils": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", + "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + } + } + }, + "filesize": { + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/filesize/-/filesize-8.0.7.tgz", + "integrity": "sha512-pjmC+bkIF8XI7fWaH8KxHcZL3DPybs1roSKP4rKDvy20tAWwIObE4+JIseG2byfGKhud5ZnM4YSGKBz7Sh0ndQ==" + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "finalhandler": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", + "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "requires": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } }, - "postcss-normalize-unicode": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz", - "integrity": "sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA==", - "requires": { - "browserslist": "^4.21.4", - "postcss-value-parser": "^4.2.0" - } + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + } + } + }, + "find-cache-dir": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", + "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", + "requires": { + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" + } + }, + "find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "requires": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + } + }, + "flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "devOptional": true, + "requires": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + } + }, + "flatted": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", + "devOptional": true + }, + "flux": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/flux/-/flux-4.0.4.tgz", + "integrity": "sha512-NCj3XlayA2UsapRpM7va6wU1+9rE5FIL7qoMcmxWHRzbp0yujihMBm9BBHZ1MDIk5h5o2Bl6eGiCe8rYELAmYw==", + "requires": { + "fbemitter": "^3.0.0", + "fbjs": "^3.0.1" + } + }, + "follow-redirects": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", + "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==" + }, + "for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dev": true, + "requires": { + "is-callable": "^1.1.3" + } + }, + "fork-ts-checker-webpack-plugin": { + "version": "6.5.3", + "resolved": "https://registry.npmjs.org/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.5.3.tgz", + "integrity": "sha512-SbH/l9ikmMWycd5puHJKTkZJKddF4iRLyW3DeZ08HTI7NGyLS38MXd/KGgeWumQO7YNQbW2u/NtPT2YowbPaGQ==", + "requires": { + "@babel/code-frame": "^7.8.3", + "@types/json-schema": "^7.0.5", + "chalk": "^4.1.0", + "chokidar": "^3.4.2", + "cosmiconfig": "^6.0.0", + "deepmerge": "^4.2.2", + "fs-extra": "^9.0.0", + "glob": "^7.1.6", + "memfs": "^3.1.2", + "minimatch": "^3.0.4", + "schema-utils": "2.7.0", + "semver": "^7.3.2", + "tapable": "^1.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } }, - "postcss-normalize-url": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz", - "integrity": "sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==", - "requires": { - "normalize-url": "^6.0.1", - "postcss-value-parser": "^4.2.0" - } + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } }, - "postcss-normalize-whitespace": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz", - "integrity": "sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==", - "requires": { - "postcss-value-parser": "^4.2.0" - } + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } }, - "postcss-ordered-values": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz", - "integrity": "sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==", - "requires": { - "cssnano-utils": "^3.1.0", - "postcss-value-parser": "^4.2.0" - } + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, - "postcss-reduce-idents": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/postcss-reduce-idents/-/postcss-reduce-idents-5.2.0.tgz", - "integrity": "sha512-BTrLjICoSB6gxbc58D5mdBK8OhXRDqud/zodYfdSi52qvDHdMwk+9kB9xsM8yJThH/sZU5A6QVSmMmaN001gIg==", - "requires": { - "postcss-value-parser": "^4.2.0" - } + "cosmiconfig": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz", + "integrity": "sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==", + "requires": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.1.0", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.7.2" + } }, - "postcss-reduce-initial": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz", - "integrity": "sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg==", - "requires": { - "browserslist": "^4.21.4", - "caniuse-api": "^3.0.0" - } + "fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "requires": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } }, - "postcss-reduce-transforms": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz", - "integrity": "sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==", - "requires": { - "postcss-value-parser": "^4.2.0" - } + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" }, - "postcss-resolve-nested-selector": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/postcss-resolve-nested-selector/-/postcss-resolve-nested-selector-0.1.1.tgz", - "integrity": "sha512-HvExULSwLqHLgUy1rl3ANIqCsvMS0WHss2UOsXhXnQaZ9VCc2oBvIpXrl00IUFT5ZDITME0o6oiXeiHr2SAIfw==", - "dev": true - }, - "postcss-safe-parser": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-6.0.0.tgz", - "integrity": "sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==", - "dev": true, - "requires": {} - }, - "postcss-selector-parser": { - "version": "6.0.13", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", - "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", - "requires": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - } + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "requires": { + "yallist": "^4.0.0" + } }, - "postcss-sort-media-queries": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/postcss-sort-media-queries/-/postcss-sort-media-queries-4.4.1.tgz", - "integrity": "sha512-QDESFzDDGKgpiIh4GYXsSy6sek2yAwQx1JASl5AxBtU1Lq2JfKBljIPNdil989NcSKRQX1ToiaKphImtBuhXWw==", - "requires": { - "sort-css-media-queries": "2.1.0" - } + "schema-utils": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.0.tgz", + "integrity": "sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==", + "requires": { + "@types/json-schema": "^7.0.4", + "ajv": "^6.12.2", + "ajv-keywords": "^3.4.1" + } }, - "postcss-svgo": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.1.0.tgz", - "integrity": "sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==", - "requires": { - "postcss-value-parser": "^4.2.0", - "svgo": "^2.7.0" - } + "semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "requires": { + "lru-cache": "^6.0.0" + } }, - "postcss-unique-selectors": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz", - "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==", - "requires": { - "postcss-selector-parser": "^6.0.5" - } + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } }, - "postcss-value-parser": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", - "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" - }, - "postcss-zindex": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-zindex/-/postcss-zindex-5.1.0.tgz", - "integrity": "sha512-fgFMf0OtVSBR1va1JNHYgMxYk73yhn/qb4uQDq1DLGYolz8gHCyr/sesEuGUaYs58E3ZJRcpoGuPVoB7Meiq9A==", - "requires": {} - }, - "prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "devOptional": true - }, - "prepend-http": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", - "integrity": "sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==" - }, - "prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", - "dev": true - }, - "prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", - "dev": true, - "requires": { - "fast-diff": "^1.1.2" - } + "tapable": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz", + "integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==" }, - "pretty-error": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-4.0.0.tgz", - "integrity": "sha512-AoJ5YMAcXKYxKhuJGdcvse+Voc6v1RgnsR3nWcYU7q4t6z0Q6T86sv5Zq8VIRbOWWFpvdGE83LtdSMNd+6Y0xw==", - "requires": { - "lodash": "^4.17.20", - "renderkid": "^3.0.0" - } + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + } + } + }, + "forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==" + }, + "fraction.js": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", + "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==" + }, + "fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==" + }, + "fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, + "fs-monkey": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.4.tgz", + "integrity": "sha512-INM/fWAxMICjttnD0DX1rBvinKskj5G1w+oy/pnm9u/tSlnBrzFonJMcalKJ30P8RRsPzKcCG7Q8l0jx5Fh9YQ==" + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + }, + "fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "optional": true + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "function.prototype.name": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", + "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" + } + }, + "functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true + }, + "gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==" + }, + "get-intrinsic": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "requires": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3" + } + }, + "get-own-enumerable-property-symbols": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz", + "integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==" + }, + "get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==" + }, + "get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + } + }, + "github-buttons": { + "version": "2.27.0", + "resolved": "https://registry.npmjs.org/github-buttons/-/github-buttons-2.27.0.tgz", + "integrity": "sha512-PmfRMI2Rttg/2jDfKBeSl621sEznrsKF019SuoLdoNlO7qRUZaOyEI5Li4uW+79pVqnDtKfIEVuHTIJ5lgy64w==" + }, + "github-slugger": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-1.5.0.tgz", + "integrity": "sha512-wIh+gKBI9Nshz2o46B0B3f5k/W+WI9ZAv6y5Dn5WJ5SK1t0TnDimB4WE5rmTD05ZAIn8HALCZVmCsvj0w0v0lw==" + }, + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "requires": { + "is-glob": "^4.0.1" + } + }, + "glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" + }, + "global-dirs": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.1.tgz", + "integrity": "sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA==", + "requires": { + "ini": "2.0.0" + }, + "dependencies": { + "ini": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz", + "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==" + } + } + }, + "global-modules": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", + "integrity": "sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==", + "requires": { + "global-prefix": "^3.0.0" + } + }, + "global-prefix": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz", + "integrity": "sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==", + "requires": { + "ini": "^1.3.5", + "kind-of": "^6.0.2", + "which": "^1.3.1" + }, + "dependencies": { + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "requires": { + "isexe": "^2.0.0" + } + } + } + }, + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==" + }, + "globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dev": true, + "requires": { + "define-properties": "^1.1.3" + } + }, + "globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "requires": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + } + }, + "globjoin": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/globjoin/-/globjoin-0.1.4.tgz", + "integrity": "sha512-xYfnw62CKG8nLkZBfWbhWwDw02CHty86jfPcc2cr3ZfeuK9ysoVPPEUxf21bAD/rWAgk52SuBrLJlefNy8mvFg==", + "dev": true + }, + "gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dev": true, + "requires": { + "get-intrinsic": "^1.1.3" + } + }, + "got": { + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", + "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", + "requires": { + "@sindresorhus/is": "^0.14.0", + "@szmarczak/http-timer": "^1.1.2", + "cacheable-request": "^6.0.0", + "decompress-response": "^3.3.0", + "duplexer3": "^0.1.4", + "get-stream": "^4.1.0", + "lowercase-keys": "^1.0.1", + "mimic-response": "^1.0.1", + "p-cancelable": "^1.0.0", + "to-readable-stream": "^1.0.0", + "url-parse-lax": "^3.0.0" + }, + "dependencies": { + "get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "requires": { + "pump": "^3.0.0" + } + } + } + }, + "graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" + }, + "grapheme-splitter": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", + "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", + "dev": true + }, + "graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "devOptional": true + }, + "gray-matter": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-4.0.3.tgz", + "integrity": "sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==", + "requires": { + "js-yaml": "^3.13.1", + "kind-of": "^6.0.2", + "section-matter": "^1.0.0", + "strip-bom-string": "^1.0.0" + }, + "dependencies": { + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "requires": { + "sprintf-js": "~1.0.2" + } }, - "pretty-time": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/pretty-time/-/pretty-time-1.1.0.tgz", - "integrity": "sha512-28iF6xPQrP8Oa6uxE6a1biz+lWeTOAPKggvjB8HAs6nVMKZwf5bG++632Dx614hIWgUPkgivRfG+a8uAXGTIbA==" - }, - "prism-react-renderer": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/prism-react-renderer/-/prism-react-renderer-1.3.5.tgz", - "integrity": "sha512-IJ+MSwBWKG+SM3b2SUfdrhC+gu01QkV2KmRQgREThBfSQRoufqRfxfHUxpG1WcaFjP+kojcFyO9Qqtpgt3qLCg==", - "requires": {} - }, - "prismjs": { - "version": "1.29.0", - "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz", - "integrity": "sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==" - }, - "process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" - }, - "promise": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", - "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", - "requires": { - "asap": "~2.0.3" - } + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + } + } + }, + "gzip-size": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", + "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", + "requires": { + "duplexer": "^0.1.2" + } + }, + "handle-thing": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", + "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==" + }, + "hard-rejection": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", + "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", + "dev": true + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==" + }, + "has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "requires": { + "get-intrinsic": "^1.1.1" + } + }, + "has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==" + }, + "has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" + }, + "has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "requires": { + "has-symbols": "^1.0.2" + } + }, + "has-yarn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", + "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==" + }, + "hast-to-hyperscript": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/hast-to-hyperscript/-/hast-to-hyperscript-9.0.1.tgz", + "integrity": "sha512-zQgLKqF+O2F72S1aa4y2ivxzSlko3MAvxkwG8ehGmNiqd98BIN3JM1rAJPmplEyLmGLO2QZYJtIneOSZ2YbJuA==", + "requires": { + "@types/unist": "^2.0.3", + "comma-separated-tokens": "^1.0.0", + "property-information": "^5.3.0", + "space-separated-tokens": "^1.0.0", + "style-to-object": "^0.3.0", + "unist-util-is": "^4.0.0", + "web-namespaces": "^1.0.0" + } + }, + "hast-util-from-parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-6.0.1.tgz", + "integrity": "sha512-jeJUWiN5pSxW12Rh01smtVkZgZr33wBokLzKLwinYOUfSzm1Nl/c3GUGebDyOKjdsRgMvoVbV0VpAcpjF4NrJA==", + "requires": { + "@types/parse5": "^5.0.0", + "hastscript": "^6.0.0", + "property-information": "^5.0.0", + "vfile": "^4.0.0", + "vfile-location": "^3.2.0", + "web-namespaces": "^1.0.0" + } + }, + "hast-util-parse-selector": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-2.2.5.tgz", + "integrity": "sha512-7j6mrk/qqkSehsM92wQjdIgWM2/BW61u/53G6xmC8i1OmEdKLHbk419QKQUjz6LglWsfqoiHmyMRkP1BGjecNQ==" + }, + "hast-util-raw": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-6.0.1.tgz", + "integrity": "sha512-ZMuiYA+UF7BXBtsTBNcLBF5HzXzkyE6MLzJnL605LKE8GJylNjGc4jjxazAHUtcwT5/CEt6afRKViYB4X66dig==", + "requires": { + "@types/hast": "^2.0.0", + "hast-util-from-parse5": "^6.0.0", + "hast-util-to-parse5": "^6.0.0", + "html-void-elements": "^1.0.0", + "parse5": "^6.0.0", + "unist-util-position": "^3.0.0", + "vfile": "^4.0.0", + "web-namespaces": "^1.0.0", + "xtend": "^4.0.0", + "zwitch": "^1.0.0" + }, + "dependencies": { + "parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==" + } + } + }, + "hast-util-to-parse5": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/hast-util-to-parse5/-/hast-util-to-parse5-6.0.0.tgz", + "integrity": "sha512-Lu5m6Lgm/fWuz8eWnrKezHtVY83JeRGaNQ2kn9aJgqaxvVkFCZQBEhgodZUDUvoodgyROHDb3r5IxAEdl6suJQ==", + "requires": { + "hast-to-hyperscript": "^9.0.0", + "property-information": "^5.0.0", + "web-namespaces": "^1.0.0", + "xtend": "^4.0.0", + "zwitch": "^1.0.0" + } + }, + "hast-util-whitespace": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-2.0.1.tgz", + "integrity": "sha512-nAxA0v8+vXSBDt3AnRUNjyRIQ0rD+ntpbAp4LnPkumc5M9yUbSMa4XDU9Q6etY4f1Wp4bNgvc1yjiZtsTTrSng==" + }, + "hastscript": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-6.0.0.tgz", + "integrity": "sha512-nDM6bvd7lIqDUiYEiu5Sl/+6ReP0BMk/2f4U/Rooccxkj0P5nm+acM5PrGJ/t5I8qPGiqZSE6hVAwZEdZIvP4w==", + "requires": { + "@types/hast": "^2.0.0", + "comma-separated-tokens": "^1.0.0", + "hast-util-parse-selector": "^2.0.0", + "property-information": "^5.0.0", + "space-separated-tokens": "^1.0.0" + } + }, + "he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==" + }, + "history": { + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/history/-/history-4.10.1.tgz", + "integrity": "sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew==", + "requires": { + "@babel/runtime": "^7.1.2", + "loose-envify": "^1.2.0", + "resolve-pathname": "^3.0.0", + "tiny-invariant": "^1.0.2", + "tiny-warning": "^1.0.0", + "value-equal": "^1.0.1" + } + }, + "hoist-non-react-statics": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", + "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", + "requires": { + "react-is": "^16.7.0" + } + }, + "hosted-git-info": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", + "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } }, - "prompts": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", - "requires": { - "kleur": "^3.0.3", - "sisteransi": "^1.0.5" - } + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + } + } + }, + "hpack.js": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", + "integrity": "sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==", + "requires": { + "inherits": "^2.0.1", + "obuf": "^1.0.0", + "readable-stream": "^2.0.1", + "wbuf": "^1.1.0" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" }, - "prop-types": { - "version": "15.8.1", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", - "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", - "requires": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.13.1" - } + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } }, - "property-information": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/property-information/-/property-information-5.6.0.tgz", - "integrity": "sha512-YUHSPk+A30YPv+0Qf8i9Mbfe/C0hdPXk1s1jPVToV8pk8BQtpw10ct89Eo7OWkutrwqvT0eicAxlOg3dOAu8JA==", - "requires": { - "xtend": "^4.0.0" - } + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, - "proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "requires": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - }, - "dependencies": { - "ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" - } - } + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, + "html-entities": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.4.tgz", + "integrity": "sha512-TtiHkpRBqP40OzizVWjwBPBsiqchEZxAg/nys6D6lIpdoVLo7sWZ/5Sf/s4UaBHQ6pzUzEr3NiItvEoO46sPtQ==" + }, + "html-minifier-terser": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", + "integrity": "sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw==", + "requires": { + "camel-case": "^4.1.2", + "clean-css": "^5.2.2", + "commander": "^8.3.0", + "he": "^1.2.0", + "param-case": "^3.0.4", + "relateurl": "^0.2.7", + "terser": "^5.10.0" + }, + "dependencies": { + "commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==" + } + } + }, + "html-tags": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/html-tags/-/html-tags-3.3.1.tgz", + "integrity": "sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ==" + }, + "html-void-elements": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-1.0.5.tgz", + "integrity": "sha512-uE/TxKuyNIcx44cIWnjr/rfIATDH7ZaOMmstu0CwhFG1Dunhlp4OC6/NMbhiwoq5BpW0ubi303qnEk/PZj614w==" + }, + "html-webpack-plugin": { + "version": "5.5.1", + "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.5.1.tgz", + "integrity": "sha512-cTUzZ1+NqjGEKjmVgZKLMdiFg3m9MdRXkZW2OEe69WYVi5ONLMmlnSZdXzGGMOq0C8jGDrL6EWyEDDUioHO/pA==", + "requires": { + "@types/html-minifier-terser": "^6.0.0", + "html-minifier-terser": "^6.0.2", + "lodash": "^4.17.21", + "pretty-error": "^4.0.0", + "tapable": "^2.0.0" + } + }, + "htmlparser2": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz", + "integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==", + "requires": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3", + "domutils": "^3.0.1", + "entities": "^4.4.0" + } + }, + "http-cache-semantics": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", + "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==" + }, + "http-deceiver": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", + "integrity": "sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==" + }, + "http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "requires": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + } + }, + "http-parser-js": { + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.8.tgz", + "integrity": "sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q==" + }, + "http-proxy": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", + "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", + "requires": { + "eventemitter3": "^4.0.0", + "follow-redirects": "^1.0.0", + "requires-port": "^1.0.0" + } + }, + "http-proxy-middleware": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", + "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", + "requires": { + "@types/http-proxy": "^1.17.8", + "http-proxy": "^1.18.1", + "is-glob": "^4.0.1", + "is-plain-obj": "^3.0.0", + "micromatch": "^4.0.2" + }, + "dependencies": { + "is-plain-obj": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", + "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==" + } + } + }, + "human-signals": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", + "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", + "dev": true + }, + "husky": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", + "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "dev": true + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "icss-utils": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", + "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", + "requires": {} + }, + "ignore": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==" + }, + "image-size": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/image-size/-/image-size-1.0.2.tgz", + "integrity": "sha512-xfOoWjceHntRb3qFCrh5ZFORYH8XCdYpASltMhZ/Q0KZiOwjdE/Yl2QCiWdwD+lygV5bMCvauzgu5PxBX/Yerg==", + "requires": { + "queue": "6.0.2" + } + }, + "immediate": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.3.0.tgz", + "integrity": "sha512-HR7EVodfFUdQCTIeySw+WDRFJlPcLOJbXfwwZ7Oom6tjsvZ3bOkCDJHehQC3nxJrv7+f9XecwazynjU8e4Vw3Q==" + }, + "immer": { + "version": "9.0.21", + "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", + "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==" + }, + "import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "requires": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + } + }, + "import-lazy": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-4.0.0.tgz", + "integrity": "sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==", + "dev": true + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==" + }, + "indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==" + }, + "infima": { + "version": "0.2.0-alpha.43", + "resolved": "https://registry.npmjs.org/infima/-/infima-0.2.0-alpha.43.tgz", + "integrity": "sha512-2uw57LvUqW0rK/SWYnd/2rRfxNA5DDNOh33jxF7fy46VWoNhGxiUQyVZHbBMjQ33mQem0cjdDVwgWVAmlRfgyQ==" + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" + }, + "inline-style-parser": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.1.1.tgz", + "integrity": "sha512-7NXolsK4CAS5+xvdj5OMMbI962hU/wvwoxk+LWR9Ek9bVtyuuYScDN6eS0rUm6TxApFpw7CX1o4uJzcd4AyD3Q==" + }, + "internal-slot": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", + "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", + "dev": true, + "requires": { + "get-intrinsic": "^1.2.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + } + }, + "interpret": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==" + }, + "invariant": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "requires": { + "loose-envify": "^1.0.0" + } + }, + "ipaddr.js": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.1.0.tgz", + "integrity": "sha512-LlbxQ7xKzfBusov6UMi4MFpEg0m+mAm9xyNGEduwXMEDuf4WfzB/RZwMVYEd7IKGvh4IUkEXYxtAVu9T3OelJQ==" + }, + "is-alphabetical": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-1.0.4.tgz", + "integrity": "sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==" + }, + "is-alphanumerical": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-1.0.4.tgz", + "integrity": "sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A==", + "requires": { + "is-alphabetical": "^1.0.0", + "is-decimal": "^1.0.0" + } + }, + "is-arguments": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, + "is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + } + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" + }, + "is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "requires": { + "has-bigints": "^1.0.1" + } + }, + "is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "requires": { + "binary-extensions": "^2.0.0" + } + }, + "is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, + "is-buffer": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", + "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==" + }, + "is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true + }, + "is-ci": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "requires": { + "ci-info": "^2.0.0" + }, + "dependencies": { + "ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==" + } + } + }, + "is-core-module": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", + "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", + "requires": { + "has": "^1.0.3" + } + }, + "is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-decimal": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-1.0.4.tgz", + "integrity": "sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==" + }, + "is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==" + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==" + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==" + }, + "is-fullwidth-code-point": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz", + "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==", + "dev": true + }, + "is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-hexadecimal": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz", + "integrity": "sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==" + }, + "is-installed-globally": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz", + "integrity": "sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==", + "requires": { + "global-dirs": "^3.0.0", + "is-path-inside": "^3.0.2" + } + }, + "is-map": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", + "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==", + "dev": true + }, + "is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "dev": true + }, + "is-npm": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-5.0.0.tgz", + "integrity": "sha512-WW/rQLOazUq+ST/bCAVBp/2oMERWLsR7OrKyt052dNDk4DHcDE0/7QSXITlmi+VBcV13DfIbysG3tZJm5RfdBA==" + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" + }, + "is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dev": true, + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", + "integrity": "sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==" + }, + "is-path-cwd": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", + "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==" + }, + "is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==" + }, + "is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", + "dev": true + }, + "is-plain-object": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", + "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", + "dev": true + }, + "is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, + "is-regexp": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz", + "integrity": "sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==" + }, + "is-root": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-root/-/is-root-2.1.0.tgz", + "integrity": "sha512-AGOriNp96vNBd3HtU+RzFEc75FfR5ymiYv8E553I71SCeXBiMsVDUtdio1OEFvrPyLIQ9tVR5RxXIFe5PUFjMg==" + }, + "is-set": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", + "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==", + "dev": true + }, + "is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2" + } + }, + "is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true + }, + "is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, + "requires": { + "has-symbols": "^1.0.2" + } + }, + "is-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", + "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", + "dev": true, + "requires": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + } + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" + }, + "is-weakmap": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", + "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==", + "dev": true + }, + "is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.2" + } + }, + "is-weakset": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", + "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + } + }, + "is-whitespace-character": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-whitespace-character/-/is-whitespace-character-1.0.4.tgz", + "integrity": "sha512-SDweEzfIZM0SJV0EUga669UTKlmL0Pq8Lno0QDQsPnvECB3IM2aP0gdx5TrU0A01MAPfViaZiI2V1QMZLaKK5w==" + }, + "is-word-character": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-word-character/-/is-word-character-1.0.4.tgz", + "integrity": "sha512-5SMO8RVennx3nZrqtKwCGyyetPE9VDba5ugvKLaD4KopPG5kR4mQ7tNt/r7feL5yt5h3lpuBbIUmCOG2eSzXHA==" + }, + "is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "requires": { + "is-docker": "^2.0.0" + } + }, + "is-yarn-global": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", + "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==" + }, + "isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==" + }, + "jest-util": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.5.0.tgz", + "integrity": "sha512-RYMgG/MTadOr5t8KdhejfvUU82MxsCu5MF6KuDUHl+NuwzUt+Sm6jJWxTJVrDR1j5M/gJVCPKQEpWXY+yIQ6lQ==", + "requires": { + "@jest/types": "^29.5.0", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } }, - "pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } }, - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==" - }, - "pupa": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/pupa/-/pupa-2.1.1.tgz", - "integrity": "sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A==", - "requires": { - "escape-goat": "^2.0.0" - } + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } }, - "pure-color": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/pure-color/-/pure-color-1.3.0.tgz", - "integrity": "sha512-QFADYnsVoBMw1srW7OVKEYjG+MbIa49s54w1MA1EDY6r2r/sTcKKYqRX1f4GYvnXP7eN/Pe9HFcX+hwzmrXRHA==" - }, - "qs": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", - "requires": { - "side-channel": "^1.0.4" - } + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, - "queue": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/queue/-/queue-6.0.2.tgz", - "integrity": "sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==", - "requires": { - "inherits": "~2.0.3" - } + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" }, - "queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==" - }, - "quick-lru": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", - "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", - "dev": true - }, - "randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "requires": { - "safe-buffer": "^5.1.0" - } + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-worker": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.5.0.tgz", + "integrity": "sha512-NcrQnevGoSp4b5kg+akIpthoAFHxPBcb5P6mYPY0fUNT+sSvmtu6jlkEle3anczUKIKEbMxFimk9oTP/tpIPgA==", + "requires": { + "@types/node": "*", + "jest-util": "^29.5.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" }, - "range-parser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz", - "integrity": "sha512-kA5WQoNVo4t9lNx2kQNFCxKeBl5IbbSNBl1M/tLkw9WCn+hxNBAW5Qh8gdhs63CJnhjJ2zQWFoqPJP2sK1AV5A==" - }, - "raw-body": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", - "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", - "requires": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - }, - "dependencies": { - "bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==" - } - } + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jiti": { + "version": "1.18.2", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.18.2.tgz", + "integrity": "sha512-QAdOptna2NYiSSpv0O/BwoHBSmz4YhpzJHyi+fnMRTXFjp7B8i/YG5Z8IfusxB1ufjcD2Sre1F3R+nX3fvy7gg==" + }, + "joi": { + "version": "17.9.2", + "resolved": "https://registry.npmjs.org/joi/-/joi-17.9.2.tgz", + "integrity": "sha512-Itk/r+V4Dx0V3c7RLFdRh12IOjySm2/WGPMubBT92cQvRfYZhPM2W0hZlctjj72iES8jsRCwp7S/cRmWBnJ4nw==", + "requires": { + "@hapi/hoek": "^9.0.0", + "@hapi/topo": "^5.0.0", + "@sideway/address": "^4.1.3", + "@sideway/formula": "^3.0.1", + "@sideway/pinpoint": "^2.0.0" + } + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "requires": { + "argparse": "^2.0.1" + } + }, + "jsdoctypeparser": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/jsdoctypeparser/-/jsdoctypeparser-9.0.0.tgz", + "integrity": "sha512-jrTA2jJIL6/DAEILBEh2/w9QxCuwmvNXIry39Ay/HVfhE3o2yVV0U44blYkqdHA/OKloJEqvJy0xU+GSdE2SIw==", + "dev": true + }, + "jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==" + }, + "json-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", + "integrity": "sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ==" + }, + "json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + }, + "json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "devOptional": true + }, + "json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==" + }, + "jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "requires": { + "graceful-fs": "^4.1.6", + "universalify": "^2.0.0" + } + }, + "jsx-ast-utils": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", + "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", + "dev": true, + "requires": { + "array-includes": "^3.1.5", + "object.assign": "^4.1.3" + } + }, + "keyv": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", + "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", + "requires": { + "json-buffer": "3.0.0" + } + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==" + }, + "klaw-sync": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz", + "integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==", + "requires": { + "graceful-fs": "^4.1.11" + } + }, + "kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==" + }, + "klona": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.6.tgz", + "integrity": "sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==" + }, + "known-css-properties": { + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.26.0.tgz", + "integrity": "sha512-5FZRzrZzNTBruuurWpvZnvP9pum+fe0HcK8z/ooo+U+Hmp4vtbyp1/QDsqmufirXy4egGzbaH/y2uCZf+6W5Kg==", + "dev": true + }, + "language-subtag-registry": { + "version": "0.3.22", + "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", + "integrity": "sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==", + "dev": true + }, + "language-tags": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", + "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==", + "dev": true, + "requires": { + "language-subtag-registry": "~0.3.2" + } + }, + "latest-version": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", + "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", + "requires": { + "package-json": "^6.3.0" + } + }, + "launch-editor": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.6.0.tgz", + "integrity": "sha512-JpDCcQnyAAzZZaZ7vEiSqL690w7dAEyLao+KC96zBplnYbJS7TYNjvM3M7y3dGz+v7aIsJk3hllWuc0kWAjyRQ==", + "requires": { + "picocolors": "^1.0.0", + "shell-quote": "^1.7.3" + } + }, + "leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==" + }, + "levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "devOptional": true, + "requires": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + } + }, + "lilconfig": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", + "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==" + }, + "lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" + }, + "lint-staged": { + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-13.2.2.tgz", + "integrity": "sha512-71gSwXKy649VrSU09s10uAT0rWCcY3aewhMaHyl2N84oBk4Xs9HgxvUp3AYu+bNsK4NrOYYxvSgg7FyGJ+jGcA==", + "dev": true, + "requires": { + "chalk": "5.2.0", + "cli-truncate": "^3.1.0", + "commander": "^10.0.0", + "debug": "^4.3.4", + "execa": "^7.0.0", + "lilconfig": "2.1.0", + "listr2": "^5.0.7", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "object-inspect": "^1.12.3", + "pidtree": "^0.6.0", + "string-argv": "^0.3.1", + "yaml": "^2.2.2" + }, + "dependencies": { + "chalk": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.2.0.tgz", + "integrity": "sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA==", + "dev": true }, - "rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "requires": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "dependencies": { - "strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==" - } - } + "commander": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", + "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", + "dev": true }, - "react": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz", - "integrity": "sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==", - "requires": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1" - } + "yaml": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz", + "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==", + "dev": true + } + } + }, + "listr2": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/listr2/-/listr2-5.0.8.tgz", + "integrity": "sha512-mC73LitKHj9w6v30nLNGPetZIlfpUniNSsxxrbaPcWOjDb92SHPzJPi/t+v1YC/lxKz/AJ9egOjww0qUuFxBpA==", + "dev": true, + "requires": { + "cli-truncate": "^2.1.0", + "colorette": "^2.0.19", + "log-update": "^4.0.0", + "p-map": "^4.0.0", + "rfdc": "^1.3.0", + "rxjs": "^7.8.0", + "through": "^2.3.8", + "wrap-ansi": "^7.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } }, - "react-base16-styling": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/react-base16-styling/-/react-base16-styling-0.6.0.tgz", - "integrity": "sha512-yvh/7CArceR/jNATXOKDlvTnPKPmGZz7zsenQ3jUwLzHkNUR0CvY3yGYJbWJ/nnxsL8Sgmt5cO3/SILVuPO6TQ==", - "requires": { - "base16": "^1.0.0", - "lodash.curry": "^4.0.1", - "lodash.flow": "^3.3.0", - "pure-color": "^1.2.0" - } + "cli-truncate": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz", + "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==", + "dev": true, + "requires": { + "slice-ansi": "^3.0.0", + "string-width": "^4.2.0" + } }, - "react-dev-utils": { - "version": "12.0.1", - "resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz", - "integrity": "sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ==", - "requires": { - "@babel/code-frame": "^7.16.0", - "address": "^1.1.2", - "browserslist": "^4.18.1", - "chalk": "^4.1.2", - "cross-spawn": "^7.0.3", - "detect-port-alt": "^1.1.6", - "escape-string-regexp": "^4.0.0", - "filesize": "^8.0.6", - "find-up": "^5.0.0", - "fork-ts-checker-webpack-plugin": "^6.5.0", - "global-modules": "^2.0.0", - "globby": "^11.0.4", - "gzip-size": "^6.0.0", - "immer": "^9.0.7", - "is-root": "^2.1.0", - "loader-utils": "^3.2.0", - "open": "^8.4.0", - "pkg-up": "^3.1.0", - "prompts": "^2.4.2", - "react-error-overlay": "^6.0.11", - "recursive-readdir": "^2.2.2", - "shell-quote": "^1.7.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "loader-utils": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-3.2.1.tgz", - "integrity": "sha512-ZvFw1KWS3GVyYBYb7qkmRM/WwL2TQQBxgCK62rlvm4WpVQ23Nb4tYjApUlfjrEGvOs7KHEsmyUn75OHZrJMWPw==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } }, - "react-dom": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-17.0.2.tgz", - "integrity": "sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==", - "requires": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1", - "scheduler": "^0.20.2" - } + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, - "react-error-overlay": { - "version": "6.0.11", - "resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz", - "integrity": "sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==" - }, - "react-fast-compare": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.2.tgz", - "integrity": "sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==" - }, - "react-github-btn": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/react-github-btn/-/react-github-btn-1.4.0.tgz", - "integrity": "sha512-lV4FYClAfjWnBfv0iNlJUGhamDgIq6TayD0kPZED6VzHWdpcHmPfsYOZ/CFwLfPv4Zp+F4m8QKTj0oy2HjiGXg==", - "requires": { - "github-buttons": "^2.22.0" - } + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true }, - "react-helmet-async": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/react-helmet-async/-/react-helmet-async-1.3.0.tgz", - "integrity": "sha512-9jZ57/dAn9t3q6hneQS0wukqC2ENOBgMNVEhb/ZG9ZSxUetzVIw4iAmEU38IaVg3QGYauQPhSeUTuIUtFglWpg==", - "requires": { - "@babel/runtime": "^7.12.5", - "invariant": "^2.2.4", - "prop-types": "^15.7.2", - "react-fast-compare": "^3.2.0", - "shallowequal": "^1.1.0" - } + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true }, - "react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" - }, - "react-json-view": { - "version": "1.21.3", - "resolved": "https://registry.npmjs.org/react-json-view/-/react-json-view-1.21.3.tgz", - "integrity": "sha512-13p8IREj9/x/Ye4WI/JpjhoIwuzEgUAtgJZNBJckfzJt1qyh24BdTm6UQNGnyTq9dapQdrqvquZTo3dz1X6Cjw==", - "requires": { - "flux": "^4.0.1", - "react-base16-styling": "^0.6.0", - "react-lifecycles-compat": "^3.0.4", - "react-textarea-autosize": "^8.3.2" - } + "slice-ansi": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz", + "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + } }, - "react-lifecycles-compat": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz", - "integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==" - }, - "react-loadable": { - "version": "npm:@docusaurus/react-loadable@5.5.2", - "resolved": "https://registry.npmjs.org/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz", - "integrity": "sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ==", - "requires": { - "@types/react": "*", - "prop-types": "^15.6.2" - } + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } }, - "react-loadable-ssr-addon-v5-slorber": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/react-loadable-ssr-addon-v5-slorber/-/react-loadable-ssr-addon-v5-slorber-1.0.1.tgz", - "integrity": "sha512-lq3Lyw1lGku8zUEJPDxsNm1AfYHBrO9Y1+olAYwpUJ2IGFBskM0DMKok97A6LWUpHm+o7IvQBOWu9MLenp9Z+A==", - "requires": { - "@babel/runtime": "^7.10.3" - } + "wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + } + } + }, + "load-script": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/load-script/-/load-script-1.0.0.tgz", + "integrity": "sha512-kPEjMFtZvwL9TaZo0uZ2ml+Ye9HUMmPwbYRJ324qF9tqMejwykJ5ggTyvzmrbBeapCAbk98BSbTeovHEEP1uCA==" + }, + "loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==" + }, + "loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + } + }, + "locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "requires": { + "p-locate": "^5.0.0" + } + }, + "lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "lodash.curry": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.curry/-/lodash.curry-4.1.1.tgz", + "integrity": "sha512-/u14pXGviLaweY5JI0IUzgzF2J6Ne8INyzAZjImcryjgkZ+ebruBxy2/JaOOkTqScddcYtakjhSaeemV8lR0tA==" + }, + "lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" + }, + "lodash.flow": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/lodash.flow/-/lodash.flow-3.5.0.tgz", + "integrity": "sha512-ff3BX/tSioo+XojX4MOsOMhJw0nZoUEF011LX8g8d3gvjVbxd89cCio4BCXronjxcTUIJUoqKEUA+n4CqvvRPw==" + }, + "lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==" + }, + "lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "devOptional": true + }, + "lodash.truncate": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", + "integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==", + "dev": true + }, + "lodash.uniq": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", + "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==" + }, + "log-update": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/log-update/-/log-update-4.0.0.tgz", + "integrity": "sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==", + "dev": true, + "requires": { + "ansi-escapes": "^4.3.0", + "cli-cursor": "^3.1.0", + "slice-ansi": "^4.0.0", + "wrap-ansi": "^6.2.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } }, - "react-markdown": { - "version": "8.0.7", - "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-8.0.7.tgz", - "integrity": "sha512-bvWbzG4MtOU62XqBx3Xx+zB2raaFFsq4mYiAzfjXJMEz2sixgeAfraA3tvzULF02ZdOMUOKTBFFaZJDDrq+BJQ==", - "requires": { - "@types/hast": "^2.0.0", - "@types/prop-types": "^15.0.0", - "@types/unist": "^2.0.0", - "comma-separated-tokens": "^2.0.0", - "hast-util-whitespace": "^2.0.0", - "prop-types": "^15.0.0", - "property-information": "^6.0.0", - "react-is": "^18.0.0", - "remark-parse": "^10.0.0", - "remark-rehype": "^10.0.0", - "space-separated-tokens": "^2.0.0", - "style-to-object": "^0.4.0", - "unified": "^10.0.0", - "unist-util-visit": "^4.0.0", - "vfile": "^5.0.0" - }, - "dependencies": { - "bail": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", - "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==" - }, - "comma-separated-tokens": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", - "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==" - }, - "is-plain-obj": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", - "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==" - }, - "property-information": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/property-information/-/property-information-6.2.0.tgz", - "integrity": "sha512-kma4U7AFCTwpqq5twzC1YVIDXSqg6qQK6JN0smOw8fgRy1OkMi0CYSzFmsy6dnqSenamAtj0CyXMUJ1Mf6oROg==" - }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" - }, - "remark-parse": { - "version": "10.0.2", - "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-10.0.2.tgz", - "integrity": "sha512-3ydxgHa/ZQzG8LvC7jTXccARYDcRld3VfcgIIFs7bI6vbRSxJJmzgLEIIoYKyrfhaY+ujuWaf/PJiMZXoiCXgw==", - "requires": { - "@types/mdast": "^3.0.0", - "mdast-util-from-markdown": "^1.0.0", - "unified": "^10.0.0" - } - }, - "space-separated-tokens": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz", - "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==" - }, - "style-to-object": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-0.4.1.tgz", - "integrity": "sha512-HFpbb5gr2ypci7Qw+IOhnP2zOU7e77b+rzM+wTzXzfi1PrtBCX0E7Pk4wL4iTLnhzZ+JgEGAhX81ebTg/aYjQw==", - "requires": { - "inline-style-parser": "0.1.1" - } - }, - "trough": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/trough/-/trough-2.1.0.tgz", - "integrity": "sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==" - }, - "unified": { - "version": "10.1.2", - "resolved": "https://registry.npmjs.org/unified/-/unified-10.1.2.tgz", - "integrity": "sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==", - "requires": { - "@types/unist": "^2.0.0", - "bail": "^2.0.0", - "extend": "^3.0.0", - "is-buffer": "^2.0.0", - "is-plain-obj": "^4.0.0", - "trough": "^2.0.0", - "vfile": "^5.0.0" - } - }, - "unist-util-is": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", - "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", - "requires": { - "@types/unist": "^2.0.0" - } - }, - "unist-util-visit": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz", - "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==", - "requires": { - "@types/unist": "^2.0.0", - "unist-util-is": "^5.0.0", - "unist-util-visit-parents": "^5.1.1" - } - }, - "unist-util-visit-parents": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz", - "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==", - "requires": { - "@types/unist": "^2.0.0", - "unist-util-is": "^5.0.0" - } - }, - "vfile": { - "version": "5.3.7", - "resolved": "https://registry.npmjs.org/vfile/-/vfile-5.3.7.tgz", - "integrity": "sha512-r7qlzkgErKjobAmyNIkkSpizsFPYiUPuJb5pNW1RB4JcYVZhs4lIbVqk8XPk033CV/1z8ss5pkax8SuhGpcG8g==", - "requires": { - "@types/unist": "^2.0.0", - "is-buffer": "^2.0.0", - "unist-util-stringify-position": "^3.0.0", - "vfile-message": "^3.0.0" - } - }, - "vfile-message": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-3.1.4.tgz", - "integrity": "sha512-fa0Z6P8HUrQN4BZaX05SIVXic+7kE3b05PWAtPuYP9QLHsLKYR7/AlLW3NtOrpXRLeawpDLMsVkmk5DG0NXgWw==", - "requires": { - "@types/unist": "^2.0.0", - "unist-util-stringify-position": "^3.0.0" - } - } - } + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } }, - "react-player": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/react-player/-/react-player-2.12.0.tgz", - "integrity": "sha512-rymLRz/2GJJD+Wc01S7S+i9pGMFYnNmQibR2gVE3KmHJCBNN8BhPAlOPTGZtn1uKpJ6p4RPLlzPQ1OLreXd8gw==", - "requires": { - "deepmerge": "^4.0.0", - "load-script": "^1.0.0", - "memoize-one": "^5.1.1", - "prop-types": "^15.7.2", - "react-fast-compare": "^3.0.1" - } + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, - "react-router": { - "version": "5.3.4", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-5.3.4.tgz", - "integrity": "sha512-Ys9K+ppnJah3QuaRiLxk+jDWOR1MekYQrlytiXxC1RyfbdsZkS5pvKAzCCr031xHixZwpnsYNT5xysdFHQaYsA==", - "requires": { - "@babel/runtime": "^7.12.13", - "history": "^4.9.0", - "hoist-non-react-statics": "^3.1.0", - "loose-envify": "^1.3.1", - "path-to-regexp": "^1.7.0", - "prop-types": "^15.6.2", - "react-is": "^16.6.0", - "tiny-invariant": "^1.0.2", - "tiny-warning": "^1.0.0" - } + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true }, - "react-router-config": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/react-router-config/-/react-router-config-5.1.1.tgz", - "integrity": "sha512-DuanZjaD8mQp1ppHjgnnUnyOlqYXZVjnov/JzFhjLEwd3Z4dYjMSnqrEzzGThH47vpCOqPPwJM2FtthLeJ8Pbg==", - "requires": { - "@babel/runtime": "^7.1.2" - } + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true }, - "react-router-dom": { - "version": "5.3.4", - "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-5.3.4.tgz", - "integrity": "sha512-m4EqFMHv/Ih4kpcBCONHbkT68KoAeHN4p3lAGoNryfHi0dMy0kCzEZakiKRsvg5wHZ/JLrLW8o8KomWiz/qbYQ==", - "requires": { - "@babel/runtime": "^7.12.13", - "history": "^4.9.0", - "loose-envify": "^1.3.1", - "prop-types": "^15.6.2", - "react-router": "5.3.4", - "tiny-invariant": "^1.0.2", - "tiny-warning": "^1.0.0" - } + "slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + } }, - "react-textarea-autosize": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/react-textarea-autosize/-/react-textarea-autosize-8.4.1.tgz", - "integrity": "sha512-aD2C+qK6QypknC+lCMzteOdIjoMbNlgSFmJjCV+DrfTPwp59i/it9mMNf2HDzvRjQgKAyBDPyLJhcrzElf2U4Q==", - "requires": { - "@babel/runtime": "^7.20.13", - "use-composed-ref": "^1.3.0", - "use-latest": "^1.2.1" - } + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } }, - "read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", - "dev": true, - "requires": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, - "dependencies": { - "hosted-git-info": { - "version": "2.8.9", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", - "dev": true - }, - "normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", - "dev": true, - "requires": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - }, - "type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", - "dev": true - } - } + "wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + } + } + }, + "longest-streak": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz", + "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==" + }, + "loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "requires": { + "js-tokens": "^3.0.0 || ^4.0.0" + } + }, + "lower-case": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", + "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", + "requires": { + "tslib": "^2.0.3" + } + }, + "lowercase-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==" + }, + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "requires": { + "yallist": "^3.0.2" + } + }, + "lunr": { + "version": "2.3.9", + "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz", + "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==" + }, + "lunr-languages": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/lunr-languages/-/lunr-languages-1.12.0.tgz", + "integrity": "sha512-C2z02jt74ymrDocBwxYB4Cr1LNZj9rHGLTH/00+JuoT6eJOSSuPBzeqQG8kjnlPUQe+/PAWv1/KHbDT+YYYRnA==" + }, + "make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "requires": { + "semver": "^6.0.0" + } + }, + "map-obj": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", + "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", + "dev": true + }, + "mark.js": { + "version": "8.11.1", + "resolved": "https://registry.npmjs.org/mark.js/-/mark.js-8.11.1.tgz", + "integrity": "sha512-1I+1qpDt4idfgLQG+BNWmrqku+7/2bi5nLf4YwF8y8zXvmfiTBY3PV3ZibfrjBueCByROpuBjLLFCajqkgYoLQ==" + }, + "markdown-escapes": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/markdown-escapes/-/markdown-escapes-1.0.4.tgz", + "integrity": "sha512-8z4efJYk43E0upd0NbVXwgSTQs6cT3T06etieCMEg7dRbzCbxUCK/GHlX8mhHRDcp+OLlHkPKsvqQTCvsRl2cg==" + }, + "mathml-tag-names": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/mathml-tag-names/-/mathml-tag-names-2.1.3.tgz", + "integrity": "sha512-APMBEanjybaPzUrfqU0IMU5I0AswKMH7k8OTLs0vvV4KZpExkTkY87nR/zpbuTPj+gARop7aGUbl11pnDfW6xg==", + "dev": true + }, + "mdast-squeeze-paragraphs": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mdast-squeeze-paragraphs/-/mdast-squeeze-paragraphs-4.0.0.tgz", + "integrity": "sha512-zxdPn69hkQ1rm4J+2Cs2j6wDEv7O17TfXTJ33tl/+JPIoEmtV9t2ZzBM5LPHE8QlHsmVD8t3vPKCyY3oH+H8MQ==", + "requires": { + "unist-util-remove": "^2.0.0" + } + }, + "mdast-util-definitions": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-definitions/-/mdast-util-definitions-4.0.0.tgz", + "integrity": "sha512-k8AJ6aNnUkB7IE+5azR9h81O5EQ/cTDXtWdMq9Kk5KcEW/8ritU5CeLg/9HhOC++nALHBlaogJ5jz0Ybk3kPMQ==", + "requires": { + "unist-util-visit": "^2.0.0" + } + }, + "mdast-util-from-markdown": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-1.3.1.tgz", + "integrity": "sha512-4xTO/M8c82qBcnQc1tgpNtubGUW/Y1tBQ1B0i5CtSoelOLKFYlElIr3bvgREYYO5iRqbMY1YuqZng0GVOI8Qww==", + "requires": { + "@types/mdast": "^3.0.0", + "@types/unist": "^2.0.0", + "decode-named-character-reference": "^1.0.0", + "mdast-util-to-string": "^3.1.0", + "micromark": "^3.0.0", + "micromark-util-decode-numeric-character-reference": "^1.0.0", + "micromark-util-decode-string": "^1.0.0", + "micromark-util-normalize-identifier": "^1.0.0", + "micromark-util-symbol": "^1.0.0", + "micromark-util-types": "^1.0.0", + "unist-util-stringify-position": "^3.0.0", + "uvu": "^0.5.0" + }, + "dependencies": { + "mdast-util-to-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz", + "integrity": "sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==", + "requires": { + "@types/mdast": "^3.0.0" + } + } + } + }, + "mdast-util-phrasing": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-3.0.1.tgz", + "integrity": "sha512-WmI1gTXUBJo4/ZmSk79Wcb2HcjPJBzM1nlI/OUWA8yk2X9ik3ffNbBGsU+09BFmXaL1IBb9fiuvq6/KMiNycSg==", + "requires": { + "@types/mdast": "^3.0.0", + "unist-util-is": "^5.0.0" + }, + "dependencies": { + "unist-util-is": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", + "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", + "requires": { + "@types/unist": "^2.0.0" + } + } + } + }, + "mdast-util-to-hast": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-10.0.1.tgz", + "integrity": "sha512-BW3LM9SEMnjf4HXXVApZMt8gLQWVNXc3jryK0nJu/rOXPOnlkUjmdkDlmxMirpbU9ILncGFIwLH/ubnWBbcdgA==", + "requires": { + "@types/mdast": "^3.0.0", + "@types/unist": "^2.0.0", + "mdast-util-definitions": "^4.0.0", + "mdurl": "^1.0.0", + "unist-builder": "^2.0.0", + "unist-util-generated": "^1.0.0", + "unist-util-position": "^3.0.0", + "unist-util-visit": "^2.0.0" + } + }, + "mdast-util-to-markdown": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-1.5.0.tgz", + "integrity": "sha512-bbv7TPv/WC49thZPg3jXuqzuvI45IL2EVAr/KxF0BSdHsU0ceFHOmwQn6evxAh1GaoK/6GQ1wp4R4oW2+LFL/A==", + "requires": { + "@types/mdast": "^3.0.0", + "@types/unist": "^2.0.0", + "longest-streak": "^3.0.0", + "mdast-util-phrasing": "^3.0.0", + "mdast-util-to-string": "^3.0.0", + "micromark-util-decode-string": "^1.0.0", + "unist-util-visit": "^4.0.0", + "zwitch": "^2.0.0" + }, + "dependencies": { + "mdast-util-to-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz", + "integrity": "sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==", + "requires": { + "@types/mdast": "^3.0.0" + } }, - "read-pkg-up": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", - "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", - "dev": true, - "requires": { - "find-up": "^4.1.0", - "read-pkg": "^5.2.0", - "type-fest": "^0.8.1" - }, - "dependencies": { - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true - } - } + "unist-util-is": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", + "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", + "requires": { + "@types/unist": "^2.0.0" + } }, - "readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } + "unist-util-visit": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz", + "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==", + "requires": { + "@types/unist": "^2.0.0", + "unist-util-is": "^5.0.0", + "unist-util-visit-parents": "^5.1.1" + } }, - "readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "requires": { - "picomatch": "^2.2.1" - } + "unist-util-visit-parents": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz", + "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==", + "requires": { + "@types/unist": "^2.0.0", + "unist-util-is": "^5.0.0" + } }, - "reading-time": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/reading-time/-/reading-time-1.5.0.tgz", - "integrity": "sha512-onYyVhBNr4CmAxFsKS7bz+uTLRakypIe4R+5A824vBSkQy/hB3fZepoVEf8OVAxzLvK+H/jm9TzpI3ETSm64Kg==" - }, - "rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", - "requires": { - "resolve": "^1.1.6" - } + "zwitch": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", + "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==" + } + } + }, + "mdast-util-to-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-2.0.0.tgz", + "integrity": "sha512-AW4DRS3QbBayY/jJmD8437V1Gombjf8RSOUCMFBuo5iHi58AGEgVCKQ+ezHkZZDpAQS75hcBMpLqjpJTjtUL7w==" + }, + "mdn-data": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", + "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==" + }, + "mdurl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", + "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==" + }, + "media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==" + }, + "memfs": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.5.2.tgz", + "integrity": "sha512-4kbWXbVZ+LU4XFDS2CuA7frnwz2HxCMB/0yOXc86q7aCQrfWKkL11t6al1e2CsVC7uhnBNTQ1TfUsAxVauO9IQ==", + "requires": { + "fs-monkey": "^1.0.3" + } + }, + "memoize-one": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-5.2.1.tgz", + "integrity": "sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==" + }, + "meow": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-9.0.0.tgz", + "integrity": "sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ==", + "dev": true, + "requires": { + "@types/minimist": "^1.2.0", + "camelcase-keys": "^6.2.2", + "decamelize": "^1.2.0", + "decamelize-keys": "^1.1.0", + "hard-rejection": "^2.1.0", + "minimist-options": "4.1.0", + "normalize-package-data": "^3.0.0", + "read-pkg-up": "^7.0.1", + "redent": "^3.0.0", + "trim-newlines": "^3.0.0", + "type-fest": "^0.18.0", + "yargs-parser": "^20.2.3" + }, + "dependencies": { + "type-fest": { + "version": "0.18.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", + "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==", + "dev": true + } + } + }, + "merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" + }, + "merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" + }, + "merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==" + }, + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==" + }, + "micromark": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/micromark/-/micromark-3.2.0.tgz", + "integrity": "sha512-uD66tJj54JLYq0De10AhWycZWGQNUvDI55xPgk2sQM5kn1JYlhbCMTtEeT27+vAhW2FBQxLlOmS3pmA7/2z4aA==", + "requires": { + "@types/debug": "^4.0.0", + "debug": "^4.0.0", + "decode-named-character-reference": "^1.0.0", + "micromark-core-commonmark": "^1.0.1", + "micromark-factory-space": "^1.0.0", + "micromark-util-character": "^1.0.0", + "micromark-util-chunked": "^1.0.0", + "micromark-util-combine-extensions": "^1.0.0", + "micromark-util-decode-numeric-character-reference": "^1.0.0", + "micromark-util-encode": "^1.0.0", + "micromark-util-normalize-identifier": "^1.0.0", + "micromark-util-resolve-all": "^1.0.0", + "micromark-util-sanitize-uri": "^1.0.0", + "micromark-util-subtokenize": "^1.0.0", + "micromark-util-symbol": "^1.0.0", + "micromark-util-types": "^1.0.1", + "uvu": "^0.5.0" + } + }, + "micromark-core-commonmark": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-1.1.0.tgz", + "integrity": "sha512-BgHO1aRbolh2hcrzL2d1La37V0Aoz73ymF8rAcKnohLy93titmv62E0gP8Hrx9PKcKrqCZ1BbLGbP3bEhoXYlw==", + "requires": { + "decode-named-character-reference": "^1.0.0", + "micromark-factory-destination": "^1.0.0", + "micromark-factory-label": "^1.0.0", + "micromark-factory-space": "^1.0.0", + "micromark-factory-title": "^1.0.0", + "micromark-factory-whitespace": "^1.0.0", + "micromark-util-character": "^1.0.0", + "micromark-util-chunked": "^1.0.0", + "micromark-util-classify-character": "^1.0.0", + "micromark-util-html-tag-name": "^1.0.0", + "micromark-util-normalize-identifier": "^1.0.0", + "micromark-util-resolve-all": "^1.0.0", + "micromark-util-subtokenize": "^1.0.0", + "micromark-util-symbol": "^1.0.0", + "micromark-util-types": "^1.0.1", + "uvu": "^0.5.0" + } + }, + "micromark-factory-destination": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-1.1.0.tgz", + "integrity": "sha512-XaNDROBgx9SgSChd69pjiGKbV+nfHGDPVYFs5dOoDd7ZnMAE+Cuu91BCpsY8RT2NP9vo/B8pds2VQNCLiu0zhg==", + "requires": { + "micromark-util-character": "^1.0.0", + "micromark-util-symbol": "^1.0.0", + "micromark-util-types": "^1.0.0" + } + }, + "micromark-factory-label": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-1.1.0.tgz", + "integrity": "sha512-OLtyez4vZo/1NjxGhcpDSbHQ+m0IIGnT8BoPamh+7jVlzLJBH98zzuCoUeMxvM6WsNeh8wx8cKvqLiPHEACn0w==", + "requires": { + "micromark-util-character": "^1.0.0", + "micromark-util-symbol": "^1.0.0", + "micromark-util-types": "^1.0.0", + "uvu": "^0.5.0" + } + }, + "micromark-factory-space": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-1.1.0.tgz", + "integrity": "sha512-cRzEj7c0OL4Mw2v6nwzttyOZe8XY/Z8G0rzmWQZTBi/jjwyw/U4uqKtUORXQrR5bAZZnbTI/feRV/R7hc4jQYQ==", + "requires": { + "micromark-util-character": "^1.0.0", + "micromark-util-types": "^1.0.0" + } + }, + "micromark-factory-title": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-1.1.0.tgz", + "integrity": "sha512-J7n9R3vMmgjDOCY8NPw55jiyaQnH5kBdV2/UXCtZIpnHH3P6nHUKaH7XXEYuWwx/xUJcawa8plLBEjMPU24HzQ==", + "requires": { + "micromark-factory-space": "^1.0.0", + "micromark-util-character": "^1.0.0", + "micromark-util-symbol": "^1.0.0", + "micromark-util-types": "^1.0.0" + } + }, + "micromark-factory-whitespace": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-1.1.0.tgz", + "integrity": "sha512-v2WlmiymVSp5oMg+1Q0N1Lxmt6pMhIHD457whWM7/GUlEks1hI9xj5w3zbc4uuMKXGisksZk8DzP2UyGbGqNsQ==", + "requires": { + "micromark-factory-space": "^1.0.0", + "micromark-util-character": "^1.0.0", + "micromark-util-symbol": "^1.0.0", + "micromark-util-types": "^1.0.0" + } + }, + "micromark-util-character": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz", + "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==", + "requires": { + "micromark-util-symbol": "^1.0.0", + "micromark-util-types": "^1.0.0" + } + }, + "micromark-util-chunked": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-1.1.0.tgz", + "integrity": "sha512-Ye01HXpkZPNcV6FiyoW2fGZDUw4Yc7vT0E9Sad83+bEDiCJ1uXu0S3mr8WLpsz3HaG3x2q0HM6CTuPdcZcluFQ==", + "requires": { + "micromark-util-symbol": "^1.0.0" + } + }, + "micromark-util-classify-character": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-1.1.0.tgz", + "integrity": "sha512-SL0wLxtKSnklKSUplok1WQFoGhUdWYKggKUiqhX+Swala+BtptGCu5iPRc+xvzJ4PXE/hwM3FNXsfEVgoZsWbw==", + "requires": { + "micromark-util-character": "^1.0.0", + "micromark-util-symbol": "^1.0.0", + "micromark-util-types": "^1.0.0" + } + }, + "micromark-util-combine-extensions": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-1.1.0.tgz", + "integrity": "sha512-Q20sp4mfNf9yEqDL50WwuWZHUrCO4fEyeDCnMGmG5Pr0Cz15Uo7KBs6jq+dq0EgX4DPwwrh9m0X+zPV1ypFvUA==", + "requires": { + "micromark-util-chunked": "^1.0.0", + "micromark-util-types": "^1.0.0" + } + }, + "micromark-util-decode-numeric-character-reference": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-1.1.0.tgz", + "integrity": "sha512-m9V0ExGv0jB1OT21mrWcuf4QhP46pH1KkfWy9ZEezqHKAxkj4mPCy3nIH1rkbdMlChLHX531eOrymlwyZIf2iw==", + "requires": { + "micromark-util-symbol": "^1.0.0" + } + }, + "micromark-util-decode-string": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-1.1.0.tgz", + "integrity": "sha512-YphLGCK8gM1tG1bd54azwyrQRjCFcmgj2S2GoJDNnh4vYtnL38JS8M4gpxzOPNyHdNEpheyWXCTnnTDY3N+NVQ==", + "requires": { + "decode-named-character-reference": "^1.0.0", + "micromark-util-character": "^1.0.0", + "micromark-util-decode-numeric-character-reference": "^1.0.0", + "micromark-util-symbol": "^1.0.0" + } + }, + "micromark-util-encode": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-1.1.0.tgz", + "integrity": "sha512-EuEzTWSTAj9PA5GOAs992GzNh2dGQO52UvAbtSOMvXTxv3Criqb6IOzJUBCmEqrrXSblJIJBbFFv6zPxpreiJw==" + }, + "micromark-util-html-tag-name": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-1.2.0.tgz", + "integrity": "sha512-VTQzcuQgFUD7yYztuQFKXT49KghjtETQ+Wv/zUjGSGBioZnkA4P1XXZPT1FHeJA6RwRXSF47yvJ1tsJdoxwO+Q==" + }, + "micromark-util-normalize-identifier": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-1.1.0.tgz", + "integrity": "sha512-N+w5vhqrBihhjdpM8+5Xsxy71QWqGn7HYNUvch71iV2PM7+E3uWGox1Qp90loa1ephtCxG2ftRV/Conitc6P2Q==", + "requires": { + "micromark-util-symbol": "^1.0.0" + } + }, + "micromark-util-resolve-all": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-1.1.0.tgz", + "integrity": "sha512-b/G6BTMSg+bX+xVCshPTPyAu2tmA0E4X98NSR7eIbeC6ycCqCeE7wjfDIgzEbkzdEVJXRtOG4FbEm/uGbCRouA==", + "requires": { + "micromark-util-types": "^1.0.0" + } + }, + "micromark-util-sanitize-uri": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-1.2.0.tgz", + "integrity": "sha512-QO4GXv0XZfWey4pYFndLUKEAktKkG5kZTdUNaTAkzbuJxn2tNBOr+QtxR2XpWaMhbImT2dPzyLrPXLlPhph34A==", + "requires": { + "micromark-util-character": "^1.0.0", + "micromark-util-encode": "^1.0.0", + "micromark-util-symbol": "^1.0.0" + } + }, + "micromark-util-subtokenize": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-1.1.0.tgz", + "integrity": "sha512-kUQHyzRoxvZO2PuLzMt2P/dwVsTiivCK8icYTeR+3WgbuPqfHgPPy7nFKbeqRivBvn/3N3GBiNC+JRTMSxEC7A==", + "requires": { + "micromark-util-chunked": "^1.0.0", + "micromark-util-symbol": "^1.0.0", + "micromark-util-types": "^1.0.0", + "uvu": "^0.5.0" + } + }, + "micromark-util-symbol": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz", + "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==" + }, + "micromark-util-types": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz", + "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==" + }, + "micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "requires": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + } + }, + "mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" + }, + "mime-db": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", + "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==" + }, + "mime-types": { + "version": "2.1.18", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", + "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", + "requires": { + "mime-db": "~1.33.0" + } + }, + "mimic-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "dev": true + }, + "mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==" + }, + "min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", + "dev": true + }, + "mini-css-extract-plugin": { + "version": "2.7.6", + "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.7.6.tgz", + "integrity": "sha512-Qk7HcgaPkGG6eD77mLvZS1nmxlao3j+9PkrT9Uc7HAE1id3F41+DdBRYRYkbyfNRGzm8/YWtzhw7nVPmwhqTQw==", + "requires": { + "schema-utils": "^4.0.0" + }, + "dependencies": { + "ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } }, - "recursive-readdir": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.2.3.tgz", - "integrity": "sha512-8HrF5ZsXk5FAH9dgsx3BlUer73nIhuj+9OrQwEbLTPOBzGkL1lsFCR01am+v+0m2Cmbs1nP12hLDl5FA7EszKA==", - "requires": { - "minimatch": "^3.0.5" - } + "ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "requires": { + "fast-deep-equal": "^3.1.3" + } }, - "redent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", - "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", - "dev": true, - "requires": { - "indent-string": "^4.0.0", - "strip-indent": "^3.0.0" - } + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, - "refa": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/refa/-/refa-0.11.0.tgz", - "integrity": "sha512-486O8/pQXwj9jV0mVvUnTsxq0uknpBnNJ0eCUhkZqJRQ8KutrT1PhzmumdCeM1hSBF2eMlFPmwECRER4IbKXlQ==", - "dev": true, - "requires": { - "@eslint-community/regexpp": "^4.5.0" - } + "schema-utils": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", + "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", + "requires": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + } + } + } + }, + "minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" + }, + "minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==" + }, + "minimist-options": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", + "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", + "dev": true, + "requires": { + "arrify": "^1.0.1", + "is-plain-obj": "^1.1.0", + "kind-of": "^6.0.3" + } + }, + "mri": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", + "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==" + }, + "mrmime": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-1.0.1.tgz", + "integrity": "sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==" + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "multicast-dns": { + "version": "7.2.5", + "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-7.2.5.tgz", + "integrity": "sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg==", + "requires": { + "dns-packet": "^5.2.2", + "thunky": "^1.0.2" + } + }, + "nanoid": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", + "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==" + }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "devOptional": true + }, + "natural-compare-lite": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", + "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", + "dev": true + }, + "negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==" + }, + "neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" + }, + "no-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", + "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", + "requires": { + "lower-case": "^2.0.2", + "tslib": "^2.0.3" + } + }, + "node-emoji": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.11.0.tgz", + "integrity": "sha512-wo2DpQkQp7Sjm2A0cq+sN7EHKO6Sl0ctXeBdFZrL9T9+UywORbufTcTZxom8YqpLQt/FqNMUkOpkZrJVYSKD3A==", + "requires": { + "lodash": "^4.17.21" + } + }, + "node-fetch": { + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz", + "integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==", + "requires": { + "whatwg-url": "^5.0.0" + } + }, + "node-forge": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", + "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==" + }, + "node-releases": { + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz", + "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==" + }, + "normalize-package-data": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", + "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", + "dev": true, + "requires": { + "hosted-git-info": "^4.0.1", + "is-core-module": "^2.5.0", + "semver": "^7.3.4", + "validate-npm-package-license": "^3.0.1" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } }, - "regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==" - }, - "regenerate-unicode-properties": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz", - "integrity": "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==", - "requires": { - "regenerate": "^1.4.2" - } + "semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } }, - "regenerator-runtime": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", - "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" - }, - "regenerator-transform": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.1.tgz", - "integrity": "sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg==", - "requires": { - "@babel/runtime": "^7.8.4" - } + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + } + } + }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" + }, + "normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==" + }, + "normalize-url": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==" + }, + "npm-run-path": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz", + "integrity": "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==", + "dev": true, + "requires": { + "path-key": "^4.0.0" + }, + "dependencies": { + "path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "dev": true + } + } + }, + "nprogress": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/nprogress/-/nprogress-0.2.0.tgz", + "integrity": "sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==" + }, + "nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "requires": { + "boolbase": "^1.0.0" + } + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==" + }, + "object-inspect": { + "version": "1.12.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", + "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==" + }, + "object-is": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", + "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + } + }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" + }, + "object.assign": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + } + }, + "object.entries": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz", + "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + } + }, + "object.fromentries": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz", + "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + } + }, + "object.hasown": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.2.tgz", + "integrity": "sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==", + "dev": true, + "requires": { + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + } + }, + "object.values": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", + "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + } + }, + "obuf": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", + "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==" + }, + "on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "requires": { + "ee-first": "1.1.1" + } + }, + "on-headers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "requires": { + "wrappy": "1" + } + }, + "onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "dev": true, + "requires": { + "mimic-fn": "^4.0.0" + } + }, + "open": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", + "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", + "requires": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + } + }, + "opener": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", + "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==" + }, + "optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "devOptional": true, + "requires": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + } + }, + "p-cancelable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", + "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==" + }, + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "requires": { + "yocto-queue": "^0.1.0" + } + }, + "p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "requires": { + "p-limit": "^3.0.2" + } + }, + "p-map": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", + "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", + "requires": { + "aggregate-error": "^3.0.0" + } + }, + "p-retry": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz", + "integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==", + "requires": { + "@types/retry": "0.12.0", + "retry": "^0.13.1" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" + }, + "package-json": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", + "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", + "requires": { + "got": "^9.6.0", + "registry-auth-token": "^4.0.0", + "registry-url": "^5.0.0", + "semver": "^6.2.0" + } + }, + "param-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", + "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", + "requires": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "requires": { + "callsites": "^3.0.0" + } + }, + "parse-entities": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-2.0.0.tgz", + "integrity": "sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==", + "requires": { + "character-entities": "^1.0.0", + "character-entities-legacy": "^1.0.0", + "character-reference-invalid": "^1.0.0", + "is-alphanumerical": "^1.0.0", + "is-decimal": "^1.0.0", + "is-hexadecimal": "^1.0.0" + }, + "dependencies": { + "character-entities": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-1.2.4.tgz", + "integrity": "sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw==" + } + } + }, + "parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + } + }, + "parse-numeric-range": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/parse-numeric-range/-/parse-numeric-range-1.3.0.tgz", + "integrity": "sha512-twN+njEipszzlMJd4ONUYgSfZPDxgHhT9Ahed5uTigpQn90FggW4SA/AIPq/6a149fTbE9qBEcSwE3FAEp6wQQ==" + }, + "parse5": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", + "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", + "requires": { + "entities": "^4.4.0" + } + }, + "parse5-htmlparser2-tree-adapter": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.0.0.tgz", + "integrity": "sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==", + "requires": { + "domhandler": "^5.0.2", + "parse5": "^7.0.0" + } + }, + "parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" + }, + "pascal-case": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", + "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", + "requires": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" + }, + "path-is-inside": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w==" + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" + }, + "path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" + }, + "path-to-regexp": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", + "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", + "requires": { + "isarray": "0.0.1" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" + } + } + }, + "path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==" + }, + "picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + }, + "picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==" + }, + "pidtree": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz", + "integrity": "sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==", + "dev": true + }, + "pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "requires": { + "find-up": "^4.0.0" + }, + "dependencies": { + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } }, - "regexp-ast-analysis": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/regexp-ast-analysis/-/regexp-ast-analysis-0.6.0.tgz", - "integrity": "sha512-OLxjyjPkVH+rQlBLb1I/P/VTmamSjGkvN5PTV5BXP432k3uVz727J7H29GA5IFiY0m7e1xBN7049Wn59FY3DEQ==", - "dev": true, - "requires": { - "@eslint-community/regexpp": "^4.5.0", - "refa": "^0.11.0" - } + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "requires": { + "p-locate": "^4.1.0" + } }, - "regexp.prototype.flags": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", - "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "functions-have-names": "^1.2.3" - } + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "requires": { + "p-try": "^2.0.0" + } }, - "regexpu-core": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", - "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", - "requires": { - "@babel/regjsgen": "^0.8.0", - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.1.0", - "regjsparser": "^0.9.1", - "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.1.0" - } + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "requires": { + "p-limit": "^2.2.0" + } + } + } + }, + "pkg-up": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz", + "integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==", + "requires": { + "find-up": "^3.0.0" + }, + "dependencies": { + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "requires": { + "locate-path": "^3.0.0" + } }, - "registry-auth-token": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.2.tgz", - "integrity": "sha512-PC5ZysNb42zpFME6D/XlIgtNGdTl8bBOCw90xQLVMpzuuubJKYDWFAEuUNc+Cn8Z8724tg2SDhDRrkVEsqfDMg==", - "requires": { - "rc": "1.2.8" - } + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } }, - "registry-url": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", - "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", - "requires": { - "rc": "^1.2.8" - } + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "requires": { + "p-try": "^2.0.0" + } }, - "regjsparser": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", - "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", - "requires": { - "jsesc": "~0.5.0" - }, - "dependencies": { - "jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==" - } - } + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "requires": { + "p-limit": "^2.0.0" + } }, - "relateurl": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", - "integrity": "sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==" - }, - "remark-deflist": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/remark-deflist/-/remark-deflist-1.0.0.tgz", - "integrity": "sha512-sDHM+ZbgWC6wwaxltMdH5x+XYMW8VpjyeHyC2ZCI106+iYgbPv8lBYKiNqdW0Cs0FVox/LysYhb3qIZe1b0cmg==", - "requires": { - "mdast-util-from-markdown": "^1.0.0", - "mdast-util-to-markdown": "^1.1.1", - "mdast-util-to-string": "^3.1.0", - "unist-util-visit": "^4.0.0" - }, - "dependencies": { - "mdast-util-to-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz", - "integrity": "sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==", - "requires": { - "@types/mdast": "^3.0.0" - } - }, - "unist-util-is": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", - "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", - "requires": { - "@types/unist": "^2.0.0" - } - }, - "unist-util-visit": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz", - "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==", - "requires": { - "@types/unist": "^2.0.0", - "unist-util-is": "^5.0.0", - "unist-util-visit-parents": "^5.1.1" - } - }, - "unist-util-visit-parents": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz", - "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==", - "requires": { - "@types/unist": "^2.0.0", - "unist-util-is": "^5.0.0" - } - } - } + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==" + } + } + }, + "postcss": { + "version": "8.4.24", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.24.tgz", + "integrity": "sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg==", + "requires": { + "nanoid": "^3.3.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + } + }, + "postcss-calc": { + "version": "8.2.4", + "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.2.4.tgz", + "integrity": "sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==", + "requires": { + "postcss-selector-parser": "^6.0.9", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-colormin": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.1.tgz", + "integrity": "sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ==", + "requires": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "colord": "^2.9.1", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-convert-values": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.1.3.tgz", + "integrity": "sha512-82pC1xkJZtcJEfiLw6UXnXVXScgtBrjlO5CBmuDQc+dlb88ZYheFsjTn40+zBVi3DkfF7iezO0nJUPLcJK3pvA==", + "requires": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-discard-comments": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz", + "integrity": "sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==", + "requires": {} + }, + "postcss-discard-duplicates": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz", + "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==", + "requires": {} + }, + "postcss-discard-empty": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz", + "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==", + "requires": {} + }, + "postcss-discard-overridden": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz", + "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==", + "requires": {} + }, + "postcss-discard-unused": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-unused/-/postcss-discard-unused-5.1.0.tgz", + "integrity": "sha512-KwLWymI9hbwXmJa0dkrzpRbSJEh0vVUd7r8t0yOGPcfKzyJJxFM8kLyC5Ev9avji6nY95pOp1W6HqIrfT+0VGw==", + "requires": { + "postcss-selector-parser": "^6.0.5" + } + }, + "postcss-loader": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-7.3.2.tgz", + "integrity": "sha512-c7qDlXErX6n0VT+LUsW+nwefVtTu3ORtVvK8EXuUIDcxo+b/euYqpuHlJAvePb0Af5e8uMjR/13e0lTuYifaig==", + "requires": { + "cosmiconfig": "^8.1.3", + "jiti": "^1.18.2", + "klona": "^2.0.6", + "semver": "^7.3.8" + }, + "dependencies": { + "cosmiconfig": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.2.0.tgz", + "integrity": "sha512-3rTMnFJA1tCOPwRxtgF4wd7Ab2qvDbL8jX+3smjIbS4HlZBagTlpERbdN7iAbWlrfxE3M8c27kTwTawQ7st+OQ==", + "requires": { + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "parse-json": "^5.0.0", + "path-type": "^4.0.0" + } }, - "remark-emoji": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/remark-emoji/-/remark-emoji-2.2.0.tgz", - "integrity": "sha512-P3cj9s5ggsUvWw5fS2uzCHJMGuXYRb0NnZqYlNecewXt8QBU9n5vW3DUUKOhepS8F9CwdMx9B8a3i7pqFWAI5w==", - "requires": { - "emoticon": "^3.2.0", - "node-emoji": "^1.10.0", - "unist-util-visit": "^2.0.3" - } + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "requires": { + "yallist": "^4.0.0" + } }, - "remark-footnotes": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/remark-footnotes/-/remark-footnotes-2.0.0.tgz", - "integrity": "sha512-3Clt8ZMH75Ayjp9q4CorNeyjwIxHFcTkaektplKGl2A1jNGEUey8cKL0ZC5vJwfcD5GFGsNLImLG/NGzWIzoMQ==" - }, - "remark-mdx": { - "version": "1.6.22", - "resolved": "https://registry.npmjs.org/remark-mdx/-/remark-mdx-1.6.22.tgz", - "integrity": "sha512-phMHBJgeV76uyFkH4rvzCftLfKCr2RZuF+/gmVcaKrpsihyzmhXjA0BEMDaPTXG5y8qZOKPVo83NAOX01LPnOQ==", - "requires": { - "@babel/core": "7.12.9", - "@babel/helper-plugin-utils": "7.10.4", - "@babel/plugin-proposal-object-rest-spread": "7.12.1", - "@babel/plugin-syntax-jsx": "7.12.1", - "@mdx-js/util": "1.6.22", - "is-alphabetical": "1.0.4", - "remark-parse": "8.0.3", - "unified": "9.2.0" - }, - "dependencies": { - "@babel/core": { - "version": "7.12.9", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.9.tgz", - "integrity": "sha512-gTXYh3M5wb7FRXQy+FErKFAv90BnlOuNn1QkCK2lREoPAjrQCO49+HVSrFoe5uakFAF5eenS75KbO2vQiLrTMQ==", - "requires": { - "@babel/code-frame": "^7.10.4", - "@babel/generator": "^7.12.5", - "@babel/helper-module-transforms": "^7.12.1", - "@babel/helpers": "^7.12.5", - "@babel/parser": "^7.12.7", - "@babel/template": "^7.12.7", - "@babel/traverse": "^7.12.9", - "@babel/types": "^7.12.7", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.1", - "json5": "^2.1.2", - "lodash": "^4.17.19", - "resolve": "^1.3.2", - "semver": "^5.4.1", - "source-map": "^0.5.0" - } - }, - "@babel/helper-plugin-utils": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz", - "integrity": "sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==" - }, - "@babel/plugin-syntax-jsx": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.12.1.tgz", - "integrity": "sha512-1yRi7yAtB0ETgxdY9ti/p2TivUxJkTdhu/ZbF9MshVGqOx1TdB3b7xCXs49Fupgg50N45KcAsRP/ZqWjs9SRjg==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==" - }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==" - }, - "unified": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/unified/-/unified-9.2.0.tgz", - "integrity": "sha512-vx2Z0vY+a3YoTj8+pttM3tiJHCwY5UFbYdiWrwBEbHmK8pvsPj2rtAX2BFfgXen8T39CJWblWRDT4L5WGXtDdg==", - "requires": { - "bail": "^1.0.0", - "extend": "^3.0.0", - "is-buffer": "^2.0.0", - "is-plain-obj": "^2.0.0", - "trough": "^1.0.0", - "vfile": "^4.0.0" - } - } - } + "semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "requires": { + "lru-cache": "^6.0.0" + } }, - "remark-parse": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-8.0.3.tgz", - "integrity": "sha512-E1K9+QLGgggHxCQtLt++uXltxEprmWzNfg+MxpfHsZlrddKzZ/hZyWHDbK3/Ap8HJQqYJRXP+jHczdL6q6i85Q==", - "requires": { - "ccount": "^1.0.0", - "collapse-white-space": "^1.0.2", - "is-alphabetical": "^1.0.0", - "is-decimal": "^1.0.0", - "is-whitespace-character": "^1.0.0", - "is-word-character": "^1.0.0", - "markdown-escapes": "^1.0.0", - "parse-entities": "^2.0.0", - "repeat-string": "^1.5.4", - "state-toggle": "^1.0.0", - "trim": "0.0.1", - "trim-trailing-lines": "^1.0.0", - "unherit": "^1.0.4", - "unist-util-remove-position": "^2.0.0", - "vfile-location": "^3.0.0", - "xtend": "^4.0.1" - } + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + } + } + }, + "postcss-media-query-parser": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz", + "integrity": "sha512-3sOlxmbKcSHMjlUXQZKQ06jOswE7oVkXPxmZdoB1r5l0q6gTFTQSHxNxOrCccElbW7dxNytifNEo8qidX2Vsig==", + "dev": true + }, + "postcss-merge-idents": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-merge-idents/-/postcss-merge-idents-5.1.1.tgz", + "integrity": "sha512-pCijL1TREiCoog5nQp7wUe+TUonA2tC2sQ54UGeMmryK3UFGIYKqDyjnqd6RcuI4znFn9hWSLNN8xKE/vWcUQw==", + "requires": { + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-merge-longhand": { + "version": "5.1.7", + "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz", + "integrity": "sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ==", + "requires": { + "postcss-value-parser": "^4.2.0", + "stylehacks": "^5.1.1" + } + }, + "postcss-merge-rules": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.1.4.tgz", + "integrity": "sha512-0R2IuYpgU93y9lhVbO/OylTtKMVcHb67zjWIfCiKR9rWL3GUk1677LAqD/BcHizukdZEjT8Ru3oHRoAYoJy44g==", + "requires": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "cssnano-utils": "^3.1.0", + "postcss-selector-parser": "^6.0.5" + } + }, + "postcss-minify-font-values": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz", + "integrity": "sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-minify-gradients": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz", + "integrity": "sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==", + "requires": { + "colord": "^2.9.1", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-minify-params": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.4.tgz", + "integrity": "sha512-+mePA3MgdmVmv6g+30rn57USjOGSAyuxUmkfiWpzalZ8aiBkdPYjXWtHuwJGm1v5Ojy0Z0LaSYhHaLJQB0P8Jw==", + "requires": { + "browserslist": "^4.21.4", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-minify-selectors": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz", + "integrity": "sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==", + "requires": { + "postcss-selector-parser": "^6.0.5" + } + }, + "postcss-modules-extract-imports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", + "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", + "requires": {} + }, + "postcss-modules-local-by-default": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.3.tgz", + "integrity": "sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==", + "requires": { + "icss-utils": "^5.0.0", + "postcss-selector-parser": "^6.0.2", + "postcss-value-parser": "^4.1.0" + } + }, + "postcss-modules-scope": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", + "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", + "requires": { + "postcss-selector-parser": "^6.0.4" + } + }, + "postcss-modules-values": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", + "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", + "requires": { + "icss-utils": "^5.0.0" + } + }, + "postcss-normalize-charset": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz", + "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==", + "requires": {} + }, + "postcss-normalize-display-values": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz", + "integrity": "sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-positions": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz", + "integrity": "sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-repeat-style": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz", + "integrity": "sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-string": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz", + "integrity": "sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-timing-functions": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz", + "integrity": "sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-unicode": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz", + "integrity": "sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA==", + "requires": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-url": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz", + "integrity": "sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==", + "requires": { + "normalize-url": "^6.0.1", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-whitespace": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz", + "integrity": "sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-ordered-values": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz", + "integrity": "sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==", + "requires": { + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-reduce-idents": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/postcss-reduce-idents/-/postcss-reduce-idents-5.2.0.tgz", + "integrity": "sha512-BTrLjICoSB6gxbc58D5mdBK8OhXRDqud/zodYfdSi52qvDHdMwk+9kB9xsM8yJThH/sZU5A6QVSmMmaN001gIg==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-reduce-initial": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz", + "integrity": "sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg==", + "requires": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0" + } + }, + "postcss-reduce-transforms": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz", + "integrity": "sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-resolve-nested-selector": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/postcss-resolve-nested-selector/-/postcss-resolve-nested-selector-0.1.1.tgz", + "integrity": "sha512-HvExULSwLqHLgUy1rl3ANIqCsvMS0WHss2UOsXhXnQaZ9VCc2oBvIpXrl00IUFT5ZDITME0o6oiXeiHr2SAIfw==", + "dev": true + }, + "postcss-safe-parser": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-6.0.0.tgz", + "integrity": "sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==", + "dev": true, + "requires": {} + }, + "postcss-selector-parser": { + "version": "6.0.13", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", + "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", + "requires": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + } + }, + "postcss-sort-media-queries": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/postcss-sort-media-queries/-/postcss-sort-media-queries-4.4.1.tgz", + "integrity": "sha512-QDESFzDDGKgpiIh4GYXsSy6sek2yAwQx1JASl5AxBtU1Lq2JfKBljIPNdil989NcSKRQX1ToiaKphImtBuhXWw==", + "requires": { + "sort-css-media-queries": "2.1.0" + } + }, + "postcss-svgo": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.1.0.tgz", + "integrity": "sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==", + "requires": { + "postcss-value-parser": "^4.2.0", + "svgo": "^2.7.0" + } + }, + "postcss-unique-selectors": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz", + "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==", + "requires": { + "postcss-selector-parser": "^6.0.5" + } + }, + "postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" + }, + "postcss-zindex": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-zindex/-/postcss-zindex-5.1.0.tgz", + "integrity": "sha512-fgFMf0OtVSBR1va1JNHYgMxYk73yhn/qb4uQDq1DLGYolz8gHCyr/sesEuGUaYs58E3ZJRcpoGuPVoB7Meiq9A==", + "requires": {} + }, + "prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "devOptional": true + }, + "prepend-http": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", + "integrity": "sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==" + }, + "prettier": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "dev": true + }, + "prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "dev": true, + "requires": { + "fast-diff": "^1.1.2" + } + }, + "pretty-error": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-4.0.0.tgz", + "integrity": "sha512-AoJ5YMAcXKYxKhuJGdcvse+Voc6v1RgnsR3nWcYU7q4t6z0Q6T86sv5Zq8VIRbOWWFpvdGE83LtdSMNd+6Y0xw==", + "requires": { + "lodash": "^4.17.20", + "renderkid": "^3.0.0" + } + }, + "pretty-time": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pretty-time/-/pretty-time-1.1.0.tgz", + "integrity": "sha512-28iF6xPQrP8Oa6uxE6a1biz+lWeTOAPKggvjB8HAs6nVMKZwf5bG++632Dx614hIWgUPkgivRfG+a8uAXGTIbA==" + }, + "prism-react-renderer": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/prism-react-renderer/-/prism-react-renderer-1.3.5.tgz", + "integrity": "sha512-IJ+MSwBWKG+SM3b2SUfdrhC+gu01QkV2KmRQgREThBfSQRoufqRfxfHUxpG1WcaFjP+kojcFyO9Qqtpgt3qLCg==", + "requires": {} + }, + "prismjs": { + "version": "1.29.0", + "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz", + "integrity": "sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==" + }, + "process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "promise": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", + "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", + "requires": { + "asap": "~2.0.3" + } + }, + "prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "requires": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + } + }, + "prop-types": { + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "requires": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + } + }, + "property-information": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/property-information/-/property-information-5.6.0.tgz", + "integrity": "sha512-YUHSPk+A30YPv+0Qf8i9Mbfe/C0hdPXk1s1jPVToV8pk8BQtpw10ct89Eo7OWkutrwqvT0eicAxlOg3dOAu8JA==", + "requires": { + "xtend": "^4.0.0" + } + }, + "proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "requires": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "dependencies": { + "ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" + } + } + }, + "pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==" + }, + "pupa": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/pupa/-/pupa-2.1.1.tgz", + "integrity": "sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A==", + "requires": { + "escape-goat": "^2.0.0" + } + }, + "pure-color": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/pure-color/-/pure-color-1.3.0.tgz", + "integrity": "sha512-QFADYnsVoBMw1srW7OVKEYjG+MbIa49s54w1MA1EDY6r2r/sTcKKYqRX1f4GYvnXP7eN/Pe9HFcX+hwzmrXRHA==" + }, + "qs": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "requires": { + "side-channel": "^1.0.4" + } + }, + "queue": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/queue/-/queue-6.0.2.tgz", + "integrity": "sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==", + "requires": { + "inherits": "~2.0.3" + } + }, + "queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==" + }, + "quick-lru": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", + "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", + "dev": true + }, + "randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "requires": { + "safe-buffer": "^5.1.0" + } + }, + "range-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz", + "integrity": "sha512-kA5WQoNVo4t9lNx2kQNFCxKeBl5IbbSNBl1M/tLkw9WCn+hxNBAW5Qh8gdhs63CJnhjJ2zQWFoqPJP2sK1AV5A==" + }, + "raw-body": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", + "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", + "requires": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "dependencies": { + "bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==" + } + } + }, + "rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "requires": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "dependencies": { + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==" + } + } + }, + "react": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz", + "integrity": "sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==", + "requires": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" + } + }, + "react-base16-styling": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/react-base16-styling/-/react-base16-styling-0.6.0.tgz", + "integrity": "sha512-yvh/7CArceR/jNATXOKDlvTnPKPmGZz7zsenQ3jUwLzHkNUR0CvY3yGYJbWJ/nnxsL8Sgmt5cO3/SILVuPO6TQ==", + "requires": { + "base16": "^1.0.0", + "lodash.curry": "^4.0.1", + "lodash.flow": "^3.3.0", + "pure-color": "^1.2.0" + } + }, + "react-dev-utils": { + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz", + "integrity": "sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ==", + "requires": { + "@babel/code-frame": "^7.16.0", + "address": "^1.1.2", + "browserslist": "^4.18.1", + "chalk": "^4.1.2", + "cross-spawn": "^7.0.3", + "detect-port-alt": "^1.1.6", + "escape-string-regexp": "^4.0.0", + "filesize": "^8.0.6", + "find-up": "^5.0.0", + "fork-ts-checker-webpack-plugin": "^6.5.0", + "global-modules": "^2.0.0", + "globby": "^11.0.4", + "gzip-size": "^6.0.0", + "immer": "^9.0.7", + "is-root": "^2.1.0", + "loader-utils": "^3.2.0", + "open": "^8.4.0", + "pkg-up": "^3.1.0", + "prompts": "^2.4.2", + "react-error-overlay": "^6.0.11", + "recursive-readdir": "^2.2.2", + "shell-quote": "^1.7.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } }, - "remark-rehype": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-10.1.0.tgz", - "integrity": "sha512-EFmR5zppdBp0WQeDVZ/b66CWJipB2q2VLNFMabzDSGR66Z2fQii83G5gTBbgGEnEEA0QRussvrFHxk1HWGJskw==", - "requires": { - "@types/hast": "^2.0.0", - "@types/mdast": "^3.0.0", - "mdast-util-to-hast": "^12.1.0", - "unified": "^10.0.0" - }, - "dependencies": { - "bail": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", - "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==" - }, - "is-plain-obj": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", - "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==" - }, - "mdast-util-definitions": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/mdast-util-definitions/-/mdast-util-definitions-5.1.2.tgz", - "integrity": "sha512-8SVPMuHqlPME/z3gqVwWY4zVXn8lqKv/pAhC57FuJ40ImXyBpmO5ukh98zB2v7Blql2FiHjHv9LVztSIqjY+MA==", - "requires": { - "@types/mdast": "^3.0.0", - "@types/unist": "^2.0.0", - "unist-util-visit": "^4.0.0" - } - }, - "mdast-util-to-hast": { - "version": "12.3.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-12.3.0.tgz", - "integrity": "sha512-pits93r8PhnIoU4Vy9bjW39M2jJ6/tdHyja9rrot9uujkN7UTU9SDnE6WNJz/IGyQk3XHX6yNNtrBH6cQzm8Hw==", - "requires": { - "@types/hast": "^2.0.0", - "@types/mdast": "^3.0.0", - "mdast-util-definitions": "^5.0.0", - "micromark-util-sanitize-uri": "^1.1.0", - "trim-lines": "^3.0.0", - "unist-util-generated": "^2.0.0", - "unist-util-position": "^4.0.0", - "unist-util-visit": "^4.0.0" - } - }, - "trough": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/trough/-/trough-2.1.0.tgz", - "integrity": "sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==" - }, - "unified": { - "version": "10.1.2", - "resolved": "https://registry.npmjs.org/unified/-/unified-10.1.2.tgz", - "integrity": "sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==", - "requires": { - "@types/unist": "^2.0.0", - "bail": "^2.0.0", - "extend": "^3.0.0", - "is-buffer": "^2.0.0", - "is-plain-obj": "^4.0.0", - "trough": "^2.0.0", - "vfile": "^5.0.0" - } - }, - "unist-util-generated": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/unist-util-generated/-/unist-util-generated-2.0.1.tgz", - "integrity": "sha512-qF72kLmPxAw0oN2fwpWIqbXAVyEqUzDHMsbtPvOudIlUzXYFIeQIuxXQCRCFh22B7cixvU0MG7m3MW8FTq/S+A==" - }, - "unist-util-is": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", - "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", - "requires": { - "@types/unist": "^2.0.0" - } - }, - "unist-util-position": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-4.0.4.tgz", - "integrity": "sha512-kUBE91efOWfIVBo8xzh/uZQ7p9ffYRtUbMRZBNFYwf0RK8koUMx6dGUfwylLOKmaT2cs4wSW96QoYUSXAyEtpg==", - "requires": { - "@types/unist": "^2.0.0" - } - }, - "unist-util-visit": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz", - "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==", - "requires": { - "@types/unist": "^2.0.0", - "unist-util-is": "^5.0.0", - "unist-util-visit-parents": "^5.1.1" - } - }, - "unist-util-visit-parents": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz", - "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==", - "requires": { - "@types/unist": "^2.0.0", - "unist-util-is": "^5.0.0" - } - }, - "vfile": { - "version": "5.3.7", - "resolved": "https://registry.npmjs.org/vfile/-/vfile-5.3.7.tgz", - "integrity": "sha512-r7qlzkgErKjobAmyNIkkSpizsFPYiUPuJb5pNW1RB4JcYVZhs4lIbVqk8XPk033CV/1z8ss5pkax8SuhGpcG8g==", - "requires": { - "@types/unist": "^2.0.0", - "is-buffer": "^2.0.0", - "unist-util-stringify-position": "^3.0.0", - "vfile-message": "^3.0.0" - } - }, - "vfile-message": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-3.1.4.tgz", - "integrity": "sha512-fa0Z6P8HUrQN4BZaX05SIVXic+7kE3b05PWAtPuYP9QLHsLKYR7/AlLW3NtOrpXRLeawpDLMsVkmk5DG0NXgWw==", - "requires": { - "@types/unist": "^2.0.0", - "unist-util-stringify-position": "^3.0.0" - } - } - } + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } }, - "remark-squeeze-paragraphs": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/remark-squeeze-paragraphs/-/remark-squeeze-paragraphs-4.0.0.tgz", - "integrity": "sha512-8qRqmL9F4nuLPIgl92XUuxI3pFxize+F1H0e/W3llTk0UsjJaj01+RrirkMw7P21RKe4X6goQhYRSvNWX+70Rw==", - "requires": { - "mdast-squeeze-paragraphs": "^4.0.0" - } + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } }, - "renderkid": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-3.0.0.tgz", - "integrity": "sha512-q/7VIQA8lmM1hF+jn+sFSPWGlMkSAeNYcPLmDQx2zzuiDfaLrOmumR8iaUKlenFgh0XRPIUeSPlH3A+AW3Z5pg==", - "requires": { - "css-select": "^4.1.3", - "dom-converter": "^0.2.0", - "htmlparser2": "^6.1.0", - "lodash": "^4.17.21", - "strip-ansi": "^6.0.1" - }, - "dependencies": { - "css-select": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", - "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", - "requires": { - "boolbase": "^1.0.0", - "css-what": "^6.0.1", - "domhandler": "^4.3.1", - "domutils": "^2.8.0", - "nth-check": "^2.0.1" - } - }, - "dom-serializer": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", - "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", - "requires": { - "domelementtype": "^2.0.1", - "domhandler": "^4.2.0", - "entities": "^2.0.0" - } - }, - "domhandler": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", - "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", - "requires": { - "domelementtype": "^2.2.0" - } - }, - "domutils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", - "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", - "requires": { - "dom-serializer": "^1.0.1", - "domelementtype": "^2.2.0", - "domhandler": "^4.2.0" - } - }, - "entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==" - }, - "htmlparser2": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", - "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", - "requires": { - "domelementtype": "^2.0.1", - "domhandler": "^4.0.0", - "domutils": "^2.5.2", - "entities": "^2.0.0" - } - } - } + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, - "repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==" + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" }, - "require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==" + "loader-utils": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-3.2.1.tgz", + "integrity": "sha512-ZvFw1KWS3GVyYBYb7qkmRM/WwL2TQQBxgCK62rlvm4WpVQ23Nb4tYjApUlfjrEGvOs7KHEsmyUn75OHZrJMWPw==" }, - "require-like": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/require-like/-/require-like-0.1.2.tgz", - "integrity": "sha512-oyrU88skkMtDdauHDuKVrgR+zuItqr6/c//FXzvmxRGMexSDc6hNvJInGW3LL46n+8b50RykrvwSUIIQH2LQ5A==" + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "react-dom": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-17.0.2.tgz", + "integrity": "sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==", + "requires": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1", + "scheduler": "^0.20.2" + } + }, + "react-error-overlay": { + "version": "6.0.11", + "resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz", + "integrity": "sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==" + }, + "react-fast-compare": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.2.tgz", + "integrity": "sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==" + }, + "react-github-btn": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/react-github-btn/-/react-github-btn-1.4.0.tgz", + "integrity": "sha512-lV4FYClAfjWnBfv0iNlJUGhamDgIq6TayD0kPZED6VzHWdpcHmPfsYOZ/CFwLfPv4Zp+F4m8QKTj0oy2HjiGXg==", + "requires": { + "github-buttons": "^2.22.0" + } + }, + "react-helmet-async": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/react-helmet-async/-/react-helmet-async-1.3.0.tgz", + "integrity": "sha512-9jZ57/dAn9t3q6hneQS0wukqC2ENOBgMNVEhb/ZG9ZSxUetzVIw4iAmEU38IaVg3QGYauQPhSeUTuIUtFglWpg==", + "requires": { + "@babel/runtime": "^7.12.5", + "invariant": "^2.2.4", + "prop-types": "^15.7.2", + "react-fast-compare": "^3.2.0", + "shallowequal": "^1.1.0" + } + }, + "react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" + }, + "react-json-view": { + "version": "1.21.3", + "resolved": "https://registry.npmjs.org/react-json-view/-/react-json-view-1.21.3.tgz", + "integrity": "sha512-13p8IREj9/x/Ye4WI/JpjhoIwuzEgUAtgJZNBJckfzJt1qyh24BdTm6UQNGnyTq9dapQdrqvquZTo3dz1X6Cjw==", + "requires": { + "flux": "^4.0.1", + "react-base16-styling": "^0.6.0", + "react-lifecycles-compat": "^3.0.4", + "react-textarea-autosize": "^8.3.2" + } + }, + "react-lifecycles-compat": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz", + "integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==" + }, + "react-loadable": { + "version": "npm:@docusaurus/react-loadable@5.5.2", + "resolved": "https://registry.npmjs.org/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz", + "integrity": "sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ==", + "requires": { + "@types/react": "*", + "prop-types": "^15.6.2" + } + }, + "react-loadable-ssr-addon-v5-slorber": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/react-loadable-ssr-addon-v5-slorber/-/react-loadable-ssr-addon-v5-slorber-1.0.1.tgz", + "integrity": "sha512-lq3Lyw1lGku8zUEJPDxsNm1AfYHBrO9Y1+olAYwpUJ2IGFBskM0DMKok97A6LWUpHm+o7IvQBOWu9MLenp9Z+A==", + "requires": { + "@babel/runtime": "^7.10.3" + } + }, + "react-markdown": { + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-8.0.7.tgz", + "integrity": "sha512-bvWbzG4MtOU62XqBx3Xx+zB2raaFFsq4mYiAzfjXJMEz2sixgeAfraA3tvzULF02ZdOMUOKTBFFaZJDDrq+BJQ==", + "requires": { + "@types/hast": "^2.0.0", + "@types/prop-types": "^15.0.0", + "@types/unist": "^2.0.0", + "comma-separated-tokens": "^2.0.0", + "hast-util-whitespace": "^2.0.0", + "prop-types": "^15.0.0", + "property-information": "^6.0.0", + "react-is": "^18.0.0", + "remark-parse": "^10.0.0", + "remark-rehype": "^10.0.0", + "space-separated-tokens": "^2.0.0", + "style-to-object": "^0.4.0", + "unified": "^10.0.0", + "unist-util-visit": "^4.0.0", + "vfile": "^5.0.0" + }, + "dependencies": { + "bail": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", + "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==" }, - "requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" + "comma-separated-tokens": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", + "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==" }, - "resolve": { - "version": "1.22.2", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", - "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", - "requires": { - "is-core-module": "^2.11.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } + "is-plain-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", + "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==" }, - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==" - }, - "resolve-pathname": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-pathname/-/resolve-pathname-3.0.0.tgz", - "integrity": "sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng==" - }, - "responselike": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", - "integrity": "sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ==", - "requires": { - "lowercase-keys": "^1.0.0" - } + "property-information": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/property-information/-/property-information-6.2.0.tgz", + "integrity": "sha512-kma4U7AFCTwpqq5twzC1YVIDXSqg6qQK6JN0smOw8fgRy1OkMi0CYSzFmsy6dnqSenamAtj0CyXMUJ1Mf6oROg==" }, - "restore-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", - "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", - "dev": true, - "requires": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" - }, - "dependencies": { - "mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true - }, - "onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "requires": { - "mimic-fn": "^2.1.0" - } - } - } + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" }, - "retry": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", - "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==" - }, - "reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==" - }, - "rfdc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz", - "integrity": "sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==", - "dev": true - }, - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "requires": { - "glob": "^7.1.3" - } + "remark-parse": { + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-10.0.2.tgz", + "integrity": "sha512-3ydxgHa/ZQzG8LvC7jTXccARYDcRld3VfcgIIFs7bI6vbRSxJJmzgLEIIoYKyrfhaY+ujuWaf/PJiMZXoiCXgw==", + "requires": { + "@types/mdast": "^3.0.0", + "mdast-util-from-markdown": "^1.0.0", + "unified": "^10.0.0" + } }, - "rtl-detect": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/rtl-detect/-/rtl-detect-1.0.4.tgz", - "integrity": "sha512-EBR4I2VDSSYr7PkBmFy04uhycIpDKp+21p/jARYXlCSjQksTBQcJ0HFUPOO79EPPH5JS6VAhiIQbycf0O3JAxQ==" - }, - "rtlcss": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/rtlcss/-/rtlcss-3.5.0.tgz", - "integrity": "sha512-wzgMaMFHQTnyi9YOwsx9LjOxYXJPzS8sYnFaKm6R5ysvTkwzHiB0vxnbHwchHQT65PTdBjDG21/kQBWI7q9O7A==", - "requires": { - "find-up": "^5.0.0", - "picocolors": "^1.0.0", - "postcss": "^8.3.11", - "strip-json-comments": "^3.1.1" - } + "space-separated-tokens": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz", + "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==" }, - "run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "requires": { - "queue-microtask": "^1.2.2" - } + "style-to-object": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-0.4.1.tgz", + "integrity": "sha512-HFpbb5gr2ypci7Qw+IOhnP2zOU7e77b+rzM+wTzXzfi1PrtBCX0E7Pk4wL4iTLnhzZ+JgEGAhX81ebTg/aYjQw==", + "requires": { + "inline-style-parser": "0.1.1" + } }, - "rxjs": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", - "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", - "requires": { - "tslib": "^2.1.0" - } + "trough": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/trough/-/trough-2.1.0.tgz", + "integrity": "sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==" }, - "sade": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz", - "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==", - "requires": { - "mri": "^1.1.0" - } + "unified": { + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/unified/-/unified-10.1.2.tgz", + "integrity": "sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==", + "requires": { + "@types/unist": "^2.0.0", + "bail": "^2.0.0", + "extend": "^3.0.0", + "is-buffer": "^2.0.0", + "is-plain-obj": "^4.0.0", + "trough": "^2.0.0", + "vfile": "^5.0.0" + } }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" - }, - "safe-regex-test": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", - "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-regex": "^1.1.4" - } + "unist-util-is": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", + "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", + "requires": { + "@types/unist": "^2.0.0" + } }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - }, - "sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" - }, - "scheduler": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", - "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", - "requires": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1" - } + "unist-util-visit": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz", + "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==", + "requires": { + "@types/unist": "^2.0.0", + "unist-util-is": "^5.0.0", + "unist-util-visit-parents": "^5.1.1" + } }, - "schema-utils": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", - "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", - "requires": { - "@types/json-schema": "^7.0.5", - "ajv": "^6.12.4", - "ajv-keywords": "^3.5.2" - } + "unist-util-visit-parents": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz", + "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==", + "requires": { + "@types/unist": "^2.0.0", + "unist-util-is": "^5.0.0" + } }, - "scslre": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/scslre/-/scslre-0.2.0.tgz", - "integrity": "sha512-4hc49fUMmX3jM0XdFUAPBrs1xwEcdHa0KyjEsjFs+Zfc66mpFpq5YmRgDtl+Ffo6AtJIilfei+yKw8fUn3N88w==", - "dev": true, - "requires": { - "@eslint-community/regexpp": "^4.5.0", - "refa": "^0.11.0", - "regexp-ast-analysis": "^0.6.0" - } + "vfile": { + "version": "5.3.7", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-5.3.7.tgz", + "integrity": "sha512-r7qlzkgErKjobAmyNIkkSpizsFPYiUPuJb5pNW1RB4JcYVZhs4lIbVqk8XPk033CV/1z8ss5pkax8SuhGpcG8g==", + "requires": { + "@types/unist": "^2.0.0", + "is-buffer": "^2.0.0", + "unist-util-stringify-position": "^3.0.0", + "vfile-message": "^3.0.0" + } }, - "section-matter": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/section-matter/-/section-matter-1.0.0.tgz", - "integrity": "sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==", - "requires": { - "extend-shallow": "^2.0.1", - "kind-of": "^6.0.0" - } + "vfile-message": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-3.1.4.tgz", + "integrity": "sha512-fa0Z6P8HUrQN4BZaX05SIVXic+7kE3b05PWAtPuYP9QLHsLKYR7/AlLW3NtOrpXRLeawpDLMsVkmk5DG0NXgWw==", + "requires": { + "@types/unist": "^2.0.0", + "unist-util-stringify-position": "^3.0.0" + } + } + } + }, + "react-player": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/react-player/-/react-player-2.12.0.tgz", + "integrity": "sha512-rymLRz/2GJJD+Wc01S7S+i9pGMFYnNmQibR2gVE3KmHJCBNN8BhPAlOPTGZtn1uKpJ6p4RPLlzPQ1OLreXd8gw==", + "requires": { + "deepmerge": "^4.0.0", + "load-script": "^1.0.0", + "memoize-one": "^5.1.1", + "prop-types": "^15.7.2", + "react-fast-compare": "^3.0.1" + } + }, + "react-router": { + "version": "5.3.4", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-5.3.4.tgz", + "integrity": "sha512-Ys9K+ppnJah3QuaRiLxk+jDWOR1MekYQrlytiXxC1RyfbdsZkS5pvKAzCCr031xHixZwpnsYNT5xysdFHQaYsA==", + "requires": { + "@babel/runtime": "^7.12.13", + "history": "^4.9.0", + "hoist-non-react-statics": "^3.1.0", + "loose-envify": "^1.3.1", + "path-to-regexp": "^1.7.0", + "prop-types": "^15.6.2", + "react-is": "^16.6.0", + "tiny-invariant": "^1.0.2", + "tiny-warning": "^1.0.0" + } + }, + "react-router-config": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/react-router-config/-/react-router-config-5.1.1.tgz", + "integrity": "sha512-DuanZjaD8mQp1ppHjgnnUnyOlqYXZVjnov/JzFhjLEwd3Z4dYjMSnqrEzzGThH47vpCOqPPwJM2FtthLeJ8Pbg==", + "requires": { + "@babel/runtime": "^7.1.2" + } + }, + "react-router-dom": { + "version": "5.3.4", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-5.3.4.tgz", + "integrity": "sha512-m4EqFMHv/Ih4kpcBCONHbkT68KoAeHN4p3lAGoNryfHi0dMy0kCzEZakiKRsvg5wHZ/JLrLW8o8KomWiz/qbYQ==", + "requires": { + "@babel/runtime": "^7.12.13", + "history": "^4.9.0", + "loose-envify": "^1.3.1", + "prop-types": "^15.6.2", + "react-router": "5.3.4", + "tiny-invariant": "^1.0.2", + "tiny-warning": "^1.0.0" + } + }, + "react-textarea-autosize": { + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/react-textarea-autosize/-/react-textarea-autosize-8.4.1.tgz", + "integrity": "sha512-aD2C+qK6QypknC+lCMzteOdIjoMbNlgSFmJjCV+DrfTPwp59i/it9mMNf2HDzvRjQgKAyBDPyLJhcrzElf2U4Q==", + "requires": { + "@babel/runtime": "^7.20.13", + "use-composed-ref": "^1.3.0", + "use-latest": "^1.2.1" + } + }, + "read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "requires": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "dependencies": { + "hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true }, - "select-hose": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", - "integrity": "sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==" - }, - "selfsigned": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.1.1.tgz", - "integrity": "sha512-GSL3aowiF7wa/WtSFwnUrludWFoNhftq8bUkH9pkzjpN2XSPOAYEgg6e0sS9s0rZwgJzJiQRPU18A6clnoW5wQ==", - "requires": { - "node-forge": "^1" - } + "normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "requires": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } }, "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - }, - "semver-diff": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", - "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", - "requires": { - "semver": "^6.3.0" - } - }, - "send": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", - "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", - "requires": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "2.4.1", - "range-parser": "~1.2.1", - "statuses": "2.0.1" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - }, - "dependencies": { - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - } - } - }, - "ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - }, - "range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" - } - } - }, - "serialize-javascript": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", - "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", - "requires": { - "randombytes": "^2.1.0" - } + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true }, - "serve-handler": { - "version": "6.1.5", - "resolved": "https://registry.npmjs.org/serve-handler/-/serve-handler-6.1.5.tgz", - "integrity": "sha512-ijPFle6Hwe8zfmBxJdE+5fta53fdIY0lHISJvuikXB3VYFafRjMRpOffSPvCYsbKyBA7pvy9oYr/BT1O3EArlg==", - "requires": { - "bytes": "3.0.0", - "content-disposition": "0.5.2", - "fast-url-parser": "1.1.3", - "mime-types": "2.1.18", - "minimatch": "3.1.2", - "path-is-inside": "1.0.2", - "path-to-regexp": "2.2.1", - "range-parser": "1.2.0" - }, - "dependencies": { - "path-to-regexp": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-2.2.1.tgz", - "integrity": "sha512-gu9bD6Ta5bwGrrU8muHzVOBFFREpp2iRkVfhBJahwJ6p6Xw20SjT0MxLnwkjOibQmGSYhiUnf2FLe7k+jcFmGQ==" - } - } - }, - "serve-index": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", - "integrity": "sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw==", - "requires": { - "accepts": "~1.3.4", - "batch": "0.6.1", - "debug": "2.6.9", - "escape-html": "~1.0.3", - "http-errors": "~1.6.2", - "mime-types": "~2.1.17", - "parseurl": "~1.3.2" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==" - }, - "http-errors": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", - "integrity": "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==", - "requires": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.0", - "statuses": ">= 1.4.0 < 2" - } - }, - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==" - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "setprototypeof": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", - "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" - }, - "statuses": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==" - } - } - }, - "serve-static": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", - "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", - "requires": { - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.18.0" - } - }, - "setimmediate": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==" - }, - "setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" - }, - "shallow-clone": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", - "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", - "requires": { - "kind-of": "^6.0.2" - } - }, - "shallowequal": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz", - "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==" - }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" - }, - "shell-quote": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", - "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==" - }, - "shelljs": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", - "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", - "requires": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" - } - }, - "side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "requires": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - } + "type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true + } + } + }, + "read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dev": true, + "requires": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "dependencies": { + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } }, - "signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" - }, - "sirv": { - "version": "1.0.19", - "resolved": "https://registry.npmjs.org/sirv/-/sirv-1.0.19.tgz", - "integrity": "sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==", - "requires": { - "@polka/url": "^1.0.0-next.20", - "mrmime": "^1.0.0", - "totalist": "^1.0.0" - } + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } }, - "sisteransi": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==" - }, - "sitemap": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/sitemap/-/sitemap-7.1.1.tgz", - "integrity": "sha512-mK3aFtjz4VdJN0igpIJrinf3EO8U8mxOPsTBzSsy06UtjZQJ3YY3o3Xa7zSc5nMqcMrRwlChHZ18Kxg0caiPBg==", - "requires": { - "@types/node": "^17.0.5", - "@types/sax": "^1.2.1", - "arg": "^5.0.0", - "sax": "^1.2.4" - }, - "dependencies": { - "@types/node": { - "version": "17.0.45", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz", - "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==" - } - } + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } }, - "slice-ansi": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz", - "integrity": "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==", - "dev": true, - "requires": { - "ansi-styles": "^6.0.0", - "is-fullwidth-code-point": "^4.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "dev": true - } - } + "type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true + } + } + }, + "readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + }, + "readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "requires": { + "picomatch": "^2.2.1" + } + }, + "reading-time": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/reading-time/-/reading-time-1.5.0.tgz", + "integrity": "sha512-onYyVhBNr4CmAxFsKS7bz+uTLRakypIe4R+5A824vBSkQy/hB3fZepoVEf8OVAxzLvK+H/jm9TzpI3ETSm64Kg==" + }, + "rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", + "requires": { + "resolve": "^1.1.6" + } + }, + "recursive-readdir": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.2.3.tgz", + "integrity": "sha512-8HrF5ZsXk5FAH9dgsx3BlUer73nIhuj+9OrQwEbLTPOBzGkL1lsFCR01am+v+0m2Cmbs1nP12hLDl5FA7EszKA==", + "requires": { + "minimatch": "^3.0.5" + } + }, + "redent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", + "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", + "dev": true, + "requires": { + "indent-string": "^4.0.0", + "strip-indent": "^3.0.0" + } + }, + "refa": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/refa/-/refa-0.11.0.tgz", + "integrity": "sha512-486O8/pQXwj9jV0mVvUnTsxq0uknpBnNJ0eCUhkZqJRQ8KutrT1PhzmumdCeM1hSBF2eMlFPmwECRER4IbKXlQ==", + "dev": true, + "requires": { + "@eslint-community/regexpp": "^4.5.0" + } + }, + "regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==" + }, + "regenerate-unicode-properties": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz", + "integrity": "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==", + "requires": { + "regenerate": "^1.4.2" + } + }, + "regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" + }, + "regenerator-transform": { + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.1.tgz", + "integrity": "sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg==", + "requires": { + "@babel/runtime": "^7.8.4" + } + }, + "regexp-ast-analysis": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/regexp-ast-analysis/-/regexp-ast-analysis-0.6.0.tgz", + "integrity": "sha512-OLxjyjPkVH+rQlBLb1I/P/VTmamSjGkvN5PTV5BXP432k3uVz727J7H29GA5IFiY0m7e1xBN7049Wn59FY3DEQ==", + "dev": true, + "requires": { + "@eslint-community/regexpp": "^4.5.0", + "refa": "^0.11.0" + } + }, + "regexp.prototype.flags": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", + "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "functions-have-names": "^1.2.3" + } + }, + "regexpu-core": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", + "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", + "requires": { + "@babel/regjsgen": "^0.8.0", + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.1.0", + "regjsparser": "^0.9.1", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.1.0" + } + }, + "registry-auth-token": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.2.tgz", + "integrity": "sha512-PC5ZysNb42zpFME6D/XlIgtNGdTl8bBOCw90xQLVMpzuuubJKYDWFAEuUNc+Cn8Z8724tg2SDhDRrkVEsqfDMg==", + "requires": { + "rc": "1.2.8" + } + }, + "registry-url": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", + "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", + "requires": { + "rc": "^1.2.8" + } + }, + "regjsparser": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", + "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", + "requires": { + "jsesc": "~0.5.0" + }, + "dependencies": { + "jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==" + } + } + }, + "relateurl": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", + "integrity": "sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==" + }, + "remark-deflist": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/remark-deflist/-/remark-deflist-1.0.0.tgz", + "integrity": "sha512-sDHM+ZbgWC6wwaxltMdH5x+XYMW8VpjyeHyC2ZCI106+iYgbPv8lBYKiNqdW0Cs0FVox/LysYhb3qIZe1b0cmg==", + "requires": { + "mdast-util-from-markdown": "^1.0.0", + "mdast-util-to-markdown": "^1.1.1", + "mdast-util-to-string": "^3.1.0", + "unist-util-visit": "^4.0.0" + }, + "dependencies": { + "mdast-util-to-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz", + "integrity": "sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==", + "requires": { + "@types/mdast": "^3.0.0" + } }, - "sockjs": { - "version": "0.3.24", - "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz", - "integrity": "sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ==", - "requires": { - "faye-websocket": "^0.11.3", - "uuid": "^8.3.2", - "websocket-driver": "^0.7.4" - } + "unist-util-is": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", + "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", + "requires": { + "@types/unist": "^2.0.0" + } }, - "sort-css-media-queries": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/sort-css-media-queries/-/sort-css-media-queries-2.1.0.tgz", - "integrity": "sha512-IeWvo8NkNiY2vVYdPa27MCQiR0MN0M80johAYFVxWWXQ44KU84WNxjslwBHmc/7ZL2ccwkM7/e6S5aiKZXm7jA==" + "unist-util-visit": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz", + "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==", + "requires": { + "@types/unist": "^2.0.0", + "unist-util-is": "^5.0.0", + "unist-util-visit-parents": "^5.1.1" + } }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - }, - "source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==" - }, - "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } + "unist-util-visit-parents": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz", + "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==", + "requires": { + "@types/unist": "^2.0.0", + "unist-util-is": "^5.0.0" + } + } + } + }, + "remark-emoji": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/remark-emoji/-/remark-emoji-2.2.0.tgz", + "integrity": "sha512-P3cj9s5ggsUvWw5fS2uzCHJMGuXYRb0NnZqYlNecewXt8QBU9n5vW3DUUKOhepS8F9CwdMx9B8a3i7pqFWAI5w==", + "requires": { + "emoticon": "^3.2.0", + "node-emoji": "^1.10.0", + "unist-util-visit": "^2.0.3" + } + }, + "remark-footnotes": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/remark-footnotes/-/remark-footnotes-2.0.0.tgz", + "integrity": "sha512-3Clt8ZMH75Ayjp9q4CorNeyjwIxHFcTkaektplKGl2A1jNGEUey8cKL0ZC5vJwfcD5GFGsNLImLG/NGzWIzoMQ==" + }, + "remark-mdx": { + "version": "1.6.22", + "resolved": "https://registry.npmjs.org/remark-mdx/-/remark-mdx-1.6.22.tgz", + "integrity": "sha512-phMHBJgeV76uyFkH4rvzCftLfKCr2RZuF+/gmVcaKrpsihyzmhXjA0BEMDaPTXG5y8qZOKPVo83NAOX01LPnOQ==", + "requires": { + "@babel/core": "7.12.9", + "@babel/helper-plugin-utils": "7.10.4", + "@babel/plugin-proposal-object-rest-spread": "7.12.1", + "@babel/plugin-syntax-jsx": "7.12.1", + "@mdx-js/util": "1.6.22", + "is-alphabetical": "1.0.4", + "remark-parse": "8.0.3", + "unified": "9.2.0" + }, + "dependencies": { + "@babel/core": { + "version": "7.12.9", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.9.tgz", + "integrity": "sha512-gTXYh3M5wb7FRXQy+FErKFAv90BnlOuNn1QkCK2lREoPAjrQCO49+HVSrFoe5uakFAF5eenS75KbO2vQiLrTMQ==", + "requires": { + "@babel/code-frame": "^7.10.4", + "@babel/generator": "^7.12.5", + "@babel/helper-module-transforms": "^7.12.1", + "@babel/helpers": "^7.12.5", + "@babel/parser": "^7.12.7", + "@babel/template": "^7.12.7", + "@babel/traverse": "^7.12.9", + "@babel/types": "^7.12.7", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.1", + "json5": "^2.1.2", + "lodash": "^4.17.19", + "resolve": "^1.3.2", + "semver": "^5.4.1", + "source-map": "^0.5.0" + } }, - "space-separated-tokens": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz", - "integrity": "sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==" - }, - "spdx-correct": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", - "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", - "dev": true, - "requires": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } + "@babel/helper-plugin-utils": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz", + "integrity": "sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==" }, - "spdx-exceptions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", - "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", - "dev": true - }, - "spdx-expression-parse": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", - "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", - "dev": true, - "requires": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } + "@babel/plugin-syntax-jsx": { + "version": "7.12.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.12.1.tgz", + "integrity": "sha512-1yRi7yAtB0ETgxdY9ti/p2TivUxJkTdhu/ZbF9MshVGqOx1TdB3b7xCXs49Fupgg50N45KcAsRP/ZqWjs9SRjg==", + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } }, - "spdx-license-ids": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.13.tgz", - "integrity": "sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==", - "dev": true - }, - "spdy": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", - "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", - "requires": { - "debug": "^4.1.0", - "handle-thing": "^2.0.0", - "http-deceiver": "^1.2.7", - "select-hose": "^2.0.0", - "spdy-transport": "^3.0.0" - } + "is-plain-obj": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", + "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==" }, - "spdy-transport": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", - "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", - "requires": { - "debug": "^4.1.0", - "detect-node": "^2.0.4", - "hpack.js": "^2.1.6", - "obuf": "^1.1.2", - "readable-stream": "^3.0.6", - "wbuf": "^1.7.3" - } + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==" }, - "stable": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", - "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==" + "unified": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/unified/-/unified-9.2.0.tgz", + "integrity": "sha512-vx2Z0vY+a3YoTj8+pttM3tiJHCwY5UFbYdiWrwBEbHmK8pvsPj2rtAX2BFfgXen8T39CJWblWRDT4L5WGXtDdg==", + "requires": { + "bail": "^1.0.0", + "extend": "^3.0.0", + "is-buffer": "^2.0.0", + "is-plain-obj": "^2.0.0", + "trough": "^1.0.0", + "vfile": "^4.0.0" + } + } + } + }, + "remark-parse": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-8.0.3.tgz", + "integrity": "sha512-E1K9+QLGgggHxCQtLt++uXltxEprmWzNfg+MxpfHsZlrddKzZ/hZyWHDbK3/Ap8HJQqYJRXP+jHczdL6q6i85Q==", + "requires": { + "ccount": "^1.0.0", + "collapse-white-space": "^1.0.2", + "is-alphabetical": "^1.0.0", + "is-decimal": "^1.0.0", + "is-whitespace-character": "^1.0.0", + "is-word-character": "^1.0.0", + "markdown-escapes": "^1.0.0", + "parse-entities": "^2.0.0", + "repeat-string": "^1.5.4", + "state-toggle": "^1.0.0", + "trim": "0.0.1", + "trim-trailing-lines": "^1.0.0", + "unherit": "^1.0.4", + "unist-util-remove-position": "^2.0.0", + "vfile-location": "^3.0.0", + "xtend": "^4.0.1" + } + }, + "remark-rehype": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-10.1.0.tgz", + "integrity": "sha512-EFmR5zppdBp0WQeDVZ/b66CWJipB2q2VLNFMabzDSGR66Z2fQii83G5gTBbgGEnEEA0QRussvrFHxk1HWGJskw==", + "requires": { + "@types/hast": "^2.0.0", + "@types/mdast": "^3.0.0", + "mdast-util-to-hast": "^12.1.0", + "unified": "^10.0.0" + }, + "dependencies": { + "bail": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", + "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==" }, - "state-toggle": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/state-toggle/-/state-toggle-1.0.3.tgz", - "integrity": "sha512-d/5Z4/2iiCnHw6Xzghyhb+GcmF89bxwgXG60wjIiZaxnymbyOmI8Hk4VqHXiVVp6u2ysaskFfXg3ekCj4WNftQ==" + "is-plain-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", + "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==" }, - "statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==" - }, - "std-env": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.3.3.tgz", - "integrity": "sha512-Rz6yejtVyWnVjC1RFvNmYL10kgjC49EOghxWn0RFqlCHGFpQx+Xe7yW3I4ceK1SGrWIGMjD5Kbue8W/udkbMJg==" - }, - "stop-iteration-iterator": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz", - "integrity": "sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==", - "dev": true, - "requires": { - "internal-slot": "^1.0.4" - } + "mdast-util-definitions": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/mdast-util-definitions/-/mdast-util-definitions-5.1.2.tgz", + "integrity": "sha512-8SVPMuHqlPME/z3gqVwWY4zVXn8lqKv/pAhC57FuJ40ImXyBpmO5ukh98zB2v7Blql2FiHjHv9LVztSIqjY+MA==", + "requires": { + "@types/mdast": "^3.0.0", + "@types/unist": "^2.0.0", + "unist-util-visit": "^4.0.0" + } }, - "string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "requires": { - "safe-buffer": "~5.2.0" - } + "mdast-util-to-hast": { + "version": "12.3.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-12.3.0.tgz", + "integrity": "sha512-pits93r8PhnIoU4Vy9bjW39M2jJ6/tdHyja9rrot9uujkN7UTU9SDnE6WNJz/IGyQk3XHX6yNNtrBH6cQzm8Hw==", + "requires": { + "@types/hast": "^2.0.0", + "@types/mdast": "^3.0.0", + "mdast-util-definitions": "^5.0.0", + "micromark-util-sanitize-uri": "^1.1.0", + "trim-lines": "^3.0.0", + "unist-util-generated": "^2.0.0", + "unist-util-position": "^4.0.0", + "unist-util-visit": "^4.0.0" + } }, - "string-argv": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz", - "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==", - "dev": true + "trough": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/trough/-/trough-2.1.0.tgz", + "integrity": "sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==" }, - "string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "requires": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==" - }, - "strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "requires": { - "ansi-regex": "^6.0.1" - } - } - } + "unified": { + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/unified/-/unified-10.1.2.tgz", + "integrity": "sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==", + "requires": { + "@types/unist": "^2.0.0", + "bail": "^2.0.0", + "extend": "^3.0.0", + "is-buffer": "^2.0.0", + "is-plain-obj": "^4.0.0", + "trough": "^2.0.0", + "vfile": "^5.0.0" + } }, - "string.prototype.matchall": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz", - "integrity": "sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.3", - "regexp.prototype.flags": "^1.4.3", - "side-channel": "^1.0.4" - } + "unist-util-generated": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unist-util-generated/-/unist-util-generated-2.0.1.tgz", + "integrity": "sha512-qF72kLmPxAw0oN2fwpWIqbXAVyEqUzDHMsbtPvOudIlUzXYFIeQIuxXQCRCFh22B7cixvU0MG7m3MW8FTq/S+A==" }, - "string.prototype.trim": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", - "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } + "unist-util-is": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", + "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", + "requires": { + "@types/unist": "^2.0.0" + } }, - "string.prototype.trimend": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", - "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } + "unist-util-position": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-4.0.4.tgz", + "integrity": "sha512-kUBE91efOWfIVBo8xzh/uZQ7p9ffYRtUbMRZBNFYwf0RK8koUMx6dGUfwylLOKmaT2cs4wSW96QoYUSXAyEtpg==", + "requires": { + "@types/unist": "^2.0.0" + } }, - "string.prototype.trimstart": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", - "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } + "unist-util-visit": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz", + "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==", + "requires": { + "@types/unist": "^2.0.0", + "unist-util-is": "^5.0.0", + "unist-util-visit-parents": "^5.1.1" + } }, - "stringify-object": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.3.0.tgz", - "integrity": "sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==", - "requires": { - "get-own-enumerable-property-symbols": "^3.0.0", - "is-obj": "^1.0.1", - "is-regexp": "^1.0.0" - } + "unist-util-visit-parents": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz", + "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==", + "requires": { + "@types/unist": "^2.0.0", + "unist-util-is": "^5.0.0" + } }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "requires": { - "ansi-regex": "^5.0.1" - } + "vfile": { + "version": "5.3.7", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-5.3.7.tgz", + "integrity": "sha512-r7qlzkgErKjobAmyNIkkSpizsFPYiUPuJb5pNW1RB4JcYVZhs4lIbVqk8XPk033CV/1z8ss5pkax8SuhGpcG8g==", + "requires": { + "@types/unist": "^2.0.0", + "is-buffer": "^2.0.0", + "unist-util-stringify-position": "^3.0.0", + "vfile-message": "^3.0.0" + } }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true + "vfile-message": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-3.1.4.tgz", + "integrity": "sha512-fa0Z6P8HUrQN4BZaX05SIVXic+7kE3b05PWAtPuYP9QLHsLKYR7/AlLW3NtOrpXRLeawpDLMsVkmk5DG0NXgWw==", + "requires": { + "@types/unist": "^2.0.0", + "unist-util-stringify-position": "^3.0.0" + } + } + } + }, + "remark-squeeze-paragraphs": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/remark-squeeze-paragraphs/-/remark-squeeze-paragraphs-4.0.0.tgz", + "integrity": "sha512-8qRqmL9F4nuLPIgl92XUuxI3pFxize+F1H0e/W3llTk0UsjJaj01+RrirkMw7P21RKe4X6goQhYRSvNWX+70Rw==", + "requires": { + "mdast-squeeze-paragraphs": "^4.0.0" + } + }, + "renderkid": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-3.0.0.tgz", + "integrity": "sha512-q/7VIQA8lmM1hF+jn+sFSPWGlMkSAeNYcPLmDQx2zzuiDfaLrOmumR8iaUKlenFgh0XRPIUeSPlH3A+AW3Z5pg==", + "requires": { + "css-select": "^4.1.3", + "dom-converter": "^0.2.0", + "htmlparser2": "^6.1.0", + "lodash": "^4.17.21", + "strip-ansi": "^6.0.1" + }, + "dependencies": { + "css-select": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", + "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "requires": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + } }, - "strip-bom-string": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-bom-string/-/strip-bom-string-1.0.0.tgz", - "integrity": "sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==" + "dom-serializer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", + "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + } }, - "strip-final-newline": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", - "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", - "dev": true - }, - "strip-indent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", - "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", - "dev": true, - "requires": { - "min-indent": "^1.0.0" - } + "domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "requires": { + "domelementtype": "^2.2.0" + } }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==" + "domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "requires": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + } }, - "style-search": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/style-search/-/style-search-0.1.0.tgz", - "integrity": "sha512-Dj1Okke1C3uKKwQcetra4jSuk0DqbzbYtXipzFlFMZtowbF1x7BKJwB9AayVMyFARvU8EDrZdcax4At/452cAg==", - "dev": true + "entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==" }, - "style-to-object": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-0.3.0.tgz", - "integrity": "sha512-CzFnRRXhzWIdItT3OmF8SQfWyahHhjq3HwcMNCNLn+N7klOOqPjMeG/4JSu77D7ypZdGvSzvkrbyeTMizz2VrA==", - "requires": { - "inline-style-parser": "0.1.1" - } + "htmlparser2": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", + "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^4.0.0", + "domutils": "^2.5.2", + "entities": "^2.0.0" + } + } + } + }, + "repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==" + }, + "require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==" + }, + "require-like": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/require-like/-/require-like-0.1.2.tgz", + "integrity": "sha512-oyrU88skkMtDdauHDuKVrgR+zuItqr6/c//FXzvmxRGMexSDc6hNvJInGW3LL46n+8b50RykrvwSUIIQH2LQ5A==" + }, + "requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" + }, + "resolve": { + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", + "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", + "requires": { + "is-core-module": "^2.11.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + } + }, + "resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==" + }, + "resolve-pathname": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-pathname/-/resolve-pathname-3.0.0.tgz", + "integrity": "sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng==" + }, + "responselike": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", + "integrity": "sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ==", + "requires": { + "lowercase-keys": "^1.0.0" + } + }, + "restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "dev": true, + "requires": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + }, + "dependencies": { + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true }, - "stylehacks": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz", - "integrity": "sha512-sBpcd5Hx7G6seo7b1LkpttvTz7ikD0LlH5RmdcBNb6fFR0Fl7LQwHDFr300q4cwUqi+IYrFGmsIHieMBfnN/Bw==", - "requires": { - "browserslist": "^4.21.4", - "postcss-selector-parser": "^6.0.4" - } + "onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "requires": { + "mimic-fn": "^2.1.0" + } + } + } + }, + "retry": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", + "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==" + }, + "reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==" + }, + "rfdc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz", + "integrity": "sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==", + "dev": true + }, + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "requires": { + "glob": "^7.1.3" + } + }, + "rtl-detect": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/rtl-detect/-/rtl-detect-1.0.4.tgz", + "integrity": "sha512-EBR4I2VDSSYr7PkBmFy04uhycIpDKp+21p/jARYXlCSjQksTBQcJ0HFUPOO79EPPH5JS6VAhiIQbycf0O3JAxQ==" + }, + "rtlcss": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/rtlcss/-/rtlcss-3.5.0.tgz", + "integrity": "sha512-wzgMaMFHQTnyi9YOwsx9LjOxYXJPzS8sYnFaKm6R5ysvTkwzHiB0vxnbHwchHQT65PTdBjDG21/kQBWI7q9O7A==", + "requires": { + "find-up": "^5.0.0", + "picocolors": "^1.0.0", + "postcss": "^8.3.11", + "strip-json-comments": "^3.1.1" + } + }, + "run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "requires": { + "queue-microtask": "^1.2.2" + } + }, + "rxjs": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "requires": { + "tslib": "^2.1.0" + } + }, + "sade": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz", + "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==", + "requires": { + "mri": "^1.1.0" + } + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + }, + "safe-regex-test": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", + "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + } + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" + }, + "scheduler": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", + "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", + "requires": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" + } + }, + "schema-utils": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", + "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", + "requires": { + "@types/json-schema": "^7.0.5", + "ajv": "^6.12.4", + "ajv-keywords": "^3.5.2" + } + }, + "scslre": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/scslre/-/scslre-0.2.0.tgz", + "integrity": "sha512-4hc49fUMmX3jM0XdFUAPBrs1xwEcdHa0KyjEsjFs+Zfc66mpFpq5YmRgDtl+Ffo6AtJIilfei+yKw8fUn3N88w==", + "dev": true, + "requires": { + "@eslint-community/regexpp": "^4.5.0", + "refa": "^0.11.0", + "regexp-ast-analysis": "^0.6.0" + } + }, + "section-matter": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/section-matter/-/section-matter-1.0.0.tgz", + "integrity": "sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==", + "requires": { + "extend-shallow": "^2.0.1", + "kind-of": "^6.0.0" + } + }, + "select-hose": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", + "integrity": "sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==" + }, + "selfsigned": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.1.1.tgz", + "integrity": "sha512-GSL3aowiF7wa/WtSFwnUrludWFoNhftq8bUkH9pkzjpN2XSPOAYEgg6e0sS9s0rZwgJzJiQRPU18A6clnoW5wQ==", + "requires": { + "node-forge": "^1" + } + }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + }, + "semver-diff": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", + "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", + "requires": { + "semver": "^6.3.0" + } + }, + "send": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "requires": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + }, + "dependencies": { + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + } + } }, - "stylelint": { - "version": "14.16.1", - "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-14.16.1.tgz", - "integrity": "sha512-ErlzR/T3hhbV+a925/gbfc3f3Fep9/bnspMiJPorfGEmcBbXdS+oo6LrVtoUZ/w9fqD6o6k7PtUlCOsCRdjX/A==", - "dev": true, - "requires": { - "@csstools/selector-specificity": "^2.0.2", - "balanced-match": "^2.0.0", - "colord": "^2.9.3", - "cosmiconfig": "^7.1.0", - "css-functions-list": "^3.1.0", - "debug": "^4.3.4", - "fast-glob": "^3.2.12", - "fastest-levenshtein": "^1.0.16", - "file-entry-cache": "^6.0.1", - "global-modules": "^2.0.0", - "globby": "^11.1.0", - "globjoin": "^0.1.4", - "html-tags": "^3.2.0", - "ignore": "^5.2.1", - "import-lazy": "^4.0.0", - "imurmurhash": "^0.1.4", - "is-plain-object": "^5.0.0", - "known-css-properties": "^0.26.0", - "mathml-tag-names": "^2.1.3", - "meow": "^9.0.0", - "micromatch": "^4.0.5", - "normalize-path": "^3.0.0", - "picocolors": "^1.0.0", - "postcss": "^8.4.19", - "postcss-media-query-parser": "^0.2.3", - "postcss-resolve-nested-selector": "^0.1.1", - "postcss-safe-parser": "^6.0.0", - "postcss-selector-parser": "^6.0.11", - "postcss-value-parser": "^4.2.0", - "resolve-from": "^5.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1", - "style-search": "^0.1.0", - "supports-hyperlinks": "^2.3.0", - "svg-tags": "^1.0.0", - "table": "^6.8.1", - "v8-compile-cache": "^2.3.0", - "write-file-atomic": "^4.0.2" - }, - "dependencies": { - "balanced-match": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-2.0.0.tgz", - "integrity": "sha512-1ugUSr8BHXRnK23KfuYS+gVMC3LB8QGH9W1iGtDPsNWoQbgtXSExkBu2aDR4epiGWZOjZsj6lDl/N/AqqTC3UA==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - } - } + "ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" }, - "stylelint-config-prettier": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/stylelint-config-prettier/-/stylelint-config-prettier-9.0.5.tgz", - "integrity": "sha512-U44lELgLZhbAD/xy/vncZ2Pq8sh2TnpiPvo38Ifg9+zeioR+LAkHu0i6YORIOxFafZoVg0xqQwex6e6F25S5XA==", - "dev": true, - "requires": {} - }, - "stylelint-config-recommended": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-9.0.0.tgz", - "integrity": "sha512-9YQSrJq4NvvRuTbzDsWX3rrFOzOlYBmZP+o513BJN/yfEmGSr0AxdvrWs0P/ilSpVV/wisamAHu5XSk8Rcf4CQ==", - "dev": true, - "requires": {} - }, - "stylelint-config-standard": { - "version": "29.0.0", - "resolved": "https://registry.npmjs.org/stylelint-config-standard/-/stylelint-config-standard-29.0.0.tgz", - "integrity": "sha512-uy8tZLbfq6ZrXy4JKu3W+7lYLgRQBxYTUUB88vPgQ+ZzAxdrvcaSUW9hOMNLYBnwH+9Kkj19M2DHdZ4gKwI7tg==", - "dev": true, - "requires": { - "stylelint-config-recommended": "^9.0.0" - } + "range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" + } + } + }, + "serialize-javascript": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", + "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", + "requires": { + "randombytes": "^2.1.0" + } + }, + "serve-handler": { + "version": "6.1.5", + "resolved": "https://registry.npmjs.org/serve-handler/-/serve-handler-6.1.5.tgz", + "integrity": "sha512-ijPFle6Hwe8zfmBxJdE+5fta53fdIY0lHISJvuikXB3VYFafRjMRpOffSPvCYsbKyBA7pvy9oYr/BT1O3EArlg==", + "requires": { + "bytes": "3.0.0", + "content-disposition": "0.5.2", + "fast-url-parser": "1.1.3", + "mime-types": "2.1.18", + "minimatch": "3.1.2", + "path-is-inside": "1.0.2", + "path-to-regexp": "2.2.1", + "range-parser": "1.2.0" + }, + "dependencies": { + "path-to-regexp": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-2.2.1.tgz", + "integrity": "sha512-gu9bD6Ta5bwGrrU8muHzVOBFFREpp2iRkVfhBJahwJ6p6Xw20SjT0MxLnwkjOibQmGSYhiUnf2FLe7k+jcFmGQ==" + } + } + }, + "serve-index": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", + "integrity": "sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw==", + "requires": { + "accepts": "~1.3.4", + "batch": "0.6.1", + "debug": "2.6.9", + "escape-html": "~1.0.3", + "http-errors": "~1.6.2", + "mime-types": "~2.1.17", + "parseurl": "~1.3.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "requires": { - "has-flag": "^3.0.0" - } + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==" }, - "supports-hyperlinks": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", - "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", - "dev": true, - "requires": { - "has-flag": "^4.0.0", - "supports-color": "^7.0.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } + "http-errors": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", + "integrity": "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==", + "requires": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": ">= 1.4.0 < 2" + } }, - "supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==" - }, - "svg-parser": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/svg-parser/-/svg-parser-2.0.4.tgz", - "integrity": "sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==" - }, - "svg-tags": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/svg-tags/-/svg-tags-1.0.0.tgz", - "integrity": "sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==", - "dev": true - }, - "svgo": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", - "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", - "requires": { - "@trysound/sax": "0.2.0", - "commander": "^7.2.0", - "css-select": "^4.1.3", - "css-tree": "^1.1.3", - "csso": "^4.2.0", - "picocolors": "^1.0.0", - "stable": "^0.1.8" - }, - "dependencies": { - "commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==" - }, - "css-select": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", - "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", - "requires": { - "boolbase": "^1.0.0", - "css-what": "^6.0.1", - "domhandler": "^4.3.1", - "domutils": "^2.8.0", - "nth-check": "^2.0.1" - } - }, - "dom-serializer": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", - "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", - "requires": { - "domelementtype": "^2.0.1", - "domhandler": "^4.2.0", - "entities": "^2.0.0" - } - }, - "domhandler": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", - "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", - "requires": { - "domelementtype": "^2.2.0" - } - }, - "domutils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", - "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", - "requires": { - "dom-serializer": "^1.0.1", - "domelementtype": "^2.2.0", - "domhandler": "^4.2.0" - } - }, - "entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==" - } - } + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==" }, - "table": { - "version": "6.8.1", - "resolved": "https://registry.npmjs.org/table/-/table-6.8.1.tgz", - "integrity": "sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA==", - "dev": true, - "requires": { - "ajv": "^8.0.1", - "lodash.truncate": "^4.4.2", - "slice-ansi": "^4.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1" - }, - "dependencies": { - "ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - } - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - } - } + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, - "tapable": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==" - }, - "terser": { - "version": "5.17.7", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.17.7.tgz", - "integrity": "sha512-/bi0Zm2C6VAexlGgLlVxA0P2lru/sdLyfCVaRMfKVo9nWxbmz7f/sD8VPybPeSUJaJcwmCJis9pBIhcVcG1QcQ==", - "requires": { - "@jridgewell/source-map": "^0.3.3", - "acorn": "^8.8.2", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - }, - "dependencies": { - "commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" - } - } + "setprototypeof": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", + "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" }, - "terser-webpack-plugin": { - "version": "5.3.9", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", - "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", - "requires": { - "@jridgewell/trace-mapping": "^0.3.17", - "jest-worker": "^27.4.5", - "schema-utils": "^3.1.1", - "serialize-javascript": "^6.0.1", - "terser": "^5.16.8" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - } - }, - "schema-utils": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", - "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } - }, - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "requires": { - "has-flag": "^4.0.0" - } - } - } + "statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==" + } + } + }, + "serve-static": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", + "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "requires": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + } + }, + "setimmediate": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==" + }, + "setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + }, + "shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "requires": { + "kind-of": "^6.0.2" + } + }, + "shallowequal": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz", + "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==" + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" + }, + "shell-quote": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", + "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==" + }, + "shelljs": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", + "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", + "requires": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + } + }, + "side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "requires": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + } + }, + "signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" + }, + "sirv": { + "version": "1.0.19", + "resolved": "https://registry.npmjs.org/sirv/-/sirv-1.0.19.tgz", + "integrity": "sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==", + "requires": { + "@polka/url": "^1.0.0-next.20", + "mrmime": "^1.0.0", + "totalist": "^1.0.0" + } + }, + "sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==" + }, + "sitemap": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/sitemap/-/sitemap-7.1.1.tgz", + "integrity": "sha512-mK3aFtjz4VdJN0igpIJrinf3EO8U8mxOPsTBzSsy06UtjZQJ3YY3o3Xa7zSc5nMqcMrRwlChHZ18Kxg0caiPBg==", + "requires": { + "@types/node": "^17.0.5", + "@types/sax": "^1.2.1", + "arg": "^5.0.0", + "sax": "^1.2.4" + }, + "dependencies": { + "@types/node": { + "version": "17.0.45", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz", + "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==" + } + } + }, + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" + }, + "slice-ansi": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz", + "integrity": "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==", + "dev": true, + "requires": { + "ansi-styles": "^6.0.0", + "is-fullwidth-code-point": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true + } + } + }, + "sockjs": { + "version": "0.3.24", + "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz", + "integrity": "sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ==", + "requires": { + "faye-websocket": "^0.11.3", + "uuid": "^8.3.2", + "websocket-driver": "^0.7.4" + } + }, + "sort-css-media-queries": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/sort-css-media-queries/-/sort-css-media-queries-2.1.0.tgz", + "integrity": "sha512-IeWvo8NkNiY2vVYdPa27MCQiR0MN0M80johAYFVxWWXQ44KU84WNxjslwBHmc/7ZL2ccwkM7/e6S5aiKZXm7jA==" + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + }, + "source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==" + }, + "source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "space-separated-tokens": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz", + "integrity": "sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==" + }, + "spdx-correct": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", + "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", + "dev": true, + "requires": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-exceptions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "dev": true + }, + "spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dev": true, + "requires": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-license-ids": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.13.tgz", + "integrity": "sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==", + "dev": true + }, + "spdy": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", + "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", + "requires": { + "debug": "^4.1.0", + "handle-thing": "^2.0.0", + "http-deceiver": "^1.2.7", + "select-hose": "^2.0.0", + "spdy-transport": "^3.0.0" + } + }, + "spdy-transport": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", + "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", + "requires": { + "debug": "^4.1.0", + "detect-node": "^2.0.4", + "hpack.js": "^2.1.6", + "obuf": "^1.1.2", + "readable-stream": "^3.0.6", + "wbuf": "^1.7.3" + } + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" + }, + "stable": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", + "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==" + }, + "state-toggle": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/state-toggle/-/state-toggle-1.0.3.tgz", + "integrity": "sha512-d/5Z4/2iiCnHw6Xzghyhb+GcmF89bxwgXG60wjIiZaxnymbyOmI8Hk4VqHXiVVp6u2ysaskFfXg3ekCj4WNftQ==" + }, + "statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==" + }, + "std-env": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.3.3.tgz", + "integrity": "sha512-Rz6yejtVyWnVjC1RFvNmYL10kgjC49EOghxWn0RFqlCHGFpQx+Xe7yW3I4ceK1SGrWIGMjD5Kbue8W/udkbMJg==" + }, + "stop-iteration-iterator": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz", + "integrity": "sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==", + "dev": true, + "requires": { + "internal-slot": "^1.0.4" + } + }, + "string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "requires": { + "safe-buffer": "~5.2.0" + } + }, + "string-argv": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz", + "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==", + "dev": true + }, + "string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "requires": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==" }, - "text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==" - }, - "through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", - "dev": true - }, - "thunky": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", - "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==" - }, - "tiny-invariant": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.1.tgz", - "integrity": "sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw==" - }, - "tiny-warning": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz", - "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==" - }, - "to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==" - }, - "to-readable-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", - "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==" - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "requires": { - "is-number": "^7.0.0" - } + "strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "requires": { + "ansi-regex": "^6.0.1" + } + } + } + }, + "string.prototype.matchall": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz", + "integrity": "sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.3", + "regexp.prototype.flags": "^1.4.3", + "side-channel": "^1.0.4" + } + }, + "string.prototype.trim": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", + "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + } + }, + "string.prototype.trimend": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", + "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + } + }, + "string.prototype.trimstart": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", + "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + } + }, + "stringify-object": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.3.0.tgz", + "integrity": "sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==", + "requires": { + "get-own-enumerable-property-symbols": "^3.0.0", + "is-obj": "^1.0.1", + "is-regexp": "^1.0.0" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "requires": { + "ansi-regex": "^5.0.1" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true + }, + "strip-bom-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-bom-string/-/strip-bom-string-1.0.0.tgz", + "integrity": "sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==" + }, + "strip-final-newline": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", + "dev": true + }, + "strip-indent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", + "dev": true, + "requires": { + "min-indent": "^1.0.0" + } + }, + "strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==" + }, + "style-search": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/style-search/-/style-search-0.1.0.tgz", + "integrity": "sha512-Dj1Okke1C3uKKwQcetra4jSuk0DqbzbYtXipzFlFMZtowbF1x7BKJwB9AayVMyFARvU8EDrZdcax4At/452cAg==", + "dev": true + }, + "style-to-object": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-0.3.0.tgz", + "integrity": "sha512-CzFnRRXhzWIdItT3OmF8SQfWyahHhjq3HwcMNCNLn+N7klOOqPjMeG/4JSu77D7ypZdGvSzvkrbyeTMizz2VrA==", + "requires": { + "inline-style-parser": "0.1.1" + } + }, + "stylehacks": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz", + "integrity": "sha512-sBpcd5Hx7G6seo7b1LkpttvTz7ikD0LlH5RmdcBNb6fFR0Fl7LQwHDFr300q4cwUqi+IYrFGmsIHieMBfnN/Bw==", + "requires": { + "browserslist": "^4.21.4", + "postcss-selector-parser": "^6.0.4" + } + }, + "stylelint": { + "version": "14.16.1", + "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-14.16.1.tgz", + "integrity": "sha512-ErlzR/T3hhbV+a925/gbfc3f3Fep9/bnspMiJPorfGEmcBbXdS+oo6LrVtoUZ/w9fqD6o6k7PtUlCOsCRdjX/A==", + "dev": true, + "requires": { + "@csstools/selector-specificity": "^2.0.2", + "balanced-match": "^2.0.0", + "colord": "^2.9.3", + "cosmiconfig": "^7.1.0", + "css-functions-list": "^3.1.0", + "debug": "^4.3.4", + "fast-glob": "^3.2.12", + "fastest-levenshtein": "^1.0.16", + "file-entry-cache": "^6.0.1", + "global-modules": "^2.0.0", + "globby": "^11.1.0", + "globjoin": "^0.1.4", + "html-tags": "^3.2.0", + "ignore": "^5.2.1", + "import-lazy": "^4.0.0", + "imurmurhash": "^0.1.4", + "is-plain-object": "^5.0.0", + "known-css-properties": "^0.26.0", + "mathml-tag-names": "^2.1.3", + "meow": "^9.0.0", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "picocolors": "^1.0.0", + "postcss": "^8.4.19", + "postcss-media-query-parser": "^0.2.3", + "postcss-resolve-nested-selector": "^0.1.1", + "postcss-safe-parser": "^6.0.0", + "postcss-selector-parser": "^6.0.11", + "postcss-value-parser": "^4.2.0", + "resolve-from": "^5.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "style-search": "^0.1.0", + "supports-hyperlinks": "^2.3.0", + "svg-tags": "^1.0.0", + "table": "^6.8.1", + "v8-compile-cache": "^2.3.0", + "write-file-atomic": "^4.0.2" + }, + "dependencies": { + "balanced-match": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-2.0.0.tgz", + "integrity": "sha512-1ugUSr8BHXRnK23KfuYS+gVMC3LB8QGH9W1iGtDPsNWoQbgtXSExkBu2aDR4epiGWZOjZsj6lDl/N/AqqTC3UA==", + "dev": true }, - "toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==" - }, - "totalist": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/totalist/-/totalist-1.1.0.tgz", - "integrity": "sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==" - }, - "tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, - "trim": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/trim/-/trim-0.0.1.tgz", - "integrity": "sha512-YzQV+TZg4AxpKxaTHK3c3D+kRDCGVEE7LemdlQZoQXn0iennk10RsIoY6ikzAqJTc9Xjl9C1/waHom/J86ziAQ==" - }, - "trim-lines": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", - "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==" - }, - "trim-newlines": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", - "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", - "dev": true - }, - "trim-trailing-lines": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/trim-trailing-lines/-/trim-trailing-lines-1.1.4.tgz", - "integrity": "sha512-rjUWSqnfTNrjbB9NQWfPMH/xRK1deHeGsHoVfpxJ++XeYXE0d6B1En37AHfw3jtfTU7dzMzZL2jjpe8Qb5gLIQ==" + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true }, - "trough": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/trough/-/trough-1.0.5.tgz", - "integrity": "sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA==" - }, - "tsconfig-paths": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", - "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", - "dev": true, - "requires": { - "@types/json5": "^0.0.29", - "json5": "^1.0.2", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - }, - "dependencies": { - "json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dev": true, - "requires": { - "minimist": "^1.2.0" - } - } - } + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true }, - "tslib": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz", - "integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==" - }, - "tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "requires": { - "tslib": "^1.8.1" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } - } + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true }, - "type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "devOptional": true, - "requires": { - "prelude-ls": "^1.2.1" - } + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + } + } + }, + "stylelint-config-prettier": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/stylelint-config-prettier/-/stylelint-config-prettier-9.0.5.tgz", + "integrity": "sha512-U44lELgLZhbAD/xy/vncZ2Pq8sh2TnpiPvo38Ifg9+zeioR+LAkHu0i6YORIOxFafZoVg0xqQwex6e6F25S5XA==", + "dev": true, + "requires": {} + }, + "stylelint-config-recommended": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-9.0.0.tgz", + "integrity": "sha512-9YQSrJq4NvvRuTbzDsWX3rrFOzOlYBmZP+o513BJN/yfEmGSr0AxdvrWs0P/ilSpVV/wisamAHu5XSk8Rcf4CQ==", + "dev": true, + "requires": {} + }, + "stylelint-config-standard": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/stylelint-config-standard/-/stylelint-config-standard-29.0.0.tgz", + "integrity": "sha512-uy8tZLbfq6ZrXy4JKu3W+7lYLgRQBxYTUUB88vPgQ+ZzAxdrvcaSUW9hOMNLYBnwH+9Kkj19M2DHdZ4gKwI7tg==", + "dev": true, + "requires": { + "stylelint-config-recommended": "^9.0.0" + } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "requires": { + "has-flag": "^3.0.0" + } + }, + "supports-hyperlinks": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", + "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", + "dev": true, + "requires": { + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true }, - "type-fest": { - "version": "2.19.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz", - "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==" - }, - "type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "requires": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - }, - "dependencies": { - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "requires": { - "mime-db": "1.52.0" - } - } - } + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==" + }, + "svg-parser": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/svg-parser/-/svg-parser-2.0.4.tgz", + "integrity": "sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==" + }, + "svg-tags": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/svg-tags/-/svg-tags-1.0.0.tgz", + "integrity": "sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==", + "dev": true + }, + "svgo": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", + "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", + "requires": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^4.1.3", + "css-tree": "^1.1.3", + "csso": "^4.2.0", + "picocolors": "^1.0.0", + "stable": "^0.1.8" + }, + "dependencies": { + "commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==" }, - "typed-array-length": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", - "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "is-typed-array": "^1.1.9" - } + "css-select": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", + "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "requires": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + } }, - "typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "requires": { - "is-typedarray": "^1.0.0" - } + "dom-serializer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", + "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + } }, - "typescript": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz", - "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==" - }, - "ua-parser-js": { - "version": "1.0.35", - "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.35.tgz", - "integrity": "sha512-fKnGuqmTBnIE+/KXSzCn4db8RTigUzw1AN0DmdU6hJovUTbYJKyqj+8Mt1c4VfRDnOVJnENmfYkIPZ946UrSAA==" - }, - "unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - } + "domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "requires": { + "domelementtype": "^2.2.0" + } }, - "unherit": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/unherit/-/unherit-1.1.3.tgz", - "integrity": "sha512-Ft16BJcnapDKp0+J/rqFC3Rrk6Y/Ng4nzsC028k2jdDII/rdZ7Wd3pPT/6+vIIxRagwRc9K0IUX0Ra4fKvw+WQ==", - "requires": { - "inherits": "^2.0.0", - "xtend": "^4.0.0" - } + "domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "requires": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + } }, - "unicode-canonical-property-names-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", - "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==" - }, - "unicode-match-property-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", - "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", - "requires": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - } + "entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==" + } + } + }, + "table": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/table/-/table-6.8.1.tgz", + "integrity": "sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA==", + "dev": true, + "requires": { + "ajv": "^8.0.1", + "lodash.truncate": "^4.4.2", + "slice-ansi": "^4.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "dependencies": { + "ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } }, - "unicode-match-property-value-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", - "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==" + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } }, - "unicode-property-aliases-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", - "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==" + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } }, - "unified": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/unified/-/unified-9.2.2.tgz", - "integrity": "sha512-Sg7j110mtefBD+qunSLO1lqOEKdrwBFBrR6Qd8f4uwkhWNlbkaqwHse6e7QvD3AP/MNoJdEDLaf8OxYyoWgorQ==", - "requires": { - "bail": "^1.0.0", - "extend": "^3.0.0", - "is-buffer": "^2.0.0", - "is-plain-obj": "^2.0.0", - "trough": "^1.0.0", - "vfile": "^4.0.0" - }, - "dependencies": { - "is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==" - } - } + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, - "unique-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", - "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", - "requires": { - "crypto-random-string": "^2.0.0" - } + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true }, - "unist-builder": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/unist-builder/-/unist-builder-2.0.3.tgz", - "integrity": "sha512-f98yt5pnlMWlzP539tPc4grGMsFaQQlP/vM396b00jngsiINumNmsY8rkXjfoi1c6QaM8nQ3vaGDuoKWbe/1Uw==" + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true }, - "unist-util-generated": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/unist-util-generated/-/unist-util-generated-1.1.6.tgz", - "integrity": "sha512-cln2Mm1/CZzN5ttGK7vkoGw+RZ8VcUH6BtGbq98DDtRGquAAOXig1mrBQYelOwMXYS8rK+vZDyyojSjp7JX+Lg==" + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true }, - "unist-util-is": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.1.0.tgz", - "integrity": "sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==" + "slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + } }, - "unist-util-position": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-3.1.0.tgz", - "integrity": "sha512-w+PkwCbYSFw8vpgWD0v7zRCl1FpY3fjDSQ3/N/wNd9Ffa4gPi8+4keqt99N3XW6F99t/mUzp2xAhNmfKWp95QA==" - }, - "unist-util-remove": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unist-util-remove/-/unist-util-remove-2.1.0.tgz", - "integrity": "sha512-J8NYPyBm4baYLdCbjmf1bhPu45Cr1MWTm77qd9istEkzWpnN6O9tMsEbB2JhNnBCqGENRqEWomQ+He6au0B27Q==", - "requires": { - "unist-util-is": "^4.0.0" - } + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + } + } + }, + "tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==" + }, + "terser": { + "version": "5.17.7", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.17.7.tgz", + "integrity": "sha512-/bi0Zm2C6VAexlGgLlVxA0P2lru/sdLyfCVaRMfKVo9nWxbmz7f/sD8VPybPeSUJaJcwmCJis9pBIhcVcG1QcQ==", + "requires": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "dependencies": { + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + } + } + }, + "terser-webpack-plugin": { + "version": "5.3.9", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", + "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", + "requires": { + "@jridgewell/trace-mapping": "^0.3.17", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.16.8" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" }, - "unist-util-remove-position": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/unist-util-remove-position/-/unist-util-remove-position-2.0.1.tgz", - "integrity": "sha512-fDZsLYIe2uT+oGFnuZmy73K6ZxOPG/Qcm+w7jbEjaFcJgbQ6cqjs/eSPzXhsmGpAsWPkqZM9pYjww5QTn3LHMA==", - "requires": { - "unist-util-visit": "^2.0.0" - } + "jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + } }, - "unist-util-stringify-position": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-3.0.3.tgz", - "integrity": "sha512-k5GzIBZ/QatR8N5X2y+drfpWG8IDBzdnVj6OInRNWm1oXrzydiaAT2OQiA8DPRRZyAKb9b6I2a6PxYklZD0gKg==", - "requires": { - "@types/unist": "^2.0.0" - } + "schema-utils": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", + "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } }, - "unist-util-visit": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.3.tgz", - "integrity": "sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==", - "requires": { - "@types/unist": "^2.0.0", - "unist-util-is": "^4.0.0", - "unist-util-visit-parents": "^3.0.0" - } + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==" + }, + "through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "dev": true + }, + "thunky": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", + "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==" + }, + "tiny-invariant": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.1.tgz", + "integrity": "sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw==" + }, + "tiny-warning": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz", + "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==" + }, + "to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==" + }, + "to-readable-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", + "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==" + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "requires": { + "is-number": "^7.0.0" + } + }, + "toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==" + }, + "totalist": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/totalist/-/totalist-1.1.0.tgz", + "integrity": "sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==" + }, + "tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "trim": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/trim/-/trim-0.0.1.tgz", + "integrity": "sha512-YzQV+TZg4AxpKxaTHK3c3D+kRDCGVEE7LemdlQZoQXn0iennk10RsIoY6ikzAqJTc9Xjl9C1/waHom/J86ziAQ==" + }, + "trim-lines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", + "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==" + }, + "trim-newlines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", + "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", + "dev": true + }, + "trim-trailing-lines": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/trim-trailing-lines/-/trim-trailing-lines-1.1.4.tgz", + "integrity": "sha512-rjUWSqnfTNrjbB9NQWfPMH/xRK1deHeGsHoVfpxJ++XeYXE0d6B1En37AHfw3jtfTU7dzMzZL2jjpe8Qb5gLIQ==" + }, + "trough": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/trough/-/trough-1.0.5.tgz", + "integrity": "sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA==" + }, + "tsconfig-paths": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", + "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", + "dev": true, + "requires": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + }, + "dependencies": { + "json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "requires": { + "minimist": "^1.2.0" + } + } + } + }, + "tslib": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz", + "integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==" + }, + "tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + }, + "type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "devOptional": true, + "requires": { + "prelude-ls": "^1.2.1" + } + }, + "type-fest": { + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz", + "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==" + }, + "type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "requires": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "dependencies": { + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" }, - "unist-util-visit-parents": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz", - "integrity": "sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==", - "requires": { - "@types/unist": "^2.0.0", - "unist-util-is": "^4.0.0" - } + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "requires": { + "mime-db": "1.52.0" + } + } + } + }, + "typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + } + }, + "typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "requires": { + "is-typedarray": "^1.0.0" + } + }, + "typescript": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz", + "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==" + }, + "ua-parser-js": { + "version": "1.0.35", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.35.tgz", + "integrity": "sha512-fKnGuqmTBnIE+/KXSzCn4db8RTigUzw1AN0DmdU6hJovUTbYJKyqj+8Mt1c4VfRDnOVJnENmfYkIPZ946UrSAA==" + }, + "unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + } + }, + "unherit": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/unherit/-/unherit-1.1.3.tgz", + "integrity": "sha512-Ft16BJcnapDKp0+J/rqFC3Rrk6Y/Ng4nzsC028k2jdDII/rdZ7Wd3pPT/6+vIIxRagwRc9K0IUX0Ra4fKvw+WQ==", + "requires": { + "inherits": "^2.0.0", + "xtend": "^4.0.0" + } + }, + "unicode-canonical-property-names-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", + "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==" + }, + "unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "requires": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + } + }, + "unicode-match-property-value-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", + "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==" + }, + "unicode-property-aliases-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", + "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==" + }, + "unified": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/unified/-/unified-9.2.2.tgz", + "integrity": "sha512-Sg7j110mtefBD+qunSLO1lqOEKdrwBFBrR6Qd8f4uwkhWNlbkaqwHse6e7QvD3AP/MNoJdEDLaf8OxYyoWgorQ==", + "requires": { + "bail": "^1.0.0", + "extend": "^3.0.0", + "is-buffer": "^2.0.0", + "is-plain-obj": "^2.0.0", + "trough": "^1.0.0", + "vfile": "^4.0.0" + }, + "dependencies": { + "is-plain-obj": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", + "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==" + } + } + }, + "unique-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", + "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", + "requires": { + "crypto-random-string": "^2.0.0" + } + }, + "unist-builder": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/unist-builder/-/unist-builder-2.0.3.tgz", + "integrity": "sha512-f98yt5pnlMWlzP539tPc4grGMsFaQQlP/vM396b00jngsiINumNmsY8rkXjfoi1c6QaM8nQ3vaGDuoKWbe/1Uw==" + }, + "unist-util-generated": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/unist-util-generated/-/unist-util-generated-1.1.6.tgz", + "integrity": "sha512-cln2Mm1/CZzN5ttGK7vkoGw+RZ8VcUH6BtGbq98DDtRGquAAOXig1mrBQYelOwMXYS8rK+vZDyyojSjp7JX+Lg==" + }, + "unist-util-is": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.1.0.tgz", + "integrity": "sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==" + }, + "unist-util-position": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-3.1.0.tgz", + "integrity": "sha512-w+PkwCbYSFw8vpgWD0v7zRCl1FpY3fjDSQ3/N/wNd9Ffa4gPi8+4keqt99N3XW6F99t/mUzp2xAhNmfKWp95QA==" + }, + "unist-util-remove": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unist-util-remove/-/unist-util-remove-2.1.0.tgz", + "integrity": "sha512-J8NYPyBm4baYLdCbjmf1bhPu45Cr1MWTm77qd9istEkzWpnN6O9tMsEbB2JhNnBCqGENRqEWomQ+He6au0B27Q==", + "requires": { + "unist-util-is": "^4.0.0" + } + }, + "unist-util-remove-position": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unist-util-remove-position/-/unist-util-remove-position-2.0.1.tgz", + "integrity": "sha512-fDZsLYIe2uT+oGFnuZmy73K6ZxOPG/Qcm+w7jbEjaFcJgbQ6cqjs/eSPzXhsmGpAsWPkqZM9pYjww5QTn3LHMA==", + "requires": { + "unist-util-visit": "^2.0.0" + } + }, + "unist-util-stringify-position": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-3.0.3.tgz", + "integrity": "sha512-k5GzIBZ/QatR8N5X2y+drfpWG8IDBzdnVj6OInRNWm1oXrzydiaAT2OQiA8DPRRZyAKb9b6I2a6PxYklZD0gKg==", + "requires": { + "@types/unist": "^2.0.0" + } + }, + "unist-util-visit": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.3.tgz", + "integrity": "sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==", + "requires": { + "@types/unist": "^2.0.0", + "unist-util-is": "^4.0.0", + "unist-util-visit-parents": "^3.0.0" + } + }, + "unist-util-visit-parents": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz", + "integrity": "sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==", + "requires": { + "@types/unist": "^2.0.0", + "unist-util-is": "^4.0.0" + } + }, + "universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==" + }, + "unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==" + }, + "update-browserslist-db": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", + "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", + "requires": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + } + }, + "update-notifier": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-5.1.0.tgz", + "integrity": "sha512-ItnICHbeMh9GqUy31hFPrD1kcuZ3rpxDZbf4KUDavXwS0bW5m7SLbDQpGX3UYr072cbrF5hFUs3r5tUsPwjfHw==", + "requires": { + "boxen": "^5.0.0", + "chalk": "^4.1.0", + "configstore": "^5.0.1", + "has-yarn": "^2.1.0", + "import-lazy": "^2.1.0", + "is-ci": "^2.0.0", + "is-installed-globally": "^0.4.0", + "is-npm": "^5.0.0", + "is-yarn-global": "^0.3.0", + "latest-version": "^5.1.0", + "pupa": "^2.1.1", + "semver": "^7.3.4", + "semver-diff": "^3.1.1", + "xdg-basedir": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } }, - "universalify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==" - }, - "unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==" - }, - "update-browserslist-db": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", - "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", - "requires": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - } + "boxen": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-5.1.2.tgz", + "integrity": "sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ==", + "requires": { + "ansi-align": "^3.0.0", + "camelcase": "^6.2.0", + "chalk": "^4.1.0", + "cli-boxes": "^2.2.1", + "string-width": "^4.2.2", + "type-fest": "^0.20.2", + "widest-line": "^3.1.0", + "wrap-ansi": "^7.0.0" + } }, - "update-notifier": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-5.1.0.tgz", - "integrity": "sha512-ItnICHbeMh9GqUy31hFPrD1kcuZ3rpxDZbf4KUDavXwS0bW5m7SLbDQpGX3UYr072cbrF5hFUs3r5tUsPwjfHw==", - "requires": { - "boxen": "^5.0.0", - "chalk": "^4.1.0", - "configstore": "^5.0.1", - "has-yarn": "^2.1.0", - "import-lazy": "^2.1.0", - "is-ci": "^2.0.0", - "is-installed-globally": "^0.4.0", - "is-npm": "^5.0.0", - "is-yarn-global": "^0.3.0", - "latest-version": "^5.1.0", - "pupa": "^2.1.1", - "semver": "^7.3.4", - "semver-diff": "^3.1.1", - "xdg-basedir": "^4.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "boxen": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/boxen/-/boxen-5.1.2.tgz", - "integrity": "sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ==", - "requires": { - "ansi-align": "^3.0.0", - "camelcase": "^6.2.0", - "chalk": "^4.1.0", - "cli-boxes": "^2.2.1", - "string-width": "^4.2.2", - "type-fest": "^0.20.2", - "widest-line": "^3.1.0", - "wrap-ansi": "^7.0.0" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "cli-boxes": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", - "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==" - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "import-lazy": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", - "integrity": "sha512-m7ZEHgtw69qOGw+jwxXkHlrlIPdTGkyh66zXZ1ajZbxkDBNjSY/LGbmjc7h0s2ELsUDTAhFr55TrPSSqJGPG0A==" - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" - }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "requires": { - "yallist": "^4.0.0" - } - }, - "semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", - "requires": { - "lru-cache": "^6.0.0" - } - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==" - }, - "widest-line": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", - "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", - "requires": { - "string-width": "^4.0.0" - } - }, - "wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - } - } + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } }, - "uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "requires": { - "punycode": "^2.1.0" - }, - "dependencies": { - "punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==" - } - } + "cli-boxes": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", + "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==" }, - "url-loader": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/url-loader/-/url-loader-4.1.1.tgz", - "integrity": "sha512-3BTV812+AVHHOJQO8O5MkWgZ5aosP7GnROJwvzLS9hWDj00lZ6Z0wNak423Lp9PBZN05N+Jk/N5Si8jRAlGyWA==", - "requires": { - "loader-utils": "^2.0.0", - "mime-types": "^2.1.27", - "schema-utils": "^3.0.0" - }, - "dependencies": { - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "requires": { - "mime-db": "1.52.0" - } - }, - "schema-utils": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", - "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } - } - } + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } }, - "url-parse-lax": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", - "integrity": "sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ==", - "requires": { - "prepend-http": "^2.0.0" - } + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, - "use-composed-ref": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/use-composed-ref/-/use-composed-ref-1.3.0.tgz", - "integrity": "sha512-GLMG0Jc/jiKov/3Ulid1wbv3r54K9HlMW29IWcDFPEqFkSO2nS0MuefWgMJpeHQ9YJeXDL3ZUF+P3jdXlZX/cQ==", - "requires": {} - }, - "use-isomorphic-layout-effect": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.2.tgz", - "integrity": "sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==", - "requires": {} - }, - "use-latest": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/use-latest/-/use-latest-1.2.1.tgz", - "integrity": "sha512-xA+AVm/Wlg3e2P/JiItTziwS7FK92LWrDB0p+hgXloIMuVCeJJ8v6f0eeHyPZaJrM+usM1FkFfbNCrJGs8A/zw==", - "requires": { - "use-isomorphic-layout-effect": "^1.1.1" - } + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" }, - "use-sync-external-store": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz", - "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==", - "requires": {} - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" - }, - "utila": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz", - "integrity": "sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA==" - }, - "utility-types": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", - "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==" - }, - "utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==" - }, - "uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" - }, - "uvu": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/uvu/-/uvu-0.5.6.tgz", - "integrity": "sha512-+g8ENReyr8YsOc6fv/NVJs2vFdHBnBNdfE49rshrTzDWOlUx4Gq7KOS2GD8eqhy2j+Ejq29+SbKH8yjkAqXqoA==", - "requires": { - "dequal": "^2.0.0", - "diff": "^5.0.0", - "kleur": "^4.0.3", - "sade": "^1.7.3" - }, - "dependencies": { - "kleur": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", - "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==" - } - } + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" }, - "v8-compile-cache": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", - "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", - "dev": true - }, - "validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dev": true, - "requires": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } + "import-lazy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", + "integrity": "sha512-m7ZEHgtw69qOGw+jwxXkHlrlIPdTGkyh66zXZ1ajZbxkDBNjSY/LGbmjc7h0s2ELsUDTAhFr55TrPSSqJGPG0A==" }, - "value-equal": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/value-equal/-/value-equal-1.0.1.tgz", - "integrity": "sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw==" + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" }, - "vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==" + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "requires": { + "yallist": "^4.0.0" + } }, - "vfile": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/vfile/-/vfile-4.2.1.tgz", - "integrity": "sha512-O6AE4OskCG5S1emQ/4gl8zK586RqA3srz3nfK/Viy0UPToBc5Trp9BVFb1u0CjsKrAWwnpr4ifM/KBXPWwJbCA==", - "requires": { - "@types/unist": "^2.0.0", - "is-buffer": "^2.0.0", - "unist-util-stringify-position": "^2.0.0", - "vfile-message": "^2.0.0" - }, - "dependencies": { - "unist-util-stringify-position": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz", - "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==", - "requires": { - "@types/unist": "^2.0.2" - } - } - } + "semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "requires": { + "lru-cache": "^6.0.0" + } }, - "vfile-location": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-3.2.0.tgz", - "integrity": "sha512-aLEIZKv/oxuCDZ8lkJGhuhztf/BW4M+iHdCwglA/eWc+vtuRFJj8EtgceYFX4LRjOhCAAiNHsKGssC6onJ+jbA==" + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } }, - "vfile-message": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-2.0.4.tgz", - "integrity": "sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ==", - "requires": { - "@types/unist": "^2.0.0", - "unist-util-stringify-position": "^2.0.0" - }, - "dependencies": { - "unist-util-stringify-position": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz", - "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==", - "requires": { - "@types/unist": "^2.0.2" - } - } - } + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } }, - "wait-on": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/wait-on/-/wait-on-6.0.1.tgz", - "integrity": "sha512-zht+KASY3usTY5u2LgaNqn/Cd8MukxLGjdcZxT2ns5QzDmTFc4XoWBgC+C/na+sMRZTuVygQoMYwdcVjHnYIVw==", - "requires": { - "axios": "^0.25.0", - "joi": "^17.6.0", - "lodash": "^4.17.21", - "minimist": "^1.2.5", - "rxjs": "^7.5.4" - } + "type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==" }, - "watchpack": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", - "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", - "requires": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - } + "widest-line": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", + "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", + "requires": { + "string-width": "^4.0.0" + } }, - "wbuf": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", - "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", - "requires": { - "minimalistic-assert": "^1.0.0" - } + "wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } }, - "web-namespaces": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-1.1.4.tgz", - "integrity": "sha512-wYxSGajtmoP4WxfejAPIr4l0fVh+jeMXZb08wNc0tMg6xsfZXj3cECqIK0G7ZAqUq0PP8WlMDtaOGVBTAWztNw==" + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + } + } + }, + "uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "requires": { + "punycode": "^2.1.0" + }, + "dependencies": { + "punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==" + } + } + }, + "url-loader": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/url-loader/-/url-loader-4.1.1.tgz", + "integrity": "sha512-3BTV812+AVHHOJQO8O5MkWgZ5aosP7GnROJwvzLS9hWDj00lZ6Z0wNak423Lp9PBZN05N+Jk/N5Si8jRAlGyWA==", + "requires": { + "loader-utils": "^2.0.0", + "mime-types": "^2.1.27", + "schema-utils": "^3.0.0" + }, + "dependencies": { + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" }, - "webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "requires": { + "mime-db": "1.52.0" + } }, - "webpack": { - "version": "5.85.1", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.85.1.tgz", - "integrity": "sha512-xTb7MRf4LY8Z5rzn7aIx4TDrwYJrjcHnIfU1TqtyZOoObyuGSpAUwIvVuqq5wPnv7WEgQr8UvO1q/dgoGG4HjA==", - "requires": { - "@types/eslint-scope": "^3.7.3", - "@types/estree": "^1.0.0", - "@webassemblyjs/ast": "^1.11.5", - "@webassemblyjs/wasm-edit": "^1.11.5", - "@webassemblyjs/wasm-parser": "^1.11.5", - "acorn": "^8.7.1", - "acorn-import-assertions": "^1.9.0", - "browserslist": "^4.14.5", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.14.1", - "es-module-lexer": "^1.2.1", - "eslint-scope": "5.1.1", - "events": "^3.2.0", - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.9", - "json-parse-even-better-errors": "^2.3.1", - "loader-runner": "^4.2.0", - "mime-types": "^2.1.27", - "neo-async": "^2.6.2", - "schema-utils": "^3.1.2", - "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.3.7", - "watchpack": "^2.4.0", - "webpack-sources": "^3.2.3" - }, - "dependencies": { - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "requires": { - "mime-db": "1.52.0" - } - }, - "schema-utils": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", - "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } - } - } + "schema-utils": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", + "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + } + } + }, + "url-parse-lax": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", + "integrity": "sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ==", + "requires": { + "prepend-http": "^2.0.0" + } + }, + "use-composed-ref": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/use-composed-ref/-/use-composed-ref-1.3.0.tgz", + "integrity": "sha512-GLMG0Jc/jiKov/3Ulid1wbv3r54K9HlMW29IWcDFPEqFkSO2nS0MuefWgMJpeHQ9YJeXDL3ZUF+P3jdXlZX/cQ==", + "requires": {} + }, + "use-isomorphic-layout-effect": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.2.tgz", + "integrity": "sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==", + "requires": {} + }, + "use-latest": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/use-latest/-/use-latest-1.2.1.tgz", + "integrity": "sha512-xA+AVm/Wlg3e2P/JiItTziwS7FK92LWrDB0p+hgXloIMuVCeJJ8v6f0eeHyPZaJrM+usM1FkFfbNCrJGs8A/zw==", + "requires": { + "use-isomorphic-layout-effect": "^1.1.1" + } + }, + "use-sync-external-store": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz", + "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==", + "requires": {} + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "utila": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz", + "integrity": "sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA==" + }, + "utility-types": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", + "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==" + }, + "utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==" + }, + "uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" + }, + "uvu": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/uvu/-/uvu-0.5.6.tgz", + "integrity": "sha512-+g8ENReyr8YsOc6fv/NVJs2vFdHBnBNdfE49rshrTzDWOlUx4Gq7KOS2GD8eqhy2j+Ejq29+SbKH8yjkAqXqoA==", + "requires": { + "dequal": "^2.0.0", + "diff": "^5.0.0", + "kleur": "^4.0.3", + "sade": "^1.7.3" + }, + "dependencies": { + "kleur": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", + "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==" + } + } + }, + "v8-compile-cache": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", + "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", + "dev": true + }, + "validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "requires": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "value-equal": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/value-equal/-/value-equal-1.0.1.tgz", + "integrity": "sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw==" + }, + "vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==" + }, + "vfile": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-4.2.1.tgz", + "integrity": "sha512-O6AE4OskCG5S1emQ/4gl8zK586RqA3srz3nfK/Viy0UPToBc5Trp9BVFb1u0CjsKrAWwnpr4ifM/KBXPWwJbCA==", + "requires": { + "@types/unist": "^2.0.0", + "is-buffer": "^2.0.0", + "unist-util-stringify-position": "^2.0.0", + "vfile-message": "^2.0.0" + }, + "dependencies": { + "unist-util-stringify-position": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz", + "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==", + "requires": { + "@types/unist": "^2.0.2" + } + } + } + }, + "vfile-location": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-3.2.0.tgz", + "integrity": "sha512-aLEIZKv/oxuCDZ8lkJGhuhztf/BW4M+iHdCwglA/eWc+vtuRFJj8EtgceYFX4LRjOhCAAiNHsKGssC6onJ+jbA==" + }, + "vfile-message": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-2.0.4.tgz", + "integrity": "sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ==", + "requires": { + "@types/unist": "^2.0.0", + "unist-util-stringify-position": "^2.0.0" + }, + "dependencies": { + "unist-util-stringify-position": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz", + "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==", + "requires": { + "@types/unist": "^2.0.2" + } + } + } + }, + "wait-on": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/wait-on/-/wait-on-6.0.1.tgz", + "integrity": "sha512-zht+KASY3usTY5u2LgaNqn/Cd8MukxLGjdcZxT2ns5QzDmTFc4XoWBgC+C/na+sMRZTuVygQoMYwdcVjHnYIVw==", + "requires": { + "axios": "^0.25.0", + "joi": "^17.6.0", + "lodash": "^4.17.21", + "minimist": "^1.2.5", + "rxjs": "^7.5.4" + } + }, + "watchpack": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "requires": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + } + }, + "wbuf": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", + "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", + "requires": { + "minimalistic-assert": "^1.0.0" + } + }, + "web-namespaces": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-1.1.4.tgz", + "integrity": "sha512-wYxSGajtmoP4WxfejAPIr4l0fVh+jeMXZb08wNc0tMg6xsfZXj3cECqIK0G7ZAqUq0PP8WlMDtaOGVBTAWztNw==" + }, + "webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "webpack": { + "version": "5.85.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.85.1.tgz", + "integrity": "sha512-xTb7MRf4LY8Z5rzn7aIx4TDrwYJrjcHnIfU1TqtyZOoObyuGSpAUwIvVuqq5wPnv7WEgQr8UvO1q/dgoGG4HjA==", + "requires": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^1.0.0", + "@webassemblyjs/ast": "^1.11.5", + "@webassemblyjs/wasm-edit": "^1.11.5", + "@webassemblyjs/wasm-parser": "^1.11.5", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.9.0", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.14.1", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.1.2", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.7", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "dependencies": { + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" }, - "webpack-bundle-analyzer": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.9.0.tgz", - "integrity": "sha512-+bXGmO1LyiNx0i9enBu3H8mv42sj/BJWhZNFwjz92tVnBa9J3JMGo2an2IXlEleoDOPn/Hofl5hr/xCpObUDtw==", - "requires": { - "@discoveryjs/json-ext": "0.5.7", - "acorn": "^8.0.4", - "acorn-walk": "^8.0.0", - "chalk": "^4.1.0", - "commander": "^7.2.0", - "gzip-size": "^6.0.0", - "lodash": "^4.17.20", - "opener": "^1.5.2", - "sirv": "^1.0.7", - "ws": "^7.3.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "requires": { + "mime-db": "1.52.0" + } }, - "webpack-dev-middleware": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz", - "integrity": "sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA==", - "requires": { - "colorette": "^2.0.10", - "memfs": "^3.4.3", - "mime-types": "^2.1.31", - "range-parser": "^1.2.1", - "schema-utils": "^4.0.0" - }, - "dependencies": { - "ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "requires": { - "fast-deep-equal": "^3.1.3" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "requires": { - "mime-db": "1.52.0" - } - }, - "range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" - }, - "schema-utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", - "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", - "requires": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - } - } - } + "schema-utils": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", + "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + } + } + }, + "webpack-bundle-analyzer": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.9.0.tgz", + "integrity": "sha512-+bXGmO1LyiNx0i9enBu3H8mv42sj/BJWhZNFwjz92tVnBa9J3JMGo2an2IXlEleoDOPn/Hofl5hr/xCpObUDtw==", + "requires": { + "@discoveryjs/json-ext": "0.5.7", + "acorn": "^8.0.4", + "acorn-walk": "^8.0.0", + "chalk": "^4.1.0", + "commander": "^7.2.0", + "gzip-size": "^6.0.0", + "lodash": "^4.17.20", + "opener": "^1.5.2", + "sirv": "^1.0.7", + "ws": "^7.3.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } }, - "webpack-dev-server": { - "version": "4.15.0", - "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.0.tgz", - "integrity": "sha512-HmNB5QeSl1KpulTBQ8UT4FPrByYyaLxpJoQ0+s7EvUrMc16m0ZS1sgb1XGqzmgCPk0c9y+aaXxn11tbLzuM7NQ==", - "requires": { - "@types/bonjour": "^3.5.9", - "@types/connect-history-api-fallback": "^1.3.5", - "@types/express": "^4.17.13", - "@types/serve-index": "^1.9.1", - "@types/serve-static": "^1.13.10", - "@types/sockjs": "^0.3.33", - "@types/ws": "^8.5.1", - "ansi-html-community": "^0.0.8", - "bonjour-service": "^1.0.11", - "chokidar": "^3.5.3", - "colorette": "^2.0.10", - "compression": "^1.7.4", - "connect-history-api-fallback": "^2.0.0", - "default-gateway": "^6.0.3", - "express": "^4.17.3", - "graceful-fs": "^4.2.6", - "html-entities": "^2.3.2", - "http-proxy-middleware": "^2.0.3", - "ipaddr.js": "^2.0.1", - "launch-editor": "^2.6.0", - "open": "^8.0.9", - "p-retry": "^4.5.0", - "rimraf": "^3.0.2", - "schema-utils": "^4.0.0", - "selfsigned": "^2.1.1", - "serve-index": "^1.9.1", - "sockjs": "^0.3.24", - "spdy": "^4.0.2", - "webpack-dev-middleware": "^5.3.1", - "ws": "^8.13.0" - }, - "dependencies": { - "ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "requires": { - "fast-deep-equal": "^3.1.3" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "schema-utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", - "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", - "requires": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - } - }, - "ws": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", - "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", - "requires": {} - } - } + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } }, - "webpack-merge": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.9.0.tgz", - "integrity": "sha512-6NbRQw4+Sy50vYNTw7EyOn41OZItPiXB8GNv3INSoe3PSFaHJEz3SHTrYVaRm2LilNGnFUzh0FAwqPEmU/CwDg==", - "requires": { - "clone-deep": "^4.0.1", - "wildcard": "^2.0.0" - } + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } }, - "webpack-sources": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", - "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==" - }, - "webpackbar": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/webpackbar/-/webpackbar-5.0.2.tgz", - "integrity": "sha512-BmFJo7veBDgQzfWXl/wwYXr/VFus0614qZ8i9znqcl9fnEdiVkdbi0TedLQ6xAK92HZHDJ0QmyQ0fmuZPAgCYQ==", - "requires": { - "chalk": "^4.1.0", - "consola": "^2.15.3", - "pretty-time": "^1.1.0", - "std-env": "^3.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, - "websocket-driver": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", - "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", - "requires": { - "http-parser-js": ">=0.5.1", - "safe-buffer": ">=5.1.0", - "websocket-extensions": ">=0.1.1" - } + "commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==" }, - "websocket-extensions": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", - "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==" - }, - "whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "requires": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "requires": { - "isexe": "^2.0.0" - } + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "webpack-dev-middleware": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz", + "integrity": "sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA==", + "requires": { + "colorette": "^2.0.10", + "memfs": "^3.4.3", + "mime-types": "^2.1.31", + "range-parser": "^1.2.1", + "schema-utils": "^4.0.0" + }, + "dependencies": { + "ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } }, - "which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dev": true, - "requires": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - } + "ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "requires": { + "fast-deep-equal": "^3.1.3" + } }, - "which-collection": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", - "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", - "dev": true, - "requires": { - "is-map": "^2.0.1", - "is-set": "^2.0.1", - "is-weakmap": "^2.0.1", - "is-weakset": "^2.0.1" - } + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, - "which-typed-array": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", - "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", - "dev": true, - "requires": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0", - "is-typed-array": "^1.1.10" - } + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" }, - "widest-line": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-4.0.1.tgz", - "integrity": "sha512-o0cyEG0e8GPzT4iGHphIOh0cJOV8fivsXxddQasHPHfoZf1ZexrfeA21w2NaEN1RHE+fXlfISmOE8R9N3u3Qig==", - "requires": { - "string-width": "^5.0.1" - } + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "requires": { + "mime-db": "1.52.0" + } }, - "wildcard": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", - "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==" + "range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" }, - "word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "devOptional": true + "schema-utils": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", + "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", + "requires": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + } + } + } + }, + "webpack-dev-server": { + "version": "4.15.0", + "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.0.tgz", + "integrity": "sha512-HmNB5QeSl1KpulTBQ8UT4FPrByYyaLxpJoQ0+s7EvUrMc16m0ZS1sgb1XGqzmgCPk0c9y+aaXxn11tbLzuM7NQ==", + "requires": { + "@types/bonjour": "^3.5.9", + "@types/connect-history-api-fallback": "^1.3.5", + "@types/express": "^4.17.13", + "@types/serve-index": "^1.9.1", + "@types/serve-static": "^1.13.10", + "@types/sockjs": "^0.3.33", + "@types/ws": "^8.5.1", + "ansi-html-community": "^0.0.8", + "bonjour-service": "^1.0.11", + "chokidar": "^3.5.3", + "colorette": "^2.0.10", + "compression": "^1.7.4", + "connect-history-api-fallback": "^2.0.0", + "default-gateway": "^6.0.3", + "express": "^4.17.3", + "graceful-fs": "^4.2.6", + "html-entities": "^2.3.2", + "http-proxy-middleware": "^2.0.3", + "ipaddr.js": "^2.0.1", + "launch-editor": "^2.6.0", + "open": "^8.0.9", + "p-retry": "^4.5.0", + "rimraf": "^3.0.2", + "schema-utils": "^4.0.0", + "selfsigned": "^2.1.1", + "serve-index": "^1.9.1", + "sockjs": "^0.3.24", + "spdy": "^4.0.2", + "webpack-dev-middleware": "^5.3.1", + "ws": "^8.13.0" + }, + "dependencies": { + "ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } }, - "wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "requires": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==" - }, - "ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==" - }, - "strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "requires": { - "ansi-regex": "^6.0.1" - } - } - } + "ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "requires": { + "fast-deep-equal": "^3.1.3" + } }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, - "write-file-atomic": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", - "dev": true, - "requires": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" - } + "schema-utils": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", + "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", + "requires": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + } }, "ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", - "requires": {} - }, - "xdg-basedir": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", - "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==" - }, - "xml-js": { - "version": "1.6.11", - "resolved": "https://registry.npmjs.org/xml-js/-/xml-js-1.6.11.tgz", - "integrity": "sha512-7rVi2KMfwfWFl+GpPg6m80IVMWXLRjO+PxTq7V2CDhoGak0wzYzFgUY2m4XJ47OGdXd8eLE8EmwfAmdjw7lC1g==", - "requires": { - "sax": "^1.2.4" - } + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", + "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", + "requires": {} + } + } + }, + "webpack-merge": { + "version": "5.9.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.9.0.tgz", + "integrity": "sha512-6NbRQw4+Sy50vYNTw7EyOn41OZItPiXB8GNv3INSoe3PSFaHJEz3SHTrYVaRm2LilNGnFUzh0FAwqPEmU/CwDg==", + "requires": { + "clone-deep": "^4.0.1", + "wildcard": "^2.0.0" + } + }, + "webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==" + }, + "webpackbar": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/webpackbar/-/webpackbar-5.0.2.tgz", + "integrity": "sha512-BmFJo7veBDgQzfWXl/wwYXr/VFus0614qZ8i9znqcl9fnEdiVkdbi0TedLQ6xAK92HZHDJ0QmyQ0fmuZPAgCYQ==", + "requires": { + "chalk": "^4.1.0", + "consola": "^2.15.3", + "pretty-time": "^1.1.0", + "std-env": "^3.0.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } }, - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } }, - "yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } }, - "yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==" + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" }, - "yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", - "dev": true + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "websocket-driver": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", + "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", + "requires": { + "http-parser-js": ">=0.5.1", + "safe-buffer": ">=5.1.0", + "websocket-extensions": ">=0.1.1" + } + }, + "websocket-extensions": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", + "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==" + }, + "whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "requires": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "requires": { + "isexe": "^2.0.0" + } + }, + "which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, + "requires": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + } + }, + "which-collection": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", + "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", + "dev": true, + "requires": { + "is-map": "^2.0.1", + "is-set": "^2.0.1", + "is-weakmap": "^2.0.1", + "is-weakset": "^2.0.1" + } + }, + "which-typed-array": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", + "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", + "dev": true, + "requires": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0", + "is-typed-array": "^1.1.10" + } + }, + "widest-line": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-4.0.1.tgz", + "integrity": "sha512-o0cyEG0e8GPzT4iGHphIOh0cJOV8fivsXxddQasHPHfoZf1ZexrfeA21w2NaEN1RHE+fXlfISmOE8R9N3u3Qig==", + "requires": { + "string-width": "^5.0.1" + } + }, + "wildcard": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", + "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==" + }, + "word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "devOptional": true + }, + "wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "requires": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==" }, - "yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==" + "ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==" }, - "zwitch": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-1.0.5.tgz", - "integrity": "sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw==" + "strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "requires": { + "ansi-regex": "^6.0.1" + } } + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + } + }, + "ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "requires": {} + }, + "xdg-basedir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", + "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==" + }, + "xml-js": { + "version": "1.6.11", + "resolved": "https://registry.npmjs.org/xml-js/-/xml-js-1.6.11.tgz", + "integrity": "sha512-7rVi2KMfwfWFl+GpPg6m80IVMWXLRjO+PxTq7V2CDhoGak0wzYzFgUY2m4XJ47OGdXd8eLE8EmwfAmdjw7lC1g==", + "requires": { + "sax": "^1.2.4" + } + }, + "xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" + }, + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" + }, + "yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==" + }, + "yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true + }, + "yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==" + }, + "zwitch": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-1.0.5.tgz", + "integrity": "sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw==" } + } } diff --git a/package.json b/package.json index ee9d811e..d58ba32c 100644 --- a/package.json +++ b/package.json @@ -1,84 +1,84 @@ { - "name": "book", - "version": "0.0.0", - "private": true, - "homepage": "https://wasmedge.org/docs/", - "scripts": { - "docusaurus": "docusaurus", - "start": "docusaurus start", - "build": "docusaurus build", - "swizzle": "docusaurus swizzle", - "deploy": "docusaurus deploy", - "clear": "docusaurus clear", - "serve": "docusaurus serve", - "prepare": "husky install", - "format": "prettier --write .", - "format:diff": "prettier --list-different .", - "write-translations": "docusaurus write-translations", - "write-heading-ids": "docusaurus write-heading-ids", - "lint": "npm run lint:js && npm run lint:style", - "lint:ci": "npm run lint:js --quiet && npm run lint:style", - "lint:js": "eslint --cache --report-unused-disable-directives \"**/*.{js,jsx,ts,tsx}\"", - "lint:fix": "npm run lint:eslint-fix && npm run lint:style-fix", - "lint:eslint-fix": "eslint --fix --cache --report-unused-disable-directives \"**/*.{js,jsx,ts,tsx}\"", - "lint:style-fix": "stylelint --fix \"**/*.css\"", - "lint:style": "stylelint \"**/*.css\"" - }, - "engines": { - "node": ">=16.14.0", - "npm": ">=8.3.1" - }, - "dependencies": { - "@docusaurus/core": "^2.4.0", - "@docusaurus/preset-classic": "^2.4.0", - "@easyops-cn/docusaurus-search-local": "^0.35.0", - "@mdx-js/react": "^1.6.22", - "@node-rs/jieba": "^1.7.0", - "classnames": "^2.3.2", - "clsx": "^1.2.1", - "dotenv": "^16.0.3", - "prism-react-renderer": "^1.3.5", - "react": "^17.0.2", - "react-dom": "^17.0.2", - "react-github-btn": "^1.2.0", - "react-markdown": "^8.0.7", - "react-player": "^2.12.0", - "remark-deflist": "^1.0.0" - }, - "devDependencies": { - "@babel/eslint-parser": "^7.21.8", - "@docusaurus/eslint-plugin": "^2.4.0", - "@docusaurus/module-type-aliases": "^2.4.1", - "@tsconfig/docusaurus": "^1.0.7", - "@typescript-eslint/eslint-plugin": "^5.59.9", - "@typescript-eslint/parser": "^5.59.9", - "eslint": "^8.35.0", - "eslint-config-airbnb": "^19.0.4", - "eslint-config-prettier": "^8.7.0", - "eslint-plugin-import": "^2.27.5", - "eslint-plugin-jsx-a11y": "^6.7.1", - "eslint-plugin-prettier": "^4.2.1", - "eslint-plugin-react": "^7.32.2", - "eslint-plugin-react-hooks": "^4.6.0", - "eslint-plugin-regexp": "^1.12.0", - "husky": "^8.0.3", - "lint-staged": "^13.1.2", - "prettier": "^2.8.4", - "stylelint": "^14.16.1", - "stylelint-config-prettier": "^9.0.5", - "stylelint-config-standard": "^29.0.0", - "typescript": "^5.0.4" - }, - "browserslist": { - "production": [ - ">0.5%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - } + "name": "book", + "version": "0.0.0", + "private": true, + "homepage": "https://wasmedge.org/docs/", + "scripts": { + "docusaurus": "docusaurus", + "start": "docusaurus start", + "build": "docusaurus build", + "swizzle": "docusaurus swizzle", + "deploy": "docusaurus deploy", + "clear": "docusaurus clear", + "serve": "docusaurus serve", + "prepare": "husky install", + "format": "prettier --write .", + "format:diff": "prettier --check .", + "write-translations": "docusaurus write-translations", + "write-heading-ids": "docusaurus write-heading-ids", + "lint": "npm run lint:js && npm run lint:style", + "lint:ci": "npm run lint:js --quiet && npm run lint:style", + "lint:js": "eslint --cache --report-unused-disable-directives \"**/*.{js,jsx,ts,tsx}\"", + "lint:fix": "npm run lint:eslint-fix && npm run lint:style-fix", + "lint:eslint-fix": "eslint --fix --cache --report-unused-disable-directives \"**/*.{js,jsx,ts,tsx}\"", + "lint:style-fix": "stylelint --fix \"**/*.css\"", + "lint:style": "stylelint \"**/*.css\"" + }, + "engines": { + "node": ">=16.14.0", + "npm": ">=8.3.1" + }, + "dependencies": { + "@docusaurus/core": "^2.4.0", + "@docusaurus/preset-classic": "^2.4.0", + "@easyops-cn/docusaurus-search-local": "^0.35.0", + "@mdx-js/react": "^1.6.22", + "@node-rs/jieba": "^1.7.0", + "classnames": "^2.3.2", + "clsx": "^1.2.1", + "dotenv": "^16.0.3", + "prism-react-renderer": "^1.3.5", + "react": "^17.0.2", + "react-dom": "^17.0.2", + "react-github-btn": "^1.2.0", + "react-markdown": "^8.0.7", + "react-player": "^2.12.0", + "remark-deflist": "^1.0.0" + }, + "devDependencies": { + "@babel/eslint-parser": "^7.21.8", + "@docusaurus/eslint-plugin": "^2.4.0", + "@docusaurus/module-type-aliases": "^2.4.1", + "@tsconfig/docusaurus": "^1.0.7", + "@typescript-eslint/eslint-plugin": "^5.59.9", + "@typescript-eslint/parser": "^5.59.9", + "eslint": "^8.35.0", + "eslint-config-airbnb": "^19.0.4", + "eslint-config-prettier": "^8.7.0", + "eslint-plugin-import": "^2.27.5", + "eslint-plugin-jsx-a11y": "^6.7.1", + "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-react": "^7.32.2", + "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-regexp": "^1.12.0", + "husky": "^8.0.3", + "lint-staged": "^13.1.2", + "prettier": "^2.8.4", + "stylelint": "^14.16.1", + "stylelint-config-prettier": "^9.0.5", + "stylelint-config-standard": "^29.0.0", + "typescript": "^5.0.4" + }, + "browserslist": { + "production": [ + ">0.5%", + "not dead", + "not op_mini all" + ], + "development": [ + "last 1 chrome version", + "last 1 firefox version", + "last 1 safari version" + ] + } } diff --git a/sidebars.js b/sidebars.js index 81917482..71a666ae 100644 --- a/sidebars.js +++ b/sidebars.js @@ -13,19 +13,19 @@ /** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */ const sidebars = { - // By default, Docusaurus generates a sidebar from the docs folder structure - developSidebar: [{ type: 'autogenerated', dirName: 'develop' }], - embedSidebar: [{ type: 'autogenerated', dirName: 'embed' }], - contributeSidebar: [{ type: 'autogenerated', dirName: 'contribute' }], + // By default, Docusaurus generates a sidebar from the docs folder structure + developSidebar: [{ type: 'autogenerated', dirName: 'develop' }], + embedSidebar: [{ type: 'autogenerated', dirName: 'embed' }], + contributeSidebar: [{ type: 'autogenerated', dirName: 'contribute' }], - // But you can create a sidebar manually - // tutorialSidebar: [ - // { - // type: 'category', - // label: 'Tutorial', - // items: ['.'], - // }, - // ], + // But you can create a sidebar manually + // tutorialSidebar: [ + // { + // type: 'category', + // label: 'Tutorial', + // items: ['.'], + // }, + // ], }; module.exports = sidebars; diff --git a/src/components/GHButton/index.tsx b/src/components/GHButton/index.tsx index 9dd7ef7f..359e2af5 100644 --- a/src/components/GHButton/index.tsx +++ b/src/components/GHButton/index.tsx @@ -4,34 +4,34 @@ import React from 'react'; import GitHubButton from 'react-github-btn'; interface IProps { - type: 'Star' | string; - children?: typeof React.Children; - href?: URL; + type: 'Star' | string; + children?: typeof React.Children; + href?: URL; } // For GitHub button on the homepage function GHButton(props: IProps) { - const { type } = props; - return type === 'Star' ? ( - - Star - - ) : ( - - Follow @WasmEdge - - ); + const { type } = props; + return type === 'Star' ? ( + + Star + + ) : ( + + Follow @WasmEdge + + ); } export default GHButton; diff --git a/src/components/HomepageFeatures/index.tsx b/src/components/HomepageFeatures/index.tsx index 0223d847..f38b7a06 100644 --- a/src/components/HomepageFeatures/index.tsx +++ b/src/components/HomepageFeatures/index.tsx @@ -6,78 +6,73 @@ import Link from '@docusaurus/Link'; import styles from './styles.module.css'; const FeatureList = [ - { - id: 0, - title: 'Develop Wasm applications', - LinkUrl: '/develop/overview', - Svg: require('@site/static/img/programmable.svg').default, - description: ( - <> - Develop Wasm apps in Rust, JavaScript, Go, and Python. Those - apps are compiled into Wasm and run inside the WasmEdge sandbox. - - ), - }, - { - id: 1, - title: 'Embed Wasm functions into a host', - LinkUrl: '/embed/overview', - Svg: require('@site/static/img/WebAssembly.svg').default, - description: ( - <> - The host app could be written in Rust, C/C++, Go, and Java. Wasm - functions are plugged in without re-compiling the host. - - ), - }, - { - id: 2, - title: 'Extend WasmEdge', - LinkUrl: '/contribute/overview', - Svg: require('@site/static/img/lowcode.svg').default, - description: ( - <> - Create WasmEdge extensions and plugins in Rust and C/C++. - Contribute to the WasmEdge project. - - ), - }, + { + id: 0, + title: 'Develop Wasm applications', + LinkUrl: '/develop/overview', + Svg: require('@site/static/img/programmable.svg').default, + description: ( + <> + Develop Wasm apps in Rust, JavaScript, Go, and Python. Those apps are + compiled into Wasm and run inside the WasmEdge sandbox. + + ), + }, + { + id: 1, + title: 'Embed Wasm functions into a host', + LinkUrl: '/embed/overview', + Svg: require('@site/static/img/WebAssembly.svg').default, + description: ( + <> + The host app could be written in Rust, C/C++, Go, and Java. Wasm + functions are plugged in without re-compiling the host. + + ), + }, + { + id: 2, + title: 'Extend WasmEdge', + LinkUrl: '/contribute/overview', + Svg: require('@site/static/img/lowcode.svg').default, + description: ( + <> + Create WasmEdge extensions and plugins in Rust and C/C++. Contribute to + the WasmEdge project. + + ), + }, ]; function Feature({ Svg, LinkSvg, LinkUrl, title, description }) { - return ( -
-
- -
-
-
-

{title}

- - - -
-

{description}

-
+ return ( +
+
+ +
+
+
+

{title}

+ + +
- ); +

{description}

+
+
+ ); } export default function HomepageFeatures() { - const LinkSvg = require('@site/static/img/Click.svg').default; - return ( -
-
-
- {FeatureList.map((feature) => ( - - ))} -
-
-
- ); + const LinkSvg = require('@site/static/img/Click.svg').default; + return ( +
+
+
+ {FeatureList.map((feature) => ( + + ))} +
+
+
+ ); } diff --git a/src/components/HomepageFeatures/styles.module.css b/src/components/HomepageFeatures/styles.module.css index 5c6d1a39..8988d8cd 100644 --- a/src/components/HomepageFeatures/styles.module.css +++ b/src/components/HomepageFeatures/styles.module.css @@ -1,35 +1,35 @@ .features { - display: flex; - align-items: center; - padding: 2rem 0; - width: 100%; + display: flex; + align-items: center; + padding: 2rem 0; + width: 100%; } .featureSvg { - height: 200px; - width: 200px; + height: 200px; + width: 200px; } .linkSvg { - margin-top: 4px; - margin-left: 6px; - height: 20px; - width: 20px; + margin-top: 4px; + margin-left: 6px; + height: 20px; + width: 20px; } .hoverStyle { - display: flex; - flex-direction: column; - align-items: center; + display: flex; + flex-direction: column; + align-items: center; } .hoverStyle:hover h3 { - text-shadow: #fc0 1px 0 10px; + text-shadow: #fc0 1px 0 10px; } .hoverStyle:hover .linkSvg { - margin-top: 2px; - margin-left: 5px; - height: 22px; - width: 22px; + margin-top: 2px; + margin-left: 5px; + height: 22px; + width: 22px; } diff --git a/src/css/custom.css b/src/css/custom.css index 9ba10648..c620676c 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -6,59 +6,59 @@ /* You can override the default Infima variables here. */ :root { - --ifm-color-primary: #2e8555; - --ifm-color-primary-dark: #29784c; - --ifm-color-primary-darker: #277148; - --ifm-color-primary-darkest: #205d3b; - --ifm-color-primary-light: #33925d; - --ifm-color-primary-lighter: #359962; - --ifm-color-primary-lightest: #3cad6e; - --ifm-code-font-size: 95%; - --docusaurus-highlighted-code-line-bg: rgb(0 0 0 / 10%); + --ifm-color-primary: #2e8555; + --ifm-color-primary-dark: #29784c; + --ifm-color-primary-darker: #277148; + --ifm-color-primary-darkest: #205d3b; + --ifm-color-primary-light: #33925d; + --ifm-color-primary-lighter: #359962; + --ifm-color-primary-lightest: #3cad6e; + --ifm-code-font-size: 95%; + --docusaurus-highlighted-code-line-bg: rgb(0 0 0 / 10%); } /* For readability concerns, you should choose a lighter palette in dark mode. */ [data-theme='dark'] { - --ifm-color-primary: #25c2a0; - --ifm-color-primary-dark: #21af90; - --ifm-color-primary-darker: #1fa588; - --ifm-color-primary-darkest: #1a8870; - --ifm-color-primary-light: #29d5b0; - --ifm-color-primary-lighter: #32d8b4; - --ifm-color-primary-lightest: #4fddbf; - --docusaurus-highlighted-code-line-bg: rgb(0 0 0 / 30%); + --ifm-color-primary: #25c2a0; + --ifm-color-primary-dark: #21af90; + --ifm-color-primary-darker: #1fa588; + --ifm-color-primary-darkest: #1a8870; + --ifm-color-primary-light: #29d5b0; + --ifm-color-primary-lighter: #32d8b4; + --ifm-color-primary-lightest: #4fddbf; + --docusaurus-highlighted-code-line-bg: rgb(0 0 0 / 30%); } .cncf-logo { - background: center no-repeat url('/img/cncf-color.svg'); + background: center no-repeat url('/img/cncf-color.svg'); } html[data-theme='dark'] .cncf-logo { - background: center no-repeat url('/img/cncf-white.svg'); + background: center no-repeat url('/img/cncf-white.svg'); } .header-github-link:hover { - opacity: 0.6; + opacity: 0.6; } .header-github-link::before { - content: ''; - width: 24px; - height: 24px; - display: flex; - background: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E") - no-repeat; + content: ''; + width: 24px; + height: 24px; + display: flex; + background: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E") + no-repeat; } [data-theme='dark'] .header-github-link::before { - background: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23fff' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E") - no-repeat; + background: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23fff' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E") + no-repeat; } .video-container { - position: relative; - overflow: hidden; - width: 100%; - max-width: 560px; - margin: 0 auto; + position: relative; + overflow: hidden; + width: 100%; + max-width: 560px; + margin: 0 auto; } diff --git a/src/pages/index.module.css b/src/pages/index.module.css index 0bf73499..f9d79414 100644 --- a/src/pages/index.module.css +++ b/src/pages/index.module.css @@ -4,34 +4,34 @@ */ .heroBanner { - padding: 4rem 0; - text-align: center; - position: relative; - overflow: hidden; + padding: 4rem 0; + text-align: center; + position: relative; + overflow: hidden; } @media screen and (max-width: 996px) { - .heroBanner { - padding: 2rem; - } + .heroBanner { + padding: 2rem; + } } .buttons { - display: flex; - align-items: center; - justify-content: center; + display: flex; + align-items: center; + justify-content: center; } .cncfLogo { - height: 90px; + height: 90px; } @media screen and (max-width: 768px) { - .cncfLogo { - height: 64px; - } + .cncfLogo { + height: 64px; + } } div.homepageCNCFLogo { - text-align: center; + text-align: center; } diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 9cd2f5cf..1abfefcb 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -10,48 +10,48 @@ import GHButton from '../components/GHButton'; // Homepage Header Content function HomepageHeader() { - const { siteConfig } = useDocusaurusContext(); - return ( -
-
-

{siteConfig.title}

-

{siteConfig.tagline}

-
- - Getting Started with WasmEdge in 5min ⏱️ - -
-
- -
-
- ); + const { siteConfig } = useDocusaurusContext(); + return ( +
+
+

{siteConfig.title}

+

{siteConfig.tagline}

+
+ + Getting Started with WasmEdge in 5min ⏱️ + +
+
+ +
+
+ ); } // To render the default home page export default function Home() { - const { siteConfig } = useDocusaurusContext(); - return ( - - -
- -
-
-

- WasmEdge is a{' '} - - CNCF (Cloud Native Computing Foundation) - {' '} - sandbox project -

-
-
-
- - ); + const { siteConfig } = useDocusaurusContext(); + return ( + + +
+ +
+
+

+ WasmEdge is a{' '} + + CNCF (Cloud Native Computing Foundation) + {' '} + sandbox project +

+
+
+
+ + ); } diff --git a/src/theme/ReleaseNotes/index.tsx b/src/theme/ReleaseNotes/index.tsx index 37252479..dfebaaab 100644 --- a/src/theme/ReleaseNotes/index.tsx +++ b/src/theme/ReleaseNotes/index.tsx @@ -6,57 +6,54 @@ import BrowserOnly from '@docusaurus/BrowserOnly'; import styles from './styles.module.css'; export default function App(props) { - const [releaseNotes, setReleaseNotes] = useState(); - let contents: string[]; + const [releaseNotes, setReleaseNotes] = useState(); + let contents: string[]; - useEffect(() => { - // eslint-disable-next-line react/destructuring-assignment - fetch(props.url) - .then((response) => response.text()) - .then((result: any) => { - // eslint-disable-next-line no-param-reassign - result = result - .split('## ') - .filter( - (item: string | string[]) => - !item.includes('# Changelog'), - ) - .map((version: string) => { - let number: string; - // eslint-disable-next-line react-hooks/exhaustive-deps - [...contents] = version.split('\n'); - const joinedContents = contents.join('\n'); - return { - number: number.replace('\\[', '').replace(']', ''), - notes: joinedContents, - }; - }) - .filter(({ number }) => !number.includes('Not Published')); - setReleaseNotes(result); - }); - // eslint-disable-next-line react/destructuring-assignment - }, [props.url]); + useEffect(() => { + // eslint-disable-next-line react/destructuring-assignment + fetch(props.url) + .then((response) => response.text()) + .then((result: any) => { + // eslint-disable-next-line no-param-reassign + result = result + .split('## ') + .filter((item: string | string[]) => !item.includes('# Changelog')) + .map((version: string) => { + let number: string; + // eslint-disable-next-line react-hooks/exhaustive-deps + [...contents] = version.split('\n'); + const joinedContents = contents.join('\n'); + return { + number: number.replace(/\\\[|\]/g, ''), + notes: joinedContents, + }; + }) + .filter(({ number }) => !number.includes('Not Published')); + setReleaseNotes(result); + }); + // eslint-disable-next-line react/destructuring-assignment + }, [props.url]); - return ( - Release notes not supported
}> - {() => { - if (!releaseNotes) { - return

Loading release notes...

; - } - return ( -
- {releaseNotes.map((version: any, index: React.Key) => ( - // eslint-disable-next-line react/no-array-index-key -
- -

{version.number}

-
- {version.notes} -
- ))} -
- ); - }} - - ); + return ( + Release notes not supported
}> + {() => { + if (!releaseNotes) { + return

Loading release notes...

; + } + return ( +
+ {releaseNotes.map((version: any, index: React.Key) => ( + // eslint-disable-next-line react/no-array-index-key +
+ +

{version.number}

+
+ {version.notes} +
+ ))} +
+ ); + }} + + ); } diff --git a/src/theme/ReleaseNotes/styles.module.css b/src/theme/ReleaseNotes/styles.module.css index 27bad347..e1a84290 100644 --- a/src/theme/ReleaseNotes/styles.module.css +++ b/src/theme/ReleaseNotes/styles.module.css @@ -1,12 +1,12 @@ .summary { - cursor: pointer; + cursor: pointer; } .summary > * { - display: inline; + display: inline; } .summary:hover > * { - text-decoration: underline; - color: var(--ifm-link-hover-color); + text-decoration: underline; + color: var(--ifm-link-hover-color); } diff --git a/tsconfig.json b/tsconfig.json index dcdce39d..57bbce40 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { - "extends": "@tsconfig/docusaurus/tsconfig.json", - "compilerOptions": { - "baseUrl": "." - } + "extends": "@tsconfig/docusaurus/tsconfig.json", + "compilerOptions": { + "baseUrl": "." + } }