matt HOFFNER commited on
Commit
c8758af
β€’
1 Parent(s): 88cc829

initial attempt to use vad for detecting end of speech

Browse files
Files changed (6) hide show
  1. README.md +1 -1
  2. app/input.tsx +43 -6
  3. app/tools/surfer.ts +1 -1
  4. next.config.js +24 -1
  5. package-lock.json +250 -104
  6. package.json +3 -0
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  title: web-chat
3
- emoji: πŸ•ΈοΈπŸ’¬
4
  sdk: docker
5
  app_port: 3000
6
  ---
 
1
  ---
2
  title: web-chat
3
+ emoji: πŸ•ΈοΈπŸŽ™οΈπŸ€πŸˆ
4
  sdk: docker
5
  app_port: 3000
6
  ---
app/input.tsx CHANGED
@@ -5,6 +5,10 @@ import styles from './page.module.css';
5
 
6
  import useSpeechRecognition from './hooks/useSpeechRecognition';
7
  import useAudioManager from './hooks/useAudioManager';
 
 
 
 
8
 
9
  const getMimeType = (): string | null => {
10
  const types = ["audio/webm", "audio/mp4", "audio/ogg", "audio/wav", "audio/aac"];
@@ -30,6 +34,15 @@ const VoiceInputForm: React.FC<VoiceInputFormProps> = ({ handleSubmit, input, se
30
  const mediaRecorderRef = useRef<MediaRecorder | null>(null);
31
  const audioChunksRef = useRef<BlobPart[]>([]);
32
 
 
 
 
 
 
 
 
 
 
33
  useEffect(() => {
34
  if (recognizedText) {
35
  setInput(recognizedText);
@@ -37,11 +50,12 @@ const VoiceInputForm: React.FC<VoiceInputFormProps> = ({ handleSubmit, input, se
37
  }, [recognizedText, setInput]);
38
 
39
  const startRecording = async () => {
 
 
40
  try {
41
  const mimeType = getMimeType();
42
  const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
43
  mediaRecorderRef.current = new MediaRecorder(stream, { mimeType: mimeType ?? undefined });
44
- audioChunksRef.current = [];
45
 
46
  mediaRecorderRef.current.ondataavailable = (event: BlobEvent) => {
47
  audioChunksRef.current.push(event.data);
@@ -69,19 +83,42 @@ const VoiceInputForm: React.FC<VoiceInputFormProps> = ({ handleSubmit, input, se
69
  });
70
  };
71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  const handleRecording = async () => {
73
  if (isRecording) {
74
  stopListening();
75
- const recordedBlob = await stopRecording();
76
- setAudioFromRecording(recordedBlob);
77
- const audioBuffer = await convertBlobToAudioBuffer(recordedBlob);
78
- startListening(audioBuffer);
 
 
 
79
  } else {
80
- startRecording();
 
81
  }
82
  setIsRecording(!isRecording);
83
  };
84
 
 
85
  return (
86
  <div>
87
  <form onSubmit={handleSubmit} className={styles.form}>
 
5
 
6
  import useSpeechRecognition from './hooks/useSpeechRecognition';
7
  import useAudioManager from './hooks/useAudioManager';
8
+ import { useMicVAD } from "@ricky0123/vad-react";
9
+
10
+ import * as ort from "onnxruntime-web";
11
+ ort.env.wasm.wasmPaths = "/_next/static/chunks/";
12
 
13
  const getMimeType = (): string | null => {
14
  const types = ["audio/webm", "audio/mp4", "audio/ogg", "audio/wav", "audio/aac"];
 
34
  const mediaRecorderRef = useRef<MediaRecorder | null>(null);
35
  const audioChunksRef = useRef<BlobPart[]>([]);
36
 
37
+ const cleanupRecording = () => {
38
+ if (mediaRecorderRef.current) {
39
+ mediaRecorderRef.current.stream.getTracks().forEach(track => track.stop());
40
+ mediaRecorderRef.current = null;
41
+ }
42
+ audioChunksRef.current = [];
43
+ };
44
+
45
+
46
  useEffect(() => {
47
  if (recognizedText) {
48
  setInput(recognizedText);
 
50
  }, [recognizedText, setInput]);
51
 
52
  const startRecording = async () => {
53
+ cleanupRecording(); // Clean up any existing recording resources
54
+
55
  try {
56
  const mimeType = getMimeType();
57
  const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
58
  mediaRecorderRef.current = new MediaRecorder(stream, { mimeType: mimeType ?? undefined });
 
59
 
60
  mediaRecorderRef.current.ondataavailable = (event: BlobEvent) => {
61
  audioChunksRef.current.push(event.data);
 
83
  });
84
  };
85
 
86
+ const vad = useMicVAD({
87
+ modelURL: "/_next/static/chunks/silero_vad.onnx",
88
+ workletURL: "/_next/static/chunks/vad.worklet.bundle.min.js",
89
+ startOnLoad: false,
90
+ onSpeechEnd: async (audio) => {
91
+ console.log('hello??')
92
+ if (isRecording) {
93
+ stopListening();
94
+ const recordedBlob = await stopRecording();
95
+ setAudioFromRecording(recordedBlob);
96
+ const audioBuffer = await convertBlobToAudioBuffer(recordedBlob);
97
+ startListening(audioBuffer);
98
+ setIsRecording(!isRecording);
99
+ }
100
+ },
101
+ });
102
+
103
+
104
  const handleRecording = async () => {
105
  if (isRecording) {
106
  stopListening();
107
+ const recordedBlob = await stopRecording();
108
+ if (recordedBlob) {
109
+ setAudioFromRecording(recordedBlob);
110
+ const audioBuffer = await convertBlobToAudioBuffer(recordedBlob);
111
+ startListening(audioBuffer);
112
+ }
113
+ cleanupRecording(); // Clean up resources after stopping recording
114
  } else {
115
+ vad.toggle();
116
+ await startRecording();
117
  }
118
  setIsRecording(!isRecording);
119
  };
120
 
121
+
122
  return (
123
  <div>
124
  <form onSubmit={handleSubmit} className={styles.form}>
app/tools/surfer.ts CHANGED
@@ -6,7 +6,7 @@ function createUrlSurfer() {
6
  input: z.string(),
7
  });
8
  const name = 'surfer';
9
- const description = 'A custom URL navigator. Useful when a URL is provided with a question. Input should be a prompt with a URL. Outputs a JSON array of relevant results.';
10
 
11
  return new Tool(paramsSchema, name, description, {} as any).tool;
12
  }
 
6
  input: z.string(),
7
  });
8
  const name = 'surfer';
9
+ const description = 'A custom URL navigator. Useful when a URL is provided with a question. A URL IS REQUIRED FOR THIS TO WORK along with user intent. Input should be a valid URL. Outputs a JSON array of relevant results.';
10
 
11
  return new Tool(paramsSchema, name, description, {} as any).tool;
12
  }
next.config.js CHANGED
@@ -1,6 +1,9 @@
 
 
1
  /** @type {import('next').NextConfig} */
2
  const nextConfig = {
3
  output: "standalone",
 
4
  // Custom Webpack configuration
5
  webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
6
  // Add the node-loader for handling .node files
@@ -9,9 +12,29 @@ const nextConfig = {
9
  loader: 'node-loader',
10
  });
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  // Return the modified config
13
  return config;
14
  },
15
  }
16
 
17
- module.exports = nextConfig
 
1
+ const CopyPlugin = require('copy-webpack-plugin');
2
+
3
  /** @type {import('next').NextConfig} */
4
  const nextConfig = {
5
  output: "standalone",
6
+
7
  // Custom Webpack configuration
8
  webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
9
  // Add the node-loader for handling .node files
 
12
  loader: 'node-loader',
13
  });
14
 
15
+ // Add CopyPlugin to copy VAD assets
16
+ config.plugins.push(
17
+ new CopyPlugin({
18
+ patterns: [
19
+ {
20
+ from: "node_modules/@ricky0123/vad-web/dist/vad.worklet.bundle.min.js",
21
+ to: "static/chunks/[name][ext]", // Adjusted path
22
+ },
23
+ {
24
+ from: "node_modules/@ricky0123/vad-web/dist/*.onnx",
25
+ to: "static/chunks/[name][ext]", // Adjusted path
26
+ },
27
+ {
28
+ from: "node_modules/onnxruntime-web/dist/*.wasm",
29
+ to: "static/chunks/[name][ext]" // Adjusted path
30
+ },
31
+ ],
32
+ })
33
+ );
34
+
35
  // Return the modified config
36
  return config;
37
  },
38
  }
39
 
40
+ module.exports = nextConfig;
package-lock.json CHANGED
@@ -12,15 +12,18 @@
12
  "@emotion/styled": "^11.11.0",
13
  "@mui/icons-material": "^5.14.19",
14
  "@mui/material": "^5.14.16",
 
15
  "@upstash/ratelimit": "^0.4.4",
16
  "@vercel/kv": "^0.2.4",
17
  "@xenova/transformers": "^2.7.0",
18
  "ai": "^2.2.20",
 
19
  "jsdom": "^22.1.0",
20
  "langchain": "^0.0.180",
21
  "lucide-react": "^0.292.0",
22
  "next": "14.0.1",
23
  "node-fetch": "^3.3.2",
 
24
  "openai": "^3.3.0",
25
  "openai-edge": "^1.2.2",
26
  "openai-function-calling-tools": "^6.1.3",
@@ -640,7 +643,6 @@
640
  "version": "0.3.5",
641
  "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.5.tgz",
642
  "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==",
643
- "dev": true,
644
  "peer": true,
645
  "dependencies": {
646
  "@jridgewell/gen-mapping": "^0.3.0",
@@ -1071,7 +1073,6 @@
1071
  "version": "2.1.5",
1072
  "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
1073
  "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
1074
- "dev": true,
1075
  "dependencies": {
1076
  "@nodelib/fs.stat": "2.0.5",
1077
  "run-parallel": "^1.1.9"
@@ -1084,7 +1085,6 @@
1084
  "version": "2.0.5",
1085
  "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
1086
  "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
1087
- "dev": true,
1088
  "engines": {
1089
  "node": ">= 8"
1090
  }
@@ -1093,7 +1093,6 @@
1093
  "version": "1.2.8",
1094
  "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
1095
  "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
1096
- "dev": true,
1097
  "dependencies": {
1098
  "@nodelib/fs.scandir": "2.1.5",
1099
  "fastq": "^1.6.0"
@@ -1194,6 +1193,27 @@
1194
  }
1195
  }
1196
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1197
  "node_modules/@rushstack/eslint-patch": {
1198
  "version": "1.5.1",
1199
  "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.5.1.tgz",
@@ -1228,7 +1248,6 @@
1228
  "version": "8.44.8",
1229
  "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.44.8.tgz",
1230
  "integrity": "sha512-4K8GavROwhrYl2QXDXm0Rv9epkA8GBFu0EI+XrrnnuCl7u8CWBRusX7fXJfanhZTDWSAL24gDI/UqXyUM0Injw==",
1231
- "dev": true,
1232
  "peer": true,
1233
  "dependencies": {
1234
  "@types/estree": "*",
@@ -1239,7 +1258,6 @@
1239
  "version": "3.7.7",
1240
  "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz",
1241
  "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==",
1242
- "dev": true,
1243
  "peer": true,
1244
  "dependencies": {
1245
  "@types/eslint": "*",
@@ -1274,9 +1292,7 @@
1274
  "node_modules/@types/json-schema": {
1275
  "version": "7.0.15",
1276
  "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
1277
- "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
1278
- "dev": true,
1279
- "peer": true
1280
  },
1281
  "node_modules/@types/json5": {
1282
  "version": "0.0.29",
@@ -1686,7 +1702,6 @@
1686
  "version": "1.11.6",
1687
  "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz",
1688
  "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==",
1689
- "dev": true,
1690
  "peer": true,
1691
  "dependencies": {
1692
  "@webassemblyjs/helper-numbers": "1.11.6",
@@ -1697,28 +1712,24 @@
1697
  "version": "1.11.6",
1698
  "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz",
1699
  "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==",
1700
- "dev": true,
1701
  "peer": true
1702
  },
1703
  "node_modules/@webassemblyjs/helper-api-error": {
1704
  "version": "1.11.6",
1705
  "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz",
1706
  "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==",
1707
- "dev": true,
1708
  "peer": true
1709
  },
1710
  "node_modules/@webassemblyjs/helper-buffer": {
1711
  "version": "1.11.6",
1712
  "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz",
1713
  "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==",
1714
- "dev": true,
1715
  "peer": true
1716
  },
1717
  "node_modules/@webassemblyjs/helper-numbers": {
1718
  "version": "1.11.6",
1719
  "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz",
1720
  "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==",
1721
- "dev": true,
1722
  "peer": true,
1723
  "dependencies": {
1724
  "@webassemblyjs/floating-point-hex-parser": "1.11.6",
@@ -1730,14 +1741,12 @@
1730
  "version": "1.11.6",
1731
  "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz",
1732
  "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==",
1733
- "dev": true,
1734
  "peer": true
1735
  },
1736
  "node_modules/@webassemblyjs/helper-wasm-section": {
1737
  "version": "1.11.6",
1738
  "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz",
1739
  "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==",
1740
- "dev": true,
1741
  "peer": true,
1742
  "dependencies": {
1743
  "@webassemblyjs/ast": "1.11.6",
@@ -1750,7 +1759,6 @@
1750
  "version": "1.11.6",
1751
  "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz",
1752
  "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==",
1753
- "dev": true,
1754
  "peer": true,
1755
  "dependencies": {
1756
  "@xtuc/ieee754": "^1.2.0"
@@ -1760,7 +1768,6 @@
1760
  "version": "1.11.6",
1761
  "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz",
1762
  "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==",
1763
- "dev": true,
1764
  "peer": true,
1765
  "dependencies": {
1766
  "@xtuc/long": "4.2.2"
@@ -1770,14 +1777,12 @@
1770
  "version": "1.11.6",
1771
  "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz",
1772
  "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==",
1773
- "dev": true,
1774
  "peer": true
1775
  },
1776
  "node_modules/@webassemblyjs/wasm-edit": {
1777
  "version": "1.11.6",
1778
  "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz",
1779
  "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==",
1780
- "dev": true,
1781
  "peer": true,
1782
  "dependencies": {
1783
  "@webassemblyjs/ast": "1.11.6",
@@ -1794,7 +1799,6 @@
1794
  "version": "1.11.6",
1795
  "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz",
1796
  "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==",
1797
- "dev": true,
1798
  "peer": true,
1799
  "dependencies": {
1800
  "@webassemblyjs/ast": "1.11.6",
@@ -1808,7 +1812,6 @@
1808
  "version": "1.11.6",
1809
  "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz",
1810
  "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==",
1811
- "dev": true,
1812
  "peer": true,
1813
  "dependencies": {
1814
  "@webassemblyjs/ast": "1.11.6",
@@ -1821,7 +1824,6 @@
1821
  "version": "1.11.6",
1822
  "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz",
1823
  "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==",
1824
- "dev": true,
1825
  "peer": true,
1826
  "dependencies": {
1827
  "@webassemblyjs/ast": "1.11.6",
@@ -1836,7 +1838,6 @@
1836
  "version": "1.11.6",
1837
  "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz",
1838
  "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==",
1839
- "dev": true,
1840
  "peer": true,
1841
  "dependencies": {
1842
  "@webassemblyjs/ast": "1.11.6",
@@ -1855,18 +1856,34 @@
1855
  "onnxruntime-node": "1.14.0"
1856
  }
1857
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1858
  "node_modules/@xtuc/ieee754": {
1859
  "version": "1.2.0",
1860
  "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz",
1861
  "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==",
1862
- "dev": true,
1863
  "peer": true
1864
  },
1865
  "node_modules/@xtuc/long": {
1866
  "version": "4.2.2",
1867
  "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz",
1868
  "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==",
1869
- "dev": true,
1870
  "peer": true
1871
  },
1872
  "node_modules/abab": {
@@ -1900,7 +1917,6 @@
1900
  "version": "1.9.0",
1901
  "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz",
1902
  "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==",
1903
- "dev": true,
1904
  "peer": true,
1905
  "peerDependencies": {
1906
  "acorn": "^8"
@@ -1978,7 +1994,6 @@
1978
  "version": "6.12.6",
1979
  "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
1980
  "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
1981
- "dev": true,
1982
  "dependencies": {
1983
  "fast-deep-equal": "^3.1.1",
1984
  "fast-json-stable-stringify": "^2.0.0",
@@ -1990,11 +2005,46 @@
1990
  "url": "https://github.com/sponsors/epoberezkin"
1991
  }
1992
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1993
  "node_modules/ajv-keywords": {
1994
  "version": "3.5.2",
1995
  "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz",
1996
  "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==",
1997
- "dev": true,
1998
  "peer": true,
1999
  "peerDependencies": {
2000
  "ajv": "^6.9.1"
@@ -2354,7 +2404,6 @@
2354
  "version": "3.0.2",
2355
  "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
2356
  "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
2357
- "dev": true,
2358
  "dependencies": {
2359
  "fill-range": "^7.0.1"
2360
  },
@@ -2366,7 +2415,6 @@
2366
  "version": "4.22.1",
2367
  "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz",
2368
  "integrity": "sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==",
2369
- "dev": true,
2370
  "funding": [
2371
  {
2372
  "type": "opencollective",
@@ -2430,7 +2478,6 @@
2430
  "version": "1.1.2",
2431
  "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
2432
  "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
2433
- "dev": true,
2434
  "peer": true
2435
  },
2436
  "node_modules/busboy": {
@@ -2574,7 +2621,6 @@
2574
  "version": "1.0.3",
2575
  "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz",
2576
  "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==",
2577
- "dev": true,
2578
  "peer": true,
2579
  "engines": {
2580
  "node": ">=6.0"
@@ -2706,6 +2752,107 @@
2706
  "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz",
2707
  "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A=="
2708
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2709
  "node_modules/cosmiconfig": {
2710
  "version": "8.1.3",
2711
  "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.1.3.tgz",
@@ -3032,7 +3179,6 @@
3032
  "version": "3.0.1",
3033
  "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",
3034
  "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",
3035
- "dev": true,
3036
  "dependencies": {
3037
  "path-type": "^4.0.0"
3038
  },
@@ -3127,7 +3273,6 @@
3127
  "version": "1.4.601",
3128
  "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.601.tgz",
3129
  "integrity": "sha512-SpwUMDWe9tQu8JX5QCO1+p/hChAi9AE9UpoC3rcHVc+gdCGlbT3SGb5I1klgb952HRIyvt9wZhSz9bNBYz9swA==",
3130
- "dev": true,
3131
  "peer": true
3132
  },
3133
  "node_modules/emoji-regex": {
@@ -3157,7 +3302,6 @@
3157
  "version": "5.15.0",
3158
  "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz",
3159
  "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==",
3160
- "dev": true,
3161
  "dependencies": {
3162
  "graceful-fs": "^4.2.4",
3163
  "tapable": "^2.2.0"
@@ -3264,7 +3408,6 @@
3264
  "version": "1.4.1",
3265
  "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.4.1.tgz",
3266
  "integrity": "sha512-cXLGjP0c4T3flZJKQSuziYoq7MlT+rnvfZjfp7h+I7K9BNX54kP9nyWvdbwjQ4u1iWbOL4u96fgeZLToQlZC7w==",
3267
- "dev": true,
3268
  "peer": true
3269
  },
3270
  "node_modules/es-set-tostringtag": {
@@ -3722,7 +3865,6 @@
3722
  "version": "4.3.0",
3723
  "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
3724
  "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
3725
- "dev": true,
3726
  "dependencies": {
3727
  "estraverse": "^5.2.0"
3728
  },
@@ -3734,7 +3876,6 @@
3734
  "version": "5.3.0",
3735
  "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
3736
  "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
3737
- "dev": true,
3738
  "engines": {
3739
  "node": ">=4.0"
3740
  }
@@ -3774,7 +3915,6 @@
3774
  "version": "3.3.0",
3775
  "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz",
3776
  "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==",
3777
- "dev": true,
3778
  "peer": true,
3779
  "engines": {
3780
  "node": ">=0.8.x"
@@ -3828,8 +3968,7 @@
3828
  "node_modules/fast-deep-equal": {
3829
  "version": "3.1.3",
3830
  "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
3831
- "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
3832
- "dev": true
3833
  },
3834
  "node_modules/fast-fifo": {
3835
  "version": "1.3.2",
@@ -3840,7 +3979,6 @@
3840
  "version": "3.3.1",
3841
  "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz",
3842
  "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==",
3843
- "dev": true,
3844
  "dependencies": {
3845
  "@nodelib/fs.stat": "^2.0.2",
3846
  "@nodelib/fs.walk": "^1.2.3",
@@ -3856,7 +3994,6 @@
3856
  "version": "5.1.2",
3857
  "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
3858
  "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
3859
- "dev": true,
3860
  "dependencies": {
3861
  "is-glob": "^4.0.1"
3862
  },
@@ -3867,8 +4004,7 @@
3867
  "node_modules/fast-json-stable-stringify": {
3868
  "version": "2.1.0",
3869
  "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
3870
- "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
3871
- "dev": true
3872
  },
3873
  "node_modules/fast-levenshtein": {
3874
  "version": "2.0.6",
@@ -3880,7 +4016,6 @@
3880
  "version": "1.15.0",
3881
  "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz",
3882
  "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==",
3883
- "dev": true,
3884
  "dependencies": {
3885
  "reusify": "^1.0.4"
3886
  }
@@ -3931,7 +4066,6 @@
3931
  "version": "7.0.1",
3932
  "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
3933
  "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
3934
- "dev": true,
3935
  "dependencies": {
3936
  "to-regex-range": "^5.0.1"
3937
  },
@@ -4210,7 +4344,6 @@
4210
  "version": "6.0.2",
4211
  "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
4212
  "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
4213
- "dev": true,
4214
  "dependencies": {
4215
  "is-glob": "^4.0.3"
4216
  },
@@ -4314,7 +4447,6 @@
4314
  "version": "4.0.0",
4315
  "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
4316
  "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
4317
- "dev": true,
4318
  "engines": {
4319
  "node": ">=8"
4320
  }
@@ -4526,7 +4658,6 @@
4526
  "version": "5.2.4",
4527
  "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz",
4528
  "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==",
4529
- "devOptional": true,
4530
  "engines": {
4531
  "node": ">= 4"
4532
  }
@@ -4708,7 +4839,6 @@
4708
  "version": "2.1.1",
4709
  "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
4710
  "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
4711
- "dev": true,
4712
  "engines": {
4713
  "node": ">=0.10.0"
4714
  }
@@ -4752,7 +4882,6 @@
4752
  "version": "4.0.3",
4753
  "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
4754
  "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
4755
- "dev": true,
4756
  "dependencies": {
4757
  "is-extglob": "^2.1.1"
4758
  },
@@ -4785,7 +4914,6 @@
4785
  "version": "7.0.0",
4786
  "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
4787
  "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
4788
- "dev": true,
4789
  "engines": {
4790
  "node": ">=0.12.0"
4791
  }
@@ -4984,7 +5112,6 @@
4984
  "version": "27.5.1",
4985
  "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz",
4986
  "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==",
4987
- "dev": true,
4988
  "peer": true,
4989
  "dependencies": {
4990
  "@types/node": "*",
@@ -4999,7 +5126,6 @@
4999
  "version": "8.1.1",
5000
  "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",
5001
  "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",
5002
- "dev": true,
5003
  "peer": true,
5004
  "dependencies": {
5005
  "has-flag": "^4.0.0"
@@ -5090,8 +5216,7 @@
5090
  "node_modules/json-schema-traverse": {
5091
  "version": "0.4.1",
5092
  "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
5093
- "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
5094
- "dev": true
5095
  },
5096
  "node_modules/json-stable-stringify-without-jsonify": {
5097
  "version": "1.0.1",
@@ -5702,7 +5827,6 @@
5702
  "version": "4.3.0",
5703
  "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz",
5704
  "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==",
5705
- "dev": true,
5706
  "peer": true,
5707
  "engines": {
5708
  "node": ">=6.11.5"
@@ -5762,9 +5886,9 @@
5762
  "dev": true
5763
  },
5764
  "node_modules/long": {
5765
- "version": "4.0.0",
5766
- "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz",
5767
- "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA=="
5768
  },
5769
  "node_modules/loose-envify": {
5770
  "version": "1.4.0",
@@ -5882,14 +6006,12 @@
5882
  "version": "2.0.0",
5883
  "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
5884
  "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",
5885
- "dev": true,
5886
  "peer": true
5887
  },
5888
  "node_modules/merge2": {
5889
  "version": "1.4.1",
5890
  "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
5891
  "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
5892
- "dev": true,
5893
  "engines": {
5894
  "node": ">= 8"
5895
  }
@@ -6319,7 +6441,6 @@
6319
  "version": "4.0.5",
6320
  "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",
6321
  "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",
6322
- "dev": true,
6323
  "dependencies": {
6324
  "braces": "^3.0.2",
6325
  "picomatch": "^2.3.1"
@@ -6484,7 +6605,6 @@
6484
  "version": "2.6.2",
6485
  "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz",
6486
  "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==",
6487
- "dev": true,
6488
  "peer": true
6489
  },
6490
  "node_modules/next": {
@@ -6611,9 +6731,16 @@
6611
  "version": "2.0.14",
6612
  "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz",
6613
  "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==",
6614
- "dev": true,
6615
  "peer": true
6616
  },
 
 
 
 
 
 
 
 
6617
  "node_modules/nth-check": {
6618
  "version": "2.1.1",
6619
  "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz",
@@ -6782,6 +6909,36 @@
6782
  "protobufjs": "^6.8.8"
6783
  }
6784
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6785
  "node_modules/onnxruntime-common": {
6786
  "version": "1.14.0",
6787
  "resolved": "https://registry.npmjs.org/onnxruntime-common/-/onnxruntime-common-1.14.0.tgz",
@@ -6802,18 +6959,23 @@
6802
  }
6803
  },
6804
  "node_modules/onnxruntime-web": {
6805
- "version": "1.14.0",
6806
- "resolved": "https://registry.npmjs.org/onnxruntime-web/-/onnxruntime-web-1.14.0.tgz",
6807
- "integrity": "sha512-Kcqf43UMfW8mCydVGcX9OMXI2VN17c0p6XvR7IPSZzBf/6lteBzXHvcEVWDPmCKuGombl997HgLqj91F11DzXw==",
6808
  "dependencies": {
6809
  "flatbuffers": "^1.12.0",
6810
  "guid-typescript": "^1.0.9",
6811
- "long": "^4.0.0",
6812
- "onnx-proto": "^4.0.4",
6813
- "onnxruntime-common": "~1.14.0",
6814
- "platform": "^1.3.6"
6815
  }
6816
  },
 
 
 
 
 
6817
  "node_modules/openai": {
6818
  "version": "3.3.0",
6819
  "resolved": "https://registry.npmjs.org/openai/-/openai-3.3.0.tgz",
@@ -7080,7 +7242,6 @@
7080
  "version": "2.3.1",
7081
  "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
7082
  "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
7083
- "dev": true,
7084
  "engines": {
7085
  "node": ">=8.6"
7086
  },
@@ -7182,9 +7343,9 @@
7182
  }
7183
  },
7184
  "node_modules/protobufjs": {
7185
- "version": "6.11.4",
7186
- "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.4.tgz",
7187
- "integrity": "sha512-5kQWPaJHi1WoCpjTGszzQ32PG2F4+wRY6BmAT4Vfw56Q2FZ4YZzK20xUYQH4YkfehY1e6QSICrJquM6xXZNcrw==",
7188
  "hasInstallScript": true,
7189
  "dependencies": {
7190
  "@protobufjs/aspromise": "^1.1.2",
@@ -7197,13 +7358,11 @@
7197
  "@protobufjs/path": "^1.1.2",
7198
  "@protobufjs/pool": "^1.1.0",
7199
  "@protobufjs/utf8": "^1.1.0",
7200
- "@types/long": "^4.0.1",
7201
  "@types/node": ">=13.7.0",
7202
- "long": "^4.0.0"
7203
  },
7204
- "bin": {
7205
- "pbjs": "bin/pbjs",
7206
- "pbts": "bin/pbts"
7207
  }
7208
  },
7209
  "node_modules/proxy-from-env": {
@@ -7305,7 +7464,6 @@
7305
  "version": "1.2.3",
7306
  "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
7307
  "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
7308
- "dev": true,
7309
  "funding": [
7310
  {
7311
  "type": "github",
@@ -7330,8 +7488,6 @@
7330
  "version": "2.1.0",
7331
  "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
7332
  "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==",
7333
- "dev": true,
7334
- "peer": true,
7335
  "dependencies": {
7336
  "safe-buffer": "^5.1.0"
7337
  }
@@ -7521,6 +7677,14 @@
7521
  "node": ">=0.10.0"
7522
  }
7523
  },
 
 
 
 
 
 
 
 
7524
  "node_modules/requires-port": {
7525
  "version": "1.0.0",
7526
  "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",
@@ -7571,7 +7735,6 @@
7571
  "version": "1.0.4",
7572
  "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",
7573
  "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",
7574
- "dev": true,
7575
  "engines": {
7576
  "iojs": ">=1.0.0",
7577
  "node": ">=0.10.0"
@@ -7601,7 +7764,6 @@
7601
  "version": "1.2.0",
7602
  "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
7603
  "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
7604
- "dev": true,
7605
  "funding": [
7606
  {
7607
  "type": "github",
@@ -7699,7 +7861,6 @@
7699
  "version": "3.3.0",
7700
  "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz",
7701
  "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==",
7702
- "dev": true,
7703
  "peer": true,
7704
  "dependencies": {
7705
  "@types/json-schema": "^7.0.8",
@@ -7732,8 +7893,6 @@
7732
  "version": "6.0.1",
7733
  "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz",
7734
  "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==",
7735
- "dev": true,
7736
- "peer": true,
7737
  "dependencies": {
7738
  "randombytes": "^2.1.0"
7739
  }
@@ -7974,7 +8133,6 @@
7974
  "version": "0.5.21",
7975
  "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",
7976
  "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",
7977
- "dev": true,
7978
  "peer": true,
7979
  "dependencies": {
7980
  "buffer-from": "^1.0.0",
@@ -7985,7 +8143,6 @@
7985
  "version": "0.6.1",
7986
  "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
7987
  "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
7988
- "dev": true,
7989
  "peer": true,
7990
  "engines": {
7991
  "node": ">=0.10.0"
@@ -8277,7 +8434,6 @@
8277
  "version": "2.2.1",
8278
  "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz",
8279
  "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==",
8280
- "dev": true,
8281
  "engines": {
8282
  "node": ">=6"
8283
  }
@@ -8312,7 +8468,6 @@
8312
  "version": "5.24.0",
8313
  "resolved": "https://registry.npmjs.org/terser/-/terser-5.24.0.tgz",
8314
  "integrity": "sha512-ZpGR4Hy3+wBEzVEnHvstMvqpD/nABNelQn/z2r0fjVWGQsN3bpOLzQlqDxmb4CDZnXq5lpjnQ+mHQLAOpfM5iw==",
8315
- "dev": true,
8316
  "peer": true,
8317
  "dependencies": {
8318
  "@jridgewell/source-map": "^0.3.3",
@@ -8331,7 +8486,6 @@
8331
  "version": "5.3.9",
8332
  "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz",
8333
  "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==",
8334
- "dev": true,
8335
  "peer": true,
8336
  "dependencies": {
8337
  "@jridgewell/trace-mapping": "^0.3.17",
@@ -8366,7 +8520,6 @@
8366
  "version": "2.20.3",
8367
  "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
8368
  "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
8369
- "dev": true,
8370
  "peer": true
8371
  },
8372
  "node_modules/text-table": {
@@ -8438,7 +8591,6 @@
8438
  "version": "5.0.1",
8439
  "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
8440
  "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
8441
- "dev": true,
8442
  "dependencies": {
8443
  "is-number": "^7.0.0"
8444
  },
@@ -8753,7 +8905,6 @@
8753
  "version": "1.0.13",
8754
  "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz",
8755
  "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==",
8756
- "dev": true,
8757
  "funding": [
8758
  {
8759
  "type": "opencollective",
@@ -8784,7 +8935,6 @@
8784
  "version": "4.4.1",
8785
  "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
8786
  "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
8787
- "dev": true,
8788
  "dependencies": {
8789
  "punycode": "^2.1.0"
8790
  }
@@ -8914,7 +9064,6 @@
8914
  "version": "5.89.0",
8915
  "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.89.0.tgz",
8916
  "integrity": "sha512-qyfIC10pOr70V+jkmud8tMfajraGCZMBWJtrmuBymQKCrLTRejBI8STDp1MCyZu/QTdZSeacCQYpYNQVOzX5kw==",
8917
- "dev": true,
8918
  "peer": true,
8919
  "dependencies": {
8920
  "@types/eslint-scope": "^3.7.3",
@@ -8962,7 +9111,6 @@
8962
  "version": "3.2.3",
8963
  "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz",
8964
  "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==",
8965
- "dev": true,
8966
  "peer": true,
8967
  "engines": {
8968
  "node": ">=10.13.0"
@@ -8972,7 +9120,6 @@
8972
  "version": "5.1.1",
8973
  "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",
8974
  "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",
8975
- "dev": true,
8976
  "peer": true,
8977
  "dependencies": {
8978
  "esrecurse": "^4.3.0",
@@ -8986,7 +9133,6 @@
8986
  "version": "4.3.0",
8987
  "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",
8988
  "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",
8989
- "dev": true,
8990
  "peer": true,
8991
  "engines": {
8992
  "node": ">=4.0"
 
12
  "@emotion/styled": "^11.11.0",
13
  "@mui/icons-material": "^5.14.19",
14
  "@mui/material": "^5.14.16",
15
+ "@ricky0123/vad-react": "^0.0.18",
16
  "@upstash/ratelimit": "^0.4.4",
17
  "@vercel/kv": "^0.2.4",
18
  "@xenova/transformers": "^2.7.0",
19
  "ai": "^2.2.20",
20
+ "copy-webpack-plugin": "^11.0.0",
21
  "jsdom": "^22.1.0",
22
  "langchain": "^0.0.180",
23
  "lucide-react": "^0.292.0",
24
  "next": "14.0.1",
25
  "node-fetch": "^3.3.2",
26
+ "onnxruntime-web": "^1.16.3",
27
  "openai": "^3.3.0",
28
  "openai-edge": "^1.2.2",
29
  "openai-function-calling-tools": "^6.1.3",
 
643
  "version": "0.3.5",
644
  "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.5.tgz",
645
  "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==",
 
646
  "peer": true,
647
  "dependencies": {
648
  "@jridgewell/gen-mapping": "^0.3.0",
 
1073
  "version": "2.1.5",
1074
  "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
1075
  "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
 
1076
  "dependencies": {
1077
  "@nodelib/fs.stat": "2.0.5",
1078
  "run-parallel": "^1.1.9"
 
1085
  "version": "2.0.5",
1086
  "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
1087
  "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
 
1088
  "engines": {
1089
  "node": ">= 8"
1090
  }
 
1093
  "version": "1.2.8",
1094
  "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
1095
  "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
 
1096
  "dependencies": {
1097
  "@nodelib/fs.scandir": "2.1.5",
1098
  "fastq": "^1.6.0"
 
1193
  }
1194
  }
1195
  },
1196
+ "node_modules/@ricky0123/vad-react": {
1197
+ "version": "0.0.18",
1198
+ "resolved": "https://registry.npmjs.org/@ricky0123/vad-react/-/vad-react-0.0.18.tgz",
1199
+ "integrity": "sha512-1rdhnvuFQSe0cQAqYa4DVFi5rJbJBqrtnU7pozqtv/yhA5c8p2+vcIduWY+XTJT7hvSiOU881rSSj+2oYD4amA==",
1200
+ "dependencies": {
1201
+ "@ricky0123/vad-web": "^0.0.13",
1202
+ "onnxruntime-web": "^1.14.0"
1203
+ },
1204
+ "peerDependencies": {
1205
+ "react": "^18",
1206
+ "react-dom": "^18"
1207
+ }
1208
+ },
1209
+ "node_modules/@ricky0123/vad-web": {
1210
+ "version": "0.0.13",
1211
+ "resolved": "https://registry.npmjs.org/@ricky0123/vad-web/-/vad-web-0.0.13.tgz",
1212
+ "integrity": "sha512-b1QWeGGTz9jQpj8MwkS7oKwNrQjUvPfWTWPSMrkK+P8wTZHvbQY1iSDQkNZumUvBtOPmrXUY0tJeBnIE5Is4tQ==",
1213
+ "dependencies": {
1214
+ "onnxruntime-web": "^1.14.0"
1215
+ }
1216
+ },
1217
  "node_modules/@rushstack/eslint-patch": {
1218
  "version": "1.5.1",
1219
  "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.5.1.tgz",
 
1248
  "version": "8.44.8",
1249
  "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.44.8.tgz",
1250
  "integrity": "sha512-4K8GavROwhrYl2QXDXm0Rv9epkA8GBFu0EI+XrrnnuCl7u8CWBRusX7fXJfanhZTDWSAL24gDI/UqXyUM0Injw==",
 
1251
  "peer": true,
1252
  "dependencies": {
1253
  "@types/estree": "*",
 
1258
  "version": "3.7.7",
1259
  "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz",
1260
  "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==",
 
1261
  "peer": true,
1262
  "dependencies": {
1263
  "@types/eslint": "*",
 
1292
  "node_modules/@types/json-schema": {
1293
  "version": "7.0.15",
1294
  "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
1295
+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA=="
 
 
1296
  },
1297
  "node_modules/@types/json5": {
1298
  "version": "0.0.29",
 
1702
  "version": "1.11.6",
1703
  "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz",
1704
  "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==",
 
1705
  "peer": true,
1706
  "dependencies": {
1707
  "@webassemblyjs/helper-numbers": "1.11.6",
 
1712
  "version": "1.11.6",
1713
  "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz",
1714
  "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==",
 
1715
  "peer": true
1716
  },
1717
  "node_modules/@webassemblyjs/helper-api-error": {
1718
  "version": "1.11.6",
1719
  "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz",
1720
  "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==",
 
1721
  "peer": true
1722
  },
1723
  "node_modules/@webassemblyjs/helper-buffer": {
1724
  "version": "1.11.6",
1725
  "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz",
1726
  "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==",
 
1727
  "peer": true
1728
  },
1729
  "node_modules/@webassemblyjs/helper-numbers": {
1730
  "version": "1.11.6",
1731
  "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz",
1732
  "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==",
 
1733
  "peer": true,
1734
  "dependencies": {
1735
  "@webassemblyjs/floating-point-hex-parser": "1.11.6",
 
1741
  "version": "1.11.6",
1742
  "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz",
1743
  "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==",
 
1744
  "peer": true
1745
  },
1746
  "node_modules/@webassemblyjs/helper-wasm-section": {
1747
  "version": "1.11.6",
1748
  "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz",
1749
  "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==",
 
1750
  "peer": true,
1751
  "dependencies": {
1752
  "@webassemblyjs/ast": "1.11.6",
 
1759
  "version": "1.11.6",
1760
  "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz",
1761
  "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==",
 
1762
  "peer": true,
1763
  "dependencies": {
1764
  "@xtuc/ieee754": "^1.2.0"
 
1768
  "version": "1.11.6",
1769
  "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz",
1770
  "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==",
 
1771
  "peer": true,
1772
  "dependencies": {
1773
  "@xtuc/long": "4.2.2"
 
1777
  "version": "1.11.6",
1778
  "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz",
1779
  "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==",
 
1780
  "peer": true
1781
  },
1782
  "node_modules/@webassemblyjs/wasm-edit": {
1783
  "version": "1.11.6",
1784
  "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz",
1785
  "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==",
 
1786
  "peer": true,
1787
  "dependencies": {
1788
  "@webassemblyjs/ast": "1.11.6",
 
1799
  "version": "1.11.6",
1800
  "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz",
1801
  "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==",
 
1802
  "peer": true,
1803
  "dependencies": {
1804
  "@webassemblyjs/ast": "1.11.6",
 
1812
  "version": "1.11.6",
1813
  "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz",
1814
  "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==",
 
1815
  "peer": true,
1816
  "dependencies": {
1817
  "@webassemblyjs/ast": "1.11.6",
 
1824
  "version": "1.11.6",
1825
  "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz",
1826
  "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==",
 
1827
  "peer": true,
1828
  "dependencies": {
1829
  "@webassemblyjs/ast": "1.11.6",
 
1838
  "version": "1.11.6",
1839
  "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz",
1840
  "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==",
 
1841
  "peer": true,
1842
  "dependencies": {
1843
  "@webassemblyjs/ast": "1.11.6",
 
1856
  "onnxruntime-node": "1.14.0"
1857
  }
1858
  },
1859
+ "node_modules/@xenova/transformers/node_modules/long": {
1860
+ "version": "4.0.0",
1861
+ "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz",
1862
+ "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA=="
1863
+ },
1864
+ "node_modules/@xenova/transformers/node_modules/onnxruntime-web": {
1865
+ "version": "1.14.0",
1866
+ "resolved": "https://registry.npmjs.org/onnxruntime-web/-/onnxruntime-web-1.14.0.tgz",
1867
+ "integrity": "sha512-Kcqf43UMfW8mCydVGcX9OMXI2VN17c0p6XvR7IPSZzBf/6lteBzXHvcEVWDPmCKuGombl997HgLqj91F11DzXw==",
1868
+ "dependencies": {
1869
+ "flatbuffers": "^1.12.0",
1870
+ "guid-typescript": "^1.0.9",
1871
+ "long": "^4.0.0",
1872
+ "onnx-proto": "^4.0.4",
1873
+ "onnxruntime-common": "~1.14.0",
1874
+ "platform": "^1.3.6"
1875
+ }
1876
+ },
1877
  "node_modules/@xtuc/ieee754": {
1878
  "version": "1.2.0",
1879
  "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz",
1880
  "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==",
 
1881
  "peer": true
1882
  },
1883
  "node_modules/@xtuc/long": {
1884
  "version": "4.2.2",
1885
  "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz",
1886
  "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==",
 
1887
  "peer": true
1888
  },
1889
  "node_modules/abab": {
 
1917
  "version": "1.9.0",
1918
  "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz",
1919
  "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==",
 
1920
  "peer": true,
1921
  "peerDependencies": {
1922
  "acorn": "^8"
 
1994
  "version": "6.12.6",
1995
  "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
1996
  "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
 
1997
  "dependencies": {
1998
  "fast-deep-equal": "^3.1.1",
1999
  "fast-json-stable-stringify": "^2.0.0",
 
2005
  "url": "https://github.com/sponsors/epoberezkin"
2006
  }
2007
  },
2008
+ "node_modules/ajv-formats": {
2009
+ "version": "2.1.1",
2010
+ "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz",
2011
+ "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==",
2012
+ "dependencies": {
2013
+ "ajv": "^8.0.0"
2014
+ },
2015
+ "peerDependencies": {
2016
+ "ajv": "^8.0.0"
2017
+ },
2018
+ "peerDependenciesMeta": {
2019
+ "ajv": {
2020
+ "optional": true
2021
+ }
2022
+ }
2023
+ },
2024
+ "node_modules/ajv-formats/node_modules/ajv": {
2025
+ "version": "8.12.0",
2026
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz",
2027
+ "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==",
2028
+ "dependencies": {
2029
+ "fast-deep-equal": "^3.1.1",
2030
+ "json-schema-traverse": "^1.0.0",
2031
+ "require-from-string": "^2.0.2",
2032
+ "uri-js": "^4.2.2"
2033
+ },
2034
+ "funding": {
2035
+ "type": "github",
2036
+ "url": "https://github.com/sponsors/epoberezkin"
2037
+ }
2038
+ },
2039
+ "node_modules/ajv-formats/node_modules/json-schema-traverse": {
2040
+ "version": "1.0.0",
2041
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
2042
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="
2043
+ },
2044
  "node_modules/ajv-keywords": {
2045
  "version": "3.5.2",
2046
  "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz",
2047
  "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==",
 
2048
  "peer": true,
2049
  "peerDependencies": {
2050
  "ajv": "^6.9.1"
 
2404
  "version": "3.0.2",
2405
  "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
2406
  "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
 
2407
  "dependencies": {
2408
  "fill-range": "^7.0.1"
2409
  },
 
2415
  "version": "4.22.1",
2416
  "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz",
2417
  "integrity": "sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==",
 
2418
  "funding": [
2419
  {
2420
  "type": "opencollective",
 
2478
  "version": "1.1.2",
2479
  "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
2480
  "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
 
2481
  "peer": true
2482
  },
2483
  "node_modules/busboy": {
 
2621
  "version": "1.0.3",
2622
  "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz",
2623
  "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==",
 
2624
  "peer": true,
2625
  "engines": {
2626
  "node": ">=6.0"
 
2752
  "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz",
2753
  "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A=="
2754
  },
2755
+ "node_modules/copy-webpack-plugin": {
2756
+ "version": "11.0.0",
2757
+ "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-11.0.0.tgz",
2758
+ "integrity": "sha512-fX2MWpamkW0hZxMEg0+mYnA40LTosOSa5TqZ9GYIBzyJa9C3QUaMPSE2xAi/buNr8u89SfD9wHSQVBzrRa/SOQ==",
2759
+ "dependencies": {
2760
+ "fast-glob": "^3.2.11",
2761
+ "glob-parent": "^6.0.1",
2762
+ "globby": "^13.1.1",
2763
+ "normalize-path": "^3.0.0",
2764
+ "schema-utils": "^4.0.0",
2765
+ "serialize-javascript": "^6.0.0"
2766
+ },
2767
+ "engines": {
2768
+ "node": ">= 14.15.0"
2769
+ },
2770
+ "funding": {
2771
+ "type": "opencollective",
2772
+ "url": "https://opencollective.com/webpack"
2773
+ },
2774
+ "peerDependencies": {
2775
+ "webpack": "^5.1.0"
2776
+ }
2777
+ },
2778
+ "node_modules/copy-webpack-plugin/node_modules/ajv": {
2779
+ "version": "8.12.0",
2780
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz",
2781
+ "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==",
2782
+ "dependencies": {
2783
+ "fast-deep-equal": "^3.1.1",
2784
+ "json-schema-traverse": "^1.0.0",
2785
+ "require-from-string": "^2.0.2",
2786
+ "uri-js": "^4.2.2"
2787
+ },
2788
+ "funding": {
2789
+ "type": "github",
2790
+ "url": "https://github.com/sponsors/epoberezkin"
2791
+ }
2792
+ },
2793
+ "node_modules/copy-webpack-plugin/node_modules/ajv-keywords": {
2794
+ "version": "5.1.0",
2795
+ "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz",
2796
+ "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==",
2797
+ "dependencies": {
2798
+ "fast-deep-equal": "^3.1.3"
2799
+ },
2800
+ "peerDependencies": {
2801
+ "ajv": "^8.8.2"
2802
+ }
2803
+ },
2804
+ "node_modules/copy-webpack-plugin/node_modules/globby": {
2805
+ "version": "13.2.2",
2806
+ "resolved": "https://registry.npmjs.org/globby/-/globby-13.2.2.tgz",
2807
+ "integrity": "sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w==",
2808
+ "dependencies": {
2809
+ "dir-glob": "^3.0.1",
2810
+ "fast-glob": "^3.3.0",
2811
+ "ignore": "^5.2.4",
2812
+ "merge2": "^1.4.1",
2813
+ "slash": "^4.0.0"
2814
+ },
2815
+ "engines": {
2816
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
2817
+ },
2818
+ "funding": {
2819
+ "url": "https://github.com/sponsors/sindresorhus"
2820
+ }
2821
+ },
2822
+ "node_modules/copy-webpack-plugin/node_modules/json-schema-traverse": {
2823
+ "version": "1.0.0",
2824
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
2825
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="
2826
+ },
2827
+ "node_modules/copy-webpack-plugin/node_modules/schema-utils": {
2828
+ "version": "4.2.0",
2829
+ "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.2.0.tgz",
2830
+ "integrity": "sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==",
2831
+ "dependencies": {
2832
+ "@types/json-schema": "^7.0.9",
2833
+ "ajv": "^8.9.0",
2834
+ "ajv-formats": "^2.1.1",
2835
+ "ajv-keywords": "^5.1.0"
2836
+ },
2837
+ "engines": {
2838
+ "node": ">= 12.13.0"
2839
+ },
2840
+ "funding": {
2841
+ "type": "opencollective",
2842
+ "url": "https://opencollective.com/webpack"
2843
+ }
2844
+ },
2845
+ "node_modules/copy-webpack-plugin/node_modules/slash": {
2846
+ "version": "4.0.0",
2847
+ "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz",
2848
+ "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==",
2849
+ "engines": {
2850
+ "node": ">=12"
2851
+ },
2852
+ "funding": {
2853
+ "url": "https://github.com/sponsors/sindresorhus"
2854
+ }
2855
+ },
2856
  "node_modules/cosmiconfig": {
2857
  "version": "8.1.3",
2858
  "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.1.3.tgz",
 
3179
  "version": "3.0.1",
3180
  "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",
3181
  "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",
 
3182
  "dependencies": {
3183
  "path-type": "^4.0.0"
3184
  },
 
3273
  "version": "1.4.601",
3274
  "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.601.tgz",
3275
  "integrity": "sha512-SpwUMDWe9tQu8JX5QCO1+p/hChAi9AE9UpoC3rcHVc+gdCGlbT3SGb5I1klgb952HRIyvt9wZhSz9bNBYz9swA==",
 
3276
  "peer": true
3277
  },
3278
  "node_modules/emoji-regex": {
 
3302
  "version": "5.15.0",
3303
  "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz",
3304
  "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==",
 
3305
  "dependencies": {
3306
  "graceful-fs": "^4.2.4",
3307
  "tapable": "^2.2.0"
 
3408
  "version": "1.4.1",
3409
  "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.4.1.tgz",
3410
  "integrity": "sha512-cXLGjP0c4T3flZJKQSuziYoq7MlT+rnvfZjfp7h+I7K9BNX54kP9nyWvdbwjQ4u1iWbOL4u96fgeZLToQlZC7w==",
 
3411
  "peer": true
3412
  },
3413
  "node_modules/es-set-tostringtag": {
 
3865
  "version": "4.3.0",
3866
  "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
3867
  "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
 
3868
  "dependencies": {
3869
  "estraverse": "^5.2.0"
3870
  },
 
3876
  "version": "5.3.0",
3877
  "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
3878
  "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
 
3879
  "engines": {
3880
  "node": ">=4.0"
3881
  }
 
3915
  "version": "3.3.0",
3916
  "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz",
3917
  "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==",
 
3918
  "peer": true,
3919
  "engines": {
3920
  "node": ">=0.8.x"
 
3968
  "node_modules/fast-deep-equal": {
3969
  "version": "3.1.3",
3970
  "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
3971
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="
 
3972
  },
3973
  "node_modules/fast-fifo": {
3974
  "version": "1.3.2",
 
3979
  "version": "3.3.1",
3980
  "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz",
3981
  "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==",
 
3982
  "dependencies": {
3983
  "@nodelib/fs.stat": "^2.0.2",
3984
  "@nodelib/fs.walk": "^1.2.3",
 
3994
  "version": "5.1.2",
3995
  "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
3996
  "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
 
3997
  "dependencies": {
3998
  "is-glob": "^4.0.1"
3999
  },
 
4004
  "node_modules/fast-json-stable-stringify": {
4005
  "version": "2.1.0",
4006
  "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
4007
+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw=="
 
4008
  },
4009
  "node_modules/fast-levenshtein": {
4010
  "version": "2.0.6",
 
4016
  "version": "1.15.0",
4017
  "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz",
4018
  "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==",
 
4019
  "dependencies": {
4020
  "reusify": "^1.0.4"
4021
  }
 
4066
  "version": "7.0.1",
4067
  "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
4068
  "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
 
4069
  "dependencies": {
4070
  "to-regex-range": "^5.0.1"
4071
  },
 
4344
  "version": "6.0.2",
4345
  "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
4346
  "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
 
4347
  "dependencies": {
4348
  "is-glob": "^4.0.3"
4349
  },
 
4447
  "version": "4.0.0",
4448
  "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
4449
  "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
 
4450
  "engines": {
4451
  "node": ">=8"
4452
  }
 
4658
  "version": "5.2.4",
4659
  "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz",
4660
  "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==",
 
4661
  "engines": {
4662
  "node": ">= 4"
4663
  }
 
4839
  "version": "2.1.1",
4840
  "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
4841
  "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
 
4842
  "engines": {
4843
  "node": ">=0.10.0"
4844
  }
 
4882
  "version": "4.0.3",
4883
  "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
4884
  "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
 
4885
  "dependencies": {
4886
  "is-extglob": "^2.1.1"
4887
  },
 
4914
  "version": "7.0.0",
4915
  "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
4916
  "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
 
4917
  "engines": {
4918
  "node": ">=0.12.0"
4919
  }
 
5112
  "version": "27.5.1",
5113
  "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz",
5114
  "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==",
 
5115
  "peer": true,
5116
  "dependencies": {
5117
  "@types/node": "*",
 
5126
  "version": "8.1.1",
5127
  "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",
5128
  "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",
 
5129
  "peer": true,
5130
  "dependencies": {
5131
  "has-flag": "^4.0.0"
 
5216
  "node_modules/json-schema-traverse": {
5217
  "version": "0.4.1",
5218
  "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
5219
+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="
 
5220
  },
5221
  "node_modules/json-stable-stringify-without-jsonify": {
5222
  "version": "1.0.1",
 
5827
  "version": "4.3.0",
5828
  "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz",
5829
  "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==",
 
5830
  "peer": true,
5831
  "engines": {
5832
  "node": ">=6.11.5"
 
5886
  "dev": true
5887
  },
5888
  "node_modules/long": {
5889
+ "version": "5.2.3",
5890
+ "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz",
5891
+ "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q=="
5892
  },
5893
  "node_modules/loose-envify": {
5894
  "version": "1.4.0",
 
6006
  "version": "2.0.0",
6007
  "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
6008
  "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",
 
6009
  "peer": true
6010
  },
6011
  "node_modules/merge2": {
6012
  "version": "1.4.1",
6013
  "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
6014
  "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
 
6015
  "engines": {
6016
  "node": ">= 8"
6017
  }
 
6441
  "version": "4.0.5",
6442
  "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",
6443
  "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",
 
6444
  "dependencies": {
6445
  "braces": "^3.0.2",
6446
  "picomatch": "^2.3.1"
 
6605
  "version": "2.6.2",
6606
  "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz",
6607
  "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==",
 
6608
  "peer": true
6609
  },
6610
  "node_modules/next": {
 
6731
  "version": "2.0.14",
6732
  "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz",
6733
  "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==",
 
6734
  "peer": true
6735
  },
6736
+ "node_modules/normalize-path": {
6737
+ "version": "3.0.0",
6738
+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
6739
+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
6740
+ "engines": {
6741
+ "node": ">=0.10.0"
6742
+ }
6743
+ },
6744
  "node_modules/nth-check": {
6745
  "version": "2.1.1",
6746
  "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz",
 
6909
  "protobufjs": "^6.8.8"
6910
  }
6911
  },
6912
+ "node_modules/onnx-proto/node_modules/long": {
6913
+ "version": "4.0.0",
6914
+ "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz",
6915
+ "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA=="
6916
+ },
6917
+ "node_modules/onnx-proto/node_modules/protobufjs": {
6918
+ "version": "6.11.4",
6919
+ "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.4.tgz",
6920
+ "integrity": "sha512-5kQWPaJHi1WoCpjTGszzQ32PG2F4+wRY6BmAT4Vfw56Q2FZ4YZzK20xUYQH4YkfehY1e6QSICrJquM6xXZNcrw==",
6921
+ "hasInstallScript": true,
6922
+ "dependencies": {
6923
+ "@protobufjs/aspromise": "^1.1.2",
6924
+ "@protobufjs/base64": "^1.1.2",
6925
+ "@protobufjs/codegen": "^2.0.4",
6926
+ "@protobufjs/eventemitter": "^1.1.0",
6927
+ "@protobufjs/fetch": "^1.1.0",
6928
+ "@protobufjs/float": "^1.0.2",
6929
+ "@protobufjs/inquire": "^1.1.0",
6930
+ "@protobufjs/path": "^1.1.2",
6931
+ "@protobufjs/pool": "^1.1.0",
6932
+ "@protobufjs/utf8": "^1.1.0",
6933
+ "@types/long": "^4.0.1",
6934
+ "@types/node": ">=13.7.0",
6935
+ "long": "^4.0.0"
6936
+ },
6937
+ "bin": {
6938
+ "pbjs": "bin/pbjs",
6939
+ "pbts": "bin/pbts"
6940
+ }
6941
+ },
6942
  "node_modules/onnxruntime-common": {
6943
  "version": "1.14.0",
6944
  "resolved": "https://registry.npmjs.org/onnxruntime-common/-/onnxruntime-common-1.14.0.tgz",
 
6959
  }
6960
  },
6961
  "node_modules/onnxruntime-web": {
6962
+ "version": "1.16.3",
6963
+ "resolved": "https://registry.npmjs.org/onnxruntime-web/-/onnxruntime-web-1.16.3.tgz",
6964
+ "integrity": "sha512-8O1xCG/RcNQNYYWvdiQJSNpncVg78OVOFeV6MYs/jx++/b12oje8gYUzKqz9wR/sXiX/8TCvdyHgEjj5gQGKUg==",
6965
  "dependencies": {
6966
  "flatbuffers": "^1.12.0",
6967
  "guid-typescript": "^1.0.9",
6968
+ "long": "^5.2.3",
6969
+ "onnxruntime-common": "~1.16.3",
6970
+ "platform": "^1.3.6",
6971
+ "protobufjs": "^7.2.4"
6972
  }
6973
  },
6974
+ "node_modules/onnxruntime-web/node_modules/onnxruntime-common": {
6975
+ "version": "1.16.3",
6976
+ "resolved": "https://registry.npmjs.org/onnxruntime-common/-/onnxruntime-common-1.16.3.tgz",
6977
+ "integrity": "sha512-ZZfFzEqBf6YIGwB9PtBLESHI53jMXA+/hn+ACVUbEfPuK2xI5vMGpLPn+idpwCmHsKJNRzRwqV12K+6TQj6tug=="
6978
+ },
6979
  "node_modules/openai": {
6980
  "version": "3.3.0",
6981
  "resolved": "https://registry.npmjs.org/openai/-/openai-3.3.0.tgz",
 
7242
  "version": "2.3.1",
7243
  "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
7244
  "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
 
7245
  "engines": {
7246
  "node": ">=8.6"
7247
  },
 
7343
  }
7344
  },
7345
  "node_modules/protobufjs": {
7346
+ "version": "7.2.5",
7347
+ "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.5.tgz",
7348
+ "integrity": "sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A==",
7349
  "hasInstallScript": true,
7350
  "dependencies": {
7351
  "@protobufjs/aspromise": "^1.1.2",
 
7358
  "@protobufjs/path": "^1.1.2",
7359
  "@protobufjs/pool": "^1.1.0",
7360
  "@protobufjs/utf8": "^1.1.0",
 
7361
  "@types/node": ">=13.7.0",
7362
+ "long": "^5.0.0"
7363
  },
7364
+ "engines": {
7365
+ "node": ">=12.0.0"
 
7366
  }
7367
  },
7368
  "node_modules/proxy-from-env": {
 
7464
  "version": "1.2.3",
7465
  "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
7466
  "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
 
7467
  "funding": [
7468
  {
7469
  "type": "github",
 
7488
  "version": "2.1.0",
7489
  "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
7490
  "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==",
 
 
7491
  "dependencies": {
7492
  "safe-buffer": "^5.1.0"
7493
  }
 
7677
  "node": ">=0.10.0"
7678
  }
7679
  },
7680
+ "node_modules/require-from-string": {
7681
+ "version": "2.0.2",
7682
+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
7683
+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
7684
+ "engines": {
7685
+ "node": ">=0.10.0"
7686
+ }
7687
+ },
7688
  "node_modules/requires-port": {
7689
  "version": "1.0.0",
7690
  "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",
 
7735
  "version": "1.0.4",
7736
  "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",
7737
  "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",
 
7738
  "engines": {
7739
  "iojs": ">=1.0.0",
7740
  "node": ">=0.10.0"
 
7764
  "version": "1.2.0",
7765
  "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
7766
  "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
 
7767
  "funding": [
7768
  {
7769
  "type": "github",
 
7861
  "version": "3.3.0",
7862
  "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz",
7863
  "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==",
 
7864
  "peer": true,
7865
  "dependencies": {
7866
  "@types/json-schema": "^7.0.8",
 
7893
  "version": "6.0.1",
7894
  "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz",
7895
  "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==",
 
 
7896
  "dependencies": {
7897
  "randombytes": "^2.1.0"
7898
  }
 
8133
  "version": "0.5.21",
8134
  "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",
8135
  "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",
 
8136
  "peer": true,
8137
  "dependencies": {
8138
  "buffer-from": "^1.0.0",
 
8143
  "version": "0.6.1",
8144
  "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
8145
  "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
 
8146
  "peer": true,
8147
  "engines": {
8148
  "node": ">=0.10.0"
 
8434
  "version": "2.2.1",
8435
  "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz",
8436
  "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==",
 
8437
  "engines": {
8438
  "node": ">=6"
8439
  }
 
8468
  "version": "5.24.0",
8469
  "resolved": "https://registry.npmjs.org/terser/-/terser-5.24.0.tgz",
8470
  "integrity": "sha512-ZpGR4Hy3+wBEzVEnHvstMvqpD/nABNelQn/z2r0fjVWGQsN3bpOLzQlqDxmb4CDZnXq5lpjnQ+mHQLAOpfM5iw==",
 
8471
  "peer": true,
8472
  "dependencies": {
8473
  "@jridgewell/source-map": "^0.3.3",
 
8486
  "version": "5.3.9",
8487
  "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz",
8488
  "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==",
 
8489
  "peer": true,
8490
  "dependencies": {
8491
  "@jridgewell/trace-mapping": "^0.3.17",
 
8520
  "version": "2.20.3",
8521
  "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
8522
  "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
 
8523
  "peer": true
8524
  },
8525
  "node_modules/text-table": {
 
8591
  "version": "5.0.1",
8592
  "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
8593
  "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
 
8594
  "dependencies": {
8595
  "is-number": "^7.0.0"
8596
  },
 
8905
  "version": "1.0.13",
8906
  "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz",
8907
  "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==",
 
8908
  "funding": [
8909
  {
8910
  "type": "opencollective",
 
8935
  "version": "4.4.1",
8936
  "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
8937
  "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
 
8938
  "dependencies": {
8939
  "punycode": "^2.1.0"
8940
  }
 
9064
  "version": "5.89.0",
9065
  "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.89.0.tgz",
9066
  "integrity": "sha512-qyfIC10pOr70V+jkmud8tMfajraGCZMBWJtrmuBymQKCrLTRejBI8STDp1MCyZu/QTdZSeacCQYpYNQVOzX5kw==",
 
9067
  "peer": true,
9068
  "dependencies": {
9069
  "@types/eslint-scope": "^3.7.3",
 
9111
  "version": "3.2.3",
9112
  "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz",
9113
  "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==",
 
9114
  "peer": true,
9115
  "engines": {
9116
  "node": ">=10.13.0"
 
9120
  "version": "5.1.1",
9121
  "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",
9122
  "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",
 
9123
  "peer": true,
9124
  "dependencies": {
9125
  "esrecurse": "^4.3.0",
 
9133
  "version": "4.3.0",
9134
  "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",
9135
  "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",
 
9136
  "peer": true,
9137
  "engines": {
9138
  "node": ">=4.0"
package.json CHANGED
@@ -13,15 +13,18 @@
13
  "@emotion/styled": "^11.11.0",
14
  "@mui/icons-material": "^5.14.19",
15
  "@mui/material": "^5.14.16",
 
16
  "@upstash/ratelimit": "^0.4.4",
17
  "@vercel/kv": "^0.2.4",
18
  "@xenova/transformers": "^2.7.0",
19
  "ai": "^2.2.20",
 
20
  "jsdom": "^22.1.0",
21
  "langchain": "^0.0.180",
22
  "lucide-react": "^0.292.0",
23
  "next": "14.0.1",
24
  "node-fetch": "^3.3.2",
 
25
  "openai": "^3.3.0",
26
  "openai-edge": "^1.2.2",
27
  "openai-function-calling-tools": "^6.1.3",
 
13
  "@emotion/styled": "^11.11.0",
14
  "@mui/icons-material": "^5.14.19",
15
  "@mui/material": "^5.14.16",
16
+ "@ricky0123/vad-react": "^0.0.18",
17
  "@upstash/ratelimit": "^0.4.4",
18
  "@vercel/kv": "^0.2.4",
19
  "@xenova/transformers": "^2.7.0",
20
  "ai": "^2.2.20",
21
+ "copy-webpack-plugin": "^11.0.0",
22
  "jsdom": "^22.1.0",
23
  "langchain": "^0.0.180",
24
  "lucide-react": "^0.292.0",
25
  "next": "14.0.1",
26
  "node-fetch": "^3.3.2",
27
+ "onnxruntime-web": "^1.16.3",
28
  "openai": "^3.3.0",
29
  "openai-edge": "^1.2.2",
30
  "openai-function-calling-tools": "^6.1.3",