diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..2a547f6 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,5 @@ +[*.{js,jsx,ts,tsx,mjs}] +indent_style = space +indent_size = 4 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..f920c68 --- /dev/null +++ b/.env.example @@ -0,0 +1,9 @@ +DB_DATABASE=nightlife +DB_USER=root +DB_PASSWORD=nightlife +DB_PORT=3310 +DB_FORCE_SYNC=false +DB_DIALECT=mysql + +SENTRY_DSN= # Only For Production +NODE_ENV=development \ No newline at end of file diff --git a/.env.test b/.env.test new file mode 100644 index 0000000..06a8e9a --- /dev/null +++ b/.env.test @@ -0,0 +1,8 @@ +DB_DATABASE=nightlife_test +DB_USER=nightlife +DB_PASSWORD=nightlife +DB_PORT=3311 +DB_FORCE_SYNC=true +DB_DIALECT=mysql + +NODE_ENV=test \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..77828cb --- /dev/null +++ b/.gitattributes @@ -0,0 +1,192 @@ +* text=auto + +# Source code +*.bash text eol=lf +*.bat text eol=crlf +*.cmd text eol=crlf +*.coffee text +*.css text diff=css +*.htm text diff=html +*.html text diff=html +*.inc text +*.ini text +*.js text +*.json text +*.jsx text +*.less text +*.ls text +*.map text -diff +*.od text +*.onlydata text +*.php text diff=php +*.pl text +*.ps1 text eol=crlf +*.py text diff=python +*.rb text diff=ruby +*.sass text +*.scm text +*.scss text diff=css +*.sh text eol=lf +.husky/* text eol=lf +*.sql text +*.styl text +*.tag text +*.ts text +*.tsx text +*.xml text +*.xhtml text diff=html + +# Docker +Dockerfile text + +# Documentation +*.ipynb text eol=lf +*.markdown text diff=markdown +*.md text diff=markdown +*.mdwn text diff=markdown +*.mdown text diff=markdown +*.mkd text diff=markdown +*.mkdn text diff=markdown +*.mdtxt text +*.mdtext text +*.txt text +AUTHORS text +CHANGELOG text +CHANGES text +CONTRIBUTING text +COPYING text +copyright text +*COPYRIGHT* text +INSTALL text +license text +LICENSE text +NEWS text +readme text +*README* text +TODO text + +# Templates +*.dot text +*.ejs text +*.erb text +*.haml text +*.handlebars text +*.hbs text +*.hbt text +*.jade text +*.latte text +*.mustache text +*.njk text +*.phtml text +*.svelte text +*.tmpl text +*.tpl text +*.twig text +*.vue text + +# Configs +*.cnf text +*.conf text +*.config text +.editorconfig text +.env text +.gitattributes text +.gitconfig text +.htaccess text +*.lock text -diff +package.json text eol=lf +package-lock.json text eol=lf -diff +pnpm-lock.yaml text eol=lf -diff +.prettierrc text +yarn.lock text -diff +*.toml text +*.yaml text +*.yml text +browserslist text +Makefile text +makefile text + +# Heroku +Procfile text + +# Graphics +*.ai binary +*.bmp binary +*.eps binary +*.gif binary +*.gifv binary +*.ico binary +*.jng binary +*.jp2 binary +*.jpg binary +*.jpeg binary +*.jpx binary +*.jxr binary +*.pdf binary +*.png binary +*.psb binary +*.psd binary +# SVG treated as an asset (binary) by default. +*.svg text +# If you want to treat it as binary, +# use the following line instead. +# *.svg binary +*.svgz binary +*.tif binary +*.tiff binary +*.wbmp binary +*.webp binary + +# Audio +*.kar binary +*.m4a binary +*.mid binary +*.midi binary +*.mp3 binary +*.ogg binary +*.ra binary + +# Video +*.3gpp binary +*.3gp binary +*.as binary +*.asf binary +*.asx binary +*.avi binary +*.fla binary +*.flv binary +*.m4v binary +*.mng binary +*.mov binary +*.mp4 binary +*.mpeg binary +*.mpg binary +*.ogv binary +*.swc binary +*.swf binary +*.webm binary + +# Archives +*.7z binary +*.gz binary +*.jar binary +*.rar binary +*.tar binary +*.zip binary + +# Fonts +*.ttf binary +*.eot binary +*.otf binary +*.woff binary +*.woff2 binary + +# Executables +*.exe binary +*.pyc binary + +# RC files (like .babelrc or .eslintrc) +*.*rc text + +# Ignore files (like .npmignore or .gitignore) +*.*ignore text \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/BUG-REPORT.yml b/.github/ISSUE_TEMPLATE/BUG-REPORT.yml new file mode 100644 index 0000000..dd175e1 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/BUG-REPORT.yml @@ -0,0 +1,35 @@ +name: '🐛 Bug Report' +description: Create a new ticket for a bug. +title: '🐛 [BUG] - ' +labels: ['bug'] +body: + - type: textarea + id: description + attributes: + label: 'Description' + description: Please enter an explicit description of your issue + placeholder: Short and explicit description of your incident... + validations: + required: true + - type: textarea + id: reprod + attributes: + label: 'Reproduction steps' + description: Please enter an explicit description of your issue + value: | + 1. Go to '...' + 2. Click on '....' + 3. Scroll down to '....' + 4. See error + render: bash + validations: + required: true + - type: textarea + id: screenshot + attributes: + label: 'Screenshots' + description: If applicable, add screenshots to help explain your problem. + value: | + ![DESCRIPTION](LINK.png) + validations: + required: false \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/DESIGN-REQUEST.yml b/.github/ISSUE_TEMPLATE/DESIGN-REQUEST.yml new file mode 100644 index 0000000..6776568 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/DESIGN-REQUEST.yml @@ -0,0 +1,29 @@ +name: '🎨 Design Request' +description: Erstellen Sie ein neues Ticket für ein neues Design +title: '🎨 [DESIGN] - <title>' +labels: ['design'] +body: + - type: textarea + id: summary + attributes: + label: 'Zusammenfassung' + description: Geben Sie eine kurze Erklärung des Merkmals + placeholder: Beschreiben Sie in ein paar Zeilen Ihre Anfrage + validations: + required: true + - type: textarea + id: drawbacks + attributes: + label: 'Drawbacks' + description: Was sind die Nachteile/Auswirkungen Ihrer Funktionsanfrage? + placeholder: Identifizieren Sie die Nachteile und Auswirkungen, während Sie sich neutral zu Ihrer Anfrage verhalten + validations: + required: true + - type: textarea + id: unresolved_question + attributes: + label: 'Unresolved questions' + description: Welche Fragen sind noch ungelöst? + placeholder: Ermitteln Sie alle ungelösten Probleme. + validations: + required: false diff --git a/.github/ISSUE_TEMPLATE/FEATURE-REQUEST.yml b/.github/ISSUE_TEMPLATE/FEATURE-REQUEST.yml new file mode 100644 index 0000000..782e207 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/FEATURE-REQUEST.yml @@ -0,0 +1,27 @@ +name: '💡 Feature Request' +description: Erstelle ein neues Ticket für eine neue Funktionsanfrage +title: '💡 [REQUEST] - <title>' +labels: ['enhancement'] +body: + - type: textarea + id: summary + attributes: + label: 'Zusammenfassung' + description: Eine kurze Erklärung des Merkmals + validations: + required: true + - type: textarea + id: drawbacks + attributes: + label: 'Drawbacks' + description: Was sind die Nachteile/Auswirkungen Deiner Funktionsanfrage? + placeholder: Identifiziere die Nachteile und Auswirkungen, während du dich neutral zu Deiner Anfrage verhälst + validations: + required: true + - type: textarea + id: unresolved_question + attributes: + label: 'Unresolved questions' + description: Welche Fragen sind noch ungelöst? + validations: + required: false \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..7c45e8b --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,20 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: 'npm' # See documentation for possible values + directory: '/' # Location of package manifests + schedule: + interval: 'daily' + target-branch: 'dev' + labels: + - 'dependencies' + commit-message: + prefix: 'chore' + include: 'scope' + open-pull-requests-limit: 10 + reviewers: + - 'Mittelblut9' \ No newline at end of file diff --git a/.github/docs/altv-installation-dev.png b/.github/docs/altv-installation-dev.png new file mode 100644 index 0000000..2d54fb3 Binary files /dev/null and b/.github/docs/altv-installation-dev.png differ diff --git a/.github/docs/altv-installation.png b/.github/docs/altv-installation.png new file mode 100644 index 0000000..8fa22da Binary files /dev/null and b/.github/docs/altv-installation.png differ diff --git a/.github/scripts/delete-merged-branches.bat b/.github/scripts/delete-merged-branches.bat new file mode 100644 index 0000000..cff1cdd --- /dev/null +++ b/.github/scripts/delete-merged-branches.bat @@ -0,0 +1,6 @@ +@echo off +for /f "delims=" %%b in ('git branch --merged dev ^| findstr /V /C:"* dev"') do ( + if "%%b" neq "main" ( + git branch -d %%b + ) +) \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..99e1e7a --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,41 @@ +name: Server Deployment + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: self-hosted + + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + ref: main + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 20 + + - name: Copy data + run: | + cp ../../../configs/.env .env + cp ../../../configs/server.toml server.toml + cp ../../../configs/docker-compose.override.yml docker-compose.override.yml + cp -R ../../../configs/basic-server/* ./ + + - name: Install dependencies + run: | + npm install --omit=dev --ignore-scripts + + - name: Build + run: | + npm run alias-build + npm run scss:build + + - name: Run + run: | + docker compose up -d diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..0a64c64 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,24 @@ +name: Code Linter + +on: + pull_request_target: + branches: [dev, main] + push: + branches: + - '**' + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + fetch-depth: 0 + + - name: Install dependencies + run: npm install + + - name: Lint + run: npm run code:lint \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..b259d0c --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,59 @@ +name: Code Tester + +on: + pull_request_target: + branches: [dev, main] + + +jobs: + test: + runs-on: ubuntu-latest + + services: + mysql: + image: mysql:8.2 + env: + MYSQL_ROOT_PASSWORD: root + MYSQL_DATABASE: nightlife_test + MYSQL_USER: nightlife + MYSQL_PASSWORD: nightlife + ports: + - 3311:3306 + options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 + + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} + fetch-depth: 0 + + - name: Install dependencies + run: npm install + + - name: Test + run: | + npm run test:ci + + - name: Comment on failed tests + uses: actions/github-script@v6 + if: ${{ failure() && github.event_name == 'pull_request'}} + with: + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: ':warning: Tests failed. Please fix all errors and push again. :warning:' + }) + + - name: Comment on success tests + uses: actions/github-script@v6 + if: ${{ success() && github.event_name == 'pull_request' }} + with: + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: '✅ Tests passed.' + }) \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..092ae27 --- /dev/null +++ b/.gitignore @@ -0,0 +1,23 @@ + +modules/ +data/ +altv-server.exe +altv-crash-handler.exe +node_modules/ +cache/ +server.log +.server-crashes-cache/ +AltV.Net.Host.dll +AltV.Net.Host.runtimeconfig.json +.tools/eslint/.cache/* +.tools/stylelint/.cache/* +server.toml +docker-compose.override.yml +.DS_Store + +.env + +# Compiled css +*.css +*.css.map + diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100644 index 0000000..873478b --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1,27 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +# ==================== +# COMMIT PREFIX CHECK +# ==================== +# allowed prefixes: "feat:" "fix:" "chore:" "docs:" "refactor:" "style:" "test:" "chore:" "perf:" "ci:" "revert:" "lang:" + +chmod +x .husky/commit-msg +chmod +w .git/COMMIT_EDITMSG + +commit_message_file="$1" +commit_message=$(cat "$commit_message_file") + +RED='\033[0;31m' # Red color code +GREEN='\033[0;32m' # Green color code +NC='\033[0m' # No color code + +# Check if commit message has any of the specified prefixes +if echo "$commit_message" | grep -qE '^(feat:|fix:|chore:|docs:|refactor:|style:|test:|chore:|perf:|ci:|revert:|lang:)'; then + printf "${GREEN}Commit message has a valid prefix.${NC}\n" + exit 0 # Exit with success status +else + printf "${RED}Commit message does not have any of the specified prefixes.${NC}\n" + printf "${RED}Allowed prefixes: \"feat:\" \"fix:\" \"chore:\" \"docs:\" \"refactor:\" \"style:\" \"test:\" \"chore:\" \"perf:\" \"ci:\" \"revert:\" \"lang:\"${NC}\n" + exit 1 # Exit with failure status +fi \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..599e296 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +npm run code:lint \ No newline at end of file diff --git a/.tools/eslint/.eslintrc.cjs b/.tools/eslint/.eslintrc.cjs new file mode 100644 index 0000000..6c2c8d9 --- /dev/null +++ b/.tools/eslint/.eslintrc.cjs @@ -0,0 +1,37 @@ +module.exports = { + root: true, + env: { + node: true, + }, + plugins: ['@html-eslint'], + extends: [ + 'eslint:recommended', + ], + overrides: [ + { + files: ["*.html"], + parser: "@html-eslint/parser", + extends: ["plugin:@html-eslint/recommended"], + rules: { + '@html-eslint/require-title': 0, + '@html-eslint/require-lang': 0, + } + }, + ], + parserOptions: { + ecmaVersion: 2020, + sourceType:'module' + }, + rules: { + 'no-console': ['error', { allow: ['warn', 'error', 'info'] }], + 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + semi: ['error', 'always'], + quotes: ['error', 'single'], + 'consistent-return': 0, + indent: ['error', 4], // space indentation + 'no-else-return': 1, + 'no-undef': 0, + 'max-len': ['error', { code: 120 }], + }, + ignorePatterns: ['cache/**/*', 'data/**/*', 'modules/**/*', 'node_modules/**/*', '*.css', 'resources/chat/**/*'] +}; \ No newline at end of file diff --git a/.tools/jest/database.setup.js b/.tools/jest/database.setup.js new file mode 100644 index 0000000..076abb7 --- /dev/null +++ b/.tools/jest/database.setup.js @@ -0,0 +1,5 @@ +import database from '../../resources/roleplay/server/_db/index.js'; + +(async() => { + await database.init(); +})(); \ No newline at end of file diff --git a/.tools/jest/jest.setup.js b/.tools/jest/jest.setup.js new file mode 100644 index 0000000..925e865 --- /dev/null +++ b/.tools/jest/jest.setup.js @@ -0,0 +1,3 @@ +import dotenv from 'dotenv'; +dotenv.config({ path: '../../.env.test' }); + diff --git a/.tools/stylelint/.stylelintignore b/.tools/stylelint/.stylelintignore new file mode 100644 index 0000000..9fae93b --- /dev/null +++ b/.tools/stylelint/.stylelintignore @@ -0,0 +1,12 @@ +*.js +*.css +*.css.* +*.png +*.svg +*.jpg +*.jpeg +*.gif +*.ico +*.json +*.md +*.ttf \ No newline at end of file diff --git a/.tools/stylelint/stylelintrc.json b/.tools/stylelint/stylelintrc.json new file mode 100644 index 0000000..0644737 --- /dev/null +++ b/.tools/stylelint/stylelintrc.json @@ -0,0 +1,21 @@ +{ + "extends": ["stylelint-config-standard"], + "overrides": [ + { + "files": ["*.scss", "**/*.scss"], + "extends": ["stylelint-config-standard-scss"] + } + ], + "rules": { + "at-rule-no-unknown": null, + "scss/at-rule-no-unknown": true, + "import-notation": null, + "at-rule-empty-line-before": null, + "alpha-value-notation": null, + "scss/at-import-partial-extension": null, + "no-empty-source": null, + "selector-class-pattern": null, + "declaration-block-single-line-max-declarations": null + }, + "ignoreFiles": ["node_modules/**/*"] + } \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..7641776 --- /dev/null +++ b/README.md @@ -0,0 +1,93 @@ +# Nightlife Alt-V + +<details> + <summary style="font-size: 2rem; font-weight: 700">Installation</summary> + +## 1. Clone this repository +`git clone https://github.com/Nightlife-AltV/nightlife.git` + +## 2. Install Alt-V Default Server +See [Install Stable Version](#install-stable-version) + +## 3. Create .env file +- Duplicate the `.env.example` file and rename it to `.env` +- Fill in the required information + +## 4. Install all dependencies +`npm install` + +## 5. Start mysql (Docker) +`npm run start:mysql` + +## 6. Start the server +`npm run start:dev` + +## 7. Start coding + +</details> + +<details> + <summary style="font-size: 2rem; font-weight: 700">Get easily an error id</summary> + +Just open https://playcode.io/1667549 and copy the nmber that is generated each 2 seconds +</details> + +<details> + <summary style="font-size: 2rem; font-weight: 700">Sample server.toml</summary> + +```toml +name = 'NightLife-City' +port = 7788 +players = 128 +# password = 'ultra-password' +announce = false +token = '' +gamemode = 'Freeroam' +website = 'example.com' +language = 'en' +description = 'NightLife-City' +modules = ['js-bytecode-module', 'js-module'] +resources = ['chat', 'roleplay'] +debug = true +``` +</details> + +<details id="install-stable-version"> +<summary style="font-size: 2rem; font-weight: 700">Install Stable Version</summary> + +## Installation + +1. Clone this repository `git clone https://github.com/Ghoster599/nightlife.git` +2. Install Alt-V Default Server +![Alt-V Installation](.github/docs/altv-installation.png) +3. Move all folder and files from the downloaded server to the root folder of the GitHub repository + +</details> + +<details> + <summary style="font-size: 2rem; font-weight: 700">Install Development Version</summary> + +## Install Dev Version + +1. Delete Following Folders and Files: + - cache + - data + - modules + - AltV.Net.Host.runtimeconfig.json + - altv-crash-handler.exe + - server.log + +2. Install Alt-V Dev Server + + ![Alt-V Installation](.github/docs/altv-installation-dev.png) + +3. Move all folder and files from the downloaded server to the root folder of the GitHub repository <strong>(Not the Server.toml)</strong> +</details> + +<details> + <summary style="font-size: 2rem; font-weight: 700">Minify images</summary> + +## Minify Images +Go To https://tinyjpg.com/ and minify all your new images +</details> + diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..609f4e0 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,43 @@ +version: '3.9' + +volumes: + nightlife_mysql: + nightlife_test_mysql: + +services: + mysql8: + image: mysql:8.2 + environment: + - MYSQL_ROOT_PASSWORD=nightlife + - MYSQL_DATABASE=nightlife + env_file: + - ./.env + volumes: + - nightlife_mysql:/var/lib/mysql + ports: + - '3310:3306' + restart: unless-stopped + stdin_open: true + command: + ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci', '--default-authentication-plugin=mysql_native_password'] + healthcheck: + test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost'] + timeout: 5s + retries: 10 + + mysql8-test: + image: mysql:8.2 + environment: + - MYSQL_ROOT_PASSWORD=nightlife + - MYSQL_DATABASE=nightlife_test + env_file: + - ./.env.test + volumes: + - nightlife_test_mysql:/var/lib/mysql + ports: + - '3311:3306' + restart: unless-stopped + stdin_open: true + command: + ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci', '--default-authentication-plugin=mysql_native_password'] + \ No newline at end of file diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..60e59b5 --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "baseUrl": "./", + "module": "CommonJS", + "paths": { + "~client/*": ["./resources/roleplay/client/*"], + "~server/*": ["./resources/roleplay/server/*"], + "~shared/*": ["./resources/roleplay/shared/*"], + "~assets/*": ["./resources/roleplay/client/assets/*"], + } + }, + "exclude": ["node_modules"] +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..9c143d5 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,6354 @@ +{ + "name": "nightlife", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "nightlife", + "version": "1.0.0", + "hasInstallScript": true, + "license": "GPL-3.0", + "dependencies": { + "@sentry/node": "^7.74.1", + "axios": "^1.6.1", + "bcryptjs": "^2.4.3", + "bootstrap": "^5.3.2", + "dotenv": "^16.3.1", + "link-module-alias": "^1.2.0", + "mariadb": "^3.2.2", + "mysql2": "^3.6.2", + "sass": "^1.69.4", + "sequelize": "^6.33.0" + }, + "devDependencies": { + "@altv/types-client": "^15.0.7", + "@altv/types-natives": "^15.0.7", + "@altv/types-server": "^15.0.7", + "@altv/types-shared": "^15.0.7", + "@altv/types-webview": "^15.0.7", + "@html-eslint/eslint-plugin": "^0.22.0", + "@html-eslint/parser": "^0.22.0", + "eslint": "^8.51.0", + "husky": "^8.0.3", + "jest": "^29.7.0", + "stylelint": "^15.11.0", + "stylelint-config-standard": "^34.0.0", + "stylelint-config-standard-scss": "^11.0.0", + "stylelint-scss": "^5.2.1" + }, + "engines": { + "node": ">=20.9.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/@altv/types-client": { + "version": "15.0.16", + "resolved": "https://registry.npmjs.org/@altv/types-client/-/types-client-15.0.16.tgz", + "integrity": "sha512-KPSEbIL7Sgm0Dz1SW6aeN6CfvJ027AtDyCzXwaO6jKmYJi3zbB0Epsn6MM9C/4QeVOF3PZY2lFx9kiH8DL10Gg==", + "dev": true, + "peerDependencies": { + "@altv/types-shared": "^15.0.0", + "@altv/types-worker": "^15.0.0" + } + }, + "node_modules/@altv/types-natives": { + "version": "15.0.13", + "resolved": "https://registry.npmjs.org/@altv/types-natives/-/types-natives-15.0.13.tgz", + "integrity": "sha512-OsAvVbTpxXLlbrwAoLDbOjr5ba/gFZKt29/ES9BcolYGk/E7nxye8gOFh8CeI9LT9KhXZ/e2o5YDZFYh3feFbg==", + "dev": true, + "peerDependencies": { + "@altv/types-client": "^15.0.0" + } + }, + "node_modules/@altv/types-server": { + "version": "15.0.11", + "resolved": "https://registry.npmjs.org/@altv/types-server/-/types-server-15.0.11.tgz", + "integrity": "sha512-qcHXmEFbLeXCkVtO0+qLVAngCdsLLRpforumszGG9yAGuYuqcG+w9zEXESO+YxS7mppNrMHBdQw65NujkGw8zA==", + "dev": true, + "peerDependencies": { + "@altv/types-shared": "^15.0.0" + } + }, + "node_modules/@altv/types-shared": { + "version": "15.0.9", + "resolved": "https://registry.npmjs.org/@altv/types-shared/-/types-shared-15.0.9.tgz", + "integrity": "sha512-D2KCkJvLD+tE5/3UkKW2yJY7qjzJ3hCzfw9NWOY2VWRaFb1g8rX6hUVbdY+C/hCuaBsDc4wvuAsg76ZNP0HGhQ==", + "dev": true + }, + "node_modules/@altv/types-webview": { + "version": "15.0.8", + "resolved": "https://registry.npmjs.org/@altv/types-webview/-/types-webview-15.0.8.tgz", + "integrity": "sha512-doJWJNZKJZvwdte3l1KvPLcXkmL8QKixgbwjDabldEWZyhixk2rrPcfwaXvOUK3OYU2e6I831azZeGslZKoMUw==", + "dev": true + }, + "node_modules/@altv/types-worker": { + "version": "15.0.8", + "resolved": "https://registry.npmjs.org/@altv/types-worker/-/types-worker-15.0.8.tgz", + "integrity": "sha512-9QT6tWRnheJwarRfFCfZK4BRe4n6vwH3pHDknugnr05DdSUG2oeoxGeUx6T/it2dBwyqSSYca1chlc7h/eMw4g==", + "dev": true, + "peer": true, + "peerDependencies": { + "@altv/types-client": "^15.0.0" + } + }, + "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/code-frame/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/@babel/code-frame/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/@babel/code-frame/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/@babel/code-frame/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/@babel/code-frame/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/@babel/code-frame/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/@babel/code-frame/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/@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.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.5.tgz", + "integrity": "sha512-Cwc2XjUrG4ilcfOw4wBAK+enbdgwAcAJCfGUItPBKR7Mjw4aEfAFYrLxeRp4jWgtNIKn3n2AlBOfwwafl+42/g==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.5", + "@babel/helper-compilation-targets": "^7.22.15", + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helpers": "^7.23.5", + "@babel/parser": "^7.23.5", + "@babel/template": "^7.22.15", + "@babel/traverse": "^7.23.5", + "@babel/types": "^7.23.5", + "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.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.5.tgz", + "integrity": "sha512-BPssCHrBD+0YrxviOa3QzpqwhNIXKEtOa2jQrm4FlmkC2apYgRnQcmPWiGZDlGxiNtltnUFolMe8497Esry+jA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.23.5", + "@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.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz", + "integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.22.9", + "@babel/helper-validator-option": "^7.22.15", + "browserslist": "^4.21.9", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets/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/@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-compilation-targets/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/@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.5", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.5.tgz", + "integrity": "sha512-oO7us8FzTEsG3U6ag9MfdF1iA/7Z6dz+MtFhifZk8C8o453rGJFFWUP1t+ULM9TUIAzC9uxXEiXjOiVMyd7QPg==", + "dev": true, + "dependencies": { + "@babel/template": "^7.22.15", + "@babel/traverse": "^7.23.5", + "@babel/types": "^7.23.5" + }, + "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/highlight/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/@babel/highlight/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/@babel/highlight/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/@babel/highlight/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/@babel/highlight/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/@babel/highlight/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/@babel/highlight/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/@babel/parser": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.5.tgz", + "integrity": "sha512-hOOqoiNXrmGdFbhgCzu6GiURxUgM27Xwd/aPuu8RfHEZPBzL1Z54okAHAQjXfcQNwvrlkAmAp4SlRTZ45vlthQ==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz", + "integrity": "sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==", + "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-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.23.3.tgz", + "integrity": "sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==", + "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.22.15", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", + "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.5.tgz", + "integrity": "sha512-czx7Xy5a6sapWWRx61m1Ke1Ra4vczu1mCTtJam5zRTBOonfdJ+S/B6HYmGYu3fJtr8GGET3si6IhgWVBhJ/m8w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.5", + "@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.5", + "@babel/types": "^7.23.5", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse/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/@babel/types": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.5.tgz", + "integrity": "sha512-ON5kSOJwVO6xXVRTvOI0eOnWe7VdUcIpsovGo9U/Br4Ie4UVFQTboO2cYnDhAGU6Fp+UxSiT+pMft0SMHfuq6w==", + "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/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@csstools/css-parser-algorithms": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-2.3.2.tgz", + "integrity": "sha512-sLYGdAdEY2x7TSw9FtmdaTrh2wFtRJO5VMbBrA8tEqEod7GEggFmxTSK9XqExib3yMuYNcvcTdCZIP6ukdjAIA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "engines": { + "node": "^14 || ^16 || >=18" + }, + "peerDependencies": { + "@csstools/css-tokenizer": "^2.2.1" + } + }, + "node_modules/@csstools/css-tokenizer": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-2.2.1.tgz", + "integrity": "sha512-Zmsf2f/CaEPWEVgw29odOj+WEVoiJy9s9NOv5GgNY9mZ1CZ7394By6wONrONrTsnNDv6F9hR02nvFihrGVGHBg==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "engines": { + "node": "^14 || ^16 || >=18" + } + }, + "node_modules/@csstools/media-query-list-parser": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@csstools/media-query-list-parser/-/media-query-list-parser-2.1.5.tgz", + "integrity": "sha512-IxVBdYzR8pYe89JiyXQuYk4aVVoCPhMJkz6ElRwlVysjwURTsTk/bmY/z4FfeRE+CRBMlykPwXEVUg8lThv7AQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "engines": { + "node": "^14 || ^16 || >=18" + }, + "peerDependencies": { + "@csstools/css-parser-algorithms": "^2.3.2", + "@csstools/css-tokenizer": "^2.2.1" + } + }, + "node_modules/@csstools/selector-specificity": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-3.0.0.tgz", + "integrity": "sha512-hBI9tfBtuPIi885ZsZ32IMEU/5nlZH/KOVYJCOh7gyMxaVLGmLedYqFN6Ui1LXkI8JlC8IsuC0rF0btcRZKd5g==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "engines": { + "node": "^14 || ^16 || >=18" + }, + "peerDependencies": { + "postcss-selector-parser": "^6.0.13" + } + }, + "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.9.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.9.1.tgz", + "integrity": "sha512-Y27x+MBLjXa+0JWDhykM3+JE+il3kHKAEqabfEWq3SDhZjLYb6/BHL/JKFnH3fe207JaXkyDo685Oc2Glt6ifA==", + "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/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/@html-eslint/eslint-plugin": { + "version": "0.22.0", + "resolved": "https://registry.npmjs.org/@html-eslint/eslint-plugin/-/eslint-plugin-0.22.0.tgz", + "integrity": "sha512-6Q3uW5XeVmUGwH2t5lmt0q51x7dNiaV1GuYReuHOPn01tSn9vJ5OKs71t+OsQzhg+hUqpVrmBizkBJZkcpX/sA==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@html-eslint/parser": { + "version": "0.22.0", + "resolved": "https://registry.npmjs.org/@html-eslint/parser/-/parser-0.22.0.tgz", + "integrity": "sha512-1XNYNgysZJfpLEYx+ao4I67F5+8gQDQbBt38/Ylcn5L8ij5xHfRDWvOIBvejqEgNQRRzM5s7UOhPSj+02YtMsQ==", + "dev": true, + "dependencies": { + "es-html-parser": "^0.0.9" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.13", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz", + "integrity": "sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz", + "integrity": "sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==", + "dev": true + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/core": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/environment": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "dev": true, + "dependencies": { + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", + "dev": true, + "dependencies": { + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", + "dev": true, + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/@jest/transform/node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@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.20", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", + "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", + "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/@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", + "peer": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/@sentry-internal/tracing": { + "version": "7.91.0", + "resolved": "https://registry.npmjs.org/@sentry-internal/tracing/-/tracing-7.91.0.tgz", + "integrity": "sha512-JH5y6gs6BS0its7WF2DhySu7nkhPDfZcdpAXldxzIlJpqFkuwQKLU5nkYJpiIyZz1NHYYtW5aum2bV2oCOdDRA==", + "dependencies": { + "@sentry/core": "7.91.0", + "@sentry/types": "7.91.0", + "@sentry/utils": "7.91.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@sentry/core": { + "version": "7.91.0", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.91.0.tgz", + "integrity": "sha512-tu+gYq4JrTdrR+YSh5IVHF0fJi/Pi9y0HZ5H9HnYy+UMcXIotxf6hIEaC6ZKGeLWkGXffz2gKpQLe/g6vy/lPA==", + "dependencies": { + "@sentry/types": "7.91.0", + "@sentry/utils": "7.91.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@sentry/node": { + "version": "7.91.0", + "resolved": "https://registry.npmjs.org/@sentry/node/-/node-7.91.0.tgz", + "integrity": "sha512-hTIfSQxD7L+AKIqyjoq8CWBRkEQrrMZmA3GSZgPI5JFWBHgO0HBo5TH/8TU81oEJh6kqqHAl2ObMhmcnaFqlzg==", + "dependencies": { + "@sentry-internal/tracing": "7.91.0", + "@sentry/core": "7.91.0", + "@sentry/types": "7.91.0", + "@sentry/utils": "7.91.0", + "https-proxy-agent": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@sentry/types": { + "version": "7.91.0", + "resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.91.0.tgz", + "integrity": "sha512-bcQnb7J3P3equbCUc+sPuHog2Y47yGD2sCkzmnZBjvBT0Z1B4f36fI/5WjyZhTjLSiOdg3F2otwvikbMjmBDew==", + "engines": { + "node": ">=8" + } + }, + "node_modules/@sentry/utils": { + "version": "7.91.0", + "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.91.0.tgz", + "integrity": "sha512-fvxjrEbk6T6Otu++Ax9ntlQ0sGRiwSC179w68aC3u26Wr30FAIRKqHTCCdc2jyWk7Gd9uWRT/cq+g8NG/8BfSg==", + "dependencies": { + "@sentry/types": "7.91.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.0.tgz", + "integrity": "sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^3.0.0" + } + }, + "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.7", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.7.tgz", + "integrity": "sha512-6Sfsq+EaaLrw4RmdFWE9Onp63TOUue71AWb4Gpa6JxzgTYtimbM086WnYTy2U67AofR++QKCo08ZP6pwx8YFHQ==", + "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.4", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.4.tgz", + "integrity": "sha512-mSM/iKUk5fDDrEV/e83qY+Cr3I1+Q3qqTuEn++HAWYjEa1+NxZr6CNrcJGf2ZTnq4HoFGC3zaTPZTobCzCFukA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/debug": { + "version": "4.1.10", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.10.tgz", + "integrity": "sha512-tOSCru6s732pofZ+sMv9o4o3Zc+Sa8l3bxd/tweTQudFn06vAzb13ZX46Zi6m6EJ+RUbRTHvgQJ1gBtSgkaUYA==", + "dependencies": { + "@types/ms": "*" + } + }, + "node_modules/@types/geojson": { + "version": "7946.0.13", + "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.13.tgz", + "integrity": "sha512-bmrNrgKMOhM3WsafmbGmC+6dsF2Z308vLFsQ3a/bT8X8Sv5clVYpPars/UPq+sAaJP+5OoLAYgwbkS5QEJdLUQ==" + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/minimist": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.4.tgz", + "integrity": "sha512-Kfe/D3hxHTusnPNRbycJE1N77WHDsdS4AjUYIzlDzhDrS47NrwuL3YW4VITxwR7KCVpzwgy4Rbj829KSSQmwXQ==", + "dev": true + }, + "node_modules/@types/ms": { + "version": "0.7.33", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.33.tgz", + "integrity": "sha512-AuHIyzR5Hea7ij0P9q7vx7xu4z0C28ucwjAZC0ja7JhINyCnOw8/DnvAPQQ9TfOlCtZAmCERKQX9+o1mgQhuOQ==" + }, + "node_modules/@types/node": { + "version": "20.8.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.7.tgz", + "integrity": "sha512-21TKHHh3eUHIi2MloeptJWALuCu5H7HQTdTrWIFReA8ad+aggoX+lRes3ex7/FtpC+sVUpFMQ+QTfYr74mruiQ==", + "dependencies": { + "undici-types": "~5.25.1" + } + }, + "node_modules/@types/normalize-package-data": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.3.tgz", + "integrity": "sha512-ehPtgRgaULsFG8x0NeYJvmyH1hmlfsNLujHe9dQEia/7MAJYdzMSi19JtchUHjmBA6XC/75dK55mzZH+RyieSg==", + "dev": true + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true + }, + "node_modules/@types/validator": { + "version": "13.11.3", + "resolved": "https://registry.npmjs.org/@types/validator/-/validator-13.11.3.tgz", + "integrity": "sha512-jxjhh33aTYDHnrV1vZ3AvWQHfrGx2f5UxKjaP13l5q04fG+/hCKKm0MfodIoCqxevhbcfBb6ZjynyHuQ/jueGQ==" + }, + "node_modules/@types/yargs": { + "version": "17.0.32", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", + "integrity": "sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true + }, + "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/acorn": { + "version": "8.11.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz", + "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==", + "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/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.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-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-escapes/node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-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": "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/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/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/arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/axios": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.3.tgz", + "integrity": "sha512-fWyNdeawGam70jXSVlKl+SUNVcL6j6W79CuSIPfi6HnDUmSCH6gyUys/HrqHeA/wU0Az41rRgean494d0Jb+ww==", + "dependencies": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/babel-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", + "dev": true, + "dependencies": { + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/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-plugin-jest-hoist": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", + "dev": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", + "dev": true, + "dependencies": { + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.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/bcryptjs": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-2.4.3.tgz", + "integrity": "sha512-V/Hy/X9Vt7f3BbPJEi8BdVFMByHi+jNXrYkW3huaybV/kQ0KJg0Y6PkEMbn+zeT+i+SiKZ/HMqJGIIt4LZDqNQ==" + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/bootstrap": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.2.tgz", + "integrity": "sha512-D32nmNWiQHo94BKHLmOrdjlL05q1c8oxbtBphQFb9Z5to6eGRDCm0QgeaZ4zFBHzfg2++rqa2JkqCcxDy0sH0g==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/twbs" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/bootstrap" + } + ], + "peerDependencies": { + "@popperjs/core": "^2.11.8" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.22.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz", + "integrity": "sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==", + "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.30001541", + "electron-to-chromium": "^1.4.535", + "node-releases": "^2.0.13", + "update-browserslist-db": "^1.0.13" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "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": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/camelcase-keys": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-7.0.2.tgz", + "integrity": "sha512-Rjs1H+A9R+Ig+4E/9oyB66UC5Mj9Xq3N//vcLf2WzgdTi/3gUu3Z9KoqmlrEG4VuuLK8wJHofxzdQXz/knhiYg==", + "dev": true, + "dependencies": { + "camelcase": "^6.3.0", + "map-obj": "^4.1.0", + "quick-lru": "^5.1.1", + "type-fest": "^1.2.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/camelcase-keys/node_modules/type-fest": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz", + "integrity": "sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001565", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001565.tgz", + "integrity": "sha512-xrE//a3O7TP0vaJ8ikzkD2c2NgcVUvsEe2IvFTntV4Yd1Z9FVzh+gW+enX96L0psrbaFMcVcH2l90xNuGDWc8w==", + "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": "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/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz", + "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==", + "dev": true + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "dev": true + }, + "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/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/colord": { + "version": "2.9.3", + "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz", + "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==", + "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/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/cosmiconfig": { + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz", + "integrity": "sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==", + "dev": true, + "dependencies": { + "import-fresh": "^3.3.0", + "js-yaml": "^4.1.0", + "parse-json": "^5.2.0", + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/d-fischer" + }, + "peerDependencies": { + "typescript": ">=4.9.5" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/create-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + }, + "bin": { + "create-jest": "bin/create-jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "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/css-functions-list": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/css-functions-list/-/css-functions-list-3.2.1.tgz", + "integrity": "sha512-Nj5YcaGgBtuUmn1D7oHqPW0c9iui7xsTsj5lIX8ZgevdfhmjFfKB3r8moHJtNJnctnYXJyYX5I1pp90HM4TPgQ==", + "dev": true, + "engines": { + "node": ">=12 || >=16" + } + }, + "node_modules/css-tree": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz", + "integrity": "sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==", + "dev": true, + "dependencies": { + "mdn-data": "2.0.30", + "source-map-js": "^1.0.1" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" + } + }, + "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/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decamelize": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-5.0.1.tgz", + "integrity": "sha512-VfxadyCECXgQlkoEAjeghAr5gY3Hf+IKjKb+X8tGVDtveCjN+USwprd2q3QXBR9T1+x2DG0XZF5/w+7HAtSaXA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/decamelize-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.1.tgz", + "integrity": "sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==", + "dev": true, + "dependencies": { + "decamelize": "^1.1.0", + "map-obj": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/decamelize-keys/node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decamelize-keys/node_modules/map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/dedent": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.1.tgz", + "integrity": "sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg==", + "dev": true, + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "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/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "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/denque": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz", + "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/diff-sequences": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "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/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/dotenv": { + "version": "16.3.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", + "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/motdotla/dotenv?sponsor=1" + } + }, + "node_modules/dottie": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/dottie/-/dottie-2.0.6.tgz", + "integrity": "sha512-iGCHkfUc5kFekGiqhe8B/mdaurD+lakO9txNnTvKtA6PISrw86LgqHvRzWYPyoE2Ph5aMIrCw9/uko6XHTKCwA==" + }, + "node_modules/electron-to-chromium": { + "version": "1.4.596", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.596.tgz", + "integrity": "sha512-zW3zbZ40Icb2BCWjm47nxwcFGYlIgdXkAx85XDO7cyky9J4QQfq8t0W19/TLZqq3JPQXtlv8BPIGmfa9Jb4scg==", + "dev": true + }, + "node_modules/emittery": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "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/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-html-parser": { + "version": "0.0.9", + "resolved": "https://registry.npmjs.org/es-html-parser/-/es-html-parser-0.0.9.tgz", + "integrity": "sha512-oniQMi+466VFsDzcdron9Ry/sqUJpDJg1bbDn0jFJKDdxXhwIOYDr4DgBnO5/yPLGj2xv+n5yy4L1Q0vAC5TYQ==", + "dev": true + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "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": { + "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-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/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/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/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "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/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/execa/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", + "dev": true, + "dependencies": { + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.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.1", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", + "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", + "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-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/fastest-levenshtein": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", + "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", + "dev": true, + "engines": { + "node": ">= 4.9.1" + } + }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "dependencies": { + "bser": "2.1.1" + } + }, + "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==", + "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.1.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.1.tgz", + "integrity": "sha512-/qM2b3LUIaIgviBQovTLvijfyOQXPtSRnRK26ksj2J7rzPIecePUIpJsZ4T02Qg+xiAEKIs5K8dsHEd+VaKa/Q==", + "dev": true, + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": ">=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.3", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz", + "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "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/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==", + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/generate-function": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.3.1.tgz", + "integrity": "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==", + "dependencies": { + "is-property": "^1.0.2" + } + }, + "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/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/global-modules": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", + "integrity": "sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==", + "dev": true, + "dependencies": { + "global-prefix": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/global-prefix": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz", + "integrity": "sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==", + "dev": true, + "dependencies": { + "ini": "^1.3.5", + "kind-of": "^6.0.2", + "which": "^1.3.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/global-prefix/node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/globals": { + "version": "13.23.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.23.0.tgz", + "integrity": "sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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/globjoin": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/globjoin/-/globjoin-0.1.4.tgz", + "integrity": "sha512-xYfnw62CKG8nLkZBfWbhWwDw02CHty86jfPcc2cr3ZfeuK9ysoVPPEUxf21bAD/rWAgk52SuBrLJlefNy8mvFg==", + "dev": true + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "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/hard-rejection": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", + "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/has": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.4.tgz", + "integrity": "sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ==", + "dev": true, + "engines": { + "node": ">= 0.4.0" + } + }, + "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/hosted-git-info": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", + "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/hosted-git-info/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/html-tags": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/html-tags/-/html-tags-3.3.1.tgz", + "integrity": "sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/husky": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", + "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "dev": true, + "bin": { + "husky": "lib/bin.js" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ignore": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/immutable": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.4.tgz", + "integrity": "sha512-fsXeu4J4i6WNWSikpI88v/PcVflZz+6kMhUfIwc5SY+poQRPnaf5V7qds6SUyUN3cVxEzuCab7QIoLOQ+DQ1wA==" + }, + "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/import-lazy": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-4.0.0.tgz", + "integrity": "sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "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/indent-string": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz", + "integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/inflection": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/inflection/-/inflection-1.13.4.tgz", + "integrity": "sha512-6I/HUDeYFfuNCVS3td055BaXBwKYuzw7K3ExVMStBowKo9oOAMJIXIHvdyR3iboTCp1b+1i5DSkIZTcwIktuDw==", + "engines": [ + "node >= 0.4.0" + ] + }, + "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==", + "dev": true + }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "dev": true + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-core-module": { + "version": "2.13.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", + "integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + }, + "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==", + "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-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-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/is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-plain-object": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", + "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-property": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz", + "integrity": "sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g==" + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.1.tgz", + "integrity": "sha512-EAMEJBsYuyyztxMxW3g7ugGPkrZsV57v0Hmv3mm1uQsmB+QnZuepg731CRaIgeUVSdmsTngOkSnauNF8p7FIhA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz", + "integrity": "sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==", + "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", + "dev": true, + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", + "import-local": "^3.0.2", + "jest-cli": "^29.7.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", + "dev": true, + "dependencies": { + "execa": "^5.0.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-cli": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", + "dev": true, + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "create-jest": "^29.7.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-config": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-diff": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-docblock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", + "dev": true, + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-environment-node": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-mock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", + "dev": true, + "dependencies": { + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-watcher": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "dev": true, + "dependencies": { + "@types/node": "*", + "jest-util": "^29.7.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "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==", + "dev": true + }, + "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-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "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/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/known-css-properties": { + "version": "0.29.0", + "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.29.0.tgz", + "integrity": "sha512-Ne7wqW7/9Cz54PDt4I3tcV+hAyat8ypyOGzYRJQfdxnnjeWsTxt1cy8pjvvKeI5kfXuyvULyeeAvwvvtAX3ayQ==", + "dev": true + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "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/link-module-alias": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/link-module-alias/-/link-module-alias-1.2.0.tgz", + "integrity": "sha512-ahPjXepbSVKbahTB6LxR//VHm8HPfI+QQygCH+E82spBY4HR5VPJTvlhKBc9F7muVxnS6C1rRfoPOXAbWO/fyw==", + "dependencies": { + "chalk": "^2.4.1" + }, + "bin": { + "link-module-alias": "index.js" + }, + "engines": { + "node": "> 8.0.0" + } + }, + "node_modules/link-module-alias/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/link-module-alias/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/link-module-alias/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/link-module-alias/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/link-module-alias/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/link-module-alias/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/link-module-alias/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/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": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "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/lodash.truncate": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", + "integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==", + "dev": true + }, + "node_modules/long": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" + }, + "node_modules/lru-cache": { + "version": "8.0.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-8.0.5.tgz", + "integrity": "sha512-MhWWlVnuab1RG5/zMRRcVGXZLCXrZTgfwMikgzCegsPnG62yDQo5JnqKkrK4jO5iKqDAZGItAqN5CtKBCBWRUA==", + "engines": { + "node": ">=16.14" + } + }, + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/map-obj": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", + "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mariadb": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/mariadb/-/mariadb-3.2.3.tgz", + "integrity": "sha512-Hyc1ehdUJwzvvzcLU2juZS528wJ6oE8pUlpgY0BAOdpKWcdN1motuugi5lC3jkpCkFpyNknHG7Yg66KASl3aPg==", + "dependencies": { + "@types/geojson": "^7946.0.10", + "@types/node": "^17.0.45", + "denque": "^2.1.0", + "iconv-lite": "^0.6.3", + "lru-cache": "^10.0.1" + }, + "engines": { + "node": ">= 12" + } + }, + "node_modules/mariadb/node_modules/@types/node": { + "version": "17.0.45", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz", + "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==" + }, + "node_modules/mariadb/node_modules/lru-cache": { + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.0.2.tgz", + "integrity": "sha512-Yj9mA8fPiVgOUpByoTZO5pNrcl5Yk37FcSHsUINpAsaBIEZIuqcCclDZJCVxqQShDsmYX8QG63svJiTbOATZwg==", + "dependencies": { + "semver": "^7.3.5" + }, + "engines": { + "node": "14 || >=16.14" + } + }, + "node_modules/mathml-tag-names": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/mathml-tag-names/-/mathml-tag-names-2.1.3.tgz", + "integrity": "sha512-APMBEanjybaPzUrfqU0IMU5I0AswKMH7k8OTLs0vvV4KZpExkTkY87nR/zpbuTPj+gARop7aGUbl11pnDfW6xg==", + "dev": true, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/mdn-data": { + "version": "2.0.30", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz", + "integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==", + "dev": true + }, + "node_modules/meow": { + "version": "10.1.5", + "resolved": "https://registry.npmjs.org/meow/-/meow-10.1.5.tgz", + "integrity": "sha512-/d+PQ4GKmGvM9Bee/DPa8z3mXs/pkvJE2KEThngVNOqtmljC6K7NMPxtc2JeZYTmpWb9k/TmxjeL18ez3h7vCw==", + "dev": true, + "dependencies": { + "@types/minimist": "^1.2.2", + "camelcase-keys": "^7.0.0", + "decamelize": "^5.0.0", + "decamelize-keys": "^1.1.0", + "hard-rejection": "^2.1.0", + "minimist-options": "4.1.0", + "normalize-package-data": "^3.0.2", + "read-pkg-up": "^8.0.0", + "redent": "^4.0.0", + "trim-newlines": "^4.0.2", + "type-fest": "^1.2.2", + "yargs-parser": "^20.2.9" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/meow/node_modules/type-fest": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz", + "integrity": "sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "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/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/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/minimist-options": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", + "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", + "dev": true, + "dependencies": { + "arrify": "^1.0.1", + "is-plain-obj": "^1.1.0", + "kind-of": "^6.0.3" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/moment": { + "version": "2.29.4", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", + "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", + "engines": { + "node": "*" + } + }, + "node_modules/moment-timezone": { + "version": "0.5.43", + "resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.43.tgz", + "integrity": "sha512-72j3aNyuIsDxdF1i7CEgV2FfxM1r6aaqJyLB2vwb33mXYyoyLly+F1zbWqhA3/bVIoJ4szlUoMbUnVdid32NUQ==", + "dependencies": { + "moment": "^2.29.4" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/mysql2": { + "version": "3.6.5", + "resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.6.5.tgz", + "integrity": "sha512-pS/KqIb0xlXmtmqEuTvBXTmLoQ5LmAz5NW/r8UyQ1ldvnprNEj3P9GbmuQQ2J0A4LO+ynotGi6TbscPa8OUb+w==", + "dependencies": { + "denque": "^2.1.0", + "generate-function": "^2.3.1", + "iconv-lite": "^0.6.3", + "long": "^5.2.1", + "lru-cache": "^8.0.0", + "named-placeholders": "^1.1.3", + "seq-queue": "^0.0.5", + "sqlstring": "^2.3.2" + }, + "engines": { + "node": ">= 8.0" + } + }, + "node_modules/named-placeholders": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/named-placeholders/-/named-placeholders-1.1.3.tgz", + "integrity": "sha512-eLoBxg6wE/rZkJPhU/xRX1WTpkFEwDJEN96oxFrTsqBdbT5ec295Q+CoHrL9IT0DipqKhmGcaZmwOt8OON5x1w==", + "dependencies": { + "lru-cache": "^7.14.1" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/named-placeholders/node_modules/lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "engines": { + "node": ">=12" + } + }, + "node_modules/nanoid": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", + "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", + "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-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.13", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", + "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", + "dev": true + }, + "node_modules/normalize-package-data": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", + "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", + "dev": true, + "dependencies": { + "hosted-git-info": "^4.0.1", + "is-core-module": "^2.5.0", + "semver": "^7.3.4", + "validate-npm-package-license": "^3.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/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/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "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/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/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-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/pg-connection-string": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.6.2.tgz", + "integrity": "sha512-ch6OwaeaPYcova4kKZ15sbJ2hKb/VP48ZD2gE7i1J+L4MspCtBMAx8nMgz7bksc7IojCIIWuEhHibSMFH8m8oA==" + }, + "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==", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "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/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-dir/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/postcss": { + "version": "8.4.31", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", + "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", + "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.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-media-query-parser": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz", + "integrity": "sha512-3sOlxmbKcSHMjlUXQZKQ06jOswE7oVkXPxmZdoB1r5l0q6gTFTQSHxNxOrCccElbW7dxNytifNEo8qidX2Vsig==", + "dev": true + }, + "node_modules/postcss-resolve-nested-selector": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/postcss-resolve-nested-selector/-/postcss-resolve-nested-selector-0.1.1.tgz", + "integrity": "sha512-HvExULSwLqHLgUy1rl3ANIqCsvMS0WHss2UOsXhXnQaZ9VCc2oBvIpXrl00IUFT5ZDITME0o6oiXeiHr2SAIfw==", + "dev": true + }, + "node_modules/postcss-safe-parser": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-6.0.0.tgz", + "integrity": "sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==", + "dev": true, + "engines": { + "node": ">=12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.3.3" + } + }, + "node_modules/postcss-scss": { + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/postcss-scss/-/postcss-scss-4.0.9.tgz", + "integrity": "sha512-AjKOeiwAitL/MXxQW2DliT28EKukvvbEWx3LBmJIRN8KfBGZbRTxNYW0kSqi1COiTZ57nZ9NW06S6ux//N1c9A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss-scss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "engines": { + "node": ">=12.0" + }, + "peerDependencies": { + "postcss": "^8.4.29" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.0.13", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", + "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", + "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/pretty-format": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "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.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/pure-rand": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.0.4.tgz", + "integrity": "sha512-LA0Y9kxMYv47GIPJy6MI84fqTd2HmYZI83W/kM/SkKfDlajnZYfmXFTxkbY+xSBPkLJxltMa9hIkmdc29eguMA==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ] + }, + "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/quick-lru": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", + "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/read-pkg": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-6.0.0.tgz", + "integrity": "sha512-X1Fu3dPuk/8ZLsMhEj5f4wFAF0DWoK7qhGJvgaijocXxBmSToKfbFtqbxMO7bVjNA1dmE5huAzjXj/ey86iw9Q==", + "dev": true, + "dependencies": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^3.0.2", + "parse-json": "^5.2.0", + "type-fest": "^1.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-8.0.0.tgz", + "integrity": "sha512-snVCqPczksT0HS2EC+SxUndvSzn6LRCwpfSvLrIfR5BKDQQZMaI6jPRC9dYvYFDRAuFEAnkwww8kBBNE/3VvzQ==", + "dev": true, + "dependencies": { + "find-up": "^5.0.0", + "read-pkg": "^6.0.0", + "type-fest": "^1.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/type-fest": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz", + "integrity": "sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg/node_modules/type-fest": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz", + "integrity": "sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/redent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-4.0.0.tgz", + "integrity": "sha512-tYkDkVVtYkSVhuQ4zBgfvciymHaeuel+zFKXShfDnFP5SyVEP7qo70Rf1jTOTCx3vGNAbnEi/xFkcfQVMIBWag==", + "dev": true, + "dependencies": { + "indent-string": "^5.0.0", + "strip-indent": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "engines": { + "node": ">=0.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-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-cwd/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/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/resolve.exports": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", + "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/retry-as-promised": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/retry-as-promised/-/retry-as-promised-7.0.4.tgz", + "integrity": "sha512-XgmCoxKWkDofwH8WddD0w85ZfqYz+ZHlr5yo+3YUCfycWawU56T5ckWXsScsj5B8tqUcIG67DxXByo3VUgiAdA==" + }, + "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/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/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/sass": { + "version": "1.69.6", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.69.6.tgz", + "integrity": "sha512-qbRr3k9JGHWXCvZU77SD2OTwUlC+gNT+61JOLcmLm+XqH4h/5D+p4IIsxvpkB89S9AwJOyb5+rWNpIucaFxSFQ==", + "dependencies": { + "chokidar": ">=3.0.0 <4.0.0", + "immutable": "^4.0.0", + "source-map-js": ">=0.6.2 <2.0.0" + }, + "bin": { + "sass": "sass.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "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/seq-queue": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/seq-queue/-/seq-queue-0.0.5.tgz", + "integrity": "sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q==" + }, + "node_modules/sequelize": { + "version": "6.35.2", + "resolved": "https://registry.npmjs.org/sequelize/-/sequelize-6.35.2.tgz", + "integrity": "sha512-EdzLaw2kK4/aOnWQ7ed/qh3B6/g+1DvmeXr66RwbcqSm/+QRS9X0LDI5INBibsy4eNJHWIRPo3+QK0zL+IPBHg==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/sequelize" + } + ], + "dependencies": { + "@types/debug": "^4.1.8", + "@types/validator": "^13.7.17", + "debug": "^4.3.4", + "dottie": "^2.0.6", + "inflection": "^1.13.4", + "lodash": "^4.17.21", + "moment": "^2.29.4", + "moment-timezone": "^0.5.43", + "pg-connection-string": "^2.6.1", + "retry-as-promised": "^7.0.4", + "semver": "^7.5.4", + "sequelize-pool": "^7.1.0", + "toposort-class": "^1.0.1", + "uuid": "^8.3.2", + "validator": "^13.9.0", + "wkx": "^0.5.0" + }, + "engines": { + "node": ">=10.0.0" + }, + "peerDependenciesMeta": { + "ibm_db": { + "optional": true + }, + "mariadb": { + "optional": true + }, + "mysql2": { + "optional": true + }, + "oracledb": { + "optional": true + }, + "pg": { + "optional": true + }, + "pg-hstore": { + "optional": true + }, + "snowflake-sdk": { + "optional": true + }, + "sqlite3": { + "optional": true + }, + "tedious": { + "optional": true + } + } + }, + "node_modules/sequelize-pool": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/sequelize-pool/-/sequelize-pool-7.1.0.tgz", + "integrity": "sha512-G9c0qlIWQSK29pR/5U2JF5dDQeqqHRragoyahj/Nx4KOOQ3CPPfzxnfqFPCSB7x5UgjOgnZ61nSxz+fjDpRlJg==", + "engines": { + "node": ">= 10.0.0" + } + }, + "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/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "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": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/spdx-correct": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", + "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", + "dev": true, + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-exceptions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "dev": true + }, + "node_modules/spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dev": true, + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-license-ids": { + "version": "3.0.16", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.16.tgz", + "integrity": "sha512-eWN+LnM3GR6gPu35WxNgbGl8rmY1AEmoMDvL/QD6zYmPWgywxWqJWNdLGT+ke8dKNWrcYgYjPpG5gbTfghP8rw==", + "dev": true + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "node_modules/sqlstring": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.3.tgz", + "integrity": "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "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/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-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-indent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-4.0.0.tgz", + "integrity": "sha512-mnVSV2l+Zv6BLpSD/8V87CW/y9EmmbYzGCIavsnsI6/nwn26DwffM/yztm30Z/I2DY9wdS3vXVCMnHDgZaVNoA==", + "dev": true, + "dependencies": { + "min-indent": "^1.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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/style-search": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/style-search/-/style-search-0.1.0.tgz", + "integrity": "sha512-Dj1Okke1C3uKKwQcetra4jSuk0DqbzbYtXipzFlFMZtowbF1x7BKJwB9AayVMyFARvU8EDrZdcax4At/452cAg==", + "dev": true + }, + "node_modules/stylelint": { + "version": "15.11.0", + "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-15.11.0.tgz", + "integrity": "sha512-78O4c6IswZ9TzpcIiQJIN49K3qNoXTM8zEJzhaTE/xRTCZswaovSEVIa/uwbOltZrk16X4jAxjaOhzz/hTm1Kw==", + "dev": true, + "dependencies": { + "@csstools/css-parser-algorithms": "^2.3.1", + "@csstools/css-tokenizer": "^2.2.0", + "@csstools/media-query-list-parser": "^2.1.4", + "@csstools/selector-specificity": "^3.0.0", + "balanced-match": "^2.0.0", + "colord": "^2.9.3", + "cosmiconfig": "^8.2.0", + "css-functions-list": "^3.2.1", + "css-tree": "^2.3.1", + "debug": "^4.3.4", + "fast-glob": "^3.3.1", + "fastest-levenshtein": "^1.0.16", + "file-entry-cache": "^7.0.0", + "global-modules": "^2.0.0", + "globby": "^11.1.0", + "globjoin": "^0.1.4", + "html-tags": "^3.3.1", + "ignore": "^5.2.4", + "import-lazy": "^4.0.0", + "imurmurhash": "^0.1.4", + "is-plain-object": "^5.0.0", + "known-css-properties": "^0.29.0", + "mathml-tag-names": "^2.1.3", + "meow": "^10.1.5", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "picocolors": "^1.0.0", + "postcss": "^8.4.28", + "postcss-resolve-nested-selector": "^0.1.1", + "postcss-safe-parser": "^6.0.0", + "postcss-selector-parser": "^6.0.13", + "postcss-value-parser": "^4.2.0", + "resolve-from": "^5.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "style-search": "^0.1.0", + "supports-hyperlinks": "^3.0.0", + "svg-tags": "^1.0.0", + "table": "^6.8.1", + "write-file-atomic": "^5.0.1" + }, + "bin": { + "stylelint": "bin/stylelint.mjs" + }, + "engines": { + "node": "^14.13.1 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/stylelint" + } + }, + "node_modules/stylelint-config-recommended": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-13.0.0.tgz", + "integrity": "sha512-EH+yRj6h3GAe/fRiyaoO2F9l9Tgg50AOFhaszyfov9v6ayXJ1IkSHwTxd7lB48FmOeSGDPLjatjO11fJpmarkQ==", + "dev": true, + "engines": { + "node": "^14.13.1 || >=16.0.0" + }, + "peerDependencies": { + "stylelint": "^15.10.0" + } + }, + "node_modules/stylelint-config-recommended-scss": { + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/stylelint-config-recommended-scss/-/stylelint-config-recommended-scss-13.1.0.tgz", + "integrity": "sha512-8L5nDfd+YH6AOoBGKmhH8pLWF1dpfY816JtGMePcBqqSsLU+Ysawx44fQSlMOJ2xTfI9yTGpup5JU77c17w1Ww==", + "dev": true, + "dependencies": { + "postcss-scss": "^4.0.9", + "stylelint-config-recommended": "^13.0.0", + "stylelint-scss": "^5.3.0" + }, + "peerDependencies": { + "postcss": "^8.3.3", + "stylelint": "^15.10.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + } + } + }, + "node_modules/stylelint-config-standard": { + "version": "34.0.0", + "resolved": "https://registry.npmjs.org/stylelint-config-standard/-/stylelint-config-standard-34.0.0.tgz", + "integrity": "sha512-u0VSZnVyW9VSryBG2LSO+OQTjN7zF9XJaAJRX/4EwkmU0R2jYwmBSN10acqZisDitS0CLiEiGjX7+Hrq8TAhfQ==", + "dev": true, + "dependencies": { + "stylelint-config-recommended": "^13.0.0" + }, + "engines": { + "node": "^14.13.1 || >=16.0.0" + }, + "peerDependencies": { + "stylelint": "^15.10.0" + } + }, + "node_modules/stylelint-config-standard-scss": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/stylelint-config-standard-scss/-/stylelint-config-standard-scss-11.1.0.tgz", + "integrity": "sha512-5gnBgeNTgRVdchMwiFQPuBOtj9QefYtfXiddrOMJA2pI22zxt6ddI2s+e5Oh7/6QYl7QLJujGnaUR5YyGq72ow==", + "dev": true, + "dependencies": { + "stylelint-config-recommended-scss": "^13.1.0", + "stylelint-config-standard": "^34.0.0" + }, + "peerDependencies": { + "postcss": "^8.3.3", + "stylelint": "^15.10.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + } + } + }, + "node_modules/stylelint-scss": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/stylelint-scss/-/stylelint-scss-5.3.2.tgz", + "integrity": "sha512-4LzLaayFhFyneJwLo0IUa8knuIvj+zF0vBFueQs4e3tEaAMIQX8q5th8ziKkgOavr6y/y9yoBe+RXN/edwLzsQ==", + "dev": true, + "dependencies": { + "known-css-properties": "^0.29.0", + "postcss-media-query-parser": "^0.2.3", + "postcss-resolve-nested-selector": "^0.1.1", + "postcss-selector-parser": "^6.0.13", + "postcss-value-parser": "^4.2.0" + }, + "peerDependencies": { + "stylelint": "^14.5.1 || ^15.0.0" + } + }, + "node_modules/stylelint/node_modules/balanced-match": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-2.0.0.tgz", + "integrity": "sha512-1ugUSr8BHXRnK23KfuYS+gVMC3LB8QGH9W1iGtDPsNWoQbgtXSExkBu2aDR4epiGWZOjZsj6lDl/N/AqqTC3UA==", + "dev": true + }, + "node_modules/stylelint/node_modules/file-entry-cache": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-7.0.1.tgz", + "integrity": "sha512-uLfFktPmRetVCbHe5UPuekWrQ6hENufnA46qEGbfACkK5drjTTdQYUragRgMjHldcbYG+nslUerqMPjbBSHXjQ==", + "dev": true, + "dependencies": { + "flat-cache": "^3.1.1" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/stylelint/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-hyperlinks": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-3.0.0.tgz", + "integrity": "sha512-QBDPHyPQDRTy9ku4URNGY5Lah8PAaXs6tAAwp55sL5WCsSW7GIfdf6W5ixfziW+t7wh3GVvHyHHyQ1ESsoRvaA==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">=14.18" + } + }, + "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/svg-tags": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/svg-tags/-/svg-tags-1.0.0.tgz", + "integrity": "sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==", + "dev": true + }, + "node_modules/table": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/table/-/table-6.8.1.tgz", + "integrity": "sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA==", + "dev": true, + "dependencies": { + "ajv": "^8.0.1", + "lodash.truncate": "^4.4.2", + "slice-ansi": "^4.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/table/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/table/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/table/node_modules/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "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/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "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==", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toposort-class": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toposort-class/-/toposort-class-1.0.1.tgz", + "integrity": "sha512-OsLcGGbYF3rMjPUf8oKktyvCiUxSbqMMS39m33MAjLTC1DVIH6x3WSt63/M77ihI09+Sdfk1AXvfhCEeUmC7mg==" + }, + "node_modules/trim-newlines": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-4.1.1.tgz", + "integrity": "sha512-jRKj0n0jXWo6kh62nA5TEh3+4igKDXLvzBJcPpiizP7oOolUrYIxmVBG9TOtHYFHoddUk6YvAkGeGoSVTXfQXQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "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/undici-types": { + "version": "5.25.3", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.25.3.tgz", + "integrity": "sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA==" + }, + "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/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/v8-to-istanbul": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz", + "integrity": "sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/validator": { + "version": "13.11.0", + "resolved": "https://registry.npmjs.org/validator/-/validator-13.11.0.tgz", + "integrity": "sha512-Ii+sehpSfZy+At5nPdnyMhx78fEoPDkR2XW/zimHEL3MyGJQOCQ7WeP20jPYRz7ZCpcKLB21NxuXHF3bxjStBQ==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "dependencies": { + "makeerror": "1.0.12" + } + }, + "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/wkx": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/wkx/-/wkx-0.5.0.tgz", + "integrity": "sha512-Xng/d4Ichh8uN4l0FToV/258EjMGU9MGcA0HV2d9B/ZpZB3lqQm7nkOdZdm5GhKtLLhAE7PiVQwN4eN+2YJJUg==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/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/write-file-atomic": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-5.0.1.tgz", + "integrity": "sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "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/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs/node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "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/package.json b/package.json new file mode 100644 index 0000000..90ae087 --- /dev/null +++ b/package.json @@ -0,0 +1,80 @@ +{ + "name": "nightlife", + "version": "1.0.0", + "description": "", + "main": "index.js", + "type": "module", + "engines": { + "node": ">=20.9.0" + }, + "scripts": { + "start:mysql": "docker-compose up -d mysql8", + "stop:mysql": "docker-compose down mysql8", + "start:mysql:test": "docker compose up -d mysql8-test", + "stop:mysql:test": "docker compose down mysql8-test", + "start:dev": "npm run scss:build && npm run alias-build && altv-server.exe", + "scss:start": "sass resources/roleplay/client/assets/scss:resources/roleplay/client/assets/css --update", + "scss:build": "npm run scss:start --quiet --stop-on-error", + "scss:watch": "npm run scss:start -- --watch", + "scss:lint": "stylelint resources/roleplay/client/assets/scss --config .tools/stylelint/stylelintrc.json --cache --cache-location .tools/stylelint/.cache/ --ignore-path .tools/stylelint/.stylelintignore", + "code:eslint": "eslint --ext .js,.html ./ --c .tools/eslint/.eslintrc.cjs --cache --cache-location .tools/eslint/.cache/", + "code:lint": "npm run code:eslint && npm run scss:lint", + "code:format": "npm run code:eslint -- --fix && npm run scss:lint -- --fix", + "alias-build": "link-module-alias", + "husky:install": "husky install", + "postinstall": "npm run husky:install && npm run alias-build", + "test": "node -e \"console.log(require('os').platform())\" | xargs -I {} sh -c 'if [ \"{}\" = \"win32\" ]; then npm run migrate:test:windows; else npm run migrate:test:linux; fi' && npm run jest:test", + "test:local": "npm run start:mysql:test && npm run test && npm run stop:mysql:test", + "test:ci": "npm run test", + "jest:test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --forceExit --testPathPattern=tests/", + "migrate:test:windows": "SET NODE_ENV=test node .tools/jest/database.setup.js", + "migrate:test:linux": "NODE_ENV=test node .tools/jest/database.setup.js" + }, + "jest": { + "setupFiles": [ + "<rootDir>/.tools/jest/jest.setup.js" + ], + "moduleNameMapper": { + "^~client(.*)$": "<rootDir>/resources/roleplay/client$1", + "^~server(.*)$": "<rootDir>/resources/roleplay/server$1", + "^~shared(.*)$": "<rootDir>/resources/roleplay/shared$1", + "^~assets(.*)$": "<rootDir>/resources/roleplay/client/assets$1" + } + }, + "author": "", + "license": "GPL-3.0", + "dependencies": { + "@sentry/node": "^7.74.1", + "axios": "^1.6.1", + "bcryptjs": "^2.4.3", + "bootstrap": "^5.3.2", + "dotenv": "^16.3.1", + "link-module-alias": "^1.2.0", + "mariadb": "^3.2.2", + "mysql2": "^3.6.2", + "sass": "^1.69.4", + "sequelize": "^6.33.0" + }, + "devDependencies": { + "@altv/types-client": "^15.0.7", + "@altv/types-natives": "^15.0.7", + "@altv/types-server": "^15.0.7", + "@altv/types-shared": "^15.0.7", + "@altv/types-webview": "^15.0.7", + "@html-eslint/eslint-plugin": "^0.22.0", + "@html-eslint/parser": "^0.22.0", + "eslint": "^8.51.0", + "husky": "^8.0.3", + "jest": "^29.7.0", + "stylelint": "^15.11.0", + "stylelint-config-standard": "^34.0.0", + "stylelint-config-standard-scss": "^11.0.0", + "stylelint-scss": "^5.2.1" + }, + "_moduleAliases": { + "~client": "./resources/roleplay/client", + "~server": "./resources/roleplay/server", + "~shared": "./resources/roleplay/shared", + "~assets": "./resources/roleplay/client/assets" + } +} diff --git a/resources/chat/README.md b/resources/chat/README.md new file mode 100644 index 0000000..591ec75 --- /dev/null +++ b/resources/chat/README.md @@ -0,0 +1,60 @@ +# alt:V Chat + +Simple chat system with user interface. + +### Installation + +You can start by adding the chat resource in its own folder called 'chat'. + +``` +altVServerFolder/ +└── resources/ + ├── chat/ + | ├── index.js + | ├── client.js + | ├── resource.toml + | └── html/ + └── your_resource/ + ├── your_resource_main.js + ├── your_resource_client.js + └── your_resource.toml + └── package.json +``` + +**This is for YOUR resource that you want to implement the chat resource into.** +resource.toml + +```toml +type = 'js' +main = 'your_resource_main.js' +client-main = 'your_resource_client.js' +client-files = [] +deps = [ + 'chat' +] +``` + +package.json + +```json +{ + "type": "module" +} +``` + +### General Usage + +**Serverside** + +``` +import * as chat from 'chat'; + +// Uses the chat resource to register a command. +// Sends a chat message to the player with their position information. +chat.registerCmd('pos', (player, args) => { + chat.send(player, `X: ${player.pos.x}, Y: ${player.pos.y}, Z: ${player.pos.z}`); + + // Sends to all players. + chat.broadcast(`${player.name} is located at: ${player.pos.x}, Y: ${player.pos.y}, Z: ${player.pos.z}`); +}); +``` diff --git a/resources/chat/client/html/app.js b/resources/chat/client/html/app.js new file mode 100644 index 0000000..55674ef --- /dev/null +++ b/resources/chat/client/html/app.js @@ -0,0 +1,186 @@ +let chatOpened = false; +let buffer = []; +let currentBufferIndex = -1; +let timeout = null; +let messagesBlock = null; +let msgListBlock = null; +let msgInputBlock = null; +let msgInputLine = null; + +if (window.alt === undefined) { + window.alt = { + emit: () => { }, + on: () => { }, + }; +} + +function escapeString(str) { + if (typeof str !== "string") return str; + + return str + .replace(/&/g, "&") + .replace(/</g, "<") + .replace(/>/g, ">") + .replace(/"/g, """) + .replace(/'/g, "'"); +} + +function colorify(text) { + let matches = []; + let m = null; + let curPos = 0; + + text = escapeString(text); + + do { + m = /\{[A-Fa-f0-9]{3}\}|\{[A-Fa-f0-9]{6}\}/g.exec(text.substr(curPos)); + + if (!m) { + break; + } + + matches.push({ + found: m[0], + index: m["index"] + curPos, + }); + + curPos = curPos + m["index"] + m[0].length; + } while (m != null); + + if (matches.length > 0) { + text += "</font>"; + + for (let i = matches.length - 1; i >= 0; --i) { + let color = matches[i].found.substring(1, matches[i].found.length - 1); + let insertHtml = (i != 0 ? "</font>" : "") + '<font color="#' + color + '">'; + text = text.slice(0, matches[i].index) + insertHtml + text.slice(matches[i].index + matches[i].found.length, text.length); + } + } + + return text; +} + +function checkOverflow() { + if (messagesBlock.clientHeight > msgListBlock.clientHeight) { + if (!msgListBlock.classList.contains("overflowed")) { + msgListBlock.classList.add("overflowed"); + } + } else if (msgListBlock.classList.contains("overflowed")) { + msgListBlock.classList.remove("overflowed"); + } +} + +function openChat(insertSlash) { + clearTimeout(timeout); + + if (!chatOpened) { + document.querySelector(".chatbox").classList.add("active"); + + if (insertSlash) { + msgInputLine.value = "/"; + } + + msgInputBlock.style.display = "block"; + msgInputBlock.style.opacity = 1; + msgInputLine.focus(); + + chatOpened = true; + } +} + +function closeChat() { + if (chatOpened) { + document.querySelector(".chatbox").classList.remove("active"); + + msgInputLine.blur(); + msgInputBlock.style.display = "none"; + + chatOpened = false; + } +} + +window.addEventListener("load", () => { + messagesBlock = document.querySelector(".messages"); + msgListBlock = document.querySelector(".msglist"); + msgInputBlock = document.querySelector(".msginput"); + msgInputLine = document.querySelector(".msginput input"); + + document.querySelector("#message").addEventListener("submit", (e) => { + e.preventDefault(); + + alt.emit("chatmessage", msgInputLine.value); + + saveBuffer(); + closeChat(); + + msgInputLine.value = ""; + }); + + msgInputLine.addEventListener("keydown", (e) => { + if (e.keyCode === 9) { + e.preventDefault(); + } else if (e.keyCode == 40) { + e.preventDefault(); + + if (currentBufferIndex > 0) { + loadBuffer(--currentBufferIndex); + } else if (currentBufferIndex == 0) { + currentBufferIndex = -1; + msgInputLine.value = ""; + } + } else if (e.keyCode == 38) { + e.preventDefault(); + + if (currentBufferIndex < buffer.length - 1) { + loadBuffer(++currentBufferIndex); + } + } + }); + + alt.emit("chatloaded"); +}); + +function saveBuffer() { + if (!msgInputLine.value) return; + if (buffer.length > 100) { + buffer.pop(); + } + + buffer.unshift(msgInputLine.value); + currentBufferIndex = -1; +} + +function loadBuffer(idx) { + msgInputLine.value = buffer[idx]; +} + +function highlightChat() { + msgListBlock.scrollTo({ + left: 0, + top: msgListBlock.scrollHeight, + behaviour: "smooth", + }); + + document.querySelector(".chatbox").classList.add("active"); + + clearTimeout(timeout); + timeout = setTimeout(() => document.querySelector(".chatbox").classList.remove("active"), 4000); +} + +function addString(text) { + if (messagesBlock.children.length > 100) { + messagesBlock.removeChild(messagesBlock.children[0]); + } + + const msg = document.createElement("p"); + msg.innerHTML = text; + messagesBlock.appendChild(msg); + + checkOverflow(); + highlightChat(); +} + +alt.on("addString", (text) => addString(colorify(text))); +alt.on("addMessage", (name, text) => addString("<b>" + name + ": </b>" + colorify(text))); +alt.on("openChat", openChat); +alt.on("closeChat", closeChat); diff --git a/resources/chat/client/html/index.html b/resources/chat/client/html/index.html new file mode 100644 index 0000000..cdcd9f8 --- /dev/null +++ b/resources/chat/client/html/index.html @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <title>alt:V Chat + + + + +
+ +
+
+
+
+
+
+ +
+
+
+
+ + + diff --git a/resources/chat/client/index.js b/resources/chat/client/index.js new file mode 100644 index 0000000..bd50c40 --- /dev/null +++ b/resources/chat/client/index.js @@ -0,0 +1,70 @@ +import * as alt from "alt-client"; +import { CHAT_MESSAGE_EVENT } from "../shared/index.js"; + +let buffer = []; + +let loaded = false; +let opened = false; + +const view = new alt.WebView("http://resource/client/html/index.html"); + +function addMessage(name, text) { + if (name) { + view.emit("addMessage", name, text); + } else { + view.emit("addString", text); + } +} + +view.on("chatloaded", () => { + for (const msg of buffer) { + addMessage(msg.name, msg.text); + } + + loaded = true; +}); + +view.on("chatmessage", (text) => { + alt.emitServer(CHAT_MESSAGE_EVENT, text); + + opened = false; + alt.toggleGameControls(true); + view.unfocus(); +}); + +export function pushMessage(name, text) { + if (!loaded) { + buffer.push({ name, text }); + } else { + addMessage(name, text); + } +} + +export function pushLine(text) { + pushMessage(null, text); +} + +alt.onServer(CHAT_MESSAGE_EVENT, pushMessage); + +alt.on("keyup", (key) => { + if (loaded) { + if (!opened && key === 0x54 && alt.gameControlsEnabled()) { + opened = true; + view.emit("openChat", false); + alt.toggleGameControls(false); + view.focus(); + } else if (!opened && key === 0xbf && alt.gameControlsEnabled()) { + opened = true; + view.emit("openChat", true); + alt.toggleGameControls(false); + view.focus(); + } else if (opened && key == 0x1b) { + opened = false; + view.emit("closeChat"); + alt.toggleGameControls(true); + view.unfocus(); + } + } +}); + +//pushLine("alt:V Multiplayer has started"); diff --git a/resources/chat/package.json b/resources/chat/package.json new file mode 100644 index 0000000..e7e8832 --- /dev/null +++ b/resources/chat/package.json @@ -0,0 +1,32 @@ +{ + "name": "chat", + "version": "1.0.0", + "description": "", + "main": "", + "scripts": { + "test": "tsc", + "preversion": "yarn run test", + "release": "yarn version --no-git-tag-version" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/altmp/altv-example-resources.git" + }, + "keywords": [ + "altmp", + "altv", + "node", + "node-module", + "js-module", + "gta", + "gta5", + "gtav" + ], + "author": "altMP Team", + "license": "MIT", + "bugs": { + "url": "https://github.com/altmp/altv/issues" + }, + "homepage": "https://github.com/altmp/altv-example-resources#readme", + "type": "module" +} diff --git a/resources/chat/resource.toml b/resources/chat/resource.toml new file mode 100644 index 0000000..7ca748b --- /dev/null +++ b/resources/chat/resource.toml @@ -0,0 +1,4 @@ +type = 'js' +main = 'server/index.js' +client-main = 'client/index.js' +client-files = [ 'client/*', 'shared/*' ] diff --git a/resources/chat/server/index.js b/resources/chat/server/index.js new file mode 100644 index 0000000..5f19494 --- /dev/null +++ b/resources/chat/server/index.js @@ -0,0 +1,93 @@ +import * as alt from "alt-server"; +import { CHAT_MESSAGE_EVENT } from "../shared/index.js"; + +let cmdHandlers = {}; +let mutedPlayers = new Map(); + +function invokeCmd(player, cmd, args) { + cmd = cmd.toLowerCase(); + const callback = cmdHandlers[cmd]; + + if (callback) { + callback(player, args); + } else { + send(player, `{FF0000} Unknown command /${cmd}`); + } +} + +alt.onClient(CHAT_MESSAGE_EVENT, (player, msg) => { + if (msg[0] === "/") { + msg = msg.trim().slice(1); + + if (msg.length > 0) { + alt.log("[chat:cmd] " + player.name + ": /" + msg); + + let args = msg.split(" "); + let cmd = args.shift(); + + invokeCmd(player, cmd, args); + } + } else { + if (mutedPlayers.has(player) && mutedPlayers[player]) { + send(player, "{FF0000} You are currently muted."); + return; + } + + msg = msg.trim(); + + if (msg.length > 0) { + alt.log("[chat:msg] " + player.name + ": " + msg); + + alt.emitAllClients(CHAT_MESSAGE_EVENT, player.name, msg.replace(/ { + send(player, msg); + }; + + player.mute = (state) => { + mutePlayer(player, state); + }; +} + +// Arbitrary events to call. +alt.on("sendChatMessage", (player, msg) => { + alt.logWarning("Usage of chat events is deprecated use export functions instead"); + send(player, msg); +}); + +alt.on("broadcastMessage", (msg) => { + alt.logWarning("Usage of chat events is deprecated use export functions instead"); + broadcast(msg); +}); diff --git a/resources/chat/shared/index.js b/resources/chat/shared/index.js new file mode 100644 index 0000000..8a2e48d --- /dev/null +++ b/resources/chat/shared/index.js @@ -0,0 +1 @@ +export const CHAT_MESSAGE_EVENT = "chat:message"; diff --git a/resources/roleplay/client/assets/fonts/OpenSans-Bold.ttf b/resources/roleplay/client/assets/fonts/OpenSans-Bold.ttf new file mode 100644 index 0000000..4a5bc39 Binary files /dev/null and b/resources/roleplay/client/assets/fonts/OpenSans-Bold.ttf differ diff --git a/resources/roleplay/client/assets/fonts/OpenSans-Light.ttf b/resources/roleplay/client/assets/fonts/OpenSans-Light.ttf new file mode 100644 index 0000000..cf8e0c7 Binary files /dev/null and b/resources/roleplay/client/assets/fonts/OpenSans-Light.ttf differ diff --git a/resources/roleplay/client/assets/fonts/OpenSans-Medium.ttf b/resources/roleplay/client/assets/fonts/OpenSans-Medium.ttf new file mode 100644 index 0000000..a76d4ce Binary files /dev/null and b/resources/roleplay/client/assets/fonts/OpenSans-Medium.ttf differ diff --git a/resources/roleplay/client/assets/fonts/OpenSans-Regular.ttf b/resources/roleplay/client/assets/fonts/OpenSans-Regular.ttf new file mode 100644 index 0000000..29e9e60 Binary files /dev/null and b/resources/roleplay/client/assets/fonts/OpenSans-Regular.ttf differ diff --git a/resources/roleplay/client/assets/img/_icon/clothes-30.png b/resources/roleplay/client/assets/img/_icon/clothes-30.png new file mode 100644 index 0000000..ee511ba Binary files /dev/null and b/resources/roleplay/client/assets/img/_icon/clothes-30.png differ diff --git a/resources/roleplay/client/assets/img/_icon/details-48.png b/resources/roleplay/client/assets/img/_icon/details-48.png new file mode 100644 index 0000000..a829ae7 Binary files /dev/null and b/resources/roleplay/client/assets/img/_icon/details-48.png differ diff --git a/resources/roleplay/client/assets/img/_icon/dna-50.png b/resources/roleplay/client/assets/img/_icon/dna-50.png new file mode 100644 index 0000000..44f4e1e Binary files /dev/null and b/resources/roleplay/client/assets/img/_icon/dna-50.png differ diff --git a/resources/roleplay/client/assets/img/_icon/info-30.png b/resources/roleplay/client/assets/img/_icon/info-30.png new file mode 100644 index 0000000..df18277 Binary files /dev/null and b/resources/roleplay/client/assets/img/_icon/info-30.png differ diff --git a/resources/roleplay/client/assets/img/_icon/parents-50.png b/resources/roleplay/client/assets/img/_icon/parents-50.png new file mode 100644 index 0000000..a9ac55e Binary files /dev/null and b/resources/roleplay/client/assets/img/_icon/parents-50.png differ diff --git a/resources/roleplay/client/assets/img/_icon/person-48.png b/resources/roleplay/client/assets/img/_icon/person-48.png new file mode 100644 index 0000000..1f4f728 Binary files /dev/null and b/resources/roleplay/client/assets/img/_icon/person-48.png differ diff --git a/resources/roleplay/client/assets/img/_icon/save-50.png b/resources/roleplay/client/assets/img/_icon/save-50.png new file mode 100644 index 0000000..90abdb4 Binary files /dev/null and b/resources/roleplay/client/assets/img/_icon/save-50.png differ diff --git a/resources/roleplay/client/assets/img/_logo/nightlife_logo.png b/resources/roleplay/client/assets/img/_logo/nightlife_logo.png new file mode 100644 index 0000000..97bf0eb Binary files /dev/null and b/resources/roleplay/client/assets/img/_logo/nightlife_logo.png differ diff --git a/resources/roleplay/client/assets/img/hud/money/money-icon.png b/resources/roleplay/client/assets/img/hud/money/money-icon.png new file mode 100644 index 0000000..b37c862 Binary files /dev/null and b/resources/roleplay/client/assets/img/hud/money/money-icon.png differ diff --git a/resources/roleplay/client/assets/img/login/characterCreate/cc_1.jpg b/resources/roleplay/client/assets/img/login/characterCreate/cc_1.jpg new file mode 100644 index 0000000..2632a43 Binary files /dev/null and b/resources/roleplay/client/assets/img/login/characterCreate/cc_1.jpg differ diff --git a/resources/roleplay/client/assets/img/login/characterCreate/cc_2.jpg b/resources/roleplay/client/assets/img/login/characterCreate/cc_2.jpg new file mode 100644 index 0000000..2632a43 Binary files /dev/null and b/resources/roleplay/client/assets/img/login/characterCreate/cc_2.jpg differ diff --git a/resources/roleplay/client/assets/img/login/character_1_bg.jpg b/resources/roleplay/client/assets/img/login/character_1_bg.jpg new file mode 100644 index 0000000..2632a43 Binary files /dev/null and b/resources/roleplay/client/assets/img/login/character_1_bg.jpg differ diff --git a/resources/roleplay/client/assets/img/login/character_2_bg.jpg b/resources/roleplay/client/assets/img/login/character_2_bg.jpg new file mode 100644 index 0000000..4e8ce93 Binary files /dev/null and b/resources/roleplay/client/assets/img/login/character_2_bg.jpg differ diff --git a/resources/roleplay/client/assets/img/login/character_3_bg.jpg b/resources/roleplay/client/assets/img/login/character_3_bg.jpg new file mode 100644 index 0000000..a63ade9 Binary files /dev/null and b/resources/roleplay/client/assets/img/login/character_3_bg.jpg differ diff --git a/resources/roleplay/client/assets/img/login/character_img_default.png b/resources/roleplay/client/assets/img/login/character_img_default.png new file mode 100644 index 0000000..00d0eb2 Binary files /dev/null and b/resources/roleplay/client/assets/img/login/character_img_default.png differ diff --git a/resources/roleplay/client/assets/img/login/loginBackground.jpg b/resources/roleplay/client/assets/img/login/loginBackground.jpg new file mode 100644 index 0000000..2632a43 Binary files /dev/null and b/resources/roleplay/client/assets/img/login/loginBackground.jpg differ diff --git a/resources/roleplay/client/assets/img/login/spawnSelect/jobcenter.png b/resources/roleplay/client/assets/img/login/spawnSelect/jobcenter.png new file mode 100644 index 0000000..6e1af2b Binary files /dev/null and b/resources/roleplay/client/assets/img/login/spawnSelect/jobcenter.png differ diff --git a/resources/roleplay/client/assets/img/login/spawnSelect/lastPosition.png b/resources/roleplay/client/assets/img/login/spawnSelect/lastPosition.png new file mode 100644 index 0000000..97cb89d Binary files /dev/null and b/resources/roleplay/client/assets/img/login/spawnSelect/lastPosition.png differ diff --git a/resources/roleplay/client/assets/scss/base.scss b/resources/roleplay/client/assets/scss/base.scss new file mode 100644 index 0000000..a1625db --- /dev/null +++ b/resources/roleplay/client/assets/scss/base.scss @@ -0,0 +1,6 @@ +@import 'override'; +@import '../../../../../node_modules/bootstrap/scss/bootstrap'; +@import 'variables'; +@import 'typography'; + +@import 'master'; \ No newline at end of file diff --git a/resources/roleplay/client/assets/scss/hud/money/money.scss b/resources/roleplay/client/assets/scss/hud/money/money.scss new file mode 100644 index 0000000..ce199a7 --- /dev/null +++ b/resources/roleplay/client/assets/scss/hud/money/money.scss @@ -0,0 +1,7 @@ +@import '../../variables'; + +.money { + background: $primary-200; + right: 0; + border-radius: 5px 0 0 5px; +} \ No newline at end of file diff --git a/resources/roleplay/client/assets/scss/login/characterCreate/characterCreate.scss b/resources/roleplay/client/assets/scss/login/characterCreate/characterCreate.scss new file mode 100644 index 0000000..2de2837 --- /dev/null +++ b/resources/roleplay/client/assets/scss/login/characterCreate/characterCreate.scss @@ -0,0 +1,73 @@ +@import '../../variables'; + +body { + /** + * todo remove + * */ + background: url('../../../img/login/characterCreate/cc_1.jpg'); + background-size: cover; + background-position: center; + background-attachment: fixed; + background-repeat: no-repeat; +} + +::-webkit-scrollbar { + width: 0; + background: transparent; /* make scrollbar transparent */ +} + +.character-selection-wrapper { + height: 76vh; + background: $white; +} + +.character-selection-nav { + transition: all 0.2s ease-in-out; + transform: translate(-3.5rem, -50%) !important; + + /* stylelint-disable */ + &:not(:hover) li.active { + transform: translateX(2.2rem); + } + + &:hover { + transform: translate(0, -50%) !important; + } + + li { + transform: translateX(-15px); + transition: all 0.2s ease-in-out; + cursor: pointer; + + &:hover { + background-color: $nl-primary-color !important; + transform: translateX(-5px); + } + + &.active { + background-color: $nl-primary-color !important; + transform: translateX(-5px); + } + } +} + +.character-selection { + max-width: 30vw; + min-width: 30vw; + + &-header { + transform: translateY(-1px); + background-image: url('../../../img/login/characterCreate/cc_1.jpg'); + background-size: cover; + background-position: center; + + h1 { + text-shadow: 0 0 10px rgb(0 0 0 / 0.5); + } + } + + + &-content-dna li.active{ + border: 3px solid $black; + } +} \ No newline at end of file diff --git a/resources/roleplay/client/assets/scss/login/characterSelect/characterSelect.scss b/resources/roleplay/client/assets/scss/login/characterSelect/characterSelect.scss new file mode 100644 index 0000000..5078a93 --- /dev/null +++ b/resources/roleplay/client/assets/scss/login/characterSelect/characterSelect.scss @@ -0,0 +1,55 @@ +@import '../../variables'; + +body { + background: none; +} + +.container { + .row { + height: 50vh; + width: 90vh; + } + + .character { + filter: blur(1px); + transition: transform 0.1s ease-in-out, filter 0.1s ease-in-out; + z-index: 0; + + &-img { + margin: $spacer-3 0; + + img { + width: 100px; + border: 3px solid $black; + border-radius: 50%; + } + } + + &:hover { + cursor: pointer; + filter: blur(0); + transform: scale(1.05); + z-index: 1; + } + + &:first-child { + border-radius: 10px 0 0 10px; + background: url('../../../img/login/character_1_bg.jpg'); + background-size: cover; + background-repeat: no-repeat; + } + + &:nth-child(2) { + background: url('../../../img/login/character_2_bg.jpg'); + background-size: cover; + background-repeat: no-repeat; + } + + &:last-child { + border-radius: 0 10px 10px 0; + background: url('../../../img/login/character_3_bg.jpg'); + background-size: cover; + background-repeat: no-repeat; + } + } +} \ No newline at end of file diff --git a/resources/roleplay/client/assets/scss/login/login/login.scss b/resources/roleplay/client/assets/scss/login/login/login.scss new file mode 100644 index 0000000..cc10eb8 --- /dev/null +++ b/resources/roleplay/client/assets/scss/login/login/login.scss @@ -0,0 +1,34 @@ +@import '../../variables'; + +body { + background: none; +} + +.box-form { + background-color: $nl-primary-color; + border-radius: 10px; + box-shadow: 0 0 20px 6px #46464685; + width: 60vw; + max-width: 1400px; + + .col { + padding: $spacer-5; + + &:first-child { + height: 100%; + } + + &:last-child { + border-radius: 0 10px 10px 0; + background-color: $white; + + img { + width: 9rem; + } + + .errormsg { + color: $red; + } + } + } +} \ No newline at end of file diff --git a/resources/roleplay/client/assets/scss/login/spawnSelect/spawnSelect.scss b/resources/roleplay/client/assets/scss/login/spawnSelect/spawnSelect.scss new file mode 100644 index 0000000..4fbb912 --- /dev/null +++ b/resources/roleplay/client/assets/scss/login/spawnSelect/spawnSelect.scss @@ -0,0 +1,44 @@ +@import '../../variables'; + +body { + background: none; +} + +.container { + .row { + height: 50vh; + width: 90vh; + } + + .spawnpoint { + filter: blur(1px); + transition: transform 0.1s ease-in-out, filter 0.1s ease-in-out; + z-index: 0; + + &:hover { + cursor: pointer; + filter: blur(0); + transform: scale(1.05); + z-index: 1; + } + + &:first-child { + border-radius: 10px 0 0 10px; + background: url('../../../img/login/spawnSelect/jobcenter.png'); + background-position: center; + background-size: cover; + background-repeat: no-repeat; + } + + &:nth-child(2) { + background: url('../../../img/login/spawnSelect/lastPosition.png'); + background-position: center; + background-size: cover; + background-repeat: no-repeat; + + h3 { + text-shadow: 2px 2px 4px $black; + } + } + } +} \ No newline at end of file diff --git a/resources/roleplay/client/assets/scss/master.scss b/resources/roleplay/client/assets/scss/master.scss new file mode 100644 index 0000000..fbf8a72 --- /dev/null +++ b/resources/roleplay/client/assets/scss/master.scss @@ -0,0 +1,4 @@ +body { + margin: 0; + box-sizing: border-box; +} diff --git a/resources/roleplay/client/assets/scss/override.scss b/resources/roleplay/client/assets/scss/override.scss new file mode 100644 index 0000000..ab7b7b5 --- /dev/null +++ b/resources/roleplay/client/assets/scss/override.scss @@ -0,0 +1,30 @@ +@import 'variables'; + +textarea:focus, +input[type="text"]:focus, +input[type="password"]:focus, +input[type="datetime"]:focus, +input[type="datetime-local"]:focus, +input[type="date"]:focus, +input[type="month"]:focus, +input[type="time"]:focus, +input[type="week"]:focus, +input[type="number"]:focus, +input[type="email"]:focus, +input[type="url"]:focus, +input[type="search"]:focus, +input[type="tel"]:focus, +input[type="color"]:focus, +.uneditable-input:focus { + border-color: $primary-300; + box-shadow: 0 1px 1px rgb(0 0 0 / 0.075) inset, 0 0 8px $primary-300; + outline: 0 none; +} + +label { + margin-left: 0 !important; + + &::before { + display: none; + } +} \ No newline at end of file diff --git a/resources/roleplay/client/assets/scss/typography.scss b/resources/roleplay/client/assets/scss/typography.scss new file mode 100644 index 0000000..3447d2a --- /dev/null +++ b/resources/roleplay/client/assets/scss/typography.scss @@ -0,0 +1,40 @@ +@import 'variables'; + +@font-face { + font-family: 'Open Sans Light', sans-serif; + src: url('../fonts/OpenSans-Light.ttf'); +} +@font-face { + font-family: 'Open Sans Regular', sans-serif; + src: url('../fonts/OpenSans-Regular.ttf'); +} +@font-face { + font-family: 'Open Sans Medium', sans-serif; + src: url('../fonts/OpenSans-Medium.ttf'); +} +@font-face { + font-family: 'Open Sans Bold', sans-serif; + src: url('../fonts/OpenSans-Bold.ttf'); +} + +h1 { + font-family: 'Open Sans Bold', sans-serif; + font-weight: 700; + line-height: 1.2; +} + +h2 { + font-family: 'Open Sans Bold', sans-serif; + font-weight: 700; + line-height: 1.2; +} + +h3 { + font-family: 'Open Sans Bold', sans-serif; + font-weight: 700; + line-height: 1.2; +} + +p, span { + font-family: 'Open Sans Regular', sans-serif; +} \ No newline at end of file diff --git a/resources/roleplay/client/assets/scss/variables.scss b/resources/roleplay/client/assets/scss/variables.scss new file mode 100644 index 0000000..3971044 --- /dev/null +++ b/resources/roleplay/client/assets/scss/variables.scss @@ -0,0 +1,38 @@ +// Main Colors +$nl-primary-color: #2D82B7; +$nl-secondary-color: #262626; + +// Colors +$black: $nl-secondary-color; +$blue: $nl-primary-color; +$pink: #C47AC0; +$green: #7AC47A; +$red: #d64a4a; +$yellow: #d6d64a; +$orange: #d67a4a; +$purple: #7a4ad6; +$white: #fff; +$gray: #DAD7CD; + +// Text +$nl-font-family: 'Open Sans', sans-serif; +$font-size-h1: 3rem; +$font-size-h2: 2.5rem; +$font-size-h3: 2rem; +$font-size-base: 1rem; + +// Spacer +$spacer-1: 0.25rem; +$spacer-2: 0.5rem; +$spacer-3: 1rem; +$spacer-4: 1.5rem; +$spacer-5: 3rem; +$spacer-6: 4.5rem; +$spacer-7: 6rem; + +// Special Colors +$primary-100: #e6f4ff; +$primary-200: #b3daff; +$primary-300: #80c1ff; +$primary-400: #4da8ff; +$primary-500: $nl-primary-color; \ No newline at end of file diff --git a/resources/roleplay/client/hud/money/index.html b/resources/roleplay/client/hud/money/index.html new file mode 100644 index 0000000..fd0b8d2 --- /dev/null +++ b/resources/roleplay/client/hud/money/index.html @@ -0,0 +1,20 @@ + + + + + + + + +
+
+
+ 0 + +
+ money-icon +
+
+ + + \ No newline at end of file diff --git a/resources/roleplay/client/hud/money/index.js b/resources/roleplay/client/hud/money/index.js new file mode 100644 index 0000000..0f48483 --- /dev/null +++ b/resources/roleplay/client/hud/money/index.js @@ -0,0 +1,3 @@ +alt.on('Client:Moneyhud:Show', (money) => { + document.getElementById('handMoney').innerHTML = money; +}); \ No newline at end of file diff --git a/resources/roleplay/client/hud/moneyhud.client.js b/resources/roleplay/client/hud/moneyhud.client.js new file mode 100644 index 0000000..21c4258 --- /dev/null +++ b/resources/roleplay/client/hud/moneyhud.client.js @@ -0,0 +1,19 @@ +import * as alt from 'alt-client'; +import * as events from '../../shared/events.js'; +import * as views from '../../shared/views.js'; +import { hideBrowser, showBrowser } from '../../shared/functions/client/functions.client.js'; + +let moneyHudWebView; +function createBrowser() { + moneyHudWebView = new alt.WebView(views.MONEY_HUD); +} + +alt.onServer(events.CLIENT_MONEYHUD_SHOW, (money) => { + createBrowser(); + showBrowser(moneyHudWebView, alt); + loginWebView.emit(events.CLIENT_MONEYHUD_SHOW, money); +}); + +alt.onServer(events.CLIENT_MONEYHUD_HIDE, () => { + hideBrowser(moneyHudWebView, alt); +}); \ No newline at end of file diff --git a/resources/roleplay/client/hud/speedometer/index.js b/resources/roleplay/client/hud/speedometer/index.js new file mode 100644 index 0000000..0d9da06 --- /dev/null +++ b/resources/roleplay/client/hud/speedometer/index.js @@ -0,0 +1,56 @@ +import * as alt from 'alt-client'; +import * as native from 'natives'; + +/** + * + * @param {string} msg + * @param {float} x + * @param {float} y + * @param {float} scale + * @param {int} fontType + * @param {rgb} r + * @param {rgb} g + * @param {rgb} b + * @param {rgb} a + * @param {boolean} useOutline + * @param {boolean} useDropShadow + * @param {int} align + */ +function drawText2d(msg, x, y, scale, fontType, r, g, b, a, useOutline = true, useDropShadow = true, align = 0 +) { + let hex = msg.match('{.*}'); + if (hex) { + const rgb = hexToRgb(hex[0].replace('{', '').replace('}', '')); + r = rgb[0]; + g = rgb[1]; + b = rgb[2]; + msg = msg.replace(hex[0], ''); + } + + native.beginTextCommandDisplayText('STRING'); + native.addTextComponentSubstringPlayerName(msg); + native.setTextFont(fontType); + native.setTextScale(1, scale); + native.setTextWrap(0.0, 1.0); + native.setTextCentre(true); + native.setTextColour(r, g, b, a); + native.setTextJustification(align); + + if (useOutline) { + native.setTextOutline(); + } + + if (useDropShadow) { + native.setTextDropShadow(); + } + + native.endTextCommandDisplayText(x, y, 0); +} + +alt.everyTick(() => { + let vehicle = alt.Player.local.vehicle; + if (!vehicle) return; + //let speed = native.getEntitySpeed((vehicle.scriptID) * 3.6).toFixed(0); + let speed = (native.getEntitySpeed(vehicle) * 3.6).toFixed(0).toString() + ' km/h'; + drawText2d(speed, 0.5, 0.05, 0.4, 4, 255, 255, 255, 255); +}); \ No newline at end of file diff --git a/resources/roleplay/client/index.js b/resources/roleplay/client/index.js new file mode 100644 index 0000000..24f5dd4 --- /dev/null +++ b/resources/roleplay/client/index.js @@ -0,0 +1,14 @@ +import * as alt from 'alt'; +import * as native from 'natives'; + +import('./ipls/index.js'); +import('./login/index.js'); +import('./utils/index.js'); +import('./hud/speedometer/index.js'); + +//Need to be moved to different file +alt.onServer('warpIntoVehicle', (veh) => { + alt.setTimeout(() => { + native.setPedIntoVehicle(alt.Player.local.scriptID, veh.scriptID, -1); + }, 200); +}); \ No newline at end of file diff --git a/resources/roleplay/client/ipls/index.js b/resources/roleplay/client/ipls/index.js new file mode 100644 index 0000000..53bad52 --- /dev/null +++ b/resources/roleplay/client/ipls/index.js @@ -0,0 +1,164 @@ +import * as alt from 'alt-client'; +import * as natives from 'natives'; +alt.requestIpl('ex_dt1_02_office_02b'); +alt.requestIpl('chop_props'); +alt.requestIpl('FIBlobby'); +alt.removeIpl('FIBlobbyfake'); +alt.requestIpl('FBI_colPLUG'); +alt.requestIpl('FBI_repair'); +alt.requestIpl('v_tunnel_hole'); +alt.requestIpl('TrevorsMP'); +alt.requestIpl('TrevorsTrailer'); +alt.requestIpl('TrevorsTrailerTidy'); +alt.removeIpl('farm_burnt'); +alt.removeIpl('farm_burnt_lod'); +alt.removeIpl('farm_burnt_props'); +alt.removeIpl('farmint_cap'); +alt.removeIpl('farmint_cap_lod'); +alt.requestIpl('farm'); +alt.requestIpl('farmint'); +alt.requestIpl('farm_lod'); +alt.requestIpl('farm_props'); +alt.requestIpl('facelobby'); +alt.removeIpl('CS1_02_cf_offmission'); +alt.requestIpl('CS1_02_cf_onmission1'); +alt.requestIpl('CS1_02_cf_onmission2'); +alt.requestIpl('CS1_02_cf_onmission3'); +alt.requestIpl('CS1_02_cf_onmission4'); +alt.requestIpl('v_rockclub'); +alt.requestIpl('v_janitor'); +alt.removeIpl('hei_bi_hw1_13_door'); +alt.requestIpl('bkr_bi_hw1_13_int'); +alt.requestIpl('ufo'); +alt.requestIpl('ufo_lod'); +alt.requestIpl('ufo_eye'); +alt.removeIpl('v_carshowroom'); +alt.removeIpl('shutter_open'); +alt.removeIpl('shutter_closed'); +alt.removeIpl('shr_int'); +alt.requestIpl('csr_afterMission'); +alt.requestIpl('v_carshowroom'); +alt.requestIpl('shr_int'); +alt.requestIpl('shutter_closed'); +alt.requestIpl('smboat'); +alt.requestIpl('smboat_distantlights'); +alt.requestIpl('smboat_lod'); +alt.requestIpl('smboat_lodlights'); +alt.requestIpl('cargoship'); +alt.requestIpl('railing_start'); +alt.removeIpl('sp1_10_fake_interior'); +alt.removeIpl('sp1_10_fake_interior_lod'); +alt.requestIpl('sp1_10_real_interior'); +alt.requestIpl('sp1_10_real_interior_lod'); +alt.removeIpl('id2_14_during_door'); +alt.removeIpl('id2_14_during1'); +alt.removeIpl('id2_14_during2'); +alt.removeIpl('id2_14_on_fire'); +alt.removeIpl('id2_14_post_no_int'); +alt.removeIpl('id2_14_pre_no_int'); +alt.removeIpl('id2_14_during_door'); +alt.requestIpl('id2_14_during1'); +alt.removeIpl('Coroner_Int_off'); +alt.requestIpl('coronertrash'); +alt.requestIpl('Coroner_Int_on'); +alt.removeIpl('bh1_16_refurb'); +alt.removeIpl('jewel2fake'); +alt.removeIpl('bh1_16_doors_shut'); +alt.requestIpl('refit_unload'); +alt.requestIpl('post_hiest_unload'); +alt.requestIpl('Carwash_with_spinners'); +alt.requestIpl('KT_CarWash'); +alt.requestIpl('ferris_finale_Anim'); +alt.removeIpl('ch1_02_closed'); +alt.requestIpl('ch1_02_open'); +alt.requestIpl('AP1_04_TriAf01'); +alt.requestIpl('CS2_06_TriAf02'); +alt.requestIpl('CS4_04_TriAf03'); +alt.removeIpl('scafstartimap'); +alt.requestIpl('scafendimap'); +alt.removeIpl('DT1_05_HC_REMOVE'); +alt.requestIpl('DT1_05_HC_REQ'); +alt.requestIpl('DT1_05_REQUEST'); +alt.requestIpl('dt1_05_hc_remove'); +alt.requestIpl('dt1_05_hc_remove_lod'); +alt.requestIpl('FINBANK'); +alt.removeIpl('DT1_03_Shutter'); +alt.removeIpl('DT1_03_Gr_Closed'); +alt.requestIpl('golfflags'); +alt.requestIpl('airfield'); +alt.requestIpl('v_garages'); +alt.requestIpl('v_foundry'); +alt.requestIpl('hei_yacht_heist'); +alt.requestIpl('hei_yacht_heist_Bar'); +alt.requestIpl('hei_yacht_heist_Bedrm'); +alt.requestIpl('hei_yacht_heist_Bridge'); +alt.requestIpl('hei_yacht_heist_DistantLights'); +alt.requestIpl('hei_yacht_heist_enginrm'); +alt.requestIpl('hei_yacht_heist_LODLights'); +alt.requestIpl('hei_yacht_heist_Lounge'); +alt.requestIpl('hei_carrier'); +alt.requestIpl('hei_Carrier_int1'); +alt.requestIpl('hei_Carrier_int2'); +alt.requestIpl('hei_Carrier_int3'); +alt.requestIpl('hei_Carrier_int4'); +alt.requestIpl('hei_Carrier_int5'); +alt.requestIpl('hei_Carrier_int6'); +alt.requestIpl('hei_carrier_LODLights'); +alt.requestIpl('bkr_bi_id1_23_door'); +alt.requestIpl('lr_cs6_08_grave_closed'); +alt.requestIpl('hei_sm_16_interior_v_bahama_milo_'); +alt.requestIpl('CS3_07_MPGates'); +alt.requestIpl('cs5_4_trains'); +alt.requestIpl('v_lesters'); +alt.requestIpl('v_trevors'); +alt.requestIpl('v_michael'); +alt.requestIpl('v_comedy'); +alt.requestIpl('v_cinema'); +alt.requestIpl('V_Sweat'); +alt.requestIpl('V_35_Fireman'); +alt.requestIpl('redCarpet'); +alt.requestIpl('triathlon2_VBprops'); +alt.requestIpl('jetstenativeurnel'); +alt.requestIpl('Jetsteal_ipl_grp1'); +alt.requestIpl('v_hospital'); +alt.removeIpl('RC12B_Default'); +alt.removeIpl('RC12B_Fixed'); +alt.requestIpl('RC12B_Destroyed'); +alt.requestIpl('RC12B_HospitalInterior'); +alt.requestIpl('canyonriver01'); +alt.requestIpl('canyonriver01_lod'); +alt.requestIpl('cs3_05_water_grp1'); +alt.requestIpl('cs3_05_water_grp1_lod'); +alt.requestIpl('trv1_trail_start'); +alt.requestIpl('CanyonRvrShallow'); + +// CASINO +alt.requestIpl('vw_casino_penthouse'); +alt.requestIpl('vw_casino_main'); +alt.requestIpl('vw_casino_carpark'); +alt.requestIpl('vw_dlc_casino_door'); +alt.requestIpl('vw_casino_door'); +alt.requestIpl('hei_dlc_windows_casino'); +alt.requestIpl('hei_dlc_casino_door'); +alt.requestIpl('hei_dlc_casino_aircon'); +alt.requestIpl('vw_casino_garage'); + +let interiorID = natives.getInteriorAtCoords(1100.0, 220.0, -50.0); +if (natives.isValidInterior(interiorID)) { + natives.activateInteriorEntitySet(interiorID, '0x30240D11'); + natives.activateInteriorEntitySet(interiorID, '0xA3C89BB2'); + natives.refreshInterior(interiorID); +} + +interiorID = natives.getInteriorAtCoords(976.6364, 70.29476, 115.1641); +if (natives.isValidInterior(interiorID)) { + natives.activateInteriorEntitySet(interiorID, 'Set_Pent_Tint_Shell'); + natives.activateInteriorEntitySet(interiorID, 'Set_Pent_Pattern_09'); + natives.activateInteriorEntitySet(interiorID, 'Set_Pent_Spa_Bar_Open'); + natives.activateInteriorEntitySet(interiorID, 'Set_Pent_Media_Bar_Open'); + natives.activateInteriorEntitySet(interiorID, 'Set_Pent_Arcade_Modern'); + natives.activateInteriorEntitySet(interiorID, 'Set_Pent_Bar_Clutter'); + natives.activateInteriorEntitySet(interiorID, 'Set_Pent_Clutter_03'); + natives.activateInteriorEntitySet(interiorID, 'Set_pent_bar_light_02'); + natives.refreshInterior(interiorID); +} \ No newline at end of file diff --git a/resources/roleplay/client/login/characterCreate/index.html b/resources/roleplay/client/login/characterCreate/index.html new file mode 100644 index 0000000..0f5a385 --- /dev/null +++ b/resources/roleplay/client/login/characterCreate/index.html @@ -0,0 +1,65 @@ + + + + + + + + +
+ +
+ +
+ + +
+ + + + \ No newline at end of file diff --git a/resources/roleplay/client/login/characterCreate/index.js b/resources/roleplay/client/login/characterCreate/index.js new file mode 100644 index 0000000..c0baa67 --- /dev/null +++ b/resources/roleplay/client/login/characterCreate/index.js @@ -0,0 +1,513 @@ +window.addEventListener('load', () => { + loadNavigation(); + const activeElement = document.querySelector('.character-selection-nav li.active').dataset.category; + insertActiveHeadline(activeElement); + + createSettings(); + loadCustomLogic(); +}); + +const elements = ['Infos', 'Eltern', 'D-N-A', 'Aussehen', 'Kleidung', 'Speichern']; +const elementClasses = [ + '.character-selection-content-info', + '.character-selection-content-parents', + '.character-selection-content-dna', + '.character-selection-content-appearance', + '.character-selection-content-clothing', + '.character-selection-content-save', +]; + +let currentActiveElement = elements[0]; + +const types = { + text: 'text', + date: 'date', + select: 'select', + range: 'range', + list: 'list', + buttons: 'buttons', + colorList: 'colorList', +}; + +const settings = { + infos: [ + '-info', + { + setting: 'Vorname', + type: types.text, + meta: 'firstname' + },{ + setting: 'Nachname', + type: types.text, + meta: 'lastname' + },{ + setting: 'Geburtsdatum', + type: types.date, + meta: 'birthdate' + },{ + setting: 'Geschlecht', + type: types.buttons, + options: [ + { + setting: 'Männlich', + meta: 'gender-male' + }, + { + setting: 'Weiblich', + meta: 'gender-woman' + }, + { + setting: 'Divers', + meta: 'gender-divers' + } + ], + }, + ], + parents: [ + '-parents', + { + setting: 'Gesichtsform der Mutter', + type: types.range, + meta: 'motherFace' + },{ + setting: 'Gesichtsform des Vaters', + type: types.range, + meta: 'fatherFace' + },{ + setting: 'Hautfarbe der Mutter', + type: types.range, + meta: 'motherSkin' + },{ + setting: 'Hautfarbe des Vaters', + type: types.range, + meta: 'fatherSkin' + },{ + setting: 'Hautfarbemischung', + type: types.range, + meta: 'skinMix' + }, + ], + dna: [ + '-dna', + { + setting: 'Haare', + type: types.range, + meta: 'hair' + }, { + setting: 'Haarfarbe', + type: types.colorList, + options: [ + '#0c0c0c', '#1d1a17', '#281d18', '#3d1f15', '#682e19', + '#954b29', '#a35234', '#9b5f3d', '#b57e54', '#c19167', + '#af7f53', '#be9560', '#d0ac75', '#b37f43', '#dbac68', + '#e4ba7e', '#bd895a', '#83422c', '#8e3a28', '#8a241c', + '#962b20', '#a7271d', '#c4351f', '#d8421f', '#c35731', + '#d24b21', '#816755', '#917660', '#a88c74', '#d0b69e', + '#513442', '#744557', '#a94663', '#cb1e8e', '#f63f78', + '#ed9393', '#0b917e', '#248081', '#1b4d6b', '#578d4b', + '#235433', '#155146', '#889e2e', '#71881b', '#468f21', + '#cc953d', '#ebb010', '#ec971a', '#e76816', '#e64810', + '#ec4d0e', '#c22313', '#e43315', '#ae1b18', '#6d0c0e', + '#281914', '#3d241a', '#4c281a', '#5d3929', '#69402b', + '#291b16', '#0e0e10', '#e6bb84', '#d8ac74', + ] + }, { + setting: 'Bart', + type: types.range, + meta: 'beard' + }, { + setting: 'Bartfarbe', + type: types.colorList, + //eslint-disable-next-line max-len + options: [ + '#0c0c0c', '#1d1a17', '#281d18', '#3d1f15', '#682e19', + '#954b29', '#a35234', '#9b5f3d', '#b57e54', '#c19167', + '#af7f53', '#d0ac75', '#b37f43', '#dbac68', '#e4ba7e', + '#bd895a', '#83422c', '#816755', '#917660', '#a88c74', + '#d0b69e', '#281914', '#281914', '#3d241a', '#4c281a', + '#5d3929', '#69402b', '#291b16', '#0e0e10', '#e6bb84', + '#d8ac74', + ] + }, { + setting: 'Bartlänge', + type: types.range, + meta: 'chinHeight' + },{ + setting: 'Bartform', + type: types.range, + meta: 'chinForm' + } + ], + appearance: [ + '-appearance', + { + setting: 'Nasebreite', + type: types.range, + meta: 'noseWidth' + }, { + setting: 'Nasenhöhe', + type: types.range, + meta: 'noseHeight' + }, { + setting: 'Nasenlänge', + type: types.range, + meta: 'noseLength' + }, { + setting: 'Nasenrücken', + type: types.range, + meta: 'noseBridge' + }, { + setting: 'Nasenposition', + type: types.range, + meta: 'noseTip' + }, { + setting: 'Nasenrückenform', + type: types.range, + meta: 'noseBridgeShift' + }, { + setting: 'Augenbrauenhöhe', + type: types.range, + meta: 'eyebrowHeight' + }, { + setting: 'Augenbrauenbreite', + type: types.range, + meta: 'eyebrowWidth' + }, { + setting: 'Schläfenhöhe', + type: types.range, + meta: 'cheekboneHeight' + }, { + setting: 'Schläfenbreite', + type: types.range, + meta: 'cheekboneWidth' + }, { + setting: 'Wangenbreite', + type: types.range, + meta: 'cheekWidth' + }, { + setting: 'Augen', + type: types.range, + meta: 'eyes' + }, { + setting: 'Lippen', + type: types.range, + meta: 'lips' + }, { + setting: 'Kieferbreite', + type: types.range, + meta: 'jawWidth' + }, { + setting: 'Kieferhöhe', + type: types.range, + meta: 'jawHeight' + }, { + setting: 'Kinnposition', + type: types.range, + meta: 'chinPosition' + }, { + setting: 'Kinnbreite', + type: types.range, + meta: 'chinWidth' + }, { + setting: 'Kinnform', + type: types.range, + meta: 'chinShape' + }, + ], + clothing: [ + '-clothing', + { + setting: 'Unterhemd', + type: types.range, + meta: 'undershirt' + }, + { + setting: 'Hemd', + type: types.range, + meta: 'shirt' + }, { + setting: 'Hose', + type: types.range, + meta: 'pants' + }, { + setting: 'Hose 2', + type: types.range, + meta: 'pants2' + }, { + setting: 'Schuhe', + type: types.range, + meta: 'shoes' + }, { + setting: 'Schuhe 2', + type: types.range, + meta: 'shoes2' + } + ] +}; + +function loadNavigation() { + document.querySelectorAll('.character-selection-nav li').forEach((element, index) => { + element.dataset.category = elements[index]; + + element.addEventListener('click', () => { + const newActiveElement = element.dataset.category; + + if (currentActiveElement === newActiveElement) { + return; + } + + const category = `data-category="${currentActiveElement}"`; + document.querySelector(`.character-selection-nav li[${category}"]`).classList.remove('active'); + + currentActiveElement = newActiveElement; + insertActiveHeadline(newActiveElement); + + hideAllElements(); + + element.classList.add('active'); + document.querySelector(elementClasses[elements.indexOf(newActiveElement)]).classList.remove('d-none'); + }); + }); +} + + +function createSettings() { + for (const parentValue of Object.values(settings)) { + for(let i in parentValue) { + const id = parentValue[0]; + const setting = parentValue[i].setting; + const type = parentValue[i].type; + const meta = parentValue[i].meta; + const options = parentValue[i]?.options; + + const parentDiv = document.querySelector(`.character-selection-content${id}`); + + let newElement; + + const div = document.createElement('div'); + div.classList.add('mb-3'); + + switch(type) { + case types.text: { + newElement = createTextInput(div, setting, meta, options); + break; + } + case types.date: { + newElement = createDateInput(div, setting, meta, options); + break; + } + case types.buttons: { + newElement = createButtons(div, setting, meta, options); + break; + } + case types.range: { + newElement = createRangeInput(div, setting, meta, options); + break; + } + case types.colorList: { + newElement = createColorList(div, setting, options); + break; + } + } + + if(!newElement) { + continue; + } + + parentDiv.appendChild(newElement); + } + } +} + +// =========================================================================================== +// =========================================================================================== +// ======================================CUSTOM LOGIC========================================= +// =========================================================================================== +// =========================================================================================== + +function loadCustomLogic() { + characterInfos(); +} + +function characterInfos() { + const setButtonStyle = (buttons, activeButton) => { + buttons.forEach(button => { + button.classList.remove('btn-success'); + }); + activeButton.classList.add('btn-success'); + }; + + const createDiversSettings = () => { + const newDiv = document.createElement('div'); + newDiv.classList.add('mt-4'); + newDiv.id = 'divers-settings'; + + const infoDiv = document.createElement('div'); + infoDiv.classList.add('mt-4', 'alert', 'alert-info'); + infoDiv.innerHTML = 'Aus technischen Gründen musst Du dich für ein Basis Geschlecht entscheiden.'; + newDiv.appendChild(infoDiv); + + createButtons(newDiv, 'Männlich', 'divers-gender-male'); + createButtons(newDiv, 'Weiblich', 'divers-gender-woman'); + + const parentDiv = document.querySelector('.character-selection-content-info'); + parentDiv.appendChild(newDiv); + + const newButtons = document.querySelectorAll('#divers-settings .btn'); + newButtons.forEach(newButton => { + newButton.addEventListener('click', () => { + setButtonStyle(newButtons, newButton); + }); + }); + }; + + const buttons = document.querySelectorAll('.character-selection-content-info .btn'); + buttons.forEach(button => { + button.addEventListener('click', () => { + setButtonStyle(buttons, button); + + if (button.id === 'gender-divers') { + createDiversSettings(); + } else { + document.getElementById('divers-settings')?.remove(); + } + }); + }); +} + +// =========================================================================================== +// =========================================================================================== +// ============================================HELPERS======================================== +// =========================================================================================== +// =========================================================================================== + +function hideAllElements() { + document.querySelectorAll('.character-selection-content .settings').forEach(element => { + element.classList.add('d-none'); + }); +} + +function insertActiveHeadline(text) { + document.getElementById('character-selected').innerHTML = text; +} + +function createTextInput(div, setting, meta, options) { + const input = (setting, meta) => { + return ` + + + `; + }; + + if(options) { + for(let i in options) { + if(typeof options[i] === 'object') { + div.innerHTML = input(options[i].setting, options[i].meta); + continue; + } + div.innerHTML += input(options[i], meta); + } + } else { + div.innerHTML += input(setting, meta); + } + + return div; +} + +function createDateInput(div, setting, meta, options) { + const input = (setting, meta) => { + return ` + + + `; + }; + + if(options) { + for(let i in options) { + if(typeof options[i] === 'object') { + div.innerHTML += input(options[i].setting, options[i].meta); + continue; + } + div.innerHTML += input(options[i], meta); + } + }else { + div.innerHTML += input(setting, meta); + } + return div; +} + +function createButtons(div, setting, meta, options) { + div.classList.add('mt-4'); + + const button = (setting, meta) => { + return ` +
${setting}
+ `; + }; + + if(options) { + for(let i in options) { + if(typeof options[i] === 'object') { + div.innerHTML += button(options[i].setting, options[i].meta); + continue; + } + div.innerHTML += button(options[i], meta); + } + }else { + div.innerHTML += button(setting, meta); + } + + return div; +} + +function createRangeInput(div, setting, meta, options) { + const input = (setting, meta) => { + return ` + + + `; + }; + + if(options) { + for(let i in options) { + const type = typeof options[i]; + if(type === 'object') { + div.innerHTML = input(options[i].setting, options[i].meta); + continue; + } + div.innerHTML += input(setting, meta); + } + }else { + div.innerHTML += input(setting, meta); + } + + return div; +} + +function createColorList(div, setting, options) { + const list = document.createElement('ul'); + list.classList.add('d-flex'); + list.classList.add('flex-wrap'); + list.classList.add('list-unstyled'); + + const headline = document.createElement('p'); + headline.innerHTML = setting; + div.appendChild(headline); + + const listDiv = (setting, index) => { + return ` +
  • + `; + }; + + for(let i in options) { + list.innerHTML += listDiv(options[i], i); + continue; + } + + div.appendChild(list); + return div; +} \ No newline at end of file diff --git a/resources/roleplay/client/login/characterSelect.client.js b/resources/roleplay/client/login/characterSelect.client.js new file mode 100644 index 0000000..9e35dcb --- /dev/null +++ b/resources/roleplay/client/login/characterSelect.client.js @@ -0,0 +1,27 @@ +import * as alt from 'alt-client'; +import * as events from '../../shared/events.js'; +import * as views from '../../shared/views.js'; +import { hideBrowser, showBrowser } from '../../shared/functions/client/functions.client.js'; + +let characterSelectWebView; +function createBrowser() { + characterSelectWebView = new alt.WebView(views.CHARACTER_SELECT); + + characterSelectWebView.on('Client:CharacterSelect:Create', (slot) => { + alt.emitServer(events.SERVER_CHARACTER_SELECT_CREATE, slot); + }); + + characterSelectWebView.on('Client:CharacterSelect:Select', (cid) => { + alt.emitServer(events.SERVER_CHARACTER_SELECT_SELECT, cid); + }); +} + +alt.onServer(events.CLIENT_CHARACTER_SELECT_SHOW, (characters) => { + createBrowser(); + showBrowser(characterSelectWebView, alt); + characterSelectWebView.emit(events.CLIENT_CHARACTER_SELECT_SHOW, characters); +}); + +alt.onServer(events.CLIENT_CHARACTER_SELECT_HIDE, () => { + hideBrowser(characterSelectWebView, alt); +}); \ No newline at end of file diff --git a/resources/roleplay/client/login/characterSelect/characterSelect.js b/resources/roleplay/client/login/characterSelect/characterSelect.js new file mode 100644 index 0000000..3c9090b --- /dev/null +++ b/resources/roleplay/client/login/characterSelect/characterSelect.js @@ -0,0 +1,42 @@ +let hasSelectedCharacter = false; + +alt.on('Client:CharacterSelect:Show', (characters) => { + // If the user doesnt have any characters, lock the other slots and only accept the first one + if(characters.length === 0) { + for(let i = 2; i <= 3; i++) { + document.getElementById(`character-${i}`).style.cursor = 'not-allowed'; + document.getElementById(`character-${i}`).style.pointerEvents = 'none'; + + // Remove the text + document.querySelector(`#character-${i}-create`).remove(); + document.querySelector(`#character-${i}-name`).remove(); + } + }else { + characters.forEach((character, index) => { + index++; + const id = `character-${index}`; + document.getElementById(id).dataset.cid = character.cid; + document.getElementById(`${id}-name`).innerHTML = `${character.firstname} ${character.lastname}`; + document.getElementById(`${id}-name`).classList.remove('d-none'); + document.getElementById(`${id}-create`).remove(); + }); + } +}); + + +document.querySelectorAll('.character').forEach((character) => { + if(hasSelectedCharacter) return; + hasSelectedCharacter = true; + + character.addEventListener('click', (e) => { + const cid = e.target.dataset.cid; + if(!cid) { + character.addEventListener('click', () => { + alt.emit('Client:CharacterSelect:Create', character.id.split('-')[1]); + }); + return; + } + + alt.emit('Client:CharacterSelect:Select', cid); + }); +}); \ No newline at end of file diff --git a/resources/roleplay/client/login/characterSelect/index.html b/resources/roleplay/client/login/characterSelect/index.html new file mode 100644 index 0000000..34640bf --- /dev/null +++ b/resources/roleplay/client/login/characterSelect/index.html @@ -0,0 +1,43 @@ + + + + + + + + +
    +
    +
    +
    + Character Image +
    +
    +

    Character erstellen

    +

    +
    +
    +
    +
    + Character Image +
    +
    +

    Character erstellen

    +

    +
    +
    +
    +
    + Character Image +
    +
    +

    Character erstellen

    +

    +
    +
    +
    +
    + + + + \ No newline at end of file diff --git a/resources/roleplay/client/login/index.js b/resources/roleplay/client/login/index.js new file mode 100644 index 0000000..fb38a80 --- /dev/null +++ b/resources/roleplay/client/login/index.js @@ -0,0 +1,3 @@ +import('./login.client.js'); +import('./characterSelect.client.js'); +import('./spawnSelect.client.js'); \ No newline at end of file diff --git a/resources/roleplay/client/login/login.client.js b/resources/roleplay/client/login/login.client.js new file mode 100644 index 0000000..4733b65 --- /dev/null +++ b/resources/roleplay/client/login/login.client.js @@ -0,0 +1,33 @@ +import * as alt from 'alt-client'; +import * as events from '../../shared/events.js'; +import * as views from '../../shared/views.js'; +import { hideBrowser, showBrowser } from '../../shared/functions/client/functions.client.js'; + +let loginWebView; +function createBrowser() { + loginWebView = new alt.WebView(views.LOGIN); + + loginWebView.on('Client:Login:Login', (password) => { + alt.emitServer(events.SERVER_LOGIN_LOGIN, password); + }); + + loginWebView.on('Client:Login:Register', (password, passwordRepeat) => { + alt.emitServer(events.SERVER_LOGIN_REGISTER, password, passwordRepeat); + }); +} + +alt.onServer(events.CLIENT_LOGIN_SHOW, (playerData) => { + createBrowser(); + showBrowser(loginWebView, alt); + + const { isRegistered } = playerData; + loginWebView.emit(events.CLIENT_LOGIN_ISLOGGEDIN, isRegistered); +}); + +alt.onServer(events.CLIENT_LOGIN_ERROR, (error) => { + loginWebView.emit(events.CLIENT_LOGIN_ERROR, error); +}); + +alt.onServer(events.CLIENT_LOGIN_HIDE, () => { + hideBrowser(loginWebView, alt); +}); \ No newline at end of file diff --git a/resources/roleplay/client/login/login/index.html b/resources/roleplay/client/login/login/index.html new file mode 100644 index 0000000..b50035b --- /dev/null +++ b/resources/roleplay/client/login/login/index.html @@ -0,0 +1,58 @@ + + + + + + + + + +
    +
    +
    +
    + + + Willkommen zurück! + + + Willkommen
    Neuling! +
    +
    +

    + + Logge dich ein um fortzufahren. + + + Es sieht so aus als hättest du keinen Account. + Bitte erstelle dir vorher einen Account um fortzufahren. + +

    +
    +
    + +
    +
    + Nightlife Logo +
    +
    +
    +

    +
    +
    + + +
    +
    + + +
    + +
    +
    +
    +
    + + + + \ No newline at end of file diff --git a/resources/roleplay/client/login/login/login.js b/resources/roleplay/client/login/login/login.js new file mode 100644 index 0000000..cd775a3 --- /dev/null +++ b/resources/roleplay/client/login/login/login.js @@ -0,0 +1,35 @@ +const alt = window.alt; + +let hasAccount = false; + +function showLogin(isRegistered) { + hasAccount = isRegistered; + document.querySelector(`#welcome_msg span[data-isLoggedIn=${hasAccount}]`).classList.remove('d-none'); + if (!hasAccount) { + document.getElementById('passwordRepeatInputDiv').classList.remove('d-none'); + } +} + +function showError(error) { + document.getElementById('errormsg').innerHTML = error; + document.getElementById('login-btn').disabled = false; +} + +alt.on('Client:Login:IsLoggedIn', showLogin); +alt.on('Client:Login:Error', showError); + + +document.querySelector('form').addEventListener('submit', (e) => { + e.preventDefault(); + + const loginBtn = document.getElementById('login-btn'); + if(loginBtn.disabled) return; + loginBtn.disabled = true; + + const password = document.getElementById('passwordInput').value; + const passwordRepeat = document.getElementById('passwordRepeatInput').value; + + hasAccount ? + alt.emit('Client:Login:Login', password) : + alt.emit('Client:Login:Register', password, passwordRepeat); +}); \ No newline at end of file diff --git a/resources/roleplay/client/login/spawnSelect.client.js b/resources/roleplay/client/login/spawnSelect.client.js new file mode 100644 index 0000000..5e00118 --- /dev/null +++ b/resources/roleplay/client/login/spawnSelect.client.js @@ -0,0 +1,29 @@ +import * as alt from 'alt-client'; +import * as events from '../../shared/events.js'; +import * as views from '../../shared/views.js'; +import { hideBrowser, showBrowser } from '../../shared/functions/client/functions.client.js'; +import * as variables from '../../shared/variables.js'; + +let spawnSelectWebView; +function createBrowser() { + spawnSelectWebView = new alt.WebView(views.SPAWN_SELECT); + + spawnSelectWebView.on(events.CLIENT_SPAWN_SELECT_SELECT, (spawnPoint) => { + spawnPoint = parseInt(spawnPoint); + if(!variables.SPAWN_SELECT_POINTS.includes(spawnPoint)) { + return; + } + + alt.emitServer(events.SERVER_SPAWN_SELECT_SELECT, spawnPoint); + }); +} + +alt.onServer(events.CLIENT_SPAWN_SELECT_SHOW, (lastPosition) => { + createBrowser(); + showBrowser(spawnSelectWebView, alt); + spawnSelectWebView.emit(events.CLIENT_SPAWN_SELECT_SHOW, lastPosition); +}); + +alt.onServer(events.CLIENT_SPAWN_SELECT_HIDE, () => { + hideBrowser(spawnSelectWebView, alt); +}); \ No newline at end of file diff --git a/resources/roleplay/client/login/spawnSelect/index.html b/resources/roleplay/client/login/spawnSelect/index.html new file mode 100644 index 0000000..deaa353 --- /dev/null +++ b/resources/roleplay/client/login/spawnSelect/index.html @@ -0,0 +1,20 @@ + + + + + + + + +
    +
    +
    +
    +

    Letzter Standort

    +
    +
    +
    + + + + \ No newline at end of file diff --git a/resources/roleplay/client/login/spawnSelect/spawnSelect.js b/resources/roleplay/client/login/spawnSelect/spawnSelect.js new file mode 100644 index 0000000..71f0446 --- /dev/null +++ b/resources/roleplay/client/login/spawnSelect/spawnSelect.js @@ -0,0 +1,15 @@ +alt.on('Client:SpawnSelect:Show', (lastPosition) => { + + if(!lastPosition) { + document.getElementById('spawnpoint-1').classList.add('pe-none'); + document.getElementById('spawnpoint-1').style.opacity = '0.5'; + document.getElementById('spawnpoint-1').style.cursor = 'not-allowed'; + } + + document.querySelectorAll('.spawnpoint').forEach(point => { + point.addEventListener('click', () => { + const spawnPoint = point.id.split('-')[1]; + alt.emit('Client:SpawnSelect:Select', spawnPoint); + }); + }); +}); \ No newline at end of file diff --git a/resources/roleplay/client/utils/gameControls.js b/resources/roleplay/client/utils/gameControls.js new file mode 100644 index 0000000..1ceb5db --- /dev/null +++ b/resources/roleplay/client/utils/gameControls.js @@ -0,0 +1,6 @@ +import * as alt from 'alt-client'; +import * as events from '../../shared/events.js'; + +alt.onServer(events.CLIENT_TOGGLE_GAME_CONTROLS, (toggle) => { + alt.toggleGameControls(toggle); +}); \ No newline at end of file diff --git a/resources/roleplay/client/utils/index.js b/resources/roleplay/client/utils/index.js new file mode 100644 index 0000000..7dd618c --- /dev/null +++ b/resources/roleplay/client/utils/index.js @@ -0,0 +1,3 @@ +import('./gameControls.js'); +import('./map.js'); +import('./timesync.js'); \ No newline at end of file diff --git a/resources/roleplay/client/utils/map.js b/resources/roleplay/client/utils/map.js new file mode 100644 index 0000000..446b3e7 --- /dev/null +++ b/resources/roleplay/client/utils/map.js @@ -0,0 +1,7 @@ +import * as alt from 'alt-client'; +import * as events from '../../shared/events.js'; +import { displayRadar } from 'natives'; + +alt.onServer(events.CLIENT_HIDE_MAP, (hide) => { + displayRadar(!hide); +}); \ No newline at end of file diff --git a/resources/roleplay/client/utils/timesync.js b/resources/roleplay/client/utils/timesync.js new file mode 100644 index 0000000..5281d9d --- /dev/null +++ b/resources/roleplay/client/utils/timesync.js @@ -0,0 +1,3 @@ +import * as natives from 'natives'; + +natives.pauseClock(true); \ No newline at end of file diff --git a/resources/roleplay/resource.toml b/resources/roleplay/resource.toml new file mode 100644 index 0000000..76dfa6e --- /dev/null +++ b/resources/roleplay/resource.toml @@ -0,0 +1,4 @@ +type = 'js' +main = 'server/index.js' +client-main = 'client/index.js' +client-files = [ 'client/*', 'shared/*'] diff --git a/resources/roleplay/server/Apis/VehicleAPI/cmd.js b/resources/roleplay/server/Apis/VehicleAPI/cmd.js new file mode 100644 index 0000000..9f4caea --- /dev/null +++ b/resources/roleplay/server/Apis/VehicleAPI/cmd.js @@ -0,0 +1,104 @@ +import VehicleAPI from '~server/Apis/VehicleAPI/index.js'; +import * as chat from 'alt:chat'; +import * as meta from '~shared/meta.js'; +import VehTuning from '~server/_classes/Vehicle/VehicleTuning.js'; + +const vehicleClass = new VehicleAPI(); +const VehicleTuningClass = new VehTuning(); + +/** + * Diese Funktion Spawnt ein Fahrzeug + * @param {alt.player} player + * @param {alt.vehicle.model} vehicleModel | + * @param {int} primR | In range of 0-255 + * @param {int} primG | In range of 0-255 + * @param {int} primB | In range of 0-255 + * @param {int} secR | In range of 0-255 + * @param {int} secG | In range of 0-255 + * @param {int} secB | In range of 0-255 + * @param {string} plate + * @returns + */ +chat.registerCmd('veh', (player, args) =>{ + const veh = { + model: args[0], + primR: args[1] || 0, + primG: args[2] || 0, + primB: args[3] || 0, + secR: args[4] || 0, + secG: args[5] || 0, + secB: args[6] || 0, + plate: args[7] || 'Admin' + }; + const primary = { + r: veh.primR, + g: veh.primG, + b: veh.primB + }; + const secondary = { + r: veh.secR, + g: veh.secG, + b: veh.secB + }; + vehicleClass.spawn(player, veh.model, primary, secondary, veh.plate); +}); + +chat.registerCmd('repair', (player) =>{ + if(!player.vehicle) return chat.send(player, global.text.trans(['error.vehicleapi.notFound'])); + vehicleClass.repair(player.vehicle); +}); + +chat.registerCmd('color', (player, args) =>{ + const primary = { + r: args[0], + g: args[1], + b: args[2], + a: args[3] + }; + const secondary = { + r: args[4], + g: args[5], + b: args[6], + a: args[7] + }; + if(!player.vehicle) return chat.send(player, global.text.trans(['error.vehicleapi.notFound'])); + VehicleTuningClass.color(player.vehicle, primary, secondary); +}); + +chat.registerCmd('neon', (player, args) =>{ + const position = { + front: args[0], + back: args[1], + left: args[2], + right: args[3] + }; + const rgba = { + r: args[4], + g: args[5], + b: args[6], + a: args[7] + }; + if(!player.vehicle) return chat.send(player, global.text.trans(['error.vehicleapi.notFound'])); + VehicleTuningClass.neon(player.vehicle, position, rgba); +}); + +chat.registerCmd('destroy', (player) =>{ + if(!player.vehicle) return chat.send(player, global.text.trans(['error.vehicleapi.notFound'])); + vehicleClass.destroy(player.vehicle); +}); + +chat.registerCmd('plate', (player, args) =>{ + const veh = { + plateText: args[0], + plateStyle: args[1] + }; + if(!player.vehicle) return chat.send(player, global.text.trans(['error.vehicleapi.notFound'])); + vehicleClass.licensplate(player.vehicle, veh.plateText, veh.plateStyle); +}); + + +chat.registerCmd('delete', (player) =>{ + if(!player.vehicle) return chat.send(player, global.text.trans(['error.vehicleapi.notFound'])); + vehicleClass.delete(player.vehicle.getMeta(meta.VID)); +}); +//TODO Clean Command \ No newline at end of file diff --git a/resources/roleplay/server/Apis/VehicleAPI/index.js b/resources/roleplay/server/Apis/VehicleAPI/index.js new file mode 100644 index 0000000..2aebf24 --- /dev/null +++ b/resources/roleplay/server/Apis/VehicleAPI/index.js @@ -0,0 +1,182 @@ +import * as alt from 'alt-server'; +import * as chat from 'alt:chat'; +import * as meta from '~shared/meta.js'; +import Vehicle from '~server/_classes/Vehicle/Vehicle.js'; +import VehTuning from '~server/_classes/Vehicle/VehicleTuning.js'; +import vehPos from '~server/_classes/Vehicle/VehiclePos.js'; +import VehData from '~server/_classes/Vehicle/VehicleData.js'; +import errorhandler from '~server/system/errorhandler/errorhandler'; + +const VehicleClass = new Vehicle(); +const VehicleTuningClass = new VehTuning(); +const vehiclePosClass = new vehPos(); +const vehicleDataClass = new VehData(); + +export default class VehicleAPI { + constructor() { + this.plateMaxLength = 8; + this.syncInterval = 1000 * 2; + } + + /** + * Loads all vehicles from the database and spawns them in the game world. + * @async + * @returns {Promise} + */ + async loadDB(){ + const all = await VehicleClass.findAll(); + all.forEach(async veh => { + const posRes = await vehiclePosClass.getByVid(veh.vid); + const tuningRes = await VehicleTuningClass.getByVid(veh.vid); + const { model } = await vehicleDataClass.getByOption({data_id: veh.data_id}); + + const spawnedVehicle = new alt.Vehicle(model, {...posRes.pos}, {...posRes.rot}); + spawnedVehicle.setMeta(meta.VID, veh.vid); + + this.licensplate(spawnedVehicle, veh.license_plate, veh.license_plate_style); + VehicleTuningClass.color(spawnedVehicle, tuningRes?.color?.primary, tuningRes?.color?.secondary); + VehicleTuningClass.neon(spawnedVehicle, tuningRes?.neon?.neon, tuningRes?.neon?.neonColor); + + alt.log('Vehicle Spawned with vid = ' + veh.vid); + + await setTimeout(() => {}, 300); + }); + } + + /** + * Spawns a vehicle for a player with the specified model, primary and secondary colors, and license plate. + * @async + * @param {alt.Player} player - The player who is spawning the vehicle. + * @param {string} vehicleModel - The model of the vehicle to spawn. + * @param {object} primary - The primary color of the vehicle. + * @param {int} primary.r | In range of 0-255 + * @param {int} primary.g | In range of 0-255 + * @param {int} primary.b | In range of 0-255 + * @param {object} secondary - The secondary color of the vehicle. + * @param {int} secondary.r | In range of 0-255 + * @param {int} secondary.g | In range of 0-255 + * @param {int} secondary.b | In range of 0-255 + * @param {string} plate - The license plate of the vehicle. + * @returns {Promise} + */ + async spawn(player, vehicleModel, primary, secondary, plate) { + if (plate.length > this.plateMaxLength) { + chat.send(player, global.text.trans(['error.vehicleapi.inputtolong'])); + return; + } + + const vehicleData = await vehicleDataClass.getByOption({model: vehicleModel}); + if (!vehicleData?.data_id) { + chat.send(player, global.text.trans(['error.vehicleapi.incorrectModel'])); + errorhandler('Vehicle model doesn\'t exists', 1700427894625); + } + + const newVehicle = await VehicleClass.create(vehicleData.data_id); + const vid = newVehicle.vid; + + newVehicle.createPos({ vid }); + newVehicle.createTuning({ vid }); + + let spawnedVehicle; + try { + spawnedVehicle = new alt.Vehicle(vehicleModel, {...player.pos}, {...player.rot}); + if(!spawnedVehicle){ + throw new Error(null); + } + + } catch (err) { + chat.send(player, global.text.trans(['error.vehicleapi.incorrectModel'])); + errorhandler('Vehicle model doesn\'t exists', 1700427894625); + return; + } + + spawnedVehicle.setMeta(meta.VID, vid); + VehicleTuningClass.color(spawnedVehicle, primary, secondary); + VehicleTuningClass.neon(spawnedVehicle, false, {r: 0, g: 0, b: 0, a: 0}); + this.licensplate(spawnedVehicle, plate); + + alt.emitClient(player, 'warpIntoVehicle', spawnedVehicle); + alt.log('Vehicle Spawned with vid = ' + vid); + } + + /** + * Repairs the vehicle + * @param {alt.Vehicle} vehicle + */ + repair(vehicle){ + vehicle.repair; + } + + /** + * This Function exists to sync Every Vehicles Position + */ + async sync() { + alt.setInterval(() =>{ + const all = alt.Vehicle.all; + all.forEach(Vehicle => { + if ([Vehicle.pos.x, Vehicle.pos.y, Vehicle.pos.z].some(isNaN)) { + return; + } + + const vid = Vehicle.getMeta(meta.VID); + vehiclePosClass.update(vid, Vehicle.pos, Vehicle.rot, Vehicle.dimension); + }); + }, this.syncInterval); + } + + /** + * Diese Funktion Löscht das Fahrzeug aus der Datenbank + * @param {int} vid + */ + async delete(vid) { + const veh = await this.getSpawnedVehicleByVid(vid); + if (veh) { + this.destroy(veh); + } + + return await VehicleClass.delete(vid); + } + + /** + * + * @param {alt.vehicle} vehicle + * @param {string} plate + * @param {int} plateStyle | 0 - 5 + * @returns {void} + */ + licensplate(vehicle, plate, style = 0) { + const vid = vehicle.getMeta(meta.VID); + if (style.len > this.plateStyleMaxLength) { + return false; + } + vehicle.numberPlateText = plate; + vehicle.numberPlateIndex = style; + + VehicleClass.update(vid, {license_plate: plate}); + VehicleTuningClass.updateByVid(vid, {license_plate_style: style}); + } + + /** + * This Function Destroys the Vehilce from The Game World + * @param {alt.vehicle} vehicle + */ + destroy(vehicle, putIntoGarage = false) { + vehicle.destroy(); + + if (putIntoGarage) { + //TODO Waiting on GarageAPI + } + } + + /** + * Returns the spawned vehicle object with the given VID. + * @param {number} vid - The VID of the vehicle to retrieve. + * @returns {alt.Vehicle|null} - The spawned vehicle object with the given VID, or null if not found. + */ + async getSpawnedVehicleByVid(vid) { + const all = alt.Vehicle.all; + return await all.forEach(vehicle => { + if (vehicle.getMeta(meta.VID) === vid) return vehicle; + }); + } +} diff --git a/resources/roleplay/server/Apis/index.js b/resources/roleplay/server/Apis/index.js new file mode 100644 index 0000000..48df8dd --- /dev/null +++ b/resources/roleplay/server/Apis/index.js @@ -0,0 +1 @@ +import('./VehicleAPI/cmd.js'); \ No newline at end of file diff --git a/resources/roleplay/server/_classes/Char/Char.js b/resources/roleplay/server/_classes/Char/Char.js new file mode 100644 index 0000000..367115d --- /dev/null +++ b/resources/roleplay/server/_classes/Char/Char.js @@ -0,0 +1,60 @@ +import CharModel from '~server/_db/models/char.model.js'; + +export default class Char { + + /** + * Creates a new character with the given first and last name. + * @param {string} firstname - The first name of the character. + * @param {string} lastname - The last name of the character. + * @returns {Promise} - A promise that resolves to the created character object. + */ + async create(firstname, lastname) { + return await CharModel.create({ + firstname, + lastname + }); + } + + /** + * Retrieves a character object from the database by its cid. + * @async + * @param {number} cid - The character ID to retrieve. + * @returns {Promise} - A Promise that resolves with the character object. + */ + async getByCid(cid) { + return await CharModel.findByPk(cid); + } + + /** + * Retrieves a character from the database by their PID. + * @async + * @param {number} pid - The PID of the character to retrieve. + * @returns {Promise} - A Promise that resolves with the retrieved character object. + */ + async getByPid(pid) { + return await CharModel.findOne({ + where: { + pid + } + }); + } + + /** + * Updates the first and last name of a character in the database. + * @async + * @param {number} cid - The character ID. + * @param {string} firstname - The new first name. + * @param {string} lastname - The new last name. + * @returns {Promise} - A promise that resolves to the number of affected rows. + */ + async update(cid, firstname, lastname) { + return await CharModel.update({ + firstname, + lastname + }, { + where: { + cid + } + }); + } +} \ No newline at end of file diff --git a/resources/roleplay/server/_classes/Char/CharPos.js b/resources/roleplay/server/_classes/Char/CharPos.js new file mode 100644 index 0000000..7ce987d --- /dev/null +++ b/resources/roleplay/server/_classes/Char/CharPos.js @@ -0,0 +1,53 @@ +import CharPosModel from '~server/_db/models/char_pos.model.js'; + +export default class CharPos { + + /** + * Creates a new CharPos document in the database. + * @async + * @param {string} cid - The ID of the character associated with the position. + * @returns {Promise} - The newly created CharPos document. + */ + async create(cid) { + return await CharPosModel.create({ + cid + }); + } + + /** + * Updates the position and dimension of a character. + * @async + * @param {number} cid - The character ID. + * @param {number} x - The new X position. + * @param {number} y - The new Y position. + * @param {number} z - The new Z position. + * @param {number} d - The new dimension. + * @returns {Promise} A Promise that resolves to the number of affected rows. + */ + async update(cid, x, y, z, d) { + return await CharPosModel.update({ + pos_x: x, + pos_y: y, + pos_z: z, + dimension: d + }, { + where: { + cid + } + }); + } + + /** + * Retrieves a character's position by their cid. + * @async + * @param {string} cid - The character's cid. + * @returns {Promise} - A Promise that resolves with the character's position object. + */ + async getByCid(cid) { + return await CharPosModel.findOne({ + where: { + cid + } + }); + } +} \ No newline at end of file diff --git a/resources/roleplay/server/_classes/Money/Bank/Account.js b/resources/roleplay/server/_classes/Money/Bank/Account.js new file mode 100644 index 0000000..ad6e734 --- /dev/null +++ b/resources/roleplay/server/_classes/Money/Bank/Account.js @@ -0,0 +1,35 @@ +import BankAccountModel from '~server/_db/models/bank_account.model.js'; + +export default class Account { + + /** + * Retrieves a bank account from the database by its cid. + * @async + * @param {string} cid - The cid of the bank account to retrieve. + * @returns {Promise} - A Promise that resolves with the retrieved bank account object. + */ + async get(cid) { + return await BankAccountModel.findOne({ + where: { + cid + } + }); + } + + /** + * Retrieves the balance of a bank account for a given character ID. + * @async + * @param {number} cid - The character ID to retrieve the balance for. + * @returns {(number|false)} The balance of the account, or false if the account does not exist or has no value. + */ + async getBalance(cid) { + const account = await this.get(cid); + if (!account) return false; + + return account.getValue() || false; + } + + async update() { + throw new Error('Will not be implemented at any time'); + } +} \ No newline at end of file diff --git a/resources/roleplay/server/_classes/Money/Bank/Bank.js b/resources/roleplay/server/_classes/Money/Bank/Bank.js new file mode 100644 index 0000000..12caf74 --- /dev/null +++ b/resources/roleplay/server/_classes/Money/Bank/Bank.js @@ -0,0 +1,14 @@ +import Transaktion from '../Transaction/Transaction.js'; + +export default class Bank { + /** + * Transfers a specified amount of money from one account to another. + * @param {string} fromCid - The ID of the account to transfer money from. + * @param {string} toCid - The ID of the account to transfer money to. + * @param {number} amount - The amount of money to transfer. + * @returns {Promise} - A Promise that resolves to true if the transfer was successful, false otherwise. + */ + transfer(fromCid, toCid, amount) { + return (new Transaktion(fromCid, toCid, amount)).transfer(); + } +} \ No newline at end of file diff --git a/resources/roleplay/server/_classes/Money/Bank/Iban.js b/resources/roleplay/server/_classes/Money/Bank/Iban.js new file mode 100644 index 0000000..c6f2927 --- /dev/null +++ b/resources/roleplay/server/_classes/Money/Bank/Iban.js @@ -0,0 +1,58 @@ +export default class Iban { + constructor() { + this.createTries = 0; + this.maxCreateTries = 10; + this.maxIdLength = 4; + this.defaultIbanStart = 'NL'; + + this.validIbanRegex = new RegExp(`^${this.defaultIbanStart}[0-9]{2}[A-Z]{4}[0-9]{10}$`); + } + + /** + * Creates a new IBAN for the given player ID. + * @param {number} pid - The player ID. + * @returns {string} The new IBAN. + */ + create(pid) { + this.handleCreateTries(pid); + + const year = this.getCurrentYear(); + const id = this.generateRandomId(); + const newIban = `${this.defaultIbanStart}${year}-${id}`; + + if (!this.validIbanRegex.test(newIban)) { + return this.create(pid); + } + + return newIban; + } + + /** + * Generates a random ID for the IBAN. + * @returns {number} A random ID. + */ + generateRandomId() { + return Math.floor(Math.random() * Math.pow(10, this.maxIdLength)); + } + + + /** + * Returns the current year. + * @returns {number} The current year. + */ + getCurrentYear() { + return new Date().getFullYear(); + } + + /** + * Increases the number of create tries for a given PID and throws an error if the number of tries exceeds 10. + * @param {number} pid - The PID to increase the create tries for. + * @throws {Error} - If the number of create tries exceeds 10. + */ + handleCreateTries(pid) { + this.createTries++; + if (this.createTries > this.maxCreateTries) { + throw new Error(`Failed to create a new IBAN on pid ${pid}.`); + } + } +} \ No newline at end of file diff --git a/resources/roleplay/server/_classes/Money/Transaction/Queue.js b/resources/roleplay/server/_classes/Money/Transaction/Queue.js new file mode 100644 index 0000000..916e50c --- /dev/null +++ b/resources/roleplay/server/_classes/Money/Transaction/Queue.js @@ -0,0 +1,80 @@ +import BankTransactionQueueModel from '~server/_db/models/bank_transaction_queue.model.js'; + +let queueRunning = false; +let intervalTime = 500; + +export default class Queue { + /** + * Creates an interval that calls the process method at a set interval time. + * @returns {void} + */ + createInterval() { + setInterval(() => { + this.process(); + }, intervalTime); + } + + /** + * Processes the transaction queue. + * @async + * @returns {Promise} + * @throws {Error} If there is an error while getting the queue. + */ + async process() { + if(queueRunning) return; + queueRunning = true; + + const queue = await this.getAll().catch((err) => { + throw new Error(err); + }); + if(!queue) return; + + // eslint-disable-next-line no-unused-vars + await queue.forEach(async (transaction) => { + //todo https://github.com/Nightlife-AltV/nightlife/issues/118 + }); + + queueRunning = false; + } + + /** + * Retrieves all bank transaction queue entries. + * @async + * @returns {Promise>} Returns the BankTransactionQueueModel instances. + */ + async getAll() { + return await BankTransactionQueueModel.findAll(); + } + + /** + * Inserts a new transaction into the bank transaction queue. + * @async + * @param {string} source - The IBAN of the source account. + * @param {string} target - The IBAN of the target account. + * @param {number} amount - The amount of money to be transferred. + * @param {string} type - The type of transaction (e.g. "deposit", "withdrawal", "transfer"). + * @returns {Promise} - A Promise that resolves with the newly created transaction object. + */ + async insert(source, target, amount, type) { + return await BankTransactionQueueModel.create({ + source_iban: source, + target_iban: target, + amount: amount, + type: type + }); + } + + /** + * Removes a bank transaction from the queue by its ID. + * @async + * @param {number} id - The ID of the bank transaction to remove. + * @returns {Promise} The number of rows deleted from the database. + */ + async remove(id) { + return await BankTransactionQueueModel.destroy({ + where: { + id: id + } + }); + } +} \ No newline at end of file diff --git a/resources/roleplay/server/_classes/Money/Transaction/Transaction.js b/resources/roleplay/server/_classes/Money/Transaction/Transaction.js new file mode 100644 index 0000000..aa0891a --- /dev/null +++ b/resources/roleplay/server/_classes/Money/Transaction/Transaction.js @@ -0,0 +1,67 @@ +import { TRANSFER_TYPES } from '~shared/bank.js'; +import Queue from './Queue.js'; + +export default class Transaction { + /** + * Creates a new Transaction instance. + * @constructor + * @param {string} fromCid - The CID of the account making the transaction. + * @param {string} toCid - The CID of the account receiving the transaction. + * @param {number} amount - The amount of money being transferred in the transaction. + */ + constructor(fromCid, toCid, amount) { + this.accountApi = new Account(); + this.queueApi = new Queue(); + + this.from = from; + this.to = to; + this.amount = amount; + } + + /** + * Transfer money from one account to another. + * @async + * @throws {Error} If there is not enough money in the source account or if either the an account is not found. + * @returns {Promise} Returns the result of inserting the transaction to the queue. + */ + async transfer() { + const hasEnoughMoney = await this.hasEnoughMoney(); + if(!hasEnoughMoney) throw new Error('Not enough money'); //todo add to text.json + + const sourceAccount = await this.accountApi.get(this.from); + const targetAccount = await this.accountApi.get(this.to); + + if(!sourceAccount || !targetAccount) throw new Error('Account not found'); //todo add to text.json + + return await this.insertToQueue(sourceAccount.iban, targetAccount.iban, this.amount); + } + + /** + * Checks if the account has enough balance to complete the transaction. + * @async + * @returns {Promise} Returns a boolean indicating if the account has enough balance. + */ + async hasEnoughMoney() { + const balance = await this.accountApi.getBalance(this.cid); + if(typeof balance === 'boolean') return false; + + return balance >= this.amount; + } + + /** + * Inserts a transaction to the queue. + * @async + * @param {string} sourceIban - The IBAN of the source account. + * @param {string} targetIban - The IBAN of the target account. + * @param {number} amount - The amount to transfer. + * @returns {Promise} - Resolves to true if the transaction was successfully inserted, false otherwise. + */ + async insertToQueue(sourceIban, targetIban, amount) { + try { + await this.queueApi.insert(sourceIban, targetIban, amount, TRANSFER_TYPES.TRANSFER); + return true; + } catch (err) { + return false; + } + } +} \ No newline at end of file diff --git a/resources/roleplay/server/_classes/Permissions/PermissionRoles.js b/resources/roleplay/server/_classes/Permissions/PermissionRoles.js new file mode 100644 index 0000000..0d947c0 --- /dev/null +++ b/resources/roleplay/server/_classes/Permissions/PermissionRoles.js @@ -0,0 +1,35 @@ +import PermissionRolesModel from '~server/_db/models/permisions_roles.model.js'; + +export default class PermissionRoles { + + /** + * Creates a new permission role with the given id and name. + * @async + * @param {number} id - The id of the role. + * @param {string} name - The name of the role. + * @returns {Promise} - A Promise that resolves with the created permission role object. + */ + async create(id, name) { + return await PermissionRolesModel.create({ + role_id: id, + role_name: name + }, { + ignoreDuplicates: true + }); + } + + /** + * Retrieves a permission role by its ID. + * + * @async + * @param {number} id - The ID of the permission role to retrieve. + * @returns {Promise} A Promise that resolves with the permission role object. + */ + async get(id) { + return await PermissionRolesModel.findOne({ + where: { + role_id: id + } + }); + } +} \ No newline at end of file diff --git a/resources/roleplay/server/_classes/Permissions/Permissons.js b/resources/roleplay/server/_classes/Permissions/Permissons.js new file mode 100644 index 0000000..f120a73 --- /dev/null +++ b/resources/roleplay/server/_classes/Permissions/Permissons.js @@ -0,0 +1,57 @@ +import PermissionModel from '~server/_db/models/permissions.model.js'; +import PermissionRoles from './PermissionRoles.js'; +import errorhandler from '~server/system/errorhandler/errorhandler.js'; + +export default class Permissions { + /** + * Represents a Permissions object. + * @constructor + */ + constructor() { + this.permissionsRoles = new PermissionRoles(); + } + + /** + * Updates the permissions of a role in the database. + * @async + * @param {number} id - The ID of the role to update. + * @param {string} permissions - The new permissions to assign to the role. + * @returns {Promise} - The number of rows affected by the update operation. + */ + async update(id, permissions) { + return await PermissionModel.update({ + permission: permissions + }, { + where: { + role_id: id + } + }); + } + + /** + * Checks if a user has a specific permission. + * @async + * @param {string} id - The user ID to check permissions for. + * @param {Array} requestedPermission - The permission(s) to check for. + * @returns {Promise} - Resolves to a boolean indicating whether the user has the requested permission(s). + */ + async has(id, requestedPermission) { + const role = await this.permissionsRoles.get(id).catch(() => null); + if (!role) return false; + + try { + const { permission } = await role.getRolePermissions(); + const isRoot = permission.includes('root'); + console.info(` + [Permissions] Someone requested permissions and is root. + If this is not you, please contact the server developers. + `); + if (isRoot) return true; + + return permission.some(permission => requestedPermission.includes(permission.permission)); + }catch(e) { + errorhandler(e, 1700427564639); + return false; + } + } +} \ No newline at end of file diff --git a/resources/roleplay/server/_classes/Player/Player.js b/resources/roleplay/server/_classes/Player/Player.js new file mode 100644 index 0000000..307dbf4 --- /dev/null +++ b/resources/roleplay/server/_classes/Player/Player.js @@ -0,0 +1,42 @@ +import PlayerModel from '~server/_db/models/player.model.js'; + +export default class PlayerClass { + + /** + * Creates a new player with the given cloud ID. + * @async + * @param {string} cloudId - The cloud ID of the player. + * @returns {Promise} - A promise that resolves with the created player object. + */ + async create(cloudId) { + return await PlayerModel.create({ pid: cloudId }); + } + + /** + * Get a player object by their pid. + * @async + * @param {number} pid - The player's pid. + * @returns {Promise} - A promise that resolves with the player object. + */ + async getByPid(pid) { + return await PlayerModel.findOne({ where: { pid } }); + } + + /** + * Updates the player's information. + * @throws {Error} Will not be implemented at any time. + */ + async update() { + throw new Error('Will not be implemented at any time'); + } + + /** + * Deletes a player from the database. + * @async + * @param {number} pid - The player ID to delete. + * @returns {Promise} - The number of rows deleted. + */ + async delete(pid) { + return await PlayerModel.destroy({ where: { pid } }); + } +} diff --git a/resources/roleplay/server/_classes/Player/PlayerData.js b/resources/roleplay/server/_classes/Player/PlayerData.js new file mode 100644 index 0000000..887a467 --- /dev/null +++ b/resources/roleplay/server/_classes/Player/PlayerData.js @@ -0,0 +1,64 @@ +import PlayerDataModel from '~server/_db/models/player_data.model.js'; +import bcrypt from 'bcryptjs'; +// eslint-disable-next-line no-unused-vars +import PlayerClass from './Player.js'; + +export default class PlayerData { + constructor() { + this.saltRounds = 10; + } + + /** + * Generates a salt using bcrypt with the specified number of rounds. + * @returns {string} The generated salt. + */ + generateSalt() { + return bcrypt.genSaltSync(this.saltRounds); + } + + /** + * Hashes a password using bcrypt and a salt. + * @param {string} password - The password to hash. + * @param {string} salt - The salt to use for hashing. + * @returns {string} The hashed password. + */ + hashPassword(password, salt) { + return bcrypt.hashSync(password, salt); + } + + /** + * Creates a new player data object. + * @param {PlayerClass} player - The player object. + * @param {Object} data - The data to be added to the player data object. + * @returns {Promise} - The newly created player data object. + */ + async create(player, data) { + return await player.createData({...data}); + } + + /** + * Retrieves player data from the database based on the provided player ID. + * @async + * @param {number} pid - The player ID to search for. + * @returns {Promise} - A Promise that resolves with the player data object if found, or null if not found. + */ + async get(pid) { + return await PlayerDataModel.findOne({ where: { pid } }); + } + + /** + * Update the player data. + * @throws {Error} Will not be implemented at any time. + */ + update() { + throw new Error('Will not be implemented at any time'); + } + + /** + * Deletes the player data. + * @throws {Error} Will not be implemented at any time. + */ + delete() { + throw new Error('Will not be implemented at any time'); + } +} \ No newline at end of file diff --git a/resources/roleplay/server/_classes/Vehicle/Utility/VehicleTuning.utility.js b/resources/roleplay/server/_classes/Vehicle/Utility/VehicleTuning.utility.js new file mode 100644 index 0000000..1f27963 --- /dev/null +++ b/resources/roleplay/server/_classes/Vehicle/Utility/VehicleTuning.utility.js @@ -0,0 +1,65 @@ +//eslint-disable-next-line no-unused-vars +import * as alt from 'alt-server'; +import * as meta from '~shared/meta.js'; + +export default class VehicleTuningUtility { + constructor() { + this.defaultColor = {primary: {b: 0, g: 0, r: 0}, secondary: {r: 0, g: 0, a: 0}}; + this.defaultNeon = {front: false, back: false, left: false, right: false}; + this.defaultNeonColor = {r: 0, g: 0, b: 0, a: 0}; + } + /** + * Diese Funktion setzt die Farbe des Autos + * @param {alt.Vehicle} vehicle + * @param {object} primary + * @param {int} primary.primR | In range of 0-255 + * @param {int} primary.primG | In range of 0-255 + * @param {int} primary.primB | In range of 0-255 + * @param {object} secondary + * @param {int} secondary.secR | In range of 0-255 + * @param {int} secondary.secG | In range of 0-255 + * @param {int} secondary.secB | In range of 0-255 + */ + async color(vehicle, primary, secondary) { + if(!primary) primary = this.defaultColor.primary; + if(!secondary) secondary = this.defaultColor.secondary; + + vehicle.customPrimaryColor = primary; + vehicle.customSecondaryColor = secondary; + + const vid = vehicle.getMeta(meta.VID); + return await this.updateByVid(vid, { + color: { + primary, + secondary + } + }); + } + + /** + * + * @param {alt.vehicle} Vehicle + * @param {object} position + * @param {boolean} front toggle + * @param {boolean} back toggle + * @param {boolean} left toggle + * @param {boolean} right toggle + * @param {object} rgba + * @param {int} r | In range of 0-255 + * @param {int} g | In range of 0-255 + * @param {int} b | In range of 0-255 + * @param {int} a | In range of 0-255 + */ + async neon(vehicle, position, rgba){ + if(!position) position = this.defaultNeon; + if(!rgba) rgba = this.defaultNeonColor; + + const vid = vehicle.getMeta(meta.VID); + vehicle.neon = position; + vehicle.neonColor = rgba; + this.updateByVid(vid, { + neon: vehicle.neon, + neonColor: vehicle.neonColor + }); + } +} \ No newline at end of file diff --git a/resources/roleplay/server/_classes/Vehicle/Vehicle.js b/resources/roleplay/server/_classes/Vehicle/Vehicle.js new file mode 100644 index 0000000..253bada --- /dev/null +++ b/resources/roleplay/server/_classes/Vehicle/Vehicle.js @@ -0,0 +1,48 @@ +import VehicleModel from '~server/_db/models/vehicles.model.js'; + +export default class Vehicle { + + /** + * Creates a new vehicle with the specified data ID. + * @param {int} data_id - The ID of the data associated with the vehicle. + * @returns {Promise} A promise that resolves to the created vehicle object. + */ + async create(data_id) { + return await VehicleModel.create({data_id: data_id}); + } + + /** + * Returns All Vehicles From The Database + */ + async findAll() { + return await VehicleModel.findAll(); + } + /** + * Get a Vehicle by vid + * @param {Int} vid + * @returns {VehicleModel | null} + */ + async getByVid(vid) { + return await VehicleModel.findOne({ where: { vid } }); + } + + /** + * Update a vehicle with the given data. + * @async + * @param {number} vid - The ID of the vehicle to update. + * @param {Object} data - The data to update the vehicle with. + * @returns {Promise} A promise that resolves with the updated vehicle data. + */ + async update(vid, data) { + return await VehicleModel.update(data, {where: {vid}}); + } + + /** + * Delete a Vehicle by vid + * @param {Int} vid + * @returns {Int} 0 = no Vehicle found, 1 = success + */ + async delete(vid) { + return await VehicleModel.destroy({ where: { vid } }); + } +} diff --git a/resources/roleplay/server/_classes/Vehicle/VehicleData.js b/resources/roleplay/server/_classes/Vehicle/VehicleData.js new file mode 100644 index 0000000..a9f9c06 --- /dev/null +++ b/resources/roleplay/server/_classes/Vehicle/VehicleData.js @@ -0,0 +1,41 @@ +import VehicleDataModel from '~server/_db/models/vehicle_data.model.js'; + +export default class VehData { + + /** + * Adds vehicle data to the database or updates it if it already exists. + * @async + * @param {Object} data - The data to be added to the database. + * @returns {Promise} - A promise that resolves with the added data. + */ + async add(data){ + return VehicleDataModel + .findOne({ where: {model: data.model}}) + .then(function(obj) { + //todo update this to use the update method + return obj ? obj.update(data.model, data) : VehicleDataModel.create({...data}); + }); + } + + /** + * Updates the data for a vehicle model in the database. + * @async + * @param {string} model - The model of the vehicle to update. + * @param {Object} data - The updated data for the vehicle. + * @returns {Promise} A promise that resolves with the updated vehicle data. + */ + async update(model, data) { + return VehicleDataModel.update(data, {where: {model}}); + } + + /** + * Retrieves vehicle data from the database based on the provided options. + * @async + * @param {Object} where - The options to filter the vehicle data by. + * @returns {Promise} - A promise that resolves with the retrieved vehicle data. + */ + async getByOption(where){ + return await VehicleDataModel.findOne({ where }); + } +} + diff --git a/resources/roleplay/server/_classes/Vehicle/VehiclePos.js b/resources/roleplay/server/_classes/Vehicle/VehiclePos.js new file mode 100644 index 0000000..8fa93b2 --- /dev/null +++ b/resources/roleplay/server/_classes/Vehicle/VehiclePos.js @@ -0,0 +1,38 @@ +import VehiclePosModel from '~server/_db/models/vehicle_pos.model.js'; + +export default class VehPos { + + /** + * Updates the position, rotation, and dimension of a vehicle in the database. + * @async + * @param {number} vid - The ID of the vehicle to update. + * @param {Object} pos - The new position of the vehicle. + * @param {Object} rot - The new rotation of the vehicle. + * @param {number} dimension - The new dimension of the vehicle. + * @returns {Promise} - The number of rows affected (should be 1). + */ + async update(vid, pos, rot, dimension) { + return await VehiclePosModel.update({ + pos, + rot, + dimension + }, { + where: { + vid + } + }); + } + + /** + * Get a Vehicle Position based on vid + * @param {Int} vid + * @returns {Promise | null} + */ + async getByVid(vid) { + return await VehiclePosModel.findOne({ + where: { + vid + } + }); + } +} \ No newline at end of file diff --git a/resources/roleplay/server/_classes/Vehicle/VehicleTuning.js b/resources/roleplay/server/_classes/Vehicle/VehicleTuning.js new file mode 100644 index 0000000..188f16a --- /dev/null +++ b/resources/roleplay/server/_classes/Vehicle/VehicleTuning.js @@ -0,0 +1,33 @@ +import VehicleTuningModel from '~server/_db/models/vehicle_tuning.model.js'; +import VehicleTuningUtility from './Utility/VehicleTuning.utility.js'; + +export default class VehTuning extends VehicleTuningUtility { + /** + * Get a Vehicle by vid + * @param {Int} vid + * @returns {VehicleTuningModel | null} + */ + async getByVid(vid) { + return await VehicleTuningModel.findOne({ where: { vid } }); + } + + /** + * Updates the VehicleTuningModel with the given data for the vehicle with the specified vid. + * @async + * @param {number} vid - The id of the vehicle to update. + * @param {Object} data - The data to update the vehicle with. + * @returns {Promise} A promise that resolves to the number of affected rows. + */ + async updateByVid(vid, data) { + return await VehicleTuningModel.update(data, {where: { vid }}); + } + + /** + * Delete a Vehicle by vid + * @param {Int} vid + * @returns {Int} 0 = no Vehicle found, 1 = success + */ + async delete(vid) { + return await VehicleTuningModel.destroy({ where: { vid } }); + } +} diff --git a/resources/roleplay/server/_core/index.js b/resources/roleplay/server/_core/index.js new file mode 100644 index 0000000..56d9ba3 --- /dev/null +++ b/resources/roleplay/server/_core/index.js @@ -0,0 +1,10 @@ +import('./sentry/sentry.js'); + +import dotenv from 'dotenv'; +import database from '~server/_db/index.js'; +import Texts from '~shared/text/Texts.js'; + +dotenv.config(); +database.init(); + +global.text = new Texts(); diff --git a/resources/roleplay/server/_core/sentry/sentry.js b/resources/roleplay/server/_core/sentry/sentry.js new file mode 100644 index 0000000..0d64f35 --- /dev/null +++ b/resources/roleplay/server/_core/sentry/sentry.js @@ -0,0 +1,15 @@ + +import Sentry from '@sentry/node'; +import dotenv from 'dotenv'; +dotenv.config(); + +if (process.env.NODE_ENV === 'production') { + Sentry.init({ + dsn: process.env.SENTRY_DSN, + + release: process.env.npm_package_version, + environment: process.env.NODE_ENV, + + tracesSampleRate: 0.8, + }); +} \ No newline at end of file diff --git a/resources/roleplay/server/_db/data_migration/permissions.default.js b/resources/roleplay/server/_db/data_migration/permissions.default.js new file mode 100644 index 0000000..5438d66 --- /dev/null +++ b/resources/roleplay/server/_db/data_migration/permissions.default.js @@ -0,0 +1,29 @@ +import * as roles from '~shared/roles.js'; +import PermissionRoles from '~server/_classes/Permissions/PermissionRoles.js'; +import Permissions from '~server/_classes/Permissions/Permissons.js'; + +const permissionClass = new Permissions(); +const permissionRolesClass = new PermissionRoles(); + +(async () => { + //eslint-disable-next-line no-unused-vars + for (const [key, element] of Object.entries(roles)) { + const permissionRole = await permissionRolesClass.create(element.id, element.name).catch(() => null); + const roleHasPermissions = await permissionRole.getRolePermissions(); + + if(roleHasPermissions) { + const differentLength = roleHasPermissions.permission.length !== element.permissions.length; + const isDifferent = roleHasPermissions.permission.some((el, i) => el !== element.permissions[i]); + if(!isDifferent || !differentLength) continue; + + await permissionClass.update(element.id, element.permissions); + + console.info(`Permissions for role ${element.id} updated!`); + }else { + await permissionRole.createRolePermissions({ + permission: element.permissions + }); + console.info(`Permissions for role ${element.id} created!`); + } + } +})(); \ No newline at end of file diff --git a/resources/roleplay/server/_db/data_migration_tests/bank_account.test.default.js b/resources/roleplay/server/_db/data_migration_tests/bank_account.test.default.js new file mode 100644 index 0000000..42c93ab --- /dev/null +++ b/resources/roleplay/server/_db/data_migration_tests/bank_account.test.default.js @@ -0,0 +1,11 @@ +import { CharTestObject } from '~shared/test/Char.test.js'; +import BankAccountModel from '../models/bank_account.model.js'; + +export const queuePosition = 11; + +export const execute = async () => { + BankAccountModel.create({ + cid: CharTestObject.cid, + iban: CharTestObject.bank.iban + }); +}; \ No newline at end of file diff --git a/resources/roleplay/server/_db/data_migration_tests/bank_values.test.default.js b/resources/roleplay/server/_db/data_migration_tests/bank_values.test.default.js new file mode 100644 index 0000000..3ffdce9 --- /dev/null +++ b/resources/roleplay/server/_db/data_migration_tests/bank_values.test.default.js @@ -0,0 +1,12 @@ +import { CharTestObject } from '~shared/test/Char.test.js'; +import BankValueModel from '../models/bank_value.model.js'; + +export const queuePosition = 12; + +export const execute = async () => { + BankValueModel.create({ + cid: CharTestObject.cid, + iban: CharTestObject.bank.iban, + balance: CharTestObject.bank.balance + }); +}; \ No newline at end of file diff --git a/resources/roleplay/server/_db/data_migration_tests/char.test.default.js b/resources/roleplay/server/_db/data_migration_tests/char.test.default.js new file mode 100644 index 0000000..b2d9c00 --- /dev/null +++ b/resources/roleplay/server/_db/data_migration_tests/char.test.default.js @@ -0,0 +1,14 @@ +import { CharTestObject } from '~shared/test/Char.test.js'; +import CharModel from '../models/char.model.js'; +import { PlayerTestObject } from '~shared/test/Player.test.js'; + +export const queuePosition = 4; + +export const execute = async () => { + CharModel.create({ + cid: CharTestObject.cid, + firstname: CharTestObject.firstname, + lastname: CharTestObject.lastname, + pid: PlayerTestObject.pid + }); +}; \ No newline at end of file diff --git a/resources/roleplay/server/_db/data_migration_tests/char_pos.test.default.js b/resources/roleplay/server/_db/data_migration_tests/char_pos.test.default.js new file mode 100644 index 0000000..14afbb5 --- /dev/null +++ b/resources/roleplay/server/_db/data_migration_tests/char_pos.test.default.js @@ -0,0 +1,14 @@ +import { CharTestObject } from '~shared/test/Char.test.js'; +import CharPosModel from '../models/char_pos.model.js'; + +export const queuePosition = 5; + +export const execute = async () => { + CharPosModel.create({ + cid: CharTestObject.cid, + pos_x: CharTestObject.pos.x, + pos_y: CharTestObject.pos.y, + pos_z: CharTestObject.pos.z, + dimension: CharTestObject.pos.dimension, + }); +}; \ No newline at end of file diff --git a/resources/roleplay/server/_db/data_migration_tests/permissions.test.default.js b/resources/roleplay/server/_db/data_migration_tests/permissions.test.default.js new file mode 100644 index 0000000..b3bdfec --- /dev/null +++ b/resources/roleplay/server/_db/data_migration_tests/permissions.test.default.js @@ -0,0 +1,31 @@ +import * as roles from '~shared/roles.js'; +import PermissionRoles from '~server/_classes/Permissions/PermissionRoles.js'; +import Permissions from '~server/_classes/Permissions/Permissons.js'; + +const permissionClass = new Permissions(); +const permissionRolesClass = new PermissionRoles(); + +export const queuePosition = 10; + +export const execute = async () => { + //eslint-disable-next-line no-unused-vars + for (const [key, element] of Object.entries(roles)) { + const permissionRole = await permissionRolesClass.create(element.id, element.name).catch(() => null); + const roleHasPermissions = await permissionRole.getRolePermissions(); + + if(roleHasPermissions) { + const differentLength = roleHasPermissions.permission.length !== element.permissions.length; + const isDifferent = roleHasPermissions.permission.some((el, i) => el !== element.permissions[i]); + if(!isDifferent || !differentLength) continue; + + await permissionClass.update(element.id, element.permissions); + + console.info(`Permissions for role ${element.id} updated!`); + }else { + await permissionRole.createRolePermissions({ + permission: element.permissions + }); + console.info(`Permissions for role ${element.id} created!`); + } + } +}; \ No newline at end of file diff --git a/resources/roleplay/server/_db/data_migration_tests/player.test.default.js b/resources/roleplay/server/_db/data_migration_tests/player.test.default.js new file mode 100644 index 0000000..6185477 --- /dev/null +++ b/resources/roleplay/server/_db/data_migration_tests/player.test.default.js @@ -0,0 +1,10 @@ +import { PlayerTestObject } from '~shared/test/Player.test.js'; +import PlayerModel from '../models/player.model.js'; + +export const queuePosition = 1; + +export const execute = async () => { + await PlayerModel.create({ + pid: PlayerTestObject.pid, + }); +}; \ No newline at end of file diff --git a/resources/roleplay/server/_db/data_migration_tests/player_data.test.default.js b/resources/roleplay/server/_db/data_migration_tests/player_data.test.default.js new file mode 100644 index 0000000..224471f --- /dev/null +++ b/resources/roleplay/server/_db/data_migration_tests/player_data.test.default.js @@ -0,0 +1,12 @@ +import { PlayerTestObject } from '~shared/test/Player.test.js'; +import PlayerDataModel from '../models/player_data.model.js'; + +export const queuePosition = 2; + +export const execute = async () => { + PlayerDataModel.create({ + pid: PlayerTestObject.pid, + password: PlayerTestObject.password, + salt: PlayerTestObject.salt, + }); +}; \ No newline at end of file diff --git a/resources/roleplay/server/_db/data_migration_tests/player_permissions.test.default.js b/resources/roleplay/server/_db/data_migration_tests/player_permissions.test.default.js new file mode 100644 index 0000000..64d3e6b --- /dev/null +++ b/resources/roleplay/server/_db/data_migration_tests/player_permissions.test.default.js @@ -0,0 +1,11 @@ +import { PlayerTestObject } from '~shared/test/Player.test.js'; +import PlayerPermissionModel from '../models/player_permission.model.js'; + +export const queuePosition = 3; + +export const execute = async () => { + PlayerPermissionModel.create({ + role_id: PlayerTestObject.role_id, + pid: PlayerTestObject.pid, + }); +}; \ No newline at end of file diff --git a/resources/roleplay/server/_db/data_migration_tests/vehicle.test.default.js b/resources/roleplay/server/_db/data_migration_tests/vehicle.test.default.js new file mode 100644 index 0000000..2d68e63 --- /dev/null +++ b/resources/roleplay/server/_db/data_migration_tests/vehicle.test.default.js @@ -0,0 +1,12 @@ +import { VehicleTestObject } from '~shared/test/Vehicle.test.js'; +import VehicleModel from '../models/vehicles.model.js'; + +export const queuePosition = 7; + +export const execute = async () => { + await VehicleModel.create({ + vid: VehicleTestObject.vid, + data_id: VehicleTestObject.data_id, + license_plate: VehicleTestObject.license_plate, + }); +}; \ No newline at end of file diff --git a/resources/roleplay/server/_db/data_migration_tests/vehicle_data.test.default.js b/resources/roleplay/server/_db/data_migration_tests/vehicle_data.test.default.js new file mode 100644 index 0000000..0c1ddfe --- /dev/null +++ b/resources/roleplay/server/_db/data_migration_tests/vehicle_data.test.default.js @@ -0,0 +1,21 @@ +import { VehicleTestObject } from '~shared/test/Vehicle.test.js'; +import VehicleDataModel from '../models/vehicle_data.model.js'; + +export const queuePosition = 6; + +export const execute = async () => { + VehicleDataModel.create({ + data_id: VehicleTestObject.data_id, + displayName: VehicleTestObject.data.displayName, + model: VehicleTestObject.data.model, + hash: VehicleTestObject.data.hash, + maxSpeed: VehicleTestObject.data.maxSpeed, + maxBraking: VehicleTestObject.data.maxBraking, + maxTraction: VehicleTestObject.data.maxTraction, + maxKnots: VehicleTestObject.data.maxKnots, + price: VehicleTestObject.data.price, + type: VehicleTestObject.data.type, + vehicleClass: VehicleTestObject.data.vehicleClass, + buyable: VehicleTestObject.data.buyable + }); +}; \ No newline at end of file diff --git a/resources/roleplay/server/_db/data_migration_tests/vehicle_pos.test.default.js b/resources/roleplay/server/_db/data_migration_tests/vehicle_pos.test.default.js new file mode 100644 index 0000000..546b664 --- /dev/null +++ b/resources/roleplay/server/_db/data_migration_tests/vehicle_pos.test.default.js @@ -0,0 +1,12 @@ +import { VehicleTestObject } from '~shared/test/Vehicle.test.js'; +import VehiclePosModel from '../models/vehicle_pos.model.js'; + +export const queuePosition = 8; + +export const execute = async () => { + await VehiclePosModel.create({ + vid: VehicleTestObject.vid, + pos: VehicleTestObject.pos, + rot: VehicleTestObject.rot, + }); +}; \ No newline at end of file diff --git a/resources/roleplay/server/_db/data_migration_tests/vehicle_tuning.test.default.js b/resources/roleplay/server/_db/data_migration_tests/vehicle_tuning.test.default.js new file mode 100644 index 0000000..12d1b98 --- /dev/null +++ b/resources/roleplay/server/_db/data_migration_tests/vehicle_tuning.test.default.js @@ -0,0 +1,13 @@ +import { VehicleTestObject } from '~shared/test/Vehicle.test.js'; +import VehicleTuningModel from '../models/vehicle_tuning.model.js'; + +export const queuePosition = 9; + +export const execute = async () => { + await VehicleTuningModel.create({ + vid: VehicleTestObject.vid, + neon: VehicleTestObject.neon, + color: VehicleTestObject.color, + license_plate_style: VehicleTestObject.license_plate_style, + }); +}; \ No newline at end of file diff --git a/resources/roleplay/server/_db/index.js b/resources/roleplay/server/_db/index.js new file mode 100644 index 0000000..754317a --- /dev/null +++ b/resources/roleplay/server/_db/index.js @@ -0,0 +1,138 @@ +import dotenv from 'dotenv'; +if(process.env.NODE_ENV === 'test') { + dotenv.config({ + path: '.env.test' + }); +}else { + dotenv.config(); +} + +import { Sequelize } from 'sequelize'; +import SequelizeModel from 'sequelize/lib/model'; +import fs from 'fs'; +import { setDBRunning } from '~shared/variables.js'; + +const database = new Sequelize( + process.env.DB_DATABASE, + process.env.DB_USER, + process.env.DB_PASSWORD, + { + port: process.env.DB_PORT, + dialect: process.env.DB_DIALECT, + logging: false, + pool: { + max: 5, + min: 0, + acquire: 30000, + idle: 10000, + }, + retry: { + max: 7, + }, + define: { + freezeTableName: true, + timestamps: false, + }, + } +); + +database.init = () => { + return new Promise((resolve, reject) => { + const orgFindAll = SequelizeModel.findAll; + SequelizeModel.findAll = function () { + return orgFindAll.apply(this, arguments).catch((err) => { + throw err; + }); + }; + const orgFindOne = SequelizeModel.findOne; + SequelizeModel.findOne = function () { + return orgFindOne.apply(this, arguments).catch((err) => { + throw err; + }); + }; + const orgFindOrCreate = SequelizeModel.findOrCreate; + SequelizeModel.findOrCreate = function () { + return orgFindOrCreate.apply(this, arguments).catch((err) => { + throw err; + }); + }; + const orgCreate = SequelizeModel.create; + SequelizeModel.create = function () { + return orgCreate.apply(this, arguments).catch((err) => { + throw err; + }); + }; + const orgUpdate = SequelizeModel.update; + SequelizeModel.update = function () { + return orgUpdate.apply(this, arguments).catch((err) => { + throw err; + }); + }; + const orgDestroy = SequelizeModel.destroy; + SequelizeModel.destroy = function () { + return orgDestroy.apply(this, arguments).catch((err) => { + throw err; + }); + }; + + database + .authenticate() + .then(() => { + fs.readdirSync('./resources/roleplay/server/_db/models').forEach(async (file) => { + if (!file.includes('.model')) return; + console.info('Loading model: ' + file); + import('../_db/models/' + file); + }); + }) + .catch((err) => { + console.info('Unable to connect to the database:', err); + reject(err); + }); + + + + setTimeout(async () => { + console.info(`Syncing database ${JSON.parse(process.env.DB_FORCE_SYNC) ? 'forced' : ''}`); + await database.sync({ + alter: true, + force: process.env.DB_FORCE_SYNC === 'true', + }); + + const serverPath = './resources/roleplay/server'; + const dataMigrationPath = `/_db/data_migration${process.env.NODE_ENV === 'test' ? '_tests' : ''}/`; + + let queue = []; + + fs.readdirSync(serverPath + dataMigrationPath).forEach(async (file) => { + if (!file.includes('.default')) return; + console.info('Loading data migration: ' + file); + const migrationFile = await import('../' + dataMigrationPath + file); + const queuePosition = migrationFile.queuePosition; + + if(queue[queuePosition] !== undefined) { + throw new Error(`Duplicate queue position ${queuePosition} in ${file}`); + } + queue[queuePosition] = migrationFile; + }); + + setTimeout(async () => { + queue = queue.filter((item) => item !== undefined); + for (let i = 0; i < queue.length; i++) { + console.info(`Running data migration ${i + 1}/${queue.length}`); + await queue[i].execute(); + } + }, 1000); + + + setDBRunning(true); + }, 1000); + + database.afterSync((connection) => { + console.info(`Successfully synced ${connection.name.plural}.`); + }); + + resolve(true); + }); +}; + +export default database; \ No newline at end of file diff --git a/resources/roleplay/server/_db/models/bank_account.model.js b/resources/roleplay/server/_db/models/bank_account.model.js new file mode 100644 index 0000000..60b9666 --- /dev/null +++ b/resources/roleplay/server/_db/models/bank_account.model.js @@ -0,0 +1,27 @@ +import { DataTypes, Model } from 'sequelize'; +import database from '../index.js'; +import BankValueModel from './bank_value.model.js'; + +export default class BankAccountModel extends Model {} + +BankAccountModel.init( + { + iban: { + type: DataTypes.STRING, + primaryKey: true, + allowNull: false, + }, + }, + { + sequelize: database, + tableName: 'bank_account', + timestamps: true, + } +); + +BankAccountModel.hasOne(BankValueModel, { + foreignKey: 'iban', + as: 'value', + onDelete: 'CASCADE', + onUpdate: 'CASCADE', +}); \ No newline at end of file diff --git a/resources/roleplay/server/_db/models/bank_transaction.model.js b/resources/roleplay/server/_db/models/bank_transaction.model.js new file mode 100644 index 0000000..69d3f73 --- /dev/null +++ b/resources/roleplay/server/_db/models/bank_transaction.model.js @@ -0,0 +1,35 @@ +import { DataTypes, Model } from 'sequelize'; +import database from '../index.js'; + +export default class BankTransactionModel extends Model {} + +BankTransactionModel.init( + { + id: { + type: DataTypes.INTEGER, + primaryKey: true, + autoIncrement: true, + }, + source_iban: { + type: DataTypes.STRING, + allowNull: false, + }, + target_iban: { + type: DataTypes.STRING, + allowNull: false, + }, + amount: { + type: DataTypes.INTEGER, + allowNull: false, + }, + type: { + type: DataTypes.STRING, + allowNull: false, + } + }, + { + sequelize: database, + tableName: 'bank_transaction', + timestamps: true, + } +); \ No newline at end of file diff --git a/resources/roleplay/server/_db/models/bank_transaction_queue.model.js b/resources/roleplay/server/_db/models/bank_transaction_queue.model.js new file mode 100644 index 0000000..187a925 --- /dev/null +++ b/resources/roleplay/server/_db/models/bank_transaction_queue.model.js @@ -0,0 +1,35 @@ +import { DataTypes, Model } from 'sequelize'; +import database from '../index.js'; + +export default class BankTransactionQueueModel extends Model {} + +BankTransactionQueueModel.init( + { + id: { + type: DataTypes.INTEGER, + primaryKey: true, + autoIncrement: true, + }, + source_iban: { + type: DataTypes.STRING, + allowNull: false, + }, + target_iban: { + type: DataTypes.STRING, + allowNull: false, + }, + amount: { + type: DataTypes.INTEGER, + allowNull: false, + }, + type: { + type: DataTypes.STRING, + allowNull: false, + } + }, + { + sequelize: database, + tableName: 'bank_transaction_queue', + timestamps: true, + } +); \ No newline at end of file diff --git a/resources/roleplay/server/_db/models/bank_value.model.js b/resources/roleplay/server/_db/models/bank_value.model.js new file mode 100644 index 0000000..1206858 --- /dev/null +++ b/resources/roleplay/server/_db/models/bank_value.model.js @@ -0,0 +1,19 @@ +import { DataTypes, Model } from 'sequelize'; +import database from '../index.js'; + +export default class BankValueModel extends Model {} + +BankValueModel.init( + { + balance: { + type: DataTypes.INTEGER, + allowNull: false, + defaultValue: 0, + }, + }, + { + sequelize: database, + tableName: 'bank_values', + timestamps: false, + } +); \ No newline at end of file diff --git a/resources/roleplay/server/_db/models/char.model.js b/resources/roleplay/server/_db/models/char.model.js new file mode 100644 index 0000000..6e36088 --- /dev/null +++ b/resources/roleplay/server/_db/models/char.model.js @@ -0,0 +1,42 @@ +import { DataTypes, Model } from 'sequelize'; +import database from '../index.js'; +import CharPosModel from './char_pos.model.js'; +import BankAccountModel from './bank_account.model.js'; + +export default class CharModel extends Model {} + +CharModel.init( + { + cid: { + type: DataTypes.INTEGER, + primaryKey: true, + autoIncrement: true, + }, + firstname: { + type: DataTypes.STRING, + allowNull: false, + }, + lastname: { + type: DataTypes.STRING, + allowNull: false, + }, + }, + { + sequelize: database, + tableName: 'char', + timestamps: true, + } +); + +CharModel.hasOne(CharPosModel, { + foreignKey: 'cid', + as: 'pos', + onDelete: 'CASCADE', + onUpdate: 'CASCADE', +}); + +CharModel.hasMany(BankAccountModel, { + foreignKey: 'cid', + as: 'bankAccounts', + onUpdate: 'CASCADE', +}); \ No newline at end of file diff --git a/resources/roleplay/server/_db/models/char_pos.model.js b/resources/roleplay/server/_db/models/char_pos.model.js new file mode 100644 index 0000000..a99c4d6 --- /dev/null +++ b/resources/roleplay/server/_db/models/char_pos.model.js @@ -0,0 +1,34 @@ +import { DataTypes, Model } from 'sequelize'; +import database from '../index.js'; + +export default class CharPosModel extends Model {} + +CharPosModel.init( + { + pos_x: { + type: DataTypes.FLOAT, + allowNull: false, + defaultValue: 0, + }, + pos_y: { + type: DataTypes.FLOAT, + allowNull: false, + defaultValue: 0, + }, + pos_z: { + type: DataTypes.FLOAT, + allowNull: false, + defaultValue: 0, + }, + dimension: { + type: DataTypes.INTEGER, + allowNull: false, + defaultValue: 0, + }, + }, + { + sequelize: database, + tableName: 'char_pos', + timestamps: true, + } +); \ No newline at end of file diff --git a/resources/roleplay/server/_db/models/permisions_roles.model.js b/resources/roleplay/server/_db/models/permisions_roles.model.js new file mode 100644 index 0000000..0e1f59b --- /dev/null +++ b/resources/roleplay/server/_db/models/permisions_roles.model.js @@ -0,0 +1,32 @@ +import { DataTypes, Model } from 'sequelize'; +import database from '../index.js'; +import PermissionModel from './permissions.model.js'; + +export default class PermissionRolesModel extends Model {} + +PermissionRolesModel.init( + { + role_id: { + type: DataTypes.INTEGER, + primaryKey: true, + allowNull: false, + }, + role_name: { + type: DataTypes.STRING, + allowNull: false, + unique: 'role_name' + } + }, + { + sequelize: database, + tableName: 'permission_roles', + timestamps: false, + } +); + +PermissionRolesModel.hasOne(PermissionModel, { + foreignKey: 'role_id', + as: 'rolePermissions', + onUpdate: 'CASCADE', + onDelete: 'CASCADE', +}); \ No newline at end of file diff --git a/resources/roleplay/server/_db/models/permissions.model.js b/resources/roleplay/server/_db/models/permissions.model.js new file mode 100644 index 0000000..e3e1d8c --- /dev/null +++ b/resources/roleplay/server/_db/models/permissions.model.js @@ -0,0 +1,20 @@ +import { DataTypes, Model } from 'sequelize'; +import database from '../index.js'; + +export default class PermissionModel extends Model {} + +PermissionModel.init( + { + permission: { + type: DataTypes.JSON, + defaultValue: [], + allowNull: false, + }, + }, + { + sequelize: database, + tableName: 'permission', + timestamps: false, + } +); + diff --git a/resources/roleplay/server/_db/models/player.model.js b/resources/roleplay/server/_db/models/player.model.js new file mode 100644 index 0000000..36fce65 --- /dev/null +++ b/resources/roleplay/server/_db/models/player.model.js @@ -0,0 +1,41 @@ +import { DataTypes, Model } from 'sequelize'; +import database from '../index.js'; +import PlayerDataModel from './player_data.model.js'; +import CharModel from './char.model.js'; +import PlayerPermissionModel from './player_permission.model.js'; + +export default class PlayerModel extends Model {} + +PlayerModel.init( + { + pid: { + type: DataTypes.INTEGER, + primaryKey: true, + }, + }, + { + sequelize: database, + tableName: 'player', + timestamps: false, + } +); + +PlayerModel.hasOne(PlayerDataModel, { + foreignKey: 'pid', + as: 'data', + onDelete: 'CASCADE', + onUpdate: 'CASCADE', +}); + +PlayerModel.hasMany(CharModel, { + foreignKey: 'pid', + as: 'char', + onDelete: 'CASCADE', + onUpdate: 'CASCADE', +}); + +PlayerModel.hasOne(PlayerPermissionModel, { + foreignKey: 'pid', + as: 'permission', + onDelete: 'CASCADE', +}); \ No newline at end of file diff --git a/resources/roleplay/server/_db/models/player_data.model.js b/resources/roleplay/server/_db/models/player_data.model.js new file mode 100644 index 0000000..760cb68 --- /dev/null +++ b/resources/roleplay/server/_db/models/player_data.model.js @@ -0,0 +1,20 @@ +import { DataTypes, Model } from 'sequelize'; +import database from '../index.js'; + +export default class PlayerDataModel extends Model {} + +PlayerDataModel.init( + { + password: { + type: DataTypes.STRING, + }, + salt: { + type: DataTypes.STRING, + } + }, + { + sequelize: database, + tableName: 'player_data', + timestamps: false, + } +); \ No newline at end of file diff --git a/resources/roleplay/server/_db/models/player_permission.model.js b/resources/roleplay/server/_db/models/player_permission.model.js new file mode 100644 index 0000000..45060a3 --- /dev/null +++ b/resources/roleplay/server/_db/models/player_permission.model.js @@ -0,0 +1,18 @@ +import { DataTypes, Model } from 'sequelize'; +import database from '../index.js'; + +export default class PlayerPermissionModel extends Model {} + +PlayerPermissionModel.init( + { + role_id: { + type: DataTypes.INTEGER, + allowNull: false, + }, + }, + { + sequelize: database, + tableName: 'player_permission', + timestamps: false, + } +); \ No newline at end of file diff --git a/resources/roleplay/server/_db/models/vehicle_data.model.js b/resources/roleplay/server/_db/models/vehicle_data.model.js new file mode 100644 index 0000000..37296a6 --- /dev/null +++ b/resources/roleplay/server/_db/models/vehicle_data.model.js @@ -0,0 +1,69 @@ +import { DataTypes, Model } from 'sequelize'; +import database from '../index.js'; + +export default class VehicleDataModel extends Model {} +/* + + data_id model model_hash max_speed price type buyable + Primary Key (int) string string int float string bool + + */ +VehicleDataModel.init( + { + data_id: { + type: DataTypes.INTEGER, + autoIncrement: true, + primaryKey: true, + }, + displayName: { + type: DataTypes.STRING, + allowNull: true + }, + model: { + type: DataTypes.STRING, + allowNull: true + }, + hash: { + type: DataTypes.STRING, + allowNull: true + }, + maxSpeed: { + type: DataTypes.INTEGER, + allowNull: true + }, + maxBraking: { + type: DataTypes.INTEGER, + allowNull: true + }, + maxTraction: { + type: DataTypes.INTEGER, + allowNull: true + }, + maxKnots: { + type: DataTypes.INTEGER, + allowNull: true + }, + price: { + type: DataTypes.FLOAT, + allowNull: true + }, + type: { + type: DataTypes.STRING, + allowNull: true + }, + vehicleClass: { + type: DataTypes.STRING, + allowNull: true + }, + buyable: { + type: DataTypes.BOOLEAN, + allowNull: true + } + }, + { + sequelize: database, + tableName: 'vehicle_data', + timestamps: true, + } +); + diff --git a/resources/roleplay/server/_db/models/vehicle_pos.model.js b/resources/roleplay/server/_db/models/vehicle_pos.model.js new file mode 100644 index 0000000..8a7dd3c --- /dev/null +++ b/resources/roleplay/server/_db/models/vehicle_pos.model.js @@ -0,0 +1,26 @@ +import { DataTypes, Model } from 'sequelize'; +import database from '../index.js'; + +export default class VehiclePosModel extends Model {} + +VehiclePosModel.init( + { + vid: { + type: DataTypes.INTEGER, + primaryKey: true, + }, + pos: { + type: DataTypes.JSON, + allowNull: true + }, + rot: { + type: DataTypes.JSON, + allowNull: true + } + }, + { + sequelize: database, + tableName: 'vehicle_pos', + timestamps: true, + } +); diff --git a/resources/roleplay/server/_db/models/vehicle_tuning.model.js b/resources/roleplay/server/_db/models/vehicle_tuning.model.js new file mode 100644 index 0000000..52dbeec --- /dev/null +++ b/resources/roleplay/server/_db/models/vehicle_tuning.model.js @@ -0,0 +1,30 @@ +import { DataTypes, Model } from 'sequelize'; +import database from '../index.js'; + +export default class VehicleTuningModel extends Model {} + +VehicleTuningModel.init( + { + vid: { + type: DataTypes.INTEGER, + primaryKey: true, + }, + neon: { + type: DataTypes.JSON, + allowNull: true + }, + color: { + type: DataTypes.JSON, + allowNull: true + }, + license_plate_style: { + type: DataTypes.INTEGER, + allowNull: true + } + }, + { + sequelize: database, + tableName: 'vehicle_tuning', + timestamps: false, + } +); \ No newline at end of file diff --git a/resources/roleplay/server/_db/models/vehicles.model.js b/resources/roleplay/server/_db/models/vehicles.model.js new file mode 100644 index 0000000..a38b320 --- /dev/null +++ b/resources/roleplay/server/_db/models/vehicles.model.js @@ -0,0 +1,49 @@ +import { DataTypes, Model } from 'sequelize'; +import database from '../index.js'; +import VehicleDataModel from './vehicle_data.model.js'; +import VehicleTuningModel from './vehicle_tuning.model.js'; +import VehiclePosModel from './vehicle_pos.model.js'; + +export default class VehicleModel extends Model {} + +VehicleModel.init( + { + vid: { + type: DataTypes.INTEGER, + autoIncrement: true, + primaryKey: true, + }, + data_id: { + type: DataTypes.INTEGER, + allowNull: false + }, + license_plate: { + type: DataTypes.STRING, + allowNull: true + } + }, + { + sequelize: database, + tableName: 'vehicle', + timestamps: true, + } +); +VehicleModel.belongsTo(VehicleDataModel,{ + foreignKey: 'data_id', + targetKey: 'data_id', + as: 'data', +}); + +VehicleModel.hasOne(VehicleTuningModel, { + foreignKey: 'vid', + as: 'tuning', + onDelete: 'CASCADE', + onUpdate: 'CASCADE', +}); + +VehicleModel.hasOne(VehiclePosModel, { + foreignKey: 'vid', + as: 'pos', + onDelete: 'CASCADE', + onUpdate: 'CASCADE', +}); diff --git a/resources/roleplay/server/_startup/blips/blips.js b/resources/roleplay/server/_startup/blips/blips.js new file mode 100644 index 0000000..ea1e7d1 --- /dev/null +++ b/resources/roleplay/server/_startup/blips/blips.js @@ -0,0 +1,26 @@ +import * as alt from 'alt-server'; +import * as blipConfig from '~shared/blipsConfig.js'; +import { BANKS } from '~shared/locations/banks.js'; +import { FUELSTATIONS } from '~shared/locations/fuelstations.js'; + +export function createBankBlips() { + BANKS.forEach(pos => { + const blip = new alt.PointBlip(pos.x, pos.y, pos.z, true); + blip.sprite = blipConfig.BANK.sprite; + blip.color = blipConfig.BANK.color; + blip.name = blipConfig.BANK.name; + blip.shortRange = true; + }); +} + + +export function createFuelStationBlips() { + FUELSTATIONS.forEach(posVector => { + const blip = new alt.PointBlip(posVector, true); + blip.sprite = blipConfig.FUELSTATION.sprite; + blip.color = blipConfig.FUELSTATION.color; + blip.name = blipConfig.FUELSTATION.name; + blip.shortRange = true; + }); +} + diff --git a/resources/roleplay/server/cmd/crawler.js b/resources/roleplay/server/cmd/crawler.js new file mode 100644 index 0000000..81bc2e7 --- /dev/null +++ b/resources/roleplay/server/cmd/crawler.js @@ -0,0 +1,53 @@ + +import axios from 'axios'; +import * as chat from 'alt:chat'; +import VehData from '~server/_classes/Vehicle/VehicleData.js'; +import errorhandler from '~server/system/errorhandler/errorhandler'; + +const VehicleDataClass = new VehData(); + +const URL = 'https://raw.githubusercontent.com/DurtyFree/gta-v-data-dumps/master/vehicles.json'; + +chat.registerCmd('crawler', async (player) => { + chat.send(player, '{FF0000} Crawler started'); + + try { + const { data } = await axios.get(URL); + + const parsedVehicles = []; + + await data.forEach((vehicle) => { + const model = vehicle.Name; + const displayName = vehicle.DisplayName.German; + const hash = vehicle.Hash; + const vehicleClass = vehicle.Class; + const type = vehicle.Type; + const maxBraking = vehicle.MaxBraking; + const maxSpeed = vehicle.MaxSpeed * 3.6; + const maxTraction = vehicle.MaxTraction; + const maxKnots = vehicle.MaxKnots; + + parsedVehicles.push({ + model, + displayName, + hash, + vehicleClass, + type, + maxBraking, + maxSpeed, + maxTraction, + maxKnots + }); + }); + + + await parsedVehicles.forEach((vehicle) => { + VehicleDataClass.add(vehicle); + }); + + chat.send(player, '{FF0000} Crawler finished'); + } catch (e) { + errorhandler(e, 1700427698632); + } + +}); \ No newline at end of file diff --git a/resources/roleplay/server/cmd/index.js b/resources/roleplay/server/cmd/index.js new file mode 100644 index 0000000..e498a2e --- /dev/null +++ b/resources/roleplay/server/cmd/index.js @@ -0,0 +1,3 @@ +import('./wep.js'); +import('./pos.js'); +import('./crawler.js'); \ No newline at end of file diff --git a/resources/roleplay/server/cmd/pos.js b/resources/roleplay/server/cmd/pos.js new file mode 100644 index 0000000..210cc99 --- /dev/null +++ b/resources/roleplay/server/cmd/pos.js @@ -0,0 +1,10 @@ +import * as chat from 'alt:chat'; + +chat.registerCmd('pos', (player) =>{ + chat.send(player, + `Deine Position: x: ${String(player.pos.x)} y: ${String(player.pos.y)} Z: ${String(player.pos.z)}` + ); + chat.send(player, + `Deine Rotation x: ${String(player.rot.x)} y: ${String(player.rot.y)} Z: ${String(player.rot.z)}` + ); +}); diff --git a/resources/roleplay/server/cmd/wep.js b/resources/roleplay/server/cmd/wep.js new file mode 100644 index 0000000..ad35974 --- /dev/null +++ b/resources/roleplay/server/cmd/wep.js @@ -0,0 +1,5 @@ +import * as chat from 'alt:chat'; +import * as alt from 'alt-server'; +chat.registerCmd('wep', (player, arg) =>{ + player.giveWeapon(alt.hash(arg), 9999, true); +}); \ No newline at end of file diff --git a/resources/roleplay/server/index.js b/resources/roleplay/server/index.js new file mode 100644 index 0000000..ff8eede --- /dev/null +++ b/resources/roleplay/server/index.js @@ -0,0 +1,6 @@ +//only import other files +import('./_core/index.js'); +import('./spawn/index.js'); +import('./cmd/index.js'); +import('./Apis/index.js'); +import('./system/index.js'); diff --git a/resources/roleplay/server/spawn/characerSelect.js b/resources/roleplay/server/spawn/characerSelect.js new file mode 100644 index 0000000..566e6ef --- /dev/null +++ b/resources/roleplay/server/spawn/characerSelect.js @@ -0,0 +1,62 @@ +import * as alt from 'alt-server'; +import * as events from '~shared/events.js'; +import * as meta from '~shared/meta.js'; +import PlayerClass from '~server/_classes/Player/Player.js'; +//eslint-disable-next-line no-unused-vars +import CharModel from '../_db/models/char.model.js'; + +const playerClass = new PlayerClass(); + +alt.on(events.SERVER_CHARACTER_SELECT_SHOW, async (player) => { + const dbPlayer = await playerClass.getByPid(player.getMeta(meta.PID)); + const characters = await dbPlayer?.getChar(); + alt.emitClient(player, events.CLIENT_CHARACTER_SELECT_SHOW, transformCharData(characters)); +}); + +alt.onClient(events.SERVER_CHARACTER_SELECT_SELECT, selectChar); + +alt.on(events.SERVER_CHARACTER_SELECT_SELECT, selectChar); + +//eslint-disable-next-line no-unused-vars +alt.onClient(events.SERVER_CHARACTER_SELECT_CREATE, async (player, slot) => { + const pid = player.getMeta(meta.PID); + const dbPlayer = await playerClass.getByPid(pid); + + const newChar = await dbPlayer.createChar({ + firstname: 'Max', //todo next tasks: let user decide the name + lastname: 'Mustermann', + }); + await newChar.createPos(); + alt.emit(events.SERVER_CHARACTER_SELECT_SELECT, player, newChar.cid); +}); + +/** + * Transforms character data to a simplified format. + * @param {Array} chars - An array of character objects. + * @returns {Array} - An array of transformed character objects. + */ +function transformCharData(chars) { + let transformedChars = []; + chars.forEach(char => { + transformedChars.push({ + cid: char.cid, + firstname: char.firstname, + lastname: char.lastname, + }); + }); + return transformedChars; +} + +/** + * Sets the selected character ID for the player + * and emits events to hide the character select screen + * and show the spawn select screen. + * @param {alt.player} player - The player object. + * @param {number} cid - The ID of the selected character. + * @returns {Promise} + */ +async function selectChar(player, cid) { + player.setMeta(meta.CID, cid); + alt.emitClient(player, events.CLIENT_CHARACTER_SELECT_HIDE); + alt.emit(events.SERVER_SPAWN_SELECT_SHOW, player); +} diff --git a/resources/roleplay/server/spawn/index.js b/resources/roleplay/server/spawn/index.js new file mode 100644 index 0000000..7e18364 --- /dev/null +++ b/resources/roleplay/server/spawn/index.js @@ -0,0 +1,4 @@ +import('./login.js'); +import('./characerSelect.js'); +import('./spawnSelect.js'); +import('./playerConnect.js'); \ No newline at end of file diff --git a/resources/roleplay/server/spawn/login.js b/resources/roleplay/server/spawn/login.js new file mode 100644 index 0000000..00e0af8 --- /dev/null +++ b/resources/roleplay/server/spawn/login.js @@ -0,0 +1,80 @@ +import * as alt from 'alt-server'; +import * as events from '~shared/events.js'; +import * as meta from '~shared/meta.js'; +import * as roles from '~shared/roles.js'; +import PlayerClass from '~server/_classes/Player/Player.js'; +import PlayerData from '~server/_classes/Player/PlayerData.js'; +import errorhandler from '~server/system/errorhandler/errorhandler'; + +const playerClass = new PlayerClass(); +const playerDataClass = new PlayerData(); + +alt.onClient(events.SERVER_LOGIN_LOGIN, loginPlayer); +alt.onClient(events.SERVER_LOGIN_REGISTER, registerPlayer); + +/** + * Logs in a player with the given password. + * @async + * @param {alt.player} player - The player to log in. + * @param {string} password - The password to use for authentication. + */ +async function loginPlayer(player, password) { + const playerCloudId = player.cloudID; + + try { + const playerData = await playerClass.getByPid(playerCloudId); + if(!playerData) { + alt.emitClient(player, events.CLIENT_LOGIN_ERROR, global.text.trans(['error.login.noAccountFound'])); + return; + } + + const playerSensibleData = await playerDataClass.get(playerData.pid); + const hashedPassword = playerDataClass.hashPassword(password, playerSensibleData.salt); + + if(hashedPassword !== playerSensibleData.password) { + alt.emitClient(player, events.CLIENT_LOGIN_ERROR, global.text.trans(['error.login.notCorrect'])); + return; + } + + player.setMeta(meta.PID, playerData.pid); + alt.emitClient(player, events.CLIENT_LOGIN_HIDE); + alt.emit(events.SERVER_CHARACTER_SELECT_SHOW, player); + } catch(e) { + errorhandler(e, 1700427736629); + alt.emitClient(player, events.CLIENT_LOGIN_ERROR, global.text.trans(['error.general.unexpectedError'])); + } +} + +/** + * Registers a player with a given password and password repeat. + * @param {alt.player} player - The player object. + * @param {string} password - The password to register with. + * @param {string} passwordRepeat - The repeated password to confirm registration. + * @returns {Promise} + */ +async function registerPlayer(player, password, passwordRepeat) { + const playerCloudId = player.cloudID; + + try { + if(password !== passwordRepeat) { + alt.emitClient(player, events.CLIENT_LOGIN_ERROR, global.text.trans(['error.login.passwordsDontMatch'])); + return; + } + + const newPlayer = await playerClass.create(playerCloudId); + const salt = playerDataClass.generateSalt(); + const hashedPassword = playerDataClass.hashPassword(password, salt); + + await playerDataClass.create(newPlayer, {password: hashedPassword, salt}); + + await newPlayer.createPermission({role_id: roles.DEFAULT_ROLE.id}); + + alt.emitClient(player, events.CLIENT_LOGIN_HIDE); + setTimeout(() => { + alt.emitClient(player, events.CLIENT_LOGIN_SHOW, { isRegistered: true }); + }, 100); + } catch(e) { + errorhandler(e, 1700427754625); + alt.emitClient(player, events.CLIENT_LOGIN_ERROR, global.text.trans(['error.general.unexpectedError'])); + } +} \ No newline at end of file diff --git a/resources/roleplay/server/spawn/playerConnect.js b/resources/roleplay/server/spawn/playerConnect.js new file mode 100644 index 0000000..5aae1a6 --- /dev/null +++ b/resources/roleplay/server/spawn/playerConnect.js @@ -0,0 +1,44 @@ +import * as alt from 'alt-server'; +import * as events from '~shared/events.js'; +import * as spawns from '~shared/spawns.js'; +import PlayerClass from '~server/_classes/Player/Player.js'; +import { isDBRunning } from '~shared/variables.js'; + +const playerClass = new PlayerClass(); +const defaultModel = 'mp_m_freemode_01'; + +alt.on('playerConnect', async player => { + if(!isDBRunning()) { + player.kick('Yo! Warte mal. Du warst schneller als der Server. Versuche es in ein paar Minuten noch einmal.'); + return; + } + + const playerCloudId = player.cloudID; + + if(!playerCloudId) { + alt.log('Someone joined without a player cloud id. Alt-V is probably down.'); + player.kick('Alt-V hat derzeit einige Probleme. Bitte versuche es später noch einmal.'); + return; + } + + spawnPlayer(player); + + alt.emitClient(player, events.CLIENT_HIDE_MAP, true); + alt.emitClient(player, events.CLIENT_TOGGLE_GAME_CONTROLS, true); + + const isRegistered = await playerClass.getByPid(playerCloudId); + alt.emitClient(player, events.CLIENT_LOGIN_SHOW, { isRegistered: isRegistered ? true : false }); +}); + +/** + * Spawns a player at the login spawn point with default model and rotation. + * @param {alt.player} player - The player to spawn. + */ +function spawnPlayer(player) { + player.model = defaultModel; + player.spawn(spawns.LOGIN_SPAWN); + + player.rot = spawns.LOGIN_SPAWN_ROTATION; + player.frozen = true; + player.visible = false; +} diff --git a/resources/roleplay/server/spawn/spawnSelect.js b/resources/roleplay/server/spawn/spawnSelect.js new file mode 100644 index 0000000..c88e04d --- /dev/null +++ b/resources/roleplay/server/spawn/spawnSelect.js @@ -0,0 +1,72 @@ +import * as alt from 'alt-server'; +import * as meta from '~shared/meta.js'; +import * as events from '~shared/events.js'; +import * as variables from '~shared/variables.js'; +import * as spawns from '~shared/spawns.js'; +import CharPos from '~server/_classes/Char/CharPos.js'; +import { getLastPosition } from '~shared/functions/server/functions.server.js'; + +const charPosClass = new CharPos(); + +alt.on(events.SERVER_SPAWN_SELECT_SHOW, async (player) => { + const lastPosition = await getLastPosition(player.getMeta(meta.CID)); + alt.emitClient(player, events.CLIENT_SPAWN_SELECT_SHOW, lastPosition); +}); + +alt.onClient(events.SERVER_SPAWN_SELECT_SELECT, selectSpawn); + +/** + * Selects a spawn point for the player and spawns them at that location. + * @param {alt.player} player - The player to spawn. + * @param {number} spawnPoint - The spawn point to use. + */ +function selectSpawn(player, spawnPoint) { + alt.emitClient(player, events.CLIENT_SPAWN_SELECT_HIDE); + spawnPlayer(player, spawnPoint); +} + +/** + * Spawns the player at the specified spawn point. + * @async + * @param {alt.player} player - The player to spawn. + * @param {number} spawnPoint - The spawn point to use. + * @returns {Promise} + */ +async function spawnPlayer(player, spawnPoint) { + const cid = player.getMeta(meta.CID); + switch(spawnPoint) { + case variables.SPAWN_SELECT_POINTS[0]: { + player.spawn(spawns.LOGIN_DEFAULT_SPAWN); + player.rot = spawns.LOGIN_DEFAULT_SPAWN_ROTATION; + player.dimension = spawns.LOGIN_DEFAULT_SPAWN_DIMENSION; + resetPlayer(player); + break; + } + + case variables.SPAWN_SELECT_POINTS[1]: { + const char = await charPosClass.getByCid(cid); + const lastPosition = await getLastPosition(cid); + if(!lastPosition) { + spawnPlayer(player, variables.SPAWN_SELECT_POINTS[0]); + return; + } + player.spawn(lastPosition); + player.dimension = char.dimension; + resetPlayer(player); + break; + } + } + + player.setMeta(meta.SYNC_ENABLED, true); +} + +/** + * Resets the player's state to default values. + * @param {alt.player} player - The player object to reset. + */ +function resetPlayer(player) { + player.frozen = false; + player.visible = true; + alt.emitClient(player, events.CLIENT_HIDE_MAP, false); + alt.emitClient(player, events.CLIENT_TOGGLE_GAME_CONTROLS, true); +} \ No newline at end of file diff --git a/resources/roleplay/server/system/charsync.js b/resources/roleplay/server/system/charsync.js new file mode 100644 index 0000000..ff290b1 --- /dev/null +++ b/resources/roleplay/server/system/charsync.js @@ -0,0 +1,26 @@ +import * as alt from 'alt-server'; +import CharPos from '~server/_classes/Char/CharPos.js'; +import * as meta from '~shared/meta.js'; +import errorhandler from './errorhandler/errorhandler'; + +const charPosClass = new CharPos(); +alt.setInterval(() =>{ + let all = alt.Player.all; + all.forEach(player => { + const playerSyncEnabled = player.getMeta(meta.SYNC_ENABLED); + const cid = player.getMeta(meta.CID); + if (!playerSyncEnabled || !cid) return; + + let x = player.pos.x; + let y = player.pos.y; + let z = player.pos.z; + let d = player.dimension; + try { + charPosClass.update(cid, x, y, z, d); + } catch (err) { + console.error(`[CHARSYNC] ${err} [${cid}]`); + errorhandler(err, 1700427792630); + } + + }); +},1000 * 2); \ No newline at end of file diff --git a/resources/roleplay/server/system/errorhandler/errorhandler.js b/resources/roleplay/server/system/errorhandler/errorhandler.js new file mode 100644 index 0000000..d4c9b50 --- /dev/null +++ b/resources/roleplay/server/system/errorhandler/errorhandler.js @@ -0,0 +1,15 @@ +import * as Sentry from '@sentry/node'; + +export default function errorhandler(err, id) { + if(process.env.NODE_ENV === 'production') { + Sentry.addBreadcrumb({ + category: 'Error ID', + message: id.toString(), + }); + + Sentry.captureException(err); + return; + } + + console.error(err, id); +} diff --git a/resources/roleplay/server/system/errorhandler/processErrors.js b/resources/roleplay/server/system/errorhandler/processErrors.js new file mode 100644 index 0000000..2289056 --- /dev/null +++ b/resources/roleplay/server/system/errorhandler/processErrors.js @@ -0,0 +1,9 @@ +import errorhandler from './errorhandler.js'; + +process.on('unhandledRejection', async (err) => { + errorhandler(err, 1700421967607); +}); + +process.on('uncaughtException', async (err) => { + errorhandler(err, 1700421972602); +}); \ No newline at end of file diff --git a/resources/roleplay/server/system/index.js b/resources/roleplay/server/system/index.js new file mode 100644 index 0000000..a2ad652 --- /dev/null +++ b/resources/roleplay/server/system/index.js @@ -0,0 +1,4 @@ +import('./errorhandler/processErrors.js'); +import('./charsync.js'); +import('./serverStarted.js'); +import('./timesync.js'); \ No newline at end of file diff --git a/resources/roleplay/server/system/serverStarted.js b/resources/roleplay/server/system/serverStarted.js new file mode 100644 index 0000000..66ac1b1 --- /dev/null +++ b/resources/roleplay/server/system/serverStarted.js @@ -0,0 +1,13 @@ +import VehicleAPI from '~server/Apis/VehicleAPI/index.js'; +const vehicleClass = new VehicleAPI(); +import { createBankBlips, createFuelStationBlips } from '~server/_startup/blips/blips.js'; + +console.info('[Nightlife] Successfully started server.'); +createBlips(); +vehicleClass.loadDB(); +vehicleClass.sync(); + +function createBlips() { + createBankBlips(); + createFuelStationBlips(); +} diff --git a/resources/roleplay/server/system/timesync.js b/resources/roleplay/server/system/timesync.js new file mode 100644 index 0000000..d980ef2 --- /dev/null +++ b/resources/roleplay/server/system/timesync.js @@ -0,0 +1,15 @@ +import * as alt from 'alt-server'; + +alt.setInterval(() =>{//Dont ask why they want all of this + const date = new Date(); + let year = date.getFullYear(); + let month = date.getMonth(); //Starts count at 0 + let day = date.getDate(); + let hour = date.getHours(); + let minute = date.getMinutes(); + let second = date.getSeconds(); + let all = alt.Player.all; + all.forEach(player => { + player.setDateTime(day, month, year, hour, minute, second); + }); +}, 1000 * 1); \ No newline at end of file diff --git a/resources/roleplay/shared/bank.js b/resources/roleplay/shared/bank.js new file mode 100644 index 0000000..53e1548 --- /dev/null +++ b/resources/roleplay/shared/bank.js @@ -0,0 +1,5 @@ +export const TRANSFER_TYPES = { + TRANSFER: 'transfer', + WITHDRAW: 'withdraw', + DEPOSIT: 'deposit' +}; \ No newline at end of file diff --git a/resources/roleplay/shared/blipsConfig.js b/resources/roleplay/shared/blipsConfig.js new file mode 100644 index 0000000..5a156be --- /dev/null +++ b/resources/roleplay/shared/blipsConfig.js @@ -0,0 +1,11 @@ +export const BANK = { + sprite: 605, + color: 46, + name: global.text.trans(['info.blips.bank']) +}; + +export const FUELSTATION = { + sprite: 361, + color: 29, + name: global.text.trans(['info.blips.fuelstation']) +}; \ No newline at end of file diff --git a/resources/roleplay/shared/events.js b/resources/roleplay/shared/events.js new file mode 100644 index 0000000..718f733 --- /dev/null +++ b/resources/roleplay/shared/events.js @@ -0,0 +1,40 @@ +// Client Events + +// Utils +export const CLIENT_HIDE_MAP = 'Client:HideMap'; +export const CLIENT_TOGGLE_GAME_CONTROLS = 'Client:ToggleGameControls'; +export const CLIENT_SHOW_CURSOR = 'Client:ShowCursor'; + +// Login +export const CLIENT_LOGIN_SHOW = 'Client:Login:Show'; +export const CLIENT_LOGIN_HIDE = 'Client:Login:Hide'; +export const CLIENT_LOGIN_ISLOGGEDIN = 'Client:Login:IsLoggedIn'; +export const CLIENT_LOGIN_ERROR = 'Client:Login:Error'; + +// Character Select +export const CLIENT_CHARACTER_SELECT_SHOW = 'Client:CharacterSelect:Show'; +export const CLIENT_CHARACTER_SELECT_HIDE = 'Client:CharacterSelect:Hide'; + +// Spawn Select +export const CLIENT_SPAWN_SELECT_SELECT = 'Client:SpawnSelect:Select'; +export const CLIENT_SPAWN_SELECT_SHOW = 'Client:SpawnSelect:Show'; +export const CLIENT_SPAWN_SELECT_HIDE = 'Client:SpawnSelect:Hide'; + +// Moneyhud +export const CLIENT_MONEYHUD_SHOW = 'Client:MoneyHud:Show'; +export const CLIENT_MONEYHUD_HIDE = 'Client:MoneyHud:Hide'; + +// Server Events + +// Login +export const SERVER_LOGIN_LOGIN = 'Server:Login:Login'; +export const SERVER_LOGIN_REGISTER = 'Server:Login:Register'; + +// Character Select +export const SERVER_CHARACTER_SELECT_SHOW = 'Server:CharacterSelect:Show'; +export const SERVER_CHARACTER_SELECT_CREATE = 'Server:CharacterSelect:Create'; +export const SERVER_CHARACTER_SELECT_SELECT = 'Server:CharacterSelect:Select'; + +// Spawn Select +export const SERVER_SPAWN_SELECT_SHOW = 'Server:SpawnSelect:Show'; +export const SERVER_SPAWN_SELECT_SELECT = 'Server:SpawnSelect:Select'; \ No newline at end of file diff --git a/resources/roleplay/shared/functions/client/functions.client.js b/resources/roleplay/shared/functions/client/functions.client.js new file mode 100644 index 0000000..6ff3295 --- /dev/null +++ b/resources/roleplay/shared/functions/client/functions.client.js @@ -0,0 +1,33 @@ +// eslint-disable-next-line no-unused-vars +import { WebView } from 'alt-client'; + + +/** + * Hides the specified browser and shows the game cursor. + * @param {WebView} browser - The browser to hide. + * @param {Alt} alt - The alt:V client object. + */ +export function hideBrowser(browser, alt) { + browser.unfocus(); + browser.destroy(); + alt.showCursor(false); + alt.toggleGameControls(false); +} + +/** + * Shows the specified browser and performs additional actions. + * + * @param {WebView} browser - The browser to show. + * @param {Alt} alt - The alternative text to display if the browser cannot be shown. + * @param {object} options - The additional options to perform. + * @param {boolean} options.showCursor - Whether to show the cursor or not. Default is true. + * @param {boolean} options.toggleGameControls - Whether to toggle game controls or not. Default is false. + */ +export function showBrowser(browser, alt, options = { + showCursor: true, + toggleGameControls: false +}) { + browser.focus(); + alt.showCursor(options.showCursor); + alt.toggleGameControls(options.toggleGameControls); +} \ No newline at end of file diff --git a/resources/roleplay/shared/functions/server/functions.server.js b/resources/roleplay/shared/functions/server/functions.server.js new file mode 100644 index 0000000..fc575a8 --- /dev/null +++ b/resources/roleplay/shared/functions/server/functions.server.js @@ -0,0 +1,16 @@ +import * as alt from 'alt-server'; +import CharPos from '~server/_classes/Char/CharPos.js'; + +/** + * Retrieves the last position of a character by their character ID (cid). + * @param {number} cid - The character ID. + * @returns {(alt.Vector3|boolean)} Returns the last position if it exists, otherwise returns false. + */ +export async function getLastPosition(cid) { + const char = await (new CharPos()).getByCid(cid); + const lastPosition = new alt.Vector3(Number(char.pos_x), Number(char.pos_y), Number(char.pos_z)); + if(Number(char.pos_x) === 0 && Number(char.pos_y) === 0 && Number(char.pos_z) === 0){ + return false; + } + return lastPosition; +} \ No newline at end of file diff --git a/resources/roleplay/shared/locations/banks.js b/resources/roleplay/shared/locations/banks.js new file mode 100644 index 0000000..356ee87 --- /dev/null +++ b/resources/roleplay/shared/locations/banks.js @@ -0,0 +1,13 @@ +import * as alt from 'alt-server'; + +export const BANKS = [ + new alt.Vector3(149.91, -1040.74, 29.374), + new alt.Vector3(-1212.63, -330.78, 37.59), + new alt.Vector3(-2962.47, 482.93, 15.5), + new alt.Vector3(-113.01, 6470.24, 31.43), + new alt.Vector3(314.16, -279.09, 53.97), + new alt.Vector3(-350.99, -49.99, 48.84), + new alt.Vector3(1175.02, 2706.87, 37.89), + new alt.Vector3(246.63, 223.62, 106.0), + new alt.Vector3(4477.57, -4464.34, 4.25), +]; \ No newline at end of file diff --git a/resources/roleplay/shared/locations/fuelstations.js b/resources/roleplay/shared/locations/fuelstations.js new file mode 100644 index 0000000..40b1170 --- /dev/null +++ b/resources/roleplay/shared/locations/fuelstations.js @@ -0,0 +1,45 @@ +import * as alt from 'alt-server'; + +export const FUELSTATIONS = [ + new alt.Vector3(-71.28, -1761.16, 29.48), + new alt.Vector3(264.74, -1260.98, 29.18), + new alt.Vector3(1208.66, -1402.64, 35.22), + new alt.Vector3(818.83, -1029.89, 26.17), + new alt.Vector3(1181.27, -329.57, 69.18), + new alt.Vector3(621.07, 269.52, 103.04), + new alt.Vector3(-1437.58, -276.38, 46.21), + new alt.Vector3(-2096.6, -318.15, 13.02), + new alt.Vector3(-1799.03, 803.11, 138.4), + new alt.Vector3(-524.84, -1211.02, 18.18), + new alt.Vector3(2581.56, 361.65, 108.46), + new alt.Vector3(-319.84, -1471.77, 30.55), + new alt.Vector3(175.31, -1561.73, 29.2), + new alt.Vector3(-723.72, -935.51, 19.21), + new alt.Vector3(-2555.31, 2334.01, 33.06), + new alt.Vector3(49.69, 2778.33, 57.88), + new alt.Vector3(264.15, 2607.05, 44.95), + new alt.Vector3(1207.56, 2660.2, 37.81), + new alt.Vector3(2538.0, 2593.83, 37.94), + new alt.Vector3(2680.01, 3265.0, 55.24), + new alt.Vector3(2005.07, 3774.33, 32.18), + new alt.Vector3(1688.42, 4930.85, 42.08), + new alt.Vector3(1039.34, 2671.78, 39.55), + new alt.Vector3(1785.58, 3330.47, 41.38), + new alt.Vector3(1702.79, 6416.86, 33.64), + new alt.Vector3(179.94, 6602.6, 31.85), + new alt.Vector3(-93.98, 6420.1, 31.48), + new alt.Vector3(5019.27, -5195.8, 2.52), + new alt.Vector3(4898.34, -5464.32, 30.51), + new alt.Vector3(5155.31, -5128.57, 2.31), + new alt.Vector3(5356.0, -5425.75, 49.24), + new alt.Vector3(5126.2, -5518.87, 53.94), + new alt.Vector3(5462.53, -5228.0, 27.26), + new alt.Vector3(5047.9, -4599.67, 2.94), + new alt.Vector3(4879.84, -4482.1, 10.05), + new alt.Vector3(5004.0, -5753.0, 16.0), + new alt.Vector3(5004.0, -5753.0, 16.0), + new alt.Vector3(5004.0, -5753.0, 16.0), + new alt.Vector3(4801.06, -4304.72, 4.94), + new alt.Vector3(5155.31, -5128.57, 2.31), + new alt.Vector3(4431.38, -4492.74, 4.21), +]; \ No newline at end of file diff --git a/resources/roleplay/shared/meta.js b/resources/roleplay/shared/meta.js new file mode 100644 index 0000000..37659f5 --- /dev/null +++ b/resources/roleplay/shared/meta.js @@ -0,0 +1,4 @@ +export const PID = 'pid'; +export const CID = 'cid'; +export const VID = 'vid'; +export const SYNC_ENABLED = 'syncEnabled'; diff --git a/resources/roleplay/shared/roles.js b/resources/roleplay/shared/roles.js new file mode 100644 index 0000000..59d18cb --- /dev/null +++ b/resources/roleplay/shared/roles.js @@ -0,0 +1,16 @@ +export const DEFAULT_ROLE = { + id: 0, + name: 'Default', + permissions: [] +}; +// todo +export const ADMIN_ROLE = { + id: 9, + name: 'Admin', + permissions: [] +}; +export const ROOT_ROLE = { + id: 10, + name: 'Projekt Leitung', + permissions: ['root'] +}; diff --git a/resources/roleplay/shared/spawns.js b/resources/roleplay/shared/spawns.js new file mode 100644 index 0000000..3cba1f1 --- /dev/null +++ b/resources/roleplay/shared/spawns.js @@ -0,0 +1,9 @@ +import * as altServer from 'alt-server'; + +export const LOGIN_SPAWN = new altServer.Vector3(416, -1600, 201); +export const LOGIN_SPAWN_ROTATION = new altServer.Vector3(0, 0, -40); + + +export const LOGIN_DEFAULT_SPAWN = new altServer.Vector3(-1045, -2750, 21); +export const LOGIN_DEFAULT_SPAWN_ROTATION = new altServer.Vector3(0, 0, -0.5); +export const LOGIN_DEFAULT_SPAWN_DIMENSION = 0; diff --git a/resources/roleplay/shared/test/Char.test.js b/resources/roleplay/shared/test/Char.test.js new file mode 100644 index 0000000..fe73a83 --- /dev/null +++ b/resources/roleplay/shared/test/Char.test.js @@ -0,0 +1,15 @@ +export const CharTestObject = { + cid: 1, + firstname: 'Max', + lastname: 'Mustermann', + pos: { + x: '120', + y: '120', + z: '120', + d: '1' + }, + bank: { + iban: 'DE12345678901234567890', + balance: 1000 + } +}; \ No newline at end of file diff --git a/resources/roleplay/shared/test/Player.test.js b/resources/roleplay/shared/test/Player.test.js new file mode 100644 index 0000000..0972920 --- /dev/null +++ b/resources/roleplay/shared/test/Player.test.js @@ -0,0 +1,7 @@ +export const PlayerTestObject = { + pid: 1, + password: '123', + salt: 'abc', + role_id: 10, + cloudId: 2, +}; \ No newline at end of file diff --git a/resources/roleplay/shared/test/Vehicle.test.js b/resources/roleplay/shared/test/Vehicle.test.js new file mode 100644 index 0000000..a8f4bdb --- /dev/null +++ b/resources/roleplay/shared/test/Vehicle.test.js @@ -0,0 +1,33 @@ +export const VehicleTestObject = { + data_id: 1, + vid: 1, + license_plate: 'ABC-123', + data: { + model: 'test', + displayName: 'Test', + hash: '#xyz', + vehicleClass: 'SUV', + type: 'SUV-Kombi', + maxBraking: 1, + maxSpeed: 200, + maxTraction: 1, + maxKnots: 12, + price: 1000, + buyable: true + }, + pos: { + x: '120', + y: '120', + z: '120', + d: '1' + }, + rot: { + x: '120', + y: '120', + z: '120', + d: '1' + }, + neon: {back: false, left: false, front: false, right: false}, + color: {primary: {b: 0, g: 0, r: 0}, secondary: {b: 0, g: 0, r: 0}}, + license_plate_style: 0 +}; \ No newline at end of file diff --git a/resources/roleplay/shared/text/Texts.js b/resources/roleplay/shared/text/Texts.js new file mode 100644 index 0000000..f9ea11b --- /dev/null +++ b/resources/roleplay/shared/text/Texts.js @@ -0,0 +1,107 @@ +import fs from 'fs'; + +const defaultTexts = JSON.parse(fs.readFileSync('./resources/roleplay/shared/text/texts.json', 'utf8')); + +export default class Texts { + constructor() { + this.file = defaultTexts; + } + + /** + * Translates the given key to a string using the stored translations. + * @param {string} key - The key to translate. + * @returns {string|null} The translated string, or null if the key is invalid or not found. + */ + trans(key) { + if (!key) return null; + + const searchKey = key[0]; + const translation = this.getText(searchKey); + if (!translation) return null; + + const searchValue = key.splice(1, key.length - 1); + let newString = this.processCustomStrings(translation, searchValue); + if (searchValue.length > 0) { + newString = this.processCustomValues(newString, searchValue); + } + + return newString; + } + + /** + * Replaces custom strings in a given string with their corresponding values. + * @param {string} string - The string to process. + * @param {string} searchValue - The value to search for. + * @returns {string|null} - The processed string, or null if the input string is null. + */ + processCustomStrings(string, searchValue) { + if (!string) return null; + if (typeof string !== 'string') return string; + + const regex = /{([^{}]+)(?=[^{}]*})}/; // eslint-disable-line + const matches = string.match(regex); + if (!matches) return string; + + matches.forEach((match) => { + const variable = match.replace('{', '').replace('}', ''); + const value = this.getText(variable); + string = string.replace(match, value); + }); + if (string.match(regex)) { + return this.processCustomStrings(string, searchValue); + } + return string; + } + + /** + * Replaces placeholders in a string with custom values. + * @param {string} string - The string to process. + * @param {Array} values - An array of values to replace the placeholders with. + * @returns {string|null} The processed string or null if the input string is null. + */ + processCustomValues(string, values) { + if (!string) return null; + if (typeof string !== 'string') return string; + + const regex = /(%[a-z])/; + + const stringArray = string.split(regex); + + let valueIndex = 0; + for (let i in stringArray) { + if (stringArray[i].match(regex)) { + stringArray[i] = stringArray[i].replace(stringArray[i], values[valueIndex]); + valueIndex++; + } + } + + string = stringArray.join(''); + return string; + } + + /** + * Get the translation for the given key. + * @param {string} key - The key to look up the translation for. + * @returns {string|null} - The translation for the given key, or null if the key is falsy. + */ + getText(key) { + if (!key) return null; + + const keyArray = key.split('.'); + let translation = this.file; + try { + keyArray.forEach((key) => { + translation = translation[key]; + }); + } catch (e) { + // translation not found + } + + if (!translation && this.translationTries === 0) { + this.translationTries++; + return this.getText(key, defaultTranslations); + } + this.translationTries = 0; + return translation || 'Translation not found'; + } +} \ No newline at end of file diff --git a/resources/roleplay/shared/text/texts.json b/resources/roleplay/shared/text/texts.json new file mode 100644 index 0000000..fee9ce9 --- /dev/null +++ b/resources/roleplay/shared/text/texts.json @@ -0,0 +1,33 @@ +{ + "success": {}, + "info": { + "blips": { + "bank": "Bank", + "fuelstation": "Tankstelle" + } + }, + "warning": {}, + "error": { + "general": { + "unexpectedError": "Ein unerwarteter Fehler ist aufgetreten. {error.general.tryAgainLater}", + "tryAgainLater": "Bitte versuche es später erneut." + }, + "command": { + "notFound": "{error.command.notFound} \"{command}\"" + }, + "login": { + "noAccountFound": "Mit diesem Social Club-Namen ist kein Konto verknüpft", + "notCorrect": "Das Passwort oder der Username ist nicht korrekt", + "passwordsDontMatch": "Passwörter stimmen nicht überein", + "passwordDontMatchSC": "Username does not match your social club name" + }, + "vehicleapi": { + "invalidId": "Ungültige ID angegeben!", + "incorrectModel": "Das eingegebende Model ist ungültig", + "vehicleSpawned": "Das Fahrzeug wurde gespawnt", + "notFound": "{FF0000}Du bist in keinem Fahrzeug", + "inputtolong": "{FF0000}Eine Eingabe ist falsch" + } + + } +} \ No newline at end of file diff --git a/resources/roleplay/shared/variables.js b/resources/roleplay/shared/variables.js new file mode 100644 index 0000000..6007c8a --- /dev/null +++ b/resources/roleplay/shared/variables.js @@ -0,0 +1,23 @@ +/** + * [0] - Job Center + * [1] - Last Location + */ +export const SPAWN_SELECT_POINTS = [0, 1]; + +let dbIsRunning = false; +/** + * Sets the value of the database running status. + * + * @param {boolean} value - The value to set for the database running status. + */ +export function setDBRunning(value) { + dbIsRunning = value; +} + +/** + * Checks if the database is running. + * @returns {boolean} Returns true if the database is running, false otherwise. + */ +export function isDBRunning() { + return dbIsRunning; +} \ No newline at end of file diff --git a/resources/roleplay/shared/views.js b/resources/roleplay/shared/views.js new file mode 100644 index 0000000..547b050 --- /dev/null +++ b/resources/roleplay/shared/views.js @@ -0,0 +1,4 @@ +export const LOGIN = 'http://resource/client/login/login/index.html'; +export const CHARACTER_SELECT = 'http://resource/client/login/characterSelect/index.html'; +export const SPAWN_SELECT = 'http://resource/client/login/spawnSelect/index.html'; +export const MONEY_HUD = 'http://resource/client/hud/moneyhud/index.html'; \ No newline at end of file diff --git a/tests/Integration/.gitkeep b/tests/Integration/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tests/Unit/.gitkeep b/tests/Unit/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tests/Unit/resources/roleplay/server/_classes/Char/Char.test.js b/tests/Unit/resources/roleplay/server/_classes/Char/Char.test.js new file mode 100644 index 0000000..08b60a7 --- /dev/null +++ b/tests/Unit/resources/roleplay/server/_classes/Char/Char.test.js @@ -0,0 +1,39 @@ +import Char from '~server/_classes/Char/Char'; +import { CharTestObject } from '~shared/test/Char.test'; +import { PlayerTestObject } from '~shared/test/Player.test'; + +const charClass = new Char(); + +describe('Char class', () => { + it('should create a new character', async () => { + const firstname = 'John'; + const lastname = 'Doe'; + const response = await charClass.create(firstname, lastname); + expect(response.firstname).toBe(firstname); + expect(response.lastname).toBe(lastname); + }); + + it('should retrieve a character by CID', async () => { + const cid = CharTestObject.cid; + const response = await charClass.getByCid(cid); + expect(response.cid).toBe(cid); + expect(response.firstname).toBe(CharTestObject.firstname); + expect(response.lastname).toBe(CharTestObject.lastname); + }); + + it('should retrieve a character by PID', async () => { + const response = await charClass.getByPid(PlayerTestObject.pid); + expect(response.cid).toBe(CharTestObject.cid); + expect(response.firstname).toBe(CharTestObject.firstname); + expect(response.lastname).toBe(CharTestObject.lastname); + + }); + + it('should update a character', async () => { + const cid = CharTestObject.cid; + const firstname = 'John'; + const lastname = 'Doe'; + const response = await charClass.update(cid, firstname, lastname); + expect(response[0].toString()).toMatch(/^[01]$/); + }); +}); \ No newline at end of file diff --git a/tests/Unit/resources/roleplay/server/_classes/Char/CharPos.test.js b/tests/Unit/resources/roleplay/server/_classes/Char/CharPos.test.js new file mode 100644 index 0000000..b85de14 --- /dev/null +++ b/tests/Unit/resources/roleplay/server/_classes/Char/CharPos.test.js @@ -0,0 +1,15 @@ +import CharPos from '~server/_classes/Char/CharPos'; +import { CharTestObject } from '~shared/test/Char.test'; + +const charPosClass = new CharPos(); + +describe('CharPos class', () => { + it('should create a new CharPos document in the database', async () => { + const cid = CharTestObject.cid; + const response = await charPosClass.create(cid); + expect(response).toHaveProperty('pos_x'); + expect(response).toHaveProperty('pos_y'); + expect(response).toHaveProperty('pos_z'); + expect(response).toHaveProperty('dimension'); + }); +}); \ No newline at end of file diff --git a/tests/Unit/resources/roleplay/server/_classes/Money/Bank/Account.test.js b/tests/Unit/resources/roleplay/server/_classes/Money/Bank/Account.test.js new file mode 100644 index 0000000..6887da2 --- /dev/null +++ b/tests/Unit/resources/roleplay/server/_classes/Money/Bank/Account.test.js @@ -0,0 +1,26 @@ +import Account from '~server/_classes/Money/Bank/Account.js'; +import { CharTestObject } from '~shared/test/Char.test.js'; + +const accountClass = new Account(); + +describe('Account class', () => { + it('should get a bank account by cid', async () => { + const response = await accountClass.get(CharTestObject.cid); + expect(response.iban).toBe(CharTestObject.bank.iban); + }); + + it('should get the balance of a bank account by cid', async () => { + const response = await accountClass.getBalance(CharTestObject.cid); + expect(response.balance).toBe(CharTestObject.bank.balance); + expect(response.iban).toBe(CharTestObject.bank.iban); + }); + + it('should not get the balance of a bank account by cid', async () => { + const response = await accountClass.getBalance(2); + expect(response).toBe(false); + }); + + it('should not update a bank account', async () => { + expect(accountClass.update()).rejects.toThrow(Error); + }); +}); \ No newline at end of file diff --git a/tests/Unit/resources/roleplay/server/_classes/Money/Bank/Bank.test.js b/tests/Unit/resources/roleplay/server/_classes/Money/Bank/Bank.test.js new file mode 100644 index 0000000..0070197 --- /dev/null +++ b/tests/Unit/resources/roleplay/server/_classes/Money/Bank/Bank.test.js @@ -0,0 +1,6 @@ +describe('Bank class', () => { + it('should transfer money from one account to another', async () => { + //todo + expect(true).toBe(true); + }); +}); \ No newline at end of file diff --git a/tests/Unit/resources/roleplay/server/_classes/Money/Bank/Iban.test.js b/tests/Unit/resources/roleplay/server/_classes/Money/Bank/Iban.test.js new file mode 100644 index 0000000..afd5818 --- /dev/null +++ b/tests/Unit/resources/roleplay/server/_classes/Money/Bank/Iban.test.js @@ -0,0 +1,35 @@ +import Iban from '~server/_classes/Money/Bank/Iban'; +const ibanClass = new Iban(); + +describe('Generate a random ID', () => { + it('should return a number', () => { + const id = ibanClass.generateRandomId(); + expect(typeof id).toBe('number'); + }); +}); + +describe('Get the current year', () => { + it('should return a number', () => { + const year = ibanClass.getCurrentYear(); + expect(typeof year).toBe('number'); + expect(year).toBe(new Date().getFullYear()); + }); +}); + +describe('Handle create tries', () => { + it('should throw an error if the number of tries exceeds the limit', () => { + expect(() => { + const newIban = new Iban(); + newIban.createTries = newIban.maxCreateTries; + newIban.handleCreateTries(1); + }).toThrow(Error); + }); + + it('should not throw an error if the number of tries does not exceed the limit', () => { + expect(() => { + const newIban = new Iban(); + newIban.createTries = newIban.maxCreateTries - 1; + newIban.handleCreateTries(1); + }).not.toThrow(Error); + }); +}); \ No newline at end of file diff --git a/tests/Unit/resources/roleplay/server/_classes/Permissions/PermissionRoles.test.js b/tests/Unit/resources/roleplay/server/_classes/Permissions/PermissionRoles.test.js new file mode 100644 index 0000000..98b9c2a --- /dev/null +++ b/tests/Unit/resources/roleplay/server/_classes/Permissions/PermissionRoles.test.js @@ -0,0 +1,17 @@ +import PermissionRoles from '~server/_classes/Permissions/PermissionRoles'; + +const permissionRoleClass = new PermissionRoles(); + +describe('PermissionRoles class', () => { + it('should create a permission role', async () => { + const response = await permissionRoleClass.create(1, 'test'); + expect(response.role_id).toBe(1); + expect(response.role_name).toBe('test'); + }); + + it('should get a permission role by id', async () => { + const response = await permissionRoleClass.get(1); + expect(response.role_id).toBe(1); + expect(response.role_name).toBe('test'); + }); +}); \ No newline at end of file diff --git a/tests/Unit/resources/roleplay/server/_classes/Permissions/Permissions.test.js b/tests/Unit/resources/roleplay/server/_classes/Permissions/Permissions.test.js new file mode 100644 index 0000000..09f9edf --- /dev/null +++ b/tests/Unit/resources/roleplay/server/_classes/Permissions/Permissions.test.js @@ -0,0 +1,20 @@ +import Permissions from '~server/_classes/Permissions/Permissons'; + +const permissionsClass = new Permissions(); + +describe('Permissions class', () => { + it('should update a role permission', async () => { + const response = await permissionsClass.update(9, ['test']); + expect(response[0]).toBe(1); + }); + + it('should check if a user has a permission and return false', async () => { + const response = await permissionsClass.has(9, ['root']); + expect(response).toBe(false); + }); + + it('should check if a user has a permission and return true', async () => { + const response = await permissionsClass.has(10, ['root']); + expect(response).toBe(true); + }); +}); \ No newline at end of file diff --git a/tests/Unit/resources/roleplay/server/_classes/Player/Player.test.js b/tests/Unit/resources/roleplay/server/_classes/Player/Player.test.js new file mode 100644 index 0000000..1b41641 --- /dev/null +++ b/tests/Unit/resources/roleplay/server/_classes/Player/Player.test.js @@ -0,0 +1,26 @@ +import PlayerClass from '~server/_classes/Player/Player'; +import { PlayerTestObject } from '~shared/test/Player.test'; + + +const playerClass = new PlayerClass(); + +describe('Player class', () => { + it('should create a new player', async () => { + const response = await playerClass.create(PlayerTestObject.cloudId); + expect(response.pid).toBe(PlayerTestObject.cloudId); + }); + + it('should retrieve a player by PID', async () => { + const response = await playerClass.getByPid(PlayerTestObject.cloudId); + expect(response.pid).toBe(PlayerTestObject.cloudId); + }); + + it('should throw an error when trying to update a player', async () => { + expect(playerClass.update()).rejects.toThrow(Error); + }); + + it('should delete a player', async () => { + const response = await playerClass.delete(PlayerTestObject.cloudId); + expect(response).toBe(1); + }); +}); \ No newline at end of file diff --git a/tests/Unit/resources/roleplay/server/_classes/Player/PlayerData.test.js b/tests/Unit/resources/roleplay/server/_classes/Player/PlayerData.test.js new file mode 100644 index 0000000..561868c --- /dev/null +++ b/tests/Unit/resources/roleplay/server/_classes/Player/PlayerData.test.js @@ -0,0 +1,38 @@ +import PlayerClass from '~server/_classes/Player/Player'; +import PlayerData from '~server/_classes/Player/PlayerData'; +import { PlayerTestObject } from '~shared/test/Player.test'; + +const playerDataClass = new PlayerData(); +const playerClass = new PlayerClass(); + +describe('PlayerData class', () => { + it('should create a new player data', async () => { + const player = await playerClass.getByPid(PlayerTestObject.pid); + const response = await playerDataClass.create(player, + { + password: PlayerTestObject.password, + salt: PlayerTestObject.salt + } + ); + + expect(response.pid).toBe(PlayerTestObject.pid); + expect(response.password).toBe(PlayerTestObject.password); + expect(response.salt).toBe(PlayerTestObject.salt); + }); + + it('should retrieve a player data by PID', async () => { + const response = await playerDataClass.get(PlayerTestObject.pid); + + expect(response.pid).toBe(PlayerTestObject.pid); + expect(response.password).toBe(PlayerTestObject.password); + expect(response.salt).toBe(PlayerTestObject.salt); + }); + + it('should throw an error when trying to update a player data', async () => { + expect(() => playerDataClass.delete()).toThrowError(Error); + }); + + it('should throw an error when trying to delete a player data', async () => { + expect(() => playerDataClass.delete()).toThrowError(Error); + }); +}); \ No newline at end of file diff --git a/tests/Unit/resources/roleplay/server/_classes/Vehicle/Vehicle.test.js b/tests/Unit/resources/roleplay/server/_classes/Vehicle/Vehicle.test.js new file mode 100644 index 0000000..f9a0bb8 --- /dev/null +++ b/tests/Unit/resources/roleplay/server/_classes/Vehicle/Vehicle.test.js @@ -0,0 +1,37 @@ +import Vehicle from '~server/_classes/Vehicle/Vehicle'; +import { VehicleTestObject } from '~shared/test/Vehicle.test'; + +const vehicleClass = new Vehicle(); + +describe('Vehicle class', () => { + it('should delete a vehicle', async () => { + const response = await vehicleClass.delete(VehicleTestObject.vid); + expect(response).toBe(1); + }); + + it('should create a new vehicle', async () => { + const response = await vehicleClass.create(VehicleTestObject.data_id); + expect(response.data_id).toBe(1); + expect(response.vid).toBe(2); + }); + + it('should retrieve all vehicles', async () => { + const response = await vehicleClass.findAll(); + expect(response.length).toBe(1); + }); + + it('should retrieve a vehicle by vid', async () => { + const response = await vehicleClass.getByVid(2); + expect(response.vid).toBe(2); + expect(response.data_id).toBe(VehicleTestObject.data_id); + }); + + it('should update a vehicle', async () => { + const response = await vehicleClass.update(VehicleTestObject.vid, + { + license_plate: VehicleTestObject.license_plate + } + ); + expect(response[0].toString()).toMatch(/^[01]$/); + }); +}); \ No newline at end of file diff --git a/tests/Unit/resources/roleplay/server/_classes/Vehicle/VehicleData.test.js b/tests/Unit/resources/roleplay/server/_classes/Vehicle/VehicleData.test.js new file mode 100644 index 0000000..7c50301 --- /dev/null +++ b/tests/Unit/resources/roleplay/server/_classes/Vehicle/VehicleData.test.js @@ -0,0 +1,32 @@ +import VehData from '~server/_classes/Vehicle/VehicleData'; +import { VehicleTestObject } from '~shared/test/Vehicle.test'; + +const vehicleDataClass = new VehData(); + +describe('VehicleData class', () => { + it('should add a new vehicle data', async () => { + // rename model to force a new entry + VehicleTestObject.data.model = 'test'; + const response = await vehicleDataClass.add(VehicleTestObject.data); + + expect(response.model).toBe('test'); + expect(response.data_id).toBe(VehicleTestObject.data_id); + }); + + it('should update an existing vehicle data', async () => { + const response = await vehicleDataClass.add(VehicleTestObject.data); + expect(response.model).toBe(VehicleTestObject.data.model); + expect(response.data_id).toBe(VehicleTestObject.data_id); + }); + + it('should update a vehicle data by model', async () => { + const response = await vehicleDataClass.update(VehicleTestObject.data.model, {displayName: 'test'}); + expect(response[0].toString()).toMatch(/^[01]$/); + }); + + it('should get vehicle data by custom option', async () => { + const response = await vehicleDataClass.getByOption({displayName: 'test'}); + expect(response.displayName).toBe('test'); + expect(response.model).toBe(VehicleTestObject.data.model); + }); +}); \ No newline at end of file diff --git a/tests/Unit/resources/roleplay/server/_classes/Vehicle/VehiclePos.test.js b/tests/Unit/resources/roleplay/server/_classes/Vehicle/VehiclePos.test.js new file mode 100644 index 0000000..fe7f1f0 --- /dev/null +++ b/tests/Unit/resources/roleplay/server/_classes/Vehicle/VehiclePos.test.js @@ -0,0 +1,34 @@ +import VehPos from '~server/_classes/Vehicle/VehiclePos'; +import VehiclePosModel from '~server/_db/models/vehicle_pos.model'; +import { VehicleTestObject } from '~shared/test/Vehicle.test'; + +const vehPos = new VehPos(); + +describe('VehiclePos class', () => { + it('should update a position for a vehicle', async () => { + VehiclePosModel.create({ + vid: VehicleTestObject.vid + 1, + pos: VehicleTestObject.pos, + rot: VehicleTestObject.rot, + dimension: VehicleTestObject.dimension + }); + + // rename vid to force an update + VehicleTestObject.pos.x = 1; + + //eslint-disable-next-line max-len + const response = await vehPos.update(VehicleTestObject.vid, VehicleTestObject.pos, VehicleTestObject.rot, VehicleTestObject.dimension); + expect(response[0].toString()).toMatch(/^[01]$/); + }); + + it('should get a vehicle position by vid', async () => { + const response = await vehPos.getByVid(VehicleTestObject.vid); + expect(response.pos.x).toBe(VehicleTestObject.pos.x); + expect(response.pos.y).toBe(VehicleTestObject.pos.y); + expect(response.pos.z).toBe(VehicleTestObject.pos.z); + expect(response.rot.x).toBe(VehicleTestObject.rot.x); + expect(response.rot.y).toBe(VehicleTestObject.rot.y); + expect(response.rot.z).toBe(VehicleTestObject.rot.z); + expect(response.dimension).toBe(VehicleTestObject.dimension); + }); +}); \ No newline at end of file