shkumar156 commited on
Commit
5373b2b
·
verified ·
1 Parent(s): 9642d4e

Upload 14 files

Browse files
Files changed (14) hide show
  1. .dockerignore +10 -0
  2. .gitignore +120 -0
  3. Dockerfile +31 -0
  4. README.md +19 -11
  5. detect.py +438 -0
  6. package-lock.json +1547 -0
  7. package.json +29 -0
  8. requirements.txt +8 -0
  9. runtime.txt +1 -0
  10. server.js +313 -0
  11. start-app.bat +20 -0
  12. start-app.ps1 +19 -0
  13. test-server.js +28 -0
  14. yolov5s.pt +3 -0
.dockerignore ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ runs
2
+ uploads
3
+ __pycache__
4
+ *.pyc
5
+ .git
6
+ node_modules
7
+ npm-debug.log
8
+ .DS_Store
9
+ frontend
10
+ CatBreeds.ipynb
.gitignore ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dependencies
2
+ node_modules/
3
+ npm-debug.log*
4
+ yarn-debug.log*
5
+ yarn-error.log*
6
+
7
+ # Runtime data
8
+ pids
9
+ *.pid
10
+ *.seed
11
+ *.pid.lock
12
+
13
+ # Coverage directory used by tools like istanbul
14
+ coverage/
15
+
16
+ # nyc test coverage
17
+ .nyc_output
18
+
19
+ # Grunt intermediate storage
20
+ .grunt
21
+
22
+ # Bower dependency directory
23
+ bower_components
24
+
25
+ # node-waf configuration
26
+ .lock-wscript
27
+
28
+ # Compiled binary addons
29
+ build/Release
30
+
31
+ # Dependency directories
32
+ jspm_packages/
33
+
34
+ # Optional npm cache directory
35
+ .npm
36
+
37
+ # Optional REPL history
38
+ .node_repl_history
39
+
40
+ # Output of 'npm pack'
41
+ *.tgz
42
+
43
+ # Yarn Integrity file
44
+ .yarn-integrity
45
+
46
+ # dotenv environment variables file
47
+ .env
48
+ .env.local
49
+ .env.development.local
50
+ .env.test.local
51
+ .env.production.local
52
+
53
+ # Uploaded images and detection outputs
54
+ uploads/
55
+ runs/
56
+
57
+ # Logs
58
+ logs
59
+ *.log
60
+
61
+ # Runtime data
62
+ pids
63
+ *.pid
64
+ *.seed
65
+ *.pid.lock
66
+
67
+ # Directory for instrumented libs generated by jscoverage/JSCover
68
+ lib-cov
69
+
70
+ # Coverage directory used by tools like istanbul
71
+ coverage
72
+
73
+ # Grunt intermediate storage
74
+ .grunt
75
+
76
+ # Bower dependency directory
77
+ bower_components
78
+
79
+ # node-waf configuration
80
+ .lock-wscript
81
+
82
+ # Compiled binary addons
83
+ build/Release
84
+
85
+ # Dependency directories
86
+ jspm_packages/
87
+
88
+ # Optional npm cache directory
89
+ .npm
90
+
91
+ # Optional REPL history
92
+ .node_repl_history
93
+
94
+ # Output of 'npm pack'
95
+ *.tgz
96
+
97
+ # Yarn Integrity file
98
+ .yarn-integrity
99
+
100
+ # dotenv environment variables file
101
+ .env
102
+ .env.local
103
+ .env.development.local
104
+ .env.test.local
105
+ .env.production.local
106
+
107
+ # IDE files
108
+ .vscode/
109
+ .idea/
110
+ *.swp
111
+ *.swo
112
+
113
+ # OS generated files
114
+ .DS_Store
115
+ .DS_Store?
116
+ ._*
117
+ .Spotlight-V100
118
+ .Trashes
119
+ ehthumbs.db
120
+ Thumbs.db
Dockerfile ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Python image as base
2
+ FROM python:3.11-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Install system dependencies (including libgl1 for OpenCV and Node.js)
8
+ RUN apt-get update && apt-get install -y \
9
+ git \
10
+ curl \
11
+ libgl1 \
12
+ && curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
13
+ && apt-get install -y nodejs \
14
+ && rm -rf /var/lib/apt/lists/*
15
+
16
+ # Install Python dependencies
17
+ COPY requirements.txt .
18
+ RUN pip install --no-cache-dir -r requirements.txt
19
+
20
+ # Install Node.js dependencies
21
+ COPY package*.json ./
22
+ RUN npm install --omit=dev
23
+
24
+ # Copy the rest of your backend code
25
+ COPY . .
26
+
27
+ # Expose the port your Node.js server runs on (Hugging Face expects 7860)
28
+ EXPOSE 7860
29
+
30
+ # Start the Node.js backend
31
+ CMD ["node", "server.js"]
README.md CHANGED
@@ -1,11 +1,19 @@
1
- ---
2
- title: Backend Object Detection
3
- emoji: 👀
4
- colorFrom: green
5
- colorTo: red
6
- sdk: docker
7
- pinned: false
8
- license: mit
9
- ---
10
-
11
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
1
+ # Fullstack YOLOv5 Backend for Hugging Face Spaces
2
+
3
+ This backend combines Node.js (Express) and Python (YOLOv5 FastAPI) for object detection, ready to deploy on Hugging Face Spaces using Docker.
4
+
5
+ ## Files
6
+ - `server.js`: Node.js backend
7
+ - `detect.py`, `yolov5_api.py`: Python detection logic
8
+ - `yolov5s.pt`: YOLOv5 model weights
9
+ - `requirements.txt`: Python dependencies
10
+ - `package.json`: Node.js dependencies
11
+ - `Dockerfile`: Multi-runtime deployment
12
+
13
+ ## Deployment
14
+ 1. Upload all files to your Hugging Face Space (Docker > Blank template).
15
+ 2. The backend will be available at `https://your-space-name.hf.space`.
16
+
17
+ ## Notes
18
+ - The backend listens on port 7860 (required by Hugging Face Spaces).
19
+ - Make sure your frontend points to this backend for API calls.
detect.py ADDED
@@ -0,0 +1,438 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
2
+ """
3
+ Run YOLOv5 detection inference on images, videos, directories, globs, YouTube, webcam, streams, etc.
4
+
5
+ Usage - sources:
6
+ $ python detect.py --weights yolov5s.pt --source 0 # webcam
7
+ img.jpg # image
8
+ vid.mp4 # video
9
+ screen # screenshot
10
+ path/ # directory
11
+ list.txt # list of images
12
+ list.streams # list of streams
13
+ 'path/*.jpg' # glob
14
+ 'https://youtu.be/LNwODJXcvt4' # YouTube
15
+ 'rtsp://example.com/media.mp4' # RTSP, RTMP, HTTP stream
16
+
17
+ Usage - formats:
18
+ $ python detect.py --weights yolov5s.pt # PyTorch
19
+ yolov5s.torchscript # TorchScript
20
+ yolov5s.onnx # ONNX Runtime or OpenCV DNN with --dnn
21
+ yolov5s_openvino_model # OpenVINO
22
+ yolov5s.engine # TensorRT
23
+ yolov5s.mlpackage # CoreML (macOS-only)
24
+ yolov5s_saved_model # TensorFlow SavedModel
25
+ yolov5s.pb # TensorFlow GraphDef
26
+ yolov5s.tflite # TensorFlow Lite
27
+ yolov5s_edgetpu.tflite # TensorFlow Edge TPU
28
+ yolov5s_paddle_model # PaddlePaddle
29
+ """
30
+
31
+ import argparse
32
+ import csv
33
+ import os
34
+ import platform
35
+ import sys
36
+ from pathlib import Path
37
+
38
+ import torch
39
+
40
+ FILE = Path(__file__).resolve()
41
+ ROOT = FILE.parents[0] # YOLOv5 root directory
42
+ if str(ROOT) not in sys.path:
43
+ sys.path.append(str(ROOT)) # add ROOT to PATH
44
+ ROOT = Path(os.path.relpath(ROOT, Path.cwd())) # relative
45
+
46
+ from ultralytics.utils.plotting import Annotator, colors, save_one_box
47
+
48
+ from models.common import DetectMultiBackend
49
+ from utils.dataloaders import IMG_FORMATS, VID_FORMATS, LoadImages, LoadScreenshots, LoadStreams
50
+ from utils.general import (
51
+ LOGGER,
52
+ Profile,
53
+ check_file,
54
+ check_img_size,
55
+ check_imshow,
56
+ check_requirements,
57
+ colorstr,
58
+ cv2,
59
+ increment_path,
60
+ non_max_suppression,
61
+ print_args,
62
+ scale_boxes,
63
+ strip_optimizer,
64
+ xyxy2xywh,
65
+ )
66
+ from utils.torch_utils import select_device, smart_inference_mode
67
+
68
+
69
+ @smart_inference_mode()
70
+ def run(
71
+ weights=ROOT / "yolov5s.pt", # model path or triton URL
72
+ source=ROOT / "data/images", # file/dir/URL/glob/screen/0(webcam)
73
+ data=ROOT / "data/coco128.yaml", # dataset.yaml path
74
+ imgsz=(640, 640), # inference size (height, width)
75
+ conf_thres=0.25, # confidence threshold
76
+ iou_thres=0.45, # NMS IOU threshold
77
+ max_det=1000, # maximum detections per image
78
+ device="", # cuda device, i.e. 0 or 0,1,2,3 or cpu
79
+ view_img=False, # show results
80
+ save_txt=False, # save results to *.txt
81
+ save_format=0, # save boxes coordinates in YOLO format or Pascal-VOC format (0 for YOLO and 1 for Pascal-VOC)
82
+ save_csv=False, # save results in CSV format
83
+ save_conf=False, # save confidences in --save-txt labels
84
+ save_crop=False, # save cropped prediction boxes
85
+ nosave=False, # do not save images/videos
86
+ classes=None, # filter by class: --class 0, or --class 0 2 3
87
+ agnostic_nms=False, # class-agnostic NMS
88
+ augment=False, # augmented inference
89
+ visualize=False, # visualize features
90
+ update=False, # update all models
91
+ project=ROOT / "runs/detect", # save results to project/name
92
+ name="exp", # save results to project/name
93
+ exist_ok=False, # existing project/name ok, do not increment
94
+ line_thickness=3, # bounding box thickness (pixels)
95
+ hide_labels=False, # hide labels
96
+ hide_conf=False, # hide confidences
97
+ half=False, # use FP16 half-precision inference
98
+ dnn=False, # use OpenCV DNN for ONNX inference
99
+ vid_stride=1, # video frame-rate stride
100
+ ):
101
+ """
102
+ Runs YOLOv5 detection inference on various sources like images, videos, directories, streams, etc.
103
+
104
+ Args:
105
+ weights (str | Path): Path to the model weights file or a Triton URL. Default is 'yolov5s.pt'.
106
+ source (str | Path): Input source, which can be a file, directory, URL, glob pattern, screen capture, or webcam
107
+ index. Default is 'data/images'.
108
+ data (str | Path): Path to the dataset YAML file. Default is 'data/coco128.yaml'.
109
+ imgsz (tuple[int, int]): Inference image size as a tuple (height, width). Default is (640, 640).
110
+ conf_thres (float): Confidence threshold for detections. Default is 0.25.
111
+ iou_thres (float): Intersection Over Union (IOU) threshold for non-max suppression. Default is 0.45.
112
+ max_det (int): Maximum number of detections per image. Default is 1000.
113
+ device (str): CUDA device identifier (e.g., '0' or '0,1,2,3') or 'cpu'. Default is an empty string, which uses the
114
+ best available device.
115
+ view_img (bool): If True, display inference results using OpenCV. Default is False.
116
+ save_txt (bool): If True, save results in a text file. Default is False.
117
+ save_csv (bool): If True, save results in a CSV file. Default is False.
118
+ save_conf (bool): If True, include confidence scores in the saved results. Default is False.
119
+ save_crop (bool): If True, save cropped prediction boxes. Default is False.
120
+ nosave (bool): If True, do not save inference images or videos. Default is False.
121
+ classes (list[int]): List of class indices to filter detections by. Default is None.
122
+ agnostic_nms (bool): If True, perform class-agnostic non-max suppression. Default is False.
123
+ augment (bool): If True, use augmented inference. Default is False.
124
+ visualize (bool): If True, visualize feature maps. Default is False.
125
+ update (bool): If True, update all models' weights. Default is False.
126
+ project (str | Path): Directory to save results. Default is 'runs/detect'.
127
+ name (str): Name of the current experiment; used to create a subdirectory within 'project'. Default is 'exp'.
128
+ exist_ok (bool): If True, existing directories with the same name are reused instead of being incremented. Default is
129
+ False.
130
+ line_thickness (int): Thickness of bounding box lines in pixels. Default is 3.
131
+ hide_labels (bool): If True, do not display labels on bounding boxes. Default is False.
132
+ hide_conf (bool): If True, do not display confidence scores on bounding boxes. Default is False.
133
+ half (bool): If True, use FP16 half-precision inference. Default is False.
134
+ dnn (bool): If True, use OpenCV DNN backend for ONNX inference. Default is False.
135
+ vid_stride (int): Stride for processing video frames, to skip frames between processing. Default is 1.
136
+
137
+ Returns:
138
+ None
139
+
140
+ Examples:
141
+ ```python
142
+ from ultralytics import run
143
+
144
+ # Run inference on an image
145
+ run(source='data/images/example.jpg', weights='yolov5s.pt', device='0')
146
+
147
+ # Run inference on a video with specific confidence threshold
148
+ run(source='data/videos/example.mp4', weights='yolov5s.pt', conf_thres=0.4, device='0')
149
+ ```
150
+ """
151
+ source = str(source)
152
+ save_img = not nosave and not source.endswith(".txt") # save inference images
153
+ is_file = Path(source).suffix[1:] in (IMG_FORMATS + VID_FORMATS)
154
+ is_url = source.lower().startswith(("rtsp://", "rtmp://", "http://", "https://"))
155
+ webcam = source.isnumeric() or source.endswith(".streams") or (is_url and not is_file)
156
+ screenshot = source.lower().startswith("screen")
157
+ if is_url and is_file:
158
+ source = check_file(source) # download
159
+
160
+ # Directories
161
+ save_dir = increment_path(Path(project) / name, exist_ok=exist_ok) # increment run
162
+ (save_dir / "labels" if save_txt else save_dir).mkdir(parents=True, exist_ok=True) # make dir
163
+
164
+ # Load model
165
+ device = select_device(device)
166
+ model = DetectMultiBackend(weights, device=device, dnn=dnn, data=data, fp16=half)
167
+ stride, names, pt = model.stride, model.names, model.pt
168
+ imgsz = check_img_size(imgsz, s=stride) # check image size
169
+
170
+ # Dataloader
171
+ bs = 1 # batch_size
172
+ if webcam:
173
+ view_img = check_imshow(warn=True)
174
+ dataset = LoadStreams(source, img_size=imgsz, stride=stride, auto=pt, vid_stride=vid_stride)
175
+ bs = len(dataset)
176
+ elif screenshot:
177
+ dataset = LoadScreenshots(source, img_size=imgsz, stride=stride, auto=pt)
178
+ else:
179
+ dataset = LoadImages(source, img_size=imgsz, stride=stride, auto=pt, vid_stride=vid_stride)
180
+ vid_path, vid_writer = [None] * bs, [None] * bs
181
+
182
+ # Run inference
183
+ model.warmup(imgsz=(1 if pt or model.triton else bs, 3, *imgsz)) # warmup
184
+ seen, windows, dt = 0, [], (Profile(device=device), Profile(device=device), Profile(device=device))
185
+ for path, im, im0s, vid_cap, s in dataset:
186
+ with dt[0]:
187
+ im = torch.from_numpy(im).to(model.device)
188
+ im = im.half() if model.fp16 else im.float() # uint8 to fp16/32
189
+ im /= 255 # 0 - 255 to 0.0 - 1.0
190
+ if len(im.shape) == 3:
191
+ im = im[None] # expand for batch dim
192
+ if model.xml and im.shape[0] > 1:
193
+ ims = torch.chunk(im, im.shape[0], 0)
194
+
195
+ # Inference
196
+ with dt[1]:
197
+ visualize = increment_path(save_dir / Path(path).stem, mkdir=True) if visualize else False
198
+ if model.xml and im.shape[0] > 1:
199
+ pred = None
200
+ for image in ims:
201
+ if pred is None:
202
+ pred = model(image, augment=augment, visualize=visualize).unsqueeze(0)
203
+ else:
204
+ pred = torch.cat((pred, model(image, augment=augment, visualize=visualize).unsqueeze(0)), dim=0)
205
+ pred = [pred, None]
206
+ else:
207
+ pred = model(im, augment=augment, visualize=visualize)
208
+ # NMS
209
+ with dt[2]:
210
+ pred = non_max_suppression(pred, conf_thres, iou_thres, classes, agnostic_nms, max_det=max_det)
211
+
212
+ # Second-stage classifier (optional)
213
+ # pred = utils.general.apply_classifier(pred, classifier_model, im, im0s)
214
+
215
+ # Define the path for the CSV file
216
+ csv_path = save_dir / "predictions.csv"
217
+
218
+ # Create or append to the CSV file
219
+ def write_to_csv(image_name, prediction, confidence):
220
+ """Writes prediction data for an image to a CSV file, appending if the file exists."""
221
+ data = {"Image Name": image_name, "Prediction": prediction, "Confidence": confidence}
222
+ file_exists = os.path.isfile(csv_path)
223
+ with open(csv_path, mode="a", newline="") as f:
224
+ writer = csv.DictWriter(f, fieldnames=data.keys())
225
+ if not file_exists:
226
+ writer.writeheader()
227
+ writer.writerow(data)
228
+
229
+ # Process predictions
230
+ for i, det in enumerate(pred): # per image
231
+ seen += 1
232
+ if webcam: # batch_size >= 1
233
+ p, im0, frame = path[i], im0s[i].copy(), dataset.count
234
+ s += f"{i}: "
235
+ else:
236
+ p, im0, frame = path, im0s.copy(), getattr(dataset, "frame", 0)
237
+
238
+ p = Path(p) # to Path
239
+ save_path = str(save_dir / p.name) # im.jpg
240
+ txt_path = str(save_dir / "labels" / p.stem) + ("" if dataset.mode == "image" else f"_{frame}") # im.txt
241
+ s += "{:g}x{:g} ".format(*im.shape[2:]) # print string
242
+ gn = torch.tensor(im0.shape)[[1, 0, 1, 0]] # normalization gain whwh
243
+ imc = im0.copy() if save_crop else im0 # for save_crop
244
+ annotator = Annotator(im0, line_width=line_thickness, example=str(names))
245
+ if len(det):
246
+ # Rescale boxes from img_size to im0 size
247
+ det[:, :4] = scale_boxes(im.shape[2:], det[:, :4], im0.shape).round()
248
+
249
+ # Print results
250
+ for c in det[:, 5].unique():
251
+ n = (det[:, 5] == c).sum() # detections per class
252
+ s += f"{n} {names[int(c)]}{'s' * (n > 1)}, " # add to string
253
+
254
+ # Write results
255
+ for *xyxy, conf, cls in reversed(det):
256
+ c = int(cls) # integer class
257
+ label = names[c] if hide_conf else f"{names[c]}"
258
+ confidence = float(conf)
259
+ confidence_str = f"{confidence:.2f}"
260
+
261
+ if save_csv:
262
+ write_to_csv(p.name, label, confidence_str)
263
+
264
+ if save_txt: # Write to file
265
+ if save_format == 0:
266
+ coords = (
267
+ (xyxy2xywh(torch.tensor(xyxy).view(1, 4)) / gn).view(-1).tolist()
268
+ ) # normalized xywh
269
+ else:
270
+ coords = (torch.tensor(xyxy).view(1, 4) / gn).view(-1).tolist() # xyxy
271
+ line = (cls, *coords, conf) if save_conf else (cls, *coords) # label format
272
+ with open(f"{txt_path}.txt", "a") as f:
273
+ f.write(("%g " * len(line)).rstrip() % line + "\n")
274
+
275
+ if save_img or save_crop or view_img: # Add bbox to image
276
+ c = int(cls) # integer class
277
+ label = None if hide_labels else (names[c] if hide_conf else f"{names[c]} {conf:.2f}")
278
+ annotator.box_label(xyxy, label, color=colors(c, True))
279
+ if save_crop:
280
+ save_one_box(xyxy, imc, file=save_dir / "crops" / names[c] / f"{p.stem}.jpg", BGR=True)
281
+
282
+ # Stream results
283
+ im0 = annotator.result()
284
+ if view_img:
285
+ if platform.system() == "Linux" and p not in windows:
286
+ windows.append(p)
287
+ cv2.namedWindow(str(p), cv2.WINDOW_NORMAL | cv2.WINDOW_KEEPRATIO) # allow window resize (Linux)
288
+ cv2.resizeWindow(str(p), im0.shape[1], im0.shape[0])
289
+ cv2.imshow(str(p), im0)
290
+ cv2.waitKey(1) # 1 millisecond
291
+
292
+ # Save results (image with detections)
293
+ if save_img:
294
+ if dataset.mode == "image":
295
+ cv2.imwrite(save_path, im0)
296
+ else: # 'video' or 'stream'
297
+ if vid_path[i] != save_path: # new video
298
+ vid_path[i] = save_path
299
+ if isinstance(vid_writer[i], cv2.VideoWriter):
300
+ vid_writer[i].release() # release previous video writer
301
+ if vid_cap: # video
302
+ fps = vid_cap.get(cv2.CAP_PROP_FPS)
303
+ w = int(vid_cap.get(cv2.CAP_PROP_FRAME_WIDTH))
304
+ h = int(vid_cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
305
+ else: # stream
306
+ fps, w, h = 30, im0.shape[1], im0.shape[0]
307
+ save_path = str(Path(save_path).with_suffix(".mp4")) # force *.mp4 suffix on results videos
308
+ vid_writer[i] = cv2.VideoWriter(save_path, cv2.VideoWriter_fourcc(*"mp4v"), fps, (w, h))
309
+ vid_writer[i].write(im0)
310
+
311
+ # Print time (inference-only)
312
+ LOGGER.info(f"{s}{'' if len(det) else '(no detections), '}{dt[1].dt * 1e3:.1f}ms")
313
+
314
+ # Print results
315
+ t = tuple(x.t / seen * 1e3 for x in dt) # speeds per image
316
+ LOGGER.info(f"Speed: %.1fms pre-process, %.1fms inference, %.1fms NMS per image at shape {(1, 3, *imgsz)}" % t)
317
+ if save_txt or save_img:
318
+ s = f"\n{len(list(save_dir.glob('labels/*.txt')))} labels saved to {save_dir / 'labels'}" if save_txt else ""
319
+ LOGGER.info(f"Results saved to {colorstr('bold', save_dir)}{s}")
320
+ if update:
321
+ strip_optimizer(weights[0]) # update model (to fix SourceChangeWarning)
322
+
323
+
324
+ def parse_opt():
325
+ """
326
+ Parse command-line arguments for YOLOv5 detection, allowing custom inference options and model configurations.
327
+
328
+ Args:
329
+ --weights (str | list[str], optional): Model path or Triton URL. Defaults to ROOT / 'yolov5s.pt'.
330
+ --source (str, optional): File/dir/URL/glob/screen/0(webcam). Defaults to ROOT / 'data/images'.
331
+ --data (str, optional): Dataset YAML path. Provides dataset configuration information.
332
+ --imgsz (list[int], optional): Inference size (height, width). Defaults to [640].
333
+ --conf-thres (float, optional): Confidence threshold. Defaults to 0.25.
334
+ --iou-thres (float, optional): NMS IoU threshold. Defaults to 0.45.
335
+ --max-det (int, optional): Maximum number of detections per image. Defaults to 1000.
336
+ --device (str, optional): CUDA device, i.e., '0' or '0,1,2,3' or 'cpu'. Defaults to "".
337
+ --view-img (bool, optional): Flag to display results. Defaults to False.
338
+ --save-txt (bool, optional): Flag to save results to *.txt files. Defaults to False.
339
+ --save-csv (bool, optional): Flag to save results in CSV format. Defaults to False.
340
+ --save-conf (bool, optional): Flag to save confidences in labels saved via --save-txt. Defaults to False.
341
+ --save-crop (bool, optional): Flag to save cropped prediction boxes. Defaults to False.
342
+ --nosave (bool, optional): Flag to prevent saving images/videos. Defaults to False.
343
+ --classes (list[int], optional): List of classes to filter results by, e.g., '--classes 0 2 3'. Defaults to None.
344
+ --agnostic-nms (bool, optional): Flag for class-agnostic NMS. Defaults to False.
345
+ --augment (bool, optional): Flag for augmented inference. Defaults to False.
346
+ --visualize (bool, optional): Flag for visualizing features. Defaults to False.
347
+ --update (bool, optional): Flag to update all models in the model directory. Defaults to False.
348
+ --project (str, optional): Directory to save results. Defaults to ROOT / 'runs/detect'.
349
+ --name (str, optional): Sub-directory name for saving results within --project. Defaults to 'exp'.
350
+ --exist-ok (bool, optional): Flag to allow overwriting if the project/name already exists. Defaults to False.
351
+ --line-thickness (int, optional): Thickness (in pixels) of bounding boxes. Defaults to 3.
352
+ --hide-labels (bool, optional): Flag to hide labels in the output. Defaults to False.
353
+ --hide-conf (bool, optional): Flag to hide confidences in the output. Defaults to False.
354
+ --half (bool, optional): Flag to use FP16 half-precision inference. Defaults to False.
355
+ --dnn (bool, optional): Flag to use OpenCV DNN for ONNX inference. Defaults to False.
356
+ --vid-stride (int, optional): Video frame-rate stride, determining the number of frames to skip in between
357
+ consecutive frames. Defaults to 1.
358
+
359
+ Returns:
360
+ argparse.Namespace: Parsed command-line arguments as an argparse.Namespace object.
361
+
362
+ Example:
363
+ ```python
364
+ from ultralytics import YOLOv5
365
+ args = YOLOv5.parse_opt()
366
+ ```
367
+ """
368
+ parser = argparse.ArgumentParser()
369
+ parser.add_argument("--weights", nargs="+", type=str, default=ROOT / "yolov5s.pt", help="model path or triton URL")
370
+ parser.add_argument("--source", type=str, default=ROOT / "data/images", help="file/dir/URL/glob/screen/0(webcam)")
371
+ parser.add_argument("--data", type=str, default=ROOT / "data/coco128.yaml", help="(optional) dataset.yaml path")
372
+ parser.add_argument("--imgsz", "--img", "--img-size", nargs="+", type=int, default=[640], help="inference size h,w")
373
+ parser.add_argument("--conf-thres", type=float, default=0.25, help="confidence threshold")
374
+ parser.add_argument("--iou-thres", type=float, default=0.45, help="NMS IoU threshold")
375
+ parser.add_argument("--max-det", type=int, default=1000, help="maximum detections per image")
376
+ parser.add_argument("--device", default="", help="cuda device, i.e. 0 or 0,1,2,3 or cpu")
377
+ parser.add_argument("--view-img", action="store_true", help="show results")
378
+ parser.add_argument("--save-txt", action="store_true", help="save results to *.txt")
379
+ parser.add_argument(
380
+ "--save-format",
381
+ type=int,
382
+ default=0,
383
+ help="whether to save boxes coordinates in YOLO format or Pascal-VOC format when save-txt is True, 0 for YOLO and 1 for Pascal-VOC",
384
+ )
385
+ parser.add_argument("--save-csv", action="store_true", help="save results in CSV format")
386
+ parser.add_argument("--save-conf", action="store_true", help="save confidences in --save-txt labels")
387
+ parser.add_argument("--save-crop", action="store_true", help="save cropped prediction boxes")
388
+ parser.add_argument("--nosave", action="store_true", help="do not save images/videos")
389
+ parser.add_argument("--classes", nargs="+", type=int, help="filter by class: --classes 0, or --classes 0 2 3")
390
+ parser.add_argument("--agnostic-nms", action="store_true", help="class-agnostic NMS")
391
+ parser.add_argument("--augment", action="store_true", help="augmented inference")
392
+ parser.add_argument("--visualize", action="store_true", help="visualize features")
393
+ parser.add_argument("--update", action="store_true", help="update all models")
394
+ parser.add_argument("--project", default=ROOT / "runs/detect", help="save results to project/name")
395
+ parser.add_argument("--name", default="exp", help="save results to project/name")
396
+ parser.add_argument("--exist-ok", action="store_true", help="existing project/name ok, do not increment")
397
+ parser.add_argument("--line-thickness", default=3, type=int, help="bounding box thickness (pixels)")
398
+ parser.add_argument("--hide-labels", default=False, action="store_true", help="hide labels")
399
+ parser.add_argument("--hide-conf", default=False, action="store_true", help="hide confidences")
400
+ parser.add_argument("--half", action="store_true", help="use FP16 half-precision inference")
401
+ parser.add_argument("--dnn", action="store_true", help="use OpenCV DNN for ONNX inference")
402
+ parser.add_argument("--vid-stride", type=int, default=1, help="video frame-rate stride")
403
+ opt = parser.parse_args()
404
+ opt.imgsz *= 2 if len(opt.imgsz) == 1 else 1 # expand
405
+ print_args(vars(opt))
406
+ return opt
407
+
408
+
409
+ def main(opt):
410
+ """
411
+ Executes YOLOv5 model inference based on provided command-line arguments, validating dependencies before running.
412
+
413
+ Args:
414
+ opt (argparse.Namespace): Command-line arguments for YOLOv5 detection. See function `parse_opt` for details.
415
+
416
+ Returns:
417
+ None
418
+
419
+ Note:
420
+ This function performs essential pre-execution checks and initiates the YOLOv5 detection process based on user-specified
421
+ options. Refer to the usage guide and examples for more information about different sources and formats at:
422
+ https://github.com/ultralytics/ultralytics
423
+
424
+ Example usage:
425
+
426
+ ```python
427
+ if __name__ == "__main__":
428
+ opt = parse_opt()
429
+ main(opt)
430
+ ```
431
+ """
432
+ check_requirements(ROOT / "requirements.txt", exclude=("tensorboard", "thop"))
433
+ run(**vars(opt))
434
+
435
+
436
+ if __name__ == "__main__":
437
+ opt = parse_opt()
438
+ main(opt)
package-lock.json ADDED
@@ -0,0 +1,1547 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "object-detection-backend",
3
+ "version": "1.0.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "object-detection-backend",
9
+ "version": "1.0.0",
10
+ "license": "MIT",
11
+ "dependencies": {
12
+ "axios": "^1.10.0",
13
+ "cors": "^2.8.5",
14
+ "express": "^4.18.2",
15
+ "fs": "^0.0.1-security",
16
+ "multer": "^1.4.5-lts.1",
17
+ "path": "^0.12.7"
18
+ },
19
+ "devDependencies": {
20
+ "nodemon": "^3.0.1"
21
+ }
22
+ },
23
+ "node_modules/accepts": {
24
+ "version": "1.3.8",
25
+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
26
+ "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
27
+ "license": "MIT",
28
+ "dependencies": {
29
+ "mime-types": "~2.1.34",
30
+ "negotiator": "0.6.3"
31
+ },
32
+ "engines": {
33
+ "node": ">= 0.6"
34
+ }
35
+ },
36
+ "node_modules/anymatch": {
37
+ "version": "3.1.3",
38
+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
39
+ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
40
+ "dev": true,
41
+ "license": "ISC",
42
+ "dependencies": {
43
+ "normalize-path": "^3.0.0",
44
+ "picomatch": "^2.0.4"
45
+ },
46
+ "engines": {
47
+ "node": ">= 8"
48
+ }
49
+ },
50
+ "node_modules/append-field": {
51
+ "version": "1.0.0",
52
+ "resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz",
53
+ "integrity": "sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==",
54
+ "license": "MIT"
55
+ },
56
+ "node_modules/array-flatten": {
57
+ "version": "1.1.1",
58
+ "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
59
+ "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
60
+ "license": "MIT"
61
+ },
62
+ "node_modules/asynckit": {
63
+ "version": "0.4.0",
64
+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
65
+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
66
+ "license": "MIT"
67
+ },
68
+ "node_modules/axios": {
69
+ "version": "1.10.0",
70
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.10.0.tgz",
71
+ "integrity": "sha512-/1xYAC4MP/HEG+3duIhFr4ZQXR4sQXOIe+o6sdqzeykGLx6Upp/1p8MHqhINOvGeP7xyNHe7tsiJByc4SSVUxw==",
72
+ "license": "MIT",
73
+ "dependencies": {
74
+ "follow-redirects": "^1.15.6",
75
+ "form-data": "^4.0.0",
76
+ "proxy-from-env": "^1.1.0"
77
+ }
78
+ },
79
+ "node_modules/balanced-match": {
80
+ "version": "1.0.2",
81
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
82
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
83
+ "dev": true,
84
+ "license": "MIT"
85
+ },
86
+ "node_modules/binary-extensions": {
87
+ "version": "2.3.0",
88
+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",
89
+ "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",
90
+ "dev": true,
91
+ "license": "MIT",
92
+ "engines": {
93
+ "node": ">=8"
94
+ },
95
+ "funding": {
96
+ "url": "https://github.com/sponsors/sindresorhus"
97
+ }
98
+ },
99
+ "node_modules/body-parser": {
100
+ "version": "1.20.3",
101
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz",
102
+ "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==",
103
+ "license": "MIT",
104
+ "dependencies": {
105
+ "bytes": "3.1.2",
106
+ "content-type": "~1.0.5",
107
+ "debug": "2.6.9",
108
+ "depd": "2.0.0",
109
+ "destroy": "1.2.0",
110
+ "http-errors": "2.0.0",
111
+ "iconv-lite": "0.4.24",
112
+ "on-finished": "2.4.1",
113
+ "qs": "6.13.0",
114
+ "raw-body": "2.5.2",
115
+ "type-is": "~1.6.18",
116
+ "unpipe": "1.0.0"
117
+ },
118
+ "engines": {
119
+ "node": ">= 0.8",
120
+ "npm": "1.2.8000 || >= 1.4.16"
121
+ }
122
+ },
123
+ "node_modules/brace-expansion": {
124
+ "version": "1.1.12",
125
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
126
+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
127
+ "dev": true,
128
+ "license": "MIT",
129
+ "dependencies": {
130
+ "balanced-match": "^1.0.0",
131
+ "concat-map": "0.0.1"
132
+ }
133
+ },
134
+ "node_modules/braces": {
135
+ "version": "3.0.3",
136
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
137
+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
138
+ "dev": true,
139
+ "license": "MIT",
140
+ "dependencies": {
141
+ "fill-range": "^7.1.1"
142
+ },
143
+ "engines": {
144
+ "node": ">=8"
145
+ }
146
+ },
147
+ "node_modules/buffer-from": {
148
+ "version": "1.1.2",
149
+ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
150
+ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
151
+ "license": "MIT"
152
+ },
153
+ "node_modules/busboy": {
154
+ "version": "1.6.0",
155
+ "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz",
156
+ "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==",
157
+ "dependencies": {
158
+ "streamsearch": "^1.1.0"
159
+ },
160
+ "engines": {
161
+ "node": ">=10.16.0"
162
+ }
163
+ },
164
+ "node_modules/bytes": {
165
+ "version": "3.1.2",
166
+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
167
+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
168
+ "license": "MIT",
169
+ "engines": {
170
+ "node": ">= 0.8"
171
+ }
172
+ },
173
+ "node_modules/call-bind-apply-helpers": {
174
+ "version": "1.0.2",
175
+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
176
+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
177
+ "license": "MIT",
178
+ "dependencies": {
179
+ "es-errors": "^1.3.0",
180
+ "function-bind": "^1.1.2"
181
+ },
182
+ "engines": {
183
+ "node": ">= 0.4"
184
+ }
185
+ },
186
+ "node_modules/call-bound": {
187
+ "version": "1.0.4",
188
+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
189
+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
190
+ "license": "MIT",
191
+ "dependencies": {
192
+ "call-bind-apply-helpers": "^1.0.2",
193
+ "get-intrinsic": "^1.3.0"
194
+ },
195
+ "engines": {
196
+ "node": ">= 0.4"
197
+ },
198
+ "funding": {
199
+ "url": "https://github.com/sponsors/ljharb"
200
+ }
201
+ },
202
+ "node_modules/chokidar": {
203
+ "version": "3.6.0",
204
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
205
+ "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
206
+ "dev": true,
207
+ "license": "MIT",
208
+ "dependencies": {
209
+ "anymatch": "~3.1.2",
210
+ "braces": "~3.0.2",
211
+ "glob-parent": "~5.1.2",
212
+ "is-binary-path": "~2.1.0",
213
+ "is-glob": "~4.0.1",
214
+ "normalize-path": "~3.0.0",
215
+ "readdirp": "~3.6.0"
216
+ },
217
+ "engines": {
218
+ "node": ">= 8.10.0"
219
+ },
220
+ "funding": {
221
+ "url": "https://paulmillr.com/funding/"
222
+ },
223
+ "optionalDependencies": {
224
+ "fsevents": "~2.3.2"
225
+ }
226
+ },
227
+ "node_modules/combined-stream": {
228
+ "version": "1.0.8",
229
+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
230
+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
231
+ "license": "MIT",
232
+ "dependencies": {
233
+ "delayed-stream": "~1.0.0"
234
+ },
235
+ "engines": {
236
+ "node": ">= 0.8"
237
+ }
238
+ },
239
+ "node_modules/concat-map": {
240
+ "version": "0.0.1",
241
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
242
+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
243
+ "dev": true,
244
+ "license": "MIT"
245
+ },
246
+ "node_modules/concat-stream": {
247
+ "version": "1.6.2",
248
+ "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz",
249
+ "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==",
250
+ "engines": [
251
+ "node >= 0.8"
252
+ ],
253
+ "license": "MIT",
254
+ "dependencies": {
255
+ "buffer-from": "^1.0.0",
256
+ "inherits": "^2.0.3",
257
+ "readable-stream": "^2.2.2",
258
+ "typedarray": "^0.0.6"
259
+ }
260
+ },
261
+ "node_modules/content-disposition": {
262
+ "version": "0.5.4",
263
+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
264
+ "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
265
+ "license": "MIT",
266
+ "dependencies": {
267
+ "safe-buffer": "5.2.1"
268
+ },
269
+ "engines": {
270
+ "node": ">= 0.6"
271
+ }
272
+ },
273
+ "node_modules/content-type": {
274
+ "version": "1.0.5",
275
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
276
+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
277
+ "license": "MIT",
278
+ "engines": {
279
+ "node": ">= 0.6"
280
+ }
281
+ },
282
+ "node_modules/cookie": {
283
+ "version": "0.7.1",
284
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz",
285
+ "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==",
286
+ "license": "MIT",
287
+ "engines": {
288
+ "node": ">= 0.6"
289
+ }
290
+ },
291
+ "node_modules/cookie-signature": {
292
+ "version": "1.0.6",
293
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
294
+ "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==",
295
+ "license": "MIT"
296
+ },
297
+ "node_modules/core-util-is": {
298
+ "version": "1.0.3",
299
+ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",
300
+ "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
301
+ "license": "MIT"
302
+ },
303
+ "node_modules/cors": {
304
+ "version": "2.8.5",
305
+ "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
306
+ "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
307
+ "license": "MIT",
308
+ "dependencies": {
309
+ "object-assign": "^4",
310
+ "vary": "^1"
311
+ },
312
+ "engines": {
313
+ "node": ">= 0.10"
314
+ }
315
+ },
316
+ "node_modules/debug": {
317
+ "version": "2.6.9",
318
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
319
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
320
+ "license": "MIT",
321
+ "dependencies": {
322
+ "ms": "2.0.0"
323
+ }
324
+ },
325
+ "node_modules/delayed-stream": {
326
+ "version": "1.0.0",
327
+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
328
+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
329
+ "license": "MIT",
330
+ "engines": {
331
+ "node": ">=0.4.0"
332
+ }
333
+ },
334
+ "node_modules/depd": {
335
+ "version": "2.0.0",
336
+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
337
+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
338
+ "license": "MIT",
339
+ "engines": {
340
+ "node": ">= 0.8"
341
+ }
342
+ },
343
+ "node_modules/destroy": {
344
+ "version": "1.2.0",
345
+ "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
346
+ "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
347
+ "license": "MIT",
348
+ "engines": {
349
+ "node": ">= 0.8",
350
+ "npm": "1.2.8000 || >= 1.4.16"
351
+ }
352
+ },
353
+ "node_modules/dunder-proto": {
354
+ "version": "1.0.1",
355
+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
356
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
357
+ "license": "MIT",
358
+ "dependencies": {
359
+ "call-bind-apply-helpers": "^1.0.1",
360
+ "es-errors": "^1.3.0",
361
+ "gopd": "^1.2.0"
362
+ },
363
+ "engines": {
364
+ "node": ">= 0.4"
365
+ }
366
+ },
367
+ "node_modules/ee-first": {
368
+ "version": "1.1.1",
369
+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
370
+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
371
+ "license": "MIT"
372
+ },
373
+ "node_modules/encodeurl": {
374
+ "version": "2.0.0",
375
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
376
+ "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
377
+ "license": "MIT",
378
+ "engines": {
379
+ "node": ">= 0.8"
380
+ }
381
+ },
382
+ "node_modules/es-define-property": {
383
+ "version": "1.0.1",
384
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
385
+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
386
+ "license": "MIT",
387
+ "engines": {
388
+ "node": ">= 0.4"
389
+ }
390
+ },
391
+ "node_modules/es-errors": {
392
+ "version": "1.3.0",
393
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
394
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
395
+ "license": "MIT",
396
+ "engines": {
397
+ "node": ">= 0.4"
398
+ }
399
+ },
400
+ "node_modules/es-object-atoms": {
401
+ "version": "1.1.1",
402
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
403
+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
404
+ "license": "MIT",
405
+ "dependencies": {
406
+ "es-errors": "^1.3.0"
407
+ },
408
+ "engines": {
409
+ "node": ">= 0.4"
410
+ }
411
+ },
412
+ "node_modules/es-set-tostringtag": {
413
+ "version": "2.1.0",
414
+ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
415
+ "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
416
+ "license": "MIT",
417
+ "dependencies": {
418
+ "es-errors": "^1.3.0",
419
+ "get-intrinsic": "^1.2.6",
420
+ "has-tostringtag": "^1.0.2",
421
+ "hasown": "^2.0.2"
422
+ },
423
+ "engines": {
424
+ "node": ">= 0.4"
425
+ }
426
+ },
427
+ "node_modules/escape-html": {
428
+ "version": "1.0.3",
429
+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
430
+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
431
+ "license": "MIT"
432
+ },
433
+ "node_modules/etag": {
434
+ "version": "1.8.1",
435
+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
436
+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
437
+ "license": "MIT",
438
+ "engines": {
439
+ "node": ">= 0.6"
440
+ }
441
+ },
442
+ "node_modules/express": {
443
+ "version": "4.21.2",
444
+ "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz",
445
+ "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==",
446
+ "license": "MIT",
447
+ "dependencies": {
448
+ "accepts": "~1.3.8",
449
+ "array-flatten": "1.1.1",
450
+ "body-parser": "1.20.3",
451
+ "content-disposition": "0.5.4",
452
+ "content-type": "~1.0.4",
453
+ "cookie": "0.7.1",
454
+ "cookie-signature": "1.0.6",
455
+ "debug": "2.6.9",
456
+ "depd": "2.0.0",
457
+ "encodeurl": "~2.0.0",
458
+ "escape-html": "~1.0.3",
459
+ "etag": "~1.8.1",
460
+ "finalhandler": "1.3.1",
461
+ "fresh": "0.5.2",
462
+ "http-errors": "2.0.0",
463
+ "merge-descriptors": "1.0.3",
464
+ "methods": "~1.1.2",
465
+ "on-finished": "2.4.1",
466
+ "parseurl": "~1.3.3",
467
+ "path-to-regexp": "0.1.12",
468
+ "proxy-addr": "~2.0.7",
469
+ "qs": "6.13.0",
470
+ "range-parser": "~1.2.1",
471
+ "safe-buffer": "5.2.1",
472
+ "send": "0.19.0",
473
+ "serve-static": "1.16.2",
474
+ "setprototypeof": "1.2.0",
475
+ "statuses": "2.0.1",
476
+ "type-is": "~1.6.18",
477
+ "utils-merge": "1.0.1",
478
+ "vary": "~1.1.2"
479
+ },
480
+ "engines": {
481
+ "node": ">= 0.10.0"
482
+ },
483
+ "funding": {
484
+ "type": "opencollective",
485
+ "url": "https://opencollective.com/express"
486
+ }
487
+ },
488
+ "node_modules/fill-range": {
489
+ "version": "7.1.1",
490
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
491
+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
492
+ "dev": true,
493
+ "license": "MIT",
494
+ "dependencies": {
495
+ "to-regex-range": "^5.0.1"
496
+ },
497
+ "engines": {
498
+ "node": ">=8"
499
+ }
500
+ },
501
+ "node_modules/finalhandler": {
502
+ "version": "1.3.1",
503
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz",
504
+ "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==",
505
+ "license": "MIT",
506
+ "dependencies": {
507
+ "debug": "2.6.9",
508
+ "encodeurl": "~2.0.0",
509
+ "escape-html": "~1.0.3",
510
+ "on-finished": "2.4.1",
511
+ "parseurl": "~1.3.3",
512
+ "statuses": "2.0.1",
513
+ "unpipe": "~1.0.0"
514
+ },
515
+ "engines": {
516
+ "node": ">= 0.8"
517
+ }
518
+ },
519
+ "node_modules/follow-redirects": {
520
+ "version": "1.15.9",
521
+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz",
522
+ "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==",
523
+ "funding": [
524
+ {
525
+ "type": "individual",
526
+ "url": "https://github.com/sponsors/RubenVerborgh"
527
+ }
528
+ ],
529
+ "license": "MIT",
530
+ "engines": {
531
+ "node": ">=4.0"
532
+ },
533
+ "peerDependenciesMeta": {
534
+ "debug": {
535
+ "optional": true
536
+ }
537
+ }
538
+ },
539
+ "node_modules/form-data": {
540
+ "version": "4.0.3",
541
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.3.tgz",
542
+ "integrity": "sha512-qsITQPfmvMOSAdeyZ+12I1c+CKSstAFAwu+97zrnWAbIr5u8wfsExUzCesVLC8NgHuRUqNN4Zy6UPWUTRGslcA==",
543
+ "license": "MIT",
544
+ "dependencies": {
545
+ "asynckit": "^0.4.0",
546
+ "combined-stream": "^1.0.8",
547
+ "es-set-tostringtag": "^2.1.0",
548
+ "hasown": "^2.0.2",
549
+ "mime-types": "^2.1.12"
550
+ },
551
+ "engines": {
552
+ "node": ">= 6"
553
+ }
554
+ },
555
+ "node_modules/forwarded": {
556
+ "version": "0.2.0",
557
+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
558
+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
559
+ "license": "MIT",
560
+ "engines": {
561
+ "node": ">= 0.6"
562
+ }
563
+ },
564
+ "node_modules/fresh": {
565
+ "version": "0.5.2",
566
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
567
+ "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
568
+ "license": "MIT",
569
+ "engines": {
570
+ "node": ">= 0.6"
571
+ }
572
+ },
573
+ "node_modules/fs": {
574
+ "version": "0.0.1-security",
575
+ "resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz",
576
+ "integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w==",
577
+ "license": "ISC"
578
+ },
579
+ "node_modules/fsevents": {
580
+ "version": "2.3.3",
581
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
582
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
583
+ "dev": true,
584
+ "hasInstallScript": true,
585
+ "license": "MIT",
586
+ "optional": true,
587
+ "os": [
588
+ "darwin"
589
+ ],
590
+ "engines": {
591
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
592
+ }
593
+ },
594
+ "node_modules/function-bind": {
595
+ "version": "1.1.2",
596
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
597
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
598
+ "license": "MIT",
599
+ "funding": {
600
+ "url": "https://github.com/sponsors/ljharb"
601
+ }
602
+ },
603
+ "node_modules/get-intrinsic": {
604
+ "version": "1.3.0",
605
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
606
+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
607
+ "license": "MIT",
608
+ "dependencies": {
609
+ "call-bind-apply-helpers": "^1.0.2",
610
+ "es-define-property": "^1.0.1",
611
+ "es-errors": "^1.3.0",
612
+ "es-object-atoms": "^1.1.1",
613
+ "function-bind": "^1.1.2",
614
+ "get-proto": "^1.0.1",
615
+ "gopd": "^1.2.0",
616
+ "has-symbols": "^1.1.0",
617
+ "hasown": "^2.0.2",
618
+ "math-intrinsics": "^1.1.0"
619
+ },
620
+ "engines": {
621
+ "node": ">= 0.4"
622
+ },
623
+ "funding": {
624
+ "url": "https://github.com/sponsors/ljharb"
625
+ }
626
+ },
627
+ "node_modules/get-proto": {
628
+ "version": "1.0.1",
629
+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
630
+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
631
+ "license": "MIT",
632
+ "dependencies": {
633
+ "dunder-proto": "^1.0.1",
634
+ "es-object-atoms": "^1.0.0"
635
+ },
636
+ "engines": {
637
+ "node": ">= 0.4"
638
+ }
639
+ },
640
+ "node_modules/glob-parent": {
641
+ "version": "5.1.2",
642
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
643
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
644
+ "dev": true,
645
+ "license": "ISC",
646
+ "dependencies": {
647
+ "is-glob": "^4.0.1"
648
+ },
649
+ "engines": {
650
+ "node": ">= 6"
651
+ }
652
+ },
653
+ "node_modules/gopd": {
654
+ "version": "1.2.0",
655
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
656
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
657
+ "license": "MIT",
658
+ "engines": {
659
+ "node": ">= 0.4"
660
+ },
661
+ "funding": {
662
+ "url": "https://github.com/sponsors/ljharb"
663
+ }
664
+ },
665
+ "node_modules/has-flag": {
666
+ "version": "3.0.0",
667
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
668
+ "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",
669
+ "dev": true,
670
+ "license": "MIT",
671
+ "engines": {
672
+ "node": ">=4"
673
+ }
674
+ },
675
+ "node_modules/has-symbols": {
676
+ "version": "1.1.0",
677
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
678
+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
679
+ "license": "MIT",
680
+ "engines": {
681
+ "node": ">= 0.4"
682
+ },
683
+ "funding": {
684
+ "url": "https://github.com/sponsors/ljharb"
685
+ }
686
+ },
687
+ "node_modules/has-tostringtag": {
688
+ "version": "1.0.2",
689
+ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
690
+ "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
691
+ "license": "MIT",
692
+ "dependencies": {
693
+ "has-symbols": "^1.0.3"
694
+ },
695
+ "engines": {
696
+ "node": ">= 0.4"
697
+ },
698
+ "funding": {
699
+ "url": "https://github.com/sponsors/ljharb"
700
+ }
701
+ },
702
+ "node_modules/hasown": {
703
+ "version": "2.0.2",
704
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
705
+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
706
+ "license": "MIT",
707
+ "dependencies": {
708
+ "function-bind": "^1.1.2"
709
+ },
710
+ "engines": {
711
+ "node": ">= 0.4"
712
+ }
713
+ },
714
+ "node_modules/http-errors": {
715
+ "version": "2.0.0",
716
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
717
+ "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
718
+ "license": "MIT",
719
+ "dependencies": {
720
+ "depd": "2.0.0",
721
+ "inherits": "2.0.4",
722
+ "setprototypeof": "1.2.0",
723
+ "statuses": "2.0.1",
724
+ "toidentifier": "1.0.1"
725
+ },
726
+ "engines": {
727
+ "node": ">= 0.8"
728
+ }
729
+ },
730
+ "node_modules/iconv-lite": {
731
+ "version": "0.4.24",
732
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
733
+ "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
734
+ "license": "MIT",
735
+ "dependencies": {
736
+ "safer-buffer": ">= 2.1.2 < 3"
737
+ },
738
+ "engines": {
739
+ "node": ">=0.10.0"
740
+ }
741
+ },
742
+ "node_modules/ignore-by-default": {
743
+ "version": "1.0.1",
744
+ "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz",
745
+ "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==",
746
+ "dev": true,
747
+ "license": "ISC"
748
+ },
749
+ "node_modules/inherits": {
750
+ "version": "2.0.4",
751
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
752
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
753
+ "license": "ISC"
754
+ },
755
+ "node_modules/ipaddr.js": {
756
+ "version": "1.9.1",
757
+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
758
+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
759
+ "license": "MIT",
760
+ "engines": {
761
+ "node": ">= 0.10"
762
+ }
763
+ },
764
+ "node_modules/is-binary-path": {
765
+ "version": "2.1.0",
766
+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
767
+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
768
+ "dev": true,
769
+ "license": "MIT",
770
+ "dependencies": {
771
+ "binary-extensions": "^2.0.0"
772
+ },
773
+ "engines": {
774
+ "node": ">=8"
775
+ }
776
+ },
777
+ "node_modules/is-extglob": {
778
+ "version": "2.1.1",
779
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
780
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
781
+ "dev": true,
782
+ "license": "MIT",
783
+ "engines": {
784
+ "node": ">=0.10.0"
785
+ }
786
+ },
787
+ "node_modules/is-glob": {
788
+ "version": "4.0.3",
789
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
790
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
791
+ "dev": true,
792
+ "license": "MIT",
793
+ "dependencies": {
794
+ "is-extglob": "^2.1.1"
795
+ },
796
+ "engines": {
797
+ "node": ">=0.10.0"
798
+ }
799
+ },
800
+ "node_modules/is-number": {
801
+ "version": "7.0.0",
802
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
803
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
804
+ "dev": true,
805
+ "license": "MIT",
806
+ "engines": {
807
+ "node": ">=0.12.0"
808
+ }
809
+ },
810
+ "node_modules/isarray": {
811
+ "version": "1.0.0",
812
+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
813
+ "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==",
814
+ "license": "MIT"
815
+ },
816
+ "node_modules/math-intrinsics": {
817
+ "version": "1.1.0",
818
+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
819
+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
820
+ "license": "MIT",
821
+ "engines": {
822
+ "node": ">= 0.4"
823
+ }
824
+ },
825
+ "node_modules/media-typer": {
826
+ "version": "0.3.0",
827
+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
828
+ "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
829
+ "license": "MIT",
830
+ "engines": {
831
+ "node": ">= 0.6"
832
+ }
833
+ },
834
+ "node_modules/merge-descriptors": {
835
+ "version": "1.0.3",
836
+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
837
+ "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
838
+ "license": "MIT",
839
+ "funding": {
840
+ "url": "https://github.com/sponsors/sindresorhus"
841
+ }
842
+ },
843
+ "node_modules/methods": {
844
+ "version": "1.1.2",
845
+ "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
846
+ "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
847
+ "license": "MIT",
848
+ "engines": {
849
+ "node": ">= 0.6"
850
+ }
851
+ },
852
+ "node_modules/mime": {
853
+ "version": "1.6.0",
854
+ "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
855
+ "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
856
+ "license": "MIT",
857
+ "bin": {
858
+ "mime": "cli.js"
859
+ },
860
+ "engines": {
861
+ "node": ">=4"
862
+ }
863
+ },
864
+ "node_modules/mime-db": {
865
+ "version": "1.52.0",
866
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
867
+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
868
+ "license": "MIT",
869
+ "engines": {
870
+ "node": ">= 0.6"
871
+ }
872
+ },
873
+ "node_modules/mime-types": {
874
+ "version": "2.1.35",
875
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
876
+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
877
+ "license": "MIT",
878
+ "dependencies": {
879
+ "mime-db": "1.52.0"
880
+ },
881
+ "engines": {
882
+ "node": ">= 0.6"
883
+ }
884
+ },
885
+ "node_modules/minimatch": {
886
+ "version": "3.1.2",
887
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
888
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
889
+ "dev": true,
890
+ "license": "ISC",
891
+ "dependencies": {
892
+ "brace-expansion": "^1.1.7"
893
+ },
894
+ "engines": {
895
+ "node": "*"
896
+ }
897
+ },
898
+ "node_modules/minimist": {
899
+ "version": "1.2.8",
900
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
901
+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
902
+ "license": "MIT",
903
+ "funding": {
904
+ "url": "https://github.com/sponsors/ljharb"
905
+ }
906
+ },
907
+ "node_modules/mkdirp": {
908
+ "version": "0.5.6",
909
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",
910
+ "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
911
+ "license": "MIT",
912
+ "dependencies": {
913
+ "minimist": "^1.2.6"
914
+ },
915
+ "bin": {
916
+ "mkdirp": "bin/cmd.js"
917
+ }
918
+ },
919
+ "node_modules/ms": {
920
+ "version": "2.0.0",
921
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
922
+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
923
+ "license": "MIT"
924
+ },
925
+ "node_modules/multer": {
926
+ "version": "1.4.5-lts.2",
927
+ "resolved": "https://registry.npmjs.org/multer/-/multer-1.4.5-lts.2.tgz",
928
+ "integrity": "sha512-VzGiVigcG9zUAoCNU+xShztrlr1auZOlurXynNvO9GiWD1/mTBbUljOKY+qMeazBqXgRnjzeEgJI/wyjJUHg9A==",
929
+ "deprecated": "Multer 1.x is impacted by a number of vulnerabilities, which have been patched in 2.x. You should upgrade to the latest 2.x version.",
930
+ "license": "MIT",
931
+ "dependencies": {
932
+ "append-field": "^1.0.0",
933
+ "busboy": "^1.0.0",
934
+ "concat-stream": "^1.5.2",
935
+ "mkdirp": "^0.5.4",
936
+ "object-assign": "^4.1.1",
937
+ "type-is": "^1.6.4",
938
+ "xtend": "^4.0.0"
939
+ },
940
+ "engines": {
941
+ "node": ">= 6.0.0"
942
+ }
943
+ },
944
+ "node_modules/negotiator": {
945
+ "version": "0.6.3",
946
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
947
+ "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
948
+ "license": "MIT",
949
+ "engines": {
950
+ "node": ">= 0.6"
951
+ }
952
+ },
953
+ "node_modules/nodemon": {
954
+ "version": "3.1.10",
955
+ "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.10.tgz",
956
+ "integrity": "sha512-WDjw3pJ0/0jMFmyNDp3gvY2YizjLmmOUQo6DEBY+JgdvW/yQ9mEeSw6H5ythl5Ny2ytb7f9C2nIbjSxMNzbJXw==",
957
+ "dev": true,
958
+ "license": "MIT",
959
+ "dependencies": {
960
+ "chokidar": "^3.5.2",
961
+ "debug": "^4",
962
+ "ignore-by-default": "^1.0.1",
963
+ "minimatch": "^3.1.2",
964
+ "pstree.remy": "^1.1.8",
965
+ "semver": "^7.5.3",
966
+ "simple-update-notifier": "^2.0.0",
967
+ "supports-color": "^5.5.0",
968
+ "touch": "^3.1.0",
969
+ "undefsafe": "^2.0.5"
970
+ },
971
+ "bin": {
972
+ "nodemon": "bin/nodemon.js"
973
+ },
974
+ "engines": {
975
+ "node": ">=10"
976
+ },
977
+ "funding": {
978
+ "type": "opencollective",
979
+ "url": "https://opencollective.com/nodemon"
980
+ }
981
+ },
982
+ "node_modules/nodemon/node_modules/debug": {
983
+ "version": "4.4.1",
984
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz",
985
+ "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==",
986
+ "dev": true,
987
+ "license": "MIT",
988
+ "dependencies": {
989
+ "ms": "^2.1.3"
990
+ },
991
+ "engines": {
992
+ "node": ">=6.0"
993
+ },
994
+ "peerDependenciesMeta": {
995
+ "supports-color": {
996
+ "optional": true
997
+ }
998
+ }
999
+ },
1000
+ "node_modules/nodemon/node_modules/ms": {
1001
+ "version": "2.1.3",
1002
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
1003
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
1004
+ "dev": true,
1005
+ "license": "MIT"
1006
+ },
1007
+ "node_modules/normalize-path": {
1008
+ "version": "3.0.0",
1009
+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
1010
+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
1011
+ "dev": true,
1012
+ "license": "MIT",
1013
+ "engines": {
1014
+ "node": ">=0.10.0"
1015
+ }
1016
+ },
1017
+ "node_modules/object-assign": {
1018
+ "version": "4.1.1",
1019
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
1020
+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
1021
+ "license": "MIT",
1022
+ "engines": {
1023
+ "node": ">=0.10.0"
1024
+ }
1025
+ },
1026
+ "node_modules/object-inspect": {
1027
+ "version": "1.13.4",
1028
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
1029
+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
1030
+ "license": "MIT",
1031
+ "engines": {
1032
+ "node": ">= 0.4"
1033
+ },
1034
+ "funding": {
1035
+ "url": "https://github.com/sponsors/ljharb"
1036
+ }
1037
+ },
1038
+ "node_modules/on-finished": {
1039
+ "version": "2.4.1",
1040
+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
1041
+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
1042
+ "license": "MIT",
1043
+ "dependencies": {
1044
+ "ee-first": "1.1.1"
1045
+ },
1046
+ "engines": {
1047
+ "node": ">= 0.8"
1048
+ }
1049
+ },
1050
+ "node_modules/parseurl": {
1051
+ "version": "1.3.3",
1052
+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
1053
+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
1054
+ "license": "MIT",
1055
+ "engines": {
1056
+ "node": ">= 0.8"
1057
+ }
1058
+ },
1059
+ "node_modules/path": {
1060
+ "version": "0.12.7",
1061
+ "resolved": "https://registry.npmjs.org/path/-/path-0.12.7.tgz",
1062
+ "integrity": "sha512-aXXC6s+1w7otVF9UletFkFcDsJeO7lSZBPUQhtb5O0xJe8LtYhj/GxldoL09bBj9+ZmE2hNoHqQSFMN5fikh4Q==",
1063
+ "license": "MIT",
1064
+ "dependencies": {
1065
+ "process": "^0.11.1",
1066
+ "util": "^0.10.3"
1067
+ }
1068
+ },
1069
+ "node_modules/path-to-regexp": {
1070
+ "version": "0.1.12",
1071
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
1072
+ "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==",
1073
+ "license": "MIT"
1074
+ },
1075
+ "node_modules/picomatch": {
1076
+ "version": "2.3.1",
1077
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
1078
+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
1079
+ "dev": true,
1080
+ "license": "MIT",
1081
+ "engines": {
1082
+ "node": ">=8.6"
1083
+ },
1084
+ "funding": {
1085
+ "url": "https://github.com/sponsors/jonschlinkert"
1086
+ }
1087
+ },
1088
+ "node_modules/process": {
1089
+ "version": "0.11.10",
1090
+ "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
1091
+ "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==",
1092
+ "license": "MIT",
1093
+ "engines": {
1094
+ "node": ">= 0.6.0"
1095
+ }
1096
+ },
1097
+ "node_modules/process-nextick-args": {
1098
+ "version": "2.0.1",
1099
+ "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
1100
+ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
1101
+ "license": "MIT"
1102
+ },
1103
+ "node_modules/proxy-addr": {
1104
+ "version": "2.0.7",
1105
+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
1106
+ "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
1107
+ "license": "MIT",
1108
+ "dependencies": {
1109
+ "forwarded": "0.2.0",
1110
+ "ipaddr.js": "1.9.1"
1111
+ },
1112
+ "engines": {
1113
+ "node": ">= 0.10"
1114
+ }
1115
+ },
1116
+ "node_modules/proxy-from-env": {
1117
+ "version": "1.1.0",
1118
+ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
1119
+ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
1120
+ "license": "MIT"
1121
+ },
1122
+ "node_modules/pstree.remy": {
1123
+ "version": "1.1.8",
1124
+ "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz",
1125
+ "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==",
1126
+ "dev": true,
1127
+ "license": "MIT"
1128
+ },
1129
+ "node_modules/qs": {
1130
+ "version": "6.13.0",
1131
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz",
1132
+ "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==",
1133
+ "license": "BSD-3-Clause",
1134
+ "dependencies": {
1135
+ "side-channel": "^1.0.6"
1136
+ },
1137
+ "engines": {
1138
+ "node": ">=0.6"
1139
+ },
1140
+ "funding": {
1141
+ "url": "https://github.com/sponsors/ljharb"
1142
+ }
1143
+ },
1144
+ "node_modules/range-parser": {
1145
+ "version": "1.2.1",
1146
+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
1147
+ "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
1148
+ "license": "MIT",
1149
+ "engines": {
1150
+ "node": ">= 0.6"
1151
+ }
1152
+ },
1153
+ "node_modules/raw-body": {
1154
+ "version": "2.5.2",
1155
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz",
1156
+ "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==",
1157
+ "license": "MIT",
1158
+ "dependencies": {
1159
+ "bytes": "3.1.2",
1160
+ "http-errors": "2.0.0",
1161
+ "iconv-lite": "0.4.24",
1162
+ "unpipe": "1.0.0"
1163
+ },
1164
+ "engines": {
1165
+ "node": ">= 0.8"
1166
+ }
1167
+ },
1168
+ "node_modules/readable-stream": {
1169
+ "version": "2.3.8",
1170
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",
1171
+ "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",
1172
+ "license": "MIT",
1173
+ "dependencies": {
1174
+ "core-util-is": "~1.0.0",
1175
+ "inherits": "~2.0.3",
1176
+ "isarray": "~1.0.0",
1177
+ "process-nextick-args": "~2.0.0",
1178
+ "safe-buffer": "~5.1.1",
1179
+ "string_decoder": "~1.1.1",
1180
+ "util-deprecate": "~1.0.1"
1181
+ }
1182
+ },
1183
+ "node_modules/readable-stream/node_modules/safe-buffer": {
1184
+ "version": "5.1.2",
1185
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
1186
+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
1187
+ "license": "MIT"
1188
+ },
1189
+ "node_modules/readdirp": {
1190
+ "version": "3.6.0",
1191
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
1192
+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
1193
+ "dev": true,
1194
+ "license": "MIT",
1195
+ "dependencies": {
1196
+ "picomatch": "^2.2.1"
1197
+ },
1198
+ "engines": {
1199
+ "node": ">=8.10.0"
1200
+ }
1201
+ },
1202
+ "node_modules/safe-buffer": {
1203
+ "version": "5.2.1",
1204
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
1205
+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
1206
+ "funding": [
1207
+ {
1208
+ "type": "github",
1209
+ "url": "https://github.com/sponsors/feross"
1210
+ },
1211
+ {
1212
+ "type": "patreon",
1213
+ "url": "https://www.patreon.com/feross"
1214
+ },
1215
+ {
1216
+ "type": "consulting",
1217
+ "url": "https://feross.org/support"
1218
+ }
1219
+ ],
1220
+ "license": "MIT"
1221
+ },
1222
+ "node_modules/safer-buffer": {
1223
+ "version": "2.1.2",
1224
+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
1225
+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
1226
+ "license": "MIT"
1227
+ },
1228
+ "node_modules/semver": {
1229
+ "version": "7.7.2",
1230
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz",
1231
+ "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==",
1232
+ "dev": true,
1233
+ "license": "ISC",
1234
+ "bin": {
1235
+ "semver": "bin/semver.js"
1236
+ },
1237
+ "engines": {
1238
+ "node": ">=10"
1239
+ }
1240
+ },
1241
+ "node_modules/send": {
1242
+ "version": "0.19.0",
1243
+ "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz",
1244
+ "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==",
1245
+ "license": "MIT",
1246
+ "dependencies": {
1247
+ "debug": "2.6.9",
1248
+ "depd": "2.0.0",
1249
+ "destroy": "1.2.0",
1250
+ "encodeurl": "~1.0.2",
1251
+ "escape-html": "~1.0.3",
1252
+ "etag": "~1.8.1",
1253
+ "fresh": "0.5.2",
1254
+ "http-errors": "2.0.0",
1255
+ "mime": "1.6.0",
1256
+ "ms": "2.1.3",
1257
+ "on-finished": "2.4.1",
1258
+ "range-parser": "~1.2.1",
1259
+ "statuses": "2.0.1"
1260
+ },
1261
+ "engines": {
1262
+ "node": ">= 0.8.0"
1263
+ }
1264
+ },
1265
+ "node_modules/send/node_modules/encodeurl": {
1266
+ "version": "1.0.2",
1267
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
1268
+ "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
1269
+ "license": "MIT",
1270
+ "engines": {
1271
+ "node": ">= 0.8"
1272
+ }
1273
+ },
1274
+ "node_modules/send/node_modules/ms": {
1275
+ "version": "2.1.3",
1276
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
1277
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
1278
+ "license": "MIT"
1279
+ },
1280
+ "node_modules/serve-static": {
1281
+ "version": "1.16.2",
1282
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz",
1283
+ "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==",
1284
+ "license": "MIT",
1285
+ "dependencies": {
1286
+ "encodeurl": "~2.0.0",
1287
+ "escape-html": "~1.0.3",
1288
+ "parseurl": "~1.3.3",
1289
+ "send": "0.19.0"
1290
+ },
1291
+ "engines": {
1292
+ "node": ">= 0.8.0"
1293
+ }
1294
+ },
1295
+ "node_modules/setprototypeof": {
1296
+ "version": "1.2.0",
1297
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
1298
+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
1299
+ "license": "ISC"
1300
+ },
1301
+ "node_modules/side-channel": {
1302
+ "version": "1.1.0",
1303
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
1304
+ "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
1305
+ "license": "MIT",
1306
+ "dependencies": {
1307
+ "es-errors": "^1.3.0",
1308
+ "object-inspect": "^1.13.3",
1309
+ "side-channel-list": "^1.0.0",
1310
+ "side-channel-map": "^1.0.1",
1311
+ "side-channel-weakmap": "^1.0.2"
1312
+ },
1313
+ "engines": {
1314
+ "node": ">= 0.4"
1315
+ },
1316
+ "funding": {
1317
+ "url": "https://github.com/sponsors/ljharb"
1318
+ }
1319
+ },
1320
+ "node_modules/side-channel-list": {
1321
+ "version": "1.0.0",
1322
+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
1323
+ "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
1324
+ "license": "MIT",
1325
+ "dependencies": {
1326
+ "es-errors": "^1.3.0",
1327
+ "object-inspect": "^1.13.3"
1328
+ },
1329
+ "engines": {
1330
+ "node": ">= 0.4"
1331
+ },
1332
+ "funding": {
1333
+ "url": "https://github.com/sponsors/ljharb"
1334
+ }
1335
+ },
1336
+ "node_modules/side-channel-map": {
1337
+ "version": "1.0.1",
1338
+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
1339
+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
1340
+ "license": "MIT",
1341
+ "dependencies": {
1342
+ "call-bound": "^1.0.2",
1343
+ "es-errors": "^1.3.0",
1344
+ "get-intrinsic": "^1.2.5",
1345
+ "object-inspect": "^1.13.3"
1346
+ },
1347
+ "engines": {
1348
+ "node": ">= 0.4"
1349
+ },
1350
+ "funding": {
1351
+ "url": "https://github.com/sponsors/ljharb"
1352
+ }
1353
+ },
1354
+ "node_modules/side-channel-weakmap": {
1355
+ "version": "1.0.2",
1356
+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
1357
+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
1358
+ "license": "MIT",
1359
+ "dependencies": {
1360
+ "call-bound": "^1.0.2",
1361
+ "es-errors": "^1.3.0",
1362
+ "get-intrinsic": "^1.2.5",
1363
+ "object-inspect": "^1.13.3",
1364
+ "side-channel-map": "^1.0.1"
1365
+ },
1366
+ "engines": {
1367
+ "node": ">= 0.4"
1368
+ },
1369
+ "funding": {
1370
+ "url": "https://github.com/sponsors/ljharb"
1371
+ }
1372
+ },
1373
+ "node_modules/simple-update-notifier": {
1374
+ "version": "2.0.0",
1375
+ "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz",
1376
+ "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==",
1377
+ "dev": true,
1378
+ "license": "MIT",
1379
+ "dependencies": {
1380
+ "semver": "^7.5.3"
1381
+ },
1382
+ "engines": {
1383
+ "node": ">=10"
1384
+ }
1385
+ },
1386
+ "node_modules/statuses": {
1387
+ "version": "2.0.1",
1388
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
1389
+ "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
1390
+ "license": "MIT",
1391
+ "engines": {
1392
+ "node": ">= 0.8"
1393
+ }
1394
+ },
1395
+ "node_modules/streamsearch": {
1396
+ "version": "1.1.0",
1397
+ "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz",
1398
+ "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==",
1399
+ "engines": {
1400
+ "node": ">=10.0.0"
1401
+ }
1402
+ },
1403
+ "node_modules/string_decoder": {
1404
+ "version": "1.1.1",
1405
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
1406
+ "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
1407
+ "license": "MIT",
1408
+ "dependencies": {
1409
+ "safe-buffer": "~5.1.0"
1410
+ }
1411
+ },
1412
+ "node_modules/string_decoder/node_modules/safe-buffer": {
1413
+ "version": "5.1.2",
1414
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
1415
+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
1416
+ "license": "MIT"
1417
+ },
1418
+ "node_modules/supports-color": {
1419
+ "version": "5.5.0",
1420
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
1421
+ "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
1422
+ "dev": true,
1423
+ "license": "MIT",
1424
+ "dependencies": {
1425
+ "has-flag": "^3.0.0"
1426
+ },
1427
+ "engines": {
1428
+ "node": ">=4"
1429
+ }
1430
+ },
1431
+ "node_modules/to-regex-range": {
1432
+ "version": "5.0.1",
1433
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
1434
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
1435
+ "dev": true,
1436
+ "license": "MIT",
1437
+ "dependencies": {
1438
+ "is-number": "^7.0.0"
1439
+ },
1440
+ "engines": {
1441
+ "node": ">=8.0"
1442
+ }
1443
+ },
1444
+ "node_modules/toidentifier": {
1445
+ "version": "1.0.1",
1446
+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
1447
+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
1448
+ "license": "MIT",
1449
+ "engines": {
1450
+ "node": ">=0.6"
1451
+ }
1452
+ },
1453
+ "node_modules/touch": {
1454
+ "version": "3.1.1",
1455
+ "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.1.tgz",
1456
+ "integrity": "sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==",
1457
+ "dev": true,
1458
+ "license": "ISC",
1459
+ "bin": {
1460
+ "nodetouch": "bin/nodetouch.js"
1461
+ }
1462
+ },
1463
+ "node_modules/type-is": {
1464
+ "version": "1.6.18",
1465
+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
1466
+ "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
1467
+ "license": "MIT",
1468
+ "dependencies": {
1469
+ "media-typer": "0.3.0",
1470
+ "mime-types": "~2.1.24"
1471
+ },
1472
+ "engines": {
1473
+ "node": ">= 0.6"
1474
+ }
1475
+ },
1476
+ "node_modules/typedarray": {
1477
+ "version": "0.0.6",
1478
+ "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
1479
+ "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==",
1480
+ "license": "MIT"
1481
+ },
1482
+ "node_modules/undefsafe": {
1483
+ "version": "2.0.5",
1484
+ "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz",
1485
+ "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==",
1486
+ "dev": true,
1487
+ "license": "MIT"
1488
+ },
1489
+ "node_modules/unpipe": {
1490
+ "version": "1.0.0",
1491
+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
1492
+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
1493
+ "license": "MIT",
1494
+ "engines": {
1495
+ "node": ">= 0.8"
1496
+ }
1497
+ },
1498
+ "node_modules/util": {
1499
+ "version": "0.10.4",
1500
+ "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz",
1501
+ "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==",
1502
+ "license": "MIT",
1503
+ "dependencies": {
1504
+ "inherits": "2.0.3"
1505
+ }
1506
+ },
1507
+ "node_modules/util-deprecate": {
1508
+ "version": "1.0.2",
1509
+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
1510
+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
1511
+ "license": "MIT"
1512
+ },
1513
+ "node_modules/util/node_modules/inherits": {
1514
+ "version": "2.0.3",
1515
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
1516
+ "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==",
1517
+ "license": "ISC"
1518
+ },
1519
+ "node_modules/utils-merge": {
1520
+ "version": "1.0.1",
1521
+ "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
1522
+ "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
1523
+ "license": "MIT",
1524
+ "engines": {
1525
+ "node": ">= 0.4.0"
1526
+ }
1527
+ },
1528
+ "node_modules/vary": {
1529
+ "version": "1.1.2",
1530
+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
1531
+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
1532
+ "license": "MIT",
1533
+ "engines": {
1534
+ "node": ">= 0.8"
1535
+ }
1536
+ },
1537
+ "node_modules/xtend": {
1538
+ "version": "4.0.2",
1539
+ "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
1540
+ "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",
1541
+ "license": "MIT",
1542
+ "engines": {
1543
+ "node": ">=0.4"
1544
+ }
1545
+ }
1546
+ }
1547
+ }
package.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "object-detection-backend",
3
+ "version": "1.0.0",
4
+ "description": "Backend for Object Detection App using YOLOv5",
5
+ "main": "server.js",
6
+ "scripts": {
7
+ "start": "node server.js",
8
+ "dev": "nodemon server.js"
9
+ },
10
+ "dependencies": {
11
+ "axios": "^1.10.0",
12
+ "cors": "^2.8.5",
13
+ "express": "^4.18.2",
14
+ "fs": "^0.0.1-security",
15
+ "multer": "^1.4.5-lts.1",
16
+ "path": "^0.12.7"
17
+ },
18
+ "devDependencies": {
19
+ "nodemon": "^3.0.1"
20
+ },
21
+ "keywords": [
22
+ "object-detection",
23
+ "yolov5",
24
+ "express",
25
+ "multer"
26
+ ],
27
+ "author": "Object Detection App",
28
+ "license": "MIT"
29
+ }
requirements.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ fastapi
2
+ uvicorn
3
+ torch>=1.9.0
4
+ torchvision>=0.10.0
5
+ numpy>=1.21.0
6
+ opencv-python>=4.5.0
7
+ Pillow>=8.0.0
8
+ ultralytics>=8.0.0
runtime.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ python-3.11
server.js ADDED
@@ -0,0 +1,313 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const express = require('express');
2
+ const multer = require('multer');
3
+ const cors = require('cors');
4
+ const path = require('path');
5
+ const fs = require('fs');
6
+ const { spawn } = require('child_process');
7
+
8
+ const app = express();
9
+ const PORT = process.env.PORT || 7860;
10
+
11
+ // Middleware
12
+ app.use(cors());
13
+ app.use(express.json());
14
+ app.use(express.static(path.join(__dirname, 'uploads')));
15
+ app.use('/detected', express.static(path.join(__dirname, '../runs/detect')));
16
+
17
+ // Configure multer for file uploads
18
+ const storage = multer.diskStorage({
19
+ destination: function (req, file, cb) {
20
+ const uploadDir = path.join(__dirname, 'uploads');
21
+ if (!fs.existsSync(uploadDir)) {
22
+ fs.mkdirSync(uploadDir, { recursive: true });
23
+ }
24
+ cb(null, uploadDir);
25
+ },
26
+ filename: function (req, file, cb) {
27
+ const uniqueSuffix = Date.now() + '-' + Math.round(Math.random() * 1E9);
28
+ cb(null, file.fieldname + '-' + uniqueSuffix + path.extname(file.originalname));
29
+ }
30
+ });
31
+
32
+ const upload = multer({
33
+ storage: storage,
34
+ fileFilter: function (req, file, cb) {
35
+ // Accept only image files
36
+ if (file.mimetype.startsWith('image/')) {
37
+ cb(null, true);
38
+ } else {
39
+ cb(new Error('Only image files are allowed!'), false);
40
+ }
41
+ },
42
+ limits: {
43
+ fileSize: 10 * 1024 * 1024 // 10MB limit
44
+ }
45
+ });
46
+
47
+ // Routes
48
+ app.get('/', (req, res) => {
49
+ // Check if the request wants HTML or JSON
50
+ const acceptHeader = req.headers.accept || '';
51
+
52
+ if (acceptHeader.includes('text/html')) {
53
+ // Send HTML response for browser viewing
54
+ res.send(`
55
+ <!DOCTYPE html>
56
+ <html lang="en">
57
+ <head>
58
+ <meta charset="UTF-8">
59
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
60
+ <title>Backend Status</title>
61
+ <style>
62
+ body {
63
+ font-family: Arial, sans-serif;
64
+ display: flex;
65
+ justify-content: center;
66
+ align-items: center;
67
+ height: 100vh;
68
+ margin: 0;
69
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
70
+ color: white;
71
+ }
72
+ .container {
73
+ text-align: center;
74
+ padding: 2rem;
75
+ background: rgba(255, 255, 255, 0.1);
76
+ border-radius: 15px;
77
+ backdrop-filter: blur(10px);
78
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
79
+ }
80
+ h1 {
81
+ font-size: 3rem;
82
+ margin-bottom: 1rem;
83
+ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
84
+ }
85
+ .status {
86
+ font-size: 1.5rem;
87
+ margin-bottom: 1rem;
88
+ color: #90EE90;
89
+ }
90
+ .info {
91
+ font-size: 1rem;
92
+ opacity: 0.8;
93
+ }
94
+ .timestamp {
95
+ font-size: 0.9rem;
96
+ opacity: 0.6;
97
+ margin-top: 2rem;
98
+ }
99
+ </style>
100
+ </head>
101
+ <body>
102
+ <div class="container">
103
+ <h1>🚀 Backend Running!</h1>
104
+ <div class="status">✅ Object Detection API is Active</div>
105
+ <div class="info">
106
+ <p>Port: ${PORT}</p>
107
+ <p>Environment: ${process.env.NODE_ENV || 'development'}</p>
108
+ <p>Upload Endpoint: POST /upload</p>
109
+ <p>Test Endpoint: GET /test-detected</p>
110
+ </div>
111
+ <div class="timestamp">
112
+ Started at: ${new Date().toLocaleString()}
113
+ </div>
114
+ </div>
115
+ </body>
116
+ </html>
117
+ `);
118
+ } else {
119
+ // Send JSON response for API calls
120
+ res.json({
121
+ message: 'Backend Running!',
122
+ status: 'active',
123
+ port: PORT,
124
+ environment: process.env.NODE_ENV || 'development',
125
+ timestamp: new Date().toISOString()
126
+ });
127
+ }
128
+ });
129
+
130
+ // Test endpoint to check if detected images are accessible
131
+ app.get('/test-detected', (req, res) => {
132
+ const expDir = path.join(__dirname, '../runs/detect/exp');
133
+ try {
134
+ if (fs.existsSync(expDir)) {
135
+ const files = fs.readdirSync(expDir);
136
+ const imageFiles = files.filter(file => /\.(jpg|jpeg|png)$/i.test(file));
137
+ res.json({
138
+ expDir,
139
+ totalFiles: files.length,
140
+ imageFiles: imageFiles,
141
+ staticPath: '/detected/exp/'
142
+ });
143
+ } else {
144
+ res.json({ error: 'Exp directory does not exist', expDir });
145
+ }
146
+ } catch (error) {
147
+ res.json({ error: error.message, expDir });
148
+ }
149
+ });
150
+
151
+ app.post('/upload', upload.single('image'), async (req, res) => {
152
+ try {
153
+ if (!req.file) {
154
+ return res.status(400).json({ error: 'No image file uploaded' });
155
+ }
156
+
157
+ const uploadedImagePath = req.file.path;
158
+ console.log('Image uploaded:', uploadedImagePath);
159
+
160
+ // Run YOLOv5 detection
161
+ const detectionResult = await runYOLOv5Detection(uploadedImagePath);
162
+
163
+ if (detectionResult.success) {
164
+ res.json({
165
+ success: true,
166
+ originalImage: `/uploads/${path.basename(uploadedImagePath)}`,
167
+ detectedImage: detectionResult.detectedImagePath,
168
+ message: 'Object detection completed successfully'
169
+ });
170
+ } else {
171
+ res.status(500).json({
172
+ success: false,
173
+ error: detectionResult.error
174
+ });
175
+ }
176
+
177
+ } catch (error) {
178
+ console.error('Error processing upload:', error);
179
+ res.status(500).json({
180
+ success: false,
181
+ error: 'Error processing image upload'
182
+ });
183
+ }
184
+ });
185
+
186
+ // Function to run YOLOv5 detection
187
+ async function runYOLOv5Detection(imagePath) {
188
+ return new Promise((resolve) => {
189
+ const yolov5Path = path.join(__dirname, 'detect.py');
190
+ const weightsPath = path.join(__dirname, 'yolov5s.pt');
191
+
192
+ console.log('Running YOLOv5 detection...');
193
+ console.log('Image path:', imagePath);
194
+ console.log('YOLOv5 script path:', yolov5Path);
195
+ console.log('Weights path:', weightsPath);
196
+
197
+ const pythonProcess = spawn('python', [
198
+ yolov5Path,
199
+ '--weights', weightsPath,
200
+ '--source', imagePath,
201
+ '--project', path.join(__dirname, '../runs/detect'),
202
+ '--name', 'exp',
203
+ '--exist-ok'
204
+ ]);
205
+
206
+ let stdout = '';
207
+ let stderr = '';
208
+
209
+ pythonProcess.stdout.on('data', (data) => {
210
+ stdout += data.toString();
211
+ console.log('YOLOv5 output:', data.toString());
212
+ });
213
+
214
+ pythonProcess.stderr.on('data', (data) => {
215
+ stderr += data.toString();
216
+ console.error('YOLOv5 error:', data.toString());
217
+ });
218
+
219
+ pythonProcess.on('close', (code) => {
220
+ console.log('YOLOv5 process exited with code:', code);
221
+
222
+ if (code === 0) {
223
+ // Find the detected image in the runs/detect/exp directory
224
+ const expDir = path.join(__dirname, '../runs/detect/exp');
225
+ const detectedImagePath = findDetectedImage(expDir, path.basename(imagePath));
226
+
227
+ if (detectedImagePath) {
228
+ // Get just the filename for the URL
229
+ const detectedImageFilename = path.basename(detectedImagePath);
230
+ console.log('Detected image filename:', detectedImageFilename);
231
+
232
+ resolve({
233
+ success: true,
234
+ detectedImagePath: `/detected/exp/${detectedImageFilename}`
235
+ });
236
+ } else {
237
+ resolve({
238
+ success: false,
239
+ error: 'Detection completed but result image not found'
240
+ });
241
+ }
242
+ } else {
243
+ resolve({
244
+ success: false,
245
+ error: `YOLOv5 detection failed with code ${code}: ${stderr}`
246
+ });
247
+ }
248
+ });
249
+
250
+ pythonProcess.on('error', (error) => {
251
+ console.error('Failed to start YOLOv5 process:', error);
252
+ resolve({
253
+ success: false,
254
+ error: `Failed to start YOLOv5 process: ${error.message}`
255
+ });
256
+ });
257
+ });
258
+ }
259
+
260
+ // Function to find the detected image
261
+ function findDetectedImage(expDir, originalImageName) {
262
+ try {
263
+ if (!fs.existsSync(expDir)) {
264
+ console.log('Exp directory does not exist:', expDir);
265
+ return null;
266
+ }
267
+
268
+ const files = fs.readdirSync(expDir);
269
+ console.log('Files in exp directory:', files);
270
+
271
+ // Look for image files (jpg, jpeg, png)
272
+ const imageFiles = files.filter(file => /\.(jpg|jpeg|png)$/i.test(file));
273
+
274
+ // Try to find the detected image with the same name as the uploaded file
275
+ const detectedFile = imageFiles.find(file => file === originalImageName);
276
+ if (detectedFile) {
277
+ const detectedImagePath = path.join(expDir, detectedFile);
278
+ console.log('Found detected image:', detectedImagePath);
279
+ return detectedImagePath;
280
+ }
281
+
282
+ // Fallback: return the first image if not found (optional)
283
+ if (imageFiles.length > 0) {
284
+ const detectedImagePath = path.join(expDir, imageFiles[0]);
285
+ console.log('Fallback detected image:', detectedImagePath);
286
+ return detectedImagePath;
287
+ }
288
+
289
+ return null;
290
+ } catch (error) {
291
+ console.error('Error finding detected image:', error);
292
+ return null;
293
+ }
294
+ }
295
+
296
+ // Error handling middleware
297
+ app.use((error, req, res, next) => {
298
+ if (error instanceof multer.MulterError) {
299
+ if (error.code === 'LIMIT_FILE_SIZE') {
300
+ return res.status(400).json({ error: 'File too large. Maximum size is 10MB.' });
301
+ }
302
+ }
303
+ console.error('Server error:', error);
304
+ res.status(500).json({ error: 'Internal server error' });
305
+ });
306
+
307
+ // Start server
308
+ app.listen(PORT, () => {
309
+ console.log(`Server running on port ${PORT}`);
310
+ console.log(`Upload directory: ${path.join(__dirname, 'uploads')}`);
311
+ console.log(`Detected images served from: ${path.join(__dirname, '../runs/detect')}`);
312
+ console.log(`Static file serving configured for /detected -> ${path.join(__dirname, '../runs/detect')}`);
313
+ });
start-app.bat ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ echo Starting Object Detection App...
3
+ echo.
4
+
5
+ echo Starting Backend Server (Port 5000)...
6
+ start "Backend Server" cmd /k "npm start"
7
+
8
+ echo Waiting 3 seconds for backend to start...
9
+ timeout /t 3 /nobreak > nul
10
+
11
+ echo Starting Frontend Server (Port 3000)...
12
+ start "Frontend Server" cmd /k "cd ../frontend && npm start"
13
+
14
+ echo.
15
+ echo Both servers are starting...
16
+ echo Backend: http://localhost:5000
17
+ echo Frontend: http://localhost:3000
18
+ echo.
19
+ echo Press any key to close this window...
20
+ pause > nul
start-app.ps1 ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Write-Host "Starting Object Detection App..." -ForegroundColor Green
2
+ Write-Host ""
3
+
4
+ Write-Host "Starting Backend Server (Port 5000)..." -ForegroundColor Yellow
5
+ Start-Process powershell -ArgumentList "-NoExit", "-Command", "npm start" -WindowStyle Normal
6
+
7
+ Write-Host "Waiting 3 seconds for backend to start..." -ForegroundColor Cyan
8
+ Start-Sleep -Seconds 3
9
+
10
+ Write-Host "Starting Frontend Server (Port 3000)..." -ForegroundColor Yellow
11
+ Start-Process powershell -ArgumentList "-NoExit", "-Command", "cd ../frontend; npm start" -WindowStyle Normal
12
+
13
+ Write-Host ""
14
+ Write-Host "Both servers are starting..." -ForegroundColor Green
15
+ Write-Host "Backend: http://localhost:5000" -ForegroundColor Cyan
16
+ Write-Host "Frontend: http://localhost:3000" -ForegroundColor Cyan
17
+ Write-Host ""
18
+ Write-Host "Press any key to close this window..." -ForegroundColor Yellow
19
+ $null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
test-server.js ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const http = require('http');
2
+
3
+ const options = {
4
+ hostname: 'localhost',
5
+ port: 5000,
6
+ path: '/',
7
+ method: 'GET'
8
+ };
9
+
10
+ const req = http.request(options, (res) => {
11
+ console.log(`Status: ${res.statusCode}`);
12
+ console.log(`Headers: ${JSON.stringify(res.headers)}`);
13
+
14
+ let data = '';
15
+ res.on('data', (chunk) => {
16
+ data += chunk;
17
+ });
18
+
19
+ res.on('end', () => {
20
+ console.log('Response:', data);
21
+ });
22
+ });
23
+
24
+ req.on('error', (e) => {
25
+ console.error(`Problem with request: ${e.message}`);
26
+ });
27
+
28
+ req.end();
yolov5s.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b3b748c1e592ddd8868022e8732fde20025197328490623cc16c6f24d0782ee
3
+ size 14808437