From 8e3cee5680a10c0f618d72de9174abde0e7357d6 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Tue, 21 May 2024 19:44:51 +0100 Subject: [PATCH 01/46] added react-vite --- react-vite/.eslintrc.cjs | 22 + react-vite/.gitignore | 24 + react-vite/README.md | 30 + react-vite/index.html | 13 + react-vite/package-lock.json | 4493 ++++++++++++++++++++++++++++++ react-vite/package.json | 33 + react-vite/postcss.config.js | 6 + react-vite/src/App.css | 37 + react-vite/src/App.tsx | 33 + react-vite/src/constant/index.ts | 4 + react-vite/src/index.css | 58 + react-vite/src/main.tsx | 10 + react-vite/src/utils/bee-node.ts | 7 + react-vite/src/vite-env.d.ts | 1 + react-vite/tailwind.config.js | 41 + react-vite/tsconfig.json | 25 + react-vite/tsconfig.node.json | 11 + react-vite/vite.config.ts | 7 + 18 files changed, 4855 insertions(+) create mode 100644 react-vite/.eslintrc.cjs create mode 100644 react-vite/.gitignore create mode 100644 react-vite/README.md create mode 100644 react-vite/index.html create mode 100644 react-vite/package-lock.json create mode 100644 react-vite/package.json create mode 100644 react-vite/postcss.config.js create mode 100644 react-vite/src/App.css create mode 100644 react-vite/src/App.tsx create mode 100644 react-vite/src/constant/index.ts create mode 100644 react-vite/src/index.css create mode 100644 react-vite/src/main.tsx create mode 100644 react-vite/src/utils/bee-node.ts create mode 100644 react-vite/src/vite-env.d.ts create mode 100644 react-vite/tailwind.config.js create mode 100644 react-vite/tsconfig.json create mode 100644 react-vite/tsconfig.node.json create mode 100644 react-vite/vite.config.ts diff --git a/react-vite/.eslintrc.cjs b/react-vite/.eslintrc.cjs new file mode 100644 index 0000000..86f250c --- /dev/null +++ b/react-vite/.eslintrc.cjs @@ -0,0 +1,22 @@ +module.exports = { + root: true, + env: { browser: true, es2020: true }, + extends: [ + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:react/jsx-runtime', + 'plugin:react-hooks/recommended', + ], + ignorePatterns: ['dist', '.eslintrc.cjs'], + parser: '@typescript-eslint/parser', + parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, + settings: { react: { version: '18.2' } }, + plugins: ['react-refresh'], + rules: { + 'react-refresh/only-export-components': [ + 'warn', + { allowConstantExport: true }, + ], + 'react/prop-types': 0, + }, +}; diff --git a/react-vite/.gitignore b/react-vite/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/react-vite/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/react-vite/README.md b/react-vite/README.md new file mode 100644 index 0000000..0d6babe --- /dev/null +++ b/react-vite/README.md @@ -0,0 +1,30 @@ +# React + TypeScript + Vite + +This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. + +Currently, two official plugins are available: + +- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh +- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh + +## Expanding the ESLint configuration + +If you are developing a production application, we recommend updating the configuration to enable type aware lint rules: + +- Configure the top-level `parserOptions` property like this: + +```js +export default { + // other rules... + parserOptions: { + ecmaVersion: 'latest', + sourceType: 'module', + project: ['./tsconfig.json', './tsconfig.node.json'], + tsconfigRootDir: __dirname, + }, +} +``` + +- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked` +- Optionally add `plugin:@typescript-eslint/stylistic-type-checked` +- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list diff --git a/react-vite/index.html b/react-vite/index.html new file mode 100644 index 0000000..b0c6e48 --- /dev/null +++ b/react-vite/index.html @@ -0,0 +1,13 @@ + + + + + + + Zcash Donantion Widget Demo + + +
+ + + diff --git a/react-vite/package-lock.json b/react-vite/package-lock.json new file mode 100644 index 0000000..a4d04d6 --- /dev/null +++ b/react-vite/package-lock.json @@ -0,0 +1,4493 @@ +{ + "name": "tailwind", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "tailwind", + "version": "0.0.0", + "dependencies": { + "@ethersphere/bee-js": "^6.8.1", + "react": "^18.2.0", + "react-dom": "^18.2.0" + }, + "devDependencies": { + "@types/react": "^18.2.55", + "@types/react-dom": "^18.2.19", + "@typescript-eslint/eslint-plugin": "^6.21.0", + "@typescript-eslint/parser": "^6.21.0", + "@vitejs/plugin-react": "^4.2.1", + "autoprefixer": "^10.4.17", + "eslint": "^8.56.0", + "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-react-refresh": "^0.4.5", + "postcss": "^8.4.35", + "tailwindcss": "^3.4.1", + "typescript": "^5.2.2", + "vite": "^5.1.0" + } + }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@alloc/quick-lru": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", + "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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==", + "dev": true, + "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.23.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", + "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.23.4", + "chalk": "^2.4.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz", + "integrity": "sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.9.tgz", + "integrity": "sha512-5q0175NOjddqpvvzU+kDiSOAk4PfdO6FvwCWoQ6RO7rTzEe8vlo+4HVfcnAREhD4npMs0e9uZypjTwzZPCf/cw==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.6", + "@babel/helper-compilation-targets": "^7.23.6", + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helpers": "^7.23.9", + "@babel/parser": "^7.23.9", + "@babel/template": "^7.23.9", + "@babel/traverse": "^7.23.9", + "@babel/types": "^7.23.9", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz", + "integrity": "sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.23.6", + "@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-compilation-targets": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", + "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.23.5", + "@babel/helper-validator-option": "^7.23.5", + "browserslist": "^4.22.2", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", + "dev": true, + "dependencies": { + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", + "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", + "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/helper-validator-identifier": "^7.22.20" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", + "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", + "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", + "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", + "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.9.tgz", + "integrity": "sha512-87ICKgU5t5SzOT7sBMfCOZQ2rHjRU+Pcb9BoILMYz600W6DkVRLFBPwQ18gwUVvggqXivaUakpnxWQGbpywbBQ==", + "dev": true, + "dependencies": { + "@babel/template": "^7.23.9", + "@babel/traverse": "^7.23.9", + "@babel/types": "^7.23.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", + "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.22.20", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.9.tgz", + "integrity": "sha512-9tcKgqKbs3xGJ+NtKF2ndOBBLVwPjl1SHxPQkd36r3Dlirw3xWUeGaTbqr7uGZcTaxkVNwc+03SVP7aCdWrTlA==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-self": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.23.3.tgz", + "integrity": "sha512-qXRvbeKDSfwnlJnanVRp0SfuWE5DQhwQr5xtLBzp56Wabyo+4CMosF6Kfp+eOD/4FYpql64XVJ2W0pVLlJZxOQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-source": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.23.3.tgz", + "integrity": "sha512-91RS0MDnAWDNvGC6Wio5XYkyWI39FMFO+JK9+4AlgaTH+yWwVTsw7/sn6LK0lH7c5F+TFkpv/3LfCJ1Ydwof/g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.23.9.tgz", + "integrity": "sha512-+xrD2BWLpvHKNmX2QbpdpsBaWnRxahMwJjO+KZk2JOElj5nSmKezyS1B4u+QbHMTX69t4ukm6hh9lsYQ7GHCKA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.23.5", + "@babel/parser": "^7.23.9", + "@babel/types": "^7.23.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.9.tgz", + "integrity": "sha512-I/4UJ9vs90OkBtY6iiiTORVMyIhJ4kAVmsKo9KFc8UOxMeUfi2hvtIBsET5u9GizXE6/GFSuKCTNfgCswuEjRg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.6", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.23.9", + "@babel/types": "^7.23.9", + "debug": "^4.3.1", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.9.tgz", + "integrity": "sha512-dQjSq/7HaSjRM43FFGnv5keM2HsxpmyV1PfaSVm0nzzjwwTmjOe6J4bC8e3+pTEIgHaHj+1ZlLThRJ2auc/w1Q==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.23.4", + "@babel/helper-validator-identifier": "^7.22.20", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.12.tgz", + "integrity": "sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.12.tgz", + "integrity": "sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.12.tgz", + "integrity": "sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.12.tgz", + "integrity": "sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.12.tgz", + "integrity": "sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.12.tgz", + "integrity": "sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.12.tgz", + "integrity": "sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.12.tgz", + "integrity": "sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.12.tgz", + "integrity": "sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.12.tgz", + "integrity": "sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.12.tgz", + "integrity": "sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.12.tgz", + "integrity": "sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.12.tgz", + "integrity": "sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.12.tgz", + "integrity": "sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.12.tgz", + "integrity": "sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.12.tgz", + "integrity": "sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.12.tgz", + "integrity": "sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.12.tgz", + "integrity": "sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.12.tgz", + "integrity": "sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.12.tgz", + "integrity": "sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.12.tgz", + "integrity": "sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.12.tgz", + "integrity": "sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.12.tgz", + "integrity": "sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "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==", + "dev": 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/regexpp": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", + "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "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/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/eslintrc/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@eslint/js": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz", + "integrity": "sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@ethersphere/bee-js": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/@ethersphere/bee-js/-/bee-js-6.8.1.tgz", + "integrity": "sha512-Toid5XDW+Eh6ipg0TPA0BWAZwhg6aarLsXWrLUTAbddAY2SyWYHJ0fPjrtQWtcvHRgmBoCtfUNVKb97XOIsGhA==", + "dependencies": { + "@ethersphere/swarm-cid": "^0.1.0", + "@types/readable-stream": "^2.3.13", + "axios": "^0.28.0", + "cafe-utility": "^15.0.2", + "elliptic": "^6.5.4", + "fetch-blob": "2.1.2", + "isomorphic-ws": "^4.0.1", + "js-sha3": "^0.8.0", + "semver": "^7.3.5", + "tar-js": "^0.3.0", + "web-streams-polyfill": "^4.0.0-beta.3", + "ws": "^8.7.0" + }, + "engines": { + "bee": "1.18.2-759f56f", + "beeApiVersion": "4.0.0", + "beeDebugApiVersion": "4.0.0", + "node": ">=14.0.0", + "npm": ">=6.0.0" + } + }, + "node_modules/@ethersphere/swarm-cid": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@ethersphere/swarm-cid/-/swarm-cid-0.1.0.tgz", + "integrity": "sha512-n+n+w5RJBPm7CiPf8TIgNFIRMo4bLh5bYpZxHObgCaxFW8WNZ4UGfqg+qjS/jEr+A3Mmp0lugKDvd8GnfFy7JQ==", + "dependencies": { + "multiformats": "^9.5.4" + }, + "engines": { + "node": ">=12.0.0", + "npm": ">=6.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.14", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", + "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.2", + "debug": "^4.3.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/config-array/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==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@humanwhocodes/config-array/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "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==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", + "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==", + "dev": true + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/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==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/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==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "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==", + "dev": true, + "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.1", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", + "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", + "dev": true, + "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==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "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==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.22", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.22.tgz", + "integrity": "sha512-Wf963MzWtA2sjrNt+g18IAln9lKnlRp+K2eH4jjIoF1wYeq3aMREpG09xhlhdzS0EjwU7qmUJYangWa+151vZw==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "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==", + "dev": true, + "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==", + "dev": true, + "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==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.9.6.tgz", + "integrity": "sha512-MVNXSSYN6QXOulbHpLMKYi60ppyO13W9my1qogeiAqtjb2yR4LSmfU2+POvDkLzhjYLXz9Rf9+9a3zFHW1Lecg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.9.6.tgz", + "integrity": "sha512-T14aNLpqJ5wzKNf5jEDpv5zgyIqcpn1MlwCrUXLrwoADr2RkWA0vOWP4XxbO9aiO3dvMCQICZdKeDrFl7UMClw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.9.6.tgz", + "integrity": "sha512-CqNNAyhRkTbo8VVZ5R85X73H3R5NX9ONnKbXuHisGWC0qRbTTxnF1U4V9NafzJbgGM0sHZpdO83pLPzq8uOZFw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.9.6.tgz", + "integrity": "sha512-zRDtdJuRvA1dc9Mp6BWYqAsU5oeLixdfUvkTHuiYOHwqYuQ4YgSmi6+/lPvSsqc/I0Omw3DdICx4Tfacdzmhog==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.9.6.tgz", + "integrity": "sha512-oNk8YXDDnNyG4qlNb6is1ojTOGL/tRhbbKeE/YuccItzerEZT68Z9gHrY3ROh7axDc974+zYAPxK5SH0j/G+QQ==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.9.6.tgz", + "integrity": "sha512-Z3O60yxPtuCYobrtzjo0wlmvDdx2qZfeAWTyfOjEDqd08kthDKexLpV97KfAeUXPosENKd8uyJMRDfFMxcYkDQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.9.6.tgz", + "integrity": "sha512-gpiG0qQJNdYEVad+1iAsGAbgAnZ8j07FapmnIAQgODKcOTjLEWM9sRb+MbQyVsYCnA0Im6M6QIq6ax7liws6eQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.9.6.tgz", + "integrity": "sha512-+uCOcvVmFUYvVDr27aiyun9WgZk0tXe7ThuzoUTAukZJOwS5MrGbmSlNOhx1j80GdpqbOty05XqSl5w4dQvcOA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.9.6.tgz", + "integrity": "sha512-HUNqM32dGzfBKuaDUBqFB7tP6VMN74eLZ33Q9Y1TBqRDn+qDonkAUyKWwF9BR9unV7QUzffLnz9GrnKvMqC/fw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.9.6.tgz", + "integrity": "sha512-ch7M+9Tr5R4FK40FHQk8VnML0Szi2KRujUgHXd/HjuH9ifH72GUmw6lStZBo3c3GB82vHa0ZoUfjfcM7JiiMrQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.9.6.tgz", + "integrity": "sha512-VD6qnR99dhmTQ1mJhIzXsRcTBvTjbfbGGwKAHcu+52cVl15AC/kplkhxzW/uT0Xl62Y/meBKDZvoJSJN+vTeGA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.9.6.tgz", + "integrity": "sha512-J9AFDq/xiRI58eR2NIDfyVmTYGyIZmRcvcAoJ48oDld/NTR8wyiPUu2X/v1navJ+N/FGg68LEbX3Ejd6l8B7MQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.9.6.tgz", + "integrity": "sha512-jqzNLhNDvIZOrt69Ce4UjGRpXJBzhUBzawMwnaDAwyHriki3XollsewxWzOzz+4yOFDkuJHtTsZFwMxhYJWmLQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.8", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", + "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.5.tgz", + "integrity": "sha512-WXCyOcRtH37HAUkpXhUduaxdm82b4GSlyTqajXviN4EfiuPgNYR109xMCKvpl6zPIpua0DGlMEDCq+g8EdoheQ==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/estree": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", + "dev": true + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, + "node_modules/@types/node": { + "version": "20.11.24", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.24.tgz", + "integrity": "sha512-Kza43ewS3xoLgCEpQrsT+xRo/EJej1y0kVYGiLFE1NEODXGzTfwiC6tXTLMQskn1X4/Rjlh0MQUvx9W+L9long==", + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/@types/prop-types": { + "version": "15.7.11", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.11.tgz", + "integrity": "sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==", + "dev": true + }, + "node_modules/@types/react": { + "version": "18.2.55", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.55.tgz", + "integrity": "sha512-Y2Tz5P4yz23brwm2d7jNon39qoAtMMmalOQv6+fEFt1mT+FcM3D841wDpoUvFXhaYenuROCy3FZYqdTjM7qVyA==", + "dev": true, + "dependencies": { + "@types/prop-types": "*", + "@types/scheduler": "*", + "csstype": "^3.0.2" + } + }, + "node_modules/@types/react-dom": { + "version": "18.2.19", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.19.tgz", + "integrity": "sha512-aZvQL6uUbIJpjZk4U8JZGbau9KDeAwMfmhyWorxgBkqDIEf6ROjRozcmPIicqsUwPUjbkDfHKgGee1Lq65APcA==", + "dev": true, + "dependencies": { + "@types/react": "*" + } + }, + "node_modules/@types/readable-stream": { + "version": "2.3.15", + "resolved": "https://registry.npmjs.org/@types/readable-stream/-/readable-stream-2.3.15.tgz", + "integrity": "sha512-oM5JSKQCcICF1wvGgmecmHldZ48OZamtMxcGGVICOJA8o8cahXC1zEVAif8iwoc5j8etxFaRFnf095+CDsuoFQ==", + "dependencies": { + "@types/node": "*", + "safe-buffer": "~5.1.1" + } + }, + "node_modules/@types/scheduler": { + "version": "0.16.8", + "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.8.tgz", + "integrity": "sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==", + "dev": true + }, + "node_modules/@types/semver": { + "version": "7.5.6", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz", + "integrity": "sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==", + "dev": true + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.21.0.tgz", + "integrity": "sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA==", + "dev": true, + "dependencies": { + "@eslint-community/regexpp": "^4.5.1", + "@typescript-eslint/scope-manager": "6.21.0", + "@typescript-eslint/type-utils": "6.21.0", + "@typescript-eslint/utils": "6.21.0", + "@typescript-eslint/visitor-keys": "6.21.0", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.21.0.tgz", + "integrity": "sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "6.21.0", + "@typescript-eslint/types": "6.21.0", + "@typescript-eslint/typescript-estree": "6.21.0", + "@typescript-eslint/visitor-keys": "6.21.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.21.0.tgz", + "integrity": "sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.21.0", + "@typescript-eslint/visitor-keys": "6.21.0" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.21.0.tgz", + "integrity": "sha512-rZQI7wHfao8qMX3Rd3xqeYSMCL3SoiSQLBATSiVKARdFGCYSRvmViieZjqc58jKgs8Y8i9YvVVhRbHSTA4VBag==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "6.21.0", + "@typescript-eslint/utils": "6.21.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.21.0.tgz", + "integrity": "sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==", + "dev": true, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.21.0.tgz", + "integrity": "sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.21.0", + "@typescript-eslint/visitor-keys": "6.21.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "9.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.21.0.tgz", + "integrity": "sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@types/json-schema": "^7.0.12", + "@types/semver": "^7.5.0", + "@typescript-eslint/scope-manager": "6.21.0", + "@typescript-eslint/types": "6.21.0", + "@typescript-eslint/typescript-estree": "6.21.0", + "semver": "^7.5.4" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.21.0.tgz", + "integrity": "sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.21.0", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, + "node_modules/@vitejs/plugin-react": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.2.1.tgz", + "integrity": "sha512-oojO9IDc4nCUUi8qIR11KoQm0XFFLIwsRBwHRR4d/88IWghn1y6ckz/bJ8GHDCsYEJee8mDzqtJxh15/cisJNQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.23.5", + "@babel/plugin-transform-react-jsx-self": "^7.23.3", + "@babel/plugin-transform-react-jsx-source": "^7.23.3", + "@types/babel__core": "^7.20.5", + "react-refresh": "^0.14.0" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "peerDependencies": { + "vite": "^4.2.0 || ^5.0.0" + } + }, + "node_modules/acorn": { + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "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==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "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/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "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==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/any-promise": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", + "dev": true + }, + "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==", + "dev": true, + "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==", + "dev": true + }, + "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==", + "dev": true + }, + "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==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/autoprefixer": { + "version": "10.4.17", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.17.tgz", + "integrity": "sha512-/cpVNRLSfhOtcGflT13P2794gVSgmPgTR+erw5ifnMLZb0UnSlkK4tquLmkd3BhA+nLo5tX8Cu0upUsGKvKbmg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "browserslist": "^4.22.2", + "caniuse-lite": "^1.0.30001578", + "fraction.js": "^4.3.7", + "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/axios": { + "version": "0.28.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.28.0.tgz", + "integrity": "sha512-Tu7NYoGY4Yoc7I+Npf9HhUMtEEpV7ZiLH9yndTCoNhcpBH0kwcvFbzYN9/u5QKI5A6uefjsNNWaz5olJVYS62Q==", + "dependencies": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "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==", + "dev": true + }, + "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==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + }, + "node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/brorand": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", + "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==" + }, + "node_modules/browserslist": { + "version": "4.22.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.3.tgz", + "integrity": "sha512-UAp55yfwNv0klWNapjs/ktHoguxuQNGnOzxYmfnXIS+8AsRDZkSDxg7R1AX3GKzn078SBI5dzwzj/Yx0Or0e3A==", + "dev": true, + "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.30001580", + "electron-to-chromium": "^1.4.648", + "node-releases": "^2.0.14", + "update-browserslist-db": "^1.0.13" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/cafe-utility": { + "version": "15.0.2", + "resolved": "https://registry.npmjs.org/cafe-utility/-/cafe-utility-15.0.2.tgz", + "integrity": "sha512-TNKSfA/q/XRd86NwYtF5QImQB8U5n/hKZuWblYFgYW4aveHcSg2RGOfR3+xquXRXF7BCeNoAXe2/snWFKviPzw==" + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "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==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001585", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001585.tgz", + "integrity": "sha512-yr2BWR1yLXQ8fMpdS/4ZZXpseBgE7o4g41x3a6AJOqZuOi+iE/WdJYAuZ6Y95i4Ohd2Y+9MzIWRR+uGABH4s3Q==", + "dev": true, + "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/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "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" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/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==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "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==", + "dev": true, + "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==", + "dev": true + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "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==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "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==", + "dev": true, + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/csstype": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "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==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "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==", + "dev": true + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/didyoumean": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", + "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==", + "dev": true + }, + "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==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/dlv": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", + "dev": true + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true + }, + "node_modules/electron-to-chromium": { + "version": "1.4.664", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.664.tgz", + "integrity": "sha512-k9VKKSkOSNPvSckZgDDl/IQx45E1quMjX8QfLzUsAs/zve8AyFDK+ByRynSP/OfEfryiKHpQeMf00z0leLCc3A==", + "dev": true + }, + "node_modules/elliptic": { + "version": "6.5.5", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.5.tgz", + "integrity": "sha512-7EjbcmUm17NQFu4Pmgmq2olYMj8nwMnpcddByChSUjArp8F5DQWcIcpriwO4ZToLNAJig0yiyjswfyGNje/ixw==", + "dependencies": { + "bn.js": "^4.11.9", + "brorand": "^1.1.0", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.1", + "inherits": "^2.0.4", + "minimalistic-assert": "^1.0.1", + "minimalistic-crypto-utils": "^1.0.1" + } + }, + "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==", + "dev": true + }, + "node_modules/esbuild": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.12.tgz", + "integrity": "sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.19.12", + "@esbuild/android-arm": "0.19.12", + "@esbuild/android-arm64": "0.19.12", + "@esbuild/android-x64": "0.19.12", + "@esbuild/darwin-arm64": "0.19.12", + "@esbuild/darwin-x64": "0.19.12", + "@esbuild/freebsd-arm64": "0.19.12", + "@esbuild/freebsd-x64": "0.19.12", + "@esbuild/linux-arm": "0.19.12", + "@esbuild/linux-arm64": "0.19.12", + "@esbuild/linux-ia32": "0.19.12", + "@esbuild/linux-loong64": "0.19.12", + "@esbuild/linux-mips64el": "0.19.12", + "@esbuild/linux-ppc64": "0.19.12", + "@esbuild/linux-riscv64": "0.19.12", + "@esbuild/linux-s390x": "0.19.12", + "@esbuild/linux-x64": "0.19.12", + "@esbuild/netbsd-x64": "0.19.12", + "@esbuild/openbsd-x64": "0.19.12", + "@esbuild/sunos-x64": "0.19.12", + "@esbuild/win32-arm64": "0.19.12", + "@esbuild/win32-ia32": "0.19.12", + "@esbuild/win32-x64": "0.19.12" + } + }, + "node_modules/escalade": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "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==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/eslint": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz", + "integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.56.0", + "@humanwhocodes/config-array": "^0.11.13", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "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.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "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", + "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.3", + "strip-ansi": "^6.0.1", + "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-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-refresh": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.5.tgz", + "integrity": "sha512-D53FYKJa+fDmZMtriODxvhwrO+IOqrxoEo21gMA0sjHdU6dPVH4OhyFip9ypl8HOF5RV5KdTo+rBQLvnY2cO8w==", + "dev": true, + "peerDependencies": { + "eslint": ">=7" + } + }, + "node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": 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-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "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==", + "dev": 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/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.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==", + "dev": 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==", + "dev": 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==", + "dev": true + }, + "node_modules/eslint/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==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": 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==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "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==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "dependencies": { + "acorn": "^8.9.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/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "dev": 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==", + "dev": true, + "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==", + "dev": true, + "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==", + "dev": true, + "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==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dev": true, + "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-glob/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==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "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==", + "dev": true + }, + "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==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fetch-blob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-2.1.2.tgz", + "integrity": "sha512-YKqtUDwqLyfyMnmbw8XD6Q8j9i/HggKtPEI+pZ1+8bvheBu78biSmNaXWusx1TauGqtUUGx/cBb1mKdq2rLYow==", + "engines": { + "node": "^10.17.0 || >=12.3.0" + }, + "peerDependenciesMeta": { + "domexception": { + "optional": true + } + } + }, + "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==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.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==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "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==", + "dev": true, + "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.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "dev": true, + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", + "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", + "dev": true + }, + "node_modules/follow-redirects": { + "version": "1.15.5", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", + "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/foreground-child": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", + "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fraction.js": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz", + "integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==", + "dev": true, + "engines": { + "node": "*" + }, + "funding": { + "type": "patreon", + "url": "https://github.com/sponsors/rawify" + } + }, + "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==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "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==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "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": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob/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==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "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==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "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/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "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==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/hash.js": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", + "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", + "dependencies": { + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.1" + } + }, + "node_modules/hasown": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", + "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/hmac-drbg": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", + "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", + "dependencies": { + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" + } + }, + "node_modules/ignore": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", + "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "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==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "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==", + "dev": true, + "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/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==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-core-module": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "dev": true, + "dependencies": { + "hasown": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "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/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "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==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "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==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/isomorphic-ws": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz", + "integrity": "sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==", + "peerDependencies": { + "ws": "*" + } + }, + "node_modules/jackspeak": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", + "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", + "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/jiti": { + "version": "1.21.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.0.tgz", + "integrity": "sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==", + "dev": true, + "bin": { + "jiti": "bin/jiti.js" + } + }, + "node_modules/js-sha3": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz", + "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==" + }, + "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==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, + "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==", + "dev": true + }, + "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==", + "dev": 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==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "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==", + "dev": 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==", + "dev": true, + "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==", + "dev": true + }, + "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==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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==", + "dev": true + }, + "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/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==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "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/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/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/minimalistic-crypto-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", + "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==" + }, + "node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minipass": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", + "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", + "dev": true, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "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==", + "dev": true + }, + "node_modules/multiformats": { + "version": "9.9.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-9.9.0.tgz", + "integrity": "sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg==" + }, + "node_modules/mz": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", + "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "dev": true, + "dependencies": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, + "node_modules/nanoid": { + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "dev": true, + "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==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", + "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", + "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==", + "dev": true, + "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==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "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==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "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==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/optionator": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "dev": true, + "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "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==", + "dev": true, + "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==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "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==", + "dev": true, + "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==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "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==", + "dev": true, + "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==", + "dev": true + }, + "node_modules/path-scurry": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.1.tgz", + "integrity": "sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==", + "dev": true, + "dependencies": { + "lru-cache": "^9.1.1 || ^10.0.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.0.tgz", + "integrity": "sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==", + "dev": true, + "engines": { + "node": "14 || >=16.14" + } + }, + "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==", + "dev": true, + "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==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/postcss": { + "version": "8.4.35", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.35.tgz", + "integrity": "sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA==", + "dev": true, + "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.7", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-import": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", + "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-js": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz", + "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==", + "dev": true, + "dependencies": { + "camelcase-css": "^2.0.1" + }, + "engines": { + "node": "^12 || ^14 || >= 16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.4.21" + } + }, + "node_modules/postcss-load-config": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz", + "integrity": "sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "lilconfig": "^3.0.0", + "yaml": "^2.3.4" + }, + "engines": { + "node": ">= 14" + }, + "peerDependencies": { + "postcss": ">=8.0.9", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/postcss-load-config/node_modules/lilconfig": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.0.0.tgz", + "integrity": "sha512-K2U4W2Ff5ibV7j7ydLr+zLAkIg5JJ4lPn1Ltsdt+Tz/IjQ8buJ55pZAxoP34lqIiwtF9iAvtLv3JGv7CAyAg+g==", + "dev": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/postcss-nested": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.1.tgz", + "integrity": "sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.11" + }, + "engines": { + "node": ">=12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.2.14" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.0.15", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.15.tgz", + "integrity": "sha512-rEYkQOMUCEMhsKbK66tbEU9QVIxbhN18YiniAwA7XQYTVBqrBy+P2p5JcdqsHgKM2zWylp8d7J6eszocfds5Sw==", + "dev": true, + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "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==", + "dev": true + }, + "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==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "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==", + "dev": true, + "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/react": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", + "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", + "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.0" + }, + "peerDependencies": { + "react": "^18.2.0" + } + }, + "node_modules/react-refresh": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.14.0.tgz", + "integrity": "sha512-wViHqhAd8OHeLS/IRMJjTSDHF3U9eWi62F/MledQGPdJGDhodXJ9PBLNGr6WWL7qlH12Mt3TyTpbS+hGXMjCzQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/read-cache": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", + "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", + "dev": true, + "dependencies": { + "pify": "^2.3.0" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "dev": true, + "dependencies": { + "is-core-module": "^2.13.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==", + "dev": true, + "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==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rollup": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.9.6.tgz", + "integrity": "sha512-05lzkCS2uASX0CiLFybYfVkwNbKZG5NFQ6Go0VWyogFTXXbR039UVsegViTntkk4OglHBdF54ccApXRRuXRbsg==", + "dev": true, + "dependencies": { + "@types/estree": "1.0.5" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.9.6", + "@rollup/rollup-android-arm64": "4.9.6", + "@rollup/rollup-darwin-arm64": "4.9.6", + "@rollup/rollup-darwin-x64": "4.9.6", + "@rollup/rollup-linux-arm-gnueabihf": "4.9.6", + "@rollup/rollup-linux-arm64-gnu": "4.9.6", + "@rollup/rollup-linux-arm64-musl": "4.9.6", + "@rollup/rollup-linux-riscv64-gnu": "4.9.6", + "@rollup/rollup-linux-x64-gnu": "4.9.6", + "@rollup/rollup-linux-x64-musl": "4.9.6", + "@rollup/rollup-win32-arm64-msvc": "4.9.6", + "@rollup/rollup-win32-ia32-msvc": "4.9.6", + "@rollup/rollup-win32-x64-msvc": "4.9.6", + "fsevents": "~2.3.2" + } + }, + "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==", + "dev": true, + "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/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/scheduler": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", + "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver/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/semver/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/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==", + "dev": true, + "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==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "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==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "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==", + "dev": true, + "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-cjs": { + "name": "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/string-width-cjs/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/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==", + "dev": true, + "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==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "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==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "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==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/sucrase": { + "version": "3.35.0", + "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz", + "integrity": "sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.2", + "commander": "^4.0.0", + "glob": "^10.3.10", + "lines-and-columns": "^1.1.6", + "mz": "^2.7.0", + "pirates": "^4.0.1", + "ts-interface-checker": "^0.1.9" + }, + "bin": { + "sucrase": "bin/sucrase", + "sucrase-node": "bin/sucrase-node" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/sucrase/node_modules/glob": { + "version": "10.3.10", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", + "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", + "dev": true, + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.3.5", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "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==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "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==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tailwindcss": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.1.tgz", + "integrity": "sha512-qAYmXRfk3ENzuPBakNK0SRrUDipP8NQnEY6772uDhflcQz5EhRdD7JNZxyrFHVQNCwULPBn6FNPp9brpO7ctcA==", + "dev": true, + "dependencies": { + "@alloc/quick-lru": "^5.2.0", + "arg": "^5.0.2", + "chokidar": "^3.5.3", + "didyoumean": "^1.2.2", + "dlv": "^1.1.3", + "fast-glob": "^3.3.0", + "glob-parent": "^6.0.2", + "is-glob": "^4.0.3", + "jiti": "^1.19.1", + "lilconfig": "^2.1.0", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "object-hash": "^3.0.0", + "picocolors": "^1.0.0", + "postcss": "^8.4.23", + "postcss-import": "^15.1.0", + "postcss-js": "^4.0.1", + "postcss-load-config": "^4.0.1", + "postcss-nested": "^6.0.1", + "postcss-selector-parser": "^6.0.11", + "resolve": "^1.22.2", + "sucrase": "^3.32.0" + }, + "bin": { + "tailwind": "lib/cli.js", + "tailwindcss": "lib/cli.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tar-js": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/tar-js/-/tar-js-0.3.0.tgz", + "integrity": "sha512-9uqP2hJUZNKRkwPDe5nXxXdzo6w+BFBPq9x/tyi5/U/DneuSesO/HMb0y5TeWpfcv49YDJTs7SrrZeeu8ZHWDA==", + "engines": { + "node": "*" + } + }, + "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==", + "dev": true + }, + "node_modules/thenify": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "dev": true, + "dependencies": { + "any-promise": "^1.0.0" + } + }, + "node_modules/thenify-all": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", + "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", + "dev": true, + "dependencies": { + "thenify": ">= 3.1.0 < 4" + }, + "engines": { + "node": ">=0.8" + } + }, + "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==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "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==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-api-utils": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.2.1.tgz", + "integrity": "sha512-RIYA36cJn2WiH9Hy77hdF9r7oEwxAtB/TS9/S4Qd90Ap4z5FSiin5zEiTL44OII1Y3IIlEvxwxFUVgrHSZ/UpA==", + "dev": true, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, + "node_modules/ts-interface-checker": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", + "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", + "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==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "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==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", + "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, + "node_modules/update-browserslist-db": { + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", + "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", + "dev": true, + "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/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.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==", + "dev": true + }, + "node_modules/vite": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.1.1.tgz", + "integrity": "sha512-wclpAgY3F1tR7t9LL5CcHC41YPkQIpKUGeIuT8MdNwNZr6OqOTLs7JX5vIHAtzqLWXts0T+GDrh9pN2arneKqg==", + "dev": true, + "dependencies": { + "esbuild": "^0.19.3", + "postcss": "^8.4.35", + "rollup": "^4.2.0" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/web-streams-polyfill": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0.tgz", + "integrity": "sha512-0zJXHRAYEjM2tUfZ2DiSOHAa2aw1tisnnhU3ufD57R8iefL+DcdJyRBRyJpG+NUimDgbTI/lH+gAE1PAvV3Cgw==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "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==", + "dev": true, + "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-cjs": { + "name": "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/wrap-ansi-cjs/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/wrap-ansi-cjs/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/wrap-ansi-cjs/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/wrap-ansi-cjs/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/wrap-ansi-cjs/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/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==", + "dev": true, + "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==", + "dev": true, + "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==", + "dev": true, + "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==", + "dev": true + }, + "node_modules/ws": { + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", + "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==", + "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/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/yaml": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.4.tgz", + "integrity": "sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==", + "dev": true, + "engines": { + "node": ">= 14" + } + }, + "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==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/react-vite/package.json b/react-vite/package.json new file mode 100644 index 0000000..1b80b53 --- /dev/null +++ b/react-vite/package.json @@ -0,0 +1,33 @@ +{ + "name": "tailwind", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "start": "node dist/main.js", + "dev": "vite", + "build": "tsc && vite build", + "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", + "preview": "vite preview" + }, + "dependencies": { + "@ethersphere/bee-js": "^6.8.1", + "react": "^18.2.0", + "react-dom": "^18.2.0" + }, + "devDependencies": { + "@types/react": "^18.2.55", + "@types/react-dom": "^18.2.19", + "@typescript-eslint/eslint-plugin": "^6.21.0", + "@typescript-eslint/parser": "^6.21.0", + "@vitejs/plugin-react": "^4.2.1", + "autoprefixer": "^10.4.17", + "eslint": "^8.56.0", + "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-react-refresh": "^0.4.5", + "postcss": "^8.4.35", + "tailwindcss": "^3.4.1", + "typescript": "^5.2.2", + "vite": "^5.1.0" + } +} diff --git a/react-vite/postcss.config.js b/react-vite/postcss.config.js new file mode 100644 index 0000000..2e7af2b --- /dev/null +++ b/react-vite/postcss.config.js @@ -0,0 +1,6 @@ +export default { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/react-vite/src/App.css b/react-vite/src/App.css new file mode 100644 index 0000000..419d686 --- /dev/null +++ b/react-vite/src/App.css @@ -0,0 +1,37 @@ + section { + max-width: 720px; + margin: 24px auto; + display: flex; + flex-direction: column; + gap: 20px; + } + + .connection-status p { + display: flex; + /* justify-content: center; */ + align-items: center; + gap: 10px; + } + + .online, + .offline { + width: 18px; + height: 18px; + border-radius: 50%; + display: inline-block; + } + + .online { + background-color: rgb(146, 242, 174); + } + + .offline { + background-color: rgb(76, 76, 76); + } + + .all-postage-stamp button { + background-color: gray; + color: #fff; + padding: 16px; + font-weight: 700; + } \ No newline at end of file diff --git a/react-vite/src/App.tsx b/react-vite/src/App.tsx new file mode 100644 index 0000000..20a74ce --- /dev/null +++ b/react-vite/src/App.tsx @@ -0,0 +1,33 @@ +import { Health } from "@ethersphere/bee-js"; +import { useEffect, useState } from "react"; +import "./App.css"; +import { beeDebug } from "./utils/bee-node"; + +function App() { + const [nodeHealth, setNodeHealth] = useState(); + + useEffect(() => { + handleIsNodeOnline(); + }, []); + + const handleIsNodeOnline = async () => { + const health = await beeDebug.getHealth(); + setNodeHealth(health); + }; + + return ( +
+
+

+ Node status:{" "} + + {nodeHealth?.status == "ok" ? "Connected" : "Disconnected"} +

+
+
+ ); +} + +export default App; diff --git a/react-vite/src/constant/index.ts b/react-vite/src/constant/index.ts new file mode 100644 index 0000000..dadc2e4 --- /dev/null +++ b/react-vite/src/constant/index.ts @@ -0,0 +1,4 @@ +const API_URL = 'http://localhost:1633'; +const API_DEBUG_URL = 'http://127.0.0.1:1635'; + +export { API_DEBUG_URL, API_URL }; diff --git a/react-vite/src/index.css b/react-vite/src/index.css new file mode 100644 index 0000000..0147afa --- /dev/null +++ b/react-vite/src/index.css @@ -0,0 +1,58 @@ +@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&family=Palanquin:wght@100;200;300;400;500;600;700&display=swap"); +@import url("https://fonts.googleapis.com/css2?family=Palanquin:wght@100;200;300;400;500;600;700&display=swap"); + +@tailwind base; +@tailwind components; +@tailwind utilities; + +* { + margin: 0; + padding: 0; + box-sizing: border-box; + scroll-behavior: smooth; +} + +@layer components { + .max-container { + max-width: 1440px; + margin: 0 auto; + } + + .input { + @apply sm:flex-1 max-sm:w-full text-base leading-normal text-slate-gray pl-5 max-sm:p-5 outline-none sm:border-none border max-sm:border-slate-gray max-sm:rounded-full; + } +} + +@layer utilities { + .padding { + @apply sm:px-16 px-8 sm:py-24 py-12; + } + + .padding-x { + @apply sm:px-16 px-8; + } + + .padding-y { + @apply sm:py-24 py-12; + } + + .padding-l { + @apply sm:pl-16 pl-8; + } + + .padding-r { + @apply sm:pr-16 pr-8; + } + + .padding-t { + @apply sm:pt-24 pt-12; + } + + .padding-b { + @apply sm:pb-24 pb-12; + } + + .info-text { + @apply font-montserrat text-slate-gray text-lg leading-7; + } +} \ No newline at end of file diff --git a/react-vite/src/main.tsx b/react-vite/src/main.tsx new file mode 100644 index 0000000..3d7150d --- /dev/null +++ b/react-vite/src/main.tsx @@ -0,0 +1,10 @@ +import React from 'react' +import ReactDOM from 'react-dom/client' +import App from './App.tsx' +import './index.css' + +ReactDOM.createRoot(document.getElementById('root')!).render( + + + , +) diff --git a/react-vite/src/utils/bee-node.ts b/react-vite/src/utils/bee-node.ts new file mode 100644 index 0000000..662f270 --- /dev/null +++ b/react-vite/src/utils/bee-node.ts @@ -0,0 +1,7 @@ +import { Bee, BeeDebug } from "@ethersphere/bee-js"; +import { API_DEBUG_URL, API_URL } from "../constant"; + +const bee = new Bee(API_URL); +const beeDebug = new BeeDebug(API_DEBUG_URL); + +export { bee, beeDebug }; diff --git a/react-vite/src/vite-env.d.ts b/react-vite/src/vite-env.d.ts new file mode 100644 index 0000000..11f02fe --- /dev/null +++ b/react-vite/src/vite-env.d.ts @@ -0,0 +1 @@ +/// diff --git a/react-vite/tailwind.config.js b/react-vite/tailwind.config.js new file mode 100644 index 0000000..4358990 --- /dev/null +++ b/react-vite/tailwind.config.js @@ -0,0 +1,41 @@ +/** @type {import('tailwindcss').Config} */ +export default { + content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'], + theme: { + fontSize: { + xs: ['12px', '16px'], + sm: ['14px', '20px'], + base: ['16px', '19.5px'], + lg: ['18px', '21.94px'], + xl: ['20px', '24.38px'], + '2xl': ['24px', '29.26px'], + '3xl': ['28px', '50px'], + '4xl': ['48px', '58px'], + '8xl': ['96px', '106px'], + }, + extend: { + fontFamily: { + palanquin: ['Palanquin', 'sans-serif'], + montserrat: ['Montserrat', 'sans-serif'], + }, + colors: { + primary: '#ECEEFF', + 'coral-red': '#FF6452', + 'slate-gray': '#6D6D6D', + 'pale-blue': '#F5F6FF', + 'white-400': 'rgba(255, 255, 255, 0.80)', + }, + boxShadow: { + '3xl': '0 10px 40px rgba(0, 0, 0, 0.1)', + }, + backgroundImage: { + hero: "url('assets/images/collection-background.svg')", + card: "url('assets/images/thumbnail-background.svg')", + }, + screens: { + wide: '1440px', + }, + }, + }, + plugins: [], +}; diff --git a/react-vite/tsconfig.json b/react-vite/tsconfig.json new file mode 100644 index 0000000..a7fc6fb --- /dev/null +++ b/react-vite/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "target": "ES2020", + "useDefineForClassFields": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["src"], + "references": [{ "path": "./tsconfig.node.json" }] +} diff --git a/react-vite/tsconfig.node.json b/react-vite/tsconfig.node.json new file mode 100644 index 0000000..97ede7e --- /dev/null +++ b/react-vite/tsconfig.node.json @@ -0,0 +1,11 @@ +{ + "compilerOptions": { + "composite": true, + "skipLibCheck": true, + "module": "ESNext", + "moduleResolution": "bundler", + "allowSyntheticDefaultImports": true, + "strict": true + }, + "include": ["vite.config.ts"] +} diff --git a/react-vite/vite.config.ts b/react-vite/vite.config.ts new file mode 100644 index 0000000..5a33944 --- /dev/null +++ b/react-vite/vite.config.ts @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite' +import react from '@vitejs/plugin-react' + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [react()], +}) From f70953621dce86bee10bcd28faa0fadc61ad9fed Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Tue, 21 May 2024 23:52:16 +0100 Subject: [PATCH 02/46] feat: added usePostageStamp hook --- react-vite/src/hooks/usePostageBatch.tsx | 65 ++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 react-vite/src/hooks/usePostageBatch.tsx diff --git a/react-vite/src/hooks/usePostageBatch.tsx b/react-vite/src/hooks/usePostageBatch.tsx new file mode 100644 index 0000000..f058329 --- /dev/null +++ b/react-vite/src/hooks/usePostageBatch.tsx @@ -0,0 +1,65 @@ +import { BatchId, PostageBatch } from "@ethersphere/bee-js"; +import { useEffect, useState } from "react"; +import { beeDebug } from "../utils/bee-node"; + +export interface CreatePostageBatchArgs { + amount: number; + depth: number; +} +export function usePostageBatch() { + const [postageStamps, setPostageStamps] = useState(); + const [isLoadingStamps, setIsLoadingStamps] = useState(false); + const [isCreatePostageBatch, setIsCreatePostageBatch] = useState(false); + const [isErrorCreatePostageBatch, setIsErrorCreatePostageBatch] = + useState(false); + const [getAllStampError, setGetAllStampError] = useState(false); + const [batchId, setBatchId] = useState(); + + useEffect(() => {}, []); + + const getAllPostageStamps = async () => { + try { + setIsLoadingStamps(true); + + const ps: PostageBatch[] = await beeDebug.getAllPostageBatch(); + setPostageStamps(ps); + + setIsLoadingStamps(false); + } catch (err) { + setIsLoadingStamps(false); + setGetAllStampError(true); + } + }; + + /** + * This function creates a Postage Stamp Batch + * @param args + */ + const createPostageBatch = async (args: CreatePostageBatchArgs) => { + try { + setIsCreatePostageBatch(true); + const resBatchId = await beeDebug.createPostageBatch( + args.amount.toString(), + args.depth + ); + + setBatchId(resBatchId); + setIsCreatePostageBatch(false); + } catch (err) { + console.log(err); + setIsCreatePostageBatch(false); + setIsErrorCreatePostageBatch(true); + } + }; + + return { + getAllStampError, + getAllPostageStamps, + postageStamps, + isLoadingStamps, + createPostageBatch, + isCreatePostageBatch, + isErrorCreatePostageBatch, + batchId, + }; +} From cc261f1b7c03b94ec8ecceb9825d6e2a7ec1f27c Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Tue, 21 May 2024 23:56:01 +0100 Subject: [PATCH 03/46] feat: added CreatePostageBatch --- .../src/components/CreatePostageBatch.tsx | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 react-vite/src/components/CreatePostageBatch.tsx diff --git a/react-vite/src/components/CreatePostageBatch.tsx b/react-vite/src/components/CreatePostageBatch.tsx new file mode 100644 index 0000000..0c00135 --- /dev/null +++ b/react-vite/src/components/CreatePostageBatch.tsx @@ -0,0 +1,54 @@ +import { useState } from "react"; +import { usePostageBatch } from "../hooks/usePostageBatch"; + +type State = { + amount: number; + depth: number; +}; + +export const CreatePostageBatch = () => { + const [values, setValues] = useState({ amount: 0, depth: 0 }); + + const { createPostageBatch } = usePostageBatch(); + + const handleOnchange = (e: React.FormEvent): void => { + const target = e.currentTarget; + const name = target.name; + const value = target.value; + + setValues((preState) => ({ ...preState, [name]: value })); + }; + + const handleCreatePostage = () => { + createPostageBatch(values); + }; + + return ( +
+ + + + +
+ ); +}; From bb1b5a36cc07b7c73bfefe63f1f8274f47dfcc99 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Thu, 23 May 2024 12:02:45 +0100 Subject: [PATCH 04/46] feat: added upload hook --- react-vite/src/hooks/useUploadToSwarm.tsx | 43 +++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 react-vite/src/hooks/useUploadToSwarm.tsx diff --git a/react-vite/src/hooks/useUploadToSwarm.tsx b/react-vite/src/hooks/useUploadToSwarm.tsx new file mode 100644 index 0000000..7a97b45 --- /dev/null +++ b/react-vite/src/hooks/useUploadToSwarm.tsx @@ -0,0 +1,43 @@ +import { BatchId, Readable, UploadResultWithCid } from "@ethersphere/bee-js"; +import { useState } from "react"; +import { bee } from "../utils/bee-node"; + +type UploadArgsType = { + postageBatchId: string | BatchId; + data: string | File | Uint8Array | Readable; +}; +export function useUploadToSwarm() { + const [uploadResultWithCid, setUploadResultWithCid] = + useState(); + + const [isFileUploading, setIsFileUploading] = useState(false); + const [errorUploadingFile, setErrorUploadingFile] = useState(false); + + const handleFileUpload = async (args: UploadArgsType) => { + const file = args.data; + try { + const tag = await bee.createTag({}); + + setIsFileUploading(true); + const result = await bee.uploadFile( + args.postageBatchId, + file, + file.toString(), + // { tag } + ); + + setIsFileUploading(false); + setUploadResultWithCid(result); + } catch (err) { + setIsFileUploading(false); + setErrorUploadingFile(true); + } + }; + + return { + handleFileUpload, + uploadResultWithCid, + isFileUploading, + errorUploadingFile, + }; +} From 2552173f2eaa2f12dbfcb8b68f4fc4328b8c208c Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Thu, 23 May 2024 12:03:59 +0100 Subject: [PATCH 05/46] feat: added postageStamp comp --- react-vite/src/components/PostageStamps.tsx | 83 +++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 react-vite/src/components/PostageStamps.tsx diff --git a/react-vite/src/components/PostageStamps.tsx b/react-vite/src/components/PostageStamps.tsx new file mode 100644 index 0000000..cfddf9b --- /dev/null +++ b/react-vite/src/components/PostageStamps.tsx @@ -0,0 +1,83 @@ +import { usePostageBatch } from "../hooks/usePostageBatch"; +import { copyText, trimText } from "../utils/format"; + +export function PostageStamps() { + const { + getAllPostageStamps, + postageStamps, + getAllStampError, + isLoadingStamps, + } = usePostageBatch(); + + return ( +
+ +
    + {isLoadingStamps &&
  • Loading...
  • } + {getAllStampError && ( +
  • Error fetching Postage stamps!
  • + )} + + {postageStamps && + postageStamps.length > 0 && + postageStamps.map((ps) => ( +
  • +

    + + {" "} + BatchID: + {" "} + {trimText(ps.batchID)} +

    +

    + Label: {ps.label} +

    +

    + BlockNumber:{" "} + {ps.blockNumber} +

    +

    + Amount: {ps.amount} +

    +

    + BucketDepth:{" "} + {ps.bucketDepth} +

    +

    + Utilization:{" "} + {ps.utilization} +

    +

    + Exists:{" "} + {ps.exists ? "Yes" : "No"} +

    +

    + Depth: {ps.depth} +

    +

    + Immutable Flag:{" "} + {ps.immutableFlag} +

    +

    + Usable:{" "} + {ps.usable ? "Yes" : "No"} +

    +

    + BatchTTL: {ps.batchTTL} +

    +
  • + ))} +
+ {postageStamps && ( +

+ Total number of Postage Stamps: {postageStamps?.length} +

+ )} +
+ ); +} From 6f308fc5785f7b384bad299e798ef6aecad71ebf Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Thu, 23 May 2024 12:05:01 +0100 Subject: [PATCH 06/46] feat: add util for text formating --- react-vite/src/utils/format.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 react-vite/src/utils/format.ts diff --git a/react-vite/src/utils/format.ts b/react-vite/src/utils/format.ts new file mode 100644 index 0000000..e1da59b --- /dev/null +++ b/react-vite/src/utils/format.ts @@ -0,0 +1,9 @@ +export const trimText = (txt: string) => { + return txt.length > 20 ? txt.slice(0, 22) + "..." : txt; +}; +export const copyText = async () => { + if (navigator.clipboard) { + await navigator.clipboard.readText(); + console.log("copied text"); + } +}; From 50c91be4fe14bad6b0a294e3facc1d9c6f3dc4be Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Thu, 23 May 2024 12:05:55 +0100 Subject: [PATCH 07/46] feat: added footer comp --- react-vite/src/components/Footer.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 react-vite/src/components/Footer.tsx diff --git a/react-vite/src/components/Footer.tsx b/react-vite/src/components/Footer.tsx new file mode 100644 index 0000000..684054d --- /dev/null +++ b/react-vite/src/components/Footer.tsx @@ -0,0 +1,8 @@ +export function Footer(){ + const date = new Date(); + return ( +
+

© {date.getFullYear()}

+
+ ) +} \ No newline at end of file From 32c33ac7d85a0848abec6eed7e5085d8af35daf1 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Thu, 23 May 2024 12:07:23 +0100 Subject: [PATCH 08/46] feat: added NodeHealth comp --- react-vite/src/components/NodeHealth.tsx | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 react-vite/src/components/NodeHealth.tsx diff --git a/react-vite/src/components/NodeHealth.tsx b/react-vite/src/components/NodeHealth.tsx new file mode 100644 index 0000000..6e52dfe --- /dev/null +++ b/react-vite/src/components/NodeHealth.tsx @@ -0,0 +1,28 @@ +import { Health } from "@ethersphere/bee-js"; +import { useEffect, useState } from "react"; +import { beeDebug } from "../utils/bee-node"; + +export function NodeHealth() { + const [nodeHealth, setNodeHealth] = useState(); + + useEffect(() => { + handleIsNodeOnline(); + }, []); + + const handleIsNodeOnline = async () => { + const health = await beeDebug.getHealth(); + setNodeHealth(health); + }; + + return ( +
+

+ Node status:{" "} + + {nodeHealth?.status == "ok" ? "Connected" : "Disconnected"} +

+
+ ); +} From f53992507a434f6ab7037d3193de5b24812eddc9 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Thu, 23 May 2024 12:08:52 +0100 Subject: [PATCH 09/46] fix: updated getAllPostageStamps with useCallback --- react-vite/src/hooks/usePostageBatch.tsx | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/react-vite/src/hooks/usePostageBatch.tsx b/react-vite/src/hooks/usePostageBatch.tsx index f058329..a60dd14 100644 --- a/react-vite/src/hooks/usePostageBatch.tsx +++ b/react-vite/src/hooks/usePostageBatch.tsx @@ -1,5 +1,5 @@ import { BatchId, PostageBatch } from "@ethersphere/bee-js"; -import { useEffect, useState } from "react"; +import { useCallback, useEffect, useState } from "react"; import { beeDebug } from "../utils/bee-node"; export interface CreatePostageBatchArgs { @@ -13,11 +13,19 @@ export function usePostageBatch() { const [isErrorCreatePostageBatch, setIsErrorCreatePostageBatch] = useState(false); const [getAllStampError, setGetAllStampError] = useState(false); - const [batchId, setBatchId] = useState(); + const [newlyCreatedBatchId, setNewlyCreatedBatchId] = useState(); - useEffect(() => {}, []); + useEffect(() => { + // const timeoutId = setTimeout(() => { + // console.log("usePostageStamp timeout"); + // setGetAllStampError(!getAllStampError); + // }, 3000); + // return () => { + // clearTimeout(timeoutId); + // }; + }, []); - const getAllPostageStamps = async () => { + const getAllPostageStamps = useCallback(async () => { try { setIsLoadingStamps(true); @@ -25,11 +33,12 @@ export function usePostageBatch() { setPostageStamps(ps); setIsLoadingStamps(false); + setGetAllStampError(false); } catch (err) { setIsLoadingStamps(false); setGetAllStampError(true); } - }; + }, [postageStamps]); /** * This function creates a Postage Stamp Batch @@ -43,7 +52,7 @@ export function usePostageBatch() { args.depth ); - setBatchId(resBatchId); + setNewlyCreatedBatchId(resBatchId); setIsCreatePostageBatch(false); } catch (err) { console.log(err); @@ -60,6 +69,6 @@ export function usePostageBatch() { createPostageBatch, isCreatePostageBatch, isErrorCreatePostageBatch, - batchId, + newlyCreatedBatchId, }; } From 98fdb696c9718f70964022f09ce30437e003bc9f Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Thu, 23 May 2024 12:09:44 +0100 Subject: [PATCH 10/46] fix: removed comment --- react-vite/src/App.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-vite/src/App.css b/react-vite/src/App.css index 419d686..3b6766f 100644 --- a/react-vite/src/App.css +++ b/react-vite/src/App.css @@ -8,7 +8,7 @@ .connection-status p { display: flex; - /* justify-content: center; */ + justify-content: center; align-items: center; gap: 10px; } From 24b48e25a36e208485e9bc58bb05f77850cace2b Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Thu, 25 Jul 2024 14:08:15 +0100 Subject: [PATCH 11/46] fix: bump bee-js to ^7.1.0 --- react-vite/package-lock.json | 108 ++++++++++------------------------- react-vite/package.json | 4 +- 2 files changed, 32 insertions(+), 80 deletions(-) diff --git a/react-vite/package-lock.json b/react-vite/package-lock.json index a4d04d6..722d713 100644 --- a/react-vite/package-lock.json +++ b/react-vite/package-lock.json @@ -1,14 +1,14 @@ { - "name": "tailwind", + "name": "bee-js-example-react-vite", "version": "0.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "tailwind", + "name": "bee-js-example-react-vite", "version": "0.0.0", "dependencies": { - "@ethersphere/bee-js": "^6.8.1", + "@ethersphere/bee-js": "^7.1.0", "react": "^18.2.0", "react-dom": "^18.2.0" }, @@ -869,29 +869,18 @@ } }, "node_modules/@ethersphere/bee-js": { - "version": "6.8.1", - "resolved": "https://registry.npmjs.org/@ethersphere/bee-js/-/bee-js-6.8.1.tgz", - "integrity": "sha512-Toid5XDW+Eh6ipg0TPA0BWAZwhg6aarLsXWrLUTAbddAY2SyWYHJ0fPjrtQWtcvHRgmBoCtfUNVKb97XOIsGhA==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@ethersphere/bee-js/-/bee-js-7.1.0.tgz", + "integrity": "sha512-81PWyNKlO6EhOsfiKmDlHVlD8jhMVNTEfU4+5TC7jGc/vMN8resSu5BIG4gV3GHFzSiwK11sZffWC+6d2gMmPw==", "dependencies": { "@ethersphere/swarm-cid": "^0.1.0", - "@types/readable-stream": "^2.3.13", - "axios": "^0.28.0", - "cafe-utility": "^15.0.2", + "axios": "^0.28.1", + "cafe-utility": "^21.3.1", "elliptic": "^6.5.4", - "fetch-blob": "2.1.2", "isomorphic-ws": "^4.0.1", "js-sha3": "^0.8.0", "semver": "^7.3.5", - "tar-js": "^0.3.0", - "web-streams-polyfill": "^4.0.0-beta.3", "ws": "^8.7.0" - }, - "engines": { - "bee": "1.18.2-759f56f", - "beeApiVersion": "4.0.0", - "beeDebugApiVersion": "4.0.0", - "node": ">=14.0.0", - "npm": ">=6.0.0" } }, "node_modules/@ethersphere/swarm-cid": { @@ -1324,6 +1313,9 @@ "version": "20.11.24", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.24.tgz", "integrity": "sha512-Kza43ewS3xoLgCEpQrsT+xRo/EJej1y0kVYGiLFE1NEODXGzTfwiC6tXTLMQskn1X4/Rjlh0MQUvx9W+L9long==", + "dev": true, + "optional": true, + "peer": true, "dependencies": { "undici-types": "~5.26.4" } @@ -1354,15 +1346,6 @@ "@types/react": "*" } }, - "node_modules/@types/readable-stream": { - "version": "2.3.15", - "resolved": "https://registry.npmjs.org/@types/readable-stream/-/readable-stream-2.3.15.tgz", - "integrity": "sha512-oM5JSKQCcICF1wvGgmecmHldZ48OZamtMxcGGVICOJA8o8cahXC1zEVAif8iwoc5j8etxFaRFnf095+CDsuoFQ==", - "dependencies": { - "@types/node": "*", - "safe-buffer": "~5.1.1" - } - }, "node_modules/@types/scheduler": { "version": "0.16.8", "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.8.tgz", @@ -1731,9 +1714,9 @@ } }, "node_modules/axios": { - "version": "0.28.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.28.0.tgz", - "integrity": "sha512-Tu7NYoGY4Yoc7I+Npf9HhUMtEEpV7ZiLH9yndTCoNhcpBH0kwcvFbzYN9/u5QKI5A6uefjsNNWaz5olJVYS62Q==", + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.28.1.tgz", + "integrity": "sha512-iUcGA5a7p0mVb4Gm/sy+FSECNkPFT4y7wt6OM/CDpO/OnNCvSs3PoMG8ibrC9jRoGYU0gUK5pXVC4NPXq6lHRQ==", "dependencies": { "follow-redirects": "^1.15.0", "form-data": "^4.0.0", @@ -1819,9 +1802,9 @@ } }, "node_modules/cafe-utility": { - "version": "15.0.2", - "resolved": "https://registry.npmjs.org/cafe-utility/-/cafe-utility-15.0.2.tgz", - "integrity": "sha512-TNKSfA/q/XRd86NwYtF5QImQB8U5n/hKZuWblYFgYW4aveHcSg2RGOfR3+xquXRXF7BCeNoAXe2/snWFKviPzw==" + "version": "21.5.0", + "resolved": "https://registry.npmjs.org/cafe-utility/-/cafe-utility-21.5.0.tgz", + "integrity": "sha512-5u+9cf7fvcH3j2Q3jrd7nA3bUITUBj8b9Arg4eA6almqeA5+dwQA6NKba4GnW6zS9uL1iVCEQqM3z3tQVs2Xjw==" }, "node_modules/callsites": { "version": "3.1.0", @@ -2070,9 +2053,9 @@ "dev": true }, "node_modules/elliptic": { - "version": "6.5.5", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.5.tgz", - "integrity": "sha512-7EjbcmUm17NQFu4Pmgmq2olYMj8nwMnpcddByChSUjArp8F5DQWcIcpriwO4ZToLNAJig0yiyjswfyGNje/ixw==", + "version": "6.5.6", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.6.tgz", + "integrity": "sha512-mpzdtpeCLuS3BmE3pO3Cpp5bbjlOPY2Q0PgoF+Od1XZrHLYI28Xe3ossCmYCQt11FQKEYd9+PF8jymTvtWJSHQ==", "dependencies": { "bn.js": "^4.11.9", "brorand": "^1.1.0", @@ -2482,19 +2465,6 @@ "reusify": "^1.0.4" } }, - "node_modules/fetch-blob": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-2.1.2.tgz", - "integrity": "sha512-YKqtUDwqLyfyMnmbw8XD6Q8j9i/HggKtPEI+pZ1+8bvheBu78biSmNaXWusx1TauGqtUUGx/cBb1mKdq2rLYow==", - "engines": { - "node": "^10.17.0 || >=12.3.0" - }, - "peerDependenciesMeta": { - "domexception": { - "optional": true - } - } - }, "node_modules/file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", @@ -2556,9 +2526,9 @@ "dev": true }, "node_modules/follow-redirects": { - "version": "1.15.5", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", - "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", + "version": "1.15.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", "funding": [ { "type": "individual", @@ -3769,11 +3739,6 @@ "queue-microtask": "^1.2.2" } }, - "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/scheduler": { "version": "0.23.0", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", @@ -4070,14 +4035,6 @@ "node": ">=14.0.0" } }, - "node_modules/tar-js": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/tar-js/-/tar-js-0.3.0.tgz", - "integrity": "sha512-9uqP2hJUZNKRkwPDe5nXxXdzo6w+BFBPq9x/tyi5/U/DneuSesO/HMb0y5TeWpfcv49YDJTs7SrrZeeu8ZHWDA==", - "engines": { - "node": "*" - } - }, "node_modules/text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", @@ -4184,7 +4141,10 @@ "node_modules/undici-types": { "version": "5.26.5", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true, + "optional": true, + "peer": true }, "node_modules/update-browserslist-db": { "version": "1.0.13", @@ -4286,14 +4246,6 @@ } } }, - "node_modules/web-streams-polyfill": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0.tgz", - "integrity": "sha512-0zJXHRAYEjM2tUfZ2DiSOHAa2aw1tisnnhU3ufD57R8iefL+DcdJyRBRyJpG+NUimDgbTI/lH+gAE1PAvV3Cgw==", - "engines": { - "node": ">= 8" - } - }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -4443,9 +4395,9 @@ "dev": true }, "node_modules/ws": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", - "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", "engines": { "node": ">=10.0.0" }, diff --git a/react-vite/package.json b/react-vite/package.json index 1b80b53..c807695 100644 --- a/react-vite/package.json +++ b/react-vite/package.json @@ -1,5 +1,5 @@ { - "name": "tailwind", + "name": "bee-js-example-react-vite", "private": true, "version": "0.0.0", "type": "module", @@ -11,7 +11,7 @@ "preview": "vite preview" }, "dependencies": { - "@ethersphere/bee-js": "^6.8.1", + "@ethersphere/bee-js": "^7.1.0", "react": "^18.2.0", "react-dom": "^18.2.0" }, From d7ac17c17b355a928423dad1a8879dd492ad23fa Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Thu, 25 Jul 2024 16:12:10 +0100 Subject: [PATCH 12/46] fix: refactored for new api --- react-vite/src/constant/index.ts | 3 +-- react-vite/src/utils/bee-node.ts | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/react-vite/src/constant/index.ts b/react-vite/src/constant/index.ts index dadc2e4..91d6e11 100644 --- a/react-vite/src/constant/index.ts +++ b/react-vite/src/constant/index.ts @@ -1,4 +1,3 @@ const API_URL = 'http://localhost:1633'; -const API_DEBUG_URL = 'http://127.0.0.1:1635'; -export { API_DEBUG_URL, API_URL }; +export { API_URL }; diff --git a/react-vite/src/utils/bee-node.ts b/react-vite/src/utils/bee-node.ts index 662f270..ce691f8 100644 --- a/react-vite/src/utils/bee-node.ts +++ b/react-vite/src/utils/bee-node.ts @@ -1,7 +1,6 @@ -import { Bee, BeeDebug } from "@ethersphere/bee-js"; -import { API_DEBUG_URL, API_URL } from "../constant"; +import { Bee } from "@ethersphere/bee-js"; +import { API_URL } from "../constant"; const bee = new Bee(API_URL); -const beeDebug = new BeeDebug(API_DEBUG_URL); -export { bee, beeDebug }; +export { bee }; From 9fc719dec0fa07123c82228c135163db09455a28 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Fri, 26 Jul 2024 16:41:52 +0100 Subject: [PATCH 13/46] fix: corrected style --- react-vite/index.html | 2 +- react-vite/src/App.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/react-vite/index.html b/react-vite/index.html index b0c6e48..6a54c02 100644 --- a/react-vite/index.html +++ b/react-vite/index.html @@ -4,7 +4,7 @@ - Zcash Donantion Widget Demo + Bee-js React-Vite Example
diff --git a/react-vite/src/App.css b/react-vite/src/App.css index 3b6766f..8940aec 100644 --- a/react-vite/src/App.css +++ b/react-vite/src/App.css @@ -26,7 +26,7 @@ } .offline { - background-color: rgb(76, 76, 76); + background-color: rgb(151, 151, 151); } .all-postage-stamp button { From 1a8d71e46c14ee3d4ad0a5340a819704d81f3866 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Fri, 26 Jul 2024 16:42:32 +0100 Subject: [PATCH 14/46] fix: refactored --- react-vite/src/App.tsx | 33 +++++++++------------------------ 1 file changed, 9 insertions(+), 24 deletions(-) diff --git a/react-vite/src/App.tsx b/react-vite/src/App.tsx index 20a74ce..4451f0d 100644 --- a/react-vite/src/App.tsx +++ b/react-vite/src/App.tsx @@ -1,31 +1,16 @@ -import { Health } from "@ethersphere/bee-js"; -import { useEffect, useState } from "react"; import "./App.css"; -import { beeDebug } from "./utils/bee-node"; -function App() { - const [nodeHealth, setNodeHealth] = useState(); - - useEffect(() => { - handleIsNodeOnline(); - }, []); - - const handleIsNodeOnline = async () => { - const health = await beeDebug.getHealth(); - setNodeHealth(health); - }; +import { Footer } from "./components/Footer"; +import Header from "./components/Header"; +import Main from "./components/Main"; + +function App() { return ( -
-
-

- Node status:{" "} - - {nodeHealth?.status == "ok" ? "Connected" : "Disconnected"} -

-
+
+
+
+
); } From f7311900ba62de8c779d61bf205f0f93a02908a7 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Fri, 26 Jul 2024 16:44:03 +0100 Subject: [PATCH 15/46] fix: renamed file --- react-vite/src/components/NodeHealth.tsx | 28 ------------------------ react-vite/src/components/NodeStatus.tsx | 18 +++++++++++++++ 2 files changed, 18 insertions(+), 28 deletions(-) delete mode 100644 react-vite/src/components/NodeHealth.tsx create mode 100644 react-vite/src/components/NodeStatus.tsx diff --git a/react-vite/src/components/NodeHealth.tsx b/react-vite/src/components/NodeHealth.tsx deleted file mode 100644 index 6e52dfe..0000000 --- a/react-vite/src/components/NodeHealth.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import { Health } from "@ethersphere/bee-js"; -import { useEffect, useState } from "react"; -import { beeDebug } from "../utils/bee-node"; - -export function NodeHealth() { - const [nodeHealth, setNodeHealth] = useState(); - - useEffect(() => { - handleIsNodeOnline(); - }, []); - - const handleIsNodeOnline = async () => { - const health = await beeDebug.getHealth(); - setNodeHealth(health); - }; - - return ( -
-

- Node status:{" "} - - {nodeHealth?.status == "ok" ? "Connected" : "Disconnected"} -

-
- ); -} diff --git a/react-vite/src/components/NodeStatus.tsx b/react-vite/src/components/NodeStatus.tsx new file mode 100644 index 0000000..8e15588 --- /dev/null +++ b/react-vite/src/components/NodeStatus.tsx @@ -0,0 +1,18 @@ +import { useNodeHealth } from "../hooks/useNodeHealth"; + +export function NodeStatus() { + const { nodeHealth } = useNodeHealth(); + + + return ( +
+

+ Node status:{" "} + + {nodeHealth?.status == "ok" ? "Connected" : "Disconnected"} +

+
+ ); +} From 63a054e382ff2ba4fc13e3d138ea3b4568cd6b17 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Fri, 26 Jul 2024 16:45:40 +0100 Subject: [PATCH 16/46] fix: renamed file + code refactor --- react-vite/src/components/BuyPostageStamp.tsx | 180 ++++++++++++++++++ .../src/components/CreatePostageBatch.tsx | 54 ------ 2 files changed, 180 insertions(+), 54 deletions(-) create mode 100644 react-vite/src/components/BuyPostageStamp.tsx delete mode 100644 react-vite/src/components/CreatePostageBatch.tsx diff --git a/react-vite/src/components/BuyPostageStamp.tsx b/react-vite/src/components/BuyPostageStamp.tsx new file mode 100644 index 0000000..5e54b79 --- /dev/null +++ b/react-vite/src/components/BuyPostageStamp.tsx @@ -0,0 +1,180 @@ +import { useEffect, useState } from "react"; +import { usePostageBatch } from "../hooks/usePostageBatch"; + +type State = { + amount: number | string; + depth: number | string; + label?: string; + mutable: boolean; +}; + +export const BuyPostageStamp = () => { + const minimumBatchDepthValue = 21; + + const [buyBtn, setBuyBtn] = useState(false); + const [values, setValues] = useState({ + amount: "", + depth: "", + label: "", + mutable: false, + }); + + const { + buyPostageBatch, + isBuyPostageBatch, + newlyCreatedBatchId, + isErrorBuyPostageBatch, + } = usePostageBatch(); + + useEffect(() => { + newlyCreatedBatchId && + alert(`Newly created Postage Batch ID: ${newlyCreatedBatchId}`); + isErrorBuyPostageBatch.hasError && alert(`${isErrorBuyPostageBatch.msg}`); + }, [newlyCreatedBatchId, isErrorBuyPostageBatch.hasError]); + + const handleOnchange = ( + e: React.FormEvent + ): void => { + const target = e.currentTarget; + const name = target.name; + const value = target.value; + + setValues((preState) => ({ ...preState, [name]: value })); + }; + + const handleBuyPostage = async () => { + values.amount = Number(values.amount) * 1e18; + + const { amount, depth, mutable, label } = values; + + await buyPostageBatch({ + amount, + depth: Number(depth), + options: { + label, + immutableFlag: Boolean(mutable), + }, + }); + + setValues({ amount: "", depth: "", label: "", mutable: false }); + }; + + return ( +
+

Postage Stamp

+ {!buyBtn && ( + + )} + + {buyBtn && ( + <> +
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+ +
+ + {/* */} + + +
+ + )} +
+ ); +}; diff --git a/react-vite/src/components/CreatePostageBatch.tsx b/react-vite/src/components/CreatePostageBatch.tsx deleted file mode 100644 index 0c00135..0000000 --- a/react-vite/src/components/CreatePostageBatch.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import { useState } from "react"; -import { usePostageBatch } from "../hooks/usePostageBatch"; - -type State = { - amount: number; - depth: number; -}; - -export const CreatePostageBatch = () => { - const [values, setValues] = useState({ amount: 0, depth: 0 }); - - const { createPostageBatch } = usePostageBatch(); - - const handleOnchange = (e: React.FormEvent): void => { - const target = e.currentTarget; - const name = target.name; - const value = target.value; - - setValues((preState) => ({ ...preState, [name]: value })); - }; - - const handleCreatePostage = () => { - createPostageBatch(values); - }; - - return ( -
- - - - -
- ); -}; From 2e868afd6969c0961530f892e836bbc583cc18f0 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Fri, 26 Jul 2024 16:47:47 +0100 Subject: [PATCH 17/46] fix: refactored comp into own file --- .../src/components/GetPostageStamps.tsx | 76 +++++++++++++++++++ react-vite/src/components/Header.tsx | 11 +++ react-vite/src/components/Main.tsx | 23 ++++++ 3 files changed, 110 insertions(+) create mode 100644 react-vite/src/components/GetPostageStamps.tsx create mode 100644 react-vite/src/components/Header.tsx create mode 100644 react-vite/src/components/Main.tsx diff --git a/react-vite/src/components/GetPostageStamps.tsx b/react-vite/src/components/GetPostageStamps.tsx new file mode 100644 index 0000000..1cb6eec --- /dev/null +++ b/react-vite/src/components/GetPostageStamps.tsx @@ -0,0 +1,76 @@ +import { usePostageBatch } from "../hooks/usePostageBatch"; +import { format } from "../utils/format"; + +export function GetPostageStamps() { + const { postageStamps, getAllStampError, isLoadingStamps } = + usePostageBatch(); + + return ( + <> +
    + {isLoadingStamps &&
  • Loading...
  • } + {getAllStampError && ( +
  • Error fetching Postage stamps!
  • + )} + + {postageStamps && + postageStamps.length > 0 && + postageStamps.map((ps) => ( +
  • +

    + + {" "} + BatchID: + {" "} + {format.trimText(ps.batchID)} +

    +

    + Label: {ps.label} +

    +

    + BlockNumber:{" "} + {ps.blockNumber} +

    +

    + Amount: {ps.amount} +

    +

    + BucketDepth:{" "} + {ps.bucketDepth} +

    +

    + Utilization:{" "} + {ps.utilization} +

    +

    + Exists:{" "} + {ps.exists ? "Yes" : "No"} +

    +

    + Depth: {ps.depth} +

    +

    + Immutable Flag:{" "} + {ps.immutableFlag} +

    +

    + Usable:{" "} + {ps.usable ? "Yes" : "No"} +

    +

    + BatchTTL: {ps.batchTTL} +

    +
  • + ))} +
+ +
+ {postageStamps?.length === 0 &&

You don't have any Postage Stamp

} + + {postageStamps && postageStamps?.length > 0 && ( +

Total number of Postage Stamps: {postageStamps?.length}

+ )} +
+ + ); +} diff --git a/react-vite/src/components/Header.tsx b/react-vite/src/components/Header.tsx new file mode 100644 index 0000000..c494ce2 --- /dev/null +++ b/react-vite/src/components/Header.tsx @@ -0,0 +1,11 @@ +import { NodeStatus } from "./NodeStatus"; + +function Header() { + return ( +
+ +
+ ); +} + +export default Header; diff --git a/react-vite/src/components/Main.tsx b/react-vite/src/components/Main.tsx new file mode 100644 index 0000000..e80e896 --- /dev/null +++ b/react-vite/src/components/Main.tsx @@ -0,0 +1,23 @@ +import { useNodeHealth } from "../hooks/useNodeHealth"; +import { usePostageBatch } from "../hooks/usePostageBatch"; +import { PostageStamps } from "./PostageStamps"; +import { UploadFile } from "./UploadFiles"; + +function Main() { + const { postageStamps } = usePostageBatch(); + const { nodeHealth } = useNodeHealth(); + + return ( +
+ + {nodeHealth?.status == "ok" && ( + <> + {/* */} + {postageStamps && postageStamps?.length > 0 && } + + )} +
+ ); +} + +export default Main; From 44860d7839e00ef2c66d9c228ebba61b4548f739 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Fri, 26 Jul 2024 16:48:49 +0100 Subject: [PATCH 18/46] feat: useNodeHealth hook --- react-vite/src/hooks/useNodeHealth.tsx | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 react-vite/src/hooks/useNodeHealth.tsx diff --git a/react-vite/src/hooks/useNodeHealth.tsx b/react-vite/src/hooks/useNodeHealth.tsx new file mode 100644 index 0000000..51768fd --- /dev/null +++ b/react-vite/src/hooks/useNodeHealth.tsx @@ -0,0 +1,31 @@ +import { Health } from "@ethersphere/bee-js"; +import { useEffect, useState } from "react"; +import { bee } from "../utils/bee-node"; + +export const useNodeHealth = () => { + const [nodeHealth, setNodeHealth] = useState(); + const [isLoading, setIsLoading] = useState(false); + + useEffect(() => { + handleIsNodeOnline(); + }, [nodeHealth?.status]); + + const handleIsNodeOnline = async () => { + try { + setIsLoading(true); + const health = await bee.getHealth(); + + setNodeHealth(health); + } catch (err) { + console.error(err); + return null; + } finally { + setIsLoading(false); + } + }; + + return { + nodeHealth, + isLoading, + }; +}; From f3313459d9904b9499e4a06487106ea00c67615e Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Fri, 26 Jul 2024 18:00:02 +0100 Subject: [PATCH 19/46] feat: add useWallet hook --- react-vite/src/hooks/useWallet.tsx | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 react-vite/src/hooks/useWallet.tsx diff --git a/react-vite/src/hooks/useWallet.tsx b/react-vite/src/hooks/useWallet.tsx new file mode 100644 index 0000000..9dcb73a --- /dev/null +++ b/react-vite/src/hooks/useWallet.tsx @@ -0,0 +1,29 @@ +import { WalletBalance } from "@ethersphere/bee-js"; +import { useEffect, useState } from "react"; +import { bee } from "../utils/bee-node"; + +export function useWallet() { + const [balance, setBalance] = useState(); + const [error, setError] = useState(false); + const [isLoading, setIsLoading] = useState(false); + + useEffect(() => { + handleCostEstimate; + }, [balance]); + + const handleCostEstimate = async () => { + try { + setIsLoading(true); + const bal = await bee.getWalletBalance(); + setBalance(bal); + setIsLoading(false); + } catch (err: any) { + console.error(err); + setError(err); + } finally { + setIsLoading(false); + } + }; + + return { balance, error, isLoading }; +} From f0d6557c9336bd6424b3aaa93c3b1e586c5e5a58 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Mon, 29 Jul 2024 18:18:31 +0100 Subject: [PATCH 20/46] fix: memory leak for useEffect --- react-vite/src/hooks/useWallet.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react-vite/src/hooks/useWallet.tsx b/react-vite/src/hooks/useWallet.tsx index 9dcb73a..6380f4d 100644 --- a/react-vite/src/hooks/useWallet.tsx +++ b/react-vite/src/hooks/useWallet.tsx @@ -8,8 +8,8 @@ export function useWallet() { const [isLoading, setIsLoading] = useState(false); useEffect(() => { - handleCostEstimate; - }, [balance]); + handleCostEstimate(); + }, []); const handleCostEstimate = async () => { try { From 83d2f49f720501787330c56da5811928ee84b79e Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Mon, 29 Jul 2024 18:19:07 +0100 Subject: [PATCH 21/46] feat: add GetBalance comp; --- react-vite/src/components/GetBalance.tsx | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 react-vite/src/components/GetBalance.tsx diff --git a/react-vite/src/components/GetBalance.tsx b/react-vite/src/components/GetBalance.tsx new file mode 100644 index 0000000..c358939 --- /dev/null +++ b/react-vite/src/components/GetBalance.tsx @@ -0,0 +1,28 @@ +import { useWallet } from "../hooks/useWallet"; + +export default function GetBalance() { + const { balance, error, isLoading } = useWallet(); + + const bzzBalance = () => Number(balance?.bzzBalance) / 10 ** 16; + const nativeTokenBalance = () => + Number(balance?.nativeTokenBalance) / 10 ** 18; + + return ( +
+

{isLoading && "Loading balance..."}

+

{error && "Error loading balance..."}

+ {!isLoading && !error && ( +
+ {bzzBalance().toString().substring(0, 6)} xBzz + {nativeTokenBalance().toString().substring(0, 6)} xDai +
+ {balance?.walletAddress.substring(0, 6)}... + {balance?.walletAddress.substring(36)} + {balance?.walletAddress} +
+
+ )} +
+ ); +} + From 9e4deab8ae220b167b8ee0f82077bbc1c01a7768 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Mon, 29 Jul 2024 18:20:33 +0100 Subject: [PATCH 22/46] fix: updated tags --- react-vite/src/components/Header.tsx | 4 +++- react-vite/src/components/NodeStatus.tsx | 6 ++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/react-vite/src/components/Header.tsx b/react-vite/src/components/Header.tsx index c494ce2..b01673f 100644 --- a/react-vite/src/components/Header.tsx +++ b/react-vite/src/components/Header.tsx @@ -1,9 +1,11 @@ +import GetBalance from "./GetBalance"; import { NodeStatus } from "./NodeStatus"; function Header() { return ( -
+
+
); } diff --git a/react-vite/src/components/NodeStatus.tsx b/react-vite/src/components/NodeStatus.tsx index 8e15588..59b1704 100644 --- a/react-vite/src/components/NodeStatus.tsx +++ b/react-vite/src/components/NodeStatus.tsx @@ -3,16 +3,14 @@ import { useNodeHealth } from "../hooks/useNodeHealth"; export function NodeStatus() { const { nodeHealth } = useNodeHealth(); - return ( -
+

- Node status:{" "} {nodeHealth?.status == "ok" ? "Connected" : "Disconnected"}

-
+
); } From 336273752c93174dbef73c7cbc1e406775e59a7e Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Tue, 30 Jul 2024 19:11:07 +0100 Subject: [PATCH 23/46] feat: added clipboard comp --- react-vite/src/components/HandleCopy.tsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 react-vite/src/components/HandleCopy.tsx diff --git a/react-vite/src/components/HandleCopy.tsx b/react-vite/src/components/HandleCopy.tsx new file mode 100644 index 0000000..9b06aa7 --- /dev/null +++ b/react-vite/src/components/HandleCopy.tsx @@ -0,0 +1,17 @@ +import { format } from "../utils/format"; + +const HandleCopy = ({ txt }: { txt: string }) => { + const handleClick = async () => { + try { + await format.copyText(txt); + alert("Text copied to clipboard!"); + } catch (err) { + console.error("Failed to copy text: ", err); + alert("Failed to copy text!"); + } + }; + + return {format.trimText(txt)}; +}; + +export default HandleCopy; From fd2abfc13441d3075cd879469d0ed4a167bdbd18 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Tue, 30 Jul 2024 19:11:35 +0100 Subject: [PATCH 24/46] fix: updated clipboard function --- react-vite/src/utils/format.ts | 48 ++++++++++++++++++++++++++++------ 1 file changed, 40 insertions(+), 8 deletions(-) diff --git a/react-vite/src/utils/format.ts b/react-vite/src/utils/format.ts index e1da59b..c89f00e 100644 --- a/react-vite/src/utils/format.ts +++ b/react-vite/src/utils/format.ts @@ -1,9 +1,41 @@ -export const trimText = (txt: string) => { - return txt.length > 20 ? txt.slice(0, 22) + "..." : txt; -}; -export const copyText = async () => { - if (navigator.clipboard) { - await navigator.clipboard.readText(); - console.log("copied text"); - } +export const format = { + parsePlur: (n: number) => { + return n * 10 ** 16; + }, + parsexBZZ: (n: number) => { + return n * 1e18; + }, + formatPlur: (n: number) => { + return n / 10 ** 16; + }, + copyText: async (txt: string) => { + return new Promise((res, rej) => { + if (navigator.clipboard) { + navigator.clipboard + .writeText(txt) + .then(() => res(true)) + .catch((err) => rej(err)); + console.log("copied text"); + } else { + // fallback + const txtarea = document.createElement("textarea"); + txtarea.value = txt; + document.body.appendChild(txtarea); + txtarea.select(); + + try { + document.execCommand("copy"); + res(true); + } catch (err) { + document.removeChild(txtarea); + rej(err); + } + } + }); + }, + trimText: (txt: string) => { + return txt.length > 16 + ? txt.slice(0, 10) + "..." + txt.substring(txt.length - 10) + : txt; + }, }; From 01de0c00dbe2fbefcd74259eb85c2fd4b21f8f28 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Wed, 31 Jul 2024 13:28:06 +0100 Subject: [PATCH 25/46] fix: updated with node status --- react-vite/src/components/GetBalance.tsx | 44 ++++++++++++++++-------- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/react-vite/src/components/GetBalance.tsx b/react-vite/src/components/GetBalance.tsx index c358939..02dd06f 100644 --- a/react-vite/src/components/GetBalance.tsx +++ b/react-vite/src/components/GetBalance.tsx @@ -1,6 +1,11 @@ +import { Health } from "@ethersphere/bee-js"; import { useWallet } from "../hooks/useWallet"; +import HandleCopy from "./HandleCopy"; -export default function GetBalance() { +type NodeStatusProps = { + nodeHealth: Health | null | undefined; +}; +export default function GetBalance(props: NodeStatusProps) { const { balance, error, isLoading } = useWallet(); const bzzBalance = () => Number(balance?.bzzBalance) / 10 ** 16; @@ -8,21 +13,30 @@ export default function GetBalance() { Number(balance?.nativeTokenBalance) / 10 ** 18; return ( -
-

{isLoading && "Loading balance..."}

-

{error && "Error loading balance..."}

- {!isLoading && !error && ( -
- {bzzBalance().toString().substring(0, 6)} xBzz - {nativeTokenBalance().toString().substring(0, 6)} xDai -
- {balance?.walletAddress.substring(0, 6)}... - {balance?.walletAddress.substring(36)} - {balance?.walletAddress} -
-
+
+ {props.nodeHealth?.status === "ok" && ( + <> +

{isLoading && "Loading balance..."}

+

{error && "Error loading balance..."}

+ + {!isLoading && !error && ( +
+ {bzzBalance().toString().substring(0, 6)} xBzz + + {nativeTokenBalance().toString().substring(0, 6)} xDai + +
+ {balance?.walletAddress.substring(0, 6)}... + {balance?.walletAddress.substring(36)} + + + {balance?.walletAddress} + +
+
+ )} + )}
); } - From f9e4a150b48cf09376bb9e69d5fac159f068a4c2 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Wed, 31 Jul 2024 13:31:27 +0100 Subject: [PATCH 26/46] fix: update min depth value --- react-vite/src/components/BuyPostageStamp.tsx | 110 +++++++++++++----- 1 file changed, 79 insertions(+), 31 deletions(-) diff --git a/react-vite/src/components/BuyPostageStamp.tsx b/react-vite/src/components/BuyPostageStamp.tsx index 5e54b79..e4022f1 100644 --- a/react-vite/src/components/BuyPostageStamp.tsx +++ b/react-vite/src/components/BuyPostageStamp.tsx @@ -1,11 +1,13 @@ import { useEffect, useState } from "react"; import { usePostageBatch } from "../hooks/usePostageBatch"; +import { format } from "../utils/format"; type State = { amount: number | string; depth: number | string; label?: string; mutable: boolean; + [index: string]: any; }; export const BuyPostageStamp = () => { @@ -14,7 +16,7 @@ export const BuyPostageStamp = () => { const [buyBtn, setBuyBtn] = useState(false); const [values, setValues] = useState({ amount: "", - depth: "", + depth: minimumBatchDepthValue, label: "", mutable: false, }); @@ -39,24 +41,77 @@ export const BuyPostageStamp = () => { const name = target.name; const value = target.value; - setValues((preState) => ({ ...preState, [name]: value })); + console.log(name, value); + setValues((preState) => ({ ...preState, [name]: value })); }; const handleBuyPostage = async () => { - values.amount = Number(values.amount) * 1e18; + if (+values.depth < 17) { + alert("Minimal depth is 17"); + } + if (values.amount == "" && values.label == "" && values.depth == "") { + console.log("noting... "); + return; + } else { + values.amount = format.parsexBZZ(Number(values.amount)); + console.log("values... ", values); - const { amount, depth, mutable, label } = values; + // const { amount, depth, mutable, label } = values; + // await buyPostageBatch({ + // amount, + // depth: Number(depth), + // options: { + // label, + // immutableFlag: Boolean(mutable), + // }, + // }); - await buyPostageBatch({ - amount, - depth: Number(depth), - options: { - label, - immutableFlag: Boolean(mutable), - }, - }); + setValues({ amount: "", depth: 17, label: "", mutable: false }); + } + }; + + const handleCostEstimate = () => { + // PostageBatchBucket = 2 ** bucketDepth + + // batchDepth :~ how much data can be stored (stamped) by a batch = 2 ** batchDepth + // ex: if batchDepth = 24, then 2 ** 24 of chunks can be stored. + // theoretical maxBatchVolume = (2 ** batchDept) * 4kb (one chunk) + + // bucketDepth :~ how many chunks are allowed in each bucket = 2 ** (batchDepth - bucketDepth) + // ex: with batchDepth = 24, and bucketDepth = 16 + // 2 ** (24 - 16) = 2 ** 8 = 256 chucks/bucket + + const minimumBatchDepthValue = 21; + const dataOrChunkSize = 2 ** minimumBatchDepthValue; // can be stamped + + // batch Amount (batchCost) : amount of xBZZ in PLUR (1 * 10**16) per chunk in the batch + // total batchAmount paid for a batch = (2 ** batchDepth) * amount (xBZZ in PLUR) + // example: + // batchDepth = 24, amount = 1000000000 PLUR + // total batchAmount = (2 ** 24) * 1000000000 PLUR = 16777216000000000 PLUR ~ 1.6777216 xBZZ + + // Estimating `amount` needed for desired TTL + // (stampPrice / gnosisBlocktimeInSeconds) * storageTimeInSeconds (duration) + // ex: stampPrice = 24000 PLUR, blocktime = 5, duration = 12 days (1 day = 24 hr * 60 min * 60 secs) + // ttlAmountNeeded for 4 days = (24000 / 5) * (5 * 24 * 60 * 60) = 4976640000 PLUR + + const secsPerDay = 24 * 60 * 60; + const ttlInDays = 12; + const storageTimeInSeconds = ttlInDays * secsPerDay; + const gnosisBlocktimeInSeconds = 5; + const postpageStampPrice = 24000; + + const ttlAmountNeeded = + (postpageStampPrice / gnosisBlocktimeInSeconds) * storageTimeInSeconds; - setValues({ amount: "", depth: "", label: "", mutable: false }); + // console.log("ttlAmountNeeded: ", format.parsePlur(ttlAmountNeeded)); + + const batchDepth = 24; + const totalBatchAmount = ttlAmountNeeded * 2 ** batchDepth; + const pricePerGBPerMonth = 0.00005435817984; + const price = pricePerGBPerMonth * 2 ** batchDepth; + + // console.log("totalBatchAmount: ", format.formatPlur(16777216000000000)); }; return ( @@ -76,9 +131,9 @@ export const BuyPostageStamp = () => { <>
- + { className="p-4 border-[1px] w-full" onChange={handleOnchange} > - {Array.from([1, 2, 3, 4, 5, 10, 12, 15]).map((e, i) => ( - ))} @@ -108,19 +163,20 @@ export const BuyPostageStamp = () => {
- +
- + @@ -157,14 +213,6 @@ export const BuyPostageStamp = () => { > {isBuyPostageBatch ? "Process..." : "Buy"} - {/* */} -
- + + {postageStamps && postageStamps?.length === 0 && ( +
+

You don't have any Postage Stamp

+
+ )} +
); } diff --git a/react-vite/src/components/Header.tsx b/react-vite/src/components/Header.tsx index b01673f..447bf1d 100644 --- a/react-vite/src/components/Header.tsx +++ b/react-vite/src/components/Header.tsx @@ -1,11 +1,13 @@ import GetBalance from "./GetBalance"; import { NodeStatus } from "./NodeStatus"; +import { useNodeHealth } from "../hooks/useNodeHealth"; function Header() { + const { nodeHealth } = useNodeHealth(); return (
- - + +
); } diff --git a/react-vite/src/components/NodeStatus.tsx b/react-vite/src/components/NodeStatus.tsx index 59b1704..81b3041 100644 --- a/react-vite/src/components/NodeStatus.tsx +++ b/react-vite/src/components/NodeStatus.tsx @@ -1,15 +1,16 @@ -import { useNodeHealth } from "../hooks/useNodeHealth"; - -export function NodeStatus() { - const { nodeHealth } = useNodeHealth(); +import { Health } from "@ethersphere/bee-js"; +type NodeStatusProps = { + nodeHealth: Health | null | undefined; +}; +export function NodeStatus(props: NodeStatusProps) { return (

- {nodeHealth?.status == "ok" ? "Connected" : "Disconnected"} + {props.nodeHealth?.status == "ok" ? "Connected" : "Disconnected"}

); From 2cd0ccbd2b8404d323192b62b6be03a33bed3a68 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Mon, 5 Aug 2024 11:16:04 +0100 Subject: [PATCH 28/46] feat: add upload function --- react-vite/src/hooks/useUpload.tsx | 69 +++++++++++++++++++++++ react-vite/src/hooks/useUploadToSwarm.tsx | 43 -------------- 2 files changed, 69 insertions(+), 43 deletions(-) create mode 100644 react-vite/src/hooks/useUpload.tsx delete mode 100644 react-vite/src/hooks/useUploadToSwarm.tsx diff --git a/react-vite/src/hooks/useUpload.tsx b/react-vite/src/hooks/useUpload.tsx new file mode 100644 index 0000000..a14aa77 --- /dev/null +++ b/react-vite/src/hooks/useUpload.tsx @@ -0,0 +1,69 @@ +import { BatchId, Tag, UploadResultWithCid } from "@ethersphere/bee-js"; +import { useState } from "react"; +import { bee } from "../utils/bee-node"; + +export interface IUpload { + postageBatchId: string | BatchId; + files: File[]; +} + +export function useUpload() { + const [uploadResultWithCid, setUploadResultWithCid] = + useState(); + const [tag, setTag] = useState(); + + const [processing, setIsProcessing] = useState(false); + const [error, setError] = useState(); + + const handleFileUpload = async (args: IUpload) => { + try { + + let result; + + setIsProcessing(true); + if (args) { + if (args.files.length === 1) { + result = await bee.uploadFile( + args.postageBatchId, + args.files[0], + args.files[0].name + ); + } + + if (args.files.length > 1) { + result = await bee.uploadFiles(args.postageBatchId, args.files); + } + } + setIsProcessing(false); + setUploadResultWithCid(result); + } catch (err) { + console.log("error uploading 101", err); + setIsProcessing(false); + setError(err); + } + }; + + const handleUploadProgress = async () => { + try { + if (uploadResultWithCid?.tagUid) { + setIsProcessing(true); + const tag = await bee.retrieveTag(uploadResultWithCid.tagUid); + + setTag(tag); + setIsProcessing(false); + } + } catch (err) { + setIsProcessing(false); + setError(err); + } + }; + + return { + handleUploadProgress, + tag, + handleFileUpload, + uploadResultWithCid, + processing, + error, + }; +} diff --git a/react-vite/src/hooks/useUploadToSwarm.tsx b/react-vite/src/hooks/useUploadToSwarm.tsx deleted file mode 100644 index 7a97b45..0000000 --- a/react-vite/src/hooks/useUploadToSwarm.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import { BatchId, Readable, UploadResultWithCid } from "@ethersphere/bee-js"; -import { useState } from "react"; -import { bee } from "../utils/bee-node"; - -type UploadArgsType = { - postageBatchId: string | BatchId; - data: string | File | Uint8Array | Readable; -}; -export function useUploadToSwarm() { - const [uploadResultWithCid, setUploadResultWithCid] = - useState(); - - const [isFileUploading, setIsFileUploading] = useState(false); - const [errorUploadingFile, setErrorUploadingFile] = useState(false); - - const handleFileUpload = async (args: UploadArgsType) => { - const file = args.data; - try { - const tag = await bee.createTag({}); - - setIsFileUploading(true); - const result = await bee.uploadFile( - args.postageBatchId, - file, - file.toString(), - // { tag } - ); - - setIsFileUploading(false); - setUploadResultWithCid(result); - } catch (err) { - setIsFileUploading(false); - setErrorUploadingFile(true); - } - }; - - return { - handleFileUpload, - uploadResultWithCid, - isFileUploading, - errorUploadingFile, - }; -} From 5540a6447d277ae301b59fc1b4b72d2bc4ba12b0 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Mon, 5 Aug 2024 11:16:58 +0100 Subject: [PATCH 29/46] feat: add upload form --- react-vite/src/components/UploadFiles.tsx | 130 ++++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 react-vite/src/components/UploadFiles.tsx diff --git a/react-vite/src/components/UploadFiles.tsx b/react-vite/src/components/UploadFiles.tsx new file mode 100644 index 0000000..2f64c46 --- /dev/null +++ b/react-vite/src/components/UploadFiles.tsx @@ -0,0 +1,130 @@ +import React, { useState } from "react"; +import { API_URL } from "../constant"; +import { IUpload, useUpload } from "../hooks/useUpload"; + +type UploadFileState = {} & IUpload; + +export const UploadFile = () => { + const [uploadData, setLoadData] = useState({ + files: [], + postageBatchId: "", + }); + + + const { + handleFileUpload, + uploadResultWithCid, + error, + handleUploadProgress, + processing, + tag, + } = useUpload(); + + const handleOnchange = (e: React.FormEvent): void => { + const target = e.currentTarget; + const name = target.name; + const value = target.value; + + if (target.type === "file") { + setLoadData((preState) => ({ + ...preState, + files: Array.from(target.files as any), + })); + } else { + setLoadData((preState) => ({ + ...preState, + [name]: value, + })); + } + }; + + const handleUpload = async (e: any) => { + e.preventDefault(); + + if (uploadData.files.length == 0 || uploadData.postageBatchId == "") { + return; + } + + await handleFileUpload({ + postageBatchId: uploadData.postageBatchId, + files: uploadData.files, + }); + + setLoadData({ files: [], postageBatchId: "" }); + }; + + return ( +
+
+

Upload a file

+ +
+ + + +
+ +
+ + +
+ +
+ + {error && ( + <> +

{error}

+ + )} + + {uploadResultWithCid && ( +
+

Preview file

+

Reference: {uploadResultWithCid.reference}

+

Tag Uid: {uploadResultWithCid.tagUid}

+

CID: {uploadResultWithCid.cid()}

+

+ + {`${API_URL}/bzz/${uploadResultWithCid.reference}/`} + +

+
+ )} +
+ ); +}; From c47da85bebcc696efbfe8287e6e22c685161fb95 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Mon, 5 Aug 2024 15:11:30 +0100 Subject: [PATCH 30/46] feat: add getFileSize --- react-vite/src/components/UploadFiles.tsx | 54 ++++++++++++++++++++--- 1 file changed, 47 insertions(+), 7 deletions(-) diff --git a/react-vite/src/components/UploadFiles.tsx b/react-vite/src/components/UploadFiles.tsx index 2f64c46..c563fb4 100644 --- a/react-vite/src/components/UploadFiles.tsx +++ b/react-vite/src/components/UploadFiles.tsx @@ -1,4 +1,4 @@ -import React, { useState } from "react"; +import React, { useEffect, useState } from "react"; import { API_URL } from "../constant"; import { IUpload, useUpload } from "../hooks/useUpload"; @@ -10,7 +10,8 @@ export const UploadFile = () => { postageBatchId: "", }); - + const [fileSize, setFileSize] = useState(""); + const { handleFileUpload, uploadResultWithCid, @@ -20,6 +21,11 @@ export const UploadFile = () => { tag, } = useUpload(); + useEffect(() => { + getFileSize(); + return () => {}; + }, [uploadData.files]); + const handleOnchange = (e: React.FormEvent): void => { const target = e.currentTarget; const name = target.name; @@ -45,12 +51,32 @@ export const UploadFile = () => { return; } - await handleFileUpload({ - postageBatchId: uploadData.postageBatchId, - files: uploadData.files, - }); + return; + }; + + const getFileSize = () => { + // Calculate total size + let numberOfBytes = 0; + + for (const file of uploadData.files) { + numberOfBytes += file.size; + } + + // Approximate to the closest prefixed unit + const units = ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"]; + const exponent = Math.min( + Math.floor(Math.log(numberOfBytes) / Math.log(1024)), + units.length - 1 + ); + const approx = numberOfBytes / 1024 ** exponent; + + const size = + exponent === 0 + ? `${numberOfBytes} bytes` + : `${approx.toFixed(3)} ${units[exponent]} (${numberOfBytes} bytes)`; - setLoadData({ files: [], postageBatchId: "" }); + setFileSize(size); + console.log("size: ", size); }; return ( @@ -102,6 +128,19 @@ export const UploadFile = () => {
+ {uploadData.files.length > 0 && ( +
+
+ + {uploadData.files.length} +
+
+ + {fileSize} +
+
+ )} + {error && ( <>

{error}

@@ -125,6 +164,7 @@ export const UploadFile = () => {

)} + ); }; From d5a8245f3f408c6df56c63f28f7f59bd7e258361 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Mon, 5 Aug 2024 16:36:33 +0100 Subject: [PATCH 31/46] fix: add form validation --- react-vite/src/components/UploadFiles.tsx | 132 ++++++++++++++-------- 1 file changed, 82 insertions(+), 50 deletions(-) diff --git a/react-vite/src/components/UploadFiles.tsx b/react-vite/src/components/UploadFiles.tsx index c563fb4..a385722 100644 --- a/react-vite/src/components/UploadFiles.tsx +++ b/react-vite/src/components/UploadFiles.tsx @@ -11,6 +11,7 @@ export const UploadFile = () => { }); const [fileSize, setFileSize] = useState(""); + const [isRequired, setIsRequired] = useState(false); const { handleFileUpload, @@ -31,6 +32,8 @@ export const UploadFile = () => { const name = target.name; const value = target.value; + setIsRequired(false); + if (target.type === "file") { setLoadData((preState) => ({ ...preState, @@ -48,10 +51,20 @@ export const UploadFile = () => { e.preventDefault(); if (uploadData.files.length == 0 || uploadData.postageBatchId == "") { + setIsRequired(true); return; } - return; + setIsRequired(false); + await handleFileUpload({ + postageBatchId: uploadData.postageBatchId, + files: uploadData.files, + }); + + setLoadData({ files: [], postageBatchId: "" }); + + // Reset the form + e.target.reset(); }; const getFileSize = () => { @@ -76,58 +89,68 @@ export const UploadFile = () => { : `${approx.toFixed(3)} ${units[exponent]} (${numberOfBytes} bytes)`; setFileSize(size); - console.log("size: ", size); }; return (
-
-

Upload a file

- -
- - - -
+
+
+

Upload a file

+ +
+ + + + {isRequired && uploadData.postageBatchId === "" && ( + + Postage stamp ID is required + + )} +
-
- - + + + {isRequired && uploadData.files.length === 0 && ( + No file selected + )} +
+
- -
- + {uploadData.files.length > 0 && (
@@ -150,10 +173,20 @@ export const UploadFile = () => { {uploadResultWithCid && (

Preview file

-

Reference: {uploadResultWithCid.reference}

-

Tag Uid: {uploadResultWithCid.tagUid}

-

CID: {uploadResultWithCid.cid()}

-

+

+ Reference: + {uploadResultWithCid.reference} +

+

+ Tag UID:{" "} + {uploadResultWithCid.tagUid} +

+

+ CID:{" "} + {uploadResultWithCid.cid()} +

+

+ Link: {" "} {

)} -
); }; From 1df03aca684fef2f863b4750a205258195dff9ba Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Tue, 6 Aug 2024 00:32:10 +0100 Subject: [PATCH 32/46] feat: add manifestJs and hook usage --- react-vite/package-lock.json | 67 ++++++++++++++++++++++++++++ react-vite/package.json | 1 + react-vite/src/hooks/useManifest.tsx | 21 +++++++++ 3 files changed, 89 insertions(+) create mode 100644 react-vite/src/hooks/useManifest.tsx diff --git a/react-vite/package-lock.json b/react-vite/package-lock.json index 722d713..a47ac2e 100644 --- a/react-vite/package-lock.json +++ b/react-vite/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.0", "dependencies": { "@ethersphere/bee-js": "^7.1.0", + "@ethersphere/manifest-js": "^1.2.1", "react": "^18.2.0", "react-dom": "^18.2.0" }, @@ -883,6 +884,22 @@ "ws": "^8.7.0" } }, + "node_modules/@ethersphere/manifest-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@ethersphere/manifest-js/-/manifest-js-1.2.1.tgz", + "integrity": "sha512-HfeQ5h9KuH8xTxYY6bmSNwmpalrdDyOu4Sl6mrAN2W2iJlIjuG5DeirseSEFXElKPwEdv03PzZt2vARPna8sfw==", + "dependencies": { + "mantaray-js": "^1.0.3" + }, + "engines": { + "bee": "1.6.0-6ceadd35", + "node": ">=12.0.0", + "npm": ">=6.0.0" + }, + "peerDependencies": { + "@ethersphere/bee-js": ">=4.x" + } + }, "node_modules/@ethersphere/swarm-cid": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/@ethersphere/swarm-cid/-/swarm-cid-0.1.0.tgz", @@ -2040,6 +2057,11 @@ "node": ">=6.0.0" } }, + "node_modules/dom-walk": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/dom-walk/-/dom-walk-0.1.2.tgz", + "integrity": "sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==" + }, "node_modules/eastasianwidth": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", @@ -2624,6 +2646,17 @@ "node": ">=6.9.0" } }, + "node_modules/get-random-values": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/get-random-values/-/get-random-values-1.2.2.tgz", + "integrity": "sha512-lMyPjQyl0cNNdDf2oR+IQ/fM3itDvpoHy45Ymo2r0L1EjazeSl13SfbKZs7KtZ/3MDCeueiaJiuOEfKqRTsSgA==", + "dependencies": { + "global": "^4.4.0" + }, + "engines": { + "node": "10 || 12 || >=14" + } + }, "node_modules/glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", @@ -2678,6 +2711,15 @@ "node": "*" } }, + "node_modules/global": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/global/-/global-4.4.0.tgz", + "integrity": "sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w==", + "dependencies": { + "min-document": "^2.19.0", + "process": "^0.11.10" + } + }, "node_modules/globals": { "version": "11.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", @@ -3057,6 +3099,15 @@ "yallist": "^3.0.2" } }, + "node_modules/mantaray-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/mantaray-js/-/mantaray-js-1.0.3.tgz", + "integrity": "sha512-ZMQCbrwuFOArtdYKvNd/oS/AnqhvCbldm+UCWQ+HH3Osna1SYBPZcnZpFhSwoNheamNBkhuAoOl9gI8saVRZqg==", + "dependencies": { + "get-random-values": "^1.2.2", + "js-sha3": "^0.8.0" + } + }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", @@ -3098,6 +3149,14 @@ "node": ">= 0.6" } }, + "node_modules/min-document": { + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/min-document/-/min-document-2.19.0.tgz", + "integrity": "sha512-9Wy1B3m3f66bPPmU5hdA4DR4PB2OfDU/+GS3yAB7IQozE3tqXaVv2zOjgla7MEGSRv95+ILmOuvhLkOK6wJtCQ==", + "dependencies": { + "dom-walk": "^0.1.0" + } + }, "node_modules/minimalistic-assert": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", @@ -3546,6 +3605,14 @@ "node": ">= 0.8.0" } }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "engines": { + "node": ">= 0.6.0" + } + }, "node_modules/proxy-from-env": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", diff --git a/react-vite/package.json b/react-vite/package.json index c807695..8fee382 100644 --- a/react-vite/package.json +++ b/react-vite/package.json @@ -12,6 +12,7 @@ }, "dependencies": { "@ethersphere/bee-js": "^7.1.0", + "@ethersphere/manifest-js": "^1.2.1", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/react-vite/src/hooks/useManifest.tsx b/react-vite/src/hooks/useManifest.tsx new file mode 100644 index 0000000..feb9f00 --- /dev/null +++ b/react-vite/src/hooks/useManifest.tsx @@ -0,0 +1,21 @@ +import { ManifestJs } from "@ethersphere/manifest-js"; +import { bee } from "../utils/bee-node"; + +export function useManifest() { + const manifestJs = new ManifestJs(bee); + + const isManifest = async (hash: string) => { + return manifestJs.isManifest(hash); + }; + + const getHashes = async (hash: string) => { + return await manifestJs.getHashes(hash); + }; + + const getIndexDocumentPath = async (hash: string) => { + return await manifestJs.getIndexDocumentPath(hash); + }; + + return { isManifest, getHashes, getIndexDocumentPath }; +} + From 594c751e208c1ef57afb83a973864642061bc4d4 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Tue, 6 Aug 2024 00:32:56 +0100 Subject: [PATCH 33/46] fix: move preview to own component --- .../src/components/MultipleUploadResult.tsx | 46 +++++++++++++++++++ .../src/components/SingleUploadResult.tsx | 36 +++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 react-vite/src/components/MultipleUploadResult.tsx create mode 100644 react-vite/src/components/SingleUploadResult.tsx diff --git a/react-vite/src/components/MultipleUploadResult.tsx b/react-vite/src/components/MultipleUploadResult.tsx new file mode 100644 index 0000000..d624415 --- /dev/null +++ b/react-vite/src/components/MultipleUploadResult.tsx @@ -0,0 +1,46 @@ +import { UploadResultWithCid } from "@ethersphere/bee-js"; +import { useEffect, useState } from "react"; +import { useManifest } from "../hooks/useManifest"; + +type MultipleUploadResultProps = { + uploadResultWithCid: UploadResultWithCid; + link: string; +}; + +export default function MultipleUploadResult(props: MultipleUploadResultProps) { + const { getHashes } = useManifest(); + const [refHashes, setRefHashes] = useState>({}); + + useEffect(() => { + getHashes(props.uploadResultWithCid.reference) + .then((hash) => { + setRefHashes(hash); + }) + .catch((err) => console.error(err)); + + }, [props.uploadResultWithCid]); + + const getHashDetails = () => { + return Object.keys(refHashes).map((key, i) => ( +
  • + {i+1}. {key}: {" "} + + {`${props.link}/${refHashes[key]}`} + +
  • + )); + }; + + return ( +
    +

    Preview file

    +
      + {getHashDetails()} +
    +
    + ); +} diff --git a/react-vite/src/components/SingleUploadResult.tsx b/react-vite/src/components/SingleUploadResult.tsx new file mode 100644 index 0000000..db74932 --- /dev/null +++ b/react-vite/src/components/SingleUploadResult.tsx @@ -0,0 +1,36 @@ +import { UploadResultWithCid } from "@ethersphere/bee-js"; + +type MultipleUploadResultProps = { + uploadResultWithCid: UploadResultWithCid; + link: string; +}; + +export default function SingleUploadResult(props: MultipleUploadResultProps) { + return ( +
    +

    Preview file

    +

    + Reference: + {props.uploadResultWithCid.reference} +

    +

    + Tag UID:{" "} + {props.uploadResultWithCid.tagUid} +

    +

    + CID:{" "} + {props.uploadResultWithCid.cid()} +

    +

    + Link: {" "} + + {`${props.link}/${props.uploadResultWithCid.reference}/`} + +

    +
    + ); +} From 03efedaa9de280d28d8570b3b7be71fbff5acf6c Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Tue, 6 Aug 2024 00:33:56 +0100 Subject: [PATCH 34/46] fix: add tooltip --- react-vite/src/App.css | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/react-vite/src/App.css b/react-vite/src/App.css index 8940aec..f2dc626 100644 --- a/react-vite/src/App.css +++ b/react-vite/src/App.css @@ -34,4 +34,35 @@ color: #fff; padding: 16px; font-weight: 700; - } \ No newline at end of file + } + + + + /* Tooltip container */ + .tooltip { + position: relative; + display: inline-block; + border-bottom: 1px dotted black; + /* If you want dots under the hoverable text */ + } + + /* Tooltip text */ + .tooltip .tooltip-text { + visibility: hidden; + /* width: 120px; */ + background-color: rgb(56, 56, 56); + color: #fff; + text-align: center; + padding: 4px; + border-radius: 6px; + + position: absolute; + z-index: 1; + top: -25px; + right: 5%; + } + + /* Show the tooltip text when you mouse over the tooltip container */ + .tooltip:hover .tooltip-text { + visibility: visible; + } From e42ad58d55618837716572450a91a5f23f7855f8 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Tue, 6 Aug 2024 00:35:09 +0100 Subject: [PATCH 35/46] fix: made clean up --- react-vite/src/hooks/useUpload.tsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/react-vite/src/hooks/useUpload.tsx b/react-vite/src/hooks/useUpload.tsx index a14aa77..31c1834 100644 --- a/react-vite/src/hooks/useUpload.tsx +++ b/react-vite/src/hooks/useUpload.tsx @@ -10,16 +10,15 @@ export interface IUpload { export function useUpload() { const [uploadResultWithCid, setUploadResultWithCid] = useState(); - const [tag, setTag] = useState(); + const [tagProgress, setTagProgress] = useState(); const [processing, setIsProcessing] = useState(false); const [error, setError] = useState(); const handleFileUpload = async (args: IUpload) => { try { - let result; - + setIsProcessing(true); if (args) { if (args.files.length === 1) { @@ -37,19 +36,19 @@ export function useUpload() { setIsProcessing(false); setUploadResultWithCid(result); } catch (err) { - console.log("error uploading 101", err); + console.error(err); setIsProcessing(false); setError(err); } }; - const handleUploadProgress = async () => { + const getTagProgress = async () => { try { if (uploadResultWithCid?.tagUid) { setIsProcessing(true); const tag = await bee.retrieveTag(uploadResultWithCid.tagUid); - setTag(tag); + setTagProgress(tag); setIsProcessing(false); } } catch (err) { @@ -59,8 +58,8 @@ export function useUpload() { }; return { - handleUploadProgress, - tag, + getTagProgress, + tagProgress, handleFileUpload, uploadResultWithCid, processing, From 24b4fd03fa87b03dff7b887dfe37263877446664 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Tue, 6 Aug 2024 00:40:05 +0100 Subject: [PATCH 36/46] fix: made general housing cleaning --- react-vite/src/components/GetBalance.tsx | 26 ++++-- .../src/components/GetPostageStamps.tsx | 5 +- react-vite/src/components/PostageStamps.tsx | 85 ++---------------- react-vite/src/components/UploadFiles.tsx | 61 ++++++------- react-vite/src/constant/index.ts | 2 +- react-vite/src/hooks/usePostageBatch.tsx | 86 ++++++++++++------- react-vite/src/utils/format.ts | 1 - 7 files changed, 110 insertions(+), 156 deletions(-) diff --git a/react-vite/src/components/GetBalance.tsx b/react-vite/src/components/GetBalance.tsx index 02dd06f..261e625 100644 --- a/react-vite/src/components/GetBalance.tsx +++ b/react-vite/src/components/GetBalance.tsx @@ -21,16 +21,28 @@ export default function GetBalance(props: NodeStatusProps) { {!isLoading && !error && (
    - {bzzBalance().toString().substring(0, 6)} xBzz - + + {bzzBalance().toString().substring(0, 6)} xBzz + + {nativeTokenBalance().toString().substring(0, 6)} xDai -
    +
    {balance?.walletAddress.substring(0, 6)}... - {balance?.walletAddress.substring(36)} - - - {balance?.walletAddress} + {balance?.walletAddress.substring( + balance?.walletAddress.length - 6 + )} + + + + {balance?.walletAddress} +
    diff --git a/react-vite/src/components/GetPostageStamps.tsx b/react-vite/src/components/GetPostageStamps.tsx index d04081c..90b855c 100644 --- a/react-vite/src/components/GetPostageStamps.tsx +++ b/react-vite/src/components/GetPostageStamps.tsx @@ -10,7 +10,6 @@ export function GetPostageStamps() { const handleViewPostageStamps = () => { setShowStamp(!showStamps); - console.log("handleView Postage Stamps"); }; return ( @@ -21,7 +20,7 @@ export function GetPostageStamps() { )}
    -
    +
    {postageStamps && postageStamps.length > 0 && (
    ( -
  • +
  • Batch ID: diff --git a/react-vite/src/components/PostageStamps.tsx b/react-vite/src/components/PostageStamps.tsx index cfddf9b..725f7df 100644 --- a/react-vite/src/components/PostageStamps.tsx +++ b/react-vite/src/components/PostageStamps.tsx @@ -1,83 +1,12 @@ -import { usePostageBatch } from "../hooks/usePostageBatch"; -import { copyText, trimText } from "../utils/format"; -export function PostageStamps() { - const { - getAllPostageStamps, - postageStamps, - getAllStampError, - isLoadingStamps, - } = usePostageBatch(); +import { BuyPostageStamp } from "./BuyPostageStamp"; +import { GetPostageStamps } from "./GetPostageStamps"; +export function PostageStamps() { return ( -

    - -
      - {isLoadingStamps &&
    • Loading...
    • } - {getAllStampError && ( -
    • Error fetching Postage stamps!
    • - )} - - {postageStamps && - postageStamps.length > 0 && - postageStamps.map((ps) => ( -
    • -

      - - {" "} - BatchID: - {" "} - {trimText(ps.batchID)} -

      -

      - Label: {ps.label} -

      -

      - BlockNumber:{" "} - {ps.blockNumber} -

      -

      - Amount: {ps.amount} -

      -

      - BucketDepth:{" "} - {ps.bucketDepth} -

      -

      - Utilization:{" "} - {ps.utilization} -

      -

      - Exists:{" "} - {ps.exists ? "Yes" : "No"} -

      -

      - Depth: {ps.depth} -

      -

      - Immutable Flag:{" "} - {ps.immutableFlag} -

      -

      - Usable:{" "} - {ps.usable ? "Yes" : "No"} -

      -

      - BatchTTL: {ps.batchTTL} -

      -
    • - ))} -
    - {postageStamps && ( -

    - Total number of Postage Stamps: {postageStamps?.length} -

    - )} -
    + <> + + + ); } diff --git a/react-vite/src/components/UploadFiles.tsx b/react-vite/src/components/UploadFiles.tsx index a385722..74c8c94 100644 --- a/react-vite/src/components/UploadFiles.tsx +++ b/react-vite/src/components/UploadFiles.tsx @@ -1,6 +1,8 @@ import React, { useEffect, useState } from "react"; import { API_URL } from "../constant"; import { IUpload, useUpload } from "../hooks/useUpload"; +import MultipleUploadResult from "./MultipleUploadResult"; +import SingleUploadResult from "./SingleUploadResult"; type UploadFileState = {} & IUpload; @@ -12,14 +14,13 @@ export const UploadFile = () => { const [fileSize, setFileSize] = useState(""); const [isRequired, setIsRequired] = useState(false); + const [isMultipleFile, setIsMultipleFile] = useState(false); const { handleFileUpload, uploadResultWithCid, error, - handleUploadProgress, processing, - tag, } = useUpload(); useEffect(() => { @@ -33,6 +34,7 @@ export const UploadFile = () => { const value = target.value; setIsRequired(false); + setIsMultipleFile(false); if (target.type === "file") { setLoadData((preState) => ({ @@ -56,6 +58,7 @@ export const UploadFile = () => { } setIsRequired(false); + setIsMultipleFile(uploadData.files.length > 1); await handleFileUpload({ postageBatchId: uploadData.postageBatchId, files: uploadData.files, @@ -102,7 +105,7 @@ export const UploadFile = () => { htmlFor="postageBatchId" className="text-stone-500 font-bold mb-4" > - Batch ID: + Postage ID: { name="postageBatchId" onChange={handleOnchange} disabled={processing} - required={isRequired} /> {isRequired && uploadData.postageBatchId === "" && ( - Postage stamp ID is required + Please fill in your Postage stamp ID )}
  • @@ -136,10 +138,11 @@ export const UploadFile = () => { name="fileSelected" onChange={handleOnchange} disabled={processing} - required={isRequired} /> {isRequired && uploadData.files.length === 0 && ( - No file selected + + Please one or more files + )}
    + {uploadData.files.length > 0 && ( -
    +
    +

    Upload Summary

    {uploadData.files.length} @@ -166,36 +171,22 @@ export const UploadFile = () => { {error && ( <> -

    {error}

    +

    {error}

    )} - {uploadResultWithCid && ( -
    -

    Preview file

    -

    - Reference: - {uploadResultWithCid.reference} -

    -

    - Tag UID:{" "} - {uploadResultWithCid.tagUid} -

    -

    - CID:{" "} - {uploadResultWithCid.cid()} -

    -

    - Link: {" "} - - {`${API_URL}/bzz/${uploadResultWithCid.reference}/`} - -

    -
    + {!isMultipleFile && uploadResultWithCid?.reference && ( + + )} + + {isMultipleFile && uploadResultWithCid?.reference && ( + )}
    ); diff --git a/react-vite/src/constant/index.ts b/react-vite/src/constant/index.ts index 91d6e11..417f6d0 100644 --- a/react-vite/src/constant/index.ts +++ b/react-vite/src/constant/index.ts @@ -1,3 +1,3 @@ -const API_URL = 'http://localhost:1633'; +const API_URL = "http://127.0.0.1:1633"; export { API_URL }; diff --git a/react-vite/src/hooks/usePostageBatch.tsx b/react-vite/src/hooks/usePostageBatch.tsx index a60dd14..dac2047 100644 --- a/react-vite/src/hooks/usePostageBatch.tsx +++ b/react-vite/src/hooks/usePostageBatch.tsx @@ -1,42 +1,62 @@ -import { BatchId, PostageBatch } from "@ethersphere/bee-js"; +import { + BatchId, + PostageBatch, + PostageBatchOptions, +} from "@ethersphere/bee-js"; import { useCallback, useEffect, useState } from "react"; -import { beeDebug } from "../utils/bee-node"; +import { bee } from "../utils/bee-node"; -export interface CreatePostageBatchArgs { +export interface BuyPostageBatchArgs { amount: number; depth: number; + options?: PostageBatchOptions; } export function usePostageBatch() { const [postageStamps, setPostageStamps] = useState(); const [isLoadingStamps, setIsLoadingStamps] = useState(false); - const [isCreatePostageBatch, setIsCreatePostageBatch] = useState(false); - const [isErrorCreatePostageBatch, setIsErrorCreatePostageBatch] = - useState(false); + const [isBuyPostageBatch, setIsBuyPostageBatch] = useState(false); + const [isErrorBuyPostageBatch, setIsErrorBuyPostageBatch] = useState({ + hasError: false, + msg: "", + }); const [getAllStampError, setGetAllStampError] = useState(false); const [newlyCreatedBatchId, setNewlyCreatedBatchId] = useState(); + const [nodeActive, setNodeActive] = useState(false); useEffect(() => { - // const timeoutId = setTimeout(() => { - // console.log("usePostageStamp timeout"); - // setGetAllStampError(!getAllStampError); - // }, 3000); - // return () => { - // clearTimeout(timeoutId); - // }; - }, []); + nodeIsConnected(); + getAllPostageStamps(); + + let timeoutId: NodeJS.Timeout; + + if (getAllStampError) { + timeoutId = setTimeout(() => { + setGetAllStampError(false); + }, 3000); + } + + return () => { + clearTimeout(timeoutId); + }; + }, [nodeActive]); + + const nodeIsConnected = async () => { + if (await bee.isConnected()) { + setNodeActive(true); + } + }; const getAllPostageStamps = useCallback(async () => { try { setIsLoadingStamps(true); - const ps: PostageBatch[] = await beeDebug.getAllPostageBatch(); + const ps: PostageBatch[] = await bee.getAllPostageBatch(); setPostageStamps(ps); - - setIsLoadingStamps(false); - setGetAllStampError(false); } catch (err) { - setIsLoadingStamps(false); setGetAllStampError(true); + } finally { + setGetAllStampError(false); + setIsLoadingStamps(false); } }, [postageStamps]); @@ -44,20 +64,24 @@ export function usePostageBatch() { * This function creates a Postage Stamp Batch * @param args */ - const createPostageBatch = async (args: CreatePostageBatchArgs) => { + const buyPostageBatch = async (args: BuyPostageBatchArgs) => { try { - setIsCreatePostageBatch(true); - const resBatchId = await beeDebug.createPostageBatch( + setIsBuyPostageBatch(true); + + const resBatchId = await bee.createPostageBatch( args.amount.toString(), - args.depth + args.depth, + { + ...args.options, + } ); setNewlyCreatedBatchId(resBatchId); - setIsCreatePostageBatch(false); - } catch (err) { - console.log(err); - setIsCreatePostageBatch(false); - setIsErrorCreatePostageBatch(true); + setIsBuyPostageBatch(false); + } catch (err: any) { + console.error(err); + setIsBuyPostageBatch(false); + setIsErrorBuyPostageBatch({ hasError: true, msg: err }); } }; @@ -66,9 +90,9 @@ export function usePostageBatch() { getAllPostageStamps, postageStamps, isLoadingStamps, - createPostageBatch, - isCreatePostageBatch, - isErrorCreatePostageBatch, + buyPostageBatch, + isBuyPostageBatch, + isErrorBuyPostageBatch, newlyCreatedBatchId, }; } diff --git a/react-vite/src/utils/format.ts b/react-vite/src/utils/format.ts index c89f00e..b42d9a3 100644 --- a/react-vite/src/utils/format.ts +++ b/react-vite/src/utils/format.ts @@ -15,7 +15,6 @@ export const format = { .writeText(txt) .then(() => res(true)) .catch((err) => rej(err)); - console.log("copied text"); } else { // fallback const txtarea = document.createElement("textarea"); From 23864263e9171e1954ae38ec8ec90299289b481f Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Tue, 6 Aug 2024 00:45:20 +0100 Subject: [PATCH 37/46] fix: update constant --- react-vite/src/constant/index.ts | 4 ++-- react-vite/src/utils/bee-node.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/react-vite/src/constant/index.ts b/react-vite/src/constant/index.ts index 417f6d0..1780ef9 100644 --- a/react-vite/src/constant/index.ts +++ b/react-vite/src/constant/index.ts @@ -1,3 +1,3 @@ -const API_URL = "http://127.0.0.1:1633"; +const BEE_NODE_URL = process.env.BEE_NODE_URL || "http://127.0.0.1:1633"; -export { API_URL }; +export { BEE_NODE_URL }; diff --git a/react-vite/src/utils/bee-node.ts b/react-vite/src/utils/bee-node.ts index ce691f8..7b983ef 100644 --- a/react-vite/src/utils/bee-node.ts +++ b/react-vite/src/utils/bee-node.ts @@ -1,6 +1,6 @@ import { Bee } from "@ethersphere/bee-js"; -import { API_URL } from "../constant"; +import { BEE_NODE_URL } from "../constant"; -const bee = new Bee(API_URL); +const bee = new Bee(BEE_NODE_URL); export { bee }; From eec810be1887673c7a4ca3b5c0344ddcd925e1e6 Mon Sep 17 00:00:00 2001 From: Ogheneochuko <7204868+amochuko@users.noreply.github.com> Date: Wed, 7 Aug 2024 15:11:36 +0100 Subject: [PATCH 38/46] feat: add ttl estimation amount and form validation --- react-vite/src/components/BuyPostageStamp.tsx | 323 +++++++++++------- 1 file changed, 199 insertions(+), 124 deletions(-) diff --git a/react-vite/src/components/BuyPostageStamp.tsx b/react-vite/src/components/BuyPostageStamp.tsx index e4022f1..e85340c 100644 --- a/react-vite/src/components/BuyPostageStamp.tsx +++ b/react-vite/src/components/BuyPostageStamp.tsx @@ -1,38 +1,44 @@ import { useEffect, useState } from "react"; import { usePostageBatch } from "../hooks/usePostageBatch"; -import { format } from "../utils/format"; +import { UTILIZATION_TABLE } from "../utils"; -type State = { - amount: number | string; +type PostageUploadState = { + numOfDays: number | string; depth: number | string; label?: string; mutable: boolean; [index: string]: any; }; -export const BuyPostageStamp = () => { - const minimumBatchDepthValue = 21; +const GNOSIS_BLOCKTIME_IN_SECONDS = 5; + +const MINIMUM_POSTAGE_STAMPS_DEPTH = 21; +const UNIT_OF_CHUNK = 4 * 1024; // 4kb +export const BuyPostageStamp = () => { const [buyBtn, setBuyBtn] = useState(false); - const [values, setValues] = useState({ - amount: "", - depth: minimumBatchDepthValue, + const [isRequired, setIsRequired] = useState(false); + const [stampPrice, setStampPrice] = useState(24000); + + const [values, setValues] = useState({ + numOfDays: "", + depth: "", label: "", mutable: false, }); const { - buyPostageBatch, - isBuyPostageBatch, - newlyCreatedBatchId, - isErrorBuyPostageBatch, + newlyCreatedStampId, + errorCreatingPostage, + setErrorCreatingPostage, + createPostageBatch, + creatingPostage, + getAllPostageStamps, } = usePostageBatch(); useEffect(() => { - newlyCreatedBatchId && - alert(`Newly created Postage Batch ID: ${newlyCreatedBatchId}`); - isErrorBuyPostageBatch.hasError && alert(`${isErrorBuyPostageBatch.msg}`); - }, [newlyCreatedBatchId, isErrorBuyPostageBatch.hasError]); + getAllPostageStamps(); + }, [newlyCreatedStampId]); const handleOnchange = ( e: React.FormEvent @@ -41,77 +47,64 @@ export const BuyPostageStamp = () => { const name = target.name; const value = target.value; - console.log(name, value); setValues((preState) => ({ ...preState, [name]: value })); }; - const handleBuyPostage = async () => { - if (+values.depth < 17) { - alert("Minimal depth is 17"); - } - if (values.amount == "" && values.label == "" && values.depth == "") { - console.log("noting... "); + const createPostageStamp = async (e: any) => { + e.preventDefault(); + + if ( + values.numOfDays == "" || + values.label == "" || + values.depth == "" || + Number(values.depth) < MINIMUM_POSTAGE_STAMPS_DEPTH || + Number(values.numOfDays) <= 0 + ) { + setIsRequired(true); return; - } else { - values.amount = format.parsexBZZ(Number(values.amount)); - console.log("values... ", values); - - // const { amount, depth, mutable, label } = values; - // await buyPostageBatch({ - // amount, - // depth: Number(depth), - // options: { - // label, - // immutableFlag: Boolean(mutable), - // }, - // }); - - setValues({ amount: "", depth: 17, label: "", mutable: false }); } - }; - - const handleCostEstimate = () => { - // PostageBatchBucket = 2 ** bucketDepth - // batchDepth :~ how much data can be stored (stamped) by a batch = 2 ** batchDepth - // ex: if batchDepth = 24, then 2 ** 24 of chunks can be stored. - // theoretical maxBatchVolume = (2 ** batchDept) * 4kb (one chunk) + try { + setIsRequired(false); - // bucketDepth :~ how many chunks are allowed in each bucket = 2 ** (batchDepth - bucketDepth) - // ex: with batchDepth = 24, and bucketDepth = 16 - // 2 ** (24 - 16) = 2 ** 8 = 256 chucks/bucket + await createPostageBatch({ + amount: estimatedAmountForTTL(), + depth: Number(values.depth), + options: { + label: values.label, + immutableFlag: values.mutable, + }, + }); - const minimumBatchDepthValue = 21; - const dataOrChunkSize = 2 ** minimumBatchDepthValue; // can be stamped + setValues({ + numOfDays: "", + depth: "", + label: "", + mutable: false, + }); + } catch (e: any) { + console.error(e); + } finally { + e.target.reset(); + } + }; - // batch Amount (batchCost) : amount of xBZZ in PLUR (1 * 10**16) per chunk in the batch - // total batchAmount paid for a batch = (2 ** batchDepth) * amount (xBZZ in PLUR) - // example: - // batchDepth = 24, amount = 1000000000 PLUR - // total batchAmount = (2 ** 24) * 1000000000 PLUR = 16777216000000000 PLUR ~ 1.6777216 xBZZ + const estimateStorageSize = () => { + return { + effectiveStorageVolume: 2 ** Number(values.depth), + theoreticalStorageVolume: 2 ** Number(values.depth) * UNIT_OF_CHUNK, + }; + }; + const estimatedAmountForTTL = () => { // Estimating `amount` needed for desired TTL - // (stampPrice / gnosisBlocktimeInSeconds) * storageTimeInSeconds (duration) - // ex: stampPrice = 24000 PLUR, blocktime = 5, duration = 12 days (1 day = 24 hr * 60 min * 60 secs) - // ttlAmountNeeded for 4 days = (24000 / 5) * (5 * 24 * 60 * 60) = 4976640000 PLUR - const secsPerDay = 24 * 60 * 60; - const ttlInDays = 12; - const storageTimeInSeconds = ttlInDays * secsPerDay; - const gnosisBlocktimeInSeconds = 5; - const postpageStampPrice = 24000; + const storageTimeInSeconds = Number(values.numOfDays) * secsPerDay; - const ttlAmountNeeded = - (postpageStampPrice / gnosisBlocktimeInSeconds) * storageTimeInSeconds; + const amount = + (stampPrice / GNOSIS_BLOCKTIME_IN_SECONDS) * storageTimeInSeconds; - // console.log("ttlAmountNeeded: ", format.parsePlur(ttlAmountNeeded)); - - const batchDepth = 24; - const totalBatchAmount = ttlAmountNeeded * 2 ** batchDepth; - const pricePerGBPerMonth = 0.00005435817984; - const price = pricePerGBPerMonth * 2 ** batchDepth; - - // console.log("totalBatchAmount: ", format.formatPlur(16777216000000000)); + return amount; }; return ( @@ -128,55 +121,121 @@ export const BuyPostageStamp = () => { )} {buyBtn && ( - <> +
    - - +
    + + +
    +
    + {isRequired && values.depth == "" && ( + + Please enter a depth size + + )} + + {values.depth !== "" && + Number(values.depth) < MINIMUM_POSTAGE_STAMPS_DEPTH && ( + + Minimum depth is {MINIMUM_POSTAGE_STAMPS_DEPTH} + + )} + + {values.depth && ( + +

    Estimated file size

    + + Theoretical:{" "} + {values.depth && + UTILIZATION_TABLE(String(values.depth)) + .theoreticalMaxVolume} + {/* + {convertBytes( + estimateStorageSize().theoreticalStorageVolume + )} + */} + + + Effective:{" "} + {/* {convertBytes( + estimateStorageSize().effectiveStorageVolume + )} */} + {values.depth && + UTILIZATION_TABLE(String(values.depth)).effectiveVolume} + +
    + )} +
    - - +
    + + +
    + + {Number(values.numOfDays) != 0 && values.numOfDays && ( + + Estimated cost: {estimatedAmountForTTL()} PLUR + + )} + + {isRequired && values.numOfDays === "" && ( + + Please enter a duration + + )} + {values.numOfDays != "" && Number(values.numOfDays) <= 0 && ( + + Minimium duration is 1 + + )} +
    - - +
    + + +
    + + {isRequired && values.label === "" && ( + + Please enter a label + + )} +
    +
    - +