commit 0007660bd870f7e8ed9295b8794d4b30735531d9 Author: gotolombok Date: Sat Jan 31 17:32:07 2026 +0800 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a4ed3bd --- /dev/null +++ b/.gitignore @@ -0,0 +1,53 @@ +# Dependencies +node_modules/ +package-lock.json + +# Environment variables +.env +.env.local +.env.development.local +.env.test.local +.env.production.local +.htaccess +yarn.lock + +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Operating System +.DS_Store +Thumbs.db +ehthumbs.db +Desktop.ini + +# IDEs and Editors +.idea/ +.vscode/ +*.swp +*.swo +*.sublime-project +*.sublime-workspace + +# Testing +coverage/ +.nyc_output/ + +# Build artifacts +dist/ +build/ + +# Temporary files +tmp/ +temp/ diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..63f2d88 --- /dev/null +++ b/.htaccess @@ -0,0 +1 @@ +# Please fill in the URLrewrite rules or custom Apache config here diff --git a/API.md b/API.md new file mode 100644 index 0000000..1817720 --- /dev/null +++ b/API.md @@ -0,0 +1,123 @@ +# MovieBox API Documentation + +Base URL: `http://localhost:5000/api` + +## Authentication + +All API endpoints (except the root status check) require an API Key. +Include it in the header `x-api-key`. + +header: +`x-api-key: your_secure_key_here` + +## Endpoints + +### 1. Health Check +Check the status of the API server and upstream connectivity. + +* **URL:** `/apicheck` +* **Method:** `GET` +* **Response:** + ```json + { + "status": "Success", + "code": 200, + "message": "API is running smoothly", + "latency": "1376ms", + "upstream": "OK" + } + ``` + +### 2. Homepage +Get the homepage content including top picks, trending, and categories. + +* **URL:** `/home` +* **Method:** `GET` + +### 3. Search +Search for movies or series. + +* **URL:** `/search` +* **Method:** `GET` +* **Query Params:** + * `keyword` (required): Search term (e.g., "Batman") + * `page` (optional): Page number (default: 1) + * `perPage` (optional): Items per page (default: 24) + * `subjectType` (optional): Filter by type (default: 0) + +### 4. Detail +Get detailed information about a specific movie or series. + +* **URL:** `/detail` +* **Method:** `GET` +* **Query Params:** + * `subjectId` (required): The ID of the item (e.g., "2918032533596032808") + +### 5. Sources (Stream & Download) +Get direct streaming and download links for a specific episode. +**Note:** The API automatically handles `detailPath` extraction and Referer validation. + +* **URL:** `/sources` +* **Method:** `GET` +* **Query Params:** + * `subjectId` (required): The ID of the item. + * `season` (optional): Season number (default: 1). + * `episode` (optional): Episode number (default: 1). +* **Response:** + ```json + { + "downloads": [...], + "captions": [...], + "processedSources": [ + { + "id": "...", + "quality": 720, + "directUrl": "https://...", + "size": "...", + "format": "mp4" + } + ] + } + ``` + +### 6. Streaming Links (Raw) +Get raw streaming links. + +* **URL:** `/stream` +* **Method:** `GET` +* **Query Params:** + * `subjectId` (required) + * `detailPath` (required) + * `season` (optional) + * `episode` (optional) + +### 7. Download Links (Raw) +Get raw download links. + +* **URL:** `/download` +* **Method:** `GET` +* **Query Params:** + * `subjectId` (required) + * `detailPath` (required) + * `season` (optional) + * `episode` (optional) + +### 8. Trending +Get trending content. + +* **URL:** `/trending` +* **Method:** `GET` + +### 9. Rank +Get search rankings/hot moves. + +* **URL:** `/rank` +* **Method:** `GET` + +### 10. Recommend +Get recommendations based on a subject. + +* **URL:** `/recommend` +* **Method:** `GET` +* **Query Params:** + * `subjectId` (required) diff --git a/README.md b/README.md new file mode 100644 index 0000000..c116aee --- /dev/null +++ b/README.md @@ -0,0 +1,50 @@ +# MovieBox API Server + +A robust Node.js API server for accessing MovieBox content, featuring advanced session management, anti-ban protection, and a clean RESTful interface. + +## Features + +- **Session Management**: Automatic cookie persistence and User-Agent rotation to prevent IP bans. +- **Anti-Ban**: Intelligent retry logic with exponential backoff for 403/429 errors. +- **Request Logging**: Detailed logging of incoming requests and outgoing API calls for easy debugging. +- **Unified Sources**: `/sources` endpoint that aggregates download and stream links with auto-fallback. +- **Health Check**: `/apicheck` endpoint for monitoring server status. +- **Startup Banner**: Professional ASCII art banner with server status information. + +## Installation + +1. Clone the repository. +2. Install dependencies: + ```bash + npm install + ``` + +3. Configure environment variables: + Create a `.env` file in the root directory: + ```env + PORT=5000 + API_KEY=cineprime_secure_key_2024 + ``` + +## Usage + +Start the server: +```bash +node index.js +``` +The server will start on port **5000** (default). + +## API Documentation + +See [API.md](API.md) for detailed endpoint documentation. + +## Key Endpoints + +- `GET /api/home` - Get homepage content. +- `GET /api/search?keyword=...` - Search for content. +- `GET /api/detail?subjectId=...` - Get content details. +- `GET /api/sources?subjectId=...` - Get stream/download links. +- `GET /api/apicheck` - Server health check. + +## License +MIT diff --git a/index.js b/index.js new file mode 100644 index 0000000..01e41f8 --- /dev/null +++ b/index.js @@ -0,0 +1,80 @@ + +const express = require('express'); +const cors = require('cors'); +require('dotenv').config(); + +const routes = require('./src/routes'); +const app = express(); +const PORT = process.env.PORT || 5000; + +app.use(cors()); +app.use(express.json()); + +// Request Logging Middleware +app.use((req, res, next) => { + const start = Date.now(); + res.on('finish', () => { + const duration = Date.now() - start; + console.log(`[HTTP] ${req.method} ${req.path} - ${res.statusCode} (${duration}ms)`); + }); + next(); +}); + +// Authentication Middleware +app.use((req, res, next) => { + // Skip auth for root endpoint (status check) + if (req.path === '/' || req.path === '/favicon.ico') { + return next(); + } + + const apiKey = req.headers['x-api-key'] || req.query.apikey; + const validApiKey = process.env.API_KEY; + + if (!apiKey || apiKey !== validApiKey) { + return res.status(401).json({ + status: false, + message: "Unauthorized: Invalid or missing API Key" + }); + } + + next(); +}); + +// Routes +app.use('/api', routes); + +app.get('/', (req, res) => { + res.json({ + message: "MovieBox Node.js API is running", + endpoints: [ + "/api/home", + "/api/search?keyword=...", + "/api/trending", + "/api/rank", + "/api/detail?url=...", + "/api/stream?subjectId=...&detailPath=...", + "/api/download?subjectId=...&detailPath=..." + ] + }); +}); + +app.listen(PORT, () => { + console.log("\n"); + console.log("╔══════════════════════════════════════════════════════════╗"); + console.log("║ ║"); + console.log("║ 🎬 MOVIEBOX API SERVER v1.0.0 ║"); + console.log("║ ║"); + console.log("╠══════════════════════════════════════════════════════════╣"); + console.log("║ ║"); + console.log(`║ 🚀 Status : Running ║`); + console.log(`║ 🌐 Local : http://localhost:${PORT} ║`); + console.log("║ ║"); + console.log("╠══════════════════════════════════════════════════════════╣"); + console.log("║ Features: ║"); + console.log("║ ✓ Session Management (Anti-Ban) ║"); + console.log("║ ✓ Request Logging ║"); + console.log("║ ✓ Auto Retry with Backoff ║"); + console.log("║ ║"); + console.log("╚══════════════════════════════════════════════════════════╝"); + console.log("\n"); +}); diff --git a/package.json b/package.json new file mode 100644 index 0000000..3ade250 --- /dev/null +++ b/package.json @@ -0,0 +1,26 @@ +{ + "name": "moviebox-api-node", + "version": "1.0.0", + "description": "Node.js port of the MovieBox API wrapper", + "main": "index.js", + "scripts": { + "start": "node index.js", + "dev": "node --watch index.js", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [ + "moviebox", + "api", + "nodejs", + "scraper" + ], + "author": "", + "license": "ISC", + "dependencies": { + "axios": "^1.7.9", + "cheerio": "^1.0.0", + "cors": "^2.8.5", + "dotenv": "^16.4.7", + "express": "^4.21.2" + } +} \ No newline at end of file diff --git a/src/api.js b/src/api.js new file mode 100644 index 0000000..0a8a0e2 --- /dev/null +++ b/src/api.js @@ -0,0 +1,233 @@ + +const axios = require('axios'); +const cheerio = require('cheerio'); +const { + HOST_URL, + DEFAULT_REQUEST_HEADERS, + DOWNLOAD_REQUEST_HEADERS, +} = require('./constants'); +const { resolveData, cleanKeys } = require('./utils'); +const SessionManager = require('./session'); + +// Configuration for Retries +const MAX_RETRIES = 3; +const RETRY_DELAY_MS = 1500; + +class MovieBoxAPI { + constructor() { + this.uid = null; + this.sessionManager = new SessionManager(); + this.sessionManager.setApi(this); + this.client = axios.create({ + baseURL: HOST_URL, + timeout: 30000, // 30s + }); + } + + getAbsoluteUrl(path) { + if (path.startsWith('http')) return path; + return `${HOST_URL}${path.startsWith('/') ? path.slice(1) : path}`; + } + + async _request(method, url, data = null, headers = {}, attempt = 0) { + const fullUrl = this.getAbsoluteUrl(url); + const startTime = Date.now(); + + try { + // Get merged headers from SessionManager + const finalHeaders = this.sessionManager.getHeaders({ + ...DEFAULT_REQUEST_HEADERS, + ...headers + }); + + const config = { + method, + url: fullUrl, + headers: finalHeaders, + data + }; + + const response = await this.client(config); + + // Calculate duration + const duration = Date.now() - startTime; + console.log(`[API] ${method} ${url} - ${response.status} (${duration}ms)`); + + // DEBUG: Log first 200 chars of data + // console.log(`[API DEBUG] Data: ${JSON.stringify(response.data).substring(0, 500)}`); + + // Update cookies via SessionManager + this.sessionManager.updateCookies(response.headers); + + return response.data; + } catch (error) { + const duration = Date.now() - startTime; + const status = error.response ? error.response.status : 'Network Error'; + + console.error(`[API] Error ${method} ${url} - ${status} (${duration}ms): ${error.message}`); + + // Retry Logic for Specific Codes (403 Forbidden, 429 Too Many Requests, 5xx) + if (attempt < MAX_RETRIES && (status === 403 || status === 429 || status >= 500)) { + console.warn(`[API] Retrying request (Attempt ${attempt + 1}/${MAX_RETRIES})...`); + + // Refresh session if Forbidden + if (status === 403) { + await this.sessionManager.refreshSession(); + } + + await new Promise(r => setTimeout(r, RETRY_DELAY_MS)); + return this._request(method, url, data, headers, attempt + 1); + } + + throw error; + } + } + + async getHomepage() { + const data = await this._request('GET', '/wefeed-h5-bff/web/home'); + return data.data; + } + + async search(query, page = 1, perPage = 24, subjectType = 0) { + const payload = { + keyword: query, + page: page, + perPage: perPage, + subjectType: subjectType + }; + const data = await this._request('POST', '/wefeed-h5-bff/web/subject/search', payload); + return data.data; + } + + async getTrending(page = 0, perPage = 18) { + const params = new URLSearchParams({ page, perPage }); + const data = await this._request('GET', `/wefeed-h5-bff/web/subject/trending?${params.toString()}`); + return data.data; + } + + async getRecommendation(subjectId, page = 1, perPage = 24) { + const params = new URLSearchParams({ + subjectId, + page, + perPage + }); + + const data = await this._request('GET', `/wefeed-h5-bff/web/subject/detail-rec?${params.toString()}`); + return data.data; + } + + async getHotMovesAndSeries() { + const data = await this._request('GET', '/wefeed-h5-bff/web/subject/search-rank'); + return data.data; + } + + async getSubjectDetails(subjectId) { + const params = new URLSearchParams({ subjectId }); + const data = await this._request('GET', `/wefeed-h5-bff/web/subject/detail?${params.toString()}`); + return data.data; + } + + async getItemDetails(urlOrId) { + // Fallback or deprecated - keep for flexibility if needed, or remove later. + let targetUrl = urlOrId; + if (!targetUrl.startsWith('http')) { + targetUrl = this.getAbsoluteUrl(targetUrl); + } + + try { + // We use standard axios get here but need headers from SessionManager for consistency + const finalHeaders = this.sessionManager.getHeaders({ + ...DEFAULT_REQUEST_HEADERS + }); + + const response = await axios.get(targetUrl, { + headers: finalHeaders + }); + + // Allow SessionManager to capture cookies from this HTML request too + this.sessionManager.updateCookies(response.headers); + + const html = response.data; + const $ = cheerio.load(html); + + const scriptContent = $('script[type="application/json"]').html(); + if (!scriptContent) { + throw new Error("Could not find embedded JSON data"); + } + + const rawData = JSON.parse(scriptContent); + const resolved = resolveData(rawData); + + if (!resolved) { + throw new Error("Failed to resolve data from JSON"); + } + + const cleanedResolved = cleanKeys(resolved); + + let targetData = cleanedResolved; + if (cleanedResolved.state && cleanedResolved.state[1]) { + targetData = cleanedResolved.state[1]; + } + + if (targetData.resData && targetData.resData.pubParam && targetData.resData.pubParam.uid) { + this.uid = targetData.resData.pubParam.uid; + } + + return targetData; + + } catch (error) { + console.error("[ItemDetails] Error fetching:", error.message); + throw error; + } + } + + async getStreamUrls(subjectId, detailPath, season = 0, episode = 0, reqSubjectType = 1) { + const params = new URLSearchParams({ + subjectId, + se: season, + ep: episode + }); + if (this.uid) params.append('uid', this.uid); + + const cleanPath = detailPath.startsWith('/') ? detailPath.slice(1) : detailPath; + const refererPath = `/movies/${cleanPath}`; + + const headers = { + "Referer": this.getAbsoluteUrl(refererPath) + }; + + const data = await this._request('GET', `/wefeed-h5-bff/web/subject/play?${params.toString()}`, null, headers); + + if (data.data) { + data.data.headers = DOWNLOAD_REQUEST_HEADERS; + } + + return data.data; + } + + async getDownloadUrls(subjectId, detailPath, season = 0, episode = 0, reqSubjectType = 1) { + const params = new URLSearchParams({ + subjectId, + se: season, + ep: episode + }); + if (this.uid) params.append('uid', this.uid); + + const cleanPath = detailPath.startsWith('/') ? detailPath.slice(1) : detailPath; + const refererPath = `/movies/${cleanPath}`; + + const headers = { + "Referer": this.getAbsoluteUrl(refererPath) + }; + + const data = await this._request('GET', `/wefeed-h5-bff/web/subject/download?${params.toString()}`, null, headers); + + if (data.data) { + data.data.headers = DOWNLOAD_REQUEST_HEADERS; + } + + return data.data; + } +} + +module.exports = MovieBoxAPI; diff --git a/src/constants.js b/src/constants.js new file mode 100644 index 0000000..9f29f9a --- /dev/null +++ b/src/constants.js @@ -0,0 +1,42 @@ + +const MIRROR_HOSTS = [ + "h5.aoneroom.com", + "movieboxapp.in", + "moviebox.pk", + "moviebox.ph", + "moviebox.id", + "v.moviebox.ph", + "netnaija.video", +]; + +const SELECTED_HOST = process.env.MOVIEBOX_API_HOST || MIRROR_HOSTS[0]; +const HOST_PROTOCOL = "https"; +const HOST_URL = `${HOST_PROTOCOL}://${SELECTED_HOST}/`; + +const DEFAULT_REQUEST_HEADERS = { + "X-Client-Info": '{"appId":"201","client":"h5","deviceId":"","lang":"en","timezone":"Africa/Nairobi"}', + "Accept-Language": "en-US,en;q=0.5", + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36", + "Referer": HOST_URL, + "Host": SELECTED_HOST, +}; + +const DOWNLOAD_REQUEST_REFERER = "https://fmoviesunblocked.net/"; + +const DOWNLOAD_REQUEST_HEADERS = { + "Accept": "*/*", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:137.0) Gecko/20100101 Firefox/137.0", + "Origin": SELECTED_HOST, + "Referer": DOWNLOAD_REQUEST_REFERER, +}; + +module.exports = { + MIRROR_HOSTS, + SELECTED_HOST, + HOST_URL, + DEFAULT_REQUEST_HEADERS, + DOWNLOAD_REQUEST_HEADERS, + DOWNLOAD_REQUEST_REFERER +}; diff --git a/src/routes.js b/src/routes.js new file mode 100644 index 0000000..4728ef5 --- /dev/null +++ b/src/routes.js @@ -0,0 +1,372 @@ + +const express = require('express'); +const router = express.Router(); +const axios = require('axios'); +const MovieBoxAPI = require('./api'); +const { DOWNLOAD_REQUEST_HEADERS, HOST_PROTOCOL, SELECTED_HOST } = require('./constants'); + +router.get('/home', async (req, res) => { + try { + const api = new MovieBoxAPI(); + const data = await api.getHomepage(); + res.json(data); + } catch (error) { + res.status(500).json({ error: error.message }); + } +}); + +router.get('/search', async (req, res) => { + try { + const { keyword, page = 1, perPage = 24, subjectType = 0 } = req.query; + if (!keyword) { + return res.status(400).json({ error: "Keyword is required" }); + } + const api = new MovieBoxAPI(); + const data = await api.search(keyword, parseInt(page), parseInt(perPage), parseInt(subjectType)); + res.json(data); + } catch (error) { + res.status(500).json({ error: error.message }); + } +}); + +router.get('/trending', async (req, res) => { + try { + const { page = 0, perPage = 18 } = req.query; + const api = new MovieBoxAPI(); + const data = await api.getTrending(parseInt(page), parseInt(perPage)); + res.json(data); + } catch (error) { + res.status(500).json({ error: error.message }); + } +}); + +router.get('/rank', async (req, res) => { + try { + const api = new MovieBoxAPI(); + const data = await api.getHotMovesAndSeries(); + res.json(data); + } catch (error) { + res.status(500).json({ error: error.message }); + } +}); + +router.get('/recommend', async (req, res) => { + try { + const { subjectId, page = 1, perPage = 24 } = req.query; + if (!subjectId) { + return res.status(400).json({ error: "subjectId is required" }); + } + const api = new MovieBoxAPI(); + const data = await api.getRecommendation(subjectId, parseInt(page), parseInt(perPage)); + res.json(data); + } catch (error) { + res.status(500).json({ error: error.message }); + } +}); + +router.get('/detail', async (req, res) => { + try { + const { subjectId } = req.query; + if (!subjectId) { + return res.status(400).json({ error: "subjectId is required" }); + } + const api = new MovieBoxAPI(); + const data = await api.getSubjectDetails(subjectId); + res.json(data); + } catch (error) { + res.status(500).json({ error: error.message }); + } +}); + +router.get('/stream', async (req, res) => { + try { + const { subjectId, detailPath, season = 0, episode = 0 } = req.query; + if (!subjectId || !detailPath) { + return res.status(400).json({ error: "subjectId and detailPath are required" }); + } + const api = new MovieBoxAPI(); + const data = await api.getStreamUrls(subjectId, detailPath, parseInt(season), parseInt(episode)); + res.json(data); + } catch (error) { + res.status(500).json({ error: error.message }); + } +}); + +router.get('/download', async (req, res) => { + try { + const { subjectId, season = 1, episode = 1 } = req.query; + if (!subjectId) { + return res.status(400).json({ error: "subjectId is required" }); + } + + const api = new MovieBoxAPI(); + + // 1. Fetch Detail to get the correct detailPath (Slug) and warm up the session + let detailPath = "video"; + let subjectType = 1; + try { + const apiDetail = await api.getSubjectDetails(subjectId); + + if (apiDetail && apiDetail.subject && apiDetail.subject.detailPath) { + detailPath = apiDetail.subject.detailPath; + } else if (apiDetail && apiDetail.detailPath) { + detailPath = apiDetail.detailPath; + } + + if (apiDetail && apiDetail.subject && apiDetail.subject.subjectType) { + subjectType = apiDetail.subject.subjectType; + } + + // Construct the web URL for warming up the session - discovered all used /movies/ path + const webUrl = `/movies/${detailPath}`; + + await api.getItemDetails(webUrl); + + } catch (e) { + console.warn("[Download] Session warm-up failed:", e.message); + } + + // 2. Determine correct season/episode defaults + let defaultVal = (parseInt(subjectType) === 1) ? 0 : 1; + let finalSeason = req.query.season !== undefined ? parseInt(req.query.season) : defaultVal; + let finalEpisode = req.query.episode !== undefined ? parseInt(req.query.episode) : defaultVal; + + // 3. Try fetching Download URLs + let data = await api.getDownloadUrls(subjectId, detailPath, finalSeason, finalEpisode, subjectType); + + // 4. Fallback: If downloads empty, try Stream URLs + if (!data.downloads || data.downloads.length === 0) { + const streamData = await api.getStreamUrls(subjectId, detailPath, finalSeason, finalEpisode, subjectType); + const list = streamData.list || streamData.streams || []; + if (streamData && list.length > 0) { + data.downloads = list.map(item => ({ + ...item, + url: item.url || item.path, + resolution: item.quality || item.resolution || '720' + })); + if ((!data.captions || data.captions.length === 0) && streamData.captions) { + data.captions = streamData.captions; + } + } + } + + // Transform for user requirement + data.processedSources = []; + if (data.downloads) { + data.processedSources = data.downloads.map(item => ({ + id: item.id || `src_${Math.random()}`, + quality: item.resolution || 'unknown', + directUrl: item.url || "", + size: item.size || "0", + format: "mp4" + })); + } + + res.json(data); + } catch (error) { + res.status(500).json({ error: error.message }); + } +}); + +router.get('/generate-stream-link', async (req, res) => { + try { + const { url } = req.query; + if (!url) { + return res.status(400).json({ success: false, message: "URL is required" }); + } + + // Get file info using HEAD request + const headRes = await axios.head(url, { headers: DOWNLOAD_REQUEST_HEADERS }); + const size = headRes.headers['content-length']; + const contentType = headRes.headers['content-type']; + + const sizeFormatted = size ? (parseInt(size) / (1024 * 1024)).toFixed(2) + " MB" : "Unknown"; + + // Construct proxy URL + // Assuming the server is running on req.get('host') or configured host + const protocol = req.protocol; + const host = req.get('host'); + const proxyUrl = `${protocol}://${host}/api/proxy-stream?url=${encodeURIComponent(url)}`; + + res.json({ + success: true, + message: "URL successfully validated! Open the link below to stream.", + instruction: "Copy streamUrl and open in browser/player", + streamUrl: proxyUrl, + fileInfo: { + size: parseInt(size) || 0, + sizeFormatted: sizeFormatted, + contentType: contentType + } + }); + + } catch (error) { + res.status(500).json({ success: false, message: error.message }); + } +}); + +router.get('/sources', async (req, res) => { + try { + const { subjectId, season = 1, episode = 1 } = req.query; + if (!subjectId) { + return res.status(400).json({ error: "subjectId is required" }); + } + + const api = new MovieBoxAPI(); + + // 1. Fetch Detail to get the correct detailPath (Slug) and warm up the session + let detailPath = "video"; + let subjectType = 1; + try { + const apiDetail = await api.getSubjectDetails(subjectId); + + if (apiDetail && apiDetail.subject && apiDetail.subject.detailPath) { + detailPath = apiDetail.subject.detailPath; + } else if (apiDetail && apiDetail.detailPath) { + detailPath = apiDetail.detailPath; + } + + if (apiDetail && apiDetail.subject && apiDetail.subject.subjectType) { + subjectType = apiDetail.subject.subjectType; + } + + // Construct the web URL for warming up the session - discovered all used /movies/ path + const webUrl = `/movies/${detailPath}`; + + await api.getItemDetails(webUrl); + + } catch (e) { + console.warn("[Sources] Session warm-up failed:", e.message); + } + + // 2. Determine correct season/episode defaults + let defaultVal = (parseInt(subjectType) === 1) ? 0 : 1; + let finalSeason = req.query.season !== undefined ? parseInt(req.query.season) : defaultVal; + let finalEpisode = req.query.episode !== undefined ? parseInt(req.query.episode) : defaultVal; + + // 3. Try fetching Download URLs + let data = await api.getDownloadUrls(subjectId, detailPath, finalSeason, finalEpisode, subjectType); + + // 3. Fallback: If downloads empty, try Stream URLs + if (!data.downloads || data.downloads.length === 0) { + const streamData = await api.getStreamUrls(subjectId, detailPath, finalSeason, finalEpisode, subjectType); + + // Map stream list (usually data.list or data.data.list) to downloads structure + // API getStreamUrls returns data.data which has 'list' or similar? + // verifying api.js: getStreamUrls returns data.data. + // Let's assume streamData has 'list' or we map 'resources' if present + + // Note: streamData structure might differ slightly (list vs downloads) + // But usually keys are: { list: [], ... } or { items: [] } + // Let's inspect streamData keys in previous log: ['downloads', 'captions'...] - actually NO, stream calls /play + // /play response often has `list` + + const list = streamData.list || streamData.streams || []; + if (streamData && list.length > 0) { + // Map stream list to downloads format to unify processing + data.downloads = list.map(item => ({ + ...item, + // Stream items might have 'path' or 'url' + url: item.url || item.path, + resolution: item.quality || item.resolution || '720' // fallback + })); + // Merge captions if download didn't have them + if ((!data.captions || data.captions.length === 0) && streamData.captions) { + data.captions = streamData.captions; + } + } + } + + // Transform for user requirement + data.processedSources = []; + if (data.downloads) { + data.processedSources = data.downloads.map(item => ({ + id: item.id || `src_${Math.random()}`, + quality: item.resolution || 'unknown', + directUrl: item.url || "", + size: item.size || "0", + format: "mp4" // valid assumption for array of mp4s + })); + } + + res.json(data); + } catch (error) { + res.status(500).json({ error: error.message }); + } +}); + +router.get('/proxy-stream', async (req, res) => { + try { + const { url } = req.query; + if (!url) { + return res.status(400).send("URL is required"); + } + + const range = req.headers.range; + const headers = { ...DOWNLOAD_REQUEST_HEADERS }; + if (range) { + headers['Range'] = range; + } + + const response = await axios({ + method: 'GET', + url: url, + headers: headers, + responseType: 'stream', + validateStatus: null // Capture all statuses (200, 206, etc) + }); + + // Forward headers + res.status(response.status); + if (response.headers['content-range']) { + res.setHeader('Content-Range', response.headers['content-range']); + } + if (response.headers['content-length']) { + res.setHeader('Content-Length', response.headers['content-length']); + } + if (response.headers['content-type']) { + res.setHeader('Content-Type', response.headers['content-type']); + } + if (response.headers['accept-ranges']) { + res.setHeader('Accept-Ranges', response.headers['accept-ranges']); + } + + response.data.pipe(res); + + } catch (error) { + console.error("Proxy Error:", error.message); + if (!res.headersSent) { + res.status(500).send("Proxy Error"); + } + } +}); + + +router.get('/apicheck', async (req, res) => { + const startTime = Date.now(); + try { + // Ping upstream to verify connectivity + const api = new MovieBoxAPI(); + await api.getHomepage(); + const latency = Date.now() - startTime; + + res.json({ + status: "Success", + code: 200, + message: "API is running smoothly", + latency: `${latency}ms`, + upstream: "OK" + }); + } catch (error) { + const latency = Date.now() - startTime; + res.status(500).json({ + status: "Error", + code: 500, + message: "Upstream unreachable or Error", + error: error.message, + latency: `${latency}ms` + }); + } +}); + +module.exports = router; diff --git a/src/session.js b/src/session.js new file mode 100644 index 0000000..fd5e169 --- /dev/null +++ b/src/session.js @@ -0,0 +1,97 @@ +const axios = require('axios'); +const { DEFAULT_REQUEST_HEADERS, HOST_URL } = require('./constants'); + +class SessionManager { + constructor() { + this.cookies = ""; + this.userAgent = DEFAULT_REQUEST_HEADERS['User-Agent']; + // Simple User-Agent rotation list (optional, can be expanded) + this.userAgents = [ + "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36", + "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36", + "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0", + "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0" + ]; + this.api = null; + this.deviceId = Math.random().toString(36).substring(2, 12); + } + + setApi(api) { + this.api = api; + } + + rotateUserAgent() { + const randomIndex = Math.floor(Math.random() * this.userAgents.length); + this.userAgent = this.userAgents[randomIndex]; + console.log(`[Session] Rotated User-Agent to: ${this.userAgent}`); + } + + updateCookies(headers) { + if (headers['set-cookie']) { + const newCookies = headers['set-cookie'].map(c => c.split(';')[0]).join('; '); + if (this.cookies) { + // simple merge + const cookieMap = this.parseCookies(this.cookies); + const newCookieMap = this.parseCookies(newCookies); + const merged = { ...cookieMap, ...newCookieMap }; + + this.cookies = Object.entries(merged).map(([k, v]) => `${k}=${v}`).join('; '); + } else { + this.cookies = newCookies; + } + } + } + + parseCookies(cookieStr) { + const list = {}; + cookieStr && cookieStr.split(';').forEach(cookie => { + const parts = cookie.split('='); + list[parts.shift().trim()] = decodeURI(parts.join('=')); + }); + return list; + } + + getHeaders(baseHeaders = {}) { + let xClientInfo = baseHeaders['X-Client-Info'] || DEFAULT_REQUEST_HEADERS['X-Client-Info']; + + // If we have a captured UID, try to inject it into the X-Client-Info JSON + if (this.api && this.api.uid && xClientInfo) { + try { + const info = JSON.parse(xClientInfo); + info.uid = this.api.uid; + if (this.deviceId) info.deviceId = this.deviceId; + xClientInfo = JSON.stringify(info); + } catch (e) { + // ignore + } + } + + const headers = { + ...baseHeaders, + "User-Agent": this.userAgent, + "X-Client-Info": xClientInfo + }; + if (this.cookies) { + headers['Cookie'] = this.cookies; + } + return headers; + } + + async refreshSession() { + // Ping homepage to refresh cookies/session + console.log(`[Session] Refreshing session/cookies...`); + try { + this.rotateUserAgent(); + const response = await axios.get(HOST_URL, { + headers: this.getHeaders(DEFAULT_REQUEST_HEADERS), + timeout: 10000 + }); + this.updateCookies(response.headers); + console.log(`[Session] Session refreshed successfully.`); + } catch (error) { + console.error(`[Session] Failed to refresh session: ${error.message}`); + } + } +} + +module.exports = SessionManager; diff --git a/src/utils.js b/src/utils.js new file mode 100644 index 0000000..875cdc8 --- /dev/null +++ b/src/utils.js @@ -0,0 +1,90 @@ + +function resolveData(data) { + // data is the main list from the JSON + + function resolveValue(value) { + if (Array.isArray(value)) { + return value.map(index => { + const itemToResolve = (typeof index === 'number') ? data[index] : index; + return resolveValue(itemToResolve); + }); + } else if (typeof value === 'object' && value !== null) { + const processedValue = {}; + for (const [k, v] of Object.entries(value)) { + // In the python code: processed_value[k] = resolve_value(data[v]) + // This assumes v is an index into data. + if (typeof v === 'number' && v < data.length) { + processedValue[k] = resolveValue(data[v]); + } else { + // Fallback or maybe it's not always an index? + // Python code strictly did `data[v]`, implying v MUST be an index. + // But let's be careful. If v is not a number, the python code would crash if it tried to list index with non-int, + // unless the data structure guarantees v is int. + // Let's assume v is index. + processedValue[k] = resolveValue(data[v]); + } + } + return processedValue; + } + return value; + } + + // The Python logic: + // for entry in data: + // if type(entry) is dict: + // details = {} + // for key, index in entry.items(): + // details[key] = resolve_value(data[index]) + // extracts.append(details) + + // We only need the first one usually, or all. + // Python code: extracts[0] is returned usually. + + const extracts = []; + for (const entry of data) { + if (typeof entry === 'object' && entry !== null && !Array.isArray(entry)) { + const details = {}; + for (const [key, index] of Object.entries(entry)) { + if (typeof index === 'number' && index < data.length) { + details[key] = resolveValue(data[index]); + } + } + extracts.push(details); + } + } + + if (extracts.length > 0) { + // Python logic for 'whole=False': + // target_data = extracts[0]["state"][1] + // keys need to be stripped of first 2 chars (e.g. '$^title' -> 'title') + + // We will return the whole thing and let the caller decide or just implement the clean up here? + // Let's return the full resolved object first. + return extracts[0]; + } + return null; +} + +function cleanKeys(obj) { + if (Array.isArray(obj)) { + return obj.map(cleanKeys); + } else if (typeof obj === 'object' && obj !== null) { + const newObj = {}; + for (const [k, v] of Object.entries(obj)) { + let newKey = k; + if (k.startsWith('$^') || k.startsWith('$s')) { + newKey = k.substring(2); + } else if (k.startsWith('^')) { // Just in case + newKey = k.substring(1); + } + newObj[newKey] = cleanKeys(v); + } + return newObj; + } + return obj; +} + +module.exports = { + resolveData, + cleanKeys +}; diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..0956e8d --- /dev/null +++ b/yarn.lock @@ -0,0 +1,738 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +accepts@~1.3.8: + version "1.3.8" + resolved "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz" + integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== + dependencies: + mime-types "~2.1.34" + negotiator "0.6.3" + +array-flatten@1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz" + integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg== + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" + integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== + +axios@^1.7.9: + version "1.13.2" + resolved "https://registry.npmjs.org/axios/-/axios-1.13.2.tgz" + integrity sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA== + dependencies: + follow-redirects "^1.15.6" + form-data "^4.0.4" + proxy-from-env "^1.1.0" + +body-parser@~1.20.3: + version "1.20.4" + resolved "https://registry.npmjs.org/body-parser/-/body-parser-1.20.4.tgz" + integrity sha512-ZTgYYLMOXY9qKU/57FAo8F+HA2dGX7bqGc71txDRC1rS4frdFI5R7NhluHxH6M0YItAP0sHB4uqAOcYKxO6uGA== + dependencies: + bytes "~3.1.2" + content-type "~1.0.5" + debug "2.6.9" + depd "2.0.0" + destroy "~1.2.0" + http-errors "~2.0.1" + iconv-lite "~0.4.24" + on-finished "~2.4.1" + qs "~6.14.0" + raw-body "~2.5.3" + type-is "~1.6.18" + unpipe "~1.0.0" + +boolbase@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz" + integrity sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww== + +bytes@~3.1.2: + version "3.1.2" + resolved "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz" + integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== + +call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz" + integrity sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ== + dependencies: + es-errors "^1.3.0" + function-bind "^1.1.2" + +call-bound@^1.0.2: + version "1.0.4" + resolved "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz" + integrity sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg== + dependencies: + call-bind-apply-helpers "^1.0.2" + get-intrinsic "^1.3.0" + +cheerio-select@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/cheerio-select/-/cheerio-select-2.1.0.tgz" + integrity sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g== + dependencies: + boolbase "^1.0.0" + css-select "^5.1.0" + css-what "^6.1.0" + domelementtype "^2.3.0" + domhandler "^5.0.3" + domutils "^3.0.1" + +cheerio@^1.0.0: + version "1.1.2" + resolved "https://registry.npmjs.org/cheerio/-/cheerio-1.1.2.tgz" + integrity sha512-IkxPpb5rS/d1IiLbHMgfPuS0FgiWTtFIm/Nj+2woXDLTZ7fOT2eqzgYbdMlLweqlHbsZjxEChoVK+7iph7jyQg== + dependencies: + cheerio-select "^2.1.0" + dom-serializer "^2.0.0" + domhandler "^5.0.3" + domutils "^3.2.2" + encoding-sniffer "^0.2.1" + htmlparser2 "^10.0.0" + parse5 "^7.3.0" + parse5-htmlparser2-tree-adapter "^7.1.0" + parse5-parser-stream "^7.1.2" + undici "^7.12.0" + whatwg-mimetype "^4.0.0" + +combined-stream@^1.0.8: + version "1.0.8" + resolved "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz" + integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== + dependencies: + delayed-stream "~1.0.0" + +content-disposition@~0.5.4: + version "0.5.4" + resolved "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz" + integrity sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ== + dependencies: + safe-buffer "5.2.1" + +content-type@~1.0.4, content-type@~1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz" + integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA== + +cookie-signature@~1.0.6: + version "1.0.7" + resolved "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz" + integrity sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA== + +cookie@~0.7.1: + version "0.7.2" + resolved "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz" + integrity sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w== + +cors@^2.8.5: + version "2.8.5" + resolved "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz" + integrity sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g== + dependencies: + object-assign "^4" + vary "^1" + +css-select@^5.1.0: + version "5.2.2" + resolved "https://registry.npmjs.org/css-select/-/css-select-5.2.2.tgz" + integrity sha512-TizTzUddG/xYLA3NXodFM0fSbNizXjOKhqiQQwvhlspadZokn1KDy0NZFS0wuEubIYAV5/c1/lAr0TaaFXEXzw== + dependencies: + boolbase "^1.0.0" + css-what "^6.1.0" + domhandler "^5.0.2" + domutils "^3.0.1" + nth-check "^2.0.1" + +css-what@^6.1.0: + version "6.2.2" + resolved "https://registry.npmjs.org/css-what/-/css-what-6.2.2.tgz" + integrity sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA== + +debug@2.6.9: + version "2.6.9" + resolved "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" + integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== + +depd@~2.0.0, depd@2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz" + integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== + +destroy@~1.2.0, destroy@1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz" + integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== + +dom-serializer@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz" + integrity sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg== + dependencies: + domelementtype "^2.3.0" + domhandler "^5.0.2" + entities "^4.2.0" + +domelementtype@^2.3.0: + version "2.3.0" + resolved "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz" + integrity sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw== + +domhandler@^5.0.2, domhandler@^5.0.3: + version "5.0.3" + resolved "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz" + integrity sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w== + dependencies: + domelementtype "^2.3.0" + +domutils@^3.0.1, domutils@^3.2.1, domutils@^3.2.2: + version "3.2.2" + resolved "https://registry.npmjs.org/domutils/-/domutils-3.2.2.tgz" + integrity sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw== + dependencies: + dom-serializer "^2.0.0" + domelementtype "^2.3.0" + domhandler "^5.0.3" + +dotenv@^16.4.7: + version "16.6.1" + resolved "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz" + integrity sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow== + +dunder-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz" + integrity sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A== + dependencies: + call-bind-apply-helpers "^1.0.1" + es-errors "^1.3.0" + gopd "^1.2.0" + +ee-first@1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz" + integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== + +encodeurl@~2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz" + integrity sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg== + +encoding-sniffer@^0.2.1: + version "0.2.1" + resolved "https://registry.npmjs.org/encoding-sniffer/-/encoding-sniffer-0.2.1.tgz" + integrity sha512-5gvq20T6vfpekVtqrYQsSCFZ1wEg5+wW0/QaZMWkFr6BqD3NfKs0rLCx4rrVlSWJeZb5NBJgVLswK/w2MWU+Gw== + dependencies: + iconv-lite "^0.6.3" + whatwg-encoding "^3.1.1" + +entities@^4.2.0: + version "4.5.0" + resolved "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz" + integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw== + +entities@^6.0.0: + version "6.0.1" + resolved "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz" + integrity sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g== + +es-define-property@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz" + integrity sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g== + +es-errors@^1.3.0: + version "1.3.0" + resolved "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz" + integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== + +es-object-atoms@^1.0.0, es-object-atoms@^1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz" + integrity sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA== + dependencies: + es-errors "^1.3.0" + +es-set-tostringtag@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz" + integrity sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA== + dependencies: + es-errors "^1.3.0" + get-intrinsic "^1.2.6" + has-tostringtag "^1.0.2" + hasown "^2.0.2" + +escape-html@~1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz" + integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== + +etag@~1.8.1: + version "1.8.1" + resolved "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz" + integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== + +express@^4.21.2: + version "4.22.1" + resolved "https://registry.npmjs.org/express/-/express-4.22.1.tgz" + integrity sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g== + dependencies: + accepts "~1.3.8" + array-flatten "1.1.1" + body-parser "~1.20.3" + content-disposition "~0.5.4" + content-type "~1.0.4" + cookie "~0.7.1" + cookie-signature "~1.0.6" + debug "2.6.9" + depd "2.0.0" + encodeurl "~2.0.0" + escape-html "~1.0.3" + etag "~1.8.1" + finalhandler "~1.3.1" + fresh "~0.5.2" + http-errors "~2.0.0" + merge-descriptors "1.0.3" + methods "~1.1.2" + on-finished "~2.4.1" + parseurl "~1.3.3" + path-to-regexp "~0.1.12" + proxy-addr "~2.0.7" + qs "~6.14.0" + range-parser "~1.2.1" + safe-buffer "5.2.1" + send "~0.19.0" + serve-static "~1.16.2" + setprototypeof "1.2.0" + statuses "~2.0.1" + type-is "~1.6.18" + utils-merge "1.0.1" + vary "~1.1.2" + +finalhandler@~1.3.1: + version "1.3.2" + resolved "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz" + integrity sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg== + dependencies: + debug "2.6.9" + encodeurl "~2.0.0" + escape-html "~1.0.3" + on-finished "~2.4.1" + parseurl "~1.3.3" + statuses "~2.0.2" + unpipe "~1.0.0" + +follow-redirects@^1.15.6: + version "1.15.11" + resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz" + integrity sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ== + +form-data@^4.0.4: + version "4.0.5" + resolved "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz" + integrity sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + es-set-tostringtag "^2.1.0" + hasown "^2.0.2" + mime-types "^2.1.12" + +forwarded@0.2.0: + version "0.2.0" + resolved "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz" + integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow== + +fresh@~0.5.2: + version "0.5.2" + resolved "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz" + integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== + +function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== + +get-intrinsic@^1.2.5, get-intrinsic@^1.2.6, get-intrinsic@^1.3.0: + version "1.3.0" + resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz" + integrity sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ== + dependencies: + call-bind-apply-helpers "^1.0.2" + es-define-property "^1.0.1" + es-errors "^1.3.0" + es-object-atoms "^1.1.1" + function-bind "^1.1.2" + get-proto "^1.0.1" + gopd "^1.2.0" + has-symbols "^1.1.0" + hasown "^2.0.2" + math-intrinsics "^1.1.0" + +get-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz" + integrity sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g== + dependencies: + dunder-proto "^1.0.1" + es-object-atoms "^1.0.0" + +gopd@^1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz" + integrity sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg== + +has-symbols@^1.0.3, has-symbols@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz" + integrity sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ== + +has-tostringtag@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz" + integrity sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw== + dependencies: + has-symbols "^1.0.3" + +hasown@^2.0.2: + version "2.0.2" + resolved "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz" + integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== + dependencies: + function-bind "^1.1.2" + +htmlparser2@^10.0.0: + version "10.0.0" + resolved "https://registry.npmjs.org/htmlparser2/-/htmlparser2-10.0.0.tgz" + integrity sha512-TwAZM+zE5Tq3lrEHvOlvwgj1XLWQCtaaibSN11Q+gGBAS7Y1uZSWwXXRe4iF6OXnaq1riyQAPFOBtYc77Mxq0g== + dependencies: + domelementtype "^2.3.0" + domhandler "^5.0.3" + domutils "^3.2.1" + entities "^6.0.0" + +http-errors@~2.0.0, http-errors@~2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz" + integrity sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ== + dependencies: + depd "~2.0.0" + inherits "~2.0.4" + setprototypeof "~1.2.0" + statuses "~2.0.2" + toidentifier "~1.0.1" + +iconv-lite@^0.6.3, iconv-lite@0.6.3: + version "0.6.3" + resolved "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz" + integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw== + dependencies: + safer-buffer ">= 2.1.2 < 3.0.0" + +iconv-lite@~0.4.24: + version "0.4.24" + resolved "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + +inherits@~2.0.4: + version "2.0.4" + resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +ipaddr.js@1.9.1: + version "1.9.1" + resolved "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz" + integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== + +math-intrinsics@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz" + integrity sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g== + +media-typer@0.3.0: + version "0.3.0" + resolved "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz" + integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ== + +merge-descriptors@1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz" + integrity sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ== + +methods@~1.1.2: + version "1.1.2" + resolved "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz" + integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w== + +mime-db@1.52.0: + version "1.52.0" + resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + +mime-types@^2.1.12, mime-types@~2.1.24, mime-types@~2.1.34: + version "2.1.35" + resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + +mime@1.6.0: + version "1.6.0" + resolved "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz" + integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz" + integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== + +ms@2.1.3: + version "2.1.3" + resolved "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== + +negotiator@0.6.3: + version "0.6.3" + resolved "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz" + integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== + +nth-check@^2.0.1: + version "2.1.1" + resolved "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz" + integrity sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w== + dependencies: + boolbase "^1.0.0" + +object-assign@^4: + version "4.1.1" + resolved "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz" + integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== + +object-inspect@^1.13.3: + version "1.13.4" + resolved "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz" + integrity sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew== + +on-finished@~2.4.1: + version "2.4.1" + resolved "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz" + integrity sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg== + dependencies: + ee-first "1.1.1" + +parse5-htmlparser2-tree-adapter@^7.1.0: + version "7.1.0" + resolved "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.1.0.tgz" + integrity sha512-ruw5xyKs6lrpo9x9rCZqZZnIUntICjQAd0Wsmp396Ul9lN/h+ifgVV1x1gZHi8euej6wTfpqX8j+BFQxF0NS/g== + dependencies: + domhandler "^5.0.3" + parse5 "^7.0.0" + +parse5-parser-stream@^7.1.2: + version "7.1.2" + resolved "https://registry.npmjs.org/parse5-parser-stream/-/parse5-parser-stream-7.1.2.tgz" + integrity sha512-JyeQc9iwFLn5TbvvqACIF/VXG6abODeB3Fwmv/TGdLk2LfbWkaySGY72at4+Ty7EkPZj854u4CrICqNk2qIbow== + dependencies: + parse5 "^7.0.0" + +parse5@^7.0.0, parse5@^7.3.0: + version "7.3.0" + resolved "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz" + integrity sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw== + dependencies: + entities "^6.0.0" + +parseurl@~1.3.3: + version "1.3.3" + resolved "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz" + integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== + +path-to-regexp@~0.1.12: + version "0.1.12" + resolved "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz" + integrity sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ== + +proxy-addr@~2.0.7: + version "2.0.7" + resolved "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz" + integrity sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg== + dependencies: + forwarded "0.2.0" + ipaddr.js "1.9.1" + +proxy-from-env@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz" + integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== + +qs@~6.14.0: + version "6.14.1" + resolved "https://registry.npmjs.org/qs/-/qs-6.14.1.tgz" + integrity sha512-4EK3+xJl8Ts67nLYNwqw/dsFVnCf+qR7RgXSK9jEEm9unao3njwMDdmsdvoKBKHzxd7tCYz5e5M+SnMjdtXGQQ== + dependencies: + side-channel "^1.1.0" + +range-parser@~1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz" + integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== + +raw-body@~2.5.3: + version "2.5.3" + resolved "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz" + integrity sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA== + dependencies: + bytes "~3.1.2" + http-errors "~2.0.1" + iconv-lite "~0.4.24" + unpipe "~1.0.0" + +safe-buffer@5.2.1: + version "5.2.1" + resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz" + integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== + +"safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0": + version "2.1.2" + resolved "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +send@~0.19.0, send@~0.19.1: + version "0.19.2" + resolved "https://registry.npmjs.org/send/-/send-0.19.2.tgz" + integrity sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg== + dependencies: + debug "2.6.9" + depd "2.0.0" + destroy "1.2.0" + encodeurl "~2.0.0" + escape-html "~1.0.3" + etag "~1.8.1" + fresh "~0.5.2" + http-errors "~2.0.1" + mime "1.6.0" + ms "2.1.3" + on-finished "~2.4.1" + range-parser "~1.2.1" + statuses "~2.0.2" + +serve-static@~1.16.2: + version "1.16.3" + resolved "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz" + integrity sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA== + dependencies: + encodeurl "~2.0.0" + escape-html "~1.0.3" + parseurl "~1.3.3" + send "~0.19.1" + +setprototypeof@~1.2.0, setprototypeof@1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz" + integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== + +side-channel-list@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz" + integrity sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA== + dependencies: + es-errors "^1.3.0" + object-inspect "^1.13.3" + +side-channel-map@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz" + integrity sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA== + dependencies: + call-bound "^1.0.2" + es-errors "^1.3.0" + get-intrinsic "^1.2.5" + object-inspect "^1.13.3" + +side-channel-weakmap@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz" + integrity sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A== + dependencies: + call-bound "^1.0.2" + es-errors "^1.3.0" + get-intrinsic "^1.2.5" + object-inspect "^1.13.3" + side-channel-map "^1.0.1" + +side-channel@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz" + integrity sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw== + dependencies: + es-errors "^1.3.0" + object-inspect "^1.13.3" + side-channel-list "^1.0.0" + side-channel-map "^1.0.1" + side-channel-weakmap "^1.0.2" + +statuses@~2.0.1, statuses@~2.0.2: + version "2.0.2" + resolved "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz" + integrity sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw== + +toidentifier@~1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz" + integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== + +type-is@~1.6.18: + version "1.6.18" + resolved "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz" + integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== + dependencies: + media-typer "0.3.0" + mime-types "~2.1.24" + +undici@^7.12.0: + version "7.18.2" + resolved "https://registry.npmjs.org/undici/-/undici-7.18.2.tgz" + integrity sha512-y+8YjDFzWdQlSE9N5nzKMT3g4a5UBX1HKowfdXh0uvAnTaqqwqB92Jt4UXBAeKekDs5IaDKyJFR4X1gYVCgXcw== + +unpipe@~1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz" + integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== + +utils-merge@1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz" + integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== + +vary@^1, vary@~1.1.2: + version "1.1.2" + resolved "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz" + integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== + +whatwg-encoding@^3.1.1: + version "3.1.1" + resolved "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz" + integrity sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ== + dependencies: + iconv-lite "0.6.3" + +whatwg-mimetype@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz" + integrity sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==