diff --git a/.gitignore b/.gitignore
index 9eaf23ab..c64be15a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -89,3 +89,4 @@ CLAUDE.md
# Research output
research_mining_*
.python-version
+src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/.bin/pino b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/.bin/pino
deleted file mode 120000
index 9855bfce..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/.bin/pino
+++ /dev/null
@@ -1 +0,0 @@
-../pino/bin.js
\ No newline at end of file
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/.bin/qrcode-terminal b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/.bin/qrcode-terminal
deleted file mode 120000
index 2a09d264..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/.bin/qrcode-terminal
+++ /dev/null
@@ -1 +0,0 @@
-../qrcode-terminal/bin/qrcode-terminal.js
\ No newline at end of file
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/.bin/semver b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/.bin/semver
deleted file mode 120000
index 5aaadf42..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/.bin/semver
+++ /dev/null
@@ -1 +0,0 @@
-../semver/bin/semver.js
\ No newline at end of file
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/.bin/tsc b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/.bin/tsc
deleted file mode 120000
index 0863208a..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/.bin/tsc
+++ /dev/null
@@ -1 +0,0 @@
-../typescript/bin/tsc
\ No newline at end of file
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/.bin/tsserver b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/.bin/tsserver
deleted file mode 120000
index f8f8f1a0..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/.bin/tsserver
+++ /dev/null
@@ -1 +0,0 @@
-../typescript/bin/tsserver
\ No newline at end of file
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/.package-lock.json b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/.package-lock.json
deleted file mode 100644
index 6a80b5f3..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/.package-lock.json
+++ /dev/null
@@ -1,1363 +0,0 @@
-{
- "name": "openjarvis-whatsapp-baileys-bridge",
- "version": "0.1.0",
- "lockfileVersion": 3,
- "requires": true,
- "packages": {
- "node_modules/@borewit/text-codec": {
- "version": "0.2.2",
- "resolved": "https://registry.npmjs.org/@borewit/text-codec/-/text-codec-0.2.2.tgz",
- "integrity": "sha512-DDaRehssg1aNrH4+2hnj1B7vnUGEjU6OIlyRdkMd0aUdIUvKXrJfXsy8LVtXAy7DRvYVluWbMspsRhz2lcW0mQ==",
- "license": "MIT",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/Borewit"
- }
- },
- "node_modules/@cacheable/memory": {
- "version": "2.0.8",
- "resolved": "https://registry.npmjs.org/@cacheable/memory/-/memory-2.0.8.tgz",
- "integrity": "sha512-FvEb29x5wVwu/Kf93IWwsOOEuhHh6dYCJF3vcKLzXc0KXIW181AOzv6ceT4ZpBHDvAfG60eqb+ekmrnLHIy+jw==",
- "license": "MIT",
- "dependencies": {
- "@cacheable/utils": "^2.4.0",
- "@keyv/bigmap": "^1.3.1",
- "hookified": "^1.15.1",
- "keyv": "^5.6.0"
- }
- },
- "node_modules/@cacheable/node-cache": {
- "version": "1.7.6",
- "resolved": "https://registry.npmjs.org/@cacheable/node-cache/-/node-cache-1.7.6.tgz",
- "integrity": "sha512-6Omk2SgNnjtxB5f/E6bTIWIt5xhdpx39fGNRQgU9lojvRxU68v+qY+SXXLsp3ZGukqoPjsK21wZ6XABFr/Ge3A==",
- "license": "MIT",
- "dependencies": {
- "cacheable": "^2.3.1",
- "hookified": "^1.14.0",
- "keyv": "^5.5.5"
- },
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@cacheable/utils": {
- "version": "2.4.1",
- "resolved": "https://registry.npmjs.org/@cacheable/utils/-/utils-2.4.1.tgz",
- "integrity": "sha512-eiFgzCbIneyMlLOmNG4g9xzF7Hv3Mga4LjxjcSC/ues6VYq2+gUbQI8JqNuw/ZM8tJIeIaBGpswAsqV2V7ApgA==",
- "license": "MIT",
- "dependencies": {
- "hashery": "^1.5.1",
- "keyv": "^5.6.0"
- }
- },
- "node_modules/@emnapi/runtime": {
- "version": "1.9.1",
- "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.1.tgz",
- "integrity": "sha512-VYi5+ZVLhpgK4hQ0TAjiQiZ6ol0oe4mBx7mVv7IflsiEp0OWoVsp/+f9Vc1hOhE0TtkORVrI1GvzyreqpgWtkA==",
- "ideallyInert": true,
- "license": "MIT",
- "optional": true,
- "peer": true,
- "dependencies": {
- "tslib": "^2.4.0"
- }
- },
- "node_modules/@hapi/boom": {
- "version": "9.1.4",
- "resolved": "https://registry.npmjs.org/@hapi/boom/-/boom-9.1.4.tgz",
- "integrity": "sha512-Ls1oH8jaN1vNsqcaHVYJrKmgMcKsC1wcp8bujvXrHaAqD2iDYq3HoOwsxwo09Cuda5R5nC0o0IxlrlTuvPuzSw==",
- "license": "BSD-3-Clause",
- "dependencies": {
- "@hapi/hoek": "9.x.x"
- }
- },
- "node_modules/@hapi/hoek": {
- "version": "9.3.0",
- "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz",
- "integrity": "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==",
- "license": "BSD-3-Clause"
- },
- "node_modules/@img/colour": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz",
- "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==",
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@img/sharp-darwin-arm64": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.5.tgz",
- "integrity": "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==",
- "cpu": [
- "arm64"
- ],
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "darwin"
- ],
- "peer": true,
- "engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
- },
- "optionalDependencies": {
- "@img/sharp-libvips-darwin-arm64": "1.2.4"
- }
- },
- "node_modules/@img/sharp-darwin-x64": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.34.5.tgz",
- "integrity": "sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==",
- "cpu": [
- "x64"
- ],
- "ideallyInert": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "darwin"
- ],
- "peer": true,
- "engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
- },
- "optionalDependencies": {
- "@img/sharp-libvips-darwin-x64": "1.2.4"
- }
- },
- "node_modules/@img/sharp-libvips-darwin-arm64": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.2.4.tgz",
- "integrity": "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==",
- "cpu": [
- "arm64"
- ],
- "license": "LGPL-3.0-or-later",
- "optional": true,
- "os": [
- "darwin"
- ],
- "peer": true,
- "funding": {
- "url": "https://opencollective.com/libvips"
- }
- },
- "node_modules/@img/sharp-libvips-darwin-x64": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.2.4.tgz",
- "integrity": "sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==",
- "cpu": [
- "x64"
- ],
- "ideallyInert": true,
- "license": "LGPL-3.0-or-later",
- "optional": true,
- "os": [
- "darwin"
- ],
- "peer": true,
- "funding": {
- "url": "https://opencollective.com/libvips"
- }
- },
- "node_modules/@img/sharp-libvips-linux-arm": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.2.4.tgz",
- "integrity": "sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==",
- "cpu": [
- "arm"
- ],
- "ideallyInert": true,
- "license": "LGPL-3.0-or-later",
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "funding": {
- "url": "https://opencollective.com/libvips"
- }
- },
- "node_modules/@img/sharp-libvips-linux-arm64": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.2.4.tgz",
- "integrity": "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==",
- "cpu": [
- "arm64"
- ],
- "ideallyInert": true,
- "license": "LGPL-3.0-or-later",
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "funding": {
- "url": "https://opencollective.com/libvips"
- }
- },
- "node_modules/@img/sharp-libvips-linux-ppc64": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.2.4.tgz",
- "integrity": "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==",
- "cpu": [
- "ppc64"
- ],
- "ideallyInert": true,
- "license": "LGPL-3.0-or-later",
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "funding": {
- "url": "https://opencollective.com/libvips"
- }
- },
- "node_modules/@img/sharp-libvips-linux-riscv64": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.2.4.tgz",
- "integrity": "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==",
- "cpu": [
- "riscv64"
- ],
- "ideallyInert": true,
- "license": "LGPL-3.0-or-later",
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "funding": {
- "url": "https://opencollective.com/libvips"
- }
- },
- "node_modules/@img/sharp-libvips-linux-s390x": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.2.4.tgz",
- "integrity": "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==",
- "cpu": [
- "s390x"
- ],
- "ideallyInert": true,
- "license": "LGPL-3.0-or-later",
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "funding": {
- "url": "https://opencollective.com/libvips"
- }
- },
- "node_modules/@img/sharp-libvips-linux-x64": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.2.4.tgz",
- "integrity": "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==",
- "cpu": [
- "x64"
- ],
- "ideallyInert": true,
- "license": "LGPL-3.0-or-later",
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "funding": {
- "url": "https://opencollective.com/libvips"
- }
- },
- "node_modules/@img/sharp-libvips-linuxmusl-arm64": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.2.4.tgz",
- "integrity": "sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==",
- "cpu": [
- "arm64"
- ],
- "ideallyInert": true,
- "license": "LGPL-3.0-or-later",
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "funding": {
- "url": "https://opencollective.com/libvips"
- }
- },
- "node_modules/@img/sharp-libvips-linuxmusl-x64": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.2.4.tgz",
- "integrity": "sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==",
- "cpu": [
- "x64"
- ],
- "ideallyInert": true,
- "license": "LGPL-3.0-or-later",
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "funding": {
- "url": "https://opencollective.com/libvips"
- }
- },
- "node_modules/@img/sharp-linux-arm": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.34.5.tgz",
- "integrity": "sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==",
- "cpu": [
- "arm"
- ],
- "ideallyInert": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
- },
- "optionalDependencies": {
- "@img/sharp-libvips-linux-arm": "1.2.4"
- }
- },
- "node_modules/@img/sharp-linux-arm64": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.34.5.tgz",
- "integrity": "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==",
- "cpu": [
- "arm64"
- ],
- "ideallyInert": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
- },
- "optionalDependencies": {
- "@img/sharp-libvips-linux-arm64": "1.2.4"
- }
- },
- "node_modules/@img/sharp-linux-ppc64": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.34.5.tgz",
- "integrity": "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==",
- "cpu": [
- "ppc64"
- ],
- "ideallyInert": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
- },
- "optionalDependencies": {
- "@img/sharp-libvips-linux-ppc64": "1.2.4"
- }
- },
- "node_modules/@img/sharp-linux-riscv64": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.34.5.tgz",
- "integrity": "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==",
- "cpu": [
- "riscv64"
- ],
- "ideallyInert": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
- },
- "optionalDependencies": {
- "@img/sharp-libvips-linux-riscv64": "1.2.4"
- }
- },
- "node_modules/@img/sharp-linux-s390x": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.34.5.tgz",
- "integrity": "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==",
- "cpu": [
- "s390x"
- ],
- "ideallyInert": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
- },
- "optionalDependencies": {
- "@img/sharp-libvips-linux-s390x": "1.2.4"
- }
- },
- "node_modules/@img/sharp-linux-x64": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.34.5.tgz",
- "integrity": "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==",
- "cpu": [
- "x64"
- ],
- "ideallyInert": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
- },
- "optionalDependencies": {
- "@img/sharp-libvips-linux-x64": "1.2.4"
- }
- },
- "node_modules/@img/sharp-linuxmusl-arm64": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.34.5.tgz",
- "integrity": "sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==",
- "cpu": [
- "arm64"
- ],
- "ideallyInert": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
- },
- "optionalDependencies": {
- "@img/sharp-libvips-linuxmusl-arm64": "1.2.4"
- }
- },
- "node_modules/@img/sharp-linuxmusl-x64": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.34.5.tgz",
- "integrity": "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==",
- "cpu": [
- "x64"
- ],
- "ideallyInert": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
- },
- "optionalDependencies": {
- "@img/sharp-libvips-linuxmusl-x64": "1.2.4"
- }
- },
- "node_modules/@img/sharp-wasm32": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.34.5.tgz",
- "integrity": "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==",
- "cpu": [
- "wasm32"
- ],
- "ideallyInert": true,
- "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",
- "optional": true,
- "peer": true,
- "dependencies": {
- "@emnapi/runtime": "^1.7.0"
- },
- "engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
- }
- },
- "node_modules/@img/sharp-win32-arm64": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.34.5.tgz",
- "integrity": "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==",
- "cpu": [
- "arm64"
- ],
- "ideallyInert": true,
- "license": "Apache-2.0 AND LGPL-3.0-or-later",
- "optional": true,
- "os": [
- "win32"
- ],
- "peer": true,
- "engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
- }
- },
- "node_modules/@img/sharp-win32-ia32": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.34.5.tgz",
- "integrity": "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==",
- "cpu": [
- "ia32"
- ],
- "ideallyInert": true,
- "license": "Apache-2.0 AND LGPL-3.0-or-later",
- "optional": true,
- "os": [
- "win32"
- ],
- "peer": true,
- "engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
- }
- },
- "node_modules/@img/sharp-win32-x64": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.34.5.tgz",
- "integrity": "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==",
- "cpu": [
- "x64"
- ],
- "ideallyInert": true,
- "license": "Apache-2.0 AND LGPL-3.0-or-later",
- "optional": true,
- "os": [
- "win32"
- ],
- "peer": true,
- "engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
- }
- },
- "node_modules/@keyv/bigmap": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.3.1.tgz",
- "integrity": "sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ==",
- "license": "MIT",
- "dependencies": {
- "hashery": "^1.4.0",
- "hookified": "^1.15.0"
- },
- "engines": {
- "node": ">= 18"
- },
- "peerDependencies": {
- "keyv": "^5.6.0"
- }
- },
- "node_modules/@keyv/serialize": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/@keyv/serialize/-/serialize-1.1.1.tgz",
- "integrity": "sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA==",
- "license": "MIT"
- },
- "node_modules/@pinojs/redact": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/@pinojs/redact/-/redact-0.4.0.tgz",
- "integrity": "sha512-k2ENnmBugE/rzQfEcdWHcCY+/FM3VLzH9cYEsbdsoqrvzAKRhUZeRNhAZvB8OitQJ1TBed3yqWtdjzS6wJKBwg==",
- "license": "MIT"
- },
- "node_modules/@protobufjs/aspromise": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",
- "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==",
- "license": "BSD-3-Clause"
- },
- "node_modules/@protobufjs/base64": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz",
- "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==",
- "license": "BSD-3-Clause"
- },
- "node_modules/@protobufjs/codegen": {
- "version": "2.0.4",
- "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz",
- "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==",
- "license": "BSD-3-Clause"
- },
- "node_modules/@protobufjs/eventemitter": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz",
- "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==",
- "license": "BSD-3-Clause"
- },
- "node_modules/@protobufjs/fetch": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz",
- "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==",
- "license": "BSD-3-Clause",
- "dependencies": {
- "@protobufjs/aspromise": "^1.1.1",
- "@protobufjs/inquire": "^1.1.0"
- }
- },
- "node_modules/@protobufjs/float": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz",
- "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==",
- "license": "BSD-3-Clause"
- },
- "node_modules/@protobufjs/inquire": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz",
- "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==",
- "license": "BSD-3-Clause"
- },
- "node_modules/@protobufjs/path": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz",
- "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==",
- "license": "BSD-3-Clause"
- },
- "node_modules/@protobufjs/pool": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz",
- "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==",
- "license": "BSD-3-Clause"
- },
- "node_modules/@protobufjs/utf8": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz",
- "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==",
- "license": "BSD-3-Clause"
- },
- "node_modules/@tokenizer/inflate": {
- "version": "0.4.1",
- "resolved": "https://registry.npmjs.org/@tokenizer/inflate/-/inflate-0.4.1.tgz",
- "integrity": "sha512-2mAv+8pkG6GIZiF1kNg1jAjh27IDxEPKwdGul3snfztFerfPGI1LjDezZp3i7BElXompqEtPmoPx6c2wgtWsOA==",
- "license": "MIT",
- "dependencies": {
- "debug": "^4.4.3",
- "token-types": "^6.1.1"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/Borewit"
- }
- },
- "node_modules/@tokenizer/token": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.3.0.tgz",
- "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==",
- "license": "MIT"
- },
- "node_modules/@types/long": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz",
- "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==",
- "license": "MIT"
- },
- "node_modules/@types/node": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-25.5.0.tgz",
- "integrity": "sha512-jp2P3tQMSxWugkCUKLRPVUpGaL5MVFwF8RDuSRztfwgN1wmqJeMSbKlnEtQqU8UrhTmzEmZdu2I6v2dpp7XIxw==",
- "license": "MIT",
- "dependencies": {
- "undici-types": "~7.18.0"
- }
- },
- "node_modules/@whiskeysockets/baileys": {
- "version": "7.0.0-rc.9",
- "resolved": "https://registry.npmjs.org/@whiskeysockets/baileys/-/baileys-7.0.0-rc.9.tgz",
- "integrity": "sha512-YFm5gKXfDP9byCXCW3OPHKXLzrAKzolzgVUlRosHHgwbnf2YOO3XknkMm6J7+F0ns8OA0uuSBhgkRHTDtqkacw==",
- "hasInstallScript": true,
- "license": "MIT",
- "dependencies": {
- "@cacheable/node-cache": "^1.4.0",
- "@hapi/boom": "^9.1.3",
- "async-mutex": "^0.5.0",
- "libsignal": "git+https://github.com/whiskeysockets/libsignal-node.git",
- "lru-cache": "^11.1.0",
- "music-metadata": "^11.7.0",
- "p-queue": "^9.0.0",
- "pino": "^9.6",
- "protobufjs": "^7.2.4",
- "ws": "^8.13.0"
- },
- "engines": {
- "node": ">=20.0.0"
- },
- "peerDependencies": {
- "audio-decode": "^2.1.3",
- "jimp": "^1.6.0",
- "link-preview-js": "^3.0.0",
- "sharp": "*"
- },
- "peerDependenciesMeta": {
- "audio-decode": {
- "optional": true
- },
- "jimp": {
- "optional": true
- },
- "link-preview-js": {
- "optional": true
- }
- }
- },
- "node_modules/async-mutex": {
- "version": "0.5.0",
- "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.5.0.tgz",
- "integrity": "sha512-1A94B18jkJ3DYq284ohPxoXbfTA5HsQ7/Mf4DEhcyLx3Bz27Rh59iScbB6EPiP+B+joue6YCxcMXSbFC1tZKwA==",
- "license": "MIT",
- "dependencies": {
- "tslib": "^2.4.0"
- }
- },
- "node_modules/atomic-sleep": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz",
- "integrity": "sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==",
- "license": "MIT",
- "engines": {
- "node": ">=8.0.0"
- }
- },
- "node_modules/cacheable": {
- "version": "2.3.4",
- "resolved": "https://registry.npmjs.org/cacheable/-/cacheable-2.3.4.tgz",
- "integrity": "sha512-djgxybDbw9fL/ZWMI3+CE8ZilNxcwFkVtDc1gJ+IlOSSWkSMPQabhV/XCHTQ6pwwN6aivXPZ43omTooZiX06Ew==",
- "license": "MIT",
- "dependencies": {
- "@cacheable/memory": "^2.0.8",
- "@cacheable/utils": "^2.4.0",
- "hookified": "^1.15.0",
- "keyv": "^5.6.0",
- "qified": "^0.9.0"
- }
- },
- "node_modules/content-type": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
- "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/curve25519-js": {
- "version": "0.0.4",
- "resolved": "https://registry.npmjs.org/curve25519-js/-/curve25519-js-0.0.4.tgz",
- "integrity": "sha512-axn2UMEnkhyDUPWOwVKBMVIzSQy2ejH2xRGy1wq81dqRwApXfIzfbE3hIX0ZRFBIihf/KDqK158DLwESu4AK1w==",
- "license": "MIT"
- },
- "node_modules/debug": {
- "version": "4.4.3",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
- "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
- "license": "MIT",
- "dependencies": {
- "ms": "^2.1.3"
- },
- "engines": {
- "node": ">=6.0"
- },
- "peerDependenciesMeta": {
- "supports-color": {
- "optional": true
- }
- }
- },
- "node_modules/detect-libc": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
- "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
- "license": "Apache-2.0",
- "peer": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/eventemitter3": {
- "version": "5.0.4",
- "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz",
- "integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==",
- "license": "MIT"
- },
- "node_modules/file-type": {
- "version": "21.3.4",
- "resolved": "https://registry.npmjs.org/file-type/-/file-type-21.3.4.tgz",
- "integrity": "sha512-Ievi/yy8DS3ygGvT47PjSfdFoX+2isQueoYP1cntFW1JLYAuS4GD7NUPGg4zv2iZfV52uDyk5w5Z0TdpRS6Q1g==",
- "license": "MIT",
- "dependencies": {
- "@tokenizer/inflate": "^0.4.1",
- "strtok3": "^10.3.4",
- "token-types": "^6.1.1",
- "uint8array-extras": "^1.4.0"
- },
- "engines": {
- "node": ">=20"
- },
- "funding": {
- "url": "https://github.com/sindresorhus/file-type?sponsor=1"
- }
- },
- "node_modules/hashery": {
- "version": "1.5.1",
- "resolved": "https://registry.npmjs.org/hashery/-/hashery-1.5.1.tgz",
- "integrity": "sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ==",
- "license": "MIT",
- "dependencies": {
- "hookified": "^1.15.0"
- },
- "engines": {
- "node": ">=20"
- }
- },
- "node_modules/hookified": {
- "version": "1.15.1",
- "resolved": "https://registry.npmjs.org/hookified/-/hookified-1.15.1.tgz",
- "integrity": "sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg==",
- "license": "MIT"
- },
- "node_modules/ieee754": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
- "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ],
- "license": "BSD-3-Clause"
- },
- "node_modules/keyv": {
- "version": "5.6.0",
- "resolved": "https://registry.npmjs.org/keyv/-/keyv-5.6.0.tgz",
- "integrity": "sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==",
- "license": "MIT",
- "dependencies": {
- "@keyv/serialize": "^1.1.1"
- }
- },
- "node_modules/libsignal": {
- "name": "@whiskeysockets/libsignal-node",
- "version": "2.0.1",
- "resolved": "git+ssh://git@github.com/whiskeysockets/libsignal-node.git#1c30d7d7e76a3b0aa120b04dc6a26f5a12dccf67",
- "license": "GPL-3.0",
- "dependencies": {
- "curve25519-js": "^0.0.4",
- "protobufjs": "6.8.8"
- }
- },
- "node_modules/libsignal/node_modules/@types/node": {
- "version": "10.17.60",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.60.tgz",
- "integrity": "sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw==",
- "license": "MIT"
- },
- "node_modules/libsignal/node_modules/long": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz",
- "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==",
- "license": "Apache-2.0"
- },
- "node_modules/libsignal/node_modules/protobufjs": {
- "version": "6.8.8",
- "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.8.8.tgz",
- "integrity": "sha512-AAmHtD5pXgZfi7GMpllpO3q1Xw1OYldr+dMUlAnffGTAhqkg72WdmSY71uKBF/JuyiKs8psYbtKrhi0ASCD8qw==",
- "hasInstallScript": true,
- "license": "BSD-3-Clause",
- "dependencies": {
- "@protobufjs/aspromise": "^1.1.2",
- "@protobufjs/base64": "^1.1.2",
- "@protobufjs/codegen": "^2.0.4",
- "@protobufjs/eventemitter": "^1.1.0",
- "@protobufjs/fetch": "^1.1.0",
- "@protobufjs/float": "^1.0.2",
- "@protobufjs/inquire": "^1.1.0",
- "@protobufjs/path": "^1.1.2",
- "@protobufjs/pool": "^1.1.0",
- "@protobufjs/utf8": "^1.1.0",
- "@types/long": "^4.0.0",
- "@types/node": "^10.1.0",
- "long": "^4.0.0"
- },
- "bin": {
- "pbjs": "bin/pbjs",
- "pbts": "bin/pbts"
- }
- },
- "node_modules/long": {
- "version": "5.3.2",
- "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz",
- "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==",
- "license": "Apache-2.0"
- },
- "node_modules/lru-cache": {
- "version": "11.2.7",
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.7.tgz",
- "integrity": "sha512-aY/R+aEsRelme17KGQa/1ZSIpLpNYYrhcrepKTZgE+W3WM16YMCaPwOHLHsmopZHELU0Ojin1lPVxKR0MihncA==",
- "license": "BlueOak-1.0.0",
- "engines": {
- "node": "20 || >=22"
- }
- },
- "node_modules/media-typer": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz",
- "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/ms": {
- "version": "2.1.3",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
- "license": "MIT"
- },
- "node_modules/music-metadata": {
- "version": "11.12.3",
- "resolved": "https://registry.npmjs.org/music-metadata/-/music-metadata-11.12.3.tgz",
- "integrity": "sha512-n6hSTZkuD59qWgHh6IP5dtDlDZQXoxk/bcA85Jywg8Z1iFrlNgl2+GTFgjZyn52W5UgQpV42V4XqrQZZAMbZTQ==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/Borewit"
- },
- {
- "type": "buymeacoffee",
- "url": "https://buymeacoffee.com/borewit"
- }
- ],
- "license": "MIT",
- "dependencies": {
- "@borewit/text-codec": "^0.2.2",
- "@tokenizer/token": "^0.3.0",
- "content-type": "^1.0.5",
- "debug": "^4.4.3",
- "file-type": "^21.3.1",
- "media-typer": "^1.1.0",
- "strtok3": "^10.3.4",
- "token-types": "^6.1.2",
- "uint8array-extras": "^1.5.0",
- "win-guid": "^0.2.1"
- },
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/on-exit-leak-free": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz",
- "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==",
- "license": "MIT",
- "engines": {
- "node": ">=14.0.0"
- }
- },
- "node_modules/p-queue": {
- "version": "9.1.0",
- "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-9.1.0.tgz",
- "integrity": "sha512-O/ZPaXuQV29uSLbxWBGGZO1mCQXV2BLIwUr59JUU9SoH76mnYvtms7aafH/isNSNGwuEfP6W/4xD0/TJXxrizw==",
- "license": "MIT",
- "dependencies": {
- "eventemitter3": "^5.0.1",
- "p-timeout": "^7.0.0"
- },
- "engines": {
- "node": ">=20"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/p-timeout": {
- "version": "7.0.1",
- "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-7.0.1.tgz",
- "integrity": "sha512-AxTM2wDGORHGEkPCt8yqxOTMgpfbEHqF51f/5fJCmwFC3C/zNcGT63SymH2ttOAaiIws2zVg4+izQCjrakcwHg==",
- "license": "MIT",
- "engines": {
- "node": ">=20"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/pino": {
- "version": "9.14.0",
- "resolved": "https://registry.npmjs.org/pino/-/pino-9.14.0.tgz",
- "integrity": "sha512-8OEwKp5juEvb/MjpIc4hjqfgCNysrS94RIOMXYvpYCdm/jglrKEiAYmiumbmGhCvs+IcInsphYDFwqrjr7398w==",
- "license": "MIT",
- "dependencies": {
- "@pinojs/redact": "^0.4.0",
- "atomic-sleep": "^1.0.0",
- "on-exit-leak-free": "^2.1.0",
- "pino-abstract-transport": "^2.0.0",
- "pino-std-serializers": "^7.0.0",
- "process-warning": "^5.0.0",
- "quick-format-unescaped": "^4.0.3",
- "real-require": "^0.2.0",
- "safe-stable-stringify": "^2.3.1",
- "sonic-boom": "^4.0.1",
- "thread-stream": "^3.0.0"
- },
- "bin": {
- "pino": "bin.js"
- }
- },
- "node_modules/pino-abstract-transport": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-2.0.0.tgz",
- "integrity": "sha512-F63x5tizV6WCh4R6RHyi2Ml+M70DNRXt/+HANowMflpgGFMAym/VKm6G7ZOQRjqN7XbGxK1Lg9t6ZrtzOaivMw==",
- "license": "MIT",
- "dependencies": {
- "split2": "^4.0.0"
- }
- },
- "node_modules/pino-std-serializers": {
- "version": "7.1.0",
- "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-7.1.0.tgz",
- "integrity": "sha512-BndPH67/JxGExRgiX1dX0w1FvZck5Wa4aal9198SrRhZjH3GxKQUKIBnYJTdj2HDN3UQAS06HlfcSbQj2OHmaw==",
- "license": "MIT"
- },
- "node_modules/process-warning": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-5.0.0.tgz",
- "integrity": "sha512-a39t9ApHNx2L4+HBnQKqxxHNs1r7KF+Intd8Q/g1bUh6q0WIp9voPXJ/x0j+ZL45KF1pJd9+q2jLIRMfvEshkA==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/fastify"
- },
- {
- "type": "opencollective",
- "url": "https://opencollective.com/fastify"
- }
- ],
- "license": "MIT"
- },
- "node_modules/protobufjs": {
- "version": "7.5.4",
- "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.4.tgz",
- "integrity": "sha512-CvexbZtbov6jW2eXAvLukXjXUW1TzFaivC46BpWc/3BpcCysb5Vffu+B3XHMm8lVEuy2Mm4XGex8hBSg1yapPg==",
- "hasInstallScript": true,
- "license": "BSD-3-Clause",
- "dependencies": {
- "@protobufjs/aspromise": "^1.1.2",
- "@protobufjs/base64": "^1.1.2",
- "@protobufjs/codegen": "^2.0.4",
- "@protobufjs/eventemitter": "^1.1.0",
- "@protobufjs/fetch": "^1.1.0",
- "@protobufjs/float": "^1.0.2",
- "@protobufjs/inquire": "^1.1.0",
- "@protobufjs/path": "^1.1.2",
- "@protobufjs/pool": "^1.1.0",
- "@protobufjs/utf8": "^1.1.0",
- "@types/node": ">=13.7.0",
- "long": "^5.0.0"
- },
- "engines": {
- "node": ">=12.0.0"
- }
- },
- "node_modules/qified": {
- "version": "0.9.0",
- "resolved": "https://registry.npmjs.org/qified/-/qified-0.9.0.tgz",
- "integrity": "sha512-4q61YgkHbY6gmwkqm0BsxyLDO3UYdrdiJTJ7JiaZb3xpW1duxn135SB7KqUEkCiuu5O4W+TtwEWP2VjmSRanvA==",
- "license": "MIT",
- "dependencies": {
- "hookified": "^2.1.0"
- },
- "engines": {
- "node": ">=20"
- }
- },
- "node_modules/qified/node_modules/hookified": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/hookified/-/hookified-2.1.0.tgz",
- "integrity": "sha512-ootKng4eaxNxa7rx6FJv2YKef3DuhqbEj3l70oGXwddPQEEnISm50TEZQclqiLTAtilT2nu7TErtCO523hHkyg==",
- "license": "MIT"
- },
- "node_modules/qrcode-terminal": {
- "version": "0.12.0",
- "resolved": "https://registry.npmjs.org/qrcode-terminal/-/qrcode-terminal-0.12.0.tgz",
- "integrity": "sha512-EXtzRZmC+YGmGlDFbXKxQiMZNwCLEO6BANKXG4iCtSIM0yqc/pappSx3RIKr4r0uh5JsBckOXeKrB3Iz7mdQpQ==",
- "bin": {
- "qrcode-terminal": "bin/qrcode-terminal.js"
- }
- },
- "node_modules/quick-format-unescaped": {
- "version": "4.0.4",
- "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz",
- "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==",
- "license": "MIT"
- },
- "node_modules/real-require": {
- "version": "0.2.0",
- "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz",
- "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==",
- "license": "MIT",
- "engines": {
- "node": ">= 12.13.0"
- }
- },
- "node_modules/safe-stable-stringify": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.5.0.tgz",
- "integrity": "sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==",
- "license": "MIT",
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/semver": {
- "version": "7.7.4",
- "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",
- "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",
- "license": "ISC",
- "peer": true,
- "bin": {
- "semver": "bin/semver.js"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/sharp": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.34.5.tgz",
- "integrity": "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==",
- "hasInstallScript": true,
- "license": "Apache-2.0",
- "peer": true,
- "dependencies": {
- "@img/colour": "^1.0.0",
- "detect-libc": "^2.1.2",
- "semver": "^7.7.3"
- },
- "engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
- },
- "optionalDependencies": {
- "@img/sharp-darwin-arm64": "0.34.5",
- "@img/sharp-darwin-x64": "0.34.5",
- "@img/sharp-libvips-darwin-arm64": "1.2.4",
- "@img/sharp-libvips-darwin-x64": "1.2.4",
- "@img/sharp-libvips-linux-arm": "1.2.4",
- "@img/sharp-libvips-linux-arm64": "1.2.4",
- "@img/sharp-libvips-linux-ppc64": "1.2.4",
- "@img/sharp-libvips-linux-riscv64": "1.2.4",
- "@img/sharp-libvips-linux-s390x": "1.2.4",
- "@img/sharp-libvips-linux-x64": "1.2.4",
- "@img/sharp-libvips-linuxmusl-arm64": "1.2.4",
- "@img/sharp-libvips-linuxmusl-x64": "1.2.4",
- "@img/sharp-linux-arm": "0.34.5",
- "@img/sharp-linux-arm64": "0.34.5",
- "@img/sharp-linux-ppc64": "0.34.5",
- "@img/sharp-linux-riscv64": "0.34.5",
- "@img/sharp-linux-s390x": "0.34.5",
- "@img/sharp-linux-x64": "0.34.5",
- "@img/sharp-linuxmusl-arm64": "0.34.5",
- "@img/sharp-linuxmusl-x64": "0.34.5",
- "@img/sharp-wasm32": "0.34.5",
- "@img/sharp-win32-arm64": "0.34.5",
- "@img/sharp-win32-ia32": "0.34.5",
- "@img/sharp-win32-x64": "0.34.5"
- }
- },
- "node_modules/sonic-boom": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-4.2.1.tgz",
- "integrity": "sha512-w6AxtubXa2wTXAUsZMMWERrsIRAdrK0Sc+FUytWvYAhBJLyuI4llrMIC1DtlNSdI99EI86KZum2MMq3EAZlF9Q==",
- "license": "MIT",
- "dependencies": {
- "atomic-sleep": "^1.0.0"
- }
- },
- "node_modules/split2": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz",
- "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==",
- "license": "ISC",
- "engines": {
- "node": ">= 10.x"
- }
- },
- "node_modules/strtok3": {
- "version": "10.3.5",
- "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-10.3.5.tgz",
- "integrity": "sha512-ki4hZQfh5rX0QDLLkOCj+h+CVNkqmp/CMf8v8kZpkNVK6jGQooMytqzLZYUVYIZcFZ6yDB70EfD8POcFXiF5oA==",
- "license": "MIT",
- "dependencies": {
- "@tokenizer/token": "^0.3.0"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/Borewit"
- }
- },
- "node_modules/thread-stream": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-3.1.0.tgz",
- "integrity": "sha512-OqyPZ9u96VohAyMfJykzmivOrY2wfMSf3C5TtFJVgN+Hm6aj+voFhlK+kZEIv2FBh1X6Xp3DlnCOfEQ3B2J86A==",
- "license": "MIT",
- "dependencies": {
- "real-require": "^0.2.0"
- }
- },
- "node_modules/token-types": {
- "version": "6.1.2",
- "resolved": "https://registry.npmjs.org/token-types/-/token-types-6.1.2.tgz",
- "integrity": "sha512-dRXchy+C0IgK8WPC6xvCHFRIWYUbqqdEIKPaKo/AcTUNzwLTK6AH7RjdLWsEZcAN/TBdtfUw3PYEgPr5VPr6ww==",
- "license": "MIT",
- "dependencies": {
- "@borewit/text-codec": "^0.2.1",
- "@tokenizer/token": "^0.3.0",
- "ieee754": "^1.2.1"
- },
- "engines": {
- "node": ">=14.16"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/Borewit"
- }
- },
- "node_modules/tslib": {
- "version": "2.8.1",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
- "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
- "license": "0BSD"
- },
- "node_modules/typescript": {
- "version": "5.9.3",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
- "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
- "dev": true,
- "license": "Apache-2.0",
- "bin": {
- "tsc": "bin/tsc",
- "tsserver": "bin/tsserver"
- },
- "engines": {
- "node": ">=14.17"
- }
- },
- "node_modules/uint8array-extras": {
- "version": "1.5.0",
- "resolved": "https://registry.npmjs.org/uint8array-extras/-/uint8array-extras-1.5.0.tgz",
- "integrity": "sha512-rvKSBiC5zqCCiDZ9kAOszZcDvdAHwwIKJG33Ykj43OKcWsnmcBRL09YTU4nOeHZ8Y2a7l1MgTd08SBe9A8Qj6A==",
- "license": "MIT",
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/undici-types": {
- "version": "7.18.2",
- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.18.2.tgz",
- "integrity": "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==",
- "license": "MIT"
- },
- "node_modules/win-guid": {
- "version": "0.2.1",
- "resolved": "https://registry.npmjs.org/win-guid/-/win-guid-0.2.1.tgz",
- "integrity": "sha512-gEIQU4mkgl2OPeoNrWflcJFJ3Ae2BPd4eCsHHA/XikslkIVms/nHhvnvzIZV7VLmBvtFlDOzLt9rrZT+n6D67A==",
- "license": "MIT"
- },
- "node_modules/ws": {
- "version": "8.20.0",
- "resolved": "https://registry.npmjs.org/ws/-/ws-8.20.0.tgz",
- "integrity": "sha512-sAt8BhgNbzCtgGbt2OxmpuryO63ZoDk/sqaB/znQm94T4fCEsy/yV+7CdC1kJhOU9lboAEU7R3kquuycDoibVA==",
- "license": "MIT",
- "engines": {
- "node": ">=10.0.0"
- },
- "peerDependencies": {
- "bufferutil": "^4.0.1",
- "utf-8-validate": ">=5.0.2"
- },
- "peerDependenciesMeta": {
- "bufferutil": {
- "optional": true
- },
- "utf-8-validate": {
- "optional": true
- }
- }
- }
- }
-}
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@borewit/text-codec/LICENSE.txt b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@borewit/text-codec/LICENSE.txt
deleted file mode 100644
index 6780b3c1..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@borewit/text-codec/LICENSE.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-The MIT License (MIT)
-
-Copyright © 2025 Borewit
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@borewit/text-codec/README.md b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@borewit/text-codec/README.md
deleted file mode 100644
index 53b80d66..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@borewit/text-codec/README.md
+++ /dev/null
@@ -1,87 +0,0 @@
-[](https://github.com/Borewit/text-codec/actions/workflows/ci.yml)
-[](https://www.npmjs.com/package/@borewit/text-codec)
-[](https://npmcharts.com/compare/@borewit/text-codec?interval=30)
-
-[](LICENSE.txt)
-
-# `@borewit/text-codec`
-
-A **lightweight polyfill for text encoders and decoders** covering a small set of commonly used encodings.
-
-Some JavaScript runtimes provide limited or inconsistent encoding support through `TextEncoder` and `TextDecoder`.
-Examples include environments like **Hermes (React Native)** or certain **Node.js builds with limited ICU support**.
-
-This module provides **reliable encode/decode support for a small set of encodings that may be missing or unreliable in those environments**.
-
-- If a native UTF-8 `TextEncoder` / `TextDecoder` is available, it is used.
-- All other encodings are implemented by this library.
-
-## Supported encodings
-
-- `utf-8` / `utf8`
-- `utf-16le`
-- `ascii`
-- `latin1` / `iso-8859-1`
-- `windows-1252`
-
-These encodings are commonly encountered in metadata formats and legacy text data.
-
-## ✨ Features
-
-- Encoding and decoding utilities
-- Lightweight
-- Typed API
-
-## 📦 Installation
-
-```sh
-npm install @borewit/text-codec
-```
-
-# 📚 API Documentation
-
-## `textDecode(bytes, encoding): string`
-
-Decodes binary data into a JavaScript string.
-
-**Parameters**
-- `bytes` (`Uint8Array`) — The binary data to decode.
-- `encoding` (`SupportedEncoding`, optional) — Encoding type. Defaults to `"utf-8"`.
-
-**Returns**
-- `string` — The decoded text.
-
-**Example**
-```js
-import { textDecode } from "@borewit/text-codec";
-
-const bytes = new Uint8Array([0x48, 0x65, 0x6c, 0x6c, 0x6f]);
-const text = textDecode(bytes, "ascii");
-console.log(text); // "Hello"
-```
-
-## `textEncode(input, encoding): Uint8Array`
-
-Encodes a JavaScript string into binary form using the specified encoding.
-
-**Parameters**
-
-- `input` (`string`) — The string to encode.
-- `encoding` (`SupportedEncoding`, optional) — Encoding type. Defaults to `"utf-8"`.
-
-**Returns**
-
-`Uint8Array` — The encoded binary data.
-
-Example:
-```js
-import { textEncode } from "@borewit/text-codec";
-
-const bytes = textEncode("Hello", "utf-16le");
-console.log(bytes); // Uint8Array([...])
-```
-
-## 📜 Licence
-
-This project is licensed under the [MIT License](LICENSE.txt). Feel free to use, modify, and distribute as needed.
-
\ No newline at end of file
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@borewit/text-codec/lib/index.d.ts b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@borewit/text-codec/lib/index.d.ts
deleted file mode 100644
index 1e22404a..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@borewit/text-codec/lib/index.d.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-export type SupportedEncoding = "utf-8" | "utf8" | "utf-16le" | "us-ascii" | "ascii" | "latin1" | "iso-8859-1" | "windows-1252";
-/**
- * Decode text from binary data
- */
-export declare function textDecode(bytes: Uint8Array, encoding?: SupportedEncoding): string;
-export declare function textEncode(input?: string, encoding?: SupportedEncoding): Uint8Array;
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@borewit/text-codec/lib/index.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@borewit/text-codec/lib/index.js
deleted file mode 100644
index 1f552e00..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@borewit/text-codec/lib/index.js
+++ /dev/null
@@ -1,380 +0,0 @@
-const WINDOWS_1252_EXTRA = {
- 0x80: "€", 0x82: "‚", 0x83: "ƒ", 0x84: "„", 0x85: "…", 0x86: "†",
- 0x87: "‡", 0x88: "ˆ", 0x89: "‰", 0x8a: "Š", 0x8b: "‹", 0x8c: "Œ",
- 0x8e: "Ž", 0x91: "‘", 0x92: "’", 0x93: "“", 0x94: "”", 0x95: "•",
- 0x96: "–", 0x97: "—", 0x98: "˜", 0x99: "™", 0x9a: "š", 0x9b: "›",
- 0x9c: "œ", 0x9e: "ž", 0x9f: "Ÿ",
-};
-const WINDOWS_1252_REVERSE = {};
-for (const [code, char] of Object.entries(WINDOWS_1252_EXTRA)) {
- WINDOWS_1252_REVERSE[char] = Number.parseInt(code, 10);
-}
-let _utf8Decoder;
-let _utf8Encoder;
-function utf8Decoder() {
- if (typeof globalThis.TextDecoder === "undefined")
- return undefined;
- return (_utf8Decoder !== null && _utf8Decoder !== void 0 ? _utf8Decoder : (_utf8Decoder = new globalThis.TextDecoder("utf-8")));
-}
-function utf8Encoder() {
- if (typeof globalThis.TextEncoder === "undefined")
- return undefined;
- return (_utf8Encoder !== null && _utf8Encoder !== void 0 ? _utf8Encoder : (_utf8Encoder = new globalThis.TextEncoder()));
-}
-const CHUNK = 32 * 1024;
-const REPLACEMENT = 0xfffd;
-/**
- * Decode text from binary data
- */
-export function textDecode(bytes, encoding = "utf-8") {
- switch (encoding.toLowerCase()) {
- case "utf-8":
- case "utf8": {
- const dec = utf8Decoder();
- return dec ? dec.decode(bytes) : decodeUTF8(bytes);
- }
- case "utf-16le":
- return decodeUTF16LE(bytes);
- case "us-ascii":
- case "ascii":
- return decodeASCII(bytes);
- case "latin1":
- case "iso-8859-1":
- return decodeLatin1(bytes);
- case "windows-1252":
- return decodeWindows1252(bytes);
- default:
- throw new RangeError(`Encoding '${encoding}' not supported`);
- }
-}
-export function textEncode(input = "", encoding = "utf-8") {
- switch (encoding.toLowerCase()) {
- case "utf-8":
- case "utf8": {
- const enc = utf8Encoder();
- return enc ? enc.encode(input) : encodeUTF8(input);
- }
- case "utf-16le":
- return encodeUTF16LE(input);
- case "us-ascii":
- case "ascii":
- return encodeASCII(input);
- case "latin1":
- case "iso-8859-1":
- return encodeLatin1(input);
- case "windows-1252":
- return encodeWindows1252(input);
- default:
- throw new RangeError(`Encoding '${encoding}' not supported`);
- }
-}
-function appendCodePoint(out, cp) {
- if (cp <= 0xffff) {
- out.push(String.fromCharCode(cp));
- return;
- }
- cp -= 0x10000;
- out.push(String.fromCharCode(0xd800 + (cp >> 10), 0xdc00 + (cp & 0x3ff)));
-}
-function flushChunk(parts, chunk) {
- if (chunk.length === 0)
- return;
- parts.push(String.fromCharCode.apply(null, chunk));
- chunk.length = 0;
-}
-function pushCodeUnit(parts, chunk, codeUnit) {
- chunk.push(codeUnit);
- if (chunk.length >= CHUNK)
- flushChunk(parts, chunk);
-}
-function pushCodePoint(parts, chunk, cp) {
- if (cp <= 0xffff) {
- pushCodeUnit(parts, chunk, cp);
- return;
- }
- cp -= 0x10000;
- pushCodeUnit(parts, chunk, 0xd800 + (cp >> 10));
- pushCodeUnit(parts, chunk, 0xdc00 + (cp & 0x3ff));
-}
-function decodeUTF8(bytes) {
- const parts = [];
- const chunk = [];
- let i = 0;
- // Match TextDecoder("utf-8") default BOM handling
- if (bytes.length >= 3 &&
- bytes[0] === 0xef &&
- bytes[1] === 0xbb &&
- bytes[2] === 0xbf) {
- i = 3;
- }
- while (i < bytes.length) {
- const b1 = bytes[i];
- if (b1 <= 0x7f) {
- pushCodeUnit(parts, chunk, b1);
- i++;
- continue;
- }
- // Invalid leading bytes: continuation byte or impossible prefixes
- if (b1 < 0xc2 || b1 > 0xf4) {
- pushCodeUnit(parts, chunk, REPLACEMENT);
- i++;
- continue;
- }
- // 2-byte sequence
- if (b1 <= 0xdf) {
- if (i + 1 >= bytes.length) {
- pushCodeUnit(parts, chunk, REPLACEMENT);
- i++;
- continue;
- }
- const b2 = bytes[i + 1];
- if ((b2 & 0xc0) !== 0x80) {
- pushCodeUnit(parts, chunk, REPLACEMENT);
- i++;
- continue;
- }
- const cp = ((b1 & 0x1f) << 6) | (b2 & 0x3f);
- pushCodeUnit(parts, chunk, cp);
- i += 2;
- continue;
- }
- // 3-byte sequence
- if (b1 <= 0xef) {
- if (i + 2 >= bytes.length) {
- pushCodeUnit(parts, chunk, REPLACEMENT);
- i++;
- continue;
- }
- const b2 = bytes[i + 1];
- const b3 = bytes[i + 2];
- const valid = (b2 & 0xc0) === 0x80 &&
- (b3 & 0xc0) === 0x80 &&
- !(b1 === 0xe0 && b2 < 0xa0) && // overlong
- !(b1 === 0xed && b2 >= 0xa0); // surrogate range
- if (!valid) {
- pushCodeUnit(parts, chunk, REPLACEMENT);
- i++;
- continue;
- }
- const cp = ((b1 & 0x0f) << 12) |
- ((b2 & 0x3f) << 6) |
- (b3 & 0x3f);
- pushCodeUnit(parts, chunk, cp);
- i += 3;
- continue;
- }
- // 4-byte sequence
- if (i + 3 >= bytes.length) {
- pushCodeUnit(parts, chunk, REPLACEMENT);
- i++;
- continue;
- }
- const b2 = bytes[i + 1];
- const b3 = bytes[i + 2];
- const b4 = bytes[i + 3];
- const valid = (b2 & 0xc0) === 0x80 &&
- (b3 & 0xc0) === 0x80 &&
- (b4 & 0xc0) === 0x80 &&
- !(b1 === 0xf0 && b2 < 0x90) && // overlong
- !(b1 === 0xf4 && b2 > 0x8f); // > U+10FFFF
- if (!valid) {
- pushCodeUnit(parts, chunk, REPLACEMENT);
- i++;
- continue;
- }
- const cp = ((b1 & 0x07) << 18) |
- ((b2 & 0x3f) << 12) |
- ((b3 & 0x3f) << 6) |
- (b4 & 0x3f);
- pushCodePoint(parts, chunk, cp);
- i += 4;
- }
- flushChunk(parts, chunk);
- return parts.join("");
-}
-function decodeUTF16LE(bytes) {
- const parts = [];
- const chunk = [];
- const len = bytes.length;
- let i = 0;
- while (i + 1 < len) {
- const u1 = bytes[i] | (bytes[i + 1] << 8);
- i += 2;
- // High surrogate
- if (u1 >= 0xd800 && u1 <= 0xdbff) {
- if (i + 1 < len) {
- const u2 = bytes[i] | (bytes[i + 1] << 8);
- if (u2 >= 0xdc00 && u2 <= 0xdfff) {
- pushCodeUnit(parts, chunk, u1);
- pushCodeUnit(parts, chunk, u2);
- i += 2;
- }
- else {
- pushCodeUnit(parts, chunk, REPLACEMENT);
- }
- }
- else {
- pushCodeUnit(parts, chunk, REPLACEMENT);
- }
- continue;
- }
- // Lone low surrogate
- if (u1 >= 0xdc00 && u1 <= 0xdfff) {
- pushCodeUnit(parts, chunk, REPLACEMENT);
- continue;
- }
- pushCodeUnit(parts, chunk, u1);
- }
- // Odd trailing byte
- if (i < len) {
- pushCodeUnit(parts, chunk, REPLACEMENT);
- }
- flushChunk(parts, chunk);
- return parts.join("");
-}
-function decodeASCII(bytes) {
- const parts = [];
- for (let i = 0; i < bytes.length; i += CHUNK) {
- const end = Math.min(bytes.length, i + CHUNK);
- const codes = new Array(end - i);
- for (let j = i, k = 0; j < end; j++, k++) {
- codes[k] = bytes[j] & 0x7f;
- }
- parts.push(String.fromCharCode.apply(null, codes));
- }
- return parts.join("");
-}
-function decodeLatin1(bytes) {
- const parts = [];
- for (let i = 0; i < bytes.length; i += CHUNK) {
- const end = Math.min(bytes.length, i + CHUNK);
- const codes = new Array(end - i);
- for (let j = i, k = 0; j < end; j++, k++) {
- codes[k] = bytes[j];
- }
- parts.push(String.fromCharCode.apply(null, codes));
- }
- return parts.join("");
-}
-function decodeWindows1252(bytes) {
- const parts = [];
- let out = "";
- for (let i = 0; i < bytes.length; i++) {
- const b = bytes[i];
- const extra = b >= 0x80 && b <= 0x9f ? WINDOWS_1252_EXTRA[b] : undefined;
- out += extra !== null && extra !== void 0 ? extra : String.fromCharCode(b);
- if (out.length >= CHUNK) {
- parts.push(out);
- out = "";
- }
- }
- if (out)
- parts.push(out);
- return parts.join("");
-}
-function encodeUTF8(str) {
- const out = [];
- for (let i = 0; i < str.length; i++) {
- let cp = str.charCodeAt(i);
- // Valid surrogate pair
- if (cp >= 0xd800 && cp <= 0xdbff) {
- if (i + 1 < str.length) {
- const lo = str.charCodeAt(i + 1);
- if (lo >= 0xdc00 && lo <= 0xdfff) {
- cp = 0x10000 + ((cp - 0xd800) << 10) + (lo - 0xdc00);
- i++;
- }
- else {
- cp = REPLACEMENT;
- }
- }
- else {
- cp = REPLACEMENT;
- }
- }
- else if (cp >= 0xdc00 && cp <= 0xdfff) {
- // Lone low surrogate
- cp = REPLACEMENT;
- }
- if (cp < 0x80) {
- out.push(cp);
- }
- else if (cp < 0x800) {
- out.push(0xc0 | (cp >> 6), 0x80 | (cp & 0x3f));
- }
- else if (cp < 0x10000) {
- out.push(0xe0 | (cp >> 12), 0x80 | ((cp >> 6) & 0x3f), 0x80 | (cp & 0x3f));
- }
- else {
- out.push(0xf0 | (cp >> 18), 0x80 | ((cp >> 12) & 0x3f), 0x80 | ((cp >> 6) & 0x3f), 0x80 | (cp & 0x3f));
- }
- }
- return new Uint8Array(out);
-}
-function encodeUTF16LE(str) {
- // Preserve JS string code units, but do not emit non-well-formed UTF-16.
- // Replace lone surrogates with U+FFFD.
- const units = [];
- for (let i = 0; i < str.length; i++) {
- const u = str.charCodeAt(i);
- if (u >= 0xd800 && u <= 0xdbff) {
- if (i + 1 < str.length) {
- const lo = str.charCodeAt(i + 1);
- if (lo >= 0xdc00 && lo <= 0xdfff) {
- units.push(u, lo);
- i++;
- }
- else {
- units.push(REPLACEMENT);
- }
- }
- else {
- units.push(REPLACEMENT);
- }
- continue;
- }
- if (u >= 0xdc00 && u <= 0xdfff) {
- units.push(REPLACEMENT);
- continue;
- }
- units.push(u);
- }
- const out = new Uint8Array(units.length * 2);
- for (let i = 0; i < units.length; i++) {
- const code = units[i];
- const o = i * 2;
- out[o] = code & 0xff;
- out[o + 1] = code >>> 8;
- }
- return out;
-}
-function encodeASCII(str) {
- const out = new Uint8Array(str.length);
- for (let i = 0; i < str.length; i++)
- out[i] = str.charCodeAt(i) & 0x7f;
- return out;
-}
-function encodeLatin1(str) {
- const out = new Uint8Array(str.length);
- for (let i = 0; i < str.length; i++)
- out[i] = str.charCodeAt(i) & 0xff;
- return out;
-}
-function encodeWindows1252(str) {
- const out = new Uint8Array(str.length);
- for (let i = 0; i < str.length; i++) {
- const ch = str[i];
- const code = ch.charCodeAt(0);
- if (WINDOWS_1252_REVERSE[ch] !== undefined) {
- out[i] = WINDOWS_1252_REVERSE[ch];
- continue;
- }
- if ((code >= 0x00 && code <= 0x7f) ||
- (code >= 0xa0 && code <= 0xff)) {
- out[i] = code;
- continue;
- }
- out[i] = 0x3f; // '?'
- }
- return out;
-}
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@borewit/text-codec/package.json b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@borewit/text-codec/package.json
deleted file mode 100644
index bb818878..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@borewit/text-codec/package.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "name": "@borewit/text-codec",
- "version": "0.2.2",
- "description": "Text Decoder",
- "type": "module",
- "exports": "./lib/index.js",
- "types": "lib/index.d.ts",
- "files": [
- "lib/index.js",
- "lib/index.d.ts"
- ],
- "scripts": {
- "clean": "del-cli lib/**/*.js lib/***.js.map test/**/*.d.ts test/**/*.js test/**/*.js.map",
- "build": "npm run compile",
- "prepublishOnly": "npm run build",
- "compile:src": "tsc --p lib --sourceMap false",
- "compile:test": "tsc --p test",
- "compile": "npm run compile:src && npm run compile:test",
- "lint": "biome check",
- "test": "mocha",
- "update-biome": "npm install --save-dev --save-exact @biomejs/biome@latest && npx @biomejs/biome migrate --write"
- },
- "devDependencies": {
- "@biomejs/biome": "2.4.6",
- "@types/chai": "^5.2.2",
- "@types/mocha": "^10.0.10",
- "chai": "^6.2.2",
- "mocha": "^11.7.5",
- "ts-node": "^10.9.2",
- "typescript": "^5.9.3"
- },
- "keywords": [
- "TextDecoder",
- "TextEncoder",
- "decoder",
- "decoding",
- "encod",
- "encoding",
- "decode",
- "text",
- "ascii",
- "utf-8",
- "utf8",
- "utf-16le",
- "latin1",
- "iso-8859-1",
- "windows-1252",
- "charset",
- "encoding",
- "decoding",
- "polyfill",
- "character-set",
- "latin",
- "hermes",
- "react"
- ],
- "repository": {
- "type": "git",
- "url": "git+https://github.com/Borewit/text-codec.git"
- },
- "author": {
- "name": "Borewit",
- "url": "https://github.com/Borewit"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/Borewit"
- },
- "license": "MIT"
-}
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/memory/LICENSE b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/memory/LICENSE
deleted file mode 100644
index 9d6198a9..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/memory/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-MIT License & © Jared Wray
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to
-deal in the Software without restriction, including without limitation the
-rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-sell copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-DEALINGS IN THE SOFTWARE.
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/memory/README.md b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/memory/README.md
deleted file mode 100644
index 8a652571..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/memory/README.md
+++ /dev/null
@@ -1,340 +0,0 @@
-[
](https://github.com/jaredwray/cacheable)
-
-> High Performance Layer 1 / Layer 2 Caching with Keyv Storage
-
-[](https://codecov.io/gh/jaredwray/cacheable)
-[](https://github.com/jaredwray/cacheable/actions/workflows/tests.yml)
-[](https://www.npmjs.com/package/@cacheable/memory)
-[](https://www.npmjs.com/package/@cacheable/memory)
-[](https://github.com/jaredwray/cacheable/blob/main/LICENSE)
-
-You can use `CacheableMemory` as a standalone cache or as a primary store for `cacheable`. You can also set the `useClones` property to `false` if you want to use the same reference for the values. This is useful if you are using large objects and want to save memory. The `lruSize` property is the size of the LRU cache and is set to `0` by default which is unlimited. When setting the `lruSize` property it will limit the number of keys in the cache.
-
-This simple in-memory cache uses multiple Map objects and a with `expiration` and `lru` policies if set to manage the in memory cache at scale.
-
-By default we use lazy expiration deletion which means on `get` and `getMany` type functions we look if it is expired and then delete it. If you want to have a more aggressive expiration policy you can set the `checkInterval` property to a value greater than `0` which will check for expired keys at the interval you set.
-
-Here are some of the main features of `CacheableMemory`:
-* High performance in-memory cache with a robust API and feature set. 🚀
-* Can scale past the `16,777,216 (2^24) keys` limit of a single `Map` via `hashStoreSize`. Default is `16` Map objects.
-* LRU (Least Recently Used) cache feature to limit the number of keys in the cache via `lruSize`. Limit to `16,777,216 (2^24) keys` total.
-* Expiration policy to delete expired keys with lazy deletion or aggressive deletion via `checkInterval`.
-* `Wrap` feature to memoize `sync` and `async` functions with stampede protection.
-* Ability to do many operations at once such as `setMany`, `getMany`, `deleteMany`, and `takeMany`.
-* Supports `raw` data retrieval with `getRaw` and `getManyRaw` methods to get the full metadata of the cache entry.
-
-# Table of Contents
-* [Getting Started](#getting-started)
-* [CacheableMemory - In-Memory Cache](#cacheablememory---in-memory-cache)
-* [CacheableMemory Store Hashing](#cacheablememory-store-hashing)
-* [CacheableMemory LRU Feature](#cacheablememory-lru-feature)
-* [CacheableMemory Performance](#cacheablememory-performance)
-* [CacheableMemory Options](#cacheablememory-options)
-* [CacheableMemory - API](#cacheablememory---api)
-* [Keyv Storage Adapter - KeyvCacheableMemory](#keyv-storage-adapter---keyvcacheablememory)
-* [Wrap / Memoization for Sync and Async Functions](#wrap--memoization-for-sync-and-async-functions)
-* [Get Or Set Memoization Function](#get-or-set-memoization-function)
-* [How to Contribute](#how-to-contribute)
-* [License and Copyright](#license-and-copyright)
-
-# Getting Started
-
-```bash
-npm install @cacheable/memory
-```
-
-# Basic Usage
-
-```javascript
-import { CacheableMemory } from '@cacheable/memory';
-
-const cacheable = new CacheableMemory();
-await cacheable.set('key', 'value', 1000);
-const value = await cacheable.get('key');
-```
-
-In this example, the primary store we will use `lru-cache` and the secondary store is Redis. You can also set multiple stores in the options:
-
-```javascript
-import { CacheableMemory } from '@cacheable/memory';
-
-// we set the storeHashSize to 1 so that we only use a single Map object as the lru is limited to a single Map size
-const cache = new CacheableMemory({storeHashSize: 1, lruSize: 80000});
-
-cache.set('key1', 'value1');
-const result = cache.get('key1');
-console.log(result); // 'value1'
-```
-
-This is a more advanced example and not needed for most use cases.
-
-# Shorthand for Time to Live (ttl)
-
-By default `Cacheable` and `CacheableMemory` the `ttl` is in milliseconds but you can use shorthand for the time to live. Here are the following shorthand values:
-
-* `ms`: Milliseconds such as (1ms = 1)
-* `s`: Seconds such as (1s = 1000)
-* `m`: Minutes such as (1m = 60000)
-* `h` or `hr`: Hours such as (1h = 3600000)
-* `d`: Days such as (1d = 86400000)
-
-Here is an example of how to use the shorthand for the `ttl`:
-
-```javascript
-import { CacheableMemory } from 'cacheable';
-const cache = new CacheableMemory({ ttl: '15m' }); //sets the default ttl to 15 minutes (900000 ms)
-cache.set('key', 'value', '1h'); //sets the ttl to 1 hour (3600000 ms) and overrides the default
-```
-
-if you want to disable the `ttl` you can set it to `0` or `undefined`:
-
-```javascript
-import { CacheableMemory } from 'cacheable';
-const cache = new CacheableMemory({ ttl: 0 }); //sets the default ttl to 0 which is disabled
-cache.set('key', 'value', 0); //sets the ttl to 0 which is disabled
-```
-
-If you set the ttl to anything below `0` or `undefined` it will disable the ttl for the cache and the value that returns will be `undefined`. With no ttl set the value will be stored `indefinitely`.
-
-```javascript
-import { CacheableMemory } from 'cacheable';
-const cache = new CacheableMemory({ ttl: 0 }); //sets the default ttl to 0 which is disabled
-console.log(cache.ttl); // undefined
-cache.ttl = '1h'; // sets the default ttl to 1 hour (3600000 ms)
-console.log(cache.ttl); // '1h'
-cache.ttl = -1; // sets the default ttl to 0 which is disabled
-console.log(cache.ttl); // undefined
-```
-
-## Retrieving raw cache entries
-
-The `getRaw` and `getManyRaw` methods return the full stored metadata (`StoredDataRaw`) instead of just the value:
-
-```typescript
-import { CacheableMemory } from 'cacheable';
-
-const cache = new CacheableMemory();
-
-// store a value
-await cache.set('user:1', { name: 'Alice' }, '1h'); // 1 hour
-
-// default: only the value
-const user = await cache.get<{ name: string }>('user:1');
-console.log(user); // { name: 'Alice' }
-
-// with raw: full record including expiration
-const raw = await cache.getRaw('user:1');
-console.log(raw.value); // { name: 'Alice' }
-console.log(raw.expires); // e.g. 1677628495000 or null
-```
-
-## CacheableMemory Store Hashing
-
-`CacheableMemory` uses `Map` objects to store the keys and values. To make this scale past the `16,777,216 (2^24) keys` limit of a single `Map` we use a hash to balance the data across multiple `Map` objects. This is done by hashing the key and using the hash to determine which `Map` object to use. The default hashing algorithm is `djb2` but you can change it by setting the `storeHashAlgorithm` property in the options. Supported algorithms include DJB2, FNV1, MURMER, and CRC32. By default we set the amount of `Map` objects to `16`.
-
-NOTE: if you are using the LRU cache feature the `lruSize` no matter how many `Map` objects you have it will be limited to the `16,777,216 (2^24) keys` limit of a single `Map` object. This is because we use a double linked list to manage the LRU cache and it is not possible to have more than `16,777,216 (2^24) keys` in a single `Map` object.
-
-Here is an example of how to set the number of `Map` objects and the hashing algorithm:
-
-```javascript
-import { CacheableMemory } from '@cacheable/memory';
-const cache = new CacheableMemory({
- storeSize: 32, // set the number of Map objects to 32
-});
-cache.set('key', 'value');
-const value = cache.get('key'); // value
-```
-
-Here is an example of how to use the `storeHashAlgorithm` property with supported algorithms:
-
-```javascript
-import { CacheableMemory, HashAlgorithm } from '@cacheable/memory';
-
-// Using DJB2 (default)
-const cache = new CacheableMemory({ storeHashAlgorithm: HashAlgorithm.DJB2 });
-
-// Or other non-cryptographic algorithms for better performance
-const cache2 = new CacheableMemory({ storeHashAlgorithm: HashAlgorithm.FNV1 });
-const cache3 = new CacheableMemory({ storeHashAlgorithm: HashAlgorithm.MURMER });
-const cache4 = new CacheableMemory({ storeHashAlgorithm: HashAlgorithm.CRC32 });
-
-cache.set('key', 'value');
-const value = cache.get('key'); // value
-```
-
-**Available algorithms:** DJB2 (default), FNV1, MURMER, CRC32. Note: Cryptographic algorithms (SHA-256, SHA-384, SHA-512) are not recommended for store hashing due to performance overhead.
-
-If you want to provide your own hashing function you can set the `storeHashAlgorithm` property to a function that takes an object and returns a `number` that is in the range of the amount of `Map` stores you have.
-
-```javascript
-import { CacheableMemory } from 'cacheable';
-/**
- * Custom hash function that takes a key and the size of the store
- * and returns a number between 0 and storeHashSize - 1.
- * @param {string} key - The key to hash.
- * @param {number} storeHashSize - The size of the store (number of Map objects).
- * @returns {number} - A number between 0 and storeHashSize - 1.
- */
-const customHash = (key, storeHashSize) => {
- // custom hashing logic
- return key.length % storeHashSize; // returns a number between 0 and 31 for 32 Map objects
-};
-const cache = new CacheableMemory({ storeHashAlgorithm: customHash, storeSize: 32 });
-cache.set('key', 'value');
-const value = cache.get('key'); // value
-```
-
-## CacheableMemory LRU Feature
-
-You can enable the LRU (Least Recently Used) feature in `CacheableMemory` by setting the `lruSize` property in the options. This will limit the number of keys in the cache to the size you set. When the cache reaches the limit it will remove the least recently used keys from the cache. This is useful if you want to limit the memory usage of the cache.
-
-When you set the `lruSize` we use a double linked list to manage the LRU cache and also set the `hashStoreSize` to `1` which means we will only use a single `Map` object for the LRU cache. This is because the LRU cache is managed by the double linked list and it is not possible to have more than `16,777,216 (2^24) keys` in a single `Map` object.
-
-```javascript
-import { CacheableMemory } from 'cacheable';
-const cache = new CacheableMemory({ lruSize: 1 }); // sets the LRU cache size to 1000 keys and hashStoreSize to 1
-cache.set('key1', 'value1');
-cache.set('key2', 'value2');
-const value1 = cache.get('key1');
-console.log(value1); // undefined if the cache is full and key1 is the least recently used
-const value2 = cache.get('key2');
-console.log(value2); // value2 if key2 is still in the cache
-console.log(cache.size()); // 1
-```
-
-NOTE: if you set the `lruSize` property to `0` after it was enabled it will disable the LRU cache feature and will not limit the number of keys in the cache. This will remove the `16,777,216 (2^24) keys` limit of a single `Map` object and will allow you to store more keys in the cache.
-
-## CacheableMemory Performance
-
-Our goal with `cacheable` and `CacheableMemory` is to provide a high performance caching engine that is simple to use and has a robust API. We test it against other cacheing engines such that are less feature rich to make sure there is little difference. Here are some of the benchmarks we have run:
-
-*Memory Benchmark Results:*
-| name | summary | ops/sec | time/op | margin | samples |
-|------------------------------------------|:---------:|----------:|----------:|:--------:|----------:|
-| Cacheable Memory (v1.10.0) - set / get | 🥇 | 152K | 7µs | ±0.94% | 147K |
-| Map (v22) - set / get | -1.1% | 151K | 7µs | ±0.69% | 145K |
-| Node Cache - set / get | -4.3% | 146K | 7µs | ±1.13% | 142K |
-| bentocache (v1.4.0) - set / get | -20% | 121K | 8µs | ±0.40% | 119K |
-
-*Memory LRU Benchmark Results:*
-| name | summary | ops/sec | time/op | margin | samples |
-|------------------------------------------|:---------:|----------:|----------:|:--------:|----------:|
-| quick-lru (v7.0.1) - set / get | 🥇 | 118K | 9µs | ±0.85% | 112K |
-| Map (v22) - set / get | -0.56% | 117K | 9µs | ±1.35% | 110K |
-| lru.min (v1.1.2) - set / get | -1.7% | 116K | 9µs | ±0.90% | 110K |
-| Cacheable Memory (v1.10.0) - set / get | -3.3% | 114K | 9µs | ±1.16% | 108K |
-
-As you can see from the benchmarks `CacheableMemory` is on par with other caching engines such as `Map`, `Node Cache`, and `bentocache`. We have also tested it against other LRU caching engines such as `quick-lru` and `lru.min` and it performs well against them too.
-
-## CacheableMemory Options
-
-* `ttl`: The time to live for the cache in milliseconds. Default is `undefined` which is means indefinitely.
-* `useClones`: If the cache should use clones for the values. Default is `true`.
-* `lruSize`: The size of the LRU cache. Default is `0` which is unlimited.
-* `checkInterval`: The interval to check for expired keys in milliseconds. Default is `0` which is disabled.
-* `storeHashSize`: The number of `Map` objects to use for the cache. Default is `16`.
-* `storeHashAlgorithm`: The hashing algorithm to use for the cache. Default is `djb2`. Supported: DJB2, FNV1, MURMER, CRC32.
-
-## CacheableMemory - API
-
-* `set(key, value, ttl?)`: Sets a value in the cache.
-* `setMany([{key, value, ttl?}])`: Sets multiple values in the cache from `CacheableItem`.
-* `get(key)`: Gets a value from the cache.
-* `getMany([keys])`: Gets multiple values from the cache.
-* `getRaw(key)`: Gets a value from the cache as `CacheableStoreItem`.
-* `getManyRaw([keys])`: Gets multiple values from the cache as `CacheableStoreItem`.
-* `has(key)`: Checks if a value exists in the cache.
-* `hasMany([keys])`: Checks if multiple values exist in the cache.
-* `delete(key)`: Deletes a value from the cache.
-* `deleteMany([keys])`: Deletes multiple values from the cache.
-* `take(key)`: Takes a value from the cache and deletes it.
-* `takeMany([keys])`: Takes multiple values from the cache and deletes them.
-* `wrap(function, WrapSyncOptions)`: Wraps a `sync` function in a cache.
-* `clear()`: Clears the cache.
-* `ttl`: The default time to live for the cache in milliseconds. Default is `undefined` which is disabled.
-* `useClones`: If the cache should use clones for the values. Default is `true`.
-* `lruSize`: The size of the LRU cache. Default is `0` which is unlimited.
-* `size`: The number of keys in the cache.
-* `checkInterval`: The interval to check for expired keys in milliseconds. Default is `0` which is disabled.
-* `storeHashSize`: The number of `Map` objects to use for the cache. Default is `16`.
-* `storeHashAlgorithm`: The hashing algorithm to use for the cache. Default is `djb2`. Supported: DJB2, FNV1, MURMER, CRC32.
-* `keys`: Get the keys in the cache. Not able to be set.
-* `items`: Get the items in the cache as `CacheableStoreItem` example `{ key, value, expires? }`.
-* `store`: The hash store for the cache which is an array of `Map` objects.
-* `checkExpired()`: Checks for expired keys in the cache. This is used by the `checkInterval` property.
-* `startIntervalCheck()`: Starts the interval check for expired keys if `checkInterval` is above 0 ms.
-* `stopIntervalCheck()`: Stops the interval check for expired keys.
-
-# Keyv Storage Adapter - KeyvCacheableMemory
-
-`cacheable` comes with a built-in storage adapter for Keyv called `KeyvCacheableMemory`. This takes `CacheableMemory` and creates a storage adapter for Keyv. This is useful if you want to use `CacheableMemory` as a storage adapter for Keyv. Here is an example of how to use `KeyvCacheableMemory`:
-
-```javascript
-import { Keyv } from 'keyv';
-import { KeyvCacheableMemory } from 'cacheable';
-
-const keyv = new Keyv({ store: new KeyvCacheableMemory() });
-await keyv.set('foo', 'bar');
-const value = await keyv.get('foo');
-console.log(value); // bar
-```
-
-# Wrap / Memoization for Sync and Async Functions
-
-`CacheableMemory` has a feature called `wrap` that allows you to wrap a function in a cache. This is useful for memoization and caching the results of a function. You can wrap a `sync` function in a cache. Here is an example of how to use the `wrap` function:
-
-```javascript
-import { CacheableMemory } from 'cacheable';
-const syncFunction = (value: number) => {
- return value * 2;
-};
-
-const cache = new CacheableMemory();
-const wrappedFunction = cache.wrap(syncFunction, { ttl: '1h', key: 'syncFunction' });
-console.log(wrappedFunction(2)); // 4
-console.log(wrappedFunction(2)); // 4 from cache
-```
-
-In this example we are wrapping a `sync` function in a cache with a `ttl` of `1 hour`. This will cache the result of the function for `1 hour` and then expire the value. You can also set the `key` property in the `wrap()` options to set a custom key for the cache.
-
-When an error occurs in the function it will not cache the value and will return the error. This is useful if you want to cache the results of a function but not cache the error. If you want it to cache the error you can set the `cacheError` property to `true` in the `wrap()` options. This is disabled by default.
-
-```javascript
-import { CacheableMemory } from 'cacheable';
-const syncFunction = (value: number) => {
- throw new Error('error');
-};
-
-const cache = new CacheableMemory();
-const wrappedFunction = cache.wrap(syncFunction, { ttl: '1h', key: 'syncFunction', cacheError: true });
-console.log(wrappedFunction()); // error
-console.log(wrappedFunction()); // error from cache
-```
-
-If you would like to generate your own key for the wrapped function you can set the `createKey` property in the `wrap()` options. This is useful if you want to generate a key based on the arguments of the function or any other criteria.
-
-```javascript
- const cache = new CacheableMemory();
- const options: WrapOptions = {
- cache,
- keyPrefix: 'test',
- createKey: (function_, arguments_, options: WrapOptions) => `customKey:${options?.keyPrefix}:${arguments_[0]}`,
- };
-
- const wrapped = wrap((argument: string) => `Result for ${argument}`, options);
-
- const result1 = wrapped('arg1');
- const result2 = wrapped('arg1'); // Should hit the cache
-
- console.log(result1); // Result for arg1
- console.log(result2); // Result for arg1 (from cache)
-```
-
-We will pass in the `function` that is being wrapped, the `arguments` passed to the function, and the `options` used to wrap the function. You can then use these to generate a custom key for the cache.
-
-# How to Contribute
-
-You can contribute by forking the repo and submitting a pull request. Please make sure to add tests and update the documentation. To learn more about how to contribute go to our main README [https://github.com/jaredwray/cacheable](https://github.com/jaredwray/cacheable). This will talk about how to `Open a Pull Request`, `Ask a Question`, or `Post an Issue`.
-
-# License and Copyright
-[MIT © Jared Wray](./LICENSE)
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/memory/package.json b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/memory/package.json
deleted file mode 100644
index f9ad8c40..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/memory/package.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "name": "@cacheable/memory",
- "version": "2.0.8",
- "description": "High Performance In-Memory Cache for Node.js",
- "type": "module",
- "main": "./dist/index.js",
- "module": "./dist/index.js",
- "types": "./dist/index.d.ts",
- "exports": {
- ".": {
- "import": {
- "types": "./dist/index.d.ts",
- "default": "./dist/index.js"
- },
- "require": {
- "types": "./dist/index.d.cts",
- "default": "./dist/index.cjs"
- }
- }
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/jaredwray/cacheable.git",
- "directory": "packages/cacheable"
- },
- "author": "Jared Wray ",
- "license": "MIT",
- "private": false,
- "devDependencies": {
- "@faker-js/faker": "^10.3.0",
- "@types/node": "^25.3.0",
- "rimraf": "^6.1.3",
- "tsup": "^8.5.1",
- "typescript": "^5.9.3"
- },
- "dependencies": {
- "@keyv/bigmap": "^1.3.1",
- "hookified": "^1.15.1",
- "keyv": "^5.6.0",
- "@cacheable/utils": "^2.4.0"
- },
- "keywords": [
- "cacheable",
- "high performance",
- "distributed caching",
- "Keyv storage engine",
- "keyv",
- "memory caching",
- "LRU cache",
- "memory",
- "in-memory",
- "scalable cache",
- "in-memory cache",
- "lruSize",
- "lru"
- ],
- "files": [
- "dist",
- "LICENSE"
- ],
- "scripts": {
- "build": "rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean",
- "prepublish": "pnpm build",
- "lint": "biome check --write --error-on-warnings",
- "test": "pnpm lint && vitest run --coverage",
- "test:ci": "biome check --error-on-warnings && vitest run --coverage",
- "clean": "rimraf ./dist ./coverage ./node_modules"
- }
-}
\ No newline at end of file
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/node-cache/LICENSE b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/node-cache/LICENSE
deleted file mode 100644
index 9d6198a9..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/node-cache/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-MIT License & © Jared Wray
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to
-deal in the Software without restriction, including without limitation the
-rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-sell copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-DEALINGS IN THE SOFTWARE.
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/node-cache/README.md b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/node-cache/README.md
deleted file mode 100644
index 2576ebf2..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/node-cache/README.md
+++ /dev/null
@@ -1,352 +0,0 @@
-[
](https://github.com/jaredwray/cacheable)
-
-# Node-Cache
-
-> Simple and Maintained fast Node.js caching
-
-[](https://codecov.io/gh/jaredwray/cacheable)
-[](https://github.com/jaredwray/cacheable/actions/workflows/tests.yml)
-[](https://www.npmjs.com/package/@cacheable/node-cache)
-[](https://www.npmjs.com/package/@cacheable/node-cache)
-[](https://github.com/jaredwray/cacheable/blob/main/LICENSE)
-
-`@cacheable/node-cache` is compatible with the [node-cache](https://www.npmjs.com/package/node-cache) package with regular maintenance and additional functionality (async/await and storage adapters). The only thing not implemented is the `enableLegacyCallbacks` option and functions. If you need them we are happy to take a PR to add them.
-
-* Fully Compatible with `node-cache` using `{NodeCache}`
-* Faster than the original `node-cache` package 🚀
-* Async/Await functionality with `{NodeCacheStore}`
-* Storage Adapters via [Keyv](https://keyv.org) with `{NodeCacheStore}`
-* Maintained and Updated Regularly! 🎉
-
-# Table of Contents
-* [Getting Started](#getting-started)
-* [Basic Usage](#basic-usage)
-* [NodeCache Performance](#nodecache-performance)
-* [NodeCache API](#nodecache-api)
-* [NodeCacheStore](#nodecachestore)
-* [NodeCacheStore API](#nodecachestore-api)
-* [How to Contribute](#how-to-contribute)
-* [License and Copyright](#license-and-copyright)
-
-# Getting Started
-
-```bash
-npm install @cacheable/node-cache --save
-```
-
-# Basic Usage
-
-```javascript
-import NodeCache from '@cacheable/node-cache';
-
-const cache = new NodeCache();
-cache.set('foo', 'bar');
-cache.get('foo'); // 'bar'
-
-cache.set('foo', 'bar', 10); // 10 seconds
-
-cache.del('foo'); // true
-
-cache.set('bar', 'baz', '35m'); // 35 minutes using shorthand
-```
-
-The `NodeCache` is not the default export, so you need to import it like this:
-
-```javascript
-import {NodeCache} from '@cacheable/node-cache';
-
-const cache = new NodeCache();
-cache.set('foo', 'bar');
-cache.get('foo'); // 'bar'
-```
-
-`NodeCache` also offers the ability to set the type of values that can be cached in Typescript environments.
-
-```typescript
-import {NodeCache} from '@cacheable/node-cache';
-
-const cache = new NodeCache();
-cache.set('foo', 'bar');
-cache.get('foo'); // 'bar'
-```
-
-# NodeCache Performance
-
-The performance is comparable if not faster to the original `node-cache` package, but with additional features and improvements.
-
-| name | summary | ops/sec | time/op | margin | samples |
-|-----------------------------------|:---------:|----------:|----------:|:--------:|----------:|
-| Cacheable NodeCache - set / get | 🥇 | 117K | 9µs | ±1.01% | 111K |
-| Node Cache - set / get | -4.6% | 112K | 9µs | ±1.31% | 106K |
-
-# NodeCache API
-
-## `constructor(options?: NodeCacheOptions)`
-
-Create a new cache instance. You can pass in options to set the configuration:
-
-```javascript
-export type NodeCacheOptions = {
- stdTTL?: number;
- checkperiod?: number;
- useClones?: boolean;
- deleteOnExpire?: boolean;
- maxKeys?: number;
-};
-```
-
-Here is a description of the options:
-
-| Option | Default Setting | Description |
-|--------|----------------|-------------|
-| `stdTTL` | `0` | The standard time to live (TTL) in seconds for every generated cache element. If set to `0`, it means unlimited. If a string is provided, it will be parsed as shorthand and default to milliseconds if it is a number as a string. |
-| `checkperiod` | `600` | The interval in seconds to check for expired keys. If set to `0`, it means no periodic check will be performed. |
-| `useClones` | `true` | If set to `true`, the cache will clone the returned items via `get()` functions. This means that every time you set a value into the cache, `node-cache` makes a deep clone of it. When you get that value back, you receive another deep clone. This mimics the behavior of an external cache like Redis or Memcached, meaning mutations to the returned object do not affect the cached copy (and vice versa). If set to `false`, the original object will be returned, and mutations will affect the cached copy. |
-| `deleteOnExpire` | `true` | If set to `true`, the key will be deleted when it expires. If set to `false`, the key will remain in the cache, but the value returned by `get()` will be `undefined`. You can manage the key with the `on('expired')` event. |
-| `maxKeys` | `-1` | If set to a positive number, it will limit the number of keys in the cache. If the number of keys exceeds this limit, it will throw an error when trying to set more keys than the maximum. If set to `-1`, it means unlimited keys are allowed. |
-
-When initializing the cache you can pass in the options to set the configuration like the example below where we set the `stdTTL` to 10 seconds and `checkperiod` to 5 seconds.:
-
-```javascript
-const cache = new NodeCache({stdTTL: 10, checkperiod: 5});
-```
-
-When setting `deleteOnExpire` to `true` it will delete the key when it expires. If you set it to `false` it will keep the key but the value on `get()` will be `undefined`. You can manage the key with `on('expired')` event.
-
-```javascript
-const cache = new NodeCache({deleteOnExpire: false});
-cache.on('expired', (key, value) => {
- console.log(`Key ${key} has expired with value ${value}`);
-});
-```
-
-## `set(key: string | number, value: any, ttl?: number): boolean`
-
-Set a key value pair with an optional ttl (in seconds). Will return true on success. If the ttl is not set it will default to 0 (no ttl).
-
-```javascript
-cache.set('foo', 'bar', 10); // true
-```
-
-## `mset(data: Array): boolean`
-
-Set multiple key value pairs at once. This will take an array of objects with the key, value, and optional ttl.
-
-```javascript
-cache.mset([{key: 'foo', value: 'bar', ttl: 10}, {key: 'bar', value: 'baz'}]); // true
-```
-
-the `NodeCacheItem` is defined as:
-
-```javascript
-export type NodeCacheItem = {
- key: string;
- value: any;
- ttl?: number;
-};
-```
-
-## `get(key: string | number): T | undefined`
-
-Get a value from the cache by key. If the key does not exist it will return `undefined`.
-
-```javascript
-cache.get('foo'); // 'bar'
-```
-
-## `mget(keys: Array): Record`
-
-Get multiple values from the cache by keys. This will return an object with the keys and values.
-
-```javascript
-const obj = { my: 'value', my2: 'value2' };
-const obj2 = { special: 'value3', life: 'value4' };
-cache.set('my', obj);
-cache.set('my2', obj2);
-cache.mget(['my', 'my2']); // { my: { my: 'value', my2: 'value2' }, my2: { special: 'value3', life: 'value4' } }
-```
-
-## `take(key: string | number): T | undefined`
-
-Get a value from the cache by key and delete it. If the key does not exist it will return `undefined`.
-
-```javascript
-cache.set('foo', 'bar');
-cache.take('foo'); // 'bar'
-cache.get('foo'); // undefined
-```
-
-## `del(key: string | number | Array): number`
-
-Delete a key from the cache. Will return the number of deleted entries and never fail. You can also pass in an array of keys to delete multiple keys. All examples assume that you have initialized the cache like `const cache = new NodeCache();`.
-
-```javascript
-cache.del('foo'); // true
-```
-
-passing in an array of keys:
-
-```javascript
-cache.del(['foo', 'bar']); // true
-```
-
-## `mdel(keys: Array): number`
-
-Delete multiple keys from the cache. Will return the number of deleted entries and never fail.
-
-```javascript
-cache.mdel(['foo', 'bar']); // true
-```
-
-## `ttl(key: string | number, ttl?: number): boolean`
-
-Redefine the ttl of a key. Returns true if the key has been found and changed. Otherwise returns false. If the ttl-argument isn't passed the default-TTL will be used.
-
-```javascript
-cache.ttl('foo', 10); // true
-```
-
-## `getTtl(key: string | number): number | undefined`
-
-Get the ttl expiration from `Date.now()` of a key. If the key does not exist it will return `undefined`.
-
-```javascript
-cache.getTtl('foo'); // 1725993344859
-```
-
-## `has(key: string | number): boolean`
-
-Check if a key exists in the cache.
-
-```javascript
-cache.set('foo', 'bar');
-cache.has('foo'); // true
-```
-
-## `keys(): string[]`
-
-Get all keys from the cache.
-
-```javascript
-await cache.keys(); // ['foo', 'bar']
-```
-
-## `getStats(): NodeCacheStats`
-
-Get the stats of the cache.
-
-```javascript
-cache.getStats(); // {hits: 1, misses: 1, keys: 1, ksize: 2, vsize: 3}
-```
-
-## `flushAll(): void`
-
-Flush the cache. Will remove all keys and reset the stats.
-
-```javascript
-cache.flushAll();
-await cache.keys(); // []
-cache.getStats(); // {hits: 0, misses: 0, keys: 0, ksize: 0, vsize: 0}
-```
-
-## `flushStats(): void`
-
-Flush the stats. Will reset the stats but keep the keys.
-
-```javascript
-await cache.set('foo', 'bar');
-cache.flushStats();
-cache.getStats(); // {hits: 0, misses: 0, keys: 0, ksize: 0, vsize: 0}
-await cache.keys(); // ['foo']
-```
-
-## `on(event: string, callback: Function): void`
-
-Listen to events. Here are the events that you can listen to:
-* `set` - when a key is set and it will pass in the `key` and `value`.
-* `expired` - when a key is expired and it will pass in the `key` and `value`.
-* `flush` - when the cache is flushed
-* `flush_stats` - when the stats are flushed
-* `del` - when a key is deleted and it will pass in the `key` and `value`.
-
-```javascript
-cache.on('set', (key, value) => {
- console.log(`Key ${key} has been set with value ${value}`);
-});
-```
-
-# NodeCacheStore
-
-`NodeCacheStore` has a similar API to `NodeCache` but it is using `async / await` as it uses the `Keyv` storage adapters under the hood. This means that you can use all the storage adapters that are available in `Keyv` and it will work seamlessly with the `NodeCacheStore`. To learn more about the `Keyv` storage adapters you can check out the [Keyv documentation](https://keyv.org).
-
-```javascript
-import {NodeCacheStore} from '@cacheable/node-cache';
-
-const cache = new NodeCacheStore();
-await cache.set('foo', 'bar');
-await cache.get('foo'); // 'bar'
-```
-
-Here is an example of how to use the `NodeCacheStore` with a primary and secondary storage adapter:
-
-```javascript
-import {NodeCacheStore} from '@cacheable/node-cache';
-import {Keyv} from 'keyv';
-import {KeyvRedis} from '@keyv/redis';
-
-const primary = new Keyv(); // In-memory storage as primary
-const secondary = new Keyv({store: new KeyvRedis('redis://user:pass@localhost:6379')});
-const cache = new NodeCacheStore({primary, secondary});
-
-// with storage you have the same functionality as the NodeCache but will be using async/await
-await cache.set('foo', 'bar');
-await cache.get('foo'); // 'bar'
-
-// if you call getStats() this will now only be for the single instance of the adapter as it is in memory
-cache.getStats(); // {hits: 1, misses: 1, keys: 1, ksize: 2, vsize: 3}
-```
-
-When initializing the cache you can pass in the options below:
-
-```javascript
-export type NodeCacheStoreOptions = {
- ttl?: number; // The standard ttl as number in milliseconds for every generated cache element. 0 = unlimited
- primary?: Keyv; // The primary storage adapter
- secondary?: Keyv; // The secondary storage adapter
- maxKeys?: number; // Default is 0 (unlimited). If this is set it will throw and error if you try to set more keys than the max.
- stats?: boolean; // Default is true, if this is set to false it will not track stats
-};
-```
-
-Note: the `ttl` is now in milliseconds and not seconds like `stdTTL` in `NodeCache`. You can learn more about using shorthand also in the [cacheable documentation](https://github.com/jaredwray/cacheable/blob/main/packages/cacheable/README.md#shorthand-for-time-to-live-ttl) as it is fully supported. Here is an example:
-
-```javascript
-const cache = new NodeCacheStore({ttl: 60000 }); // 1 minute as it defaults to milliseconds
-await cache.set('foo', 'bar', '1h'); // 1 hour
-await cache.set('longfoo', 'bar', '1d'); // 1 day
-```
-
-## NodeCacheStore API
-
-* `set(key: string | number, value: any, ttl?: number): Promise` - Set a key value pair with an optional ttl (in milliseconds). Will return true on success. If the ttl is not set it will default to 0 (no ttl)
-* `mset(data: Array): Promise` - Set multiple key value pairs at once
-* `get(key: string | number): Promise` - Get a value from the cache by key
-* `mget(keys: Array): Promise>` - Get multiple values from the cache by keys
-* `take(key: string | number): Promise` - Get a value from the cache by key and delete it
-* `del(key: string | number): Promise` - Delete a key
-* `mdel(keys: Array): Promise` - Delete multiple keys
-* `clear(): Promise` - Clear the cache
-* `setTtl(key: string | number, ttl: number): Promise` - Set the ttl of a key
-* `disconnect(): Promise` - Disconnect the storage adapters
-* `stats`: `NodeCacheStats` - Get the stats of the cache
-* `ttl`: `number` | `string` - The standard ttl as number in seconds for every generated cache element. `< 0` or `undefined` = unlimited
-* `primary`: `Keyv` - The primary storage adapter
-* `secondary`: `Keyv` - The secondary storage adapter
-* `maxKeys`: `number` - If this is set it will throw and error if you try to set more keys than the max
-
-# How to Contribute
-
-You can contribute by forking the repo and submitting a pull request. Please make sure to add tests and update the documentation. To learn more about how to contribute go to our main README [https://github.com/jaredwray/cacheable](https://github.com/jaredwray/cacheable). This will talk about how to `Open a Pull Request`, `Ask a Question`, or `Post an Issue`.
-
-# License and Copyright
-[MIT © Jared Wray](./LICENSE)
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/node-cache/package.json b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/node-cache/package.json
deleted file mode 100644
index 22657c53..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/node-cache/package.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "name": "@cacheable/node-cache",
- "version": "1.7.6",
- "description": "Simple and Maintained fast NodeJS internal caching",
- "type": "module",
- "main": "./dist/index.js",
- "module": "./dist/index.js",
- "types": "./dist/index.d.ts",
- "exports": {
- ".": {
- "import": {
- "types": "./dist/index.d.ts",
- "default": "./dist/index.js"
- },
- "require": {
- "types": "./dist/index.d.cts",
- "default": "./dist/index.cjs"
- }
- }
- },
- "engines": {
- "node": ">=18"
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/jaredwray/cacheable.git",
- "directory": "packages/node-cache"
- },
- "author": "Jared Wray ",
- "license": "MIT",
- "private": false,
- "keywords": [
- "cache",
- "caching",
- "node",
- "nodejs",
- "cacheable",
- "cacheable-node-cache",
- "node-cache",
- "cacheable-node"
- ],
- "devDependencies": {
- "@biomejs/biome": "^2.3.8",
- "@faker-js/faker": "^10.1.0",
- "@types/node": "^25.0.2",
- "@vitest/coverage-v8": "^4.0.15",
- "rimraf": "^6.1.2",
- "tsup": "^8.5.1",
- "typescript": "^5.9.3",
- "vitest": "^4.0.15"
- },
- "dependencies": {
- "hookified": "^1.14.0",
- "keyv": "^5.5.5",
- "cacheable": "^2.3.1"
- },
- "files": [
- "dist",
- "license"
- ],
- "scripts": {
- "build": "rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean",
- "prepublish": "pnpm build",
- "lint": "biome check --write --error-on-warnings",
- "test": "pnpm lint && vitest run --coverage",
- "test:ci": "biome check --error-on-warnings && vitest run --coverage",
- "clean": "rimraf ./dist ./coverage ./node_modules"
- }
-}
\ No newline at end of file
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/utils/LICENSE b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/utils/LICENSE
deleted file mode 100644
index 9d6198a9..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/utils/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-MIT License & © Jared Wray
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to
-deal in the Software without restriction, including without limitation the
-rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-sell copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-DEALINGS IN THE SOFTWARE.
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/utils/README.md b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/utils/README.md
deleted file mode 100644
index 4714943d..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/utils/README.md
+++ /dev/null
@@ -1,520 +0,0 @@
-[
](https://github.com/jaredwray/cacheable)
-
-> Cacheble Utils
-
-[](https://codecov.io/gh/jaredwray/cacheable)
-[](https://github.com/jaredwray/cacheable/actions/workflows/tests.yml)
-[](https://www.npmjs.com/package/@cacheable/utils)
-[](https://www.npmjs.com/package/@cacheable/utils)
-[](https://github.com/jaredwray/cacheable/blob/main/LICENSE)
-
-`@cacheable/utils` is a collecton of utility functions, helpers, and types for `cacheable` and other caching libraries. It provides a robust set of features to enhance caching capabilities, including:
-
-* Data Types for Caching Items
-* Hash Functions for Key Generation
-* Coalesce Async for Handling Multiple Promises
-* Stats Helpers for Caching Statistics
-* Sleep / Delay for Testing and Timing
-* Memoization for wraping or get / set options
-* Time to Live (TTL) Helpers
-
-# Table of Contents
-* [Getting Started](#getting-started)
-* [Cacheable Types](#cacheable-types)
-* [Coalesce Async](#coalesce-async)
-* [Hash Functions](#hash-functions)
-* [Shorthand Time Helpers](#shorthand-time-helpers)
-* [Sleep Helper](#sleep-helper)
-* [Stats Helpers](#stats-helpers)
-* [Time to Live (TTL) Helpers](#time-to-live-ttl-helpers)
-* [Run if Function Helper](#run-if-function-helper)
-* [Less Than Helper](#less-than-helper)
-* [Is Object Helper](#is-object-helper)
-* [Wrap / Memoization for Sync and Async Functions](#wrap--memoization-for-sync-and-async-functions)
-* [Get Or Set Memoization Function](#get-or-set-memoization-function)
-* [How to Contribute](#how-to-contribute)
-* [License and Copyright](#license-and-copyright)
-
-# Getting Started
-
-```bash
-npm install @cacheable/utils --save
-```
-
-# Cacheable Types
-
-The `@cacheable/utils` package provides various types that are used throughout the caching library. These types help in defining the structure of cached items, ensuring type safety and consistency across your caching operations.
-
-```typescript
-
-/**
- * CacheableItem
- * @typedef {Object} CacheableItem
- * @property {string} key - The key of the cacheable item
- * @property {any} value - The value of the cacheable item
- * @property {number|string} [ttl] - Time to Live - If you set a number it is miliseconds, if you set a string it is a human-readable
- * format such as `1s` for 1 second or `1h` for 1 hour. Setting undefined means that it will use the default time-to-live. If both are
- * undefined then it will not have a time-to-live.
- */
-export type CacheableItem = {
- key: string;
- value: any;
- ttl?: number | string;
-};
-
-/**
- * CacheableStoreItem
- * @typedef {Object} CacheableStoreItem
- * @property {string} key - The key of the cacheable store item
- * @property {any} value - The value of the cacheable store item
- * @property {number} [expires] - The expiration time in milliseconds since epoch. If not set, the item does not expire.
- */
-export type CacheableStoreItem = {
- key: string;
- value: any;
- expires?: number;
-};
-```
-
-# Coalesce Async
-
-The `coalesceAsync` function is a utility that allows you to handle multiple asynchronous operations efficiently. It was designed by `Douglas Cayers` https://github.com/douglascayers/promise-coalesce. It helps in coalescing multiple promises into a single promise, ensuring that only one operation is executed at a time for the same key.
-
-```typescript
-import { coalesceAsync } from '@cacheable/utils';
-
-const fetchData = async (key: string) => {
- // Simulate an asynchronous operation
- return new Promise((resolve) => setTimeout(() => resolve(`Data for ${key}`), 1000));
-};
-
-const result = await Promise.all([
- coalesceAsync('my-key', fetchData),
- coalesceAsync('my-key', fetchData),
- coalesceAsync('my-key', fetchData),
-]);
-console.log(result); // Data for my-key only executed once
-```
-
-# Hash Functions
-
-The `@cacheable/utils` package provides hash functions that can be used to generate unique keys for caching operations. These functions are useful for creating consistent and unique identifiers for cached items.
-
-The hashing API provides both **async** (for cryptographic algorithms) and **sync** (for non-cryptographic algorithms) methods.
-
-## Async Hashing (Cryptographic Algorithms)
-
-Use `hash()` and `hashToNumber()` for cryptographic algorithms like SHA-256, SHA-384, and SHA-512:
-
-```typescript
-import { hash, hashToNumber, HashAlgorithm } from '@cacheable/utils';
-
-// Hash using SHA-256 (default)
-const key = await hash('my-cache-key');
-console.log(key); // Unique hash for 'my-cache-key'
-
-// Hash with specific algorithm
-const sha512Hash = await hash('my-data', { algorithm: HashAlgorithm.SHA512 });
-
-// Convert hash to number within range
-const min = 0;
-const max = 10;
-const result = await hashToNumber({foo: 'bar'}, { min, max, algorithm: HashAlgorithm.SHA256 });
-console.log(result); // A number between 0 and 10 based on the hash value
-```
-
-## Sync Hashing (Non-Cryptographic Algorithms)
-
-Use `hashSync()` and `hashToNumberSync()` for faster, non-cryptographic algorithms like DJB2, FNV1, MURMER, and CRC32:
-
-```typescript
-import { hashSync, hashToNumberSync, HashAlgorithm } from '@cacheable/utils';
-
-// Hash using DJB2 (default for sync)
-const key = hashSync('my-cache-key');
-console.log(key); // Unique hash for 'my-cache-key'
-
-// Hash with specific algorithm
-const fnv1Hash = hashSync('my-data', { algorithm: HashAlgorithm.FNV1 });
-
-// Convert hash to number within range
-const min = 0;
-const max = 10;
-const result = hashToNumberSync({foo: 'bar'}, { min, max, algorithm: HashAlgorithm.DJB2 });
-console.log(result); // A number between 0 and 10 based on the hash value
-```
-
-## Available Hash Algorithms
-
-**Cryptographic (Async):**
-- `HashAlgorithm.SHA256` - SHA-256 (default for async methods)
-- `HashAlgorithm.SHA384` - SHA-384
-- `HashAlgorithm.SHA512` - SHA-512
-
-**Non-Cryptographic (Sync):**
-- `HashAlgorithm.DJB2` - DJB2 (default for sync methods)
-- `HashAlgorithm.FNV1` - FNV-1
-- `HashAlgorithm.MURMER` - Murmur hash
-- `HashAlgorithm.CRC32` - CRC32
-
-# Shorthand Time Helpers
-
-The `@cacheable/utils` package provides a shorthand function to convert human-readable time strings into milliseconds. This is useful for setting time-to-live (TTL) values in caching operations.
-
-You can also use the `shorthandToMilliseconds` function:
-
-```typescript
-import { shorthandToMilliseconds } from '@cacheable/utils';
-
-const milliseconds = shorthandToMilliseconds('1h');
-console.log(milliseconds); // 3600000
-```
-
-You can also use the `shorthandToTime` function to get the current date plus the shorthand time:
-
-```typescript
-import { shorthandToTime } from '@cacheable/utils';
-
-const currentDate = new Date();
-const timeInMs = shorthandToTime('1h', currentDate);
-console.log(timeInMs); // Current date + 1 hour in milliseconds since epoch
-```
-
-# Sleep Helper
-
-The `sleep` function is a utility that allows you to pause execution for a specified duration. This can be useful in testing scenarios or when you need to introduce delays in your code.
-
-```typescript
-import { sleep } from '@cacheable/utils';
-
-await sleep(1000); // Pause for 1 second
-console.log('Execution resumed after 1 second');
-```
-
-# Stats Helpers
-
-The `@cacheable/utils` package provides statistics helpers that can be used to track and analyze caching operations. These helpers can be used to gather metrics such as hit rates, miss rates, and other performance-related statistics.
-
-```typescript
-import { stats } from '@cacheable/utils';
-
-const cacheStats = stats();
-cacheStats.incrementHits();
-console.log(cacheStats.hits); // Get the hit rate of the cache
-```
-
-# Time to Live (TTL) Helpers
-
-The `@cacheable/utils` package provides helpers for managing time-to-live (TTL) values for cached items.
-
-You can use the `calculateTtlFromExpiration` function to calculate the TTL based on an expiration date:
-
-```typescript
-import { calculateTtlFromExpiration } from '@cacheable/utils';
-
-const expirationDate = new Date(Date.now() + 1000 * 60 * 5); // 5 minutes from now
-const ttl = calculateTtlFromExpiration(Date.now(), expirationDate);
-console.log(ttl); // 300000
-```
-
-You can also use `getTtlFromExpires` to get the TTL from an expiration date:
-
-```typescript
-import { getTtlFromExpires } from '@cacheable/utils';
-
-const expirationDate = new Date(Date.now() + 1000 * 60 * 5); // 5 minutes from now
-const ttl = getTtlFromExpires(expirationDate);
-console.log(ttl); // 300000
-```
-
-You can use `getCascadingTtl` to get the TTL for cascading cache operations:
-
-```typescript
-import { getCascadingTtl } from '@cacheable/utils';
-const cacheableTtl = 1000 * 60 * 5; // 5 minutes
-const primaryTtl = 1000 * 60 * 2; // 2 minutes
-const secondaryTtl = 1000 * 60; // 1 minute
-const ttl = getCascadingTtl(cacheableTtl, primaryTtl, secondaryTtl);
-```
-
-# Run if Function Helper
-
-The `runIfFn` utility function provides a convenient way to conditionally execute functions or return values based on whether the input is a function or not. This pattern is commonly used in UI libraries and configuration systems where values can be either static or computed.
-
-```typescript
-import { runIfFn } from '@cacheable/utils';
-
-// Static value - returns the value as-is
-const staticValue = runIfFn('hello world');
-console.log(staticValue); // 'hello world'
-
-// Function with no arguments - executes the function
-const dynamicValue = runIfFn(() => new Date().toISOString());
-console.log(dynamicValue); // Current timestamp
-
-// Function with arguments - executes with provided arguments
-const sum = runIfFn((a: number, b: number) => a + b, 5, 10);
-console.log(sum); // 15
-
-// Complex example with conditional logic
-const getConfig = (isDevelopment: boolean) => ({
- apiUrl: isDevelopment ? 'http://localhost:3000' : 'https://api.example.com',
- timeout: isDevelopment ? 5000 : 30000
-});
-
-const config = runIfFn(getConfig, true);
-console.log(config); // { apiUrl: 'http://localhost:3000', timeout: 5000 }
-```
-
-# Less Than Helper
-
-The `lessThan` utility function provides a safe way to compare two values and determine if the first value is less than the second. It only performs the comparison if both values are valid numbers, returning `false` for any non-number inputs.
-
-```typescript
-import { lessThan } from '@cacheable/utils';
-
-// Basic number comparisons
-console.log(lessThan(1, 2)); // true
-console.log(lessThan(2, 1)); // false
-console.log(lessThan(1, 1)); // false
-
-// Works with negative numbers
-console.log(lessThan(-1, 0)); // true
-console.log(lessThan(-2, -1)); // true
-
-// Works with decimal numbers
-console.log(lessThan(1.5, 2.5)); // true
-console.log(lessThan(2.7, 2.7)); // false
-
-// Safe handling of non-number values
-console.log(lessThan("1", 2)); // false
-console.log(lessThan(1, "2")); // false
-console.log(lessThan(null, 1)); // false
-console.log(lessThan(undefined, 1)); // false
-console.log(lessThan(NaN, 1)); // false
-
-// Useful in filtering and sorting operations
-const numbers = [5, 2, 8, 1, 9];
-const lessThanFive = numbers.filter(n => lessThan(n, 5));
-console.log(lessThanFive); // [2, 1]
-
-// Safe comparison in conditional logic
-function processValue(a?: number, b?: number) {
- if (lessThan(a, b)) {
- return `${a} is less than ${b}`;
- }
- return 'Invalid comparison or a >= b';
-}
-```
-
-This utility is particularly useful when dealing with potentially undefined or invalid numeric values, ensuring type safety in comparison operations.
-
-# Is Object Helper
-
-The `isObject` utility function provides a type-safe way to determine if a value is a plain object. It returns `true` for objects but `false` for arrays, `null`, functions, and primitive types. This function also serves as a TypeScript type guard.
-
-```typescript
-import { isObject } from '@cacheable/utils';
-
-// Basic object detection
-console.log(isObject({})); // true
-console.log(isObject({ name: 'John', age: 30 })); // true
-console.log(isObject(Object.create(null))); // true
-
-// Arrays are not considered objects
-console.log(isObject([])); // false
-console.log(isObject([1, 2, 3])); // false
-
-// null is not considered an object (despite typeof null === 'object')
-console.log(isObject(null)); // false
-
-// Primitive types return false
-console.log(isObject('string')); // false
-console.log(isObject(123)); // false
-console.log(isObject(true)); // false
-console.log(isObject(undefined)); // false
-
-// Functions return false
-console.log(isObject(() => {})); // false
-console.log(isObject(Date)); // false
-
-// Built-in object types return true
-console.log(isObject(new Date())); // true
-console.log(isObject(/regex/)); // true
-console.log(isObject(new Error('test'))); // true
-console.log(isObject(new Map())); // true
-
-// TypeScript type guard usage
-function processValue(value: unknown) {
- if (isObject<{ name: string; age: number }>(value)) {
- // TypeScript now knows value is an object with name and age properties
- console.log(`Name: ${value.name}, Age: ${value.age}`);
- }
-}
-
-// Useful for configuration validation
-function validateConfig(config: unknown) {
- if (!isObject(config)) {
- throw new Error('Configuration must be an object');
- }
-
- // Safe to access object properties
- return config;
-}
-
-// Filtering arrays for objects only
-const mixedArray = [1, 'string', {}, [], null, { valid: true }];
-const objectsOnly = mixedArray.filter(isObject);
-console.log(objectsOnly); // [{}', { valid: true }]
-```
-
-This utility is particularly useful for:
-- **Type validation** - Ensuring values are objects before accessing properties
-- **TypeScript type guarding** - Narrowing types in conditional blocks
-- **Configuration parsing** - Validating that configuration values are objects
-- **Data filtering** - Separating objects from other data types
-
-# Wrap / Memoization for Sync and Async Functions
-
-The `@cacheable/utils` package provides two main functions: `wrap` and `wrapSync`. These functions are used to memoize asynchronous and synchronous functions, respectively.
-
-```javascript
-import { Cacheable } from 'cacheable';
-const asyncFunction = async (value: number) => {
- return Math.random() * value;
-};
-
-const cache = new Cacheable();
-const options = {
- ttl: '1h', // 1 hour
- keyPrefix: 'p1', // key prefix. This is used if you have multiple functions and need to set a unique prefix.
- cache,
-}
-const wrappedFunction = wrap(asyncFunction, options);
-console.log(await wrappedFunction(2)); // 4
-console.log(await wrappedFunction(2)); // 4 from cache
-```
-With `wrap` we have also included stampede protection so that a `Promise` based call will only be called once if multiple requests of the same are executed at the same time. Here is an example of how to test for stampede protection:
-
-```javascript
-import { Cacheable } from 'cacheable';
-const asyncFunction = async (value: number) => {
- return value;
-};
-
-const cache = new Cacheable();
-const options = {
- ttl: '1h', // 1 hour
- keyPrefix: 'p1', // key prefix. This is used if you have multiple functions and need to set a unique prefix.
- cache,
-}
-
-const wrappedFunction = wrap(asyncFunction, options);
-const promises = [];
-for (let i = 0; i < 10; i++) {
- promises.push(wrappedFunction(i));
-}
-
-const results = await Promise.all(promises); // all results should be the same
-
-console.log(results); // [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
-```
-
-In this example we are wrapping an `async` function in a cache with a `ttl` of `1 hour`. This will cache the result of the function for `1 hour` and then expire the value. You can also wrap a `sync` function in a cache:
-
-```javascript
-import { CacheableMemory } from 'cacheable';
-const syncFunction = (value: number) => {
- return value * 2;
-};
-
-const cache = new CacheableMemory();
-const wrappedFunction = wrap(syncFunction, { ttl: '1h', key: 'syncFunction', cache });
-console.log(wrappedFunction(2)); // 4
-console.log(wrappedFunction(2)); // 4 from cache
-```
-
-In this example we are wrapping a `sync` function in a cache with a `ttl` of `1 hour`. This will cache the result of the function for `1 hour` and then expire the value. You can also set the `key` property in the `wrap()` options to set a custom key for the cache.
-
-When an error occurs in the function it will not cache the value and will return the error. This is useful if you want to cache the results of a function but not cache the error. If you want it to cache the error you can set the `cacheError` property to `true` in the `wrap()` options. This is disabled by default.
-
-```javascript
-import { CacheableMemory } from 'cacheable';
-const syncFunction = (value: number) => {
- throw new Error('error');
-};
-
-const cache = new CacheableMemory();
-const wrappedFunction = wrap(syncFunction, { ttl: '1h', key: 'syncFunction', cacheError: true, cache });
-console.log(wrappedFunction()); // error
-console.log(wrappedFunction()); // error from cache
-```
-
-If you would like to generate your own key for the wrapped function you can set the `createKey` property in the `wrap()` options. This is useful if you want to generate a key based on the arguments of the function or any other criteria.
-
-```javascript
- const cache = new Cacheable();
- const options: WrapOptions = {
- cache,
- keyPrefix: 'test',
- createKey: (function_, arguments_, options: WrapOptions) => `customKey:${options?.keyPrefix}:${arguments_[0]}`,
- };
-
- const wrapped = wrap((argument: string) => `Result for ${argument}`, options);
-
- const result1 = await wrapped('arg1');
- const result2 = await wrapped('arg1'); // Should hit the cache
-
- console.log(result1); // Result for arg1
- console.log(result2); // Result for arg1 (from cache)
-```
-
-We will pass in the `function` that is being wrapped, the `arguments` passed to the function, and the `options` used to wrap the function. You can then use these to generate a custom key for the cache.
-
-# Get Or Set Memoization Function
-
-The `getOrSet` method provides a convenient way to implement the cache-aside pattern. It attempts to retrieve a value from cache, and if not found, calls the provided function to compute the value and store it in cache before returning it. Here are the options:
-
-```typescript
-export type GetOrSetFunctionOptions = {
- ttl?: number | string;
- cacheErrors?: boolean;
- throwErrors?: boolean;
- nonBlocking?: boolean;
-};
-```
-
-The `nonBlocking` option allows you to override the instance-level `nonBlocking` setting for the `get` call within `getOrSet`. When set to `false`, the `get` will block and wait for a response from the secondary store before deciding whether to call the provided function. When set to `true`, the primary store returns immediately and syncs from secondary in the background.
-
-Here is an example of how to use the `getOrSet` method:
-
-```javascript
-import { Cacheable } from 'cacheable';
-const cache = new Cacheable();
-// Use getOrSet to fetch user data
-const function_ = async () => Math.random() * 100;
-const value = await getOrSet('randomValue', function_, { ttl: '1h', cache });
-console.log(value); // e.g. 42.123456789
-```
-
-You can also use a function to compute the key for the function:
-
-```javascript
-import { Cacheable, GetOrSetOptions } from 'cacheable';
-const cache = new Cacheable();
-
-// Function to generate a key based on options
-const generateKey = (options?: GetOrSetOptions) => {
- return `custom_key_:${options?.cacheId || 'default'}`;
-};
-
-const function_ = async () => Math.random() * 100;
-const value = await getOrSet(generateKey(), function_, { ttl: '1h', cache });
-```
-
-# How to Contribute
-
-You can contribute by forking the repo and submitting a pull request. Please make sure to add tests and update the documentation. To learn more about how to contribute go to our main README [https://github.com/jaredwray/cacheable](https://github.com/jaredwray/cacheable). This will talk about how to `Open a Pull Request`, `Ask a Question`, or `Post an Issue`.
-
-# License and Copyright
-[MIT © Jared Wray](./LICENSE)
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/utils/package.json b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/utils/package.json
deleted file mode 100644
index 06170597..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@cacheable/utils/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "name": "@cacheable/utils",
- "version": "2.4.1",
- "description": "Cacheable Utilities for Caching Libraries",
- "type": "module",
- "main": "./dist/index.js",
- "module": "./dist/index.js",
- "types": "./dist/index.d.ts",
- "exports": {
- ".": {
- "import": {
- "types": "./dist/index.d.ts",
- "default": "./dist/index.js"
- },
- "require": {
- "types": "./dist/index.d.cts",
- "default": "./dist/index.cjs"
- }
- }
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/jaredwray/cacheable.git",
- "directory": "packages/utils"
- },
- "author": "Jared Wray ",
- "license": "MIT",
- "private": false,
- "dependencies": {
- "hashery": "^1.5.1",
- "keyv": "^5.6.0"
- },
- "devDependencies": {
- "tsup": "^8.5.1",
- "typescript": "^5.9.3"
- },
- "keywords": [
- "cacheable",
- "caching",
- "utilities",
- "hashing",
- "keyv",
- "cache utils"
- ],
- "files": [
- "dist",
- "LICENSE"
- ],
- "scripts": {
- "build": "rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean",
- "lint": "biome check --write --error-on-warnings",
- "test": "pnpm lint && vitest run --coverage",
- "test:ci": "biome check --error-on-warnings && vitest run --coverage",
- "clean": "rimraf ./dist ./coverage ./node_modules"
- }
-}
\ No newline at end of file
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/boom/LICENSE.md b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/boom/LICENSE.md
deleted file mode 100755
index 0d96bf8f..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/boom/LICENSE.md
+++ /dev/null
@@ -1,10 +0,0 @@
-Copyright (c) 2012-2020, Sideway Inc, and project contributors
-Copyright (c) 2012-2014, Walmart.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-* The names of any contributors may not be used to endorse or promote products derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS OFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/boom/README.md b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/boom/README.md
deleted file mode 100755
index 2f10a7cf..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/boom/README.md
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-# @hapi/boom
-
-#### HTTP-friendly error objects.
-
-**boom** is part of the **hapi** ecosystem and was designed to work seamlessly with the [hapi web framework](https://hapi.dev) and its other components (but works great on its own or with other frameworks). If you are using a different web framework and find this module useful, check out [hapi](https://hapi.dev) – they work even better together.
-
-### Visit the [hapi.dev](https://hapi.dev) Developer Portal for tutorials, documentation, and support
-
-## Useful resources
-
-- [Documentation and API](https://hapi.dev/family/boom/)
-- [Version status](https://hapi.dev/resources/status/#boom) (builds, dependencies, node versions, licenses, eol)
-- [Changelog](https://hapi.dev/family/boom/changelog/)
-- [Project policies](https://hapi.dev/policies/)
-- [Free and commercial support options](https://hapi.dev/support/)
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/boom/lib/index.d.ts b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/boom/lib/index.d.ts
deleted file mode 100755
index 108755d1..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/boom/lib/index.d.ts
+++ /dev/null
@@ -1,549 +0,0 @@
-/**
- * An Error object used to return an HTTP response error (4xx, 5xx)
- */
-export class Boom extends Error {
-
- /**
- * Creates a new Boom object using the provided message
- */
- constructor(message?: string | Error, options?: Options);
-
- /**
- * Custom error data with additional information specific to the error type
- */
- data?: Data;
-
- /**
- * isBoom - if true, indicates this is a Boom object instance.
- */
- isBoom: boolean;
-
- /**
- * Convenience boolean indicating status code >= 500
- */
- isServer: boolean;
-
- /**
- * The error message
- */
- message: string;
-
- /**
- * The formatted response
- */
- output: Output;
-
- /**
- * The constructor used to create the error
- */
- typeof: Function;
-
- /**
- * Specifies if an error object is a valid boom object
- *
- * @param debug - A boolean that, when true, does not hide the original 500 error message. Defaults to false.
- */
- reformat(debug?: boolean): string;
-}
-
-
-export interface Options {
- /**
- * The HTTP status code
- *
- * @default 500
- */
- statusCode?: number;
-
- /**
- * Additional error information
- */
- data?: Data;
-
- /**
- * Constructor reference used to crop the exception call stack output
- */
- ctor?: Function;
-
- /**
- * Error message string
- *
- * @default none
- */
- message?: string;
-
- /**
- * If false, the err provided is a Boom object, and a statusCode or message are provided, the values are ignored
- *
- * @default true
- */
- override?: boolean;
-}
-
-
-export interface Decorate {
-
- /**
- * An option with extra properties to set on the error object
- */
- decorate?: Decoration;
-}
-
-
-export interface Payload {
- /**
- * The HTTP status code derived from error.output.statusCode
- */
- statusCode: number;
-
- /**
- * The HTTP status message derived from statusCode
- */
- error: string;
-
- /**
- * The error message derived from error.message
- */
- message: string;
-
- /**
- * Custom properties
- */
- [key: string]: unknown;
-}
-
-
-export interface Output {
- /**
- * The HTTP status code
- */
- statusCode: number;
-
- /**
- * An object containing any HTTP headers where each key is a header name and value is the header content
- */
- headers: { [header: string]: string | string[] | number | undefined };
-
- /**
- * The formatted object used as the response payload (stringified)
- */
- payload: Payload;
-}
-
-
-/**
-* Specifies if an object is a valid boom object
-*
-* @param obj - The object to assess
-* @param statusCode - Optional status code
-*
-* @returns Returns a boolean stating if the error object is a valid boom object and it has the provided statusCode (if present)
-*/
-export function isBoom(obj: unknown, statusCode?: number): obj is Boom;
-
-
-/**
-* Specifies if an error object is a valid boom object
-*
-* @param err - The error object to decorate
-* @param options - Options object
-*
-* @returns A decorated boom object
-*/
-export function boomify(err: Error, options?: Options & Decorate): Boom & Decoration;
-
-
-// 4xx Errors
-
-/**
-* Returns a 400 Bad Request error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 400 bad request error
-*/
-export function badRequest(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 401 Unauthorized error
-*
-* @param message - Optional message
-*
-* @returns A 401 Unauthorized error
-*/
-export function unauthorized(message?: string | null): Boom;
-
-
-/**
-* Returns a 401 Unauthorized error
-*
-* @param message - Optional message
-* @param scheme - the authentication scheme name
-* @param attributes - an object of values used to construct the 'WWW-Authenticate' header
-*
-* @returns A 401 Unauthorized error
-*/
-export function unauthorized(message: '' | null, scheme: string, attributes?: string | unauthorized.Attributes): Boom & unauthorized.MissingAuth;
-export function unauthorized(message: string | null, scheme: string, attributes?: string | unauthorized.Attributes): Boom;
-
-
-export namespace unauthorized {
-
- interface Attributes {
- [index: string]: number | string | null | undefined;
- }
-
- interface MissingAuth {
-
- /**
- * Indicate whether the 401 unauthorized error is due to missing credentials (vs. invalid)
- */
- isMissing: boolean;
- }
-}
-
-
-/**
-* Returns a 401 Unauthorized error
-*
-* @param message - Optional message
-* @param wwwAuthenticate - array of string values used to construct the wwwAuthenticate header
-*
-* @returns A 401 Unauthorized error
-*/
-export function unauthorized(message: string | null, wwwAuthenticate: string[]): Boom;
-
-
-/**
-* Returns a 402 Payment Required error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 402 Payment Required error
-*/
-export function paymentRequired(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 403 Forbidden error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 403 Forbidden error
-*/
-export function forbidden(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 404 Not Found error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 404 Not Found error
-*/
-export function notFound(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 405 Method Not Allowed error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-* @param allow - Optional string or array of strings which is used to set the 'Allow' header
-*
-* @returns A 405 Method Not Allowed error
-*/
-export function methodNotAllowed(message?: string, data?: Data, allow?: string | string[]): Boom;
-
-
-/**
-* Returns a 406 Not Acceptable error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 406 Not Acceptable error
-*/
-export function notAcceptable(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 407 Proxy Authentication error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 407 Proxy Authentication error
-*/
-export function proxyAuthRequired(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 408 Request Time-out error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 408 Request Time-out error
-*/
-export function clientTimeout(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 409 Conflict error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 409 Conflict error
-*/
-export function conflict(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 410 Gone error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 410 gone error
-*/
-export function resourceGone(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 411 Length Required error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 411 Length Required error
-*/
-export function lengthRequired(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 412 Precondition Failed error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 412 Precondition Failed error
-*/
-export function preconditionFailed(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 413 Request Entity Too Large error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 413 Request Entity Too Large error
-*/
-export function entityTooLarge(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 414 Request-URI Too Large error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 414 Request-URI Too Large error
-*/
-export function uriTooLong(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 415 Unsupported Media Type error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 415 Unsupported Media Type error
-*/
-export function unsupportedMediaType(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 416 Request Range Not Satisfiable error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 416 Request Range Not Satisfiable error
-*/
-export function rangeNotSatisfiable(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 417 Expectation Failed error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 417 Expectation Failed error
-*/
-export function expectationFailed(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 418 I'm a Teapot error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 418 I'm a Teapot error
-*/
-export function teapot(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 422 Unprocessable Entity error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 422 Unprocessable Entity error
-*/
-export function badData(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 423 Locked error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 423 Locked error
-*/
-export function locked(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 424 Failed Dependency error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 424 Failed Dependency error
-*/
-export function failedDependency(message?: string, data?: Data): Boom;
-
-/**
-* Returns a 425 Too Early error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 425 Too Early error
-*/
-export function tooEarly(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 428 Precondition Required error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 428 Precondition Required error
-*/
-export function preconditionRequired(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 429 Too Many Requests error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 429 Too Many Requests error
-*/
-export function tooManyRequests(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 451 Unavailable For Legal Reasons error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 451 Unavailable for Legal Reasons error
-*/
-export function illegal(message?: string, data?: Data): Boom;
-
-
-// 5xx Errors
-
-/**
-* Returns a internal error (defaults to 500)
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-* @param statusCode - Optional status code override. Defaults to 500.
-*
-* @returns A 500 Internal Server error
-*/
-export function internal(message?: string, data?: Data, statusCode?: number): Boom;
-
-
-/**
-* Returns a 500 Internal Server Error error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 500 Internal Server error
-*/
-export function badImplementation(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 501 Not Implemented error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 501 Not Implemented error
-*/
-export function notImplemented(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 502 Bad Gateway error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 502 Bad Gateway error
-*/
-export function badGateway(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 503 Service Unavailable error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 503 Service Unavailable error
-*/
-export function serverUnavailable(message?: string, data?: Data): Boom;
-
-
-/**
-* Returns a 504 Gateway Time-out error
-*
-* @param message - Optional message
-* @param data - Optional additional error data
-*
-* @returns A 504 Gateway Time-out error
-*/
-export function gatewayTimeout(message?: string, data?: Data): Boom;
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/boom/lib/index.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/boom/lib/index.js
deleted file mode 100755
index d7b16be9..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/boom/lib/index.js
+++ /dev/null
@@ -1,469 +0,0 @@
-'use strict';
-
-const Hoek = require('@hapi/hoek');
-
-
-const internals = {
- codes: new Map([
- [100, 'Continue'],
- [101, 'Switching Protocols'],
- [102, 'Processing'],
- [200, 'OK'],
- [201, 'Created'],
- [202, 'Accepted'],
- [203, 'Non-Authoritative Information'],
- [204, 'No Content'],
- [205, 'Reset Content'],
- [206, 'Partial Content'],
- [207, 'Multi-Status'],
- [300, 'Multiple Choices'],
- [301, 'Moved Permanently'],
- [302, 'Moved Temporarily'],
- [303, 'See Other'],
- [304, 'Not Modified'],
- [305, 'Use Proxy'],
- [307, 'Temporary Redirect'],
- [400, 'Bad Request'],
- [401, 'Unauthorized'],
- [402, 'Payment Required'],
- [403, 'Forbidden'],
- [404, 'Not Found'],
- [405, 'Method Not Allowed'],
- [406, 'Not Acceptable'],
- [407, 'Proxy Authentication Required'],
- [408, 'Request Time-out'],
- [409, 'Conflict'],
- [410, 'Gone'],
- [411, 'Length Required'],
- [412, 'Precondition Failed'],
- [413, 'Request Entity Too Large'],
- [414, 'Request-URI Too Large'],
- [415, 'Unsupported Media Type'],
- [416, 'Requested Range Not Satisfiable'],
- [417, 'Expectation Failed'],
- [418, 'I\'m a teapot'],
- [422, 'Unprocessable Entity'],
- [423, 'Locked'],
- [424, 'Failed Dependency'],
- [425, 'Too Early'],
- [426, 'Upgrade Required'],
- [428, 'Precondition Required'],
- [429, 'Too Many Requests'],
- [431, 'Request Header Fields Too Large'],
- [451, 'Unavailable For Legal Reasons'],
- [500, 'Internal Server Error'],
- [501, 'Not Implemented'],
- [502, 'Bad Gateway'],
- [503, 'Service Unavailable'],
- [504, 'Gateway Time-out'],
- [505, 'HTTP Version Not Supported'],
- [506, 'Variant Also Negotiates'],
- [507, 'Insufficient Storage'],
- [509, 'Bandwidth Limit Exceeded'],
- [510, 'Not Extended'],
- [511, 'Network Authentication Required']
- ])
-};
-
-
-exports.Boom = class extends Error {
-
- constructor(message, options = {}) {
-
- if (message instanceof Error) {
- return exports.boomify(Hoek.clone(message), options);
- }
-
- const { statusCode = 500, data = null, ctor = exports.Boom } = options;
- const error = new Error(message ? message : undefined); // Avoids settings null message
- Error.captureStackTrace(error, ctor); // Filter the stack to our external API
- error.data = data;
- const boom = internals.initialize(error, statusCode);
-
- Object.defineProperty(boom, 'typeof', { value: ctor });
-
- if (options.decorate) {
- Object.assign(boom, options.decorate);
- }
-
- return boom;
- }
-
- static [Symbol.hasInstance](instance) {
-
- if (this === exports.Boom) {
- return exports.isBoom(instance);
- }
-
- // Cannot use 'instanceof' as it creates infinite recursion
-
- return this.prototype.isPrototypeOf(instance);
- }
-};
-
-
-exports.isBoom = function (err, statusCode) {
-
- return err instanceof Error && !!err.isBoom && (!statusCode || err.output.statusCode === statusCode);
-};
-
-
-exports.boomify = function (err, options) {
-
- Hoek.assert(err instanceof Error, 'Cannot wrap non-Error object');
-
- options = options || {};
-
- if (options.data !== undefined) {
- err.data = options.data;
- }
-
- if (options.decorate) {
- Object.assign(err, options.decorate);
- }
-
- if (!err.isBoom) {
- return internals.initialize(err, options.statusCode || 500, options.message);
- }
-
- if (options.override === false || // Defaults to true
- !options.statusCode && !options.message) {
-
- return err;
- }
-
- return internals.initialize(err, options.statusCode || err.output.statusCode, options.message);
-};
-
-
-// 4xx Client Errors
-
-exports.badRequest = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 400, data, ctor: exports.badRequest });
-};
-
-
-exports.unauthorized = function (message, scheme, attributes) { // Or (message, wwwAuthenticate[])
-
- const err = new exports.Boom(message, { statusCode: 401, ctor: exports.unauthorized });
-
- // function (message)
-
- if (!scheme) {
- return err;
- }
-
- // function (message, wwwAuthenticate[])
-
- if (typeof scheme !== 'string') {
- err.output.headers['WWW-Authenticate'] = scheme.join(', ');
- return err;
- }
-
- // function (message, scheme, attributes)
-
- let wwwAuthenticate = `${scheme}`;
-
- if (attributes ||
- message) {
-
- err.output.payload.attributes = {};
- }
-
- if (attributes) {
- if (typeof attributes === 'string') {
- wwwAuthenticate += ' ' + Hoek.escapeHeaderAttribute(attributes);
- err.output.payload.attributes = attributes;
- }
- else {
- wwwAuthenticate += ' ' + Object.keys(attributes).map((name) => {
-
- let value = attributes[name];
- if (value === null ||
- value === undefined) {
-
- value = '';
- }
-
- err.output.payload.attributes[name] = value;
- return `${name}="${Hoek.escapeHeaderAttribute(value.toString())}"`;
- })
- .join(', ');
- }
- }
-
- if (message) {
- if (attributes) {
- wwwAuthenticate += ',';
- }
-
- wwwAuthenticate += ` error="${Hoek.escapeHeaderAttribute(message)}"`;
- err.output.payload.attributes.error = message;
- }
- else {
- err.isMissing = true;
- }
-
- err.output.headers['WWW-Authenticate'] = wwwAuthenticate;
- return err;
-};
-
-
-exports.paymentRequired = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 402, data, ctor: exports.paymentRequired });
-};
-
-
-exports.forbidden = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 403, data, ctor: exports.forbidden });
-};
-
-
-exports.notFound = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 404, data, ctor: exports.notFound });
-};
-
-
-exports.methodNotAllowed = function (message, data, allow) {
-
- const err = new exports.Boom(message, { statusCode: 405, data, ctor: exports.methodNotAllowed });
-
- if (typeof allow === 'string') {
- allow = [allow];
- }
-
- if (Array.isArray(allow)) {
- err.output.headers.Allow = allow.join(', ');
- }
-
- return err;
-};
-
-
-exports.notAcceptable = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 406, data, ctor: exports.notAcceptable });
-};
-
-
-exports.proxyAuthRequired = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 407, data, ctor: exports.proxyAuthRequired });
-};
-
-
-exports.clientTimeout = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 408, data, ctor: exports.clientTimeout });
-};
-
-
-exports.conflict = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 409, data, ctor: exports.conflict });
-};
-
-
-exports.resourceGone = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 410, data, ctor: exports.resourceGone });
-};
-
-
-exports.lengthRequired = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 411, data, ctor: exports.lengthRequired });
-};
-
-
-exports.preconditionFailed = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 412, data, ctor: exports.preconditionFailed });
-};
-
-
-exports.entityTooLarge = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 413, data, ctor: exports.entityTooLarge });
-};
-
-
-exports.uriTooLong = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 414, data, ctor: exports.uriTooLong });
-};
-
-
-exports.unsupportedMediaType = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 415, data, ctor: exports.unsupportedMediaType });
-};
-
-
-exports.rangeNotSatisfiable = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 416, data, ctor: exports.rangeNotSatisfiable });
-};
-
-
-exports.expectationFailed = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 417, data, ctor: exports.expectationFailed });
-};
-
-
-exports.teapot = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 418, data, ctor: exports.teapot });
-};
-
-
-exports.badData = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 422, data, ctor: exports.badData });
-};
-
-
-exports.locked = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 423, data, ctor: exports.locked });
-};
-
-
-exports.failedDependency = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 424, data, ctor: exports.failedDependency });
-};
-
-exports.tooEarly = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 425, data, ctor: exports.tooEarly });
-};
-
-
-exports.preconditionRequired = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 428, data, ctor: exports.preconditionRequired });
-};
-
-
-exports.tooManyRequests = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 429, data, ctor: exports.tooManyRequests });
-};
-
-
-exports.illegal = function (message, data) {
-
- return new exports.Boom(message, { statusCode: 451, data, ctor: exports.illegal });
-};
-
-
-// 5xx Server Errors
-
-exports.internal = function (message, data, statusCode = 500) {
-
- return internals.serverError(message, data, statusCode, exports.internal);
-};
-
-
-exports.notImplemented = function (message, data) {
-
- return internals.serverError(message, data, 501, exports.notImplemented);
-};
-
-
-exports.badGateway = function (message, data) {
-
- return internals.serverError(message, data, 502, exports.badGateway);
-};
-
-
-exports.serverUnavailable = function (message, data) {
-
- return internals.serverError(message, data, 503, exports.serverUnavailable);
-};
-
-
-exports.gatewayTimeout = function (message, data) {
-
- return internals.serverError(message, data, 504, exports.gatewayTimeout);
-};
-
-
-exports.badImplementation = function (message, data) {
-
- const err = internals.serverError(message, data, 500, exports.badImplementation);
- err.isDeveloperError = true;
- return err;
-};
-
-
-internals.initialize = function (err, statusCode, message) {
-
- const numberCode = parseInt(statusCode, 10);
- Hoek.assert(!isNaN(numberCode) && numberCode >= 400, 'First argument must be a number (400+):', statusCode);
-
- err.isBoom = true;
- err.isServer = numberCode >= 500;
-
- if (!err.hasOwnProperty('data')) {
- err.data = null;
- }
-
- err.output = {
- statusCode: numberCode,
- payload: {},
- headers: {}
- };
-
- Object.defineProperty(err, 'reformat', { value: internals.reformat, configurable: true });
-
- if (!message &&
- !err.message) {
-
- err.reformat();
- message = err.output.payload.error;
- }
-
- if (message) {
- const props = Object.getOwnPropertyDescriptor(err, 'message') || Object.getOwnPropertyDescriptor(Object.getPrototypeOf(err), 'message');
- Hoek.assert(!props || props.configurable && !props.get, 'The error is not compatible with boom');
-
- err.message = message + (err.message ? ': ' + err.message : '');
- err.output.payload.message = err.message;
- }
-
- err.reformat();
- return err;
-};
-
-
-internals.reformat = function (debug = false) {
-
- this.output.payload.statusCode = this.output.statusCode;
- this.output.payload.error = internals.codes.get(this.output.statusCode) || 'Unknown';
-
- if (this.output.statusCode === 500 && debug !== true) {
- this.output.payload.message = 'An internal server error occurred'; // Hide actual error from user
- }
- else if (this.message) {
- this.output.payload.message = this.message;
- }
-};
-
-
-internals.serverError = function (message, data, statusCode, ctor) {
-
- if (data instanceof Error &&
- !data.isBoom) {
-
- return exports.boomify(data, { statusCode, message });
- }
-
- return new exports.Boom(message, { statusCode, data, ctor });
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/boom/package.json b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/boom/package.json
deleted file mode 100644
index 8193fa82..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/boom/package.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "name": "@hapi/boom",
- "description": "HTTP-friendly error objects",
- "version": "9.1.4",
- "repository": "git://github.com/hapijs/boom",
- "main": "lib/index.js",
- "types": "lib/index.d.ts",
- "keywords": [
- "error",
- "http"
- ],
- "files": [
- "lib"
- ],
- "dependencies": {
- "@hapi/hoek": "9.x.x"
- },
- "devDependencies": {
- "@hapi/code": "8.x.x",
- "@hapi/lab": "24.x.x",
- "typescript": "~4.0.2"
- },
- "scripts": {
- "test": "lab -a @hapi/code -t 100 -L -Y",
- "test-cov-html": "lab -a @hapi/code -t 100 -L -r html -o coverage.html"
- },
- "license": "BSD-3-Clause"
-}
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/LICENSE.md b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/LICENSE.md
deleted file mode 100755
index 0c95a4c7..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/LICENSE.md
+++ /dev/null
@@ -1,12 +0,0 @@
-Copyright (c) 2011-2020, Sideway Inc, and project contributors
-Copyright (c) 2011-2014, Walmart
-Copyright (c) 2011, Yahoo Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-* The names of any contributors may not be used to endorse or promote products derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS OFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/README.md b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/README.md
deleted file mode 100755
index 8771dbfd..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-# @hapi/hoek
-
-#### Utility methods for the hapi ecosystem.
-
-**hoek** is part of the **hapi** ecosystem and was designed to work seamlessly with the [hapi web framework](https://hapi.dev) and its other components (but works great on its own or with other frameworks). If you are using a different web framework and find this module useful, check out [hapi](https://hapi.dev) – they work even better together.
-
-This module is not intended to solve every problem for everyone, but rather as a central place to store hapi-specific methods. If you're looking for a general purpose utility module, check out [lodash](https://github.com/lodash/lodash).
-
-### Visit the [hapi.dev](https://hapi.dev) Developer Portal for tutorials, documentation, and support
-
-## Useful resources
-
-- [Documentation and API](https://hapi.dev/family/hoek/)
-- [Version status](https://hapi.dev/resources/status/#hoek) (builds, dependencies, node versions, licenses, eol)
-- [Changelog](https://hapi.dev/family/hoek/changelog/)
-- [Project policies](https://hapi.dev/policies/)
-- [Free and commercial support options](https://hapi.dev/support/)
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/applyToDefaults.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/applyToDefaults.js
deleted file mode 100755
index 9881247b..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/applyToDefaults.js
+++ /dev/null
@@ -1,102 +0,0 @@
-'use strict';
-
-const Assert = require('./assert');
-const Clone = require('./clone');
-const Merge = require('./merge');
-const Reach = require('./reach');
-
-
-const internals = {};
-
-
-module.exports = function (defaults, source, options = {}) {
-
- Assert(defaults && typeof defaults === 'object', 'Invalid defaults value: must be an object');
- Assert(!source || source === true || typeof source === 'object', 'Invalid source value: must be true, falsy or an object');
- Assert(typeof options === 'object', 'Invalid options: must be an object');
-
- if (!source) { // If no source, return null
- return null;
- }
-
- if (options.shallow) {
- return internals.applyToDefaultsWithShallow(defaults, source, options);
- }
-
- const copy = Clone(defaults);
-
- if (source === true) { // If source is set to true, use defaults
- return copy;
- }
-
- const nullOverride = options.nullOverride !== undefined ? options.nullOverride : false;
- return Merge(copy, source, { nullOverride, mergeArrays: false });
-};
-
-
-internals.applyToDefaultsWithShallow = function (defaults, source, options) {
-
- const keys = options.shallow;
- Assert(Array.isArray(keys), 'Invalid keys');
-
- const seen = new Map();
- const merge = source === true ? null : new Set();
-
- for (let key of keys) {
- key = Array.isArray(key) ? key : key.split('.'); // Pre-split optimization
-
- const ref = Reach(defaults, key);
- if (ref &&
- typeof ref === 'object') {
-
- seen.set(ref, merge && Reach(source, key) || ref);
- }
- else if (merge) {
- merge.add(key);
- }
- }
-
- const copy = Clone(defaults, {}, seen);
-
- if (!merge) {
- return copy;
- }
-
- for (const key of merge) {
- internals.reachCopy(copy, source, key);
- }
-
- const nullOverride = options.nullOverride !== undefined ? options.nullOverride : false;
- return Merge(copy, source, { nullOverride, mergeArrays: false });
-};
-
-
-internals.reachCopy = function (dst, src, path) {
-
- for (const segment of path) {
- if (!(segment in src)) {
- return;
- }
-
- const val = src[segment];
-
- if (typeof val !== 'object' || val === null) {
- return;
- }
-
- src = val;
- }
-
- const value = src;
- let ref = dst;
- for (let i = 0; i < path.length - 1; ++i) {
- const segment = path[i];
- if (typeof ref[segment] !== 'object') {
- ref[segment] = {};
- }
-
- ref = ref[segment];
- }
-
- ref[path[path.length - 1]] = value;
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/assert.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/assert.js
deleted file mode 100755
index 6ed635a2..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/assert.js
+++ /dev/null
@@ -1,22 +0,0 @@
-'use strict';
-
-const AssertError = require('./error');
-
-
-const internals = {};
-
-
-module.exports = function (condition, ...args) {
-
- if (condition) {
- return;
- }
-
- if (args.length === 1 &&
- args[0] instanceof Error) {
-
- throw args[0];
- }
-
- throw new AssertError(args);
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/bench.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/bench.js
deleted file mode 100755
index 26ee1962..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/bench.js
+++ /dev/null
@@ -1,29 +0,0 @@
-'use strict';
-
-const internals = {};
-
-
-module.exports = internals.Bench = class {
-
- constructor() {
-
- this.ts = 0;
- this.reset();
- }
-
- reset() {
-
- this.ts = internals.Bench.now();
- }
-
- elapsed() {
-
- return internals.Bench.now() - this.ts;
- }
-
- static now() {
-
- const ts = process.hrtime();
- return (ts[0] * 1e3) + (ts[1] / 1e6);
- }
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/block.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/block.js
deleted file mode 100755
index 73fb9a53..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/block.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-const Ignore = require('./ignore');
-
-
-const internals = {};
-
-
-module.exports = function () {
-
- return new Promise(Ignore);
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/clone.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/clone.js
deleted file mode 100755
index e64defb8..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/clone.js
+++ /dev/null
@@ -1,176 +0,0 @@
-'use strict';
-
-const Reach = require('./reach');
-const Types = require('./types');
-const Utils = require('./utils');
-
-
-const internals = {
- needsProtoHack: new Set([Types.set, Types.map, Types.weakSet, Types.weakMap])
-};
-
-
-module.exports = internals.clone = function (obj, options = {}, _seen = null) {
-
- if (typeof obj !== 'object' ||
- obj === null) {
-
- return obj;
- }
-
- let clone = internals.clone;
- let seen = _seen;
-
- if (options.shallow) {
- if (options.shallow !== true) {
- return internals.cloneWithShallow(obj, options);
- }
-
- clone = (value) => value;
- }
- else if (seen) {
- const lookup = seen.get(obj);
- if (lookup) {
- return lookup;
- }
- }
- else {
- seen = new Map();
- }
-
- // Built-in object types
-
- const baseProto = Types.getInternalProto(obj);
- if (baseProto === Types.buffer) {
- return Buffer && Buffer.from(obj); // $lab:coverage:ignore$
- }
-
- if (baseProto === Types.date) {
- return new Date(obj.getTime());
- }
-
- if (baseProto === Types.regex) {
- return new RegExp(obj);
- }
-
- // Generic objects
-
- const newObj = internals.base(obj, baseProto, options);
- if (newObj === obj) {
- return obj;
- }
-
- if (seen) {
- seen.set(obj, newObj); // Set seen, since obj could recurse
- }
-
- if (baseProto === Types.set) {
- for (const value of obj) {
- newObj.add(clone(value, options, seen));
- }
- }
- else if (baseProto === Types.map) {
- for (const [key, value] of obj) {
- newObj.set(key, clone(value, options, seen));
- }
- }
-
- const keys = Utils.keys(obj, options);
- for (const key of keys) {
- if (key === '__proto__') {
- continue;
- }
-
- if (baseProto === Types.array &&
- key === 'length') {
-
- newObj.length = obj.length;
- continue;
- }
-
- const descriptor = Object.getOwnPropertyDescriptor(obj, key);
- if (descriptor) {
- if (descriptor.get ||
- descriptor.set) {
-
- Object.defineProperty(newObj, key, descriptor);
- }
- else if (descriptor.enumerable) {
- newObj[key] = clone(obj[key], options, seen);
- }
- else {
- Object.defineProperty(newObj, key, { enumerable: false, writable: true, configurable: true, value: clone(obj[key], options, seen) });
- }
- }
- else {
- Object.defineProperty(newObj, key, {
- enumerable: true,
- writable: true,
- configurable: true,
- value: clone(obj[key], options, seen)
- });
- }
- }
-
- return newObj;
-};
-
-
-internals.cloneWithShallow = function (source, options) {
-
- const keys = options.shallow;
- options = Object.assign({}, options);
- options.shallow = false;
-
- const seen = new Map();
-
- for (const key of keys) {
- const ref = Reach(source, key);
- if (typeof ref === 'object' ||
- typeof ref === 'function') {
-
- seen.set(ref, ref);
- }
- }
-
- return internals.clone(source, options, seen);
-};
-
-
-internals.base = function (obj, baseProto, options) {
-
- if (options.prototype === false) { // Defaults to true
- if (internals.needsProtoHack.has(baseProto)) {
- return new baseProto.constructor();
- }
-
- return baseProto === Types.array ? [] : {};
- }
-
- const proto = Object.getPrototypeOf(obj);
- if (proto &&
- proto.isImmutable) {
-
- return obj;
- }
-
- if (baseProto === Types.array) {
- const newObj = [];
- if (proto !== baseProto) {
- Object.setPrototypeOf(newObj, proto);
- }
-
- return newObj;
- }
-
- if (internals.needsProtoHack.has(baseProto)) {
- const newObj = new proto.constructor();
- if (proto !== baseProto) {
- Object.setPrototypeOf(newObj, proto);
- }
-
- return newObj;
- }
-
- return Object.create(proto);
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/contain.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/contain.js
deleted file mode 100755
index 162ea3e8..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/contain.js
+++ /dev/null
@@ -1,307 +0,0 @@
-'use strict';
-
-const Assert = require('./assert');
-const DeepEqual = require('./deepEqual');
-const EscapeRegex = require('./escapeRegex');
-const Utils = require('./utils');
-
-
-const internals = {};
-
-
-module.exports = function (ref, values, options = {}) { // options: { deep, once, only, part, symbols }
-
- /*
- string -> string(s)
- array -> item(s)
- object -> key(s)
- object -> object (key:value)
- */
-
- if (typeof values !== 'object') {
- values = [values];
- }
-
- Assert(!Array.isArray(values) || values.length, 'Values array cannot be empty');
-
- // String
-
- if (typeof ref === 'string') {
- return internals.string(ref, values, options);
- }
-
- // Array
-
- if (Array.isArray(ref)) {
- return internals.array(ref, values, options);
- }
-
- // Object
-
- Assert(typeof ref === 'object', 'Reference must be string or an object');
- return internals.object(ref, values, options);
-};
-
-
-internals.array = function (ref, values, options) {
-
- if (!Array.isArray(values)) {
- values = [values];
- }
-
- if (!ref.length) {
- return false;
- }
-
- if (options.only &&
- options.once &&
- ref.length !== values.length) {
-
- return false;
- }
-
- let compare;
-
- // Map values
-
- const map = new Map();
- for (const value of values) {
- if (!options.deep ||
- !value ||
- typeof value !== 'object') {
-
- const existing = map.get(value);
- if (existing) {
- ++existing.allowed;
- }
- else {
- map.set(value, { allowed: 1, hits: 0 });
- }
- }
- else {
- compare = compare || internals.compare(options);
-
- let found = false;
- for (const [key, existing] of map.entries()) {
- if (compare(key, value)) {
- ++existing.allowed;
- found = true;
- break;
- }
- }
-
- if (!found) {
- map.set(value, { allowed: 1, hits: 0 });
- }
- }
- }
-
- // Lookup values
-
- let hits = 0;
- for (const item of ref) {
- let match;
- if (!options.deep ||
- !item ||
- typeof item !== 'object') {
-
- match = map.get(item);
- }
- else {
- compare = compare || internals.compare(options);
-
- for (const [key, existing] of map.entries()) {
- if (compare(key, item)) {
- match = existing;
- break;
- }
- }
- }
-
- if (match) {
- ++match.hits;
- ++hits;
-
- if (options.once &&
- match.hits > match.allowed) {
-
- return false;
- }
- }
- }
-
- // Validate results
-
- if (options.only &&
- hits !== ref.length) {
-
- return false;
- }
-
- for (const match of map.values()) {
- if (match.hits === match.allowed) {
- continue;
- }
-
- if (match.hits < match.allowed &&
- !options.part) {
-
- return false;
- }
- }
-
- return !!hits;
-};
-
-
-internals.object = function (ref, values, options) {
-
- Assert(options.once === undefined, 'Cannot use option once with object');
-
- const keys = Utils.keys(ref, options);
- if (!keys.length) {
- return false;
- }
-
- // Keys list
-
- if (Array.isArray(values)) {
- return internals.array(keys, values, options);
- }
-
- // Key value pairs
-
- const symbols = Object.getOwnPropertySymbols(values).filter((sym) => values.propertyIsEnumerable(sym));
- const targets = [...Object.keys(values), ...symbols];
-
- const compare = internals.compare(options);
- const set = new Set(targets);
-
- for (const key of keys) {
- if (!set.has(key)) {
- if (options.only) {
- return false;
- }
-
- continue;
- }
-
- if (!compare(values[key], ref[key])) {
- return false;
- }
-
- set.delete(key);
- }
-
- if (set.size) {
- return options.part ? set.size < targets.length : false;
- }
-
- return true;
-};
-
-
-internals.string = function (ref, values, options) {
-
- // Empty string
-
- if (ref === '') {
- return values.length === 1 && values[0] === '' || // '' contains ''
- !options.once && !values.some((v) => v !== ''); // '' contains multiple '' if !once
- }
-
- // Map values
-
- const map = new Map();
- const patterns = [];
-
- for (const value of values) {
- Assert(typeof value === 'string', 'Cannot compare string reference to non-string value');
-
- if (value) {
- const existing = map.get(value);
- if (existing) {
- ++existing.allowed;
- }
- else {
- map.set(value, { allowed: 1, hits: 0 });
- patterns.push(EscapeRegex(value));
- }
- }
- else if (options.once ||
- options.only) {
-
- return false;
- }
- }
-
- if (!patterns.length) { // Non-empty string contains unlimited empty string
- return true;
- }
-
- // Match patterns
-
- const regex = new RegExp(`(${patterns.join('|')})`, 'g');
- const leftovers = ref.replace(regex, ($0, $1) => {
-
- ++map.get($1).hits;
- return ''; // Remove from string
- });
-
- // Validate results
-
- if (options.only &&
- leftovers) {
-
- return false;
- }
-
- let any = false;
- for (const match of map.values()) {
- if (match.hits) {
- any = true;
- }
-
- if (match.hits === match.allowed) {
- continue;
- }
-
- if (match.hits < match.allowed &&
- !options.part) {
-
- return false;
- }
-
- // match.hits > match.allowed
-
- if (options.once) {
- return false;
- }
- }
-
- return !!any;
-};
-
-
-internals.compare = function (options) {
-
- if (!options.deep) {
- return internals.shallow;
- }
-
- const hasOnly = options.only !== undefined;
- const hasPart = options.part !== undefined;
-
- const flags = {
- prototype: hasOnly ? options.only : hasPart ? !options.part : false,
- part: hasOnly ? !options.only : hasPart ? options.part : false
- };
-
- return (a, b) => DeepEqual(a, b, flags);
-};
-
-
-internals.shallow = function (a, b) {
-
- return a === b;
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/deepEqual.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/deepEqual.js
deleted file mode 100755
index a82647be..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/deepEqual.js
+++ /dev/null
@@ -1,317 +0,0 @@
-'use strict';
-
-const Types = require('./types');
-
-
-const internals = {
- mismatched: null
-};
-
-
-module.exports = function (obj, ref, options) {
-
- options = Object.assign({ prototype: true }, options);
-
- return !!internals.isDeepEqual(obj, ref, options, []);
-};
-
-
-internals.isDeepEqual = function (obj, ref, options, seen) {
-
- if (obj === ref) { // Copied from Deep-eql, copyright(c) 2013 Jake Luer, jake@alogicalparadox.com, MIT Licensed, https://github.com/chaijs/deep-eql
- return obj !== 0 || 1 / obj === 1 / ref;
- }
-
- const type = typeof obj;
-
- if (type !== typeof ref) {
- return false;
- }
-
- if (obj === null ||
- ref === null) {
-
- return false;
- }
-
- if (type === 'function') {
- if (!options.deepFunction ||
- obj.toString() !== ref.toString()) {
-
- return false;
- }
-
- // Continue as object
- }
- else if (type !== 'object') {
- return obj !== obj && ref !== ref; // NaN
- }
-
- const instanceType = internals.getSharedType(obj, ref, !!options.prototype);
- switch (instanceType) {
- case Types.buffer:
- return Buffer && Buffer.prototype.equals.call(obj, ref); // $lab:coverage:ignore$
- case Types.promise:
- return obj === ref;
- case Types.regex:
- return obj.toString() === ref.toString();
- case internals.mismatched:
- return false;
- }
-
- for (let i = seen.length - 1; i >= 0; --i) {
- if (seen[i].isSame(obj, ref)) {
- return true; // If previous comparison failed, it would have stopped execution
- }
- }
-
- seen.push(new internals.SeenEntry(obj, ref));
-
- try {
- return !!internals.isDeepEqualObj(instanceType, obj, ref, options, seen);
- }
- finally {
- seen.pop();
- }
-};
-
-
-internals.getSharedType = function (obj, ref, checkPrototype) {
-
- if (checkPrototype) {
- if (Object.getPrototypeOf(obj) !== Object.getPrototypeOf(ref)) {
- return internals.mismatched;
- }
-
- return Types.getInternalProto(obj);
- }
-
- const type = Types.getInternalProto(obj);
- if (type !== Types.getInternalProto(ref)) {
- return internals.mismatched;
- }
-
- return type;
-};
-
-
-internals.valueOf = function (obj) {
-
- const objValueOf = obj.valueOf;
- if (objValueOf === undefined) {
- return obj;
- }
-
- try {
- return objValueOf.call(obj);
- }
- catch (err) {
- return err;
- }
-};
-
-
-internals.hasOwnEnumerableProperty = function (obj, key) {
-
- return Object.prototype.propertyIsEnumerable.call(obj, key);
-};
-
-
-internals.isSetSimpleEqual = function (obj, ref) {
-
- for (const entry of Set.prototype.values.call(obj)) {
- if (!Set.prototype.has.call(ref, entry)) {
- return false;
- }
- }
-
- return true;
-};
-
-
-internals.isDeepEqualObj = function (instanceType, obj, ref, options, seen) {
-
- const { isDeepEqual, valueOf, hasOwnEnumerableProperty } = internals;
- const { keys, getOwnPropertySymbols } = Object;
-
- if (instanceType === Types.array) {
- if (options.part) {
-
- // Check if any index match any other index
-
- for (const objValue of obj) {
- for (const refValue of ref) {
- if (isDeepEqual(objValue, refValue, options, seen)) {
- return true;
- }
- }
- }
- }
- else {
- if (obj.length !== ref.length) {
- return false;
- }
-
- for (let i = 0; i < obj.length; ++i) {
- if (!isDeepEqual(obj[i], ref[i], options, seen)) {
- return false;
- }
- }
-
- return true;
- }
- }
- else if (instanceType === Types.set) {
- if (obj.size !== ref.size) {
- return false;
- }
-
- if (!internals.isSetSimpleEqual(obj, ref)) {
-
- // Check for deep equality
-
- const ref2 = new Set(Set.prototype.values.call(ref));
- for (const objEntry of Set.prototype.values.call(obj)) {
- if (ref2.delete(objEntry)) {
- continue;
- }
-
- let found = false;
- for (const refEntry of ref2) {
- if (isDeepEqual(objEntry, refEntry, options, seen)) {
- ref2.delete(refEntry);
- found = true;
- break;
- }
- }
-
- if (!found) {
- return false;
- }
- }
- }
- }
- else if (instanceType === Types.map) {
- if (obj.size !== ref.size) {
- return false;
- }
-
- for (const [key, value] of Map.prototype.entries.call(obj)) {
- if (value === undefined && !Map.prototype.has.call(ref, key)) {
- return false;
- }
-
- if (!isDeepEqual(value, Map.prototype.get.call(ref, key), options, seen)) {
- return false;
- }
- }
- }
- else if (instanceType === Types.error) {
-
- // Always check name and message
-
- if (obj.name !== ref.name ||
- obj.message !== ref.message) {
-
- return false;
- }
- }
-
- // Check .valueOf()
-
- const valueOfObj = valueOf(obj);
- const valueOfRef = valueOf(ref);
- if ((obj !== valueOfObj || ref !== valueOfRef) &&
- !isDeepEqual(valueOfObj, valueOfRef, options, seen)) {
-
- return false;
- }
-
- // Check properties
-
- const objKeys = keys(obj);
- if (!options.part &&
- objKeys.length !== keys(ref).length &&
- !options.skip) {
-
- return false;
- }
-
- let skipped = 0;
- for (const key of objKeys) {
- if (options.skip &&
- options.skip.includes(key)) {
-
- if (ref[key] === undefined) {
- ++skipped;
- }
-
- continue;
- }
-
- if (!hasOwnEnumerableProperty(ref, key)) {
- return false;
- }
-
- if (!isDeepEqual(obj[key], ref[key], options, seen)) {
- return false;
- }
- }
-
- if (!options.part &&
- objKeys.length - skipped !== keys(ref).length) {
-
- return false;
- }
-
- // Check symbols
-
- if (options.symbols !== false) { // Defaults to true
- const objSymbols = getOwnPropertySymbols(obj);
- const refSymbols = new Set(getOwnPropertySymbols(ref));
-
- for (const key of objSymbols) {
- if (!options.skip ||
- !options.skip.includes(key)) {
-
- if (hasOwnEnumerableProperty(obj, key)) {
- if (!hasOwnEnumerableProperty(ref, key)) {
- return false;
- }
-
- if (!isDeepEqual(obj[key], ref[key], options, seen)) {
- return false;
- }
- }
- else if (hasOwnEnumerableProperty(ref, key)) {
- return false;
- }
- }
-
- refSymbols.delete(key);
- }
-
- for (const key of refSymbols) {
- if (hasOwnEnumerableProperty(ref, key)) {
- return false;
- }
- }
- }
-
- return true;
-};
-
-
-internals.SeenEntry = class {
-
- constructor(obj, ref) {
-
- this.obj = obj;
- this.ref = ref;
- }
-
- isSame(obj, ref) {
-
- return this.obj === obj && this.ref === ref;
- }
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/error.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/error.js
deleted file mode 100755
index 9fc4f5df..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/error.js
+++ /dev/null
@@ -1,26 +0,0 @@
-'use strict';
-
-const Stringify = require('./stringify');
-
-
-const internals = {};
-
-
-module.exports = class extends Error {
-
- constructor(args) {
-
- const msgs = args
- .filter((arg) => arg !== '')
- .map((arg) => {
-
- return typeof arg === 'string' ? arg : arg instanceof Error ? arg.message : Stringify(arg);
- });
-
- super(msgs.join(' ') || 'Unknown error');
-
- if (typeof Error.captureStackTrace === 'function') { // $lab:coverage:ignore$
- Error.captureStackTrace(this, exports.assert);
- }
- }
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/escapeHeaderAttribute.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/escapeHeaderAttribute.js
deleted file mode 100755
index a0a4deea..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/escapeHeaderAttribute.js
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-
-const Assert = require('./assert');
-
-
-const internals = {};
-
-
-module.exports = function (attribute) {
-
- // Allowed value characters: !#$%&'()*+,-./:;<=>?@[]^_`{|}~ and space, a-z, A-Z, 0-9, \, "
-
- Assert(/^[ \w\!#\$%&'\(\)\*\+,\-\.\/\:;<\=>\?@\[\]\^`\{\|\}~\"\\]*$/.test(attribute), 'Bad attribute value (' + attribute + ')');
-
- return attribute.replace(/\\/g, '\\\\').replace(/\"/g, '\\"'); // Escape quotes and slash
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/escapeHtml.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/escapeHtml.js
deleted file mode 100755
index c2dd4436..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/escapeHtml.js
+++ /dev/null
@@ -1,87 +0,0 @@
-'use strict';
-
-const internals = {};
-
-
-module.exports = function (input) {
-
- if (!input) {
- return '';
- }
-
- let escaped = '';
-
- for (let i = 0; i < input.length; ++i) {
-
- const charCode = input.charCodeAt(i);
-
- if (internals.isSafe(charCode)) {
- escaped += input[i];
- }
- else {
- escaped += internals.escapeHtmlChar(charCode);
- }
- }
-
- return escaped;
-};
-
-
-internals.escapeHtmlChar = function (charCode) {
-
- const namedEscape = internals.namedHtml.get(charCode);
- if (namedEscape) {
- return namedEscape;
- }
-
- if (charCode >= 256) {
- return '' + charCode + ';';
- }
-
- const hexValue = charCode.toString(16).padStart(2, '0');
- return `${hexValue};`;
-};
-
-
-internals.isSafe = function (charCode) {
-
- return internals.safeCharCodes.has(charCode);
-};
-
-
-internals.namedHtml = new Map([
- [38, '&'],
- [60, '<'],
- [62, '>'],
- [34, '"'],
- [160, ' '],
- [162, '¢'],
- [163, '£'],
- [164, '¤'],
- [169, '©'],
- [174, '®']
-]);
-
-
-internals.safeCharCodes = (function () {
-
- const safe = new Set();
-
- for (let i = 32; i < 123; ++i) {
-
- if ((i >= 97) || // a-z
- (i >= 65 && i <= 90) || // A-Z
- (i >= 48 && i <= 57) || // 0-9
- i === 32 || // space
- i === 46 || // .
- i === 44 || // ,
- i === 45 || // -
- i === 58 || // :
- i === 95) { // _
-
- safe.add(i);
- }
- }
-
- return safe;
-}());
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/escapeJson.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/escapeJson.js
deleted file mode 100755
index 243edfb9..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/escapeJson.js
+++ /dev/null
@@ -1,28 +0,0 @@
-'use strict';
-
-const internals = {};
-
-
-module.exports = function (input) {
-
- if (!input) {
- return '';
- }
-
- return input.replace(/[<>&\u2028\u2029]/g, internals.escape);
-};
-
-
-internals.escape = function (char) {
-
- return internals.replacements.get(char);
-};
-
-
-internals.replacements = new Map([
- ['<', '\\u003c'],
- ['>', '\\u003e'],
- ['&', '\\u0026'],
- ['\u2028', '\\u2028'],
- ['\u2029', '\\u2029']
-]);
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/escapeRegex.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/escapeRegex.js
deleted file mode 100755
index 3272497e..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/escapeRegex.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-const internals = {};
-
-
-module.exports = function (string) {
-
- // Escape ^$.*+-?=!:|\/()[]{},
-
- return string.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g, '\\$&');
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/flatten.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/flatten.js
deleted file mode 100755
index a5ea622a..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/flatten.js
+++ /dev/null
@@ -1,20 +0,0 @@
-'use strict';
-
-const internals = {};
-
-
-module.exports = internals.flatten = function (array, target) {
-
- const result = target || [];
-
- for (const entry of array) {
- if (Array.isArray(entry)) {
- internals.flatten(entry, result);
- }
- else {
- result.push(entry);
- }
- }
-
- return result;
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/ignore.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/ignore.js
deleted file mode 100755
index 21ad1443..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/ignore.js
+++ /dev/null
@@ -1,6 +0,0 @@
-'use strict';
-
-const internals = {};
-
-
-module.exports = function () { };
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/index.d.ts b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/index.d.ts
deleted file mode 100755
index e9bcdc28..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/index.d.ts
+++ /dev/null
@@ -1,471 +0,0 @@
-///
-
-
-/**
- * Performs a deep comparison of the two values including support for circular dependencies, prototype, and enumerable properties.
- *
- * @param obj - The value being compared.
- * @param ref - The reference value used for comparison.
- *
- * @return true when the two values are equal, otherwise false.
- */
-export function deepEqual(obj: any, ref: any, options?: deepEqual.Options): boolean;
-
-export namespace deepEqual {
-
- interface Options {
-
- /**
- * Compare functions with difference references by comparing their internal code and properties.
- *
- * @default false
- */
- readonly deepFunction?: boolean;
-
- /**
- * Allow partial match.
- *
- * @default false
- */
- readonly part?: boolean;
-
- /**
- * Compare the objects' prototypes.
- *
- * @default true
- */
- readonly prototype?: boolean;
-
- /**
- * List of object keys to ignore different values of.
- *
- * @default null
- */
- readonly skip?: (string | symbol)[];
-
- /**
- * Compare symbol properties.
- *
- * @default true
- */
- readonly symbols?: boolean;
- }
-}
-
-
-/**
- * Clone any value, object, or array.
- *
- * @param obj - The value being cloned.
- * @param options - Optional settings.
- *
- * @returns A deep clone of `obj`.
- */
-export function clone(obj: T, options?: clone.Options): T;
-
-export namespace clone {
-
- interface Options {
-
- /**
- * Clone the object's prototype.
- *
- * @default true
- */
- readonly prototype?: boolean;
-
- /**
- * Include symbol properties.
- *
- * @default true
- */
- readonly symbols?: boolean;
-
- /**
- * Shallow clone the specified keys.
- *
- * @default undefined
- */
- readonly shallow?: string[] | string[][] | boolean;
- }
-}
-
-
-/**
- * Merge all the properties of source into target.
- *
- * @param target - The object being modified.
- * @param source - The object used to copy properties from.
- * @param options - Optional settings.
- *
- * @returns The `target` object.
- */
-export function merge(target: T1, source: T2, options?: merge.Options): T1 & T2;
-
-export namespace merge {
-
- interface Options {
-
- /**
- * When true, null value from `source` overrides existing value in `target`.
- *
- * @default true
- */
- readonly nullOverride?: boolean;
-
- /**
- * When true, array value from `source` is merged with the existing value in `target`.
- *
- * @default false
- */
- readonly mergeArrays?: boolean;
-
- /**
- * Compare symbol properties.
- *
- * @default true
- */
- readonly symbols?: boolean;
- }
-}
-
-
-/**
- * Apply source to a copy of the defaults.
- *
- * @param defaults - An object with the default values to use of `options` does not contain the same keys.
- * @param source - The source used to override the `defaults`.
- * @param options - Optional settings.
- *
- * @returns A copy of `defaults` with `source` keys overriding any conflicts.
- */
-export function applyToDefaults(defaults: Partial, source: Partial | boolean | null, options?: applyToDefaults.Options): Partial;
-
-export namespace applyToDefaults {
-
- interface Options {
-
- /**
- * When true, null value from `source` overrides existing value in `target`.
- *
- * @default true
- */
- readonly nullOverride?: boolean;
-
- /**
- * Shallow clone the specified keys.
- *
- * @default undefined
- */
- readonly shallow?: string[] | string[][];
- }
-}
-
-
-/**
- * Find the common unique items in two arrays.
- *
- * @param array1 - The first array to compare.
- * @param array2 - The second array to compare.
- * @param options - Optional settings.
- *
- * @return - An array of the common items. If `justFirst` is true, returns the first common item.
- */
-export function intersect(array1: intersect.Array, array2: intersect.Array, options?: intersect.Options): Array;
-export function intersect(array1: intersect.Array, array2: intersect.Array, options?: intersect.Options): T1 | T2;
-
-export namespace intersect {
-
- type Array = ArrayLike | Set | null;
-
- interface Options {
-
- /**
- * When true, return the first overlapping value.
- *
- * @default false
- */
- readonly first?: boolean;
- }
-}
-
-
-/**
- * Checks if the reference value contains the provided values.
- *
- * @param ref - The reference string, array, or object.
- * @param values - A single or array of values to find within `ref`. If `ref` is an object, `values` can be a key name, an array of key names, or an object with key-value pairs to compare.
- *
- * @return true if the value contains the provided values, otherwise false.
- */
-export function contain(ref: string, values: string | string[], options?: contain.Options): boolean;
-export function contain(ref: any[], values: any, options?: contain.Options): boolean;
-export function contain(ref: object, values: string | string[] | object, options?: Omit): boolean;
-
-export namespace contain {
-
- interface Options {
-
- /**
- * Perform a deep comparison.
- *
- * @default false
- */
- readonly deep?: boolean;
-
- /**
- * Allow only one occurrence of each value.
- *
- * @default false
- */
- readonly once?: boolean;
-
- /**
- * Allow only values explicitly listed.
- *
- * @default false
- */
- readonly only?: boolean;
-
- /**
- * Allow partial match.
- *
- * @default false
- */
- readonly part?: boolean;
-
- /**
- * Include symbol properties.
- *
- * @default true
- */
- readonly symbols?: boolean;
- }
-}
-
-
-/**
- * Flatten an array with sub arrays
- *
- * @param array - an array of items or other arrays to flatten.
- * @param target - if provided, an array to shallow copy the flattened `array` items to
- *
- * @return a flat array of the provided values (appended to `target` is provided).
- */
-export function flatten(array: ArrayLike>, target?: ArrayLike>): T[];
-
-
-/**
- * Convert an object key chain string to reference.
- *
- * @param obj - the object from which to look up the value.
- * @param chain - the string path of the requested value. The chain string is split into key names using `options.separator`, or an array containing each individual key name. A chain including negative numbers will work like a negative index on an array.
- *
- * @return The value referenced by the chain if found, otherwise undefined. If chain is null, undefined, or false, the object itself will be returned.
- */
-export function reach(obj: object | null, chain: string | (string | number)[] | false | null | undefined, options?: reach.Options): any;
-
-export namespace reach {
-
- interface Options {
-
- /**
- * String to split chain path on. Defaults to '.'.
- *
- * @default false
- */
- readonly separator?: string;
-
- /**
- * Value to return if the path or value is not present. No default value.
- *
- * @default false
- */
- readonly default?: any;
-
- /**
- * If true, will throw an error on missing member in the chain. Default to false.
- *
- * @default false
- */
- readonly strict?: boolean;
-
- /**
- * If true, allows traversing functions for properties. false will throw an error if a function is part of the chain.
- *
- * @default true
- */
- readonly functions?: boolean;
-
- /**
- * If true, allows traversing Set and Map objects for properties. false will return undefined regardless of the Set or Map passed.
- *
- * @default false
- */
- readonly iterables?: boolean;
- }
-}
-
-
-/**
- * Replace string parameters (using format "{path.to.key}") with their corresponding object key values using `Hoek.reach()`.
- *
- * @param obj - the object from which to look up the value.
- * @param template - the string containing {} enclosed key paths to be replaced.
- *
- * @return The template string with the {} enclosed keys replaced with looked-up values.
- */
-export function reachTemplate(obj: object | null, template: string, options?: reach.Options): string;
-
-
-/**
- * Throw an error if condition is falsy.
- *
- * @param condition - If `condition` is not truthy, an exception is thrown.
- * @param error - The error thrown if the condition fails.
- *
- * @return Does not return a value but throws if the `condition` is falsy.
- */
-export function assert(condition: any, error: Error): void;
-
-
-/**
- * Throw an error if condition is falsy.
- *
- * @param condition - If `condition` is not truthy, an exception is thrown.
- * @param args - Any number of values, concatenated together (space separated) to create the error message.
- *
- * @return Does not return a value but throws if the `condition` is falsy.
- */
-export function assert(condition: any, ...args: any): void;
-
-
-/**
- * A benchmarking timer, using the internal node clock for maximum accuracy.
- */
-export class Bench {
-
- constructor();
-
- /** The starting timestamp expressed in the number of milliseconds since the epoch. */
- ts: number;
-
- /** The time in milliseconds since the object was created. */
- elapsed(): number;
-
- /** Reset the `ts` value to now. */
- reset(): void;
-
- /** The current time in milliseconds since the epoch. */
- static now(): number;
-}
-
-
-/**
- * Escape string for Regex construction by prefixing all reserved characters with a backslash.
- *
- * @param string - The string to be escaped.
- *
- * @return The escaped string.
- */
-export function escapeRegex(string: string): string;
-
-
-/**
- * Escape string for usage as an attribute value in HTTP headers.
- *
- * @param attribute - The string to be escaped.
- *
- * @return The escaped string. Will throw on invalid characters that are not supported to be escaped.
- */
-export function escapeHeaderAttribute(attribute: string): string;
-
-
-/**
- * Escape string for usage in HTML.
- *
- * @param string - The string to be escaped.
- *
- * @return The escaped string.
- */
-export function escapeHtml(string: string): string;
-
-
-/**
- * Escape string for usage in JSON.
- *
- * @param string - The string to be escaped.
- *
- * @return The escaped string.
- */
-export function escapeJson(string: string): string;
-
-
-/**
- * Wraps a function to ensure it can only execute once.
- *
- * @param method - The function to be wrapped.
- *
- * @return The wrapped function.
- */
-export function once(method: T): T;
-
-
-/**
- * A reusable no-op function.
- */
-export function ignore(...ignore: any): void;
-
-
-/**
- * Converts a JavaScript value to a JavaScript Object Notation (JSON) string with protection against thrown errors.
- *
- * @param value A JavaScript value, usually an object or array, to be converted.
- * @param replacer The JSON.stringify() `replacer` argument.
- * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
- *
- * @return The JSON string. If the operation fails, an error string value is returned (no exception thrown).
- */
-export function stringify(value: any, replacer?: any, space?: string | number): string;
-
-
-/**
- * Returns a Promise that resolves after the requested timeout.
- *
- * @param timeout - The number of milliseconds to wait before resolving the Promise.
- * @param returnValue - The value that the Promise will resolve to.
- *
- * @return A Promise that resolves with `returnValue`.
- */
-export function wait(timeout?: number, returnValue?: T): Promise;
-
-
-/**
- * Returns a Promise that never resolves.
- */
-export function block(): Promise;
-
-
-/**
- * Determines if an object is a promise.
- *
- * @param promise - the object tested.
- *
- * @returns true if the object is a promise, otherwise false.
- */
-export function isPromise(promise: any): boolean;
-
-
-export namespace ts {
-
- /**
- * Defines a type that can must be one of T or U but not both.
- */
- type XOR = (T | U) extends object ? (internals.Without & U) | (internals.Without & T) : T | U;
-}
-
-
-declare namespace internals {
-
- type Without = { [P in Exclude]?: never };
-}
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/index.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/index.js
deleted file mode 100755
index 2062f180..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/index.js
+++ /dev/null
@@ -1,45 +0,0 @@
-'use strict';
-
-exports.applyToDefaults = require('./applyToDefaults');
-
-exports.assert = require('./assert');
-
-exports.Bench = require('./bench');
-
-exports.block = require('./block');
-
-exports.clone = require('./clone');
-
-exports.contain = require('./contain');
-
-exports.deepEqual = require('./deepEqual');
-
-exports.Error = require('./error');
-
-exports.escapeHeaderAttribute = require('./escapeHeaderAttribute');
-
-exports.escapeHtml = require('./escapeHtml');
-
-exports.escapeJson = require('./escapeJson');
-
-exports.escapeRegex = require('./escapeRegex');
-
-exports.flatten = require('./flatten');
-
-exports.ignore = require('./ignore');
-
-exports.intersect = require('./intersect');
-
-exports.isPromise = require('./isPromise');
-
-exports.merge = require('./merge');
-
-exports.once = require('./once');
-
-exports.reach = require('./reach');
-
-exports.reachTemplate = require('./reachTemplate');
-
-exports.stringify = require('./stringify');
-
-exports.wait = require('./wait');
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/intersect.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/intersect.js
deleted file mode 100755
index 59e6aaf1..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/intersect.js
+++ /dev/null
@@ -1,41 +0,0 @@
-'use strict';
-
-const internals = {};
-
-
-module.exports = function (array1, array2, options = {}) {
-
- if (!array1 ||
- !array2) {
-
- return (options.first ? null : []);
- }
-
- const common = [];
- const hash = (Array.isArray(array1) ? new Set(array1) : array1);
- const found = new Set();
- for (const value of array2) {
- if (internals.has(hash, value) &&
- !found.has(value)) {
-
- if (options.first) {
- return value;
- }
-
- common.push(value);
- found.add(value);
- }
- }
-
- return (options.first ? null : common);
-};
-
-
-internals.has = function (ref, key) {
-
- if (typeof ref.has === 'function') {
- return ref.has(key);
- }
-
- return ref[key] !== undefined;
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/isPromise.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/isPromise.js
deleted file mode 100755
index 40298040..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/isPromise.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-const internals = {};
-
-
-module.exports = function (promise) {
-
- return !!promise && typeof promise.then === 'function';
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/merge.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/merge.js
deleted file mode 100755
index 47a1e1e9..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/merge.js
+++ /dev/null
@@ -1,78 +0,0 @@
-'use strict';
-
-const Assert = require('./assert');
-const Clone = require('./clone');
-const Utils = require('./utils');
-
-
-const internals = {};
-
-
-module.exports = internals.merge = function (target, source, options) {
-
- Assert(target && typeof target === 'object', 'Invalid target value: must be an object');
- Assert(source === null || source === undefined || typeof source === 'object', 'Invalid source value: must be null, undefined, or an object');
-
- if (!source) {
- return target;
- }
-
- options = Object.assign({ nullOverride: true, mergeArrays: true }, options);
-
- if (Array.isArray(source)) {
- Assert(Array.isArray(target), 'Cannot merge array onto an object');
- if (!options.mergeArrays) {
- target.length = 0; // Must not change target assignment
- }
-
- for (let i = 0; i < source.length; ++i) {
- target.push(Clone(source[i], { symbols: options.symbols }));
- }
-
- return target;
- }
-
- const keys = Utils.keys(source, options);
- for (let i = 0; i < keys.length; ++i) {
- const key = keys[i];
- if (key === '__proto__' ||
- !Object.prototype.propertyIsEnumerable.call(source, key)) {
-
- continue;
- }
-
- const value = source[key];
- if (value &&
- typeof value === 'object') {
-
- if (target[key] === value) {
- continue; // Can occur for shallow merges
- }
-
- if (!target[key] ||
- typeof target[key] !== 'object' ||
- (Array.isArray(target[key]) !== Array.isArray(value)) ||
- value instanceof Date ||
- (Buffer && Buffer.isBuffer(value)) || // $lab:coverage:ignore$
- value instanceof RegExp) {
-
- target[key] = Clone(value, { symbols: options.symbols });
- }
- else {
- internals.merge(target[key], value, options);
- }
- }
- else {
- if (value !== null &&
- value !== undefined) { // Explicit to preserve empty strings
-
- target[key] = value;
- }
- else if (options.nullOverride) {
- target[key] = value;
- }
- }
- }
-
- return target;
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/once.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/once.js
deleted file mode 100755
index c825767e..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/once.js
+++ /dev/null
@@ -1,25 +0,0 @@
-'use strict';
-
-const internals = {
- wrapped: Symbol('wrapped')
-};
-
-
-module.exports = function (method) {
-
- if (method[internals.wrapped]) {
- return method;
- }
-
- let once = false;
- const wrappedFn = function (...args) {
-
- if (!once) {
- once = true;
- method(...args);
- }
- };
-
- wrappedFn[internals.wrapped] = true;
- return wrappedFn;
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/reach.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/reach.js
deleted file mode 100755
index 53b7c24e..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/reach.js
+++ /dev/null
@@ -1,76 +0,0 @@
-'use strict';
-
-const Assert = require('./assert');
-
-
-const internals = {};
-
-
-module.exports = function (obj, chain, options) {
-
- if (chain === false ||
- chain === null ||
- chain === undefined) {
-
- return obj;
- }
-
- options = options || {};
- if (typeof options === 'string') {
- options = { separator: options };
- }
-
- const isChainArray = Array.isArray(chain);
-
- Assert(!isChainArray || !options.separator, 'Separator option is not valid for array-based chain');
-
- const path = isChainArray ? chain : chain.split(options.separator || '.');
- let ref = obj;
- for (let i = 0; i < path.length; ++i) {
- let key = path[i];
- const type = options.iterables && internals.iterables(ref);
-
- if (Array.isArray(ref) ||
- type === 'set') {
-
- const number = Number(key);
- if (Number.isInteger(number)) {
- key = number < 0 ? ref.length + number : number;
- }
- }
-
- if (!ref ||
- typeof ref === 'function' && options.functions === false || // Defaults to true
- !type && ref[key] === undefined) {
-
- Assert(!options.strict || i + 1 === path.length, 'Missing segment', key, 'in reach path ', chain);
- Assert(typeof ref === 'object' || options.functions === true || typeof ref !== 'function', 'Invalid segment', key, 'in reach path ', chain);
- ref = options.default;
- break;
- }
-
- if (!type) {
- ref = ref[key];
- }
- else if (type === 'set') {
- ref = [...ref][key];
- }
- else { // type === 'map'
- ref = ref.get(key);
- }
- }
-
- return ref;
-};
-
-
-internals.iterables = function (ref) {
-
- if (ref instanceof Set) {
- return 'set';
- }
-
- if (ref instanceof Map) {
- return 'map';
- }
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/reachTemplate.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/reachTemplate.js
deleted file mode 100755
index e382d50c..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/reachTemplate.js
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-
-const Reach = require('./reach');
-
-
-const internals = {};
-
-
-module.exports = function (obj, template, options) {
-
- return template.replace(/{([^{}]+)}/g, ($0, chain) => {
-
- const value = Reach(obj, chain, options);
- return (value === undefined || value === null ? '' : value);
- });
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/stringify.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/stringify.js
deleted file mode 100755
index 82152cf2..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/stringify.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-const internals = {};
-
-
-module.exports = function (...args) {
-
- try {
- return JSON.stringify(...args);
- }
- catch (err) {
- return '[Cannot display object: ' + err.message + ']';
- }
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/types.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/types.js
deleted file mode 100755
index c291b657..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/types.js
+++ /dev/null
@@ -1,55 +0,0 @@
-'use strict';
-
-const internals = {};
-
-
-exports = module.exports = {
- array: Array.prototype,
- buffer: Buffer && Buffer.prototype, // $lab:coverage:ignore$
- date: Date.prototype,
- error: Error.prototype,
- generic: Object.prototype,
- map: Map.prototype,
- promise: Promise.prototype,
- regex: RegExp.prototype,
- set: Set.prototype,
- weakMap: WeakMap.prototype,
- weakSet: WeakSet.prototype
-};
-
-
-internals.typeMap = new Map([
- ['[object Error]', exports.error],
- ['[object Map]', exports.map],
- ['[object Promise]', exports.promise],
- ['[object Set]', exports.set],
- ['[object WeakMap]', exports.weakMap],
- ['[object WeakSet]', exports.weakSet]
-]);
-
-
-exports.getInternalProto = function (obj) {
-
- if (Array.isArray(obj)) {
- return exports.array;
- }
-
- if (Buffer && obj instanceof Buffer) { // $lab:coverage:ignore$
- return exports.buffer;
- }
-
- if (obj instanceof Date) {
- return exports.date;
- }
-
- if (obj instanceof RegExp) {
- return exports.regex;
- }
-
- if (obj instanceof Error) {
- return exports.error;
- }
-
- const objName = Object.prototype.toString.call(obj);
- return internals.typeMap.get(objName) || exports.generic;
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/utils.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/utils.js
deleted file mode 100755
index bab1e8c4..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/utils.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-const internals = {};
-
-
-exports.keys = function (obj, options = {}) {
-
- return options.symbols !== false ? Reflect.ownKeys(obj) : Object.getOwnPropertyNames(obj); // Defaults to true
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/wait.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/wait.js
deleted file mode 100755
index 28d344cf..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/lib/wait.js
+++ /dev/null
@@ -1,37 +0,0 @@
-'use strict';
-
-const internals = {
- maxTimer: 2 ** 31 - 1 // ~25 days
-};
-
-
-module.exports = function (timeout, returnValue, options) {
-
- if (typeof timeout === 'bigint') {
- timeout = Number(timeout);
- }
-
- if (timeout >= Number.MAX_SAFE_INTEGER) { // Thousands of years
- timeout = Infinity;
- }
-
- if (typeof timeout !== 'number' && timeout !== undefined) {
- throw new TypeError('Timeout must be a number or bigint');
- }
-
- return new Promise((resolve) => {
-
- const _setTimeout = options ? options.setTimeout : setTimeout;
-
- const activate = () => {
-
- const time = Math.min(timeout, internals.maxTimer);
- timeout -= time;
- _setTimeout(() => (timeout > 0 ? activate() : resolve(returnValue)), time);
- };
-
- if (timeout !== Infinity) {
- activate();
- }
- });
-};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/package.json b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/package.json
deleted file mode 100755
index ce0a2326..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@hapi/hoek/package.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "name": "@hapi/hoek",
- "description": "General purpose node utilities",
- "version": "9.3.0",
- "repository": "git://github.com/hapijs/hoek",
- "main": "lib/index.js",
- "types": "lib/index.d.ts",
- "keywords": [
- "utilities"
- ],
- "files": [
- "lib"
- ],
- "eslintConfig": {
- "extends": [
- "plugin:@hapi/module"
- ]
- },
- "dependencies": {},
- "devDependencies": {
- "@hapi/code": "8.x.x",
- "@hapi/eslint-plugin": "*",
- "@hapi/lab": "^24.0.0",
- "typescript": "~4.0.2"
- },
- "scripts": {
- "test": "lab -a @hapi/code -t 100 -L -Y",
- "test-cov-html": "lab -a @hapi/code -t 100 -L -r html -o coverage.html"
- },
- "license": "BSD-3-Clause"
-}
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/colour/LICENSE.md b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/colour/LICENSE.md
deleted file mode 100644
index 292c550d..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/colour/LICENSE.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# Licensing
-
-## color
-
-Copyright (c) 2012 Heather Arthur
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-## color-convert
-
-Copyright (c) 2011-2016 Heather Arthur .
-Copyright (c) 2016-2021 Josh Junon .
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-## color-string
-
-Copyright (c) 2011 Heather Arthur
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-## color-name
-
-The MIT License (MIT)
-Copyright (c) 2015 Dmitry Ivanov
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/colour/README.md b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/colour/README.md
deleted file mode 100644
index a33e4eb8..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/colour/README.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# `@img/colour`
-
-The latest version of the
-[color](https://www.npmjs.com/package/color)
-package is now ESM-only,
-however some JavaScript runtimes do not yet support this,
-which includes versions of Node.js prior to 20.19.0.
-
-This package converts the `color` package and its dependencies,
-all of which are MIT-licensed, to CommonJS.
-
-- [color](https://www.npmjs.com/package/color)
-- [color-convert](https://www.npmjs.com/package/color-convert)
-- [color-string](https://www.npmjs.com/package/color-string)
-- [color-name](https://www.npmjs.com/package/color-name)
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/colour/color.cjs b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/colour/color.cjs
deleted file mode 100644
index d5b7ee23..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/colour/color.cjs
+++ /dev/null
@@ -1,1596 +0,0 @@
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-
-// node_modules/color/index.js
-var index_exports = {};
-__export(index_exports, {
- default: () => index_default
-});
-module.exports = __toCommonJS(index_exports);
-
-// node_modules/color-name/index.js
-var colors = {
- aliceblue: [240, 248, 255],
- antiquewhite: [250, 235, 215],
- aqua: [0, 255, 255],
- aquamarine: [127, 255, 212],
- azure: [240, 255, 255],
- beige: [245, 245, 220],
- bisque: [255, 228, 196],
- black: [0, 0, 0],
- blanchedalmond: [255, 235, 205],
- blue: [0, 0, 255],
- blueviolet: [138, 43, 226],
- brown: [165, 42, 42],
- burlywood: [222, 184, 135],
- cadetblue: [95, 158, 160],
- chartreuse: [127, 255, 0],
- chocolate: [210, 105, 30],
- coral: [255, 127, 80],
- cornflowerblue: [100, 149, 237],
- cornsilk: [255, 248, 220],
- crimson: [220, 20, 60],
- cyan: [0, 255, 255],
- darkblue: [0, 0, 139],
- darkcyan: [0, 139, 139],
- darkgoldenrod: [184, 134, 11],
- darkgray: [169, 169, 169],
- darkgreen: [0, 100, 0],
- darkgrey: [169, 169, 169],
- darkkhaki: [189, 183, 107],
- darkmagenta: [139, 0, 139],
- darkolivegreen: [85, 107, 47],
- darkorange: [255, 140, 0],
- darkorchid: [153, 50, 204],
- darkred: [139, 0, 0],
- darksalmon: [233, 150, 122],
- darkseagreen: [143, 188, 143],
- darkslateblue: [72, 61, 139],
- darkslategray: [47, 79, 79],
- darkslategrey: [47, 79, 79],
- darkturquoise: [0, 206, 209],
- darkviolet: [148, 0, 211],
- deeppink: [255, 20, 147],
- deepskyblue: [0, 191, 255],
- dimgray: [105, 105, 105],
- dimgrey: [105, 105, 105],
- dodgerblue: [30, 144, 255],
- firebrick: [178, 34, 34],
- floralwhite: [255, 250, 240],
- forestgreen: [34, 139, 34],
- fuchsia: [255, 0, 255],
- gainsboro: [220, 220, 220],
- ghostwhite: [248, 248, 255],
- gold: [255, 215, 0],
- goldenrod: [218, 165, 32],
- gray: [128, 128, 128],
- green: [0, 128, 0],
- greenyellow: [173, 255, 47],
- grey: [128, 128, 128],
- honeydew: [240, 255, 240],
- hotpink: [255, 105, 180],
- indianred: [205, 92, 92],
- indigo: [75, 0, 130],
- ivory: [255, 255, 240],
- khaki: [240, 230, 140],
- lavender: [230, 230, 250],
- lavenderblush: [255, 240, 245],
- lawngreen: [124, 252, 0],
- lemonchiffon: [255, 250, 205],
- lightblue: [173, 216, 230],
- lightcoral: [240, 128, 128],
- lightcyan: [224, 255, 255],
- lightgoldenrodyellow: [250, 250, 210],
- lightgray: [211, 211, 211],
- lightgreen: [144, 238, 144],
- lightgrey: [211, 211, 211],
- lightpink: [255, 182, 193],
- lightsalmon: [255, 160, 122],
- lightseagreen: [32, 178, 170],
- lightskyblue: [135, 206, 250],
- lightslategray: [119, 136, 153],
- lightslategrey: [119, 136, 153],
- lightsteelblue: [176, 196, 222],
- lightyellow: [255, 255, 224],
- lime: [0, 255, 0],
- limegreen: [50, 205, 50],
- linen: [250, 240, 230],
- magenta: [255, 0, 255],
- maroon: [128, 0, 0],
- mediumaquamarine: [102, 205, 170],
- mediumblue: [0, 0, 205],
- mediumorchid: [186, 85, 211],
- mediumpurple: [147, 112, 219],
- mediumseagreen: [60, 179, 113],
- mediumslateblue: [123, 104, 238],
- mediumspringgreen: [0, 250, 154],
- mediumturquoise: [72, 209, 204],
- mediumvioletred: [199, 21, 133],
- midnightblue: [25, 25, 112],
- mintcream: [245, 255, 250],
- mistyrose: [255, 228, 225],
- moccasin: [255, 228, 181],
- navajowhite: [255, 222, 173],
- navy: [0, 0, 128],
- oldlace: [253, 245, 230],
- olive: [128, 128, 0],
- olivedrab: [107, 142, 35],
- orange: [255, 165, 0],
- orangered: [255, 69, 0],
- orchid: [218, 112, 214],
- palegoldenrod: [238, 232, 170],
- palegreen: [152, 251, 152],
- paleturquoise: [175, 238, 238],
- palevioletred: [219, 112, 147],
- papayawhip: [255, 239, 213],
- peachpuff: [255, 218, 185],
- peru: [205, 133, 63],
- pink: [255, 192, 203],
- plum: [221, 160, 221],
- powderblue: [176, 224, 230],
- purple: [128, 0, 128],
- rebeccapurple: [102, 51, 153],
- red: [255, 0, 0],
- rosybrown: [188, 143, 143],
- royalblue: [65, 105, 225],
- saddlebrown: [139, 69, 19],
- salmon: [250, 128, 114],
- sandybrown: [244, 164, 96],
- seagreen: [46, 139, 87],
- seashell: [255, 245, 238],
- sienna: [160, 82, 45],
- silver: [192, 192, 192],
- skyblue: [135, 206, 235],
- slateblue: [106, 90, 205],
- slategray: [112, 128, 144],
- slategrey: [112, 128, 144],
- snow: [255, 250, 250],
- springgreen: [0, 255, 127],
- steelblue: [70, 130, 180],
- tan: [210, 180, 140],
- teal: [0, 128, 128],
- thistle: [216, 191, 216],
- tomato: [255, 99, 71],
- turquoise: [64, 224, 208],
- violet: [238, 130, 238],
- wheat: [245, 222, 179],
- white: [255, 255, 255],
- whitesmoke: [245, 245, 245],
- yellow: [255, 255, 0],
- yellowgreen: [154, 205, 50]
-};
-for (const key in colors) Object.freeze(colors[key]);
-var color_name_default = Object.freeze(colors);
-
-// node_modules/color-string/index.js
-var reverseNames = /* @__PURE__ */ Object.create(null);
-for (const name in color_name_default) {
- if (Object.hasOwn(color_name_default, name)) {
- reverseNames[color_name_default[name]] = name;
- }
-}
-var cs = {
- to: {},
- get: {}
-};
-cs.get = function(string) {
- const prefix = string.slice(0, 3).toLowerCase();
- let value;
- let model;
- switch (prefix) {
- case "hsl": {
- value = cs.get.hsl(string);
- model = "hsl";
- break;
- }
- case "hwb": {
- value = cs.get.hwb(string);
- model = "hwb";
- break;
- }
- default: {
- value = cs.get.rgb(string);
- model = "rgb";
- break;
- }
- }
- if (!value) {
- return null;
- }
- return { model, value };
-};
-cs.get.rgb = function(string) {
- if (!string) {
- return null;
- }
- const abbr = /^#([a-f\d]{3,4})$/i;
- const hex = /^#([a-f\d]{6})([a-f\d]{2})?$/i;
- const rgba = /^rgba?\(\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)\s*(?:[\s,|/]\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(%?)\s*)?\)$/i;
- const per = /^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/i;
- const keyword = /^(\w+)$/;
- let rgb = [0, 0, 0, 1];
- let match;
- let i;
- let hexAlpha;
- if (match = string.match(hex)) {
- hexAlpha = match[2];
- match = match[1];
- for (i = 0; i < 3; i++) {
- const i2 = i * 2;
- rgb[i] = Number.parseInt(match.slice(i2, i2 + 2), 16);
- }
- if (hexAlpha) {
- rgb[3] = Number.parseInt(hexAlpha, 16) / 255;
- }
- } else if (match = string.match(abbr)) {
- match = match[1];
- hexAlpha = match[3];
- for (i = 0; i < 3; i++) {
- rgb[i] = Number.parseInt(match[i] + match[i], 16);
- }
- if (hexAlpha) {
- rgb[3] = Number.parseInt(hexAlpha + hexAlpha, 16) / 255;
- }
- } else if (match = string.match(rgba)) {
- for (i = 0; i < 3; i++) {
- rgb[i] = Number.parseFloat(match[i + 1]);
- }
- if (match[4]) {
- rgb[3] = match[5] ? Number.parseFloat(match[4]) * 0.01 : Number.parseFloat(match[4]);
- }
- } else if (match = string.match(per)) {
- for (i = 0; i < 3; i++) {
- rgb[i] = Math.round(Number.parseFloat(match[i + 1]) * 2.55);
- }
- if (match[4]) {
- rgb[3] = match[5] ? Number.parseFloat(match[4]) * 0.01 : Number.parseFloat(match[4]);
- }
- } else if (match = string.toLowerCase().match(keyword)) {
- if (match[1] === "transparent") {
- return [0, 0, 0, 0];
- }
- if (!Object.hasOwn(color_name_default, match[1])) {
- return null;
- }
- rgb = color_name_default[match[1]].slice();
- rgb[3] = 1;
- return rgb;
- } else {
- return null;
- }
- for (i = 0; i < 3; i++) {
- rgb[i] = clamp(rgb[i], 0, 255);
- }
- rgb[3] = clamp(rgb[3], 0, 1);
- return rgb;
-};
-cs.get.hsl = function(string) {
- if (!string) {
- return null;
- }
- const hsl = /^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i;
- const match = string.match(hsl);
- if (match) {
- const alpha = Number.parseFloat(match[4]);
- const h = (Number.parseFloat(match[1]) % 360 + 360) % 360;
- const s = clamp(Number.parseFloat(match[2]), 0, 100);
- const l = clamp(Number.parseFloat(match[3]), 0, 100);
- const a = clamp(Number.isNaN(alpha) ? 1 : alpha, 0, 1);
- return [h, s, l, a];
- }
- return null;
-};
-cs.get.hwb = function(string) {
- if (!string) {
- return null;
- }
- const hwb = /^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i;
- const match = string.match(hwb);
- if (match) {
- const alpha = Number.parseFloat(match[4]);
- const h = (Number.parseFloat(match[1]) % 360 + 360) % 360;
- const w = clamp(Number.parseFloat(match[2]), 0, 100);
- const b = clamp(Number.parseFloat(match[3]), 0, 100);
- const a = clamp(Number.isNaN(alpha) ? 1 : alpha, 0, 1);
- return [h, w, b, a];
- }
- return null;
-};
-cs.to.hex = function(...rgba) {
- return "#" + hexDouble(rgba[0]) + hexDouble(rgba[1]) + hexDouble(rgba[2]) + (rgba[3] < 1 ? hexDouble(Math.round(rgba[3] * 255)) : "");
-};
-cs.to.rgb = function(...rgba) {
- return rgba.length < 4 || rgba[3] === 1 ? "rgb(" + Math.round(rgba[0]) + ", " + Math.round(rgba[1]) + ", " + Math.round(rgba[2]) + ")" : "rgba(" + Math.round(rgba[0]) + ", " + Math.round(rgba[1]) + ", " + Math.round(rgba[2]) + ", " + rgba[3] + ")";
-};
-cs.to.rgb.percent = function(...rgba) {
- const r = Math.round(rgba[0] / 255 * 100);
- const g = Math.round(rgba[1] / 255 * 100);
- const b = Math.round(rgba[2] / 255 * 100);
- return rgba.length < 4 || rgba[3] === 1 ? "rgb(" + r + "%, " + g + "%, " + b + "%)" : "rgba(" + r + "%, " + g + "%, " + b + "%, " + rgba[3] + ")";
-};
-cs.to.hsl = function(...hsla) {
- return hsla.length < 4 || hsla[3] === 1 ? "hsl(" + hsla[0] + ", " + hsla[1] + "%, " + hsla[2] + "%)" : "hsla(" + hsla[0] + ", " + hsla[1] + "%, " + hsla[2] + "%, " + hsla[3] + ")";
-};
-cs.to.hwb = function(...hwba) {
- let a = "";
- if (hwba.length >= 4 && hwba[3] !== 1) {
- a = ", " + hwba[3];
- }
- return "hwb(" + hwba[0] + ", " + hwba[1] + "%, " + hwba[2] + "%" + a + ")";
-};
-cs.to.keyword = function(...rgb) {
- return reverseNames[rgb.slice(0, 3)];
-};
-function clamp(number_, min, max) {
- return Math.min(Math.max(min, number_), max);
-}
-function hexDouble(number_) {
- const string_ = Math.round(number_).toString(16).toUpperCase();
- return string_.length < 2 ? "0" + string_ : string_;
-}
-var color_string_default = cs;
-
-// node_modules/color-convert/conversions.js
-var reverseKeywords = {};
-for (const key of Object.keys(color_name_default)) {
- reverseKeywords[color_name_default[key]] = key;
-}
-var convert = {
- rgb: { channels: 3, labels: "rgb" },
- hsl: { channels: 3, labels: "hsl" },
- hsv: { channels: 3, labels: "hsv" },
- hwb: { channels: 3, labels: "hwb" },
- cmyk: { channels: 4, labels: "cmyk" },
- xyz: { channels: 3, labels: "xyz" },
- lab: { channels: 3, labels: "lab" },
- oklab: { channels: 3, labels: ["okl", "oka", "okb"] },
- lch: { channels: 3, labels: "lch" },
- oklch: { channels: 3, labels: ["okl", "okc", "okh"] },
- hex: { channels: 1, labels: ["hex"] },
- keyword: { channels: 1, labels: ["keyword"] },
- ansi16: { channels: 1, labels: ["ansi16"] },
- ansi256: { channels: 1, labels: ["ansi256"] },
- hcg: { channels: 3, labels: ["h", "c", "g"] },
- apple: { channels: 3, labels: ["r16", "g16", "b16"] },
- gray: { channels: 1, labels: ["gray"] }
-};
-var conversions_default = convert;
-var LAB_FT = (6 / 29) ** 3;
-function srgbNonlinearTransform(c) {
- const cc = c > 31308e-7 ? 1.055 * c ** (1 / 2.4) - 0.055 : c * 12.92;
- return Math.min(Math.max(0, cc), 1);
-}
-function srgbNonlinearTransformInv(c) {
- return c > 0.04045 ? ((c + 0.055) / 1.055) ** 2.4 : c / 12.92;
-}
-for (const model of Object.keys(convert)) {
- if (!("channels" in convert[model])) {
- throw new Error("missing channels property: " + model);
- }
- if (!("labels" in convert[model])) {
- throw new Error("missing channel labels property: " + model);
- }
- if (convert[model].labels.length !== convert[model].channels) {
- throw new Error("channel and label counts mismatch: " + model);
- }
- const { channels, labels } = convert[model];
- delete convert[model].channels;
- delete convert[model].labels;
- Object.defineProperty(convert[model], "channels", { value: channels });
- Object.defineProperty(convert[model], "labels", { value: labels });
-}
-convert.rgb.hsl = function(rgb) {
- const r = rgb[0] / 255;
- const g = rgb[1] / 255;
- const b = rgb[2] / 255;
- const min = Math.min(r, g, b);
- const max = Math.max(r, g, b);
- const delta = max - min;
- let h;
- let s;
- switch (max) {
- case min: {
- h = 0;
- break;
- }
- case r: {
- h = (g - b) / delta;
- break;
- }
- case g: {
- h = 2 + (b - r) / delta;
- break;
- }
- case b: {
- h = 4 + (r - g) / delta;
- break;
- }
- }
- h = Math.min(h * 60, 360);
- if (h < 0) {
- h += 360;
- }
- const l = (min + max) / 2;
- if (max === min) {
- s = 0;
- } else if (l <= 0.5) {
- s = delta / (max + min);
- } else {
- s = delta / (2 - max - min);
- }
- return [h, s * 100, l * 100];
-};
-convert.rgb.hsv = function(rgb) {
- let rdif;
- let gdif;
- let bdif;
- let h;
- let s;
- const r = rgb[0] / 255;
- const g = rgb[1] / 255;
- const b = rgb[2] / 255;
- const v = Math.max(r, g, b);
- const diff = v - Math.min(r, g, b);
- const diffc = function(c) {
- return (v - c) / 6 / diff + 1 / 2;
- };
- if (diff === 0) {
- h = 0;
- s = 0;
- } else {
- s = diff / v;
- rdif = diffc(r);
- gdif = diffc(g);
- bdif = diffc(b);
- switch (v) {
- case r: {
- h = bdif - gdif;
- break;
- }
- case g: {
- h = 1 / 3 + rdif - bdif;
- break;
- }
- case b: {
- h = 2 / 3 + gdif - rdif;
- break;
- }
- }
- if (h < 0) {
- h += 1;
- } else if (h > 1) {
- h -= 1;
- }
- }
- return [
- h * 360,
- s * 100,
- v * 100
- ];
-};
-convert.rgb.hwb = function(rgb) {
- const r = rgb[0];
- const g = rgb[1];
- let b = rgb[2];
- const h = convert.rgb.hsl(rgb)[0];
- const w = 1 / 255 * Math.min(r, Math.min(g, b));
- b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
- return [h, w * 100, b * 100];
-};
-convert.rgb.oklab = function(rgb) {
- const r = srgbNonlinearTransformInv(rgb[0] / 255);
- const g = srgbNonlinearTransformInv(rgb[1] / 255);
- const b = srgbNonlinearTransformInv(rgb[2] / 255);
- const lp = Math.cbrt(0.4122214708 * r + 0.5363325363 * g + 0.0514459929 * b);
- const mp = Math.cbrt(0.2119034982 * r + 0.6806995451 * g + 0.1073969566 * b);
- const sp = Math.cbrt(0.0883024619 * r + 0.2817188376 * g + 0.6299787005 * b);
- const l = 0.2104542553 * lp + 0.793617785 * mp - 0.0040720468 * sp;
- const aa = 1.9779984951 * lp - 2.428592205 * mp + 0.4505937099 * sp;
- const bb = 0.0259040371 * lp + 0.7827717662 * mp - 0.808675766 * sp;
- return [l * 100, aa * 100, bb * 100];
-};
-convert.rgb.cmyk = function(rgb) {
- const r = rgb[0] / 255;
- const g = rgb[1] / 255;
- const b = rgb[2] / 255;
- const k = Math.min(1 - r, 1 - g, 1 - b);
- const c = (1 - r - k) / (1 - k) || 0;
- const m = (1 - g - k) / (1 - k) || 0;
- const y = (1 - b - k) / (1 - k) || 0;
- return [c * 100, m * 100, y * 100, k * 100];
-};
-function comparativeDistance(x, y) {
- return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
-}
-convert.rgb.keyword = function(rgb) {
- const reversed = reverseKeywords[rgb];
- if (reversed) {
- return reversed;
- }
- let currentClosestDistance = Number.POSITIVE_INFINITY;
- let currentClosestKeyword;
- for (const keyword of Object.keys(color_name_default)) {
- const value = color_name_default[keyword];
- const distance = comparativeDistance(rgb, value);
- if (distance < currentClosestDistance) {
- currentClosestDistance = distance;
- currentClosestKeyword = keyword;
- }
- }
- return currentClosestKeyword;
-};
-convert.keyword.rgb = function(keyword) {
- return [...color_name_default[keyword]];
-};
-convert.rgb.xyz = function(rgb) {
- const r = srgbNonlinearTransformInv(rgb[0] / 255);
- const g = srgbNonlinearTransformInv(rgb[1] / 255);
- const b = srgbNonlinearTransformInv(rgb[2] / 255);
- const x = r * 0.4124564 + g * 0.3575761 + b * 0.1804375;
- const y = r * 0.2126729 + g * 0.7151522 + b * 0.072175;
- const z = r * 0.0193339 + g * 0.119192 + b * 0.9503041;
- return [x * 100, y * 100, z * 100];
-};
-convert.rgb.lab = function(rgb) {
- const xyz = convert.rgb.xyz(rgb);
- let x = xyz[0];
- let y = xyz[1];
- let z = xyz[2];
- x /= 95.047;
- y /= 100;
- z /= 108.883;
- x = x > LAB_FT ? x ** (1 / 3) : 7.787 * x + 16 / 116;
- y = y > LAB_FT ? y ** (1 / 3) : 7.787 * y + 16 / 116;
- z = z > LAB_FT ? z ** (1 / 3) : 7.787 * z + 16 / 116;
- const l = 116 * y - 16;
- const a = 500 * (x - y);
- const b = 200 * (y - z);
- return [l, a, b];
-};
-convert.hsl.rgb = function(hsl) {
- const h = hsl[0] / 360;
- const s = hsl[1] / 100;
- const l = hsl[2] / 100;
- let t3;
- let value;
- if (s === 0) {
- value = l * 255;
- return [value, value, value];
- }
- const t2 = l < 0.5 ? l * (1 + s) : l + s - l * s;
- const t1 = 2 * l - t2;
- const rgb = [0, 0, 0];
- for (let i = 0; i < 3; i++) {
- t3 = h + 1 / 3 * -(i - 1);
- if (t3 < 0) {
- t3++;
- }
- if (t3 > 1) {
- t3--;
- }
- if (6 * t3 < 1) {
- value = t1 + (t2 - t1) * 6 * t3;
- } else if (2 * t3 < 1) {
- value = t2;
- } else if (3 * t3 < 2) {
- value = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
- } else {
- value = t1;
- }
- rgb[i] = value * 255;
- }
- return rgb;
-};
-convert.hsl.hsv = function(hsl) {
- const h = hsl[0];
- let s = hsl[1] / 100;
- let l = hsl[2] / 100;
- let smin = s;
- const lmin = Math.max(l, 0.01);
- l *= 2;
- s *= l <= 1 ? l : 2 - l;
- smin *= lmin <= 1 ? lmin : 2 - lmin;
- const v = (l + s) / 2;
- const sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);
- return [h, sv * 100, v * 100];
-};
-convert.hsv.rgb = function(hsv) {
- const h = hsv[0] / 60;
- const s = hsv[1] / 100;
- let v = hsv[2] / 100;
- const hi = Math.floor(h) % 6;
- const f = h - Math.floor(h);
- const p = 255 * v * (1 - s);
- const q = 255 * v * (1 - s * f);
- const t = 255 * v * (1 - s * (1 - f));
- v *= 255;
- switch (hi) {
- case 0: {
- return [v, t, p];
- }
- case 1: {
- return [q, v, p];
- }
- case 2: {
- return [p, v, t];
- }
- case 3: {
- return [p, q, v];
- }
- case 4: {
- return [t, p, v];
- }
- case 5: {
- return [v, p, q];
- }
- }
-};
-convert.hsv.hsl = function(hsv) {
- const h = hsv[0];
- const s = hsv[1] / 100;
- const v = hsv[2] / 100;
- const vmin = Math.max(v, 0.01);
- let sl;
- let l;
- l = (2 - s) * v;
- const lmin = (2 - s) * vmin;
- sl = s * vmin;
- sl /= lmin <= 1 ? lmin : 2 - lmin;
- sl = sl || 0;
- l /= 2;
- return [h, sl * 100, l * 100];
-};
-convert.hwb.rgb = function(hwb) {
- const h = hwb[0] / 360;
- let wh = hwb[1] / 100;
- let bl = hwb[2] / 100;
- const ratio = wh + bl;
- let f;
- if (ratio > 1) {
- wh /= ratio;
- bl /= ratio;
- }
- const i = Math.floor(6 * h);
- const v = 1 - bl;
- f = 6 * h - i;
- if ((i & 1) !== 0) {
- f = 1 - f;
- }
- const n = wh + f * (v - wh);
- let r;
- let g;
- let b;
- switch (i) {
- default:
- case 6:
- case 0: {
- r = v;
- g = n;
- b = wh;
- break;
- }
- case 1: {
- r = n;
- g = v;
- b = wh;
- break;
- }
- case 2: {
- r = wh;
- g = v;
- b = n;
- break;
- }
- case 3: {
- r = wh;
- g = n;
- b = v;
- break;
- }
- case 4: {
- r = n;
- g = wh;
- b = v;
- break;
- }
- case 5: {
- r = v;
- g = wh;
- b = n;
- break;
- }
- }
- return [r * 255, g * 255, b * 255];
-};
-convert.cmyk.rgb = function(cmyk) {
- const c = cmyk[0] / 100;
- const m = cmyk[1] / 100;
- const y = cmyk[2] / 100;
- const k = cmyk[3] / 100;
- const r = 1 - Math.min(1, c * (1 - k) + k);
- const g = 1 - Math.min(1, m * (1 - k) + k);
- const b = 1 - Math.min(1, y * (1 - k) + k);
- return [r * 255, g * 255, b * 255];
-};
-convert.xyz.rgb = function(xyz) {
- const x = xyz[0] / 100;
- const y = xyz[1] / 100;
- const z = xyz[2] / 100;
- let r;
- let g;
- let b;
- r = x * 3.2404542 + y * -1.5371385 + z * -0.4985314;
- g = x * -0.969266 + y * 1.8760108 + z * 0.041556;
- b = x * 0.0556434 + y * -0.2040259 + z * 1.0572252;
- r = srgbNonlinearTransform(r);
- g = srgbNonlinearTransform(g);
- b = srgbNonlinearTransform(b);
- return [r * 255, g * 255, b * 255];
-};
-convert.xyz.lab = function(xyz) {
- let x = xyz[0];
- let y = xyz[1];
- let z = xyz[2];
- x /= 95.047;
- y /= 100;
- z /= 108.883;
- x = x > LAB_FT ? x ** (1 / 3) : 7.787 * x + 16 / 116;
- y = y > LAB_FT ? y ** (1 / 3) : 7.787 * y + 16 / 116;
- z = z > LAB_FT ? z ** (1 / 3) : 7.787 * z + 16 / 116;
- const l = 116 * y - 16;
- const a = 500 * (x - y);
- const b = 200 * (y - z);
- return [l, a, b];
-};
-convert.xyz.oklab = function(xyz) {
- const x = xyz[0] / 100;
- const y = xyz[1] / 100;
- const z = xyz[2] / 100;
- const lp = Math.cbrt(0.8189330101 * x + 0.3618667424 * y - 0.1288597137 * z);
- const mp = Math.cbrt(0.0329845436 * x + 0.9293118715 * y + 0.0361456387 * z);
- const sp = Math.cbrt(0.0482003018 * x + 0.2643662691 * y + 0.633851707 * z);
- const l = 0.2104542553 * lp + 0.793617785 * mp - 0.0040720468 * sp;
- const a = 1.9779984951 * lp - 2.428592205 * mp + 0.4505937099 * sp;
- const b = 0.0259040371 * lp + 0.7827717662 * mp - 0.808675766 * sp;
- return [l * 100, a * 100, b * 100];
-};
-convert.oklab.oklch = function(oklab) {
- return convert.lab.lch(oklab);
-};
-convert.oklab.xyz = function(oklab) {
- const ll = oklab[0] / 100;
- const a = oklab[1] / 100;
- const b = oklab[2] / 100;
- const l = (0.999999998 * ll + 0.396337792 * a + 0.215803758 * b) ** 3;
- const m = (1.000000008 * ll - 0.105561342 * a - 0.063854175 * b) ** 3;
- const s = (1.000000055 * ll - 0.089484182 * a - 1.291485538 * b) ** 3;
- const x = 1.227013851 * l - 0.55779998 * m + 0.281256149 * s;
- const y = -0.040580178 * l + 1.11225687 * m - 0.071676679 * s;
- const z = -0.076381285 * l - 0.421481978 * m + 1.58616322 * s;
- return [x * 100, y * 100, z * 100];
-};
-convert.oklab.rgb = function(oklab) {
- const ll = oklab[0] / 100;
- const aa = oklab[1] / 100;
- const bb = oklab[2] / 100;
- const l = (ll + 0.3963377774 * aa + 0.2158037573 * bb) ** 3;
- const m = (ll - 0.1055613458 * aa - 0.0638541728 * bb) ** 3;
- const s = (ll - 0.0894841775 * aa - 1.291485548 * bb) ** 3;
- const r = srgbNonlinearTransform(4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s);
- const g = srgbNonlinearTransform(-1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s);
- const b = srgbNonlinearTransform(-0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s);
- return [r * 255, g * 255, b * 255];
-};
-convert.oklch.oklab = function(oklch) {
- return convert.lch.lab(oklch);
-};
-convert.lab.xyz = function(lab) {
- const l = lab[0];
- const a = lab[1];
- const b = lab[2];
- let x;
- let y;
- let z;
- y = (l + 16) / 116;
- x = a / 500 + y;
- z = y - b / 200;
- const y2 = y ** 3;
- const x2 = x ** 3;
- const z2 = z ** 3;
- y = y2 > LAB_FT ? y2 : (y - 16 / 116) / 7.787;
- x = x2 > LAB_FT ? x2 : (x - 16 / 116) / 7.787;
- z = z2 > LAB_FT ? z2 : (z - 16 / 116) / 7.787;
- x *= 95.047;
- y *= 100;
- z *= 108.883;
- return [x, y, z];
-};
-convert.lab.lch = function(lab) {
- const l = lab[0];
- const a = lab[1];
- const b = lab[2];
- let h;
- const hr = Math.atan2(b, a);
- h = hr * 360 / 2 / Math.PI;
- if (h < 0) {
- h += 360;
- }
- const c = Math.sqrt(a * a + b * b);
- return [l, c, h];
-};
-convert.lch.lab = function(lch) {
- const l = lch[0];
- const c = lch[1];
- const h = lch[2];
- const hr = h / 360 * 2 * Math.PI;
- const a = c * Math.cos(hr);
- const b = c * Math.sin(hr);
- return [l, a, b];
-};
-convert.rgb.ansi16 = function(args, saturation = null) {
- const [r, g, b] = args;
- let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
- value = Math.round(value / 50);
- if (value === 0) {
- return 30;
- }
- let ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));
- if (value === 2) {
- ansi += 60;
- }
- return ansi;
-};
-convert.hsv.ansi16 = function(args) {
- return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
-};
-convert.rgb.ansi256 = function(args) {
- const r = args[0];
- const g = args[1];
- const b = args[2];
- if (r >> 4 === g >> 4 && g >> 4 === b >> 4) {
- if (r < 8) {
- return 16;
- }
- if (r > 248) {
- return 231;
- }
- return Math.round((r - 8) / 247 * 24) + 232;
- }
- const ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);
- return ansi;
-};
-convert.ansi16.rgb = function(args) {
- args = args[0];
- let color = args % 10;
- if (color === 0 || color === 7) {
- if (args > 50) {
- color += 3.5;
- }
- color = color / 10.5 * 255;
- return [color, color, color];
- }
- const mult = (Math.trunc(args > 50) + 1) * 0.5;
- const r = (color & 1) * mult * 255;
- const g = (color >> 1 & 1) * mult * 255;
- const b = (color >> 2 & 1) * mult * 255;
- return [r, g, b];
-};
-convert.ansi256.rgb = function(args) {
- args = args[0];
- if (args >= 232) {
- const c = (args - 232) * 10 + 8;
- return [c, c, c];
- }
- args -= 16;
- let rem;
- const r = Math.floor(args / 36) / 5 * 255;
- const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
- const b = rem % 6 / 5 * 255;
- return [r, g, b];
-};
-convert.rgb.hex = function(args) {
- const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
- const string = integer.toString(16).toUpperCase();
- return "000000".slice(string.length) + string;
-};
-convert.hex.rgb = function(args) {
- const match = args.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);
- if (!match) {
- return [0, 0, 0];
- }
- let colorString = match[0];
- if (match[0].length === 3) {
- colorString = [...colorString].map((char) => char + char).join("");
- }
- const integer = Number.parseInt(colorString, 16);
- const r = integer >> 16 & 255;
- const g = integer >> 8 & 255;
- const b = integer & 255;
- return [r, g, b];
-};
-convert.rgb.hcg = function(rgb) {
- const r = rgb[0] / 255;
- const g = rgb[1] / 255;
- const b = rgb[2] / 255;
- const max = Math.max(Math.max(r, g), b);
- const min = Math.min(Math.min(r, g), b);
- const chroma = max - min;
- let hue;
- const grayscale = chroma < 1 ? min / (1 - chroma) : 0;
- if (chroma <= 0) {
- hue = 0;
- } else if (max === r) {
- hue = (g - b) / chroma % 6;
- } else if (max === g) {
- hue = 2 + (b - r) / chroma;
- } else {
- hue = 4 + (r - g) / chroma;
- }
- hue /= 6;
- hue %= 1;
- return [hue * 360, chroma * 100, grayscale * 100];
-};
-convert.hsl.hcg = function(hsl) {
- const s = hsl[1] / 100;
- const l = hsl[2] / 100;
- const c = l < 0.5 ? 2 * s * l : 2 * s * (1 - l);
- let f = 0;
- if (c < 1) {
- f = (l - 0.5 * c) / (1 - c);
- }
- return [hsl[0], c * 100, f * 100];
-};
-convert.hsv.hcg = function(hsv) {
- const s = hsv[1] / 100;
- const v = hsv[2] / 100;
- const c = s * v;
- let f = 0;
- if (c < 1) {
- f = (v - c) / (1 - c);
- }
- return [hsv[0], c * 100, f * 100];
-};
-convert.hcg.rgb = function(hcg) {
- const h = hcg[0] / 360;
- const c = hcg[1] / 100;
- const g = hcg[2] / 100;
- if (c === 0) {
- return [g * 255, g * 255, g * 255];
- }
- const pure = [0, 0, 0];
- const hi = h % 1 * 6;
- const v = hi % 1;
- const w = 1 - v;
- let mg = 0;
- switch (Math.floor(hi)) {
- case 0: {
- pure[0] = 1;
- pure[1] = v;
- pure[2] = 0;
- break;
- }
- case 1: {
- pure[0] = w;
- pure[1] = 1;
- pure[2] = 0;
- break;
- }
- case 2: {
- pure[0] = 0;
- pure[1] = 1;
- pure[2] = v;
- break;
- }
- case 3: {
- pure[0] = 0;
- pure[1] = w;
- pure[2] = 1;
- break;
- }
- case 4: {
- pure[0] = v;
- pure[1] = 0;
- pure[2] = 1;
- break;
- }
- default: {
- pure[0] = 1;
- pure[1] = 0;
- pure[2] = w;
- }
- }
- mg = (1 - c) * g;
- return [
- (c * pure[0] + mg) * 255,
- (c * pure[1] + mg) * 255,
- (c * pure[2] + mg) * 255
- ];
-};
-convert.hcg.hsv = function(hcg) {
- const c = hcg[1] / 100;
- const g = hcg[2] / 100;
- const v = c + g * (1 - c);
- let f = 0;
- if (v > 0) {
- f = c / v;
- }
- return [hcg[0], f * 100, v * 100];
-};
-convert.hcg.hsl = function(hcg) {
- const c = hcg[1] / 100;
- const g = hcg[2] / 100;
- const l = g * (1 - c) + 0.5 * c;
- let s = 0;
- if (l > 0 && l < 0.5) {
- s = c / (2 * l);
- } else if (l >= 0.5 && l < 1) {
- s = c / (2 * (1 - l));
- }
- return [hcg[0], s * 100, l * 100];
-};
-convert.hcg.hwb = function(hcg) {
- const c = hcg[1] / 100;
- const g = hcg[2] / 100;
- const v = c + g * (1 - c);
- return [hcg[0], (v - c) * 100, (1 - v) * 100];
-};
-convert.hwb.hcg = function(hwb) {
- const w = hwb[1] / 100;
- const b = hwb[2] / 100;
- const v = 1 - b;
- const c = v - w;
- let g = 0;
- if (c < 1) {
- g = (v - c) / (1 - c);
- }
- return [hwb[0], c * 100, g * 100];
-};
-convert.apple.rgb = function(apple) {
- return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];
-};
-convert.rgb.apple = function(rgb) {
- return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];
-};
-convert.gray.rgb = function(args) {
- return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
-};
-convert.gray.hsl = function(args) {
- return [0, 0, args[0]];
-};
-convert.gray.hsv = convert.gray.hsl;
-convert.gray.hwb = function(gray) {
- return [0, 100, gray[0]];
-};
-convert.gray.cmyk = function(gray) {
- return [0, 0, 0, gray[0]];
-};
-convert.gray.lab = function(gray) {
- return [gray[0], 0, 0];
-};
-convert.gray.hex = function(gray) {
- const value = Math.round(gray[0] / 100 * 255) & 255;
- const integer = (value << 16) + (value << 8) + value;
- const string = integer.toString(16).toUpperCase();
- return "000000".slice(string.length) + string;
-};
-convert.rgb.gray = function(rgb) {
- const value = (rgb[0] + rgb[1] + rgb[2]) / 3;
- return [value / 255 * 100];
-};
-
-// node_modules/color-convert/route.js
-function buildGraph() {
- const graph = {};
- const models2 = Object.keys(conversions_default);
- for (let { length } = models2, i = 0; i < length; i++) {
- graph[models2[i]] = {
- // http://jsperf.com/1-vs-infinity
- // micro-opt, but this is simple.
- distance: -1,
- parent: null
- };
- }
- return graph;
-}
-function deriveBFS(fromModel) {
- const graph = buildGraph();
- const queue = [fromModel];
- graph[fromModel].distance = 0;
- while (queue.length > 0) {
- const current = queue.pop();
- const adjacents = Object.keys(conversions_default[current]);
- for (let { length } = adjacents, i = 0; i < length; i++) {
- const adjacent = adjacents[i];
- const node = graph[adjacent];
- if (node.distance === -1) {
- node.distance = graph[current].distance + 1;
- node.parent = current;
- queue.unshift(adjacent);
- }
- }
- }
- return graph;
-}
-function link(from, to) {
- return function(args) {
- return to(from(args));
- };
-}
-function wrapConversion(toModel, graph) {
- const path = [graph[toModel].parent, toModel];
- let fn = conversions_default[graph[toModel].parent][toModel];
- let cur = graph[toModel].parent;
- while (graph[cur].parent) {
- path.unshift(graph[cur].parent);
- fn = link(conversions_default[graph[cur].parent][cur], fn);
- cur = graph[cur].parent;
- }
- fn.conversion = path;
- return fn;
-}
-function route(fromModel) {
- const graph = deriveBFS(fromModel);
- const conversion = {};
- const models2 = Object.keys(graph);
- for (let { length } = models2, i = 0; i < length; i++) {
- const toModel = models2[i];
- const node = graph[toModel];
- if (node.parent === null) {
- continue;
- }
- conversion[toModel] = wrapConversion(toModel, graph);
- }
- return conversion;
-}
-var route_default = route;
-
-// node_modules/color-convert/index.js
-var convert2 = {};
-var models = Object.keys(conversions_default);
-function wrapRaw(fn) {
- const wrappedFn = function(...args) {
- const arg0 = args[0];
- if (arg0 === void 0 || arg0 === null) {
- return arg0;
- }
- if (arg0.length > 1) {
- args = arg0;
- }
- return fn(args);
- };
- if ("conversion" in fn) {
- wrappedFn.conversion = fn.conversion;
- }
- return wrappedFn;
-}
-function wrapRounded(fn) {
- const wrappedFn = function(...args) {
- const arg0 = args[0];
- if (arg0 === void 0 || arg0 === null) {
- return arg0;
- }
- if (arg0.length > 1) {
- args = arg0;
- }
- const result = fn(args);
- if (typeof result === "object") {
- for (let { length } = result, i = 0; i < length; i++) {
- result[i] = Math.round(result[i]);
- }
- }
- return result;
- };
- if ("conversion" in fn) {
- wrappedFn.conversion = fn.conversion;
- }
- return wrappedFn;
-}
-for (const fromModel of models) {
- convert2[fromModel] = {};
- Object.defineProperty(convert2[fromModel], "channels", { value: conversions_default[fromModel].channels });
- Object.defineProperty(convert2[fromModel], "labels", { value: conversions_default[fromModel].labels });
- const routes = route_default(fromModel);
- const routeModels = Object.keys(routes);
- for (const toModel of routeModels) {
- const fn = routes[toModel];
- convert2[fromModel][toModel] = wrapRounded(fn);
- convert2[fromModel][toModel].raw = wrapRaw(fn);
- }
-}
-var color_convert_default = convert2;
-
-// node_modules/color/index.js
-var skippedModels = [
- // To be honest, I don't really feel like keyword belongs in color convert, but eh.
- "keyword",
- // Gray conflicts with some method names, and has its own method defined.
- "gray",
- // Shouldn't really be in color-convert either...
- "hex"
-];
-var hashedModelKeys = {};
-for (const model of Object.keys(color_convert_default)) {
- hashedModelKeys[[...color_convert_default[model].labels].sort().join("")] = model;
-}
-var limiters = {};
-function Color(object, model) {
- if (!(this instanceof Color)) {
- return new Color(object, model);
- }
- if (model && model in skippedModels) {
- model = null;
- }
- if (model && !(model in color_convert_default)) {
- throw new Error("Unknown model: " + model);
- }
- let i;
- let channels;
- if (object == null) {
- this.model = "rgb";
- this.color = [0, 0, 0];
- this.valpha = 1;
- } else if (object instanceof Color) {
- this.model = object.model;
- this.color = [...object.color];
- this.valpha = object.valpha;
- } else if (typeof object === "string") {
- const result = color_string_default.get(object);
- if (result === null) {
- throw new Error("Unable to parse color from string: " + object);
- }
- this.model = result.model;
- channels = color_convert_default[this.model].channels;
- this.color = result.value.slice(0, channels);
- this.valpha = typeof result.value[channels] === "number" ? result.value[channels] : 1;
- } else if (object.length > 0) {
- this.model = model || "rgb";
- channels = color_convert_default[this.model].channels;
- const newArray = Array.prototype.slice.call(object, 0, channels);
- this.color = zeroArray(newArray, channels);
- this.valpha = typeof object[channels] === "number" ? object[channels] : 1;
- } else if (typeof object === "number") {
- this.model = "rgb";
- this.color = [
- object >> 16 & 255,
- object >> 8 & 255,
- object & 255
- ];
- this.valpha = 1;
- } else {
- this.valpha = 1;
- const keys = Object.keys(object);
- if ("alpha" in object) {
- keys.splice(keys.indexOf("alpha"), 1);
- this.valpha = typeof object.alpha === "number" ? object.alpha : 0;
- }
- const hashedKeys = keys.sort().join("");
- if (!(hashedKeys in hashedModelKeys)) {
- throw new Error("Unable to parse color from object: " + JSON.stringify(object));
- }
- this.model = hashedModelKeys[hashedKeys];
- const { labels } = color_convert_default[this.model];
- const color = [];
- for (i = 0; i < labels.length; i++) {
- color.push(object[labels[i]]);
- }
- this.color = zeroArray(color);
- }
- if (limiters[this.model]) {
- channels = color_convert_default[this.model].channels;
- for (i = 0; i < channels; i++) {
- const limit = limiters[this.model][i];
- if (limit) {
- this.color[i] = limit(this.color[i]);
- }
- }
- }
- this.valpha = Math.max(0, Math.min(1, this.valpha));
- if (Object.freeze) {
- Object.freeze(this);
- }
-}
-Color.prototype = {
- toString() {
- return this.string();
- },
- toJSON() {
- return this[this.model]();
- },
- string(places) {
- let self = this.model in color_string_default.to ? this : this.rgb();
- self = self.round(typeof places === "number" ? places : 1);
- const arguments_ = self.valpha === 1 ? self.color : [...self.color, this.valpha];
- return color_string_default.to[self.model](...arguments_);
- },
- percentString(places) {
- const self = this.rgb().round(typeof places === "number" ? places : 1);
- const arguments_ = self.valpha === 1 ? self.color : [...self.color, this.valpha];
- return color_string_default.to.rgb.percent(...arguments_);
- },
- array() {
- return this.valpha === 1 ? [...this.color] : [...this.color, this.valpha];
- },
- object() {
- const result = {};
- const { channels } = color_convert_default[this.model];
- const { labels } = color_convert_default[this.model];
- for (let i = 0; i < channels; i++) {
- result[labels[i]] = this.color[i];
- }
- if (this.valpha !== 1) {
- result.alpha = this.valpha;
- }
- return result;
- },
- unitArray() {
- const rgb = this.rgb().color;
- rgb[0] /= 255;
- rgb[1] /= 255;
- rgb[2] /= 255;
- if (this.valpha !== 1) {
- rgb.push(this.valpha);
- }
- return rgb;
- },
- unitObject() {
- const rgb = this.rgb().object();
- rgb.r /= 255;
- rgb.g /= 255;
- rgb.b /= 255;
- if (this.valpha !== 1) {
- rgb.alpha = this.valpha;
- }
- return rgb;
- },
- round(places) {
- places = Math.max(places || 0, 0);
- return new Color([...this.color.map(roundToPlace(places)), this.valpha], this.model);
- },
- alpha(value) {
- if (value !== void 0) {
- return new Color([...this.color, Math.max(0, Math.min(1, value))], this.model);
- }
- return this.valpha;
- },
- // Rgb
- red: getset("rgb", 0, maxfn(255)),
- green: getset("rgb", 1, maxfn(255)),
- blue: getset("rgb", 2, maxfn(255)),
- hue: getset(["hsl", "hsv", "hsl", "hwb", "hcg"], 0, (value) => (value % 360 + 360) % 360),
- saturationl: getset("hsl", 1, maxfn(100)),
- lightness: getset("hsl", 2, maxfn(100)),
- saturationv: getset("hsv", 1, maxfn(100)),
- value: getset("hsv", 2, maxfn(100)),
- chroma: getset("hcg", 1, maxfn(100)),
- gray: getset("hcg", 2, maxfn(100)),
- white: getset("hwb", 1, maxfn(100)),
- wblack: getset("hwb", 2, maxfn(100)),
- cyan: getset("cmyk", 0, maxfn(100)),
- magenta: getset("cmyk", 1, maxfn(100)),
- yellow: getset("cmyk", 2, maxfn(100)),
- black: getset("cmyk", 3, maxfn(100)),
- x: getset("xyz", 0, maxfn(95.047)),
- y: getset("xyz", 1, maxfn(100)),
- z: getset("xyz", 2, maxfn(108.833)),
- l: getset("lab", 0, maxfn(100)),
- a: getset("lab", 1),
- b: getset("lab", 2),
- keyword(value) {
- if (value !== void 0) {
- return new Color(value);
- }
- return color_convert_default[this.model].keyword(this.color);
- },
- hex(value) {
- if (value !== void 0) {
- return new Color(value);
- }
- return color_string_default.to.hex(...this.rgb().round().color);
- },
- hexa(value) {
- if (value !== void 0) {
- return new Color(value);
- }
- const rgbArray = this.rgb().round().color;
- let alphaHex = Math.round(this.valpha * 255).toString(16).toUpperCase();
- if (alphaHex.length === 1) {
- alphaHex = "0" + alphaHex;
- }
- return color_string_default.to.hex(...rgbArray) + alphaHex;
- },
- rgbNumber() {
- const rgb = this.rgb().color;
- return (rgb[0] & 255) << 16 | (rgb[1] & 255) << 8 | rgb[2] & 255;
- },
- luminosity() {
- const rgb = this.rgb().color;
- const lum = [];
- for (const [i, element] of rgb.entries()) {
- const chan = element / 255;
- lum[i] = chan <= 0.04045 ? chan / 12.92 : ((chan + 0.055) / 1.055) ** 2.4;
- }
- return 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];
- },
- contrast(color2) {
- const lum1 = this.luminosity();
- const lum2 = color2.luminosity();
- if (lum1 > lum2) {
- return (lum1 + 0.05) / (lum2 + 0.05);
- }
- return (lum2 + 0.05) / (lum1 + 0.05);
- },
- level(color2) {
- const contrastRatio = this.contrast(color2);
- if (contrastRatio >= 7) {
- return "AAA";
- }
- return contrastRatio >= 4.5 ? "AA" : "";
- },
- isDark() {
- const rgb = this.rgb().color;
- const yiq = (rgb[0] * 2126 + rgb[1] * 7152 + rgb[2] * 722) / 1e4;
- return yiq < 128;
- },
- isLight() {
- return !this.isDark();
- },
- negate() {
- const rgb = this.rgb();
- for (let i = 0; i < 3; i++) {
- rgb.color[i] = 255 - rgb.color[i];
- }
- return rgb;
- },
- lighten(ratio) {
- const hsl = this.hsl();
- hsl.color[2] += hsl.color[2] * ratio;
- return hsl;
- },
- darken(ratio) {
- const hsl = this.hsl();
- hsl.color[2] -= hsl.color[2] * ratio;
- return hsl;
- },
- saturate(ratio) {
- const hsl = this.hsl();
- hsl.color[1] += hsl.color[1] * ratio;
- return hsl;
- },
- desaturate(ratio) {
- const hsl = this.hsl();
- hsl.color[1] -= hsl.color[1] * ratio;
- return hsl;
- },
- whiten(ratio) {
- const hwb = this.hwb();
- hwb.color[1] += hwb.color[1] * ratio;
- return hwb;
- },
- blacken(ratio) {
- const hwb = this.hwb();
- hwb.color[2] += hwb.color[2] * ratio;
- return hwb;
- },
- grayscale() {
- const rgb = this.rgb().color;
- const value = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11;
- return Color.rgb(value, value, value);
- },
- fade(ratio) {
- return this.alpha(this.valpha - this.valpha * ratio);
- },
- opaquer(ratio) {
- return this.alpha(this.valpha + this.valpha * ratio);
- },
- rotate(degrees) {
- const hsl = this.hsl();
- let hue = hsl.color[0];
- hue = (hue + degrees) % 360;
- hue = hue < 0 ? 360 + hue : hue;
- hsl.color[0] = hue;
- return hsl;
- },
- mix(mixinColor, weight) {
- if (!mixinColor || !mixinColor.rgb) {
- throw new Error('Argument to "mix" was not a Color instance, but rather an instance of ' + typeof mixinColor);
- }
- const color1 = mixinColor.rgb();
- const color2 = this.rgb();
- const p = weight === void 0 ? 0.5 : weight;
- const w = 2 * p - 1;
- const a = color1.alpha() - color2.alpha();
- const w1 = ((w * a === -1 ? w : (w + a) / (1 + w * a)) + 1) / 2;
- const w2 = 1 - w1;
- return Color.rgb(
- w1 * color1.red() + w2 * color2.red(),
- w1 * color1.green() + w2 * color2.green(),
- w1 * color1.blue() + w2 * color2.blue(),
- color1.alpha() * p + color2.alpha() * (1 - p)
- );
- }
-};
-for (const model of Object.keys(color_convert_default)) {
- if (skippedModels.includes(model)) {
- continue;
- }
- const { channels } = color_convert_default[model];
- Color.prototype[model] = function(...arguments_) {
- if (this.model === model) {
- return new Color(this);
- }
- if (arguments_.length > 0) {
- return new Color(arguments_, model);
- }
- return new Color([...assertArray(color_convert_default[this.model][model].raw(this.color)), this.valpha], model);
- };
- Color[model] = function(...arguments_) {
- let color = arguments_[0];
- if (typeof color === "number") {
- color = zeroArray(arguments_, channels);
- }
- return new Color(color, model);
- };
-}
-function roundTo(number, places) {
- return Number(number.toFixed(places));
-}
-function roundToPlace(places) {
- return function(number) {
- return roundTo(number, places);
- };
-}
-function getset(model, channel, modifier) {
- model = Array.isArray(model) ? model : [model];
- for (const m of model) {
- (limiters[m] ||= [])[channel] = modifier;
- }
- model = model[0];
- return function(value) {
- let result;
- if (value !== void 0) {
- if (modifier) {
- value = modifier(value);
- }
- result = this[model]();
- result.color[channel] = value;
- return result;
- }
- result = this[model]().color[channel];
- if (modifier) {
- result = modifier(result);
- }
- return result;
- };
-}
-function maxfn(max) {
- return function(v) {
- return Math.max(0, Math.min(max, v));
- };
-}
-function assertArray(value) {
- return Array.isArray(value) ? value : [value];
-}
-function zeroArray(array, length) {
- for (let i = 0; i < length; i++) {
- if (typeof array[i] !== "number") {
- array[i] = 0;
- }
- }
- return array;
-}
-var index_default = Color;
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/colour/index.cjs b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/colour/index.cjs
deleted file mode 100644
index 25596b2b..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/colour/index.cjs
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("./color.cjs").default;
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/colour/index.d.ts b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/colour/index.d.ts
deleted file mode 100644
index ca2461fb..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/colour/index.d.ts
+++ /dev/null
@@ -1,929 +0,0 @@
-// Generated by dts-bundle-generator v9.5.1
-
-type Channels = number;
-type RGB = [
- r: number,
- g: number,
- b: number
-];
-type HSL = [
- h: number,
- s: number,
- l: number
-];
-type HSV = [
- h: number,
- s: number,
- v: number
-];
-type CMYK = [
- c: number,
- m: number,
- y: number,
- k: number
-];
-type LAB = [
- l: number,
- a: number,
- b: number
-];
-type LCH = [
- l: number,
- c: number,
- h: number
-];
-type HCG = [
- h: number,
- c: number,
- g: number
-];
-type HWB = [
- h: number,
- w: number,
- b: number
-];
-type XYZ = [
- x: number,
- y: number,
- z: number
-];
-type Apple = [
- r16: number,
- g16: number,
- b16: number
-];
-type Gray = [
- gray: number
-];
-type ANSI16 = number;
-type ANSI256 = number;
-type Keyword = string;
-type HEX = string;
-declare namespace route {
- type rgb = {
- hsl(from: RGB): HSL;
- hsl(...from: RGB): HSL;
- hsl(from: RGB): HSL;
- hsl(...from: RGB): HSL;
- hsv(from: RGB): HSV;
- hsv(...from: RGB): HSV;
- hwb(from: RGB): HWB;
- hwb(...from: RGB): HWB;
- cmyk(from: RGB): CMYK;
- cmyk(...from: RGB): CMYK;
- xyz(from: RGB): XYZ;
- xyz(...from: RGB): XYZ;
- lab(from: RGB): LAB;
- lab(...from: RGB): LAB;
- lch(from: RGB): LCH;
- lch(...from: RGB): LCH;
- hex(from: RGB): HEX;
- hex(...from: RGB): HEX;
- keyword(from: RGB): Keyword;
- keyword(...from: RGB): Keyword;
- ansi16(from: RGB): ANSI16;
- ansi16(...from: RGB): ANSI16;
- ansi256(from: RGB): ANSI256;
- ansi256(...from: RGB): ANSI256;
- hcg(from: RGB): HCG;
- hcg(...from: RGB): HCG;
- apple(from: RGB): Apple;
- apple(...from: RGB): Apple;
- gray(from: RGB): Gray;
- gray(...from: RGB): Gray;
- };
- type hsl = {
- rgb(from: HSL): RGB;
- rgb(...from: HSL): RGB;
- hsv(from: HSL): HSV;
- hsv(...from: HSL): HSV;
- hwb(from: HSL): HWB;
- hwb(...from: HSL): HWB;
- cmyk(from: HSL): CMYK;
- cmyk(...from: HSL): CMYK;
- xyz(from: HSL): XYZ;
- xyz(...from: HSL): XYZ;
- lab(from: HSL): LAB;
- lab(...from: HSL): LAB;
- lch(from: HSL): LCH;
- lch(...from: HSL): LCH;
- hex(from: HSL): HEX;
- hex(...from: HSL): HEX;
- keyword(from: HSL): Keyword;
- keyword(...from: HSL): Keyword;
- ansi16(from: HSL): ANSI16;
- ansi16(...from: HSL): ANSI16;
- ansi256(from: HSL): ANSI256;
- ansi256(...from: HSL): ANSI256;
- hcg(from: HSL): HCG;
- hcg(...from: HSL): HCG;
- apple(from: HSL): Apple;
- apple(...from: HSL): Apple;
- gray(from: HSL): Gray;
- gray(...from: HSL): Gray;
- };
- type hsv = {
- rgb(from: HSV): RGB;
- rgb(...from: HSV): RGB;
- hsl(from: HSV): HSL;
- hsl(...from: HSV): HSL;
- hwb(from: HSV): HWB;
- hwb(...from: HSV): HWB;
- cmyk(from: HSV): CMYK;
- cmyk(...from: HSV): CMYK;
- xyz(from: HSV): XYZ;
- xyz(...from: HSV): XYZ;
- lab(from: HSV): LAB;
- lab(...from: HSV): LAB;
- lch(from: HSV): LCH;
- lch(...from: HSV): LCH;
- hex(from: HSV): HEX;
- hex(...from: HSV): HEX;
- keyword(from: HSV): Keyword;
- keyword(...from: HSV): Keyword;
- ansi16(from: HSV): ANSI16;
- ansi16(...from: HSV): ANSI16;
- ansi256(from: HSV): ANSI256;
- ansi256(...from: HSV): ANSI256;
- hcg(from: HSV): HCG;
- hcg(...from: HSV): HCG;
- apple(from: HSV): Apple;
- apple(...from: HSV): Apple;
- gray(from: HSV): Gray;
- gray(...from: HSV): Gray;
- };
- type hwb = {
- rgb(from: HWB): RGB;
- rgb(...from: HWB): RGB;
- hsl(from: HWB): HSL;
- hsl(...from: HWB): HSL;
- hsv(from: HWB): HSV;
- hsv(...from: HWB): HSV;
- cmyk(from: HWB): CMYK;
- cmyk(...from: HWB): CMYK;
- xyz(from: HWB): XYZ;
- xyz(...from: HWB): XYZ;
- lab(from: HWB): LAB;
- lab(...from: HWB): LAB;
- lch(from: HWB): LCH;
- lch(...from: HWB): LCH;
- hex(from: HWB): HEX;
- hex(...from: HWB): HEX;
- keyword(from: HWB): Keyword;
- keyword(...from: HWB): Keyword;
- ansi16(from: HWB): ANSI16;
- ansi16(...from: HWB): ANSI16;
- ansi256(from: HWB): ANSI256;
- ansi256(...from: HWB): ANSI256;
- hcg(from: HWB): HCG;
- hcg(...from: HWB): HCG;
- apple(from: HWB): Apple;
- apple(...from: HWB): Apple;
- gray(from: HWB): Gray;
- gray(...from: HWB): Gray;
- };
- type cmyk = {
- rgb(from: CMYK): RGB;
- rgb(...from: CMYK): RGB;
- hsl(from: CMYK): HSL;
- hsl(...from: CMYK): HSL;
- hsv(from: CMYK): HSV;
- hsv(...from: CMYK): HSV;
- hwb(from: CMYK): HWB;
- hwb(...from: CMYK): HWB;
- xyz(from: CMYK): XYZ;
- xyz(...from: CMYK): XYZ;
- lab(from: CMYK): LAB;
- lab(...from: CMYK): LAB;
- lch(from: CMYK): LCH;
- lch(...from: CMYK): LCH;
- hex(from: CMYK): HEX;
- hex(...from: CMYK): HEX;
- keyword(from: CMYK): Keyword;
- keyword(...from: CMYK): Keyword;
- ansi16(from: CMYK): ANSI16;
- ansi16(...from: CMYK): ANSI16;
- ansi256(from: CMYK): ANSI256;
- ansi256(...from: CMYK): ANSI256;
- hcg(from: CMYK): HCG;
- hcg(...from: CMYK): HCG;
- apple(from: CMYK): Apple;
- apple(...from: CMYK): Apple;
- gray(from: CMYK): Gray;
- gray(...from: CMYK): Gray;
- };
- type xyz = {
- rgb(from: XYZ): RGB;
- rgb(...from: XYZ): RGB;
- hsl(from: XYZ): HSL;
- hsl(...from: XYZ): HSL;
- hsv(from: XYZ): HSV;
- hsv(...from: XYZ): HSV;
- hwb(from: XYZ): HWB;
- hwb(...from: XYZ): HWB;
- cmyk(from: XYZ): CMYK;
- cmyk(...from: XYZ): CMYK;
- lab(from: XYZ): LAB;
- lab(...from: XYZ): LAB;
- lch(from: XYZ): LCH;
- lch(...from: XYZ): LCH;
- hex(from: XYZ): HEX;
- hex(...from: XYZ): HEX;
- keyword(from: XYZ): Keyword;
- keyword(...from: XYZ): Keyword;
- ansi16(from: XYZ): ANSI16;
- ansi16(...from: XYZ): ANSI16;
- ansi256(from: XYZ): ANSI256;
- ansi256(...from: XYZ): ANSI256;
- hcg(from: XYZ): HCG;
- hcg(...from: XYZ): HCG;
- apple(from: XYZ): Apple;
- apple(...from: XYZ): Apple;
- gray(from: XYZ): Gray;
- gray(...from: XYZ): Gray;
- };
- type lab = {
- rgb(from: LAB): RGB;
- rgb(...from: LAB): RGB;
- hsl(from: LAB): HSL;
- hsl(...from: LAB): HSL;
- hsv(from: LAB): HSV;
- hsv(...from: LAB): HSV;
- hwb(from: LAB): HWB;
- hwb(...from: LAB): HWB;
- cmyk(from: LAB): CMYK;
- cmyk(...from: LAB): CMYK;
- xyz(from: LAB): XYZ;
- xyz(...from: LAB): XYZ;
- lch(from: LAB): LCH;
- lch(...from: LAB): LCH;
- hex(from: LAB): HEX;
- hex(...from: LAB): HEX;
- keyword(from: LAB): Keyword;
- keyword(...from: LAB): Keyword;
- ansi16(from: LAB): ANSI16;
- ansi16(...from: LAB): ANSI16;
- ansi256(from: LAB): ANSI256;
- ansi256(...from: LAB): ANSI256;
- hcg(from: LAB): HCG;
- hcg(...from: LAB): HCG;
- apple(from: LAB): Apple;
- apple(...from: LAB): Apple;
- gray(from: LAB): Gray;
- gray(...from: LAB): Gray;
- };
- type lch = {
- rgb(from: LCH): RGB;
- rgb(...from: LCH): RGB;
- hsl(from: LCH): HSL;
- hsl(...from: LCH): HSL;
- hsv(from: LCH): HSV;
- hsv(...from: LCH): HSV;
- hwb(from: LCH): HWB;
- hwb(...from: LCH): HWB;
- cmyk(from: LCH): CMYK;
- cmyk(...from: LCH): CMYK;
- xyz(from: LCH): XYZ;
- xyz(...from: LCH): XYZ;
- lab(from: LCH): LAB;
- lab(...from: LCH): LAB;
- hex(from: LCH): HEX;
- hex(...from: LCH): HEX;
- keyword(from: LCH): Keyword;
- keyword(...from: LCH): Keyword;
- ansi16(from: LCH): ANSI16;
- ansi16(...from: LCH): ANSI16;
- ansi256(from: LCH): ANSI256;
- ansi256(...from: LCH): ANSI256;
- hcg(from: LCH): HCG;
- hcg(...from: LCH): HCG;
- apple(from: LCH): Apple;
- apple(...from: LCH): Apple;
- gray(from: LCH): Gray;
- gray(...from: LCH): Gray;
- };
- type hex = {
- rgb(from: HEX): RGB;
- hsl(from: HEX): HSL;
- hsv(from: HEX): HSV;
- hwb(from: HEX): HWB;
- cmyk(from: HEX): CMYK;
- xyz(from: HEX): XYZ;
- lab(from: HEX): LAB;
- lch(from: HEX): LCH;
- keyword(from: HEX): Keyword;
- ansi16(from: HEX): ANSI16;
- ansi256(from: HEX): ANSI256;
- hcg(from: HEX): HCG;
- apple(from: HEX): Apple;
- gray(from: HEX): Gray;
- };
- type keyword = {
- rgb(from: Keyword): RGB;
- hsl(from: Keyword): HSL;
- hsv(from: Keyword): HSV;
- hwb(from: Keyword): HWB;
- cmyk(from: Keyword): CMYK;
- xyz(from: Keyword): XYZ;
- lab(from: Keyword): LAB;
- lch(from: Keyword): LCH;
- hex(from: Keyword): HEX;
- ansi16(from: Keyword): ANSI16;
- ansi256(from: Keyword): ANSI256;
- hcg(from: Keyword): HCG;
- apple(from: Keyword): Apple;
- gray(from: Keyword): Gray;
- };
- type ansi16 = {
- rgb(from: ANSI16): RGB;
- hsl(from: ANSI16): HSL;
- hsv(from: ANSI16): HSV;
- hwb(from: ANSI16): HWB;
- cmyk(from: ANSI16): CMYK;
- xyz(from: ANSI16): XYZ;
- lab(from: ANSI16): LAB;
- lch(from: ANSI16): LCH;
- hex(from: ANSI16): HEX;
- keyword(from: ANSI16): Keyword;
- ansi256(from: ANSI16): ANSI256;
- hcg(from: ANSI16): HCG;
- apple(from: ANSI16): Apple;
- gray(from: ANSI16): Gray;
- };
- type ansi256 = {
- rgb(from: ANSI256): RGB;
- hsl(from: ANSI256): HSL;
- hsv(from: ANSI256): HSV;
- hwb(from: ANSI256): HWB;
- cmyk(from: ANSI256): CMYK;
- xyz(from: ANSI256): XYZ;
- lab(from: ANSI256): LAB;
- lch(from: ANSI256): LCH;
- hex(from: ANSI256): HEX;
- keyword(from: ANSI256): Keyword;
- ansi16(from: ANSI256): ANSI16;
- hcg(from: ANSI256): HCG;
- apple(from: ANSI256): Apple;
- gray(from: ANSI256): Gray;
- };
- type hcg = {
- rgb(from: HCG): RGB;
- rgb(...from: HCG): RGB;
- hsl(from: HCG): HSL;
- hsl(...from: HCG): HSL;
- hsv(from: HCG): HSV;
- hsv(...from: HCG): HSV;
- hwb(from: HCG): HWB;
- hwb(...from: HCG): HWB;
- cmyk(from: HCG): CMYK;
- cmyk(...from: HCG): CMYK;
- xyz(from: HCG): XYZ;
- xyz(...from: HCG): XYZ;
- lab(from: HCG): LAB;
- lab(...from: HCG): LAB;
- lch(from: HCG): LCH;
- lch(...from: HCG): LCH;
- hex(from: HCG): HEX;
- hex(...from: HCG): HEX;
- keyword(from: HCG): Keyword;
- keyword(...from: HCG): Keyword;
- ansi16(from: HCG): ANSI16;
- ansi16(...from: HCG): ANSI16;
- ansi256(from: HCG): ANSI256;
- ansi256(...from: HCG): ANSI256;
- apple(from: HCG): Apple;
- apple(...from: HCG): Apple;
- gray(from: HCG): Gray;
- gray(...from: HCG): Gray;
- };
- type apple = {
- rgb(from: Apple): RGB;
- rgb(...from: Apple): RGB;
- hsl(from: Apple): HSL;
- hsl(...from: Apple): HSL;
- hsv(from: Apple): HSV;
- hsv(...from: Apple): HSV;
- hwb(from: Apple): HWB;
- hwb(...from: Apple): HWB;
- cmyk(from: Apple): CMYK;
- cmyk(...from: Apple): CMYK;
- xyz(from: Apple): XYZ;
- xyz(...from: Apple): XYZ;
- lab(from: Apple): LAB;
- lab(...from: Apple): LAB;
- lch(from: Apple): LCH;
- lch(...from: Apple): LCH;
- hex(from: Apple): HEX;
- hex(...from: Apple): HEX;
- keyword(from: Apple): Keyword;
- keyword(...from: Apple): Keyword;
- ansi16(from: Apple): ANSI16;
- ansi16(...from: Apple): ANSI16;
- ansi256(from: Apple): ANSI256;
- ansi256(...from: Apple): ANSI256;
- hcg(from: Apple): HCG;
- hcg(...from: Apple): HCG;
- gray(from: Apple): Gray;
- gray(...from: Apple): Gray;
- };
- type gray = {
- rgb(from: Gray): RGB;
- rgb(...from: Gray): RGB;
- hsl(from: Gray): HSL;
- hsl(...from: Gray): HSL;
- hsv(from: Gray): HSV;
- hsv(...from: Gray): HSV;
- hwb(from: Gray): HWB;
- hwb(...from: Gray): HWB;
- cmyk(from: Gray): CMYK;
- cmyk(...from: Gray): CMYK;
- xyz(from: Gray): XYZ;
- xyz(...from: Gray): XYZ;
- lab(from: Gray): LAB;
- lab(...from: Gray): LAB;
- lch(from: Gray): LCH;
- lch(...from: Gray): LCH;
- hex(from: Gray): HEX;
- hex(...from: Gray): HEX;
- keyword(from: Gray): Keyword;
- keyword(...from: Gray): Keyword;
- ansi16(from: Gray): ANSI16;
- ansi16(...from: Gray): ANSI16;
- ansi256(from: Gray): ANSI256;
- ansi256(...from: Gray): ANSI256;
- hcg(from: Gray): HCG;
- hcg(...from: Gray): HCG;
- apple(from: Gray): Apple;
- apple(...from: Gray): Apple;
- };
-}
-declare function route(fromModel: "rgb"): route.rgb;
-declare function route(fromModel: "hsl"): route.hsl;
-declare function route(fromModel: "hsv"): route.hsv;
-declare function route(fromModel: "hwb"): route.hwb;
-declare function route(fromModel: "cmyk"): route.cmyk;
-declare function route(fromModel: "xyz"): route.xyz;
-declare function route(fromModel: "lab"): route.lab;
-declare function route(fromModel: "lch"): route.lch;
-declare function route(fromModel: "hex"): route.hex;
-declare function route(fromModel: "keyword"): route.keyword;
-declare function route(fromModel: "ansi16"): route.ansi16;
-declare function route(fromModel: "ansi256"): route.ansi256;
-declare function route(fromModel: "hcg"): route.hcg;
-declare function route(fromModel: "apple"): route.apple;
-declare function route(fromModel: "gray"): route.gray;
-type Convert = {
- rgb: {
- channels: Channels;
- labels: "rgb";
- hsl: {
- (...rgb: RGB): HSL;
- raw: (...rgb: RGB) => HSL;
- };
- hsv: {
- (...rgb: RGB): HSV;
- raw: (...rgb: RGB) => HSV;
- };
- hwb: {
- (...rgb: RGB): HWB;
- raw: (...rgb: RGB) => HWB;
- };
- hcg: {
- (...rgb: RGB): HCG;
- raw: (...rgb: RGB) => HCG;
- };
- cmyk: {
- (...rgb: RGB): CMYK;
- raw: (...rgb: RGB) => CMYK;
- };
- keyword: {
- (...rgb: RGB): Keyword;
- raw: (...rgb: RGB) => Keyword;
- };
- ansi16: {
- (...rgb: RGB): ANSI16;
- raw: (...rgb: RGB) => ANSI16;
- };
- ansi256: {
- (...rgb: RGB): ANSI256;
- raw: (...rgb: RGB) => ANSI256;
- };
- apple: {
- (...rgb: RGB): Apple;
- raw: (...rgb: RGB) => Apple;
- };
- hex: {
- (...rgb: RGB): HEX;
- raw: (...rgb: RGB) => HEX;
- };
- gray: {
- (...rgb: RGB): Gray;
- raw: (...rgb: RGB) => Gray;
- };
- } & route.rgb & {
- [F in keyof route.rgb]: {
- raw: route.rgb[F];
- };
- };
- keyword: {
- channels: Channels;
- rgb: {
- (keyword: Keyword): RGB;
- raw: (keyword: Keyword) => RGB;
- };
- } & route.keyword & {
- [F in keyof route.keyword]: {
- raw: route.keyword[F];
- };
- };
- hsl: {
- channels: Channels;
- labels: "hsl";
- rgb: {
- (...hsl: HSL): RGB;
- raw: (...hsl: HSL) => RGB;
- };
- hsv: {
- (...hsl: HSL): HSV;
- raw: (...hsl: HSL) => HSV;
- };
- hcg: {
- (...hsl: HSL): HCG;
- raw: (...hsl: HSL) => HCG;
- };
- } & route.hsl & {
- [F in keyof route.hsl]: {
- raw: route.hsl[F];
- };
- };
- hsv: {
- channels: Channels;
- labels: "hsv";
- hcg: {
- (...hsv: HSV): HCG;
- raw: (...hsv: HSV) => HCG;
- };
- rgb: {
- (...hsv: HSV): RGB;
- raw: (...hsv: HSV) => RGB;
- };
- hsv: {
- (...hsv: HSV): HSV;
- raw: (...hsv: HSV) => HSV;
- };
- hsl: {
- (...hsv: HSV): HSL;
- raw: (...hsv: HSV) => HSL;
- };
- hwb: {
- (...hsv: HSV): HWB;
- raw: (...hsv: HSV) => HWB;
- };
- ansi16: {
- (...hsv: HSV): ANSI16;
- raw: (...hsv: HSV) => ANSI16;
- };
- } & route.hsv & {
- [F in keyof route.hsv]: {
- raw: route.hsv[F];
- };
- };
- hwb: {
- channels: Channels;
- labels: "hwb";
- hcg: {
- (...hwb: HWB): HCG;
- raw: (...hwb: HWB) => HCG;
- };
- rgb: {
- (...hwb: HWB): RGB;
- raw: (...hwb: HWB) => RGB;
- };
- } & route.hwb & {
- [F in keyof route.hwb]: {
- raw: route.hwb[F];
- };
- };
- cmyk: {
- channels: Channels;
- labels: "cmyk";
- rgb: {
- (...cmyk: CMYK): RGB;
- raw: (...cmyk: CMYK) => RGB;
- };
- } & route.cmyk & {
- [F in keyof route.cmyk]: {
- raw: route.cmyk[F];
- };
- };
- xyz: {
- channels: Channels;
- labels: "xyz";
- rgb: {
- (...xyz: XYZ): RGB;
- raw: (...xyz: XYZ) => RGB;
- };
- lab: {
- (...xyz: XYZ): LAB;
- raw: (...xyz: XYZ) => LAB;
- };
- } & route.xyz & {
- [F in keyof route.xyz]: {
- raw: route.xyz[F];
- };
- };
- lab: {
- channels: Channels;
- labels: "lab";
- xyz: {
- (...lab: LAB): XYZ;
- raw: (...lab: LAB) => XYZ;
- };
- lch: {
- (...lab: LAB): LCH;
- raw: (...lab: LAB) => LCH;
- };
- } & route.lab & {
- [F in keyof route.lab]: {
- raw: route.lab[F];
- };
- };
- lch: {
- channels: Channels;
- labels: "lch";
- lab: {
- (...lch: LCH): LAB;
- raw: (...lch: LCH) => LAB;
- };
- } & route.lch & {
- [F in keyof route.lch]: {
- raw: route.lch[F];
- };
- };
- hex: {
- channels: Channels;
- labels: [
- "hex"
- ];
- rgb: {
- (hex: HEX): RGB;
- raw: (hex: HEX) => RGB;
- };
- } & route.hex & {
- [F in keyof route.hex]: {
- raw: route.hex[F];
- };
- };
- ansi16: {
- channels: Channels;
- labels: [
- "ansi16"
- ];
- rgb: {
- (ansi16: ANSI16): RGB;
- raw: (ansi16: ANSI16) => RGB;
- };
- } & route.ansi16 & {
- [F in keyof route.ansi16]: {
- raw: route.ansi16[F];
- };
- };
- ansi256: {
- channels: Channels;
- labels: [
- "ansi256"
- ];
- rgb: {
- (ansi256: ANSI256): RGB;
- raw: (ansi256: ANSI256) => RGB;
- };
- } & route.ansi256 & {
- [F in keyof route.ansi256]: {
- raw: route.ansi256[F];
- };
- };
- hcg: {
- channels: Channels;
- labels: [
- "h",
- "c",
- "g"
- ];
- rgb: {
- (...hcg: HCG): RGB;
- raw: (...hcg: HCG) => RGB;
- };
- hsv: {
- (...hcg: HCG): HSV;
- raw: (...hcg: HCG) => HSV;
- };
- hwb: {
- (...hcg: HCG): HWB;
- raw: (...hcg: HCG) => HWB;
- };
- } & route.hcg & {
- [F in keyof route.hcg]: {
- raw: route.hcg[F];
- };
- };
- apple: {
- channels: Channels;
- labels: [
- "r16",
- "g16",
- "b16"
- ];
- rgb: {
- (...apple: Apple): RGB;
- raw: (...apple: Apple) => RGB;
- };
- } & route.apple & {
- [F in keyof route.apple]: {
- raw: route.apple[F];
- };
- };
- gray: {
- channels: Channels;
- labels: [
- "gray"
- ];
- rgb: {
- (...gray: Gray): RGB;
- raw: (...gray: Gray) => RGB;
- };
- hsl: {
- (...gray: Gray): HSL;
- raw: (...gray: Gray) => HSL;
- };
- hsv: {
- (...gray: Gray): HSV;
- raw: (...gray: Gray) => HSV;
- };
- hwb: {
- (...gray: Gray): HWB;
- raw: (...gray: Gray) => HWB;
- };
- cmyk: {
- (...gray: Gray): CMYK;
- raw: (...gray: Gray) => CMYK;
- };
- lab: {
- (...gray: Gray): LAB;
- raw: (...gray: Gray) => LAB;
- };
- hex: {
- (...gray: Gray): HEX;
- raw: (...gray: Gray) => HEX;
- };
- } & route.gray & {
- [F in keyof route.gray]: {
- raw: route.gray[F];
- };
- };
-};
-declare const convert: Convert;
-export type ColorLike = ColorInstance | string | ArrayLike | number | Record;
-export type ColorJson = {
- model: string;
- color: number[];
- valpha: number;
-};
-export type ColorObject = {
- alpha?: number | undefined;
-} & Record;
-// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
-export interface ColorInstance {
- toString(): string;
- // eslint-disable-next-line @typescript-eslint/naming-convention
- toJSON(): ColorJson;
- string(places?: number): string;
- percentString(places?: number): string;
- array(): number[];
- object(): ColorObject;
- unitArray(): number[];
- unitObject(): {
- r: number;
- g: number;
- b: number;
- alpha?: number | undefined;
- };
- round(places?: number): ColorInstance;
- alpha(): number;
- alpha(value: number): ColorInstance;
- red(): number;
- red(value: number): ColorInstance;
- green(): number;
- green(value: number): ColorInstance;
- blue(): number;
- blue(value: number): ColorInstance;
- hue(): number;
- hue(value: number): ColorInstance;
- saturationl(): number;
- saturationl(value: number): ColorInstance;
- lightness(): number;
- lightness(value: number): ColorInstance;
- saturationv(): number;
- saturationv(value: number): ColorInstance;
- value(): number;
- value(value: number): ColorInstance;
- chroma(): number;
- chroma(value: number): ColorInstance;
- gray(): number;
- gray(value: number): ColorInstance;
- white(): number;
- white(value: number): ColorInstance;
- wblack(): number;
- wblack(value: number): ColorInstance;
- cyan(): number;
- cyan(value: number): ColorInstance;
- magenta(): number;
- magenta(value: number): ColorInstance;
- yellow(): number;
- yellow(value: number): ColorInstance;
- black(): number;
- black(value: number): ColorInstance;
- x(): number;
- x(value: number): ColorInstance;
- y(): number;
- y(value: number): ColorInstance;
- z(): number;
- z(value: number): ColorInstance;
- l(): number;
- l(value: number): ColorInstance;
- a(): number;
- a(value: number): ColorInstance;
- b(): number;
- b(value: number): ColorInstance;
- keyword(): string;
- keyword(value: V): ColorInstance;
- hex(): string;
- hex(value: V): ColorInstance;
- hexa(): string;
- hexa(value: V): ColorInstance;
- rgbNumber(): number;
- luminosity(): number;
- contrast(color2: ColorInstance): number;
- level(color2: ColorInstance): "AAA" | "AA" | "";
- isDark(): boolean;
- isLight(): boolean;
- negate(): ColorInstance;
- lighten(ratio: number): ColorInstance;
- darken(ratio: number): ColorInstance;
- saturate(ratio: number): ColorInstance;
- desaturate(ratio: number): ColorInstance;
- whiten(ratio: number): ColorInstance;
- blacken(ratio: number): ColorInstance;
- grayscale(): ColorInstance;
- fade(ratio: number): ColorInstance;
- opaquer(ratio: number): ColorInstance;
- rotate(degrees: number): ColorInstance;
- mix(mixinColor: ColorInstance, weight?: number): ColorInstance;
- rgb(...arguments_: number[]): ColorInstance;
- hsl(...arguments_: number[]): ColorInstance;
- hsv(...arguments_: number[]): ColorInstance;
- hwb(...arguments_: number[]): ColorInstance;
- cmyk(...arguments_: number[]): ColorInstance;
- xyz(...arguments_: number[]): ColorInstance;
- lab(...arguments_: number[]): ColorInstance;
- lch(...arguments_: number[]): ColorInstance;
- ansi16(...arguments_: number[]): ColorInstance;
- ansi256(...arguments_: number[]): ColorInstance;
- hcg(...arguments_: number[]): ColorInstance;
- apple(...arguments_: number[]): ColorInstance;
-}
-export type ColorConstructor = {
- (object?: ColorLike, model?: keyof (typeof convert)): ColorInstance;
- new (object?: ColorLike, model?: keyof (typeof convert)): ColorInstance;
- rgb(...value: number[]): ColorInstance;
- rgb(color: ColorLike): ColorInstance;
- hsl(...value: number[]): ColorInstance;
- hsl(color: ColorLike): ColorInstance;
- hsv(...value: number[]): ColorInstance;
- hsv(color: ColorLike): ColorInstance;
- hwb(...value: number[]): ColorInstance;
- hwb(color: ColorLike): ColorInstance;
- cmyk(...value: number[]): ColorInstance;
- cmyk(color: ColorLike): ColorInstance;
- xyz(...value: number[]): ColorInstance;
- xyz(color: ColorLike): ColorInstance;
- lab(...value: number[]): ColorInstance;
- lab(color: ColorLike): ColorInstance;
- lch(...value: number[]): ColorInstance;
- lch(color: ColorLike): ColorInstance;
- ansi16(...value: number[]): ColorInstance;
- ansi16(color: ColorLike): ColorInstance;
- ansi256(...value: number[]): ColorInstance;
- ansi256(color: ColorLike): ColorInstance;
- hcg(...value: number[]): ColorInstance;
- hcg(color: ColorLike): ColorInstance;
- apple(...value: number[]): ColorInstance;
- apple(color: ColorLike): ColorInstance;
-};
-// eslint-disable-next-line @typescript-eslint/naming-convention
-declare const Color: ColorConstructor;
-
-export {
- Color as default,
-};
-
-export {};
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/colour/package.json b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/colour/package.json
deleted file mode 100644
index 38887d1b..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/colour/package.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "name": "@img/colour",
- "version": "1.1.0",
- "description": "The ESM-only 'color' package made compatible for use with CommonJS runtimes",
- "license": "MIT",
- "main": "index.cjs",
- "types": "index.d.ts",
- "exports": {
- ".": {
- "types": "./index.d.ts",
- "require": "./index.cjs",
- "default": "./index.cjs"
- },
- "./package.json": "./package.json"
- },
- "authors": [
- "Heather Arthur ",
- "Josh Junon ",
- "Maxime Thirouin",
- "Dyma Ywanov ",
- "LitoMore (https://github.com/LitoMore)"
- ],
- "engines": {
- "node": ">=18"
- },
- "files": [
- "color.cjs",
- "index.d.ts"
- ],
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/lovell/colour.git"
- },
- "type": "commonjs",
- "keywords": [
- "color",
- "colour",
- "cjs",
- "commonjs"
- ],
- "scripts": {
- "build:cjs": "esbuild node_modules/color/index.js --bundle --platform=node --outfile=color.cjs",
- "build:dts": "dts-bundle-generator ./dts-src.ts -o index.d.ts --project tsconfig.build.json --external-inlines color --external-inlines color-convert --export-referenced-types=false",
- "build": "npm run build:cjs && npm run build:dts",
- "test": "node --test"
- },
- "devDependencies": {
- "color": "5.0.3",
- "color-convert": "3.1.3",
- "color-name": "2.1.0",
- "color-string": "2.1.4",
- "dts-bundle-generator": "^9.5.1",
- "esbuild": "^0.27.3"
- }
-}
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-darwin-arm64/LICENSE b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-darwin-arm64/LICENSE
deleted file mode 100644
index 37ec93a1..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-darwin-arm64/LICENSE
+++ /dev/null
@@ -1,191 +0,0 @@
-Apache License
-Version 2.0, January 2004
-http://www.apache.org/licenses/
-
-TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-1. Definitions.
-
-"License" shall mean the terms and conditions for use, reproduction, and
-distribution as defined by Sections 1 through 9 of this document.
-
-"Licensor" shall mean the copyright owner or entity authorized by the copyright
-owner that is granting the License.
-
-"Legal Entity" shall mean the union of the acting entity and all other entities
-that control, are controlled by, or are under common control with that entity.
-For the purposes of this definition, "control" means (i) the power, direct or
-indirect, to cause the direction or management of such entity, whether by
-contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
-outstanding shares, or (iii) beneficial ownership of such entity.
-
-"You" (or "Your") shall mean an individual or Legal Entity exercising
-permissions granted by this License.
-
-"Source" form shall mean the preferred form for making modifications, including
-but not limited to software source code, documentation source, and configuration
-files.
-
-"Object" form shall mean any form resulting from mechanical transformation or
-translation of a Source form, including but not limited to compiled object code,
-generated documentation, and conversions to other media types.
-
-"Work" shall mean the work of authorship, whether in Source or Object form, made
-available under the License, as indicated by a copyright notice that is included
-in or attached to the work (an example is provided in the Appendix below).
-
-"Derivative Works" shall mean any work, whether in Source or Object form, that
-is based on (or derived from) the Work and for which the editorial revisions,
-annotations, elaborations, or other modifications represent, as a whole, an
-original work of authorship. For the purposes of this License, Derivative Works
-shall not include works that remain separable from, or merely link (or bind by
-name) to the interfaces of, the Work and Derivative Works thereof.
-
-"Contribution" shall mean any work of authorship, including the original version
-of the Work and any modifications or additions to that Work or Derivative Works
-thereof, that is intentionally submitted to Licensor for inclusion in the Work
-by the copyright owner or by an individual or Legal Entity authorized to submit
-on behalf of the copyright owner. For the purposes of this definition,
-"submitted" means any form of electronic, verbal, or written communication sent
-to the Licensor or its representatives, including but not limited to
-communication on electronic mailing lists, source code control systems, and
-issue tracking systems that are managed by, or on behalf of, the Licensor for
-the purpose of discussing and improving the Work, but excluding communication
-that is conspicuously marked or otherwise designated in writing by the copyright
-owner as "Not a Contribution."
-
-"Contributor" shall mean Licensor and any individual or Legal Entity on behalf
-of whom a Contribution has been received by Licensor and subsequently
-incorporated within the Work.
-
-2. Grant of Copyright License.
-
-Subject to the terms and conditions of this License, each Contributor hereby
-grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
-irrevocable copyright license to reproduce, prepare Derivative Works of,
-publicly display, publicly perform, sublicense, and distribute the Work and such
-Derivative Works in Source or Object form.
-
-3. Grant of Patent License.
-
-Subject to the terms and conditions of this License, each Contributor hereby
-grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
-irrevocable (except as stated in this section) patent license to make, have
-made, use, offer to sell, sell, import, and otherwise transfer the Work, where
-such license applies only to those patent claims licensable by such Contributor
-that are necessarily infringed by their Contribution(s) alone or by combination
-of their Contribution(s) with the Work to which such Contribution(s) was
-submitted. If You institute patent litigation against any entity (including a
-cross-claim or counterclaim in a lawsuit) alleging that the Work or a
-Contribution incorporated within the Work constitutes direct or contributory
-patent infringement, then any patent licenses granted to You under this License
-for that Work shall terminate as of the date such litigation is filed.
-
-4. Redistribution.
-
-You may reproduce and distribute copies of the Work or Derivative Works thereof
-in any medium, with or without modifications, and in Source or Object form,
-provided that You meet the following conditions:
-
-You must give any other recipients of the Work or Derivative Works a copy of
-this License; and
-You must cause any modified files to carry prominent notices stating that You
-changed the files; and
-You must retain, in the Source form of any Derivative Works that You distribute,
-all copyright, patent, trademark, and attribution notices from the Source form
-of the Work, excluding those notices that do not pertain to any part of the
-Derivative Works; and
-If the Work includes a "NOTICE" text file as part of its distribution, then any
-Derivative Works that You distribute must include a readable copy of the
-attribution notices contained within such NOTICE file, excluding those notices
-that do not pertain to any part of the Derivative Works, in at least one of the
-following places: within a NOTICE text file distributed as part of the
-Derivative Works; within the Source form or documentation, if provided along
-with the Derivative Works; or, within a display generated by the Derivative
-Works, if and wherever such third-party notices normally appear. The contents of
-the NOTICE file are for informational purposes only and do not modify the
-License. You may add Your own attribution notices within Derivative Works that
-You distribute, alongside or as an addendum to the NOTICE text from the Work,
-provided that such additional attribution notices cannot be construed as
-modifying the License.
-You may add Your own copyright statement to Your modifications and may provide
-additional or different license terms and conditions for use, reproduction, or
-distribution of Your modifications, or for any such Derivative Works as a whole,
-provided Your use, reproduction, and distribution of the Work otherwise complies
-with the conditions stated in this License.
-
-5. Submission of Contributions.
-
-Unless You explicitly state otherwise, any Contribution intentionally submitted
-for inclusion in the Work by You to the Licensor shall be under the terms and
-conditions of this License, without any additional terms or conditions.
-Notwithstanding the above, nothing herein shall supersede or modify the terms of
-any separate license agreement you may have executed with Licensor regarding
-such Contributions.
-
-6. Trademarks.
-
-This License does not grant permission to use the trade names, trademarks,
-service marks, or product names of the Licensor, except as required for
-reasonable and customary use in describing the origin of the Work and
-reproducing the content of the NOTICE file.
-
-7. Disclaimer of Warranty.
-
-Unless required by applicable law or agreed to in writing, Licensor provides the
-Work (and each Contributor provides its Contributions) on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,
-including, without limitation, any warranties or conditions of TITLE,
-NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are
-solely responsible for determining the appropriateness of using or
-redistributing the Work and assume any risks associated with Your exercise of
-permissions under this License.
-
-8. Limitation of Liability.
-
-In no event and under no legal theory, whether in tort (including negligence),
-contract, or otherwise, unless required by applicable law (such as deliberate
-and grossly negligent acts) or agreed to in writing, shall any Contributor be
-liable to You for damages, including any direct, indirect, special, incidental,
-or consequential damages of any character arising as a result of this License or
-out of the use or inability to use the Work (including but not limited to
-damages for loss of goodwill, work stoppage, computer failure or malfunction, or
-any and all other commercial damages or losses), even if such Contributor has
-been advised of the possibility of such damages.
-
-9. Accepting Warranty or Additional Liability.
-
-While redistributing the Work or Derivative Works thereof, You may choose to
-offer, and charge a fee for, acceptance of support, warranty, indemnity, or
-other liability obligations and/or rights consistent with this License. However,
-in accepting such obligations, You may act only on Your own behalf and on Your
-sole responsibility, not on behalf of any other Contributor, and only if You
-agree to indemnify, defend, and hold each Contributor harmless for any liability
-incurred by, or claims asserted against, such Contributor by reason of your
-accepting any such warranty or additional liability.
-
-END OF TERMS AND CONDITIONS
-
-APPENDIX: How to apply the Apache License to your work
-
-To apply the Apache License to your work, attach the following boilerplate
-notice, with the fields enclosed by brackets "[]" replaced with your own
-identifying information. (Don't include the brackets!) The text should be
-enclosed in the appropriate comment syntax for the file format. We also
-recommend that a file or class name and description of purpose be included on
-the same "printed page" as the copyright notice for easier identification within
-third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-darwin-arm64/README.md b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-darwin-arm64/README.md
deleted file mode 100644
index 8220bf77..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-darwin-arm64/README.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# `@img/sharp-darwin-arm64`
-
-Prebuilt sharp for use with macOS 64-bit ARM.
-
-## Licensing
-
-Copyright 2013 Lovell Fuller and others.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-[https://www.apache.org/licenses/LICENSE-2.0](https://www.apache.org/licenses/LICENSE-2.0)
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node
deleted file mode 100644
index 9cb0adad..00000000
Binary files a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node and /dev/null differ
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-darwin-arm64/package.json b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-darwin-arm64/package.json
deleted file mode 100644
index df6b34a9..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-darwin-arm64/package.json
+++ /dev/null
@@ -1,40 +0,0 @@
-{
- "name": "@img/sharp-darwin-arm64",
- "version": "0.34.5",
- "description": "Prebuilt sharp for use with macOS 64-bit ARM",
- "author": "Lovell Fuller ",
- "homepage": "https://sharp.pixelplumbing.com",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/lovell/sharp.git",
- "directory": "npm/darwin-arm64"
- },
- "license": "Apache-2.0",
- "funding": {
- "url": "https://opencollective.com/libvips"
- },
- "preferUnplugged": true,
- "optionalDependencies": {
- "@img/sharp-libvips-darwin-arm64": "1.2.4"
- },
- "files": [
- "lib"
- ],
- "publishConfig": {
- "access": "public"
- },
- "type": "commonjs",
- "exports": {
- "./sharp.node": "./lib/sharp-darwin-arm64.node",
- "./package": "./package.json"
- },
- "engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "os": [
- "darwin"
- ],
- "cpu": [
- "arm64"
- ]
-}
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-libvips-darwin-arm64/README.md b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-libvips-darwin-arm64/README.md
deleted file mode 100644
index 7516f72d..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-libvips-darwin-arm64/README.md
+++ /dev/null
@@ -1,46 +0,0 @@
-# `@img/sharp-libvips-darwin-arm64`
-
-Prebuilt libvips and dependencies for use with sharp on macOS 64-bit ARM.
-
-## Licensing
-
-This software contains third-party libraries
-used under the terms of the following licences:
-
-| Library | Used under the terms of |
-|---------------|-----------------------------------------------------------------------------------------------------------|
-| aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) |
-| cairo | Mozilla Public License 2.0 |
-| cgif | MIT Licence |
-| expat | MIT Licence |
-| fontconfig | [fontconfig Licence](https://gitlab.freedesktop.org/fontconfig/fontconfig/blob/main/COPYING) (BSD-like) |
-| freetype | [freetype Licence](https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/FTL.TXT) (BSD-like) |
-| fribidi | LGPLv3 |
-| glib | LGPLv3 |
-| harfbuzz | MIT Licence |
-| highway | Apache-2.0 License, BSD 3-Clause |
-| lcms | MIT Licence |
-| libarchive | BSD 2-Clause |
-| libexif | LGPLv3 |
-| libffi | MIT Licence |
-| libheif | LGPLv3 |
-| libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) |
-| libnsgif | MIT Licence |
-| libpng | [libpng License](https://github.com/pnggroup/libpng/blob/master/LICENSE) |
-| librsvg | LGPLv3 |
-| libspng | [BSD 2-Clause, libpng License](https://github.com/randy408/libspng/blob/master/LICENSE) |
-| libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) |
-| libvips | LGPLv3 |
-| libwebp | New BSD License |
-| libxml2 | MIT Licence |
-| mozjpeg | [zlib License, IJG License, BSD-3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) |
-| pango | LGPLv3 |
-| pixman | MIT Licence |
-| proxy-libintl | LGPLv3 |
-| zlib-ng | [zlib Licence](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) |
-
-Use of libraries under the terms of the LGPLv3 is via the
-"any later version" clause of the LGPLv2 or LGPLv2.1.
-
-Please report any errors or omissions via
-https://github.com/lovell/sharp-libvips/issues/new
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-libvips-darwin-arm64/lib/glib-2.0/include/glibconfig.h b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-libvips-darwin-arm64/lib/glib-2.0/include/glibconfig.h
deleted file mode 100644
index d43d3211..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-libvips-darwin-arm64/lib/glib-2.0/include/glibconfig.h
+++ /dev/null
@@ -1,220 +0,0 @@
-/* glibconfig.h
- *
- * This is a generated file. Please modify 'glibconfig.h.in'
- */
-
-#ifndef __GLIBCONFIG_H__
-#define __GLIBCONFIG_H__
-
-#include
-
-#include
-#include
-#define GLIB_HAVE_ALLOCA_H
-
-#define GLIB_STATIC_COMPILATION 1
-#define GOBJECT_STATIC_COMPILATION 1
-#define GIO_STATIC_COMPILATION 1
-#define GMODULE_STATIC_COMPILATION 1
-#define GI_STATIC_COMPILATION 1
-#define G_INTL_STATIC_COMPILATION 1
-#define FFI_STATIC_BUILD 1
-
-/* Specifies that GLib's g_print*() functions wrap the
- * system printf functions. This is useful to know, for example,
- * when using glibc's register_printf_function().
- */
-#define GLIB_USING_SYSTEM_PRINTF
-
-G_BEGIN_DECLS
-
-#define G_MINFLOAT FLT_MIN
-#define G_MAXFLOAT FLT_MAX
-#define G_MINDOUBLE DBL_MIN
-#define G_MAXDOUBLE DBL_MAX
-#define G_MINSHORT SHRT_MIN
-#define G_MAXSHORT SHRT_MAX
-#define G_MAXUSHORT USHRT_MAX
-#define G_MININT INT_MIN
-#define G_MAXINT INT_MAX
-#define G_MAXUINT UINT_MAX
-#define G_MINLONG LONG_MIN
-#define G_MAXLONG LONG_MAX
-#define G_MAXULONG ULONG_MAX
-
-typedef signed char gint8;
-typedef unsigned char guint8;
-
-typedef signed short gint16;
-typedef unsigned short guint16;
-
-#define G_GINT16_MODIFIER "h"
-#define G_GINT16_FORMAT "hi"
-#define G_GUINT16_FORMAT "hu"
-
-
-typedef signed int gint32;
-typedef unsigned int guint32;
-
-#define G_GINT32_MODIFIER ""
-#define G_GINT32_FORMAT "i"
-#define G_GUINT32_FORMAT "u"
-
-
-#define G_HAVE_GINT64 1 /* deprecated, always true */
-
-G_GNUC_EXTENSION typedef signed long long gint64;
-G_GNUC_EXTENSION typedef unsigned long long guint64;
-
-#define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL))
-#define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL))
-
-#define G_GINT64_MODIFIER "ll"
-#define G_GINT64_FORMAT "lli"
-#define G_GUINT64_FORMAT "llu"
-
-
-#define GLIB_SIZEOF_VOID_P 8
-#define GLIB_SIZEOF_LONG 8
-#define GLIB_SIZEOF_SIZE_T 8
-#define GLIB_SIZEOF_SSIZE_T 8
-
-typedef signed long gssize;
-typedef unsigned long gsize;
-#define G_GSIZE_MODIFIER "l"
-#define G_GSSIZE_MODIFIER "l"
-#define G_GSIZE_FORMAT "lu"
-#define G_GSSIZE_FORMAT "li"
-
-#define G_MAXSIZE G_MAXULONG
-#define G_MINSSIZE G_MINLONG
-#define G_MAXSSIZE G_MAXLONG
-
-typedef gint64 goffset;
-#define G_MINOFFSET G_MININT64
-#define G_MAXOFFSET G_MAXINT64
-
-#define G_GOFFSET_MODIFIER G_GINT64_MODIFIER
-#define G_GOFFSET_FORMAT G_GINT64_FORMAT
-#define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val)
-
-#define G_POLLFD_FORMAT "%d"
-
-#define GPOINTER_TO_INT(p) ((gint) (glong) (p))
-#define GPOINTER_TO_UINT(p) ((guint) (gulong) (p))
-
-#define GINT_TO_POINTER(i) ((gpointer) (glong) (i))
-#define GUINT_TO_POINTER(u) ((gpointer) (gulong) (u))
-
-typedef signed long gintptr;
-typedef unsigned long guintptr;
-
-#define G_GINTPTR_MODIFIER "l"
-#define G_GINTPTR_FORMAT "li"
-#define G_GUINTPTR_FORMAT "lu"
-
-#define GLIB_MAJOR_VERSION 2
-#define GLIB_MINOR_VERSION 86
-#define GLIB_MICRO_VERSION 1
-
-#define G_OS_UNIX
-
-#define G_VA_COPY va_copy
-
-
-#define G_HAVE_ISO_VARARGS 1
-
-/* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
- * is passed ISO vararg support is turned off, and there is no work
- * around to turn it on, so we unconditionally turn it off.
- */
-#if __GNUC__ == 2 && __GNUC_MINOR__ == 95
-# undef G_HAVE_ISO_VARARGS
-#endif
-
-#define G_HAVE_GROWING_STACK 0
-
-#ifndef _MSC_VER
-# define G_HAVE_GNUC_VARARGS 1
-#endif
-
-#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
-#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
-#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
-#define G_GNUC_INTERNAL __hidden
-#elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY)
-#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
-#else
-#define G_GNUC_INTERNAL
-#endif
-
-#define G_THREADS_ENABLED
-#define G_THREADS_IMPL_POSIX
-
-#define G_ATOMIC_LOCK_FREE
-
-#define GINT16_TO_LE(val) ((gint16) (val))
-#define GUINT16_TO_LE(val) ((guint16) (val))
-#define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
-#define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
-
-#define GINT32_TO_LE(val) ((gint32) (val))
-#define GUINT32_TO_LE(val) ((guint32) (val))
-#define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
-#define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
-
-#define GINT64_TO_LE(val) ((gint64) (val))
-#define GUINT64_TO_LE(val) ((guint64) (val))
-#define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
-#define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
-
-#define GLONG_TO_LE(val) ((glong) GINT64_TO_LE (val))
-#define GULONG_TO_LE(val) ((gulong) GUINT64_TO_LE (val))
-#define GLONG_TO_BE(val) ((glong) GINT64_TO_BE (val))
-#define GULONG_TO_BE(val) ((gulong) GUINT64_TO_BE (val))
-#define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
-#define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
-#define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
-#define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
-#define GSIZE_TO_LE(val) ((gsize) GUINT64_TO_LE (val))
-#define GSSIZE_TO_LE(val) ((gssize) GINT64_TO_LE (val))
-#define GSIZE_TO_BE(val) ((gsize) GUINT64_TO_BE (val))
-#define GSSIZE_TO_BE(val) ((gssize) GINT64_TO_BE (val))
-#define G_BYTE_ORDER G_LITTLE_ENDIAN
-
-#define GLIB_SYSDEF_POLLIN =1
-#define GLIB_SYSDEF_POLLOUT =4
-#define GLIB_SYSDEF_POLLPRI =2
-#define GLIB_SYSDEF_POLLHUP =16
-#define GLIB_SYSDEF_POLLERR =8
-#define GLIB_SYSDEF_POLLNVAL =32
-
-/* No way to disable deprecation warnings for macros, so only emit deprecation
- * warnings on platforms where usage of this macro is broken */
-#if defined(__APPLE__) || defined(_MSC_VER) || defined(__CYGWIN__)
-#define G_MODULE_SUFFIX "so" GLIB_DEPRECATED_MACRO_IN_2_76
-#else
-#define G_MODULE_SUFFIX "so"
-#endif
-
-typedef int GPid;
-#define G_PID_FORMAT "i"
-
-#define GLIB_SYSDEF_AF_UNIX 1
-#define GLIB_SYSDEF_AF_INET 2
-#define GLIB_SYSDEF_AF_INET6 30
-
-#define GLIB_SYSDEF_MSG_OOB 1
-#define GLIB_SYSDEF_MSG_PEEK 2
-#define GLIB_SYSDEF_MSG_DONTROUTE 4
-
-#define G_DIR_SEPARATOR '/'
-#define G_DIR_SEPARATOR_S "/"
-#define G_SEARCHPATH_SEPARATOR ':'
-#define G_SEARCHPATH_SEPARATOR_S ":"
-
-#undef G_HAVE_FREE_SIZED
-
-G_END_DECLS
-
-#endif /* __GLIBCONFIG_H__ */
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-libvips-darwin-arm64/lib/index.js b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-libvips-darwin-arm64/lib/index.js
deleted file mode 100644
index 5092b4dd..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-libvips-darwin-arm64/lib/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = __dirname;
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib
deleted file mode 100644
index 377e5f87..00000000
Binary files a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib and /dev/null differ
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-libvips-darwin-arm64/package.json b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-libvips-darwin-arm64/package.json
deleted file mode 100644
index 7b3a933d..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-libvips-darwin-arm64/package.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "name": "@img/sharp-libvips-darwin-arm64",
- "version": "1.2.4",
- "description": "Prebuilt libvips and dependencies for use with sharp on macOS 64-bit ARM",
- "author": "Lovell Fuller ",
- "homepage": "https://sharp.pixelplumbing.com",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/lovell/sharp-libvips.git",
- "directory": "npm/darwin-arm64"
- },
- "license": "LGPL-3.0-or-later",
- "funding": {
- "url": "https://opencollective.com/libvips"
- },
- "preferUnplugged": true,
- "publishConfig": {
- "access": "public"
- },
- "files": [
- "lib",
- "versions.json"
- ],
- "type": "commonjs",
- "exports": {
- "./lib": "./lib/index.js",
- "./package": "./package.json",
- "./versions": "./versions.json"
- },
- "os": [
- "darwin"
- ],
- "cpu": [
- "arm64"
- ]
-}
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-libvips-darwin-arm64/versions.json b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-libvips-darwin-arm64/versions.json
deleted file mode 100644
index fec67b15..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@img/sharp-libvips-darwin-arm64/versions.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "aom": "3.13.1",
- "archive": "3.8.2",
- "cairo": "1.18.4",
- "cgif": "0.5.0",
- "exif": "0.6.25",
- "expat": "2.7.3",
- "ffi": "3.5.2",
- "fontconfig": "2.17.1",
- "freetype": "2.14.1",
- "fribidi": "1.0.16",
- "glib": "2.86.1",
- "harfbuzz": "12.1.0",
- "heif": "1.20.2",
- "highway": "1.3.0",
- "imagequant": "2.4.1",
- "lcms": "2.17",
- "mozjpeg": "0826579",
- "pango": "1.57.0",
- "pixman": "0.46.4",
- "png": "1.6.50",
- "proxy-libintl": "0.5",
- "rsvg": "2.61.2",
- "spng": "0.7.4",
- "tiff": "4.7.1",
- "vips": "8.17.3",
- "webp": "1.6.0",
- "xml2": "2.15.1",
- "zlib-ng": "2.2.5"
-}
\ No newline at end of file
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@keyv/bigmap/LICENSE b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@keyv/bigmap/LICENSE
deleted file mode 100644
index 528d47bb..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@keyv/bigmap/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) Jared Wray
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@keyv/bigmap/README.md b/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@keyv/bigmap/README.md
deleted file mode 100644
index d47dbf02..00000000
--- a/src/openjarvis/channels/whatsapp_baileys_bridge/node_modules/@keyv/bigmap/README.md
+++ /dev/null
@@ -1,624 +0,0 @@
-# @keyv/bigmap [
](https://github.com/jaredwra/keyv)
-
-> Bigmap for Keyv
-
-[](https://github.com/jaredwray/keyv/actions/workflows/tests.yaml)
-[](https://codecov.io/gh/jaredwray/keyv)
-[](https://www.npmjs.com/package/@keyv/bigmap)
-[](https://npmjs.com/package/@keyv/bigmap)
-
-# Features
-* Based on the Map interface and uses the same API.
-* Lightweight with no dependencies.
-* Scales to past the 17 million key limit of a regular Map.
-* Uses a hash `djb2Hash` for fast key lookups.
-* Ability to use your own hash function.
-* Built in Typescript and Generics for type safety.
-* Used in `@cacheable/memory` for scalable in-memory caching.
-* Maintained regularly with a focus on performance and reliability.
-
-# Table of Contents
-- [Features](#features)
-- [Installation](#installation)
-- [Overview](#overview)
-- [Basic Usage](#basic-usage)
-- [Custom Store Size](#custom-store-size)
-- [Custom Hash Function](#custom-hash-function)
-- [Iteration](#iteration)
- - [For...of Loop](#forof-loop)
- - [forEach](#foreach)
- - [Keys, Values, and Entries](#keys-values-and-entries)
-- [Advanced Features](#advanced-features)
- - [Type Safety with Generics](#type-safety-with-generics)
- - [Large-Scale Data](#large-scale-data)
-- [Using with Keyv](#using-with-keyv)
- - [createKeyv](#createkeyv)
- - [With Custom Options](#with-custom-options)
- - [Type Safety](#type-safety)
-- [Integration with Keyv Ecosystem](#integration-with-keyv-ecosystem)
-- [API](#api)
- - [Constructor](#constructor)
- - [Properties](#properties)
- - [Methods](#methods)
- - [set](#set)
- - [get](#get)
- - [has](#has)
- - [delete](#delete)
- - [clear](#clear)
- - [forEach](#foreach)
- - [keys](#keys)
- - [values](#values)
- - [entries](#entries)
- - [Symbol.iterator](#symboliterator)
- - [getStore](#getstorekey)
- - [getStoreMap](#getstoremapindex)
- - [initStore](#initstore)
-- [Types](#types)
-- [StoreHashFunction](#storehashfunction)
-- [defaultHashFunction(key, storeSize)](#defaulthashfunctionkey-storesize)
-- [Contributing](#contributing)
-- [License](#license)
-
-# Installation
-
-```bash
-npm install --save keyv @keyv/bigmap
-```
-
-# Overview
-
-BigMap is a scalable Map implementation that overcomes JavaScript's built-in Map limit of approximately 17 million entries. It uses a distributed hash approach with multiple internal Map instances.
-
-# Basic Usage
-
-```typescript
-import { BigMap } from '@keyv/bigmap';
-
-// Create a new BigMap
-const bigMap = new BigMap();
-
-// Set values
-bigMap.set('key1', 100);
-bigMap.set('key2', 200);
-
-// Get values
-const value = bigMap.get('key1'); // 100
-
-// Check if key exists
-bigMap.has('key1'); // true
-
-// Delete a key
-bigMap.delete('key1'); // true
-
-// Get size
-console.log(bigMap.size); // 1
-
-// Clear all entries
-bigMap.clear();
-```
-
-# Custom Store Size
-
-By default, BigMap uses 4 internal Map instances. You can configure this:
-
-```typescript
-const bigMap = new BigMap({ storeSize: 10 });
-```
-
-**Note:** Changing the `storeSize` after initialization will clear all entries.
-
-# Custom Hash Function
-
-Provide your own hash function for key distribution:
-
-```typescript
-const customHashFunction = (key: string, storeSize: number) => {
- return key.length % storeSize;
-};
-
-const bigMap = new BigMap({
- storeHashFunction: customHashFunction
-});
-```
-
-## Using Hashery for Hash Functions
-
-[Hashery](https://github.com/jaredwray/hashery) is a powerful hashing library that provides multiple hash algorithms. You can use it for better key distribution and it is available as an export:
-
-```typescript
-import { BigMap, Hashery } from '@keyv/bigmap';
-
-const hashery = new Hashery();
-
-// Using Hashery's toNumberSync for deterministic key distribution
-const bigMap = new BigMap({
- storeHashFunction: (key: string, storeSize: number) => {
- return hashery.toNumberSync(key, { min: 0, max: storeSize - 1 });
- }
-});
-
-// You can also use different algorithms
-const hasheryFnv1 = new Hashery({ defaultAlgorithmSync: 'fnv1' });
-
-const bigMapWithFnv1 = new BigMap({
- storeHashFunction: (key: string, storeSize: number) => {
- return hasheryFnv1.toNumberSync(key, { min: 0, max: storeSize - 1 });
- }
-});
-```
-
-Hashery supports multiple synchronous hash algorithms:
-- **djb2** - Fast hash function (default)
-- **fnv1** - Excellent distribution for hash tables
-- **murmer** - MurmurHash algorithm
-- **crc32** - Cyclic Redundancy Check
-
-# Iteration
-
-BigMap supports all standard Map iteration methods:
-
-## For...of Loop
-
-```typescript
-const bigMap = new BigMap();
-bigMap.set('a', 1);
-bigMap.set('b', 2);
-
-for (const [key, value] of bigMap) {
- console.log(key, value);
-}
-```
-
-## forEach
-
-```typescript
-bigMap.forEach((value, key) => {
- console.log(key, value);
-});
-
-// With custom context
-const context = { sum: 0 };
-bigMap.forEach(function(value) {
- this.sum += value;
-}, context);
-```
-
-## Keys, Values, and Entries
-
-```typescript
-// Iterate over keys
-for (const key of bigMap.keys()) {
- console.log(key);
-}
-
-// Iterate over values
-for (const value of bigMap.values()) {
- console.log(value);
-}
-
-// Iterate over entries
-for (const [key, value] of bigMap.entries()) {
- console.log(key, value);
-}
-```
-
-# Advanced Features
-
-## Type Safety with Generics
-
-```typescript
-interface User {
- id: number;
- name: string;
-}
-
-const userMap = new BigMap();
-userMap.set('user1', { id: 1, name: 'Alice' });
-```
-
-## Large-Scale Data
-
-BigMap is designed to handle millions of entries:
-
-```typescript
-const bigMap = new BigMap({ storeSize: 16 });
-
-// Add 20+ million entries without hitting Map limits
-for (let i = 0; i < 20000000; i++) {
- bigMap.set(`key${i}`, i);
-}
-
-console.log(bigMap.size); // 20000000
-```
-
-# Using with Keyv
-
-BigMap can be used as a storage adapter for [Keyv](https://github.com/jaredwray/keyv), providing a scalable in-memory store with TTL support.
-
-## createKeyv
-
-The `createKeyv` function creates a Keyv instance with BigMap as the storage adapter.
-
-**Parameters:**
-- `options` (optional): BigMap configuration options
- - `storeSize` (number): Number of internal Map instances. Default: `4`
- - `storeHashFunction` (StoreHashFunction): Custom hash function for key distribution
-
-**Returns:** `Keyv` instance with BigMap adapter
-
-**Example:**
-
-```typescript
-import { createKeyv } from '@keyv/bigmap';
-
-// Basic usage
-const keyv = createKeyv();
-
-// Set with TTL (in milliseconds)
-await keyv.set('user:123', { name: 'Alice', age: 30 }, 60000); // Expires in 60 seconds
-
-// Get value
-const user = await keyv.get('user:123');
-console.log(user); // { name: 'Alice', age: 30 }
-
-// Check if key exists
-const exists = await keyv.has('user:123');
-
-// Delete key
-await keyv.delete('user:123');
-
-// Clear all keys
-await keyv.clear();
-```
-
-## With Custom Options
-
-```typescript
-import { createKeyv } from '@keyv/bigmap';
-
-// Create with custom store size for better performance with millions of keys
-const keyv = createKeyv({ storeSize: 16 });
-
-// With custom hash function
-const keyv = createKeyv({
- storeSize: 8,
- storeHashFunction: (key, storeSize) => {
- // Custom distribution logic
- return key.length % storeSize;
- }
-});
-```
-
-## Type Safety
-
-```typescript
-import { createKeyv } from '@keyv/bigmap';
-
-interface Product {
- id: string;
- name: string;
- price: number;
-}
-
-const keyv = createKeyv();
-
-await keyv.set('product:1', {
- id: '1',
- name: 'Laptop',
- price: 999
-});
-
-const product = await keyv.get('product:1');
-```
-
-# Integration with Keyv Ecosystem
-
-BigMap works seamlessly with the Keyv ecosystem:
-
-```typescript
-import { createKeyv } from '@keyv/bigmap';
-
-const cache = createKeyv({ storeSize: 16 });
-
-// Use with namespaces
-const users = cache.namespace('users');
-const products = cache.namespace('products');
-
-await users.set('123', { name: 'Alice' });
-await products.set('456', { name: 'Laptop' });
-
-// Iterate over keys
-for await (const [key, value] of cache.iterator()) {
- console.log(key, value);
-}
-```
-
-# API
-
-## Constructor
-
-`new BigMap(options?)`
-
-Creates a new BigMap instance.
-
-**Parameters:**
-- `options` (optional): Configuration options
- - `storeSize` (number): Number of internal Map instances to use. Default: `4`. Must be at least 1.
- - `storeHashFunction` (StoreHashFunction): Custom hash function for key distribution. Default: `defaultHashFunction`
-
-**Example:**
-```typescript
-const bigMap = new BigMap();
-const customBigMap = new BigMap({
- storeSize: 10,
- storeHashFunction: (key, storeSize) => key.length % storeSize
-});
-```
-
-## Properties
-
-| Property | Type | Access | Description |
-|----------|------|--------|-------------|
-| `size` | `number` | Read-only | Gets the total number of entries in the BigMap. |
-| `storeSize` | `number` | Read/Write | Gets or sets the number of internal Map instances. **Note:** Setting this will clear all entries. Default: `4` |
-| `storeHashFunction` | `StoreHashFunction \| undefined` | Read/Write | Gets or sets the hash function used for key distribution. |
-| `store` | `Array