From 280133649dc4d8ca78b52fa61603f89805c7cff8 Mon Sep 17 00:00:00 2001 From: afkarxyz Date: Fri, 5 Dec 2025 05:00:51 +0700 Subject: [PATCH] v4.0 --- .gitignore | 62 + README.md | 46 +- TwitterXMediaBatchDownloader_Linux.py | 18 - TwitterXMediaBatchDownloader_Mac.py | 18 - TwitterXMediaBatchDownloader_Windows.py | 29 - app.go | 490 ++ backend/cmd_unix.go | 10 + backend/cmd_windows.go | 16 + backend/config.go | 18 + backend/database.go | 499 +++ backend/download.go | 380 ++ backend/embed_unix.go | 8 + backend/embed_windows.go | 8 + backend/ffmpeg.go | 316 ++ backend/folder.go | 52 + backend/twitter.go | 898 ++++ core/__init__.py | 14 - core/accountModel.py | 15 - core/databaseManager.py | 420 -- core/downloadWorker.py | 307 -- core/metadataFetcher.py | 329 -- core/metadataWorker.py | 60 - frontend/.gitignore | 24 + frontend/components.json | 22 + frontend/eslint.config.js | 23 + frontend/index.html | 16 + frontend/package.json | 54 + frontend/package.json.md5 | 1 + frontend/pnpm-lock.yaml | 3949 +++++++++++++++++ {ui/icons => frontend/public}/icon.svg | 0 frontend/scripts/generate-icon.js | 33 + frontend/src/App.tsx | 592 +++ frontend/src/components/DatabaseView.tsx | 1102 +++++ frontend/src/components/DebugLogger.tsx | 132 + frontend/src/components/DebugLoggerPage.tsx | 111 + frontend/src/components/FetchHistory.tsx | 58 + frontend/src/components/Header.tsx | 63 + frontend/src/components/MediaList.tsx | 1282 ++++++ frontend/src/components/SearchBar.tsx | 483 ++ frontend/src/components/Settings.tsx | 327 ++ frontend/src/components/SettingsPage.tsx | 320 ++ frontend/src/components/Sidebar.tsx | 86 + frontend/src/components/TitleBar.tsx | 55 + frontend/src/components/ui/accordion.tsx | 66 + frontend/src/components/ui/badge.tsx | 46 + frontend/src/components/ui/button.tsx | 60 + frontend/src/components/ui/card.tsx | 92 + frontend/src/components/ui/checkbox.tsx | 32 + frontend/src/components/ui/context-menu.tsx | 252 ++ frontend/src/components/ui/dialog.tsx | 143 + .../src/components/ui/input-with-context.tsx | 216 + frontend/src/components/ui/input.tsx | 21 + frontend/src/components/ui/label.tsx | 24 + frontend/src/components/ui/pagination.tsx | 127 + frontend/src/components/ui/progress.tsx | 31 + frontend/src/components/ui/radio-group.tsx | 45 + frontend/src/components/ui/select.tsx | 185 + frontend/src/components/ui/sonner.tsx | 47 + frontend/src/components/ui/spinner.tsx | 15 + frontend/src/components/ui/switch.tsx | 31 + frontend/src/components/ui/tooltip.tsx | 61 + frontend/src/index.css | 251 ++ frontend/src/lib/audio.ts | 107 + frontend/src/lib/fetch-state.ts | 179 + frontend/src/lib/logger.ts | 66 + frontend/src/lib/relative-time.ts | 59 + frontend/src/lib/settings.ts | 120 + frontend/src/lib/themes.ts | 470 ++ frontend/src/lib/toast-with-sound.ts | 55 + frontend/src/lib/utils.ts | 44 + frontend/src/main.tsx | 12 + frontend/src/types/api.ts | 76 + frontend/tsconfig.app.json | 36 + frontend/tsconfig.json | 13 + frontend/tsconfig.node.json | 26 + frontend/vite.config.ts | 14 + go.mod | 39 + go.sum | 83 + helper/BUILD.md | 62 + helper/USAGE.md | 331 ++ helper/twitter_cli.py | 309 ++ helper/twitter_common.py | 326 ++ main.go | 54 + requirements.txt | 8 - ui/__init__.py | 7 - ui/dialogs.py | 33 - ui/icons/icon.icns | Bin 117522 -> 0 bytes ui/icons/icon.ico | Bin 176786 -> 0 bytes ui/mainWindow.py | 3139 ------------- ui/mainWindow_Unix.py | 240 - version.json | 2 +- wails.json | 19 + 92 files changed, 15747 insertions(+), 4673 deletions(-) create mode 100644 .gitignore delete mode 100644 TwitterXMediaBatchDownloader_Linux.py delete mode 100644 TwitterXMediaBatchDownloader_Mac.py delete mode 100644 TwitterXMediaBatchDownloader_Windows.py create mode 100644 app.go create mode 100644 backend/cmd_unix.go create mode 100644 backend/cmd_windows.go create mode 100644 backend/config.go create mode 100644 backend/database.go create mode 100644 backend/download.go create mode 100644 backend/embed_unix.go create mode 100644 backend/embed_windows.go create mode 100644 backend/ffmpeg.go create mode 100644 backend/folder.go create mode 100644 backend/twitter.go delete mode 100644 core/__init__.py delete mode 100644 core/accountModel.py delete mode 100644 core/databaseManager.py delete mode 100644 core/downloadWorker.py delete mode 100644 core/metadataFetcher.py delete mode 100644 core/metadataWorker.py create mode 100644 frontend/.gitignore create mode 100644 frontend/components.json create mode 100644 frontend/eslint.config.js create mode 100644 frontend/index.html create mode 100644 frontend/package.json create mode 100644 frontend/package.json.md5 create mode 100644 frontend/pnpm-lock.yaml rename {ui/icons => frontend/public}/icon.svg (100%) create mode 100644 frontend/scripts/generate-icon.js create mode 100644 frontend/src/App.tsx create mode 100644 frontend/src/components/DatabaseView.tsx create mode 100644 frontend/src/components/DebugLogger.tsx create mode 100644 frontend/src/components/DebugLoggerPage.tsx create mode 100644 frontend/src/components/FetchHistory.tsx create mode 100644 frontend/src/components/Header.tsx create mode 100644 frontend/src/components/MediaList.tsx create mode 100644 frontend/src/components/SearchBar.tsx create mode 100644 frontend/src/components/Settings.tsx create mode 100644 frontend/src/components/SettingsPage.tsx create mode 100644 frontend/src/components/Sidebar.tsx create mode 100644 frontend/src/components/TitleBar.tsx create mode 100644 frontend/src/components/ui/accordion.tsx create mode 100644 frontend/src/components/ui/badge.tsx create mode 100644 frontend/src/components/ui/button.tsx create mode 100644 frontend/src/components/ui/card.tsx create mode 100644 frontend/src/components/ui/checkbox.tsx create mode 100644 frontend/src/components/ui/context-menu.tsx create mode 100644 frontend/src/components/ui/dialog.tsx create mode 100644 frontend/src/components/ui/input-with-context.tsx create mode 100644 frontend/src/components/ui/input.tsx create mode 100644 frontend/src/components/ui/label.tsx create mode 100644 frontend/src/components/ui/pagination.tsx create mode 100644 frontend/src/components/ui/progress.tsx create mode 100644 frontend/src/components/ui/radio-group.tsx create mode 100644 frontend/src/components/ui/select.tsx create mode 100644 frontend/src/components/ui/sonner.tsx create mode 100644 frontend/src/components/ui/spinner.tsx create mode 100644 frontend/src/components/ui/switch.tsx create mode 100644 frontend/src/components/ui/tooltip.tsx create mode 100644 frontend/src/index.css create mode 100644 frontend/src/lib/audio.ts create mode 100644 frontend/src/lib/fetch-state.ts create mode 100644 frontend/src/lib/logger.ts create mode 100644 frontend/src/lib/relative-time.ts create mode 100644 frontend/src/lib/settings.ts create mode 100644 frontend/src/lib/themes.ts create mode 100644 frontend/src/lib/toast-with-sound.ts create mode 100644 frontend/src/lib/utils.ts create mode 100644 frontend/src/main.tsx create mode 100644 frontend/src/types/api.ts create mode 100644 frontend/tsconfig.app.json create mode 100644 frontend/tsconfig.json create mode 100644 frontend/tsconfig.node.json create mode 100644 frontend/vite.config.ts create mode 100644 go.mod create mode 100644 go.sum create mode 100644 helper/BUILD.md create mode 100644 helper/USAGE.md create mode 100644 helper/twitter_cli.py create mode 100644 helper/twitter_common.py create mode 100644 main.go delete mode 100644 requirements.txt delete mode 100644 ui/__init__.py delete mode 100644 ui/dialogs.py delete mode 100644 ui/icons/icon.icns delete mode 100644 ui/icons/icon.ico delete mode 100644 ui/mainWindow.py delete mode 100644 ui/mainWindow_Unix.py create mode 100644 wails.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c2cfdc7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,62 @@ +# Wails Build +build/ +backend/bin/ +*.exe +*.dll +*.dylib +*.so + +# Wails Generated Files +frontend/wailsjs/ + +# Go +*.test +*.out +go.work +go.work.sum + +# Node / Frontend +node_modules/ +frontend/node_modules/ +frontend/dist/ +frontend/.vite/ +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +.pnpm-store/ +.npm +.yarn +*.tsbuildinfo + +# IDE / Editors +.vscode/ +.idea/ +*.swp +*.swo +*~ +.DS_Store + +# OS +Thumbs.db +desktop.ini + +# Environment +.env +.env.local +.env.*.local + +# Logs +*.log +logs/ + +# Temporary files +tmp/ +temp/ +*.tmp +*.bak +*.old + +# Build notes (optional - uncomment if you don't want to commit) +# BUILD_NOTES.md +build.txt \ No newline at end of file diff --git a/README.md b/README.md index 8f97f8b..2b6a455 100644 --- a/README.md +++ b/README.md @@ -3,47 +3,23 @@ ![TwitterXMediaBatchDownloader](https://github.com/user-attachments/assets/354d7470-c01c-4aa6-9da1-ea6c42d27330)
-Twitter/X Media Batch Downloader is a GUI tool that allows users to download all media, including images and videos, in their original quality from Twitter/X accounts using gallery-dl + +A GUI tool to download original-quality images and videos from Twitter/X accounts, powered by gallery-dl by @mikf + +![Windows](https://img.shields.io/badge/Windows-10%2B-0078D6?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIiB2aWV3Qm94PSIwIDAgMjAgMjAiPjxwYXRoIGZpbGw9IiNmZmZmZmYiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTIwIDEwLjg3M1YyMEw4LjQ3OSAxOC41MzdsLjAwMS03LjY2NEgyMFptLTEzLjEyIDBsLS4wMDEgNy40NjFMMCAxNy40NjF2LTYuNTg4aDYuODhaTTIwIDkuMjczSDguNDhsLS4wMDEtNy44MUwyMCAwdjkuMjczWk02Ljg3OSAxLjY2NmwuMDAxIDcuNjA3SDBWMi41MzlsNi44NzktLjg3M1oiLz48L3N2Zz4=) +![macOS](https://img.shields.io/badge/macOS-10.13%2B-000000?style=for-the-badge&logo=apple&logoColor=white) +![Linux](https://img.shields.io/badge/Linux-Any-FCC624?style=for-the-badge&logo=linux&logoColor=white) +
-## 📥 Download +### [Download](https://github.com/afkarxyz/SpotiFLAC/releases) -- [**Windows**](https://github.com/afkarxyz/Twitter-X-Media-Batch-Downloader/releases/latest/download/TwitterXMediaBatchDownloader_Windows.exe) -- [**Linux**](https://github.com/afkarxyz/Twitter-X-Media-Batch-Downloader/releases/latest/download/TwitterXMediaBatchDownloader_Linux) -- [**Mac**](https://github.com/afkarxyz/Twitter-X-Media-Batch-Downloader/releases/latest/download/TwitterXMediaBatchDownloader_Mac.zip) - If you're familiar with **userscripts**, please install it [**here**](https://greasyfork.org/en/scripts/523157) - The **Chrome extension** version is now available, please install it [**here**](https://www.patreon.com/posts/chrome-extension-139296789) - -## ✨ Features - -- Powered by `gallery-dl`, similar to `yt-dlp` -- **Bulk fetch**: Fetch multiple accounts at once -- **Bulk download**: Download multiple accounts at once -- Media-type selection: All (Images + GIFs + Videos) or specific (Images / GIFs / Videos) -- **MP4 → GIF conversion:** Convert downloaded MP4 videos into GIF format -- Downloads at original quality -## 🖼️ Screenshot +## Screenshot -![Image](https://github.com/user-attachments/assets/80b9f665-5fb4-4d17-bd40-56960029688d) - -### The downloaded application won't run❓ - -🐧 **Solution (Ubuntu/Linux)**: Open your terminal and run: - -```bash -chmod +x TwitterXMediaBatchDownloader_Linux -``` -![Linux](https://github.com/user-attachments/assets/fd04a4ee-3a6d-4e41-893d-1e3ed1a76186) - -🍎 **Solution (macOS)**: Open your terminal and run: - -```bash -xattr -rd com.apple.quarantine ~/Downloads/TwitterXMediaBatchDownloader_Mac.app -``` -![Mac](https://github.com/user-attachments/assets/24731c2f-019f-496d-8f98-870997f15758) - -## 🔑 How to Obtain Auth Token +## How to Obtain Auth Token > [!Warning] > - I suggest not using the **main account** to obtain the token. @@ -55,7 +31,7 @@ xattr -rd com.apple.quarantine ~/Downloads/TwitterXMediaBatchDownloader_Mac.app 1. Go to [Twitter's website](https://www.x.com/) 2. Log into your account -3. Open the Developer Tools by pressing `F12` +3. Open the Developer Tools by pressing F12 4. Navigate to the **Application** tab, then select **Storage → Cookies** 5. Find and copy the `auth_token` value or use the browser extension [X.com Auth Token Grabber](https://github.com/afkarxyz/Twitter-X-Media-Batch-Downloader/releases/download/v1.0/X.com.Auth.Token.Grabber.zip) 6. Do not log out of your account, as a new `auth_token` will be generated by Twitter diff --git a/TwitterXMediaBatchDownloader_Linux.py b/TwitterXMediaBatchDownloader_Linux.py deleted file mode 100644 index f9466a0..0000000 --- a/TwitterXMediaBatchDownloader_Linux.py +++ /dev/null @@ -1,18 +0,0 @@ -import sys -import os -from PyQt6.QtWidgets import QApplication -from ui.mainWindow_Unix import TwitterXMediaBatchDownloaderGUI_Unix - -def main(): - if getattr(sys, 'frozen', False): - os.chdir(os.path.dirname(sys.executable)) - - app = QApplication(sys.argv) - app.setStyle('Fusion') - - window = TwitterXMediaBatchDownloaderGUI_Unix() - window.show() - sys.exit(app.exec()) - -if __name__ == "__main__": - main() \ No newline at end of file diff --git a/TwitterXMediaBatchDownloader_Mac.py b/TwitterXMediaBatchDownloader_Mac.py deleted file mode 100644 index f9466a0..0000000 --- a/TwitterXMediaBatchDownloader_Mac.py +++ /dev/null @@ -1,18 +0,0 @@ -import sys -import os -from PyQt6.QtWidgets import QApplication -from ui.mainWindow_Unix import TwitterXMediaBatchDownloaderGUI_Unix - -def main(): - if getattr(sys, 'frozen', False): - os.chdir(os.path.dirname(sys.executable)) - - app = QApplication(sys.argv) - app.setStyle('Fusion') - - window = TwitterXMediaBatchDownloaderGUI_Unix() - window.show() - sys.exit(app.exec()) - -if __name__ == "__main__": - main() \ No newline at end of file diff --git a/TwitterXMediaBatchDownloader_Windows.py b/TwitterXMediaBatchDownloader_Windows.py deleted file mode 100644 index 0555f7e..0000000 --- a/TwitterXMediaBatchDownloader_Windows.py +++ /dev/null @@ -1,29 +0,0 @@ -import sys -import os -import qdarktheme -from PyQt6.QtWidgets import QApplication -from PyQt6.QtCore import QSettings -from ui.mainWindow import TwitterXMediaBatchDownloaderGUI - -def main(): - if getattr(sys, 'frozen', False): - os.chdir(os.path.dirname(sys.executable)) - - app = QApplication(sys.argv) - - settings = QSettings('TwitterXMediaBatchDownloader', 'Settings') - theme_color = settings.value('theme_color', '#2196F3') - - qdarktheme.setup_theme( - custom_colors={ - "[dark]": { - "primary": theme_color, - } - } - ) - window = TwitterXMediaBatchDownloaderGUI() - window.show() - sys.exit(app.exec()) - -if __name__ == "__main__": - main() \ No newline at end of file diff --git a/app.go b/app.go new file mode 100644 index 0000000..53297c6 --- /dev/null +++ b/app.go @@ -0,0 +1,490 @@ +package main + +import ( + "context" + "encoding/json" + "fmt" + "path/filepath" + "twitterxmediabatchdownloader/backend" + + "github.com/wailsapp/wails/v2/pkg/runtime" +) + +// App struct +type App struct { + ctx context.Context + downloadCtx context.Context + downloadCancel context.CancelFunc +} + +// NewApp creates a new App application struct +func NewApp() *App { + return &App{} +} + +// startup is called when the app starts. The context is saved +// so we can call the runtime methods +func (a *App) startup(ctx context.Context) { + a.ctx = ctx + // Initialize database + backend.InitDB() + // Kill any leftover extractor processes from previous session + backend.KillAllExtractorProcesses() +} + +// shutdown is called when the app is closing +func (a *App) shutdown(ctx context.Context) { + backend.CloseDB() + // Kill any running extractor processes + backend.KillAllExtractorProcesses() +} + +// CleanupExtractorProcesses kills all running extractor processes +// Can be called from frontend when user wants to stop/reset +func (a *App) CleanupExtractorProcesses() { + backend.KillAllExtractorProcesses() +} + +// TimelineRequest represents the request structure for timeline extraction +type TimelineRequest struct { + Username string `json:"username"` + AuthToken string `json:"auth_token"` + TimelineType string `json:"timeline_type"` + BatchSize int `json:"batch_size"` + Page int `json:"page"` + MediaType string `json:"media_type"` + Retweets bool `json:"retweets"` + Cursor string `json:"cursor,omitempty"` // Resume from this cursor position +} + +// DateRangeRequest represents the request structure for date range extraction +type DateRangeRequest struct { + Username string `json:"username"` + AuthToken string `json:"auth_token"` + StartDate string `json:"start_date"` + EndDate string `json:"end_date"` + MediaFilter string `json:"media_filter"` + Retweets bool `json:"retweets"` +} + +// ExtractTimeline extracts media from user timeline +func (a *App) ExtractTimeline(req TimelineRequest) (string, error) { + // Username not required for bookmarks only + if req.Username == "" && req.TimelineType != "bookmarks" { + return "", fmt.Errorf("username is required") + } + if req.AuthToken == "" { + return "", fmt.Errorf("auth token is required") + } + + backendReq := backend.TimelineRequest{ + Username: req.Username, + AuthToken: req.AuthToken, + TimelineType: req.TimelineType, + BatchSize: req.BatchSize, + Page: req.Page, + MediaType: req.MediaType, + Retweets: req.Retweets, + Cursor: req.Cursor, + } + + response, err := backend.ExtractTimeline(backendReq) + if err != nil { + return "", fmt.Errorf("failed to extract timeline: %v", err) + } + + jsonData, err := json.MarshalIndent(response, "", " ") + if err != nil { + return "", fmt.Errorf("failed to encode response: %v", err) + } + + return string(jsonData), nil +} + +// ExtractDateRange extracts media based on date range +func (a *App) ExtractDateRange(req DateRangeRequest) (string, error) { + if req.Username == "" { + return "", fmt.Errorf("username is required") + } + if req.AuthToken == "" { + return "", fmt.Errorf("auth token is required") + } + if req.StartDate == "" { + return "", fmt.Errorf("start date is required") + } + if req.EndDate == "" { + return "", fmt.Errorf("end date is required") + } + + backendReq := backend.DateRangeRequest{ + Username: req.Username, + AuthToken: req.AuthToken, + StartDate: req.StartDate, + EndDate: req.EndDate, + MediaFilter: req.MediaFilter, + Retweets: req.Retweets, + } + + response, err := backend.ExtractDateRange(backendReq) + if err != nil { + return "", fmt.Errorf("failed to extract date range: %v", err) + } + + jsonData, err := json.MarshalIndent(response, "", " ") + if err != nil { + return "", fmt.Errorf("failed to encode response: %v", err) + } + + return string(jsonData), nil +} + +// OpenFolder opens a folder in the file explorer +func (a *App) OpenFolder(path string) error { + if path == "" { + return fmt.Errorf("path is required") + } + + // Clean the path to use correct separators for the OS + cleanPath := filepath.Clean(path) + + err := backend.OpenFolderInExplorer(cleanPath) + if err != nil { + return fmt.Errorf("failed to open folder: %v", err) + } + + return nil +} + +// SelectFolder opens a folder selection dialog and returns the selected path +func (a *App) SelectFolder(defaultPath string) (string, error) { + return backend.SelectFolderDialog(a.ctx, defaultPath) +} + +// GetDefaults returns the default configuration +func (a *App) GetDefaults() map[string]string { + return map[string]string{ + "downloadPath": backend.GetDefaultDownloadPath(), + } +} + +// Quit closes the application +func (a *App) Quit() { + panic("quit") +} + +// DownloadMediaRequest represents the request for downloading media (legacy) +type DownloadMediaRequest struct { + URLs []string `json:"urls"` + OutputDir string `json:"output_dir"` + Username string `json:"username"` +} + +// MediaItemRequest represents a media item with metadata +type MediaItemRequest struct { + URL string `json:"url"` + Date string `json:"date"` + TweetID backend.TweetIDString `json:"tweet_id"` + Type string `json:"type"` + Content string `json:"content,omitempty"` // Tweet text content (for text-only tweets) +} + +// DownloadMediaWithMetadataRequest represents the request for downloading media with metadata +type DownloadMediaWithMetadataRequest struct { + Items []MediaItemRequest `json:"items"` + OutputDir string `json:"output_dir"` + Username string `json:"username"` +} + +// DownloadMediaResponse represents the response for download operation +type DownloadMediaResponse struct { + Success bool `json:"success"` + Downloaded int `json:"downloaded"` + Failed int `json:"failed"` + Message string `json:"message"` +} + +// DownloadMedia downloads media files from URLs (legacy) +func (a *App) DownloadMedia(req DownloadMediaRequest) (DownloadMediaResponse, error) { + if len(req.URLs) == 0 { + return DownloadMediaResponse{ + Success: false, + Message: "No URLs provided", + }, fmt.Errorf("no URLs provided") + } + + outputDir := req.OutputDir + if outputDir == "" { + outputDir = backend.GetDefaultDownloadPath() + } + + // Create subfolder for username if provided + if req.Username != "" { + outputDir = filepath.Join(outputDir, req.Username) + } + + downloaded, failed, err := backend.DownloadMediaFiles(req.URLs, outputDir) + if err != nil { + return DownloadMediaResponse{ + Success: false, + Downloaded: downloaded, + Failed: failed, + Message: err.Error(), + }, err + } + + return DownloadMediaResponse{ + Success: true, + Downloaded: downloaded, + Failed: failed, + Message: fmt.Sprintf("Downloaded %d files, %d failed", downloaded, failed), + }, nil +} + +// DownloadProgress represents download progress event data +type DownloadProgress struct { + Current int `json:"current"` + Total int `json:"total"` + Percent int `json:"percent"` +} + +// DownloadItemStatus represents per-item download status event data +type DownloadItemStatus struct { + TweetID int64 `json:"tweet_id"` + Index int `json:"index"` + Status string `json:"status"` // "success", "failed", "skipped" +} + +// DownloadMediaWithMetadata downloads media files with proper naming and categorization +func (a *App) DownloadMediaWithMetadata(req DownloadMediaWithMetadataRequest) (DownloadMediaResponse, error) { + if len(req.Items) == 0 { + return DownloadMediaResponse{ + Success: false, + Message: "No items provided", + }, fmt.Errorf("no items provided") + } + + outputDir := req.OutputDir + if outputDir == "" { + outputDir = backend.GetDefaultDownloadPath() + } + + // Convert request items to backend items + items := make([]backend.MediaItem, len(req.Items)) + for i, item := range req.Items { + items[i] = backend.MediaItem{ + URL: item.URL, + Date: item.Date, + TweetID: int64(item.TweetID), + Type: item.Type, + Username: req.Username, + Content: item.Content, + } + } + + // Create cancellable context + a.downloadCtx, a.downloadCancel = context.WithCancel(context.Background()) + + // Progress callback + progressCallback := func(current, total int) { + percent := 0 + if total > 0 { + percent = (current * 100) / total + } + runtime.EventsEmit(a.ctx, "download-progress", DownloadProgress{ + Current: current, + Total: total, + Percent: percent, + }) + } + + // Per-item status callback + itemStatusCallback := func(tweetID int64, index int, status string) { + runtime.EventsEmit(a.ctx, "download-item-status", DownloadItemStatus{ + TweetID: tweetID, + Index: index, + Status: status, + }) + } + + downloaded, failed, err := backend.DownloadMediaWithMetadataProgressAndStatus(items, outputDir, req.Username, progressCallback, itemStatusCallback, a.downloadCtx) + if err != nil { + return DownloadMediaResponse{ + Success: false, + Downloaded: downloaded, + Failed: failed, + Message: err.Error(), + }, err + } + + // Clear cancel function + a.downloadCancel = nil + + return DownloadMediaResponse{ + Success: true, + Downloaded: downloaded, + Failed: failed, + Message: fmt.Sprintf("Downloaded %d files, %d failed", downloaded, failed), + }, nil +} + +// StopDownload cancels the current download operation +func (a *App) StopDownload() bool { + if a.downloadCancel != nil { + a.downloadCancel() + a.downloadCancel = nil + return true + } + return false +} + +// Database functions + +// SaveAccountToDB saves account data to database +func (a *App) SaveAccountToDB(username, name, profileImage string, totalMedia int, responseJSON string, mediaType string) error { + return backend.SaveAccount(username, name, profileImage, totalMedia, responseJSON, mediaType) +} + +// SaveAccountToDBWithStatus saves account data with cursor and completion status for resume capability +func (a *App) SaveAccountToDBWithStatus(username, name, profileImage string, totalMedia int, responseJSON string, mediaType string, cursor string, completed bool) error { + return backend.SaveAccountWithStatus(username, name, profileImage, totalMedia, responseJSON, mediaType, cursor, completed) +} + +// GetAllAccountsFromDB returns all saved accounts +func (a *App) GetAllAccountsFromDB() ([]backend.AccountListItem, error) { + return backend.GetAllAccounts() +} + +// GetAccountFromDB returns account data by ID +func (a *App) GetAccountFromDB(id int64) (string, error) { + acc, err := backend.GetAccountByID(id) + if err != nil { + return "", err + } + return acc.ResponseJSON, nil +} + +// DeleteAccountFromDB deletes an account from database +func (a *App) DeleteAccountFromDB(id int64) error { + return backend.DeleteAccount(id) +} + +// ClearAllAccountsFromDB deletes all accounts from database +func (a *App) ClearAllAccountsFromDB() error { + return backend.ClearAllAccounts() +} + +// ExportAccountJSON exports account to JSON file in specified directory +func (a *App) ExportAccountJSON(id int64, outputDir string) (string, error) { + return backend.ExportAccountToFile(id, outputDir) +} + +// UpdateAccountGroup updates the group for an account +func (a *App) UpdateAccountGroup(id int64, groupName, groupColor string) error { + return backend.UpdateAccountGroup(id, groupName, groupColor) +} + +// GetAllGroups returns all unique groups +func (a *App) GetAllGroups() ([]map[string]string, error) { + return backend.GetAllGroups() +} + +// FFmpeg functions + +// IsFFmpegInstalled checks if ffmpeg is available +func (a *App) IsFFmpegInstalled() bool { + return backend.IsFFmpegInstalled() +} + +// DownloadFFmpeg downloads ffmpeg binary +func (a *App) DownloadFFmpeg() error { + return backend.DownloadFFmpeg(nil) +} + +// ConvertGIFsRequest represents request for converting GIFs +type ConvertGIFsRequest struct { + FolderPath string `json:"folder_path"` + Quality string `json:"quality"` // "fast" or "better" + Resolution string `json:"resolution"` // "original", "high", "medium", "low" + DeleteOriginal bool `json:"delete_original"` +} + +// ConvertGIFsResponse represents response for GIF conversion +type ConvertGIFsResponse struct { + Success bool `json:"success"` + Converted int `json:"converted"` + Failed int `json:"failed"` + Message string `json:"message"` +} + +// ConvertGIFs converts MP4 files in gifs folder to actual GIF format +func (a *App) ConvertGIFs(req ConvertGIFsRequest) (ConvertGIFsResponse, error) { + if !backend.IsFFmpegInstalled() { + return ConvertGIFsResponse{ + Success: false, + Message: "FFmpeg not installed. Please download it first.", + }, nil + } + + // Default values if not provided + quality := req.Quality + if quality == "" { + quality = "fast" + } + resolution := req.Resolution + if resolution == "" { + resolution = "high" + } + + converted, failed, err := backend.ConvertGIFsInFolder(req.FolderPath, quality, resolution, req.DeleteOriginal) + if err != nil { + return ConvertGIFsResponse{ + Success: false, + Message: err.Error(), + }, err + } + + return ConvertGIFsResponse{ + Success: true, + Converted: converted, + Failed: failed, + Message: fmt.Sprintf("Converted %d GIFs, %d failed", converted, failed), + }, nil +} + +// ImportAccountResponse represents the response for import operation +type ImportAccountResponse struct { + Success bool `json:"success"` + Username string `json:"username"` + Message string `json:"message"` +} + +// ImportAccountFromJSON imports account from JSON file (supports both old and new format) +func (a *App) ImportAccountFromJSON() (ImportAccountResponse, error) { + // Open file dialog + filePath, err := runtime.OpenFileDialog(a.ctx, runtime.OpenDialogOptions{ + Title: "Import Account JSON", + Filters: []runtime.FileFilter{ + {DisplayName: "JSON Files", Pattern: "*.json"}, + }, + }) + if err != nil { + return ImportAccountResponse{Success: false, Message: err.Error()}, err + } + + // User cancelled + if filePath == "" { + return ImportAccountResponse{Success: false, Message: "Cancelled"}, nil + } + + // Import the file + username, err := backend.ImportAccountFromFile(filePath) + if err != nil { + return ImportAccountResponse{Success: false, Message: err.Error()}, err + } + + return ImportAccountResponse{ + Success: true, + Username: username, + Message: fmt.Sprintf("Successfully imported @%s", username), + }, nil +} diff --git a/backend/cmd_unix.go b/backend/cmd_unix.go new file mode 100644 index 0000000..b2c613a --- /dev/null +++ b/backend/cmd_unix.go @@ -0,0 +1,10 @@ +//go:build !windows + +package backend + +import "os/exec" + +// hideWindow is a no-op on non-Windows platforms +func hideWindow(cmd *exec.Cmd) { + // No action needed on Unix-like systems +} diff --git a/backend/cmd_windows.go b/backend/cmd_windows.go new file mode 100644 index 0000000..1cd228f --- /dev/null +++ b/backend/cmd_windows.go @@ -0,0 +1,16 @@ +//go:build windows + +package backend + +import ( + "os/exec" + "syscall" +) + +// hideWindow sets the command to run without showing a console window on Windows +func hideWindow(cmd *exec.Cmd) { + cmd.SysProcAttr = &syscall.SysProcAttr{ + HideWindow: true, + CreationFlags: 0x08000000, // CREATE_NO_WINDOW + } +} diff --git a/backend/config.go b/backend/config.go new file mode 100644 index 0000000..a75a267 --- /dev/null +++ b/backend/config.go @@ -0,0 +1,18 @@ +package backend + +import ( + "os" + "path/filepath" +) + +func GetDefaultDownloadPath() string { + // Get user's home directory + homeDir, err := os.UserHomeDir() + if err != nil { + // Fallback to Public Pictures if can't get home dir + return "C:\\Users\\Public\\Pictures" + } + + // Return path to user's Pictures folder + return filepath.Join(homeDir, "Pictures") +} diff --git a/backend/database.go b/backend/database.go new file mode 100644 index 0000000..4047397 --- /dev/null +++ b/backend/database.go @@ -0,0 +1,499 @@ +package backend + +import ( + "database/sql" + "encoding/json" + "fmt" + "os" + "path/filepath" + "time" + + _ "github.com/mattn/go-sqlite3" +) + +// AccountDB represents a saved account in the database +type AccountDB struct { + ID int64 `json:"id"` + Username string `json:"username"` + Name string `json:"name"` + ProfileImage string `json:"profile_image"` + TotalMedia int `json:"total_media"` + LastFetched time.Time `json:"last_fetched"` + ResponseJSON string `json:"response_json"` + MediaType string `json:"media_type"` + Cursor string `json:"cursor"` + Completed bool `json:"completed"` +} + +// AccountListItem represents a simplified account for listing +type AccountListItem struct { + ID int64 `json:"id"` + Username string `json:"username"` + Name string `json:"name"` + ProfileImage string `json:"profile_image"` + TotalMedia int `json:"total_media"` + LastFetched string `json:"last_fetched"` + GroupName string `json:"group_name"` + GroupColor string `json:"group_color"` + MediaType string `json:"media_type"` + Cursor string `json:"cursor"` + Completed bool `json:"completed"` +} + +var db *sql.DB + +// GetDBPath returns the database file path +func GetDBPath() string { + homeDir, err := os.UserHomeDir() + if err != nil { + homeDir = "." + } + return filepath.Join(homeDir, ".twitterxmediabatchdownloader", "accounts.db") +} + +// InitDB initializes the database connection +func InitDB() error { + dbPath := GetDBPath() + + // Create directory if not exists + dir := filepath.Dir(dbPath) + if err := os.MkdirAll(dir, 0755); err != nil { + return err + } + + var err error + db, err = sql.Open("sqlite3", dbPath) + if err != nil { + return err + } + + // Create tables + _, err = db.Exec(` + CREATE TABLE IF NOT EXISTS accounts ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + username TEXT NOT NULL, + name TEXT, + profile_image TEXT, + total_media INTEGER DEFAULT 0, + last_fetched DATETIME, + response_json TEXT, + group_name TEXT DEFAULT '', + group_color TEXT DEFAULT '', + media_type TEXT DEFAULT 'all', + cursor TEXT DEFAULT '', + completed INTEGER DEFAULT 1, + UNIQUE(username, media_type) + ) + `) + if err != nil { + return err + } + + // Add group columns if they don't exist (migration for existing databases) + db.Exec("ALTER TABLE accounts ADD COLUMN group_name TEXT DEFAULT ''") + db.Exec("ALTER TABLE accounts ADD COLUMN group_color TEXT DEFAULT ''") + db.Exec("ALTER TABLE accounts ADD COLUMN media_type TEXT DEFAULT 'all'") + db.Exec("ALTER TABLE accounts ADD COLUMN cursor TEXT DEFAULT ''") + db.Exec("ALTER TABLE accounts ADD COLUMN completed INTEGER DEFAULT 1") + + // Migration: Update unique constraint for existing databases + // This allows same username with different media types + db.Exec("CREATE UNIQUE INDEX IF NOT EXISTS idx_username_media_type ON accounts(username, media_type)") + + return nil +} + +// CloseDB closes the database connection +func CloseDB() { + if db != nil { + db.Close() + } +} + +// SaveAccount saves or updates an account in the database +func SaveAccount(username, name, profileImage string, totalMedia int, responseJSON string, mediaType string) error { + return SaveAccountWithStatus(username, name, profileImage, totalMedia, responseJSON, mediaType, "", true) +} + +// SaveAccountWithStatus saves or updates an account with cursor and completion status +func SaveAccountWithStatus(username, name, profileImage string, totalMedia int, responseJSON string, mediaType string, cursor string, completed bool) error { + if db == nil { + if err := InitDB(); err != nil { + return err + } + } + + // Default to "all" if not specified + if mediaType == "" { + mediaType = "all" + } + + completedInt := 0 + if completed { + completedInt = 1 + } + + _, err := db.Exec(` + INSERT INTO accounts (username, name, profile_image, total_media, last_fetched, response_json, media_type, cursor, completed) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) + ON CONFLICT(username, media_type) DO UPDATE SET + name = excluded.name, + profile_image = excluded.profile_image, + total_media = excluded.total_media, + last_fetched = excluded.last_fetched, + response_json = excluded.response_json, + cursor = excluded.cursor, + completed = excluded.completed + `, username, name, profileImage, totalMedia, time.Now(), responseJSON, mediaType, cursor, completedInt) + + return err +} + +// GetAllAccounts returns all saved accounts +func GetAllAccounts() ([]AccountListItem, error) { + if db == nil { + if err := InitDB(); err != nil { + return nil, err + } + } + + rows, err := db.Query(` + SELECT id, username, name, profile_image, total_media, last_fetched, + COALESCE(group_name, '') as group_name, COALESCE(group_color, '') as group_color, + COALESCE(media_type, 'all') as media_type, + COALESCE(cursor, '') as cursor, COALESCE(completed, 1) as completed + FROM accounts + ORDER BY group_name ASC, last_fetched DESC + `) + if err != nil { + return nil, err + } + defer rows.Close() + + var accounts []AccountListItem + for rows.Next() { + var acc AccountListItem + var lastFetched time.Time + var completedInt int + if err := rows.Scan(&acc.ID, &acc.Username, &acc.Name, &acc.ProfileImage, &acc.TotalMedia, &lastFetched, &acc.GroupName, &acc.GroupColor, &acc.MediaType, &acc.Cursor, &completedInt); err != nil { + continue + } + acc.LastFetched = lastFetched.Format("2006-01-02 15:04") + acc.Completed = completedInt == 1 + accounts = append(accounts, acc) + } + + return accounts, nil +} + +// UpdateAccountGroup updates the group for an account +func UpdateAccountGroup(id int64, groupName, groupColor string) error { + if db == nil { + if err := InitDB(); err != nil { + return err + } + } + + _, err := db.Exec("UPDATE accounts SET group_name = ?, group_color = ? WHERE id = ?", groupName, groupColor, id) + return err +} + +// GetAllGroups returns all unique groups +func GetAllGroups() ([]map[string]string, error) { + if db == nil { + if err := InitDB(); err != nil { + return nil, err + } + } + + rows, err := db.Query(` + SELECT DISTINCT group_name, group_color + FROM accounts + WHERE group_name != '' + ORDER BY group_name + `) + if err != nil { + return nil, err + } + defer rows.Close() + + var groups []map[string]string + for rows.Next() { + var name, color string + if err := rows.Scan(&name, &color); err != nil { + continue + } + groups = append(groups, map[string]string{"name": name, "color": color}) + } + + return groups, nil +} + +// ClearAllAccounts deletes all accounts from the database +func ClearAllAccounts() error { + if db == nil { + if err := InitDB(); err != nil { + return err + } + } + + _, err := db.Exec("DELETE FROM accounts") + return err +} + +// GetAccountByUsername returns a specific account by username +func GetAccountByUsername(username string) (*AccountDB, error) { + if db == nil { + if err := InitDB(); err != nil { + return nil, err + } + } + + var acc AccountDB + var lastFetched time.Time + var completedInt int + err := db.QueryRow(` + SELECT id, username, name, profile_image, total_media, last_fetched, response_json, + COALESCE(cursor, '') as cursor, COALESCE(completed, 1) as completed + FROM accounts WHERE username = ? + `, username).Scan(&acc.ID, &acc.Username, &acc.Name, &acc.ProfileImage, &acc.TotalMedia, &lastFetched, &acc.ResponseJSON, &acc.Cursor, &completedInt) + + if err != nil { + return nil, err + } + acc.LastFetched = lastFetched + acc.Completed = completedInt == 1 + + // Convert legacy format if needed + if converted, err := ConvertLegacyToNewFormat(acc.ResponseJSON); err == nil { + acc.ResponseJSON = converted + } + + return &acc, nil +} + +// GetAccountByID returns a specific account by ID +func GetAccountByID(id int64) (*AccountDB, error) { + if db == nil { + if err := InitDB(); err != nil { + return nil, err + } + } + + var acc AccountDB + var lastFetched time.Time + var completedInt int + err := db.QueryRow(` + SELECT id, username, name, profile_image, total_media, last_fetched, response_json, + COALESCE(cursor, '') as cursor, COALESCE(completed, 1) as completed + FROM accounts WHERE id = ? + `, id).Scan(&acc.ID, &acc.Username, &acc.Name, &acc.ProfileImage, &acc.TotalMedia, &lastFetched, &acc.ResponseJSON, &acc.Cursor, &completedInt) + + if err != nil { + return nil, err + } + acc.LastFetched = lastFetched + acc.Completed = completedInt == 1 + + // Convert legacy format if needed + if converted, err := ConvertLegacyToNewFormat(acc.ResponseJSON); err == nil { + acc.ResponseJSON = converted + } + + return &acc, nil +} + +// DeleteAccount deletes an account from the database +func DeleteAccount(id int64) error { + if db == nil { + if err := InitDB(); err != nil { + return err + } + } + + _, err := db.Exec("DELETE FROM accounts WHERE id = ?", id) + return err +} + +// ParseResponseJSON parses the stored JSON response +func ParseResponseJSON(jsonStr string) (map[string]interface{}, error) { + var result map[string]interface{} + err := json.Unmarshal([]byte(jsonStr), &result) + return result, err +} + +// LegacyMediaEntry represents media entry in old format +type LegacyMediaEntry struct { + TweetID string `json:"tweet_id"` + URL string `json:"url"` + Date string `json:"date"` + Type string `json:"type"` +} + +// LegacyAccountFormat represents the old saved account format +type LegacyAccountFormat struct { + Username string `json:"username"` + Nick string `json:"nick"` + Followers int `json:"followers"` + Following int `json:"following"` + Posts int `json:"posts"` + MediaType string `json:"media_type"` + ProfileImage string `json:"profile_image"` + FetchMode string `json:"fetch_mode"` + FetchTimestamp string `json:"fetch_timestamp"` + GroupID interface{} `json:"group_id"` + MediaList []LegacyMediaEntry `json:"media_list"` +} + +// ConvertLegacyToNewFormat converts old format to new TwitterResponse format +func ConvertLegacyToNewFormat(jsonStr string) (string, error) { + // First check if it's already in new format (has account_info key) + var check map[string]interface{} + if err := json.Unmarshal([]byte(jsonStr), &check); err != nil { + return jsonStr, err + } + + // If already has account_info, it's new format - return as is + if _, hasAccountInfo := check["account_info"]; hasAccountInfo { + return jsonStr, nil + } + + // Check if it's legacy format (has username and media_list) + if _, hasUsername := check["username"]; !hasUsername { + return jsonStr, nil + } + if _, hasMediaList := check["media_list"]; !hasMediaList { + return jsonStr, nil + } + + // Parse as legacy format + var legacy LegacyAccountFormat + if err := json.Unmarshal([]byte(jsonStr), &legacy); err != nil { + return jsonStr, err + } + + // Convert timeline entries + timeline := make([]map[string]interface{}, len(legacy.MediaList)) + for i, media := range legacy.MediaList { + timeline[i] = map[string]interface{}{ + "url": media.URL, + "date": media.Date, + "tweet_id": media.TweetID, + "type": media.Type, + "is_retweet": false, + } + } + + // Build new format + newFormat := map[string]interface{}{ + "account_info": map[string]interface{}{ + "name": legacy.Username, + "nick": legacy.Nick, + "date": "", + "followers_count": legacy.Followers, + "friends_count": legacy.Following, + "profile_image": legacy.ProfileImage, + "statuses_count": legacy.Posts, + }, + "total_urls": len(legacy.MediaList), + "timeline": timeline, + "metadata": map[string]interface{}{ + "new_entries": len(legacy.MediaList), + "page": 0, + "batch_size": 0, + "has_more": false, + }, + } + + // Convert back to JSON + newJSON, err := json.Marshal(newFormat) + if err != nil { + return jsonStr, err + } + + return string(newJSON), nil +} + +// ExportAccountToFile exports account JSON to a file +func ExportAccountToFile(id int64, outputDir string) (string, error) { + acc, err := GetAccountByID(id) + if err != nil { + return "", err + } + + // Create export directory if not exists + exportDir := filepath.Join(outputDir, "twitterxmediabatchdownloader_backups") + if err := os.MkdirAll(exportDir, 0755); err != nil { + return "", err + } + + // Use username (nick) for filename + filename := acc.Username + if filename == "" { + filename = acc.Name + } + + filePath := filepath.Join(exportDir, filename+".json") + + if err := os.WriteFile(filePath, []byte(acc.ResponseJSON), 0644); err != nil { + return "", err + } + + return filePath, nil +} + +// ImportAccountFromFile imports account from JSON file (supports both old and new format) +func ImportAccountFromFile(filePath string) (string, error) { + if db == nil { + if err := InitDB(); err != nil { + return "", err + } + } + + // Read file + data, err := os.ReadFile(filePath) + if err != nil { + return "", err + } + + jsonStr := string(data) + + // Convert legacy format if needed + convertedJSON, err := ConvertLegacyToNewFormat(jsonStr) + if err != nil { + return "", err + } + + // Parse the converted JSON to extract account info + var parsed map[string]interface{} + if err := json.Unmarshal([]byte(convertedJSON), &parsed); err != nil { + return "", err + } + + // Extract account info + accountInfo, ok := parsed["account_info"].(map[string]interface{}) + if !ok { + return "", fmt.Errorf("invalid JSON format: missing account_info") + } + + username, _ := accountInfo["name"].(string) + name, _ := accountInfo["nick"].(string) + profileImage, _ := accountInfo["profile_image"].(string) + + totalURLs := 0 + if total, ok := parsed["total_urls"].(float64); ok { + totalURLs = int(total) + } + + if username == "" { + return "", fmt.Errorf("invalid JSON format: missing username") + } + + // Save to database with default media type "all" for imported files + err = SaveAccount(username, name, profileImage, totalURLs, convertedJSON, "all") + if err != nil { + return "", err + } + + return username, nil +} diff --git a/backend/download.go b/backend/download.go new file mode 100644 index 0000000..497b22d --- /dev/null +++ b/backend/download.go @@ -0,0 +1,380 @@ +package backend + +import ( + "context" + "fmt" + "io" + "net/http" + "net/url" + "os" + "path/filepath" + "strings" + "sync" + "sync/atomic" + "time" +) + +const ( + // MaxConcurrentDownloads is the number of parallel downloads + MaxConcurrentDownloads = 10 +) + +// MediaItem represents a media item with metadata for download +type MediaItem struct { + URL string `json:"url"` + Date string `json:"date"` + TweetID int64 `json:"tweet_id"` + Type string `json:"type"` + Username string `json:"username"` + Content string `json:"content,omitempty"` // Tweet text content (for text-only tweets) +} + +// DownloadMediaFiles downloads media files from URLs to the output directory (legacy) +func DownloadMediaFiles(urls []string, outputDir string) (downloaded int, failed int, err error) { + // Create output directory if it doesn't exist + if err := os.MkdirAll(outputDir, 0755); err != nil { + return 0, len(urls), fmt.Errorf("failed to create output directory: %v", err) + } + + client := &http.Client{ + Timeout: 60 * time.Second, + } + + for _, mediaURL := range urls { + filename := extractFilename(mediaURL) + outputPath := filepath.Join(outputDir, filename) + + // Skip if file already exists + if _, err := os.Stat(outputPath); err == nil { + downloaded++ + continue + } + + if err := downloadFile(client, mediaURL, outputPath); err != nil { + failed++ + continue + } + downloaded++ + } + + return downloaded, failed, nil +} + +// ProgressCallback is a function type for progress updates +type ProgressCallback func(current, total int) + +// ItemStatusCallback is a function type for per-item status updates +type ItemStatusCallback func(tweetID int64, index int, status string) // status: "success", "failed", "skipped" + +// downloadTask represents a single download task +type downloadTask struct { + item MediaItem + outputPath string + index int +} + +// DownloadMediaWithMetadata downloads media files with proper naming and categorization +func DownloadMediaWithMetadata(items []MediaItem, outputDir string, username string) (downloaded int, failed int, err error) { + return DownloadMediaWithMetadataProgressAndStatus(items, outputDir, username, nil, nil, nil) +} + +// DownloadMediaWithMetadataProgress downloads media files with progress callback and cancellation support +func DownloadMediaWithMetadataProgress(items []MediaItem, outputDir string, username string, progress ProgressCallback, ctx context.Context) (downloaded int, failed int, err error) { + return DownloadMediaWithMetadataProgressAndStatus(items, outputDir, username, progress, nil, ctx) +} + +// DownloadMediaWithMetadataProgressAndStatus downloads media files with progress and per-item status callbacks +func DownloadMediaWithMetadataProgressAndStatus(items []MediaItem, outputDir string, username string, progress ProgressCallback, itemStatus ItemStatusCallback, ctx context.Context) (downloaded int, failed int, err error) { + if ctx == nil { + ctx = context.Background() + } + + // Create base output directory + baseDir := filepath.Join(outputDir, username) + if err := os.MkdirAll(baseDir, 0755); err != nil { + return 0, len(items), fmt.Errorf("failed to create output directory: %v", err) + } + + total := len(items) + if total == 0 { + return 0, 0, nil + } + + // Prepare all tasks first (sequential to handle tweet media count) + tweetMediaCount := make(map[int64]int) + tasks := make([]downloadTask, 0, total) + + for i, item := range items { + // Determine subfolder based on type + var subfolder string + switch item.Type { + case "photo": + subfolder = "images" + case "video": + subfolder = "videos" + case "gif", "animated_gif": + subfolder = "gifs" + case "text": + subfolder = "texts" + default: + subfolder = "other" + } + + // Create type subfolder + typeDir := filepath.Join(baseDir, subfolder) + if err := os.MkdirAll(typeDir, 0755); err != nil { + continue + } + + // Format timestamp from date + timestamp := formatTimestamp(item.Date) + + // Get file extension + ext := getExtension(item.URL, item.Type) + + // Increment counter for this tweet_id + tweetMediaCount[item.TweetID]++ + mediaIndex := tweetMediaCount[item.TweetID] + + // Create filename: {username}_{timestamp}_{tweet_id}_{index}.{ext} + filename := fmt.Sprintf("%s_%s_%d_%02d%s", username, timestamp, item.TweetID, mediaIndex, ext) + outputPath := filepath.Join(typeDir, filename) + + tasks = append(tasks, downloadTask{ + item: item, + outputPath: outputPath, + index: i, + }) + } + + // Counters for parallel downloads + var downloadedCount int64 + var failedCount int64 + var completedCount int64 + + // Create worker pool + taskChan := make(chan downloadTask, len(tasks)) + var wg sync.WaitGroup + + // Start workers + numWorkers := MaxConcurrentDownloads + if numWorkers > len(tasks) { + numWorkers = len(tasks) + } + + for i := 0; i < numWorkers; i++ { + wg.Add(1) + go func() { + defer wg.Done() + client := &http.Client{ + Timeout: 60 * time.Second, + } + + for task := range taskChan { + // Check for cancellation + select { + case <-ctx.Done(): + return + default: + } + + var status string + // Skip if file already exists + if _, err := os.Stat(task.outputPath); err == nil { + atomic.AddInt64(&downloadedCount, 1) + status = "skipped" + } else if task.item.Type == "text" { + // For text tweets, write content to file + if err := os.WriteFile(task.outputPath, []byte(task.item.Content), 0644); err != nil { + atomic.AddInt64(&failedCount, 1) + status = "failed" + } else { + atomic.AddInt64(&downloadedCount, 1) + status = "success" + } + } else if err := downloadFileWithContext(ctx, client, task.item.URL, task.outputPath); err != nil { + atomic.AddInt64(&failedCount, 1) + status = "failed" + } else { + atomic.AddInt64(&downloadedCount, 1) + status = "success" + } + + // Emit per-item status + if itemStatus != nil { + itemStatus(task.item.TweetID, task.index, status) + } + + // Update progress + completed := atomic.AddInt64(&completedCount, 1) + if progress != nil { + progress(int(completed), total) + } + } + }() + } + + // Send tasks to workers + for _, task := range tasks { + select { + case <-ctx.Done(): + close(taskChan) + wg.Wait() + return int(downloadedCount), int(failedCount) + (total - int(completedCount)), ctx.Err() + case taskChan <- task: + } + } + close(taskChan) + + // Wait for all workers to finish + wg.Wait() + + return int(downloadedCount), int(failedCount), nil +} + +// downloadFileWithContext downloads a single file with context support for cancellation +func downloadFileWithContext(ctx context.Context, client *http.Client, url, outputPath string) error { + req, err := http.NewRequestWithContext(ctx, "GET", url, nil) + if err != nil { + return err + } + + resp, err := client.Do(req) + if err != nil { + return err + } + defer resp.Body.Close() + + if resp.StatusCode != http.StatusOK { + return fmt.Errorf("bad status: %s", resp.Status) + } + + out, err := os.Create(outputPath) + if err != nil { + return err + } + defer out.Close() + + _, err = io.Copy(out, resp.Body) + return err +} + +// formatTimestamp converts date string to timestamp format +func formatTimestamp(dateStr string) string { + // Try parsing various date formats + formats := []string{ + "2006-01-02T15:04:05", // ISO 8601 without timezone (from extractor) + "2006-01-02T15:04:05+00:00", // ISO 8601 with timezone + "2006-01-02T15:04:05-07:00", // ISO 8601 with timezone offset + time.RFC3339, // Standard RFC3339 + "2006-01-02T15:04:05.000Z", + "2006-01-02T15:04:05Z", + "2006-01-02 15:04:05", + "Mon Jan 02 15:04:05 -0700 2006", + } + + for _, format := range formats { + if t, err := time.Parse(format, dateStr); err == nil { + return t.Format("20060102_150405") + } + } + + // Fallback: use empty string to indicate parsing failed + return "00000000_000000" +} + +// getExtension determines file extension from URL and type +func getExtension(mediaURL string, mediaType string) string { + parsedURL, err := url.Parse(mediaURL) + if err != nil { + return ".jpg" + } + + // Check format query param for Twitter images + if format := parsedURL.Query().Get("format"); format != "" { + return "." + format + } + + // Get extension from path + path := parsedURL.Path + ext := filepath.Ext(path) + if ext != "" { + return ext + } + + // Default based on type + switch mediaType { + case "video": + return ".mp4" + case "gif", "animated_gif": + return ".mp4" // Twitter GIFs are actually MP4 + case "text": + return ".txt" + default: + return ".jpg" + } +} + +// extractFilename extracts filename from URL (legacy) +func extractFilename(mediaURL string) string { + parsedURL, err := url.Parse(mediaURL) + if err != nil { + return fmt.Sprintf("media_%d", time.Now().UnixNano()) + } + + // Get the path part + path := parsedURL.Path + + // Extract base filename + base := filepath.Base(path) + + // Handle Twitter image URLs: /media/XXX -> XXX.jpg + if strings.Contains(mediaURL, "pbs.twimg.com/media/") { + // Get format from query params + format := parsedURL.Query().Get("format") + if format == "" { + format = "jpg" + } + + // Remove any existing extension + if idx := strings.LastIndex(base, "."); idx > 0 { + base = base[:idx] + } + + return base + "." + format + } + + // Handle Twitter video URLs + if strings.Contains(mediaURL, "video.twimg.com") { + return base + } + + // Default: use base name or generate one + if base == "" || base == "." { + return fmt.Sprintf("media_%d", time.Now().UnixNano()) + } + + return base +} + +// downloadFile downloads a single file from URL +func downloadFile(client *http.Client, url, outputPath string) error { + resp, err := client.Get(url) + if err != nil { + return err + } + defer resp.Body.Close() + + if resp.StatusCode != http.StatusOK { + return fmt.Errorf("bad status: %s", resp.Status) + } + + out, err := os.Create(outputPath) + if err != nil { + return err + } + defer out.Close() + + _, err = io.Copy(out, resp.Body) + return err +} diff --git a/backend/embed_unix.go b/backend/embed_unix.go new file mode 100644 index 0000000..64c34d9 --- /dev/null +++ b/backend/embed_unix.go @@ -0,0 +1,8 @@ +//go:build linux || darwin + +package backend + +import _ "embed" + +//go:embed bin/extractor +var extractorBin []byte diff --git a/backend/embed_windows.go b/backend/embed_windows.go new file mode 100644 index 0000000..e6121a5 --- /dev/null +++ b/backend/embed_windows.go @@ -0,0 +1,8 @@ +//go:build windows + +package backend + +import _ "embed" + +//go:embed bin/extractor.exe +var extractorBin []byte diff --git a/backend/ffmpeg.go b/backend/ffmpeg.go new file mode 100644 index 0000000..dd4dc50 --- /dev/null +++ b/backend/ffmpeg.go @@ -0,0 +1,316 @@ +package backend + +import ( + "archive/tar" + "archive/zip" + "fmt" + "io" + "net/http" + "os" + "os/exec" + "path/filepath" + "runtime" + "strings" + + "github.com/ulikunitz/xz" +) + +// FFmpeg download URLs +const ( + ffmpegWindowsURL = "https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl.zip" + ffmpegLinuxURL = "https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-linux64-gpl.tar.xz" + ffmpegMacOSURL = "https://evermeet.cx/ffmpeg/getrelease/ffmpeg/zip" +) + +// GetFFmpegPath returns the path to ffmpeg binary +func GetFFmpegPath() string { + homeDir, _ := os.UserHomeDir() + baseDir := filepath.Join(homeDir, ".twitterxmediabatchdownloader") + + switch runtime.GOOS { + case "windows": + return filepath.Join(baseDir, "ffmpeg.exe") + default: + return filepath.Join(baseDir, "ffmpeg") + } +} + +// IsFFmpegInstalled checks if ffmpeg is available +func IsFFmpegInstalled() bool { + ffmpegPath := GetFFmpegPath() + if _, err := os.Stat(ffmpegPath); err == nil { + return true + } + return false +} + +// DownloadFFmpeg downloads ffmpeg binary for current platform +func DownloadFFmpeg(progressCallback func(downloaded, total int64)) error { + var downloadURL string + + switch runtime.GOOS { + case "windows": + downloadURL = ffmpegWindowsURL + case "linux": + downloadURL = ffmpegLinuxURL + case "darwin": + downloadURL = ffmpegMacOSURL + default: + return fmt.Errorf("unsupported platform: %s", runtime.GOOS) + } + + // Create temp file for download + tempFile, err := os.CreateTemp("", "ffmpeg-*") + if err != nil { + return fmt.Errorf("failed to create temp file: %v", err) + } + tempPath := tempFile.Name() + defer os.Remove(tempPath) + defer tempFile.Close() + + // Download file + resp, err := http.Get(downloadURL) + if err != nil { + return fmt.Errorf("failed to download ffmpeg: %v", err) + } + defer resp.Body.Close() + + if resp.StatusCode != http.StatusOK { + return fmt.Errorf("failed to download ffmpeg: status %d", resp.StatusCode) + } + + // Copy with progress + total := resp.ContentLength + var downloaded int64 + buf := make([]byte, 32*1024) + + for { + n, err := resp.Body.Read(buf) + if n > 0 { + _, writeErr := tempFile.Write(buf[:n]) + if writeErr != nil { + return fmt.Errorf("failed to write temp file: %v", writeErr) + } + downloaded += int64(n) + if progressCallback != nil { + progressCallback(downloaded, total) + } + } + if err == io.EOF { + break + } + if err != nil { + return fmt.Errorf("failed to download: %v", err) + } + } + tempFile.Close() + + // Extract ffmpeg binary + ffmpegPath := GetFFmpegPath() + baseDir := filepath.Dir(ffmpegPath) + if err := os.MkdirAll(baseDir, 0755); err != nil { + return fmt.Errorf("failed to create directory: %v", err) + } + + switch runtime.GOOS { + case "windows", "darwin": + return extractFromZip(tempPath, ffmpegPath) + case "linux": + return extractFromTarXz(tempPath, ffmpegPath) + } + + return nil +} + +// extractFromZip extracts ffmpeg from zip archive +func extractFromZip(zipPath, destPath string) error { + r, err := zip.OpenReader(zipPath) + if err != nil { + return fmt.Errorf("failed to open zip: %v", err) + } + defer r.Close() + + for _, f := range r.File { + // Look for ffmpeg binary + name := filepath.Base(f.Name) + if name == "ffmpeg" || name == "ffmpeg.exe" { + rc, err := f.Open() + if err != nil { + return fmt.Errorf("failed to open file in zip: %v", err) + } + defer rc.Close() + + out, err := os.Create(destPath) + if err != nil { + return fmt.Errorf("failed to create output file: %v", err) + } + defer out.Close() + + if _, err := io.Copy(out, rc); err != nil { + return fmt.Errorf("failed to extract file: %v", err) + } + + // Make executable on Unix + if runtime.GOOS != "windows" { + os.Chmod(destPath, 0755) + } + + return nil + } + } + + return fmt.Errorf("ffmpeg binary not found in archive") +} + +// extractFromTarXz extracts ffmpeg from tar.xz archive +func extractFromTarXz(tarXzPath, destPath string) error { + file, err := os.Open(tarXzPath) + if err != nil { + return fmt.Errorf("failed to open tar.xz: %v", err) + } + defer file.Close() + + xzReader, err := xz.NewReader(file) + if err != nil { + return fmt.Errorf("failed to create xz reader: %v", err) + } + + tarReader := tar.NewReader(xzReader) + + for { + header, err := tarReader.Next() + if err == io.EOF { + break + } + if err != nil { + return fmt.Errorf("failed to read tar: %v", err) + } + + // Look for ffmpeg binary + name := filepath.Base(header.Name) + if name == "ffmpeg" && header.Typeflag == tar.TypeReg { + out, err := os.Create(destPath) + if err != nil { + return fmt.Errorf("failed to create output file: %v", err) + } + defer out.Close() + + if _, err := io.Copy(out, tarReader); err != nil { + return fmt.Errorf("failed to extract file: %v", err) + } + + os.Chmod(destPath, 0755) + return nil + } + } + + return fmt.Errorf("ffmpeg binary not found in archive") +} + +// ConvertMP4ToGIF converts an MP4 file to GIF using ffmpeg +// quality: "fast" for simple conversion, "better" for optimized palette +// resolution: "original", "high" (800px), "medium" (600px), "low" (400px) +func ConvertMP4ToGIF(inputPath, outputPath, quality, resolution string) error { + ffmpegPath := GetFFmpegPath() + + if !IsFFmpegInstalled() { + return fmt.Errorf("ffmpeg not installed") + } + + var args []string + + if quality == "fast" { + // Fast mode: simple conversion + args = []string{ + "-i", inputPath, + "-loop", "0", + "-y", + outputPath, + } + } else { + // Better mode: optimized palette with dithering + var filter string + + switch resolution { + case "high": + filter = "scale=800:-1:flags=lanczos,palettegen=stats_mode=full[palette];[0:v]scale=800:-1:flags=lanczos[scaled];[scaled][palette]paletteuse=dither=sierra2_4a" + case "medium": + filter = "scale=600:-1:flags=lanczos,palettegen=stats_mode=full[palette];[0:v]scale=600:-1:flags=lanczos[scaled];[scaled][palette]paletteuse=dither=sierra2_4a" + case "low": + filter = "scale=400:-1:flags=lanczos,palettegen=stats_mode=full[palette];[0:v]scale=400:-1:flags=lanczos[scaled];[scaled][palette]paletteuse=dither=sierra2_4a" + default: // original + filter = "palettegen=stats_mode=full[palette];[0:v][palette]paletteuse=dither=sierra2_4a" + } + + // Set FPS based on resolution + fps := "15" + if resolution == "medium" { + fps = "10" + } else if resolution == "low" { + fps = "8" + } + + args = []string{ + "-i", inputPath, + "-lavfi", filter, + "-r", fps, + "-y", + outputPath, + } + } + + cmd := exec.Command(ffmpegPath, args...) + hideWindow(cmd) // Hide console window on Windows + output, err := cmd.CombinedOutput() + if err != nil { + return fmt.Errorf("ffmpeg error: %v, output: %s", err, string(output)) + } + + return nil +} + +// ConvertGIFsInFolder converts all MP4 files in gifs folder to actual GIF format +func ConvertGIFsInFolder(folderPath, quality, resolution string, deleteOriginal bool) (converted int, failed int, err error) { + if !IsFFmpegInstalled() { + return 0, 0, fmt.Errorf("ffmpeg not installed") + } + + // Clean the path to handle cross-platform path separators + cleanPath := filepath.Clean(folderPath) + gifsFolder := filepath.Join(cleanPath, "gifs") + if _, err := os.Stat(gifsFolder); os.IsNotExist(err) { + return 0, 0, fmt.Errorf("gifs folder not found: %s", gifsFolder) + } + + files, err := os.ReadDir(gifsFolder) + if err != nil { + return 0, 0, fmt.Errorf("failed to read gifs folder: %v", err) + } + + for _, file := range files { + if file.IsDir() { + continue + } + + name := file.Name() + if !strings.HasSuffix(strings.ToLower(name), ".mp4") { + continue + } + + inputPath := filepath.Join(gifsFolder, name) + outputPath := filepath.Join(gifsFolder, strings.TrimSuffix(name, filepath.Ext(name))+".gif") + + if err := ConvertMP4ToGIF(inputPath, outputPath, quality, resolution); err != nil { + failed++ + continue + } + + if deleteOriginal { + os.Remove(inputPath) + } + + converted++ + } + + return converted, failed, nil +} diff --git a/backend/folder.go b/backend/folder.go new file mode 100644 index 0000000..d69b562 --- /dev/null +++ b/backend/folder.go @@ -0,0 +1,52 @@ +package backend + +import ( + "context" + "os/exec" + "runtime" + + wailsRuntime "github.com/wailsapp/wails/v2/pkg/runtime" +) + +func OpenFolderInExplorer(path string) error { + var cmd *exec.Cmd + + switch runtime.GOOS { + case "windows": + // Use cmd /c start to open explorer - more reliable + cmd = exec.Command("cmd", "/c", "start", "", path) + case "darwin": // macOS + cmd = exec.Command("open", path) + case "linux": + cmd = exec.Command("xdg-open", path) + default: + cmd = exec.Command("xdg-open", path) + } + + hideWindow(cmd) // Hide console window on Windows + return cmd.Run() +} + +func SelectFolderDialog(ctx context.Context, defaultPath string) (string, error) { + // If defaultPath is empty, use default download path + if defaultPath == "" { + defaultPath = GetDefaultDownloadPath() + } + + options := wailsRuntime.OpenDialogOptions{ + Title: "Select Download Folder", + DefaultDirectory: defaultPath, + } + + selectedPath, err := wailsRuntime.OpenDirectoryDialog(ctx, options) + if err != nil { + return "", err + } + + // If user cancelled, selectedPath will be empty + if selectedPath == "" { + return "", nil + } + + return selectedPath, nil +} diff --git a/backend/twitter.go b/backend/twitter.go new file mode 100644 index 0000000..2f33fd4 --- /dev/null +++ b/backend/twitter.go @@ -0,0 +1,898 @@ +package backend + +import ( + "crypto/sha256" + "encoding/hex" + "encoding/json" + "fmt" + "net/url" + "os" + "os/exec" + "path/filepath" + "runtime" + "strings" +) + +// getExecutableName returns the appropriate executable name for the current OS +func getExecutableName() string { + if runtime.GOOS == "windows" { + return "extractor.exe" + } + return "extractor" +} + +// KillAllExtractorProcesses kills all running extractor processes +// This is useful for cleanup when starting fresh or when user stops fetch +func KillAllExtractorProcesses() { + exeName := getExecutableName() + + var cmd *exec.Cmd + if runtime.GOOS == "windows" { + // Use taskkill on Windows + cmd = exec.Command("taskkill", "/F", "/IM", exeName) + } else { + // Use pkill on Unix + cmd = exec.Command("pkill", "-f", exeName) + } + + hideWindow(cmd) + cmd.CombinedOutput() // Ignore errors - it's okay if no processes found +} + +// parseExtractorError parses the extractor output and returns a user-friendly error message +// while preserving the original error from gallery-dl +func parseExtractorError(output string, username string) string { + outputLower := strings.ToLower(output) + + // Extract the actual error line from gallery-dl output + lines := strings.Split(output, "\n") + var errorLine string + for _, line := range lines { + lineLower := strings.ToLower(line) + if strings.Contains(lineLower, "error:") || strings.Contains(lineLower, "exception") { + errorLine = strings.TrimSpace(line) + break + } + } + if errorLine == "" { + errorLine = strings.TrimSpace(output) + } + + // Truncate if too long + if len(errorLine) > 300 { + errorLine = errorLine[:300] + "..." + } + + // Add context hint based on error type, but keep original message + var hint string + if strings.Contains(outputLower, "unable to retrieve tweets from this timeline") { + hint = " [Hint: End of timeline reached or rate limited - data already fetched has been saved]" + } else if strings.Contains(outputLower, "rate limit") || strings.Contains(output, "429") { + hint = " [Hint: Wait 5-15 minutes before retrying]" + } else if strings.Contains(output, "401") || strings.Contains(outputLower, "unauthorized") { + hint = " [Hint: Auth token may be invalid or expired]" + } else if strings.Contains(output, "404") { + hint = fmt.Sprintf(" [Hint: @%s may not exist or is suspended]", username) + } else if strings.Contains(outputLower, "protected") || strings.Contains(output, "403") { + hint = " [Hint: Protected account - need to follow and use auth token]" + } + + return errorLine + hint +} + +// TweetIDString is a custom type that unmarshals int64 but marshals as string +type TweetIDString int64 + +// MarshalJSON converts TweetIDString to JSON string to preserve precision in JavaScript +func (t TweetIDString) MarshalJSON() ([]byte, error) { + return []byte(fmt.Sprintf(`"%d"`, t)), nil +} + +// UnmarshalJSON accepts both number and string from JSON +func (t *TweetIDString) UnmarshalJSON(data []byte) error { + // Try to unmarshal as number first (from extractor) + var num int64 + if err := json.Unmarshal(data, &num); err == nil { + *t = TweetIDString(num) + return nil + } + // Try as string (for future compatibility) + var str string + if err := json.Unmarshal(data, &str); err == nil { + parsed, err := fmt.Sscanf(str, "%d", &num) + if err != nil || parsed != 1 { + return fmt.Errorf("invalid tweet_id string: %s", str) + } + *t = TweetIDString(num) + return nil + } + return fmt.Errorf("tweet_id must be number or string") +} + +// Author represents tweet author information from extractor +type Author struct { + ID int64 `json:"id"` + Name string `json:"name"` + Nick string `json:"nick"` +} + +// UserInfo represents full user information from extractor +type UserInfo struct { + ID int64 `json:"id"` + Name string `json:"name"` + Nick string `json:"nick"` + Location string `json:"location"` + Date string `json:"date"` + Verified bool `json:"verified"` + Protected bool `json:"protected"` + ProfileBanner string `json:"profile_banner"` + ProfileImage string `json:"profile_image"` + FavouritesCount int `json:"favourites_count"` + FollowersCount int `json:"followers_count"` + FriendsCount int `json:"friends_count"` + ListedCount int `json:"listed_count"` + MediaCount int `json:"media_count"` + StatusesCount int `json:"statuses_count"` + Description string `json:"description"` + URL string `json:"url"` +} + +// CLIMediaItem represents a single media entry from extractor CLI +type CLIMediaItem struct { + URL string `json:"url"` + TweetID TweetIDString `json:"tweet_id"` + RetweetID TweetIDString `json:"retweet_id"` + QuoteID TweetIDString `json:"quote_id"` + ReplyID TweetIDString `json:"reply_id"` + ConversationID TweetIDString `json:"conversation_id"` + Date string `json:"date"` + Extension string `json:"extension"` + Width int `json:"width"` + Height int `json:"height"` + Type string `json:"type"` + Bitrate int `json:"bitrate"` + Duration float64 `json:"duration"` + Author UserInfo `json:"author"` + User UserInfo `json:"user"` + Content string `json:"content"` + FavoriteCount int `json:"favorite_count"` + RetweetCount int `json:"retweet_count"` + ReplyCount int `json:"reply_count"` + QuoteCount int `json:"quote_count"` + BookmarkCount int `json:"bookmark_count"` + ViewCount int `json:"view_count"` + Source string `json:"source"` + Sensitive bool `json:"sensitive"` +} + +// TweetMetadata represents tweet metadata from extractor +type TweetMetadata struct { + TweetID TweetIDString `json:"tweet_id"` + RetweetID TweetIDString `json:"retweet_id,omitempty"` + QuoteID TweetIDString `json:"quote_id,omitempty"` + ReplyID TweetIDString `json:"reply_id,omitempty"` + ConversationID TweetIDString `json:"conversation_id,omitempty"` + Date string `json:"date"` + Author Author `json:"author"` + Content string `json:"content"` + Lang string `json:"lang,omitempty"` + Hashtags []string `json:"hashtags,omitempty"` + FavoriteCount int `json:"favorite_count"` + RetweetCount int `json:"retweet_count"` + QuoteCount int `json:"quote_count,omitempty"` + ReplyCount int `json:"reply_count,omitempty"` + BookmarkCount int `json:"bookmark_count,omitempty"` + ViewCount int `json:"view_count,omitempty"` + Sensitive bool `json:"sensitive,omitempty"` +} + +// CLIResponse represents the raw response from extractor CLI +type CLIResponse struct { + Media []CLIMediaItem `json:"media"` + Metadata []TweetMetadata `json:"metadata"` + Cursor string `json:"cursor,omitempty"` // Cursor for resume + Total int `json:"total,omitempty"` // Total items fetched + Completed bool `json:"completed,omitempty"` // True if all fetched +} + +// TimelineEntry represents a single media entry for frontend (converted from MediaItem) +type TimelineEntry struct { + URL string `json:"url"` + Date string `json:"date"` + TweetID TweetIDString `json:"tweet_id"` + Type string `json:"type"` + IsRetweet bool `json:"is_retweet"` + Extension string `json:"extension"` + Width int `json:"width"` + Height int `json:"height"` + Content string `json:"content,omitempty"` + ViewCount int `json:"view_count,omitempty"` + BookmarkCount int `json:"bookmark_count,omitempty"` + FavoriteCount int `json:"favorite_count,omitempty"` + RetweetCount int `json:"retweet_count,omitempty"` + ReplyCount int `json:"reply_count,omitempty"` + Source string `json:"source,omitempty"` + Verified bool `json:"verified,omitempty"` +} + +// AccountInfo represents Twitter account information (derived from metadata) +type AccountInfo struct { + Name string `json:"name"` + Nick string `json:"nick"` + Date string `json:"date"` + FollowersCount int `json:"followers_count"` + FriendsCount int `json:"friends_count"` + ProfileImage string `json:"profile_image"` + StatusesCount int `json:"statuses_count"` +} + +// ExtractMetadata represents extraction metadata +type ExtractMetadata struct { + NewEntries int `json:"new_entries"` + Page int `json:"page"` + BatchSize int `json:"batch_size"` + HasMore bool `json:"has_more"` + Cursor string `json:"cursor,omitempty"` // Cursor for resume capability + Completed bool `json:"completed,omitempty"` // True if all media fetched +} + +// TwitterResponse represents the full response for frontend +type TwitterResponse struct { + AccountInfo AccountInfo `json:"account_info"` + TotalURLs int `json:"total_urls"` + Timeline []TimelineEntry `json:"timeline"` + Metadata ExtractMetadata `json:"metadata"` + Cursor string `json:"cursor,omitempty"` // Cursor for next fetch + Completed bool `json:"completed,omitempty"` // True if fetch completed +} + +// TimelineRequest represents request parameters for timeline extraction +type TimelineRequest struct { + Username string `json:"username"` + AuthToken string `json:"auth_token"` + TimelineType string `json:"timeline_type"` // media, timeline, tweets, with_replies, likes, bookmarks + BatchSize int `json:"batch_size"` // 0 = all + Page int `json:"page"` + MediaType string `json:"media_type"` // all, image, video, gif + Retweets bool `json:"retweets"` + Cursor string `json:"cursor,omitempty"` // Resume from this cursor position +} + +// DateRangeRequest represents request parameters for date range extraction +type DateRangeRequest struct { + Username string `json:"username"` + AuthToken string `json:"auth_token"` + StartDate string `json:"start_date"` // YYYY-MM-DD + EndDate string `json:"end_date"` // YYYY-MM-DD + MediaFilter string `json:"media_filter"` + Retweets bool `json:"retweets"` +} + +// buildTwitterURL constructs the Twitter URL based on username and timeline type +func buildTwitterURL(username, timelineType string) string { + // Special case: bookmarks don't need username + if timelineType == "bookmarks" { + return "https://x.com/i/bookmarks" + } + + // Clean username - extract handle from URL if needed + username = cleanUsername(username) + + // Build URL based on timeline type + baseURL := "https://x.com/" + username + switch timelineType { + case "media": + return baseURL + "/media" + case "timeline": + return baseURL + "/timeline" // Best for cursor support + case "tweets": + return baseURL + "/tweets" + case "with_replies": + return baseURL + "/with_replies" + case "likes": + return baseURL + "/likes" + default: + return baseURL + "/timeline" // Default to timeline for reliable cursor + } +} + +// cleanUsername extracts the handle from different input formats +// Handles: @username, username, https://x.com/username, https://x.com/username/media, etc. +func cleanUsername(username string) string { + username = strings.TrimSpace(username) + username = strings.TrimPrefix(username, "@") + + if strings.Contains(username, "x.com/") || strings.Contains(username, "twitter.com/") { + parsed := username + if !strings.HasPrefix(parsed, "http://") && !strings.HasPrefix(parsed, "https://") { + parsed = "https://" + strings.TrimPrefix(parsed, "//") + } + if u, err := url.Parse(parsed); err == nil { + segments := strings.Split(strings.Trim(u.Path, "/"), "/") + // Skip special paths like /i/bookmarks, /search, /home, /explore + if len(segments) > 0 && segments[0] != "" { + firstSegment := strings.ToLower(segments[0]) + // These are not usernames + if firstSegment == "i" || firstSegment == "search" || firstSegment == "home" || firstSegment == "explore" || firstSegment == "settings" || firstSegment == "messages" || firstSegment == "notifications" { + return username // Return as-is, let caller handle + } + return segments[0] + } + } + } + + return username +} + +// ensureURLScheme normalises URLs so the CLI accepts them +func ensureURLScheme(raw string) string { + raw = strings.TrimSpace(raw) + if raw == "" { + return raw + } + if strings.HasPrefix(raw, "http://") || strings.HasPrefix(raw, "https://") { + return raw + } + if strings.HasPrefix(raw, "//") { + return "https:" + raw + } + return "https://" + strings.TrimPrefix(raw, "//") +} + +// buildSearchURL assembles an X.com search URL for date range queries +func buildSearchURL(username, startDate, endDate, mediaFilter string, includeRetweets bool) string { + trimmed := strings.TrimSpace(username) + lower := strings.ToLower(trimmed) + if strings.Contains(lower, "search?q=") { + return ensureURLScheme(trimmed) + } + + handle := cleanUsername(trimmed) + var parts []string + if handle != "" { + parts = append(parts, fmt.Sprintf("from:%s", handle)) + } + if startDate != "" { + parts = append(parts, fmt.Sprintf("since:%s", startDate)) + } + if endDate != "" { + parts = append(parts, fmt.Sprintf("until:%s", endDate)) + } + + switch strings.ToLower(strings.TrimSpace(mediaFilter)) { + case "image", "images", "photo", "photos": + parts = append(parts, "filter:images") + case "video", "videos", "gif", "gifs": + parts = append(parts, "filter:videos") + case "text": + parts = append(parts, "-filter:media") + default: + parts = append(parts, "filter:media") + } + + if !includeRetweets { + parts = append(parts, "-filter:retweets") + } + + query := url.QueryEscape(strings.Join(parts, " ")) + return fmt.Sprintf("https://x.com/search?q=%s&src=typed_query&f=live", query) +} + +// convertMetadataToTimelineEntry converts metadata-only tweets to timeline entries +func convertMetadataToTimelineEntry(meta TweetMetadata) TimelineEntry { + return TimelineEntry{ + URL: "", + Date: meta.Date, + TweetID: meta.TweetID, + Type: "text", + IsRetweet: meta.RetweetID != 0, + Extension: "txt", + Width: 0, + Height: 0, + Content: meta.Content, + ViewCount: meta.ViewCount, + BookmarkCount: meta.BookmarkCount, + FavoriteCount: meta.FavoriteCount, + RetweetCount: meta.RetweetCount, + ReplyCount: meta.ReplyCount, + } +} + +// convertToTimelineEntry converts CLIMediaItem to TimelineEntry +func convertToTimelineEntry(media CLIMediaItem) TimelineEntry { + entry := TimelineEntry{ + URL: media.URL, + TweetID: media.TweetID, + Date: media.Date, + Extension: media.Extension, + Width: media.Width, + Height: media.Height, + IsRetweet: media.RetweetID != 0, + Content: media.Content, + ViewCount: media.ViewCount, + BookmarkCount: media.BookmarkCount, + FavoriteCount: media.FavoriteCount, + RetweetCount: media.RetweetCount, + ReplyCount: media.ReplyCount, + Source: media.Source, + Verified: media.Author.Verified, + } + + // Determine type - media item already has type from CLI + if media.Type != "" { + entry.Type = media.Type + } else { + switch strings.ToLower(media.Extension) { + case "mp4", "webm": + entry.Type = "video" + case "gif": + entry.Type = "gif" + default: + entry.Type = "photo" + } + } + + return entry +} + +// getExtractorPath returns the path to extractor binary +// Binary is stored in ~/.twitterxmediabatchdownloader/ (same as ffmpeg and database) +func getExtractorPath() string { + homeDir, _ := os.UserHomeDir() + baseDir := filepath.Join(homeDir, ".twitterxmediabatchdownloader") + return filepath.Join(baseDir, getExecutableName()) +} + +// getHashFilePath returns the path to the hash file for version checking +func getHashFilePath() string { + homeDir, _ := os.UserHomeDir() + baseDir := filepath.Join(homeDir, ".twitterxmediabatchdownloader") + return filepath.Join(baseDir, "extractor.sha256") +} + +// calculateHash calculates SHA256 hash of data +func calculateHash(data []byte) string { + hash := sha256.Sum256(data) + return hex.EncodeToString(hash[:]) +} + +// ensureExtractor ensures the extractor binary exists +// Extracts from embedded binary if not present or if hash differs (update) +func ensureExtractor() (string, error) { + exePath := getExtractorPath() + hashPath := getHashFilePath() + baseDir := filepath.Dir(exePath) + + // Create directory if not exists + if err := os.MkdirAll(baseDir, 0755); err != nil { + return "", fmt.Errorf("failed to create directory: %v", err) + } + + // Calculate hash of embedded binary + embeddedHash := calculateHash(extractorBin) + + // Check if binary and hash file exist + if _, err := os.Stat(exePath); err == nil { + // Binary exists - check hash + if storedHash, err := os.ReadFile(hashPath); err == nil { + if string(storedHash) == embeddedHash { + return exePath, nil // Already extracted and up to date + } + } + // Hash differs or missing - need to update + os.Remove(exePath) + } + + // Extract binary + if err := os.WriteFile(exePath, extractorBin, 0755); err != nil { + return "", fmt.Errorf("failed to write extractor: %v", err) + } + + // Save hash for future comparison + if err := os.WriteFile(hashPath, []byte(embeddedHash), 0644); err != nil { + // Non-fatal - binary still works, just won't skip next time + fmt.Printf("Warning: failed to save hash file: %v\n", err) + } + + return exePath, nil +} + +// ExtractTimeline extracts media from user timeline using the new CLI +func ExtractTimeline(req TimelineRequest) (*TwitterResponse, error) { + // Get or extract extractor binary (persistent, not temp) + exePath, err := ensureExtractor() + if err != nil { + return nil, err + } + + // Determine the right endpoint based on what user wants: + // - Media (all/image/video/gif): Use /media endpoint - fastest and most reliable + // - Text tweets: Use /tweets endpoint with --text-tweets + // - With retweets: Use /tweets endpoint (retweets not available on /media) + isTextOnly := req.MediaType == "text" + wantsRetweets := req.Retweets + + timelineType := req.TimelineType + if timelineType == "" { + if isTextOnly { + // Text-only tweets need /tweets endpoint + timelineType = "tweets" + } else if wantsRetweets { + // Retweets need /tweets endpoint (not available on /media) + timelineType = "tweets" + } else { + // Default: /media endpoint - fastest for media-only fetch + timelineType = "media" + } + } + + url := buildTwitterURL(req.Username, timelineType) + + // Build command arguments for new CLI format + // Format: extractor.exe URL --auth-token TOKEN --json [options] + args := []string{url} + + // Add auth token + if req.AuthToken != "" { + args = append(args, "--auth-token", req.AuthToken) + } else { + args = append(args, "--guest") + } + + // Always request JSON output with metadata + args = append(args, "--json", "--metadata") + + // Add limit if specified + if req.BatchSize > 0 { + args = append(args, "--limit", fmt.Sprintf("%d", req.BatchSize)) + } + + // Handle retweets - only relevant when using /tweets endpoint + if timelineType == "tweets" || timelineType == "timeline" { + if req.Retweets { + args = append(args, "--retweets", "include") + } else { + args = append(args, "--retweets", "skip") + } + } + + // Only add --text-tweets when explicitly requesting text content + if isTextOnly { + args = append(args, "--text-tweets") + } + + // Handle media type filter using --type parameter + if req.MediaType != "" && req.MediaType != "all" && !isTextOnly { + switch req.MediaType { + case "image": + args = append(args, "--type", "photo") + case "video": + args = append(args, "--type", "video") + case "gif": + args = append(args, "--type", "animated_gif") + } + } + + // Add cursor for resume capability + if req.Cursor != "" { + args = append(args, "--cursor", req.Cursor) + } + + // Execute command with UTF-8 encoding + cmd := exec.Command(exePath, args...) + cmd.Env = append(os.Environ(), + "PYTHONIOENCODING=utf-8", + "PYTHONUTF8=1", + ) + hideWindow(cmd) // Hide console window on Windows + output, err := cmd.CombinedOutput() + + // Ensure process is killed after completion + if cmd.Process != nil { + cmd.Process.Kill() + } + + if err != nil { + outputStr := string(output) + errorMsg := parseExtractorError(outputStr, req.Username) + return nil, fmt.Errorf("%s", errorMsg) + } + + // Find JSON in output (skip any info messages) + jsonStr := extractJSON(string(output)) + if jsonStr == "" { + outputStr := string(output) + if strings.TrimSpace(outputStr) == "" { + return nil, fmt.Errorf("empty_response: Extractor returned no data. The timeline may be empty or inaccessible") + } + return nil, fmt.Errorf("parse_error: Could not parse extractor output. Raw output: %s", outputStr) + } + + // Parse CLI response + var cliResponse CLIResponse + if err := json.Unmarshal([]byte(jsonStr), &cliResponse); err != nil { + return nil, fmt.Errorf("json_error: Failed to parse JSON response: %v", err) + } + + // Convert to frontend format + var timeline []TimelineEntry + accountInfo := AccountInfo{ + Name: req.Username, + Nick: req.Username, + } + + // Build a set of tweet IDs that have media + mediaTweetIDs := make(map[int64]bool) + for _, media := range cliResponse.Media { + mediaTweetIDs[int64(media.TweetID)] = true + } + + if isTextOnly { + // Text-only mode: get tweets from metadata that don't have media + timeline = make([]TimelineEntry, 0) + for _, meta := range cliResponse.Metadata { + if !mediaTweetIDs[int64(meta.TweetID)] { + timeline = append(timeline, convertMetadataToTimelineEntry(meta)) + } + } + + // Get account info from first media item if available, otherwise from metadata + if len(cliResponse.Media) > 0 { + user := cliResponse.Media[0].User + accountInfo.Name = user.Name + accountInfo.Nick = user.Nick + accountInfo.Date = user.Date + accountInfo.FollowersCount = user.FollowersCount + accountInfo.FriendsCount = user.FriendsCount + accountInfo.ProfileImage = user.ProfileImage + accountInfo.StatusesCount = user.StatusesCount + } else if len(cliResponse.Metadata) > 0 { + firstMeta := cliResponse.Metadata[0] + accountInfo.Name = firstMeta.Author.Name + accountInfo.Nick = firstMeta.Author.Nick + } + } else if len(cliResponse.Media) > 0 { + // Normal media items only (text tweets handled separately with "text" media type) + timeline = make([]TimelineEntry, 0, len(cliResponse.Media)) + + // Add media items + for _, media := range cliResponse.Media { + timeline = append(timeline, convertToTimelineEntry(media)) + } + + // Get account info from first media item + user := cliResponse.Media[0].User + accountInfo.Name = user.Name + accountInfo.Nick = user.Nick + accountInfo.Date = user.Date + accountInfo.FollowersCount = user.FollowersCount + accountInfo.FriendsCount = user.FriendsCount + accountInfo.ProfileImage = user.ProfileImage + accountInfo.StatusesCount = user.StatusesCount + } else if len(cliResponse.Metadata) > 0 { + // Fallback: Text-only tweets (no media) - convert metadata to timeline entries + timeline = make([]TimelineEntry, 0, len(cliResponse.Metadata)) + for _, meta := range cliResponse.Metadata { + entry := TimelineEntry{ + URL: "", // No media URL for text tweets + TweetID: meta.TweetID, + Date: meta.Date, + Type: "text", + IsRetweet: meta.RetweetID != 0, + Extension: "txt", + Width: 0, + Height: 0, + Content: meta.Content, + ViewCount: meta.ViewCount, + BookmarkCount: meta.BookmarkCount, + FavoriteCount: meta.FavoriteCount, + RetweetCount: meta.RetweetCount, + ReplyCount: meta.ReplyCount, + } + timeline = append(timeline, entry) + } + // Get account info from first metadata + firstMeta := cliResponse.Metadata[0] + accountInfo.Name = firstMeta.Author.Name + accountInfo.Nick = firstMeta.Author.Nick + } + + // Determine if there's more data to fetch + hasMore := cliResponse.Cursor != "" && !cliResponse.Completed + + response := &TwitterResponse{ + AccountInfo: accountInfo, + TotalURLs: len(timeline), + Timeline: timeline, + Metadata: ExtractMetadata{ + NewEntries: len(timeline), + Page: req.Page, + BatchSize: req.BatchSize, + HasMore: hasMore, + Cursor: cliResponse.Cursor, + Completed: cliResponse.Completed, + }, + Cursor: cliResponse.Cursor, + Completed: cliResponse.Completed, + } + + return response, nil +} + +// ExtractDateRange extracts media based on date range using the new CLI +func ExtractDateRange(req DateRangeRequest) (*TwitterResponse, error) { + // Get or extract extractor binary (persistent, not temp) + exePath, err := ensureExtractor() + if err != nil { + return nil, err + } + + mediaFilter := strings.ToLower(strings.TrimSpace(req.MediaFilter)) + url := buildSearchURL(req.Username, req.StartDate, req.EndDate, mediaFilter, req.Retweets) + + // Build command arguments + args := []string{url} + + // Add auth token + if req.AuthToken != "" { + args = append(args, "--auth-token", req.AuthToken) + } else { + args = append(args, "--guest") + } + + // Always request JSON output with metadata + args = append(args, "--json", "--metadata") + + if req.Retweets { + args = append(args, "--retweets", "include") + } else { + args = append(args, "--retweets", "skip") + } + + isTextOnly := mediaFilter == "text" + if isTextOnly { + args = append(args, "--text-tweets") + } + + // Execute command with UTF-8 encoding + cmd := exec.Command(exePath, args...) + cmd.Env = append(os.Environ(), + "PYTHONIOENCODING=utf-8", + "PYTHONUTF8=1", + ) + hideWindow(cmd) + output, err := cmd.CombinedOutput() + + // Ensure process is killed after completion + if cmd.Process != nil { + cmd.Process.Kill() + } + + if err != nil { + outputStr := string(output) + errorMsg := parseExtractorError(outputStr, req.Username) + return nil, fmt.Errorf("%s", errorMsg) + } + + // Find JSON in output (skip any info messages) + jsonStr := extractJSON(string(output)) + if jsonStr == "" { + outputStr := string(output) + if strings.TrimSpace(outputStr) == "" { + return nil, fmt.Errorf("empty_response: Extractor returned no data. The timeline may be empty or inaccessible") + } + return nil, fmt.Errorf("parse_error: Could not parse extractor output. Raw output: %s", outputStr) + } + + // Parse CLI response + var cliResponse CLIResponse + if err := json.Unmarshal([]byte(jsonStr), &cliResponse); err != nil { + return nil, fmt.Errorf("json_error: Failed to parse JSON response: %v", err) + } + + // Convert to frontend format + mediaTweetIDs := make(map[int64]bool) + for _, media := range cliResponse.Media { + mediaTweetIDs[int64(media.TweetID)] = true + } + + timeline := make([]TimelineEntry, 0, len(cliResponse.Media)+len(cliResponse.Metadata)) + for _, media := range cliResponse.Media { + timeline = append(timeline, convertToTimelineEntry(media)) + } + + if isTextOnly { + for _, meta := range cliResponse.Metadata { + if !mediaTweetIDs[int64(meta.TweetID)] { + timeline = append(timeline, convertMetadataToTimelineEntry(meta)) + } + } + } + + // Build account info from first media item (has full user info) + accountInfo := AccountInfo{ + Name: req.Username, + Nick: req.Username, + } + if len(cliResponse.Media) > 0 { + user := cliResponse.Media[0].User + accountInfo.Name = user.Name + accountInfo.Nick = user.Nick + accountInfo.Date = user.Date + accountInfo.FollowersCount = user.FollowersCount + accountInfo.FriendsCount = user.FriendsCount + accountInfo.ProfileImage = user.ProfileImage + accountInfo.StatusesCount = user.StatusesCount + } else if len(cliResponse.Metadata) > 0 { + firstMeta := cliResponse.Metadata[0] + accountInfo.Name = firstMeta.Author.Name + accountInfo.Nick = firstMeta.Author.Nick + } + + // Determine if there's more data to fetch + hasMore := cliResponse.Cursor != "" && !cliResponse.Completed + + response := &TwitterResponse{ + AccountInfo: accountInfo, + TotalURLs: len(timeline), + Timeline: timeline, + Metadata: ExtractMetadata{ + NewEntries: len(timeline), + Page: 0, + BatchSize: 0, + HasMore: hasMore, + Cursor: cliResponse.Cursor, + Completed: cliResponse.Completed, + }, + Cursor: cliResponse.Cursor, + Completed: cliResponse.Completed, + } + + return response, nil +} + +// extractJSON finds and extracts JSON object from output string +func extractJSON(output string) string { + // Find the start of JSON object + start := strings.Index(output, "{") + if start == -1 { + return "" + } + + // Find the matching closing brace + depth := 0 + for i := start; i < len(output); i++ { + if output[i] == '{' { + depth++ + } else if output[i] == '}' { + depth-- + if depth == 0 { + return output[start : i+1] + } + } + } + + return "" +} + +// GetThumbnailURL converts a Twitter media URL to thumbnail size +func GetThumbnailURL(url string) string { + // For images: https://pbs.twimg.com/media/XXX?format=jpg&name=thumb + if strings.Contains(url, "pbs.twimg.com/media/") { + // Check if it already has format parameter + if strings.Contains(url, "?format=") { + // Replace name parameter with thumb + if strings.Contains(url, "&name=") { + parts := strings.Split(url, "&name=") + return parts[0] + "&name=thumb" + } + return url + "&name=thumb" + } + // Add format and name parameters + if strings.Contains(url, "?") { + return url + "&name=thumb" + } + return url + "?format=jpg&name=thumb" + } + return url +} diff --git a/core/__init__.py b/core/__init__.py deleted file mode 100644 index 28d76c0..0000000 --- a/core/__init__.py +++ /dev/null @@ -1,14 +0,0 @@ -from core.databaseManager import DatabaseManager -from core.metadataFetcher import get_metadata, get_metadata_by_date -from core.downloadWorker import DownloadWorker -from core.metadataWorker import MetadataFetchWorker -from core.accountModel import Account - -__all__ = [ - 'DatabaseManager', - 'get_metadata', - 'get_metadata_by_date', - 'DownloadWorker', - 'MetadataFetchWorker', - 'Account' -] \ No newline at end of file diff --git a/core/accountModel.py b/core/accountModel.py deleted file mode 100644 index 88008f2..0000000 --- a/core/accountModel.py +++ /dev/null @@ -1,15 +0,0 @@ -from dataclasses import dataclass - -@dataclass -class Account: - username: str - nick: str - followers: int - following: int - posts: int - media_type: str - profile_image: str = None - media_list: list = None - fetch_mode: str = 'all' - fetch_timestamp: str = None - group_id: int = None \ No newline at end of file diff --git a/core/databaseManager.py b/core/databaseManager.py deleted file mode 100644 index dc18d9e..0000000 --- a/core/databaseManager.py +++ /dev/null @@ -1,420 +0,0 @@ -import sqlite3 -import os -import json -import threading -from datetime import datetime -from pathlib import Path -from typing import List, Dict, Optional, Tuple - -class DatabaseManager: - def __init__(self, db_path: str): - self.db_path = db_path - self.conn = None - self._lock = threading.Lock() - self.init_database() - - def init_database(self): - self.conn = sqlite3.connect(self.db_path, check_same_thread=False) - self.conn.row_factory = sqlite3.Row - - self.conn.execute('PRAGMA foreign_keys = ON') - - cursor = self.conn.cursor() - - cursor.execute(''' - CREATE TABLE IF NOT EXISTS groups ( - id INTEGER PRIMARY KEY AUTOINCREMENT, - name TEXT UNIQUE NOT NULL, - created_at TEXT - ) - ''') - - cursor.execute(''' - CREATE TABLE IF NOT EXISTS accounts ( - username TEXT PRIMARY KEY COLLATE NOCASE, - nick TEXT, - followers INTEGER, - following INTEGER, - posts INTEGER, - profile_image TEXT, - fetch_timestamp TEXT, - media_type TEXT, - fetch_mode TEXT, - timeline_type TEXT DEFAULT 'media', - group_id INTEGER, - FOREIGN KEY (group_id) REFERENCES groups(id) ON DELETE SET NULL - ) - ''') - - try: - cursor.execute("SELECT group_id FROM accounts LIMIT 1") - except sqlite3.OperationalError: - cursor.execute("ALTER TABLE accounts ADD COLUMN group_id INTEGER") - self.conn.commit() - - cursor.execute(''' - CREATE TABLE IF NOT EXISTS media ( - id INTEGER PRIMARY KEY AUTOINCREMENT, - username TEXT COLLATE NOCASE, - tweet_id TEXT, - url TEXT, - date TEXT, - type TEXT, - FOREIGN KEY (username) REFERENCES accounts(username) ON DELETE CASCADE, - UNIQUE(username, url) - ) - ''') - - cursor.execute(''' - CREATE TABLE IF NOT EXISTS downloads ( - id INTEGER PRIMARY KEY AUTOINCREMENT, - url TEXT, - filepath TEXT, - filepath_normalized TEXT COLLATE NOCASE, - username TEXT COLLATE NOCASE, - tweet_id TEXT, - download_date TEXT, - file_size INTEGER, - status TEXT, - UNIQUE(url, filepath_normalized) - ) - ''') - - cursor.execute('CREATE INDEX IF NOT EXISTS idx_filepath_normalized ON downloads(filepath_normalized)') - cursor.execute('CREATE INDEX IF NOT EXISTS idx_url ON downloads(url)') - cursor.execute('CREATE INDEX IF NOT EXISTS idx_username ON downloads(username)') - cursor.execute('CREATE INDEX IF NOT EXISTS idx_media_username ON media(username)') - - self.conn.commit() - - def save_account(self, username: str, nick: str, followers: int, following: int, - posts: int, media_type: str, profile_image: str = None, - fetch_mode: str = 'all', timeline_type: str = 'media', - fetch_timestamp: str = None, group_id: int = None): - with self._lock: - cursor = self.conn.cursor() - - if fetch_timestamp is None: - fetch_timestamp = datetime.now().isoformat() - - cursor.execute(''' - INSERT OR REPLACE INTO accounts - (username, nick, followers, following, posts, profile_image, - fetch_timestamp, media_type, fetch_mode, timeline_type, group_id) - VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - ''', (username, nick, followers, following, posts, profile_image, - fetch_timestamp, media_type, fetch_mode, timeline_type, group_id)) - - self.conn.commit() - - def save_media_list(self, username: str, media_list: List[Dict]): - with self._lock: - cursor = self.conn.cursor() - - cursor.execute('DELETE FROM media WHERE username = ?', (username,)) - - for item in media_list: - cursor.execute(''' - INSERT OR IGNORE INTO media (username, tweet_id, url, date, type) - VALUES (?, ?, ?, ?, ?) - ''', (username, item.get('tweet_id', ''), item['url'], - item['date'], item.get('type', 'image'))) - - self.conn.commit() - - def get_account(self, username: str, media_type: str = 'all') -> Optional[Dict]: - cursor = self.conn.cursor() - cursor.execute(''' - SELECT * FROM accounts - WHERE username = ? AND media_type = ? - ''', (username, media_type)) - - row = cursor.fetchone() - if row: - return dict(row) - return None - - def get_media_list(self, username: str) -> List[Dict]: - cursor = self.conn.cursor() - cursor.execute(''' - SELECT tweet_id, url, date, type - FROM media - WHERE username = ? - ORDER BY date DESC - ''', (username,)) - - return [dict(row) for row in cursor.fetchall()] - - def get_all_accounts(self) -> List[Dict]: - cursor = self.conn.cursor() - cursor.execute('SELECT * FROM accounts ORDER BY fetch_timestamp DESC') - return [dict(row) for row in cursor.fetchall()] - - def delete_account(self, username: str, media_type: str = None): - with self._lock: - cursor = self.conn.cursor() - - if media_type: - cursor.execute('DELETE FROM accounts WHERE username = ? AND media_type = ?', - (username, media_type)) - else: - cursor.execute('DELETE FROM accounts WHERE username = ?', (username,)) - - self.conn.commit() - - def is_file_downloaded(self, filepath: str) -> bool: - cursor = self.conn.cursor() - filepath_normalized = filepath.lower() - - cursor.execute(''' - SELECT 1 FROM downloads - WHERE filepath_normalized = ? AND status = 'downloaded' - LIMIT 1 - ''', (filepath_normalized,)) - - return cursor.fetchone() is not None - - def is_url_downloaded(self, url: str) -> bool: - cursor = self.conn.cursor() - - cursor.execute(''' - SELECT 1 FROM downloads - WHERE url = ? AND status = 'downloaded' - LIMIT 1 - ''', (url,)) - - return cursor.fetchone() is not None - - def record_download(self, url: str, filepath: str, username: str, - tweet_id: str, status: str = 'downloaded', file_size: int = 0): - with self._lock: - cursor = self.conn.cursor() - filepath_normalized = filepath.lower() - download_date = datetime.now().isoformat() - - cursor.execute(''' - INSERT OR REPLACE INTO downloads - (url, filepath, filepath_normalized, username, tweet_id, - download_date, file_size, status) - VALUES (?, ?, ?, ?, ?, ?, ?, ?) - ''', (url, filepath, filepath_normalized, username, tweet_id, - download_date, file_size, status)) - - self.conn.commit() - - def get_download_stats(self, username: str = None) -> Dict: - cursor = self.conn.cursor() - - if username: - cursor.execute(''' - SELECT - COUNT(*) as total, - SUM(CASE WHEN status = 'downloaded' THEN 1 ELSE 0 END) as downloaded, - SUM(CASE WHEN status = 'skipped' THEN 1 ELSE 0 END) as skipped, - SUM(CASE WHEN status = 'failed' THEN 1 ELSE 0 END) as failed, - SUM(file_size) as total_size - FROM downloads - WHERE username = ? - ''', (username,)) - else: - cursor.execute(''' - SELECT - COUNT(*) as total, - SUM(CASE WHEN status = 'downloaded' THEN 1 ELSE 0 END) as downloaded, - SUM(CASE WHEN status = 'skipped' THEN 1 ELSE 0 END) as skipped, - SUM(CASE WHEN status = 'failed' THEN 1 ELSE 0 END) as failed, - SUM(file_size) as total_size - FROM downloads - ''') - - row = cursor.fetchone() - return dict(row) if row else {} - - def migrate_from_json(self, json_dir: str) -> Tuple[int, int]: - if not os.path.exists(json_dir): - return 0, 0 - - json_files = [f for f in os.listdir(json_dir) if f.endswith('.json')] - accounts_migrated = 0 - media_migrated = 0 - - for json_file in json_files: - try: - json_path = os.path.join(json_dir, json_file) - - with open(json_path, 'r', encoding='utf-8') as f: - data = json.load(f) - - media_type = data.get('media_type', 'all') - - if media_type not in ['all', 'image', 'video', 'gif']: - filename_parts = json_file.replace('.json', '').split('_') - if len(filename_parts) >= 1: - last_part = filename_parts[-1] - if last_part in ['all', 'image', 'video', 'gif']: - media_type = last_part - else: - media_type = 'all' - else: - media_type = 'all' - - filename_parts = json_file.replace('.json', '').split('_') - if len(filename_parts) >= 2: - second_last = filename_parts[-2] - if second_last in ['media', 'timeline', 'tweets', 'with']: - timeline_type = second_last - else: - timeline_type = 'media' - else: - timeline_type = 'media' - - account_info = data.get('account_info', {}) - timeline = data.get('timeline', []) - - username = data.get('username') or account_info.get('name', filename_parts[0] if filename_parts else 'unknown') - - nick = data.get('nick') or account_info.get('nick') or account_info.get('name', username) - followers = data.get('followers') or account_info.get('followers_count', 0) - following = data.get('following') or account_info.get('friends_count', 0) - posts = data.get('posts') or account_info.get('statuses_count', 0) - profile_image = data.get('profile_image') or account_info.get('profile_image') - - self.save_account( - username=username, - nick=nick, - followers=followers, - following=following, - posts=posts, - media_type=media_type, - profile_image=profile_image, - fetch_mode=data.get('fetch_mode', 'all'), - timeline_type=timeline_type - ) - accounts_migrated += 1 - - media_list = timeline if timeline else data.get('media_list', []) - if media_list: - self.save_media_list(username, media_list) - media_migrated += len(media_list) - - backup_path = json_path + '.backup' - if not os.path.exists(backup_path): - os.rename(json_path, backup_path) - - except Exception as e: - print(f"Error migrating {json_file}: {e}") - continue - - return accounts_migrated, media_migrated - - def export_to_json(self, username: str, media_type: str, output_path: str): - account = self.get_account(username, media_type) - if not account: - return False - - media_list = self.get_media_list(username) - - export_data = { - 'username': account['username'], - 'nick': account['nick'], - 'followers': account['followers'], - 'following': account['following'], - 'posts': account['posts'], - 'profile_image': account['profile_image'], - 'fetch_timestamp': account['fetch_timestamp'], - 'media_type': account['media_type'], - 'fetch_mode': account['fetch_mode'], - 'media_list': media_list - } - - with open(output_path, 'w', encoding='utf-8') as f: - json.dump(export_data, f, ensure_ascii=False, indent=2) - - return True - - def import_from_json(self, json_path: str) -> bool: - try: - with open(json_path, 'r', encoding='utf-8') as f: - data = json.load(f) - - username = data.get('username') - if not username: - return False - - self.save_account( - username=username, - nick=data.get('nick', ''), - followers=data.get('followers', 0), - following=data.get('following', 0), - posts=data.get('posts', 0), - media_type=data.get('media_type', 'all'), - profile_image=data.get('profile_image'), - fetch_mode=data.get('fetch_mode', 'all') - ) - - media_list = data.get('media_list', []) - if media_list: - self.save_media_list(username, media_list) - - return True - - except Exception as e: - print(f"Error importing JSON: {e}") - return False - - def close(self): - if self.conn: - self.conn.close() - - def create_group(self, name: str) -> Optional[int]: - with self._lock: - try: - cursor = self.conn.cursor() - created_at = datetime.now().isoformat() - cursor.execute('INSERT INTO groups (name, created_at) VALUES (?, ?)', (name, created_at)) - self.conn.commit() - return cursor.lastrowid - except sqlite3.IntegrityError: - return None - - def get_all_groups(self) -> List[Dict]: - cursor = self.conn.cursor() - cursor.execute('SELECT * FROM groups ORDER BY name') - return [dict(row) for row in cursor.fetchall()] - - def get_group(self, group_id: int) -> Optional[Dict]: - cursor = self.conn.cursor() - cursor.execute('SELECT * FROM groups WHERE id = ?', (group_id,)) - row = cursor.fetchone() - return dict(row) if row else None - - def update_group(self, group_id: int, name: str) -> bool: - with self._lock: - try: - cursor = self.conn.cursor() - cursor.execute('UPDATE groups SET name = ? WHERE id = ?', (name, group_id)) - self.conn.commit() - return True - except sqlite3.IntegrityError: - return False - - def delete_group(self, group_id: int): - with self._lock: - cursor = self.conn.cursor() - cursor.execute('UPDATE accounts SET group_id = NULL WHERE group_id = ?', (group_id,)) - cursor.execute('DELETE FROM groups WHERE id = ?', (group_id,)) - self.conn.commit() - - def assign_account_to_group(self, username: str, group_id: Optional[int]): - with self._lock: - cursor = self.conn.cursor() - cursor.execute('UPDATE accounts SET group_id = ? WHERE username = ?', (group_id, username)) - self.conn.commit() - - def get_accounts_by_group(self, group_id: Optional[int]) -> List[Dict]: - cursor = self.conn.cursor() - if group_id is None: - cursor.execute('SELECT * FROM accounts WHERE group_id IS NULL ORDER BY fetch_timestamp DESC') - else: - cursor.execute('SELECT * FROM accounts WHERE group_id = ? ORDER BY fetch_timestamp DESC', (group_id,)) - return [dict(row) for row in cursor.fetchall()] diff --git a/core/downloadWorker.py b/core/downloadWorker.py deleted file mode 100644 index 3cb5212..0000000 --- a/core/downloadWorker.py +++ /dev/null @@ -1,307 +0,0 @@ -import sys -import os -import asyncio -import aiohttp -import subprocess -import imageio_ffmpeg -from datetime import datetime -from PyQt6.QtCore import QThread, pyqtSignal - -DEFAULT_BATCH_SIZE = 25 -TIMEOUT_SECONDS_MAC = 60 -TIMEOUT_SECONDS_DEFAULT = 30 -BATCH_SLEEP_INTERVAL = 0.1 -PAUSE_CHECK_INTERVAL = 0.1 - -class DownloadWorker(QThread): - finished = pyqtSignal(bool, str) - progress = pyqtSignal(str, int) - conversion_progress = pyqtSignal(str, int) - download_progress = pyqtSignal(str, int) - - def __init__(self, accounts, outpath, auth_token, filename_format='username_date', - download_batch_size=DEFAULT_BATCH_SIZE, convert_gif=False, gif_resolution='original', gif_conversion_mode='better', db_manager=None): - super().__init__() - self.accounts = accounts - self.outpath = outpath - self.auth_token = auth_token - self.filename_format = filename_format - self.download_batch_size = download_batch_size - self.convert_gif = convert_gif - self.gif_resolution = gif_resolution - self.gif_conversion_mode = gif_conversion_mode - self.is_paused = False - self.is_stopped = False - self.filepath_map = [] - self.db_manager = db_manager - - async def download_file(self, session, url, filepath, username, tweet_id): - try: - if self.db_manager and self.db_manager.is_url_downloaded(url): - return True, True - - if os.path.exists(filepath): - if self.db_manager: - file_size = os.path.getsize(filepath) - self.db_manager.record_download(url, filepath, username, tweet_id, 'downloaded', file_size) - return True, True - - if self.is_stopped: - return False, False - - try: - os.makedirs(os.path.dirname(filepath), exist_ok=True) - except OSError as e: - return False, False - - async with session.get(url) as response: - if response.status == 200: - content = await response.read() - - try: - with open(filepath, 'wb') as f: - f.write(content) - except (IOError, OSError) as e: - if self.db_manager: - self.db_manager.record_download(url, filepath, username, tweet_id, 'failed', 0) - return False, False - - if self.db_manager: - self.db_manager.record_download(url, filepath, username, tweet_id, 'downloaded', len(content)) - - return True, False - return False, False - except asyncio.TimeoutError: - if self.db_manager: - self.db_manager.record_download(url, filepath, username, tweet_id, 'failed', 0) - return False, False - except aiohttp.ClientError as e: - if self.db_manager: - self.db_manager.record_download(url, filepath, username, tweet_id, 'failed', 0) - return False, False - except Exception as e: - if self.db_manager: - self.db_manager.record_download(url, filepath, username, tweet_id, 'failed', 0) - return False, False - - async def download_account_media(self, account): - if not account.media_list: - return 0, 0, 0 - - safe_username = os.path.basename(account.username.replace('/', '_').replace('\\', '_')) - account_output_dir = os.path.join(self.outpath, safe_username) - os.makedirs(account_output_dir, exist_ok=True) - - timeout_seconds = TIMEOUT_SECONDS_MAC if sys.platform == 'darwin' else TIMEOUT_SECONDS_DEFAULT - timeout = aiohttp.ClientTimeout(total=timeout_seconds) - connector = aiohttp.TCPConnector(limit=self.download_batch_size) - - async with aiohttp.ClientSession(timeout=timeout, connector=connector) as session: - total = len(account.media_list) - completed = 0 - skipped = 0 - failed = 0 - - used_filenames = set() - - for i in range(0, total, self.download_batch_size): - if self.is_stopped: - break - - while self.is_paused: - if self.is_stopped: - return completed, skipped, failed - await asyncio.sleep(PAUSE_CHECK_INTERVAL) - - batch = account.media_list[i:i + self.download_batch_size] - tasks = [] - - for item in batch: - url = item['url'] - date = datetime.strptime(item['date'], "%Y-%m-%d %H:%M:%S") - formatted_date = date.strftime("%Y%m%d_%H%M%S") - tweet_id = str(item.get('tweet_id', '')) - - item_type = item.get('type', '') - if item_type == 'animated_gif': - media_type_folder = 'gif' - extension = 'mp4' - elif item_type == 'video' or 'video.twimg.com' in url: - media_type_folder = 'video' - extension = 'mp4' - else: - media_type_folder = 'image' - extension = 'jpg' - media_output_dir = os.path.join(account_output_dir, media_type_folder) - - if self.filename_format == "username_date": - base_filename = f"{safe_username}_{formatted_date}_{tweet_id}" - else: - base_filename = f"{formatted_date}_{safe_username}_{tweet_id}" - - filename = f"{base_filename}.{extension}" - counter = 1 - while filename in used_filenames: - filename = f"{base_filename}_{counter:02d}.{extension}" - counter += 1 - - used_filenames.add(filename) - filepath = os.path.join(media_output_dir, filename) - self.filepath_map.append((item, filepath)) - task = asyncio.create_task(self.download_file(session, url, filepath, account.username, tweet_id)) - tasks.append(task) - results = await asyncio.gather(*tasks, return_exceptions=True) - for result in results: - if isinstance(result, tuple): - success, was_skipped = result - if success: - if was_skipped: - skipped += 1 - else: - completed += 1 - else: - failed += 1 - else: - failed += 1 - - progress_percent = int((completed + skipped + failed) / total * 100) - media_type_display = account.media_type if account.media_type != 'all' else 'media' - self.download_progress.emit(f"Downloading {account.username}'s {media_type_display}: {completed + skipped + failed:,}/{total:,}", progress_percent) - - await asyncio.sleep(BATCH_SLEEP_INTERVAL) - - return completed, skipped, failed - - def run(self): - try: - if sys.platform == 'darwin': - asyncio.set_event_loop_policy(asyncio.DefaultEventLoopPolicy()) - - total_accounts = len(self.accounts) - overall_completed = 0 - overall_skipped = 0 - overall_failed = 0 - - for i, account in enumerate(self.accounts): - if self.is_stopped: - break - - while self.is_paused: - if self.is_stopped: - return - self.msleep(100) - media_type_display = account.media_type if account.media_type != 'all' else 'media' - self.progress.emit(f"Downloading from account: {account.username} ({media_type_display}) - ({i+1}/{total_accounts})", - int((i) / total_accounts * 100)) - - completed, skipped, failed = asyncio.run(self.download_account_media(account)) - overall_completed += completed - overall_skipped += skipped - overall_failed += failed - self.progress.emit(f"Account {account.username} ({media_type_display}): {completed:,} downloaded, {skipped:,} skipped, {failed:,} failed", - int((i + 1) / total_accounts * 100)) - - if not self.is_stopped: - if self.convert_gif: - try: - ffmpeg_exe = imageio_ffmpeg.get_ffmpeg_exe() - gif_items = [(item, fp) for item, fp in self.filepath_map if item.get('type') == 'animated_gif'] - total_gifs = len(gif_items) - if total_gifs > 0: - if sys.platform == 'win32': - creationflags = subprocess.CREATE_NO_WINDOW - else: - creationflags = 0 - - converted_count = 0 - skipped_count = 0 - self.progress.emit("Starting GIF conversion...", 0) - - for idx, (item, fp) in enumerate(gif_items, start=1): - if self.is_stopped: - break - - while self.is_paused: - if self.is_stopped: - break - self.msleep(100) - - if self.is_stopped: - break - - gif_fp = fp.rsplit('.', 1)[0] + '.gif' - - if os.path.exists(gif_fp): - try: - os.remove(fp) - skipped_count += 1 - conv_progress = int((idx / total_gifs) * 100) - quality_display = f"({self.gif_conversion_mode}) - ({self.gif_resolution})" - self.conversion_progress.emit(f"Converting GIF {idx:,}/{total_gifs:,} {quality_display} - Skipped (exists)", conv_progress) - continue - except Exception: - pass - - - if self.gif_conversion_mode == 'fast': - ffmpeg_args = [ffmpeg_exe, '-i', fp, '-y', gif_fp] - else: - if self.gif_resolution == 'high': - ffmpeg_args = [ffmpeg_exe, '-i', fp, '-lavfi', 'scale=800:-1:flags=lanczos,palettegen=stats_mode=full[palette];[0:v]scale=800:-1:flags=lanczos[scaled];[scaled][palette]paletteuse=dither=sierra2_4a', '-r', '15', '-y', gif_fp] - elif self.gif_resolution == 'medium': - ffmpeg_args = [ffmpeg_exe, '-i', fp, '-lavfi', 'scale=600:-1:flags=lanczos,palettegen=stats_mode=full[palette];[0:v]scale=600:-1:flags=lanczos[scaled];[scaled][palette]paletteuse=dither=sierra2_4a', '-r', '10', '-y', gif_fp] - elif self.gif_resolution == 'low': - ffmpeg_args = [ffmpeg_exe, '-i', fp, '-lavfi', 'scale=400:-1:flags=lanczos,palettegen=stats_mode=full[palette];[0:v]scale=400:-1:flags=lanczos[scaled];[scaled][palette]paletteuse=dither=sierra2_4a', '-r', '8', '-y', gif_fp] - else: - ffmpeg_args = [ffmpeg_exe, '-i', fp, '-lavfi', 'palettegen=stats_mode=full[palette];[0:v][palette]paletteuse=dither=sierra2_4a', '-y', gif_fp] - - try: - if sys.platform == 'win32': - result = subprocess.run(ffmpeg_args, capture_output=True, creationflags=creationflags) - else: - result = subprocess.run(ffmpeg_args, capture_output=True, stderr=subprocess.PIPE, stdout=subprocess.PIPE) - - if result.returncode == 0 and os.path.exists(gif_fp): - try: - os.remove(fp) - converted_count += 1 - except Exception: - pass - elif result.returncode != 0: - error_msg = result.stderr.decode('utf-8', errors='ignore') if result.stderr else 'Unknown error' - self.progress.emit(f"GIF conversion warning for file {idx}: {error_msg[:100]}", 0) - except Exception as e: - self.progress.emit(f"GIF conversion error for file {idx}: {str(e)[:100]}", 0) - - conv_progress = int((idx / total_gifs) * 100) - quality_display = f"({self.gif_conversion_mode}) - ({self.gif_resolution})" - self.conversion_progress.emit(f"Converting GIF {idx:,}/{total_gifs:,} {quality_display}", conv_progress) - if converted_count > 0 or skipped_count > 0: - completion_msg = f"GIF conversion completed: {converted_count:,} converted" - if skipped_count > 0: - completion_msg += f", {skipped_count:,} skipped (already exists)" - self.progress.emit(completion_msg, 100) - else: - self.progress.emit("GIF conversion completed", 100) - except Exception as conv_e: - self.progress.emit(f"GIF conversion error: {conv_e}", 0) - - success_message = f"Download completed! {overall_completed:,} files downloaded" - if overall_skipped > 0: - success_message += f", {overall_skipped:,} skipped" - if overall_failed > 0: - success_message += f", {overall_failed:,} failed" - self.finished.emit(True, success_message) - - except Exception as e: - self.finished.emit(False, str(e)) - - def pause(self): - self.is_paused = True - - def resume(self): - self.is_paused = False - - def stop(self): - self.is_stopped = True - self.is_paused = False \ No newline at end of file diff --git a/core/metadataFetcher.py b/core/metadataFetcher.py deleted file mode 100644 index ec6ce81..0000000 --- a/core/metadataFetcher.py +++ /dev/null @@ -1,329 +0,0 @@ -import re -import json -from datetime import datetime -from gallery_dl.extractor import twitter - -def get_metadata_by_date(username, auth_token, date_start, date_end, media_filter="filter:media", output_file=None): - query = f"from:{username} since:{date_start} until:{date_end}" - if media_filter: - query += f" {media_filter}" - - url = f"https://x.com/search?q={query}" - - extractor_class = twitter.TwitterSearchExtractor - match = re.match(extractor_class.pattern, url) - - if not match: - raise ValueError(f"Invalid search URL: {url}") - - extractor = extractor_class(match) - - config_dict = { - "cookies": { - "auth_token": auth_token - }, - "retweets": False - } - - extractor.config = lambda key, default=None: config_dict.get(key, default) - - try: - extractor.initialize() - - api = twitter.TwitterAPI(extractor) - - try: - user = api.user_by_screen_name(username) - - if "legacy" in user and user["legacy"].get("withheld_scope"): - raise ValueError("withheld") - - except Exception as e: - error_msg = str(e).lower() - if "withheld" in error_msg or (hasattr(e, "response") and "withheld" in str(e.response.text).lower()): - raise ValueError("withheld") - raise - - user_data = extractor._transform_user(user) - - structured_output = { - 'account_info': { - 'name': user_data.get('name', ''), - 'nick': user_data.get('nick', ''), - 'date': user_data.get('date', ''), - 'followers_count': user_data.get('followers_count', 0), - 'friends_count': user_data.get('friends_count', 0), - 'profile_image': user_data.get('profile_image', ''), - 'statuses_count': user_data.get('statuses_count', 0) - }, - 'total_urls': 0, - 'timeline': [], - 'search_query': query, - 'date_filter': { - 'start': date_start, - 'end': date_end, - 'method': 'search_api' - } - } - - if isinstance(structured_output['account_info']['date'], datetime): - structured_output['account_info']['date'] = structured_output['account_info']['date'].strftime("%Y-%m-%d %H:%M:%S") - - new_timeline_entries = [] - - try: - iterator = iter(extractor) - - while True: - try: - item = next(iterator) - - if isinstance(item, tuple) and len(item) >= 3: - media_url = item[1] - tweet_data = item[2] - - if 'pbs.twimg.com' in media_url or 'video.twimg.com' in media_url: - tweet_date = tweet_data.get('date', datetime.now()) - if isinstance(tweet_date, datetime): - tweet_date = tweet_date.strftime("%Y-%m-%d %H:%M:%S") - - timeline_entry = { - 'url': media_url, - 'date': tweet_date, - 'tweet_id': tweet_data.get('tweet_id', 0), - } - - if 'type' in tweet_data: - timeline_entry['type'] = tweet_data['type'] - - if 'retweet_id' in tweet_data and tweet_data['retweet_id']: - timeline_entry['retweet_id'] = tweet_data['retweet_id'] - timeline_entry['is_retweet'] = True - else: - timeline_entry['is_retweet'] = False - - new_timeline_entries.append(timeline_entry) - structured_output['total_urls'] += 1 - - except StopIteration: - break - - except Exception as e: - pass - - structured_output['timeline'] = new_timeline_entries - - structured_output['metadata'] = { - "new_entries": len(new_timeline_entries), - "method": "search_api", - "date_range": f"{date_start} to {date_end}" - } - - if output_file: - try: - with open(output_file, 'w', encoding='utf-8') as f: - json.dump(structured_output, f, ensure_ascii=False, indent=2) - except Exception as e: - pass - - return structured_output - - except Exception as e: - error_msg = str(e).lower() - if "withheld" in error_msg or e.__class__.__name__ == "ValueError" and str(e) == "withheld": - return {"error": "To download withheld accounts, use this userscript version: https://www.patreon.com/exyezed"} - else: - error_str = str(e) - if error_str == "None": - return {"error": "Failed to authenticate. Please verify your auth token is valid and not expired."} - else: - return {"error": error_str} - -def get_metadata(username, auth_token, timeline_type="timeline", batch_size=0, page=0, media_type="all", retweets=False): - url = f"https://x.com/{username}/{timeline_type}" - - if timeline_type == "media": - extractor_class = twitter.TwitterMediaExtractor - elif timeline_type == "tweets": - extractor_class = twitter.TwitterTweetsExtractor - elif timeline_type == "with_replies": - extractor_class = twitter.TwitterRepliesExtractor - else: - extractor_class = twitter.TwitterTimelineExtractor - - match = re.match(extractor_class.pattern, url) - if not match: - raise ValueError(f"Invalid URL for {timeline_type}: {url}") - - extractor = extractor_class(match) - - config_dict = { - "cookies": { - "auth_token": auth_token - }, - "retweets": retweets - } - - if batch_size > 0: - config_dict["count"] = batch_size - - extractor.config = lambda key, default=None: config_dict.get(key, default) - - try: - extractor.initialize() - - api = twitter.TwitterAPI(extractor) - try: - if username.startswith("id:"): - user = api.user_by_rest_id(username[3:]) - else: - user = api.user_by_screen_name(username) - - if "legacy" in user and user["legacy"].get("withheld_scope"): - raise ValueError("withheld") - - except Exception as e: - error_msg = str(e).lower() - if "withheld" in error_msg or (hasattr(e, "response") and "withheld" in str(e.response.text).lower()): - raise ValueError("withheld") - raise - - structured_output = { - 'account_info': {}, - 'total_urls': 0, - 'timeline': [] - } - - iterator = iter(extractor) - - if batch_size > 0 and page > 0: - items_to_skip = page * batch_size - - if hasattr(extractor, '_cursor') and extractor._cursor: - pass - else: - skipped = 0 - try: - for _ in range(items_to_skip): - next(iterator) - skipped += 1 - except StopIteration: - pass - - new_timeline_entries = [] - - items_to_fetch = batch_size if batch_size > 0 else float('inf') - items_fetched = 0 - - try: - while items_fetched < items_to_fetch: - item = next(iterator) - items_fetched += 1 - - if isinstance(item, tuple) and len(item) >= 3: - media_url = item[1] - tweet_data = item[2] - - if not structured_output['account_info'] and 'user' in tweet_data: - user = tweet_data['user'] - user_date = user.get('date', '') - if isinstance(user_date, datetime): - user_date = user_date.strftime("%Y-%m-%d %H:%M:%S") - - structured_output['account_info'] = { - 'name': user.get('name', ''), - 'nick': user.get('nick', ''), - 'date': user_date, - 'followers_count': user.get('followers_count', 0), - 'friends_count': user.get('friends_count', 0), - 'profile_image': user.get('profile_image', ''), - 'statuses_count': user.get('statuses_count', 0) - } - - if 'pbs.twimg.com' in media_url or 'video.twimg.com' in media_url: - tweet_date = tweet_data.get('date', datetime.now()) - if isinstance(tweet_date, datetime): - tweet_date = tweet_date.strftime("%Y-%m-%d %H:%M:%S") - - timeline_entry = { - 'url': media_url, - 'date': tweet_date, - 'tweet_id': tweet_data.get('tweet_id', 0), - } - - if 'type' in tweet_data: - timeline_entry['type'] = tweet_data['type'] - - if 'retweet_id' in tweet_data and tweet_data['retweet_id']: - timeline_entry['retweet_id'] = tweet_data['retweet_id'] - timeline_entry['is_retweet'] = True - else: - timeline_entry['is_retweet'] = False - - if media_type == 'all' or ( - (media_type == 'image' and 'pbs.twimg.com' in media_url and tweet_data.get('type') == 'photo') or - (media_type == 'video' and 'video.twimg.com' in media_url and tweet_data.get('type') == 'video') or - (media_type == 'gif' and 'video.twimg.com' in media_url and tweet_data.get('type') == 'animated_gif') - ): - new_timeline_entries.append(timeline_entry) - structured_output['total_urls'] += 1 - except StopIteration: - pass - - structured_output['timeline'].extend(new_timeline_entries) - - cursor_info = None - if hasattr(extractor, '_cursor') and extractor._cursor: - cursor_info = extractor._cursor - - structured_output['metadata'] = { - "new_entries": len(new_timeline_entries), - "page": page, - "batch_size": batch_size, - "has_more": batch_size > 0 and items_fetched == batch_size, - "cursor": cursor_info - } - - if not structured_output['account_info']: - raise ValueError("Failed to fetch account information. Please check the username and auth token.") - - return structured_output - - except Exception as e: - error_msg = str(e).lower() - if "withheld" in error_msg or e.__class__.__name__ == "ValueError" and str(e) == "withheld": - return {"error": "To download withheld accounts, use this userscript version: https://www.patreon.com/exyezed"} - else: - error_str = str(e) - if error_str == "None": - return {"error": "Failed to authenticate. Please verify your auth token is valid and not expired."} - else: - return {"error": error_str} - -def main(): - username = "" - auth_token = "" - timeline_type = "media" - batch_size = 100 - page = 0 - media_type = "all" - - try: - data = get_metadata( - username=username, - auth_token=auth_token, - timeline_type=timeline_type, - batch_size=batch_size, - page=page, - media_type=media_type - ) - print(json.dumps(data, ensure_ascii=False, indent=2)) - except Exception as e: - error_str = str(e) - if error_str == "None": - print(json.dumps({"error": "Failed to authenticate. Please verify your auth token is valid and not expired."}, ensure_ascii=False)) - else: - print(json.dumps({"error": error_str}, ensure_ascii=False)) - -if __name__ == '__main__': - main() \ No newline at end of file diff --git a/core/metadataWorker.py b/core/metadataWorker.py deleted file mode 100644 index 4b2de1b..0000000 --- a/core/metadataWorker.py +++ /dev/null @@ -1,60 +0,0 @@ -from PyQt6.QtCore import QThread, pyqtSignal -from core.metadataFetcher import get_metadata, get_metadata_by_date - -class MetadataFetchWorker(QThread): - finished = pyqtSignal(dict) - error = pyqtSignal(str) - - def __init__(self, username, media_type='all', batch_mode=False, batch_size=0, page=0, timeline_type='media', include_retweets=False, use_date_range=False, date_start=None, date_end=None): - super().__init__() - self.username = username - self.media_type = media_type - self.batch_mode = batch_mode - self.batch_size = batch_size - self.page = page - self.timeline_type = timeline_type - self.include_retweets = include_retweets - self.use_date_range = use_date_range - self.date_start = date_start - self.date_end = date_end - self.auth_token = None - - def normalize_url(self, url_or_username): - url_or_username = url_or_username.strip() - username = url_or_username - - if "x.com/" in url_or_username or "twitter.com/" in url_or_username: - parts = url_or_username.split('/') - for i, part in enumerate(parts): - if part in ['x.com', 'twitter.com'] and i + 1 < len(parts): - username = parts[i + 1] - username = username.split('/')[0] - break - - username = username.strip() - return username - - def run(self): - try: - normalized = self.normalize_url(self.username) - if self.use_date_range and self.date_start and self.date_end: - data = get_metadata_by_date( - username=normalized, - auth_token=self.auth_token, - date_start=self.date_start, - date_end=self.date_end, - media_filter="filter:media" if self.media_type == 'all' else f"filter:{self.media_type}" - ) - else: - data = get_metadata( - username=normalized, - auth_token=self.auth_token, - timeline_type=self.timeline_type, - batch_size=self.batch_size if self.batch_mode else 0, - page=self.page, - media_type=self.media_type, - retweets=self.include_retweets - ) - self.finished.emit(data) - except Exception as e: - self.error.emit(str(e)) \ No newline at end of file diff --git a/frontend/.gitignore b/frontend/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/frontend/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/frontend/components.json b/frontend/components.json new file mode 100644 index 0000000..2b0833f --- /dev/null +++ b/frontend/components.json @@ -0,0 +1,22 @@ +{ + "$schema": "https://ui.shadcn.com/schema.json", + "style": "new-york", + "rsc": false, + "tsx": true, + "tailwind": { + "config": "", + "css": "src/index.css", + "baseColor": "neutral", + "cssVariables": true, + "prefix": "" + }, + "iconLibrary": "lucide", + "aliases": { + "components": "@/components", + "utils": "@/lib/utils", + "ui": "@/components/ui", + "lib": "@/lib", + "hooks": "@/hooks" + }, + "registries": {} +} diff --git a/frontend/eslint.config.js b/frontend/eslint.config.js new file mode 100644 index 0000000..5e6b472 --- /dev/null +++ b/frontend/eslint.config.js @@ -0,0 +1,23 @@ +import js from '@eslint/js' +import globals from 'globals' +import reactHooks from 'eslint-plugin-react-hooks' +import reactRefresh from 'eslint-plugin-react-refresh' +import tseslint from 'typescript-eslint' +import { defineConfig, globalIgnores } from 'eslint/config' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + js.configs.recommended, + tseslint.configs.recommended, + reactHooks.configs.flat.recommended, + reactRefresh.configs.vite, + ], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + }, + }, +]) diff --git a/frontend/index.html b/frontend/index.html new file mode 100644 index 0000000..cdf1576 --- /dev/null +++ b/frontend/index.html @@ -0,0 +1,16 @@ + + + + + + + + + + Twitter/X Media Batch Downloader + + +
+ + + diff --git a/frontend/package.json b/frontend/package.json new file mode 100644 index 0000000..0c05088 --- /dev/null +++ b/frontend/package.json @@ -0,0 +1,54 @@ +{ + "name": "frontend", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc -b && vite build", + "lint": "eslint .", + "preview": "vite preview", + "generate-icon": "node scripts/generate-icon.js", + "postinstall": "node scripts/generate-icon.js" + }, + "dependencies": { + "@radix-ui/react-accordion": "^1.2.12", + "@radix-ui/react-checkbox": "^1.3.3", + "@radix-ui/react-context-menu": "^2.2.16", + "@radix-ui/react-dialog": "^1.1.15", + "@radix-ui/react-label": "^2.1.8", + "@radix-ui/react-progress": "^1.1.8", + "@radix-ui/react-radio-group": "^1.3.8", + "@radix-ui/react-select": "^2.2.6", + "@radix-ui/react-slot": "^1.2.4", + "@radix-ui/react-switch": "^1.1.4", + "@radix-ui/react-tabs": "^1.1.13", + "@radix-ui/react-tooltip": "^1.2.8", + "@tailwindcss/vite": "^4.1.17", + "class-variance-authority": "^0.7.1", + "clsx": "^2.1.1", + "lucide-react": "^0.554.0", + "next-themes": "^0.4.6", + "react": "^19.2.0", + "react-dom": "^19.2.0", + "sonner": "^2.0.7", + "tailwind-merge": "^3.4.0", + "tailwindcss": "^4.1.17" + }, + "devDependencies": { + "@eslint/js": "^9.39.1", + "@types/node": "^24.10.1", + "@types/react": "^19.2.6", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^5.1.1", + "eslint": "^9.39.1", + "eslint-plugin-react-hooks": "^7.0.1", + "eslint-plugin-react-refresh": "^0.4.24", + "globals": "^16.5.0", + "sharp": "^0.34.5", + "tw-animate-css": "^1.4.0", + "typescript": "~5.9.3", + "typescript-eslint": "^8.47.0", + "vite": "^7.2.4" + } +} diff --git a/frontend/package.json.md5 b/frontend/package.json.md5 new file mode 100644 index 0000000..c495aec --- /dev/null +++ b/frontend/package.json.md5 @@ -0,0 +1 @@ +6d6b26a2fed70996ef14dbc3e325f141 \ No newline at end of file diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml new file mode 100644 index 0000000..ddb419e --- /dev/null +++ b/frontend/pnpm-lock.yaml @@ -0,0 +1,3949 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + '@radix-ui/react-accordion': + specifier: ^1.2.12 + version: 1.2.12(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-checkbox': + specifier: ^1.3.3 + version: 1.3.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-context-menu': + specifier: ^2.2.16 + version: 2.2.16(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-dialog': + specifier: ^1.1.15 + version: 1.1.15(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-label': + specifier: ^2.1.8 + version: 2.1.8(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-progress': + specifier: ^1.1.8 + version: 1.1.8(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-radio-group': + specifier: ^1.3.8 + version: 1.3.8(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-select': + specifier: ^2.2.6 + version: 2.2.6(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-slot': + specifier: ^1.2.4 + version: 1.2.4(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-switch': + specifier: ^1.1.4 + version: 1.2.6(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-tabs': + specifier: ^1.1.13 + version: 1.1.13(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-tooltip': + specifier: ^1.2.8 + version: 1.2.8(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@tailwindcss/vite': + specifier: ^4.1.17 + version: 4.1.17(vite@7.2.4(@types/node@24.10.1)(jiti@2.6.1)(lightningcss@1.30.2)) + class-variance-authority: + specifier: ^0.7.1 + version: 0.7.1 + clsx: + specifier: ^2.1.1 + version: 2.1.1 + lucide-react: + specifier: ^0.554.0 + version: 0.554.0(react@19.2.0) + next-themes: + specifier: ^0.4.6 + version: 0.4.6(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + react: + specifier: ^19.2.0 + version: 19.2.0 + react-dom: + specifier: ^19.2.0 + version: 19.2.0(react@19.2.0) + sonner: + specifier: ^2.0.7 + version: 2.0.7(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + tailwind-merge: + specifier: ^3.4.0 + version: 3.4.0 + tailwindcss: + specifier: ^4.1.17 + version: 4.1.17 + devDependencies: + '@eslint/js': + specifier: ^9.39.1 + version: 9.39.1 + '@types/node': + specifier: ^24.10.1 + version: 24.10.1 + '@types/react': + specifier: ^19.2.6 + version: 19.2.6 + '@types/react-dom': + specifier: ^19.2.3 + version: 19.2.3(@types/react@19.2.6) + '@vitejs/plugin-react': + specifier: ^5.1.1 + version: 5.1.1(vite@7.2.4(@types/node@24.10.1)(jiti@2.6.1)(lightningcss@1.30.2)) + eslint: + specifier: ^9.39.1 + version: 9.39.1(jiti@2.6.1) + eslint-plugin-react-hooks: + specifier: ^7.0.1 + version: 7.0.1(eslint@9.39.1(jiti@2.6.1)) + eslint-plugin-react-refresh: + specifier: ^0.4.24 + version: 0.4.24(eslint@9.39.1(jiti@2.6.1)) + globals: + specifier: ^16.5.0 + version: 16.5.0 + sharp: + specifier: ^0.34.5 + version: 0.34.5 + tw-animate-css: + specifier: ^1.4.0 + version: 1.4.0 + typescript: + specifier: ~5.9.3 + version: 5.9.3 + typescript-eslint: + specifier: ^8.47.0 + version: 8.47.0(eslint@9.39.1(jiti@2.6.1))(typescript@5.9.3) + vite: + specifier: ^7.2.4 + version: 7.2.4(@types/node@24.10.1)(jiti@2.6.1)(lightningcss@1.30.2) + +packages: + + '@babel/code-frame@7.27.1': + resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==} + engines: {node: '>=6.9.0'} + + '@babel/compat-data@7.28.5': + resolution: {integrity: sha512-6uFXyCayocRbqhZOB+6XcuZbkMNimwfVGFji8CTZnCzOHVGvDqzvitu1re2AU5LROliz7eQPhB8CpAMvnx9EjA==} + engines: {node: '>=6.9.0'} + + '@babel/core@7.28.5': + resolution: {integrity: sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==} + engines: {node: '>=6.9.0'} + + '@babel/generator@7.28.5': + resolution: {integrity: sha512-3EwLFhZ38J4VyIP6WNtt2kUdW9dokXA9Cr4IVIFHuCpZ3H8/YFOl5JjZHisrn1fATPBmKKqXzDFvh9fUwHz6CQ==} + engines: {node: '>=6.9.0'} + + '@babel/helper-compilation-targets@7.27.2': + resolution: {integrity: sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==} + engines: {node: '>=6.9.0'} + + '@babel/helper-globals@7.28.0': + resolution: {integrity: sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-module-imports@7.27.1': + resolution: {integrity: sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==} + engines: {node: '>=6.9.0'} + + '@babel/helper-module-transforms@7.28.3': + resolution: {integrity: sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + + '@babel/helper-plugin-utils@7.27.1': + resolution: {integrity: sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-string-parser@7.27.1': + resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-identifier@7.28.5': + resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-option@7.27.1': + resolution: {integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==} + engines: {node: '>=6.9.0'} + + '@babel/helpers@7.28.4': + resolution: {integrity: sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==} + engines: {node: '>=6.9.0'} + + '@babel/parser@7.28.5': + resolution: {integrity: sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==} + engines: {node: '>=6.0.0'} + hasBin: true + + '@babel/plugin-transform-react-jsx-self@7.27.1': + resolution: {integrity: sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-transform-react-jsx-source@7.27.1': + resolution: {integrity: sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/template@7.27.2': + resolution: {integrity: sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==} + engines: {node: '>=6.9.0'} + + '@babel/traverse@7.28.5': + resolution: {integrity: sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ==} + engines: {node: '>=6.9.0'} + + '@babel/types@7.28.5': + resolution: {integrity: sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==} + engines: {node: '>=6.9.0'} + + '@emnapi/runtime@1.7.1': + resolution: {integrity: sha512-PVtJr5CmLwYAU9PZDMITZoR5iAOShYREoR45EyyLrbntV50mdePTgUn4AmOw90Ifcj+x2kRjdzr1HP3RrNiHGA==} + + '@esbuild/aix-ppc64@0.25.12': + resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.25.12': + resolution: {integrity: sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.25.12': + resolution: {integrity: sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.25.12': + resolution: {integrity: sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.25.12': + resolution: {integrity: sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.25.12': + resolution: {integrity: sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.25.12': + resolution: {integrity: sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.25.12': + resolution: {integrity: sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.25.12': + resolution: {integrity: sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.25.12': + resolution: {integrity: sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.25.12': + resolution: {integrity: sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.25.12': + resolution: {integrity: sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.25.12': + resolution: {integrity: sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.25.12': + resolution: {integrity: sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.25.12': + resolution: {integrity: sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.25.12': + resolution: {integrity: sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.25.12': + resolution: {integrity: sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.25.12': + resolution: {integrity: sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.25.12': + resolution: {integrity: sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.25.12': + resolution: {integrity: sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.25.12': + resolution: {integrity: sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openharmony-arm64@0.25.12': + resolution: {integrity: sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openharmony] + + '@esbuild/sunos-x64@0.25.12': + resolution: {integrity: sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.25.12': + resolution: {integrity: sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.25.12': + resolution: {integrity: sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.25.12': + resolution: {integrity: sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@eslint-community/eslint-utils@4.9.0': + resolution: {integrity: sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + + '@eslint-community/regexpp@4.12.2': + resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + + '@eslint/config-array@0.21.1': + resolution: {integrity: sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/config-helpers@0.4.2': + resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/core@0.17.0': + resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/eslintrc@3.3.1': + resolution: {integrity: sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/js@9.39.1': + resolution: {integrity: sha512-S26Stp4zCy88tH94QbBv3XCuzRQiZ9yXofEILmglYTh/Ug/a9/umqvgFtYBAo3Lp0nsI/5/qH1CCrbdK3AP1Tw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/object-schema@2.1.7': + resolution: {integrity: sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/plugin-kit@0.4.1': + resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@floating-ui/core@1.7.3': + resolution: {integrity: sha512-sGnvb5dmrJaKEZ+LDIpguvdX3bDlEllmv4/ClQ9awcmCZrlx5jQyyMWFM5kBI+EyNOCDDiKk8il0zeuX3Zlg/w==} + + '@floating-ui/dom@1.7.4': + resolution: {integrity: sha512-OOchDgh4F2CchOX94cRVqhvy7b3AFb+/rQXyswmzmGakRfkMgoWVjfnLWkRirfLEfuD4ysVW16eXzwt3jHIzKA==} + + '@floating-ui/react-dom@2.1.6': + resolution: {integrity: sha512-4JX6rEatQEvlmgU80wZyq9RT96HZJa88q8hp0pBd+LrczeDI4o6uA2M+uvxngVHo4Ihr8uibXxH6+70zhAFrVw==} + peerDependencies: + react: '>=16.8.0' + react-dom: '>=16.8.0' + + '@floating-ui/utils@0.2.10': + resolution: {integrity: sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==} + + '@humanfs/core@0.19.1': + resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==} + engines: {node: '>=18.18.0'} + + '@humanfs/node@0.16.7': + resolution: {integrity: sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==} + engines: {node: '>=18.18.0'} + + '@humanwhocodes/module-importer@1.0.1': + resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} + engines: {node: '>=12.22'} + + '@humanwhocodes/retry@0.4.3': + resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} + engines: {node: '>=18.18'} + + '@img/colour@1.0.0': + resolution: {integrity: sha512-A5P/LfWGFSl6nsckYtjw9da+19jB8hkJ6ACTGcDfEJ0aE+l2n2El7dsVM7UVHZQ9s2lmYMWlrS21YLy2IR1LUw==} + engines: {node: '>=18'} + + '@img/sharp-darwin-arm64@0.34.5': + resolution: {integrity: sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm64] + os: [darwin] + + '@img/sharp-darwin-x64@0.34.5': + resolution: {integrity: sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [x64] + os: [darwin] + + '@img/sharp-libvips-darwin-arm64@1.2.4': + resolution: {integrity: sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==} + cpu: [arm64] + os: [darwin] + + '@img/sharp-libvips-darwin-x64@1.2.4': + resolution: {integrity: sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==} + cpu: [x64] + os: [darwin] + + '@img/sharp-libvips-linux-arm64@1.2.4': + resolution: {integrity: sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==} + cpu: [arm64] + os: [linux] + + '@img/sharp-libvips-linux-arm@1.2.4': + resolution: {integrity: sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==} + cpu: [arm] + os: [linux] + + '@img/sharp-libvips-linux-ppc64@1.2.4': + resolution: {integrity: sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==} + cpu: [ppc64] + os: [linux] + + '@img/sharp-libvips-linux-riscv64@1.2.4': + resolution: {integrity: sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==} + cpu: [riscv64] + os: [linux] + + '@img/sharp-libvips-linux-s390x@1.2.4': + resolution: {integrity: sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==} + cpu: [s390x] + os: [linux] + + '@img/sharp-libvips-linux-x64@1.2.4': + resolution: {integrity: sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==} + cpu: [x64] + os: [linux] + + '@img/sharp-libvips-linuxmusl-arm64@1.2.4': + resolution: {integrity: sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==} + cpu: [arm64] + os: [linux] + + '@img/sharp-libvips-linuxmusl-x64@1.2.4': + resolution: {integrity: sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==} + cpu: [x64] + os: [linux] + + '@img/sharp-linux-arm64@0.34.5': + resolution: {integrity: sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm64] + os: [linux] + + '@img/sharp-linux-arm@0.34.5': + resolution: {integrity: sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm] + os: [linux] + + '@img/sharp-linux-ppc64@0.34.5': + resolution: {integrity: sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [ppc64] + os: [linux] + + '@img/sharp-linux-riscv64@0.34.5': + resolution: {integrity: sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [riscv64] + os: [linux] + + '@img/sharp-linux-s390x@0.34.5': + resolution: {integrity: sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [s390x] + os: [linux] + + '@img/sharp-linux-x64@0.34.5': + resolution: {integrity: sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [x64] + os: [linux] + + '@img/sharp-linuxmusl-arm64@0.34.5': + resolution: {integrity: sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm64] + os: [linux] + + '@img/sharp-linuxmusl-x64@0.34.5': + resolution: {integrity: sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [x64] + os: [linux] + + '@img/sharp-wasm32@0.34.5': + resolution: {integrity: sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [wasm32] + + '@img/sharp-win32-arm64@0.34.5': + resolution: {integrity: sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm64] + os: [win32] + + '@img/sharp-win32-ia32@0.34.5': + resolution: {integrity: sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [ia32] + os: [win32] + + '@img/sharp-win32-x64@0.34.5': + resolution: {integrity: sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [x64] + os: [win32] + + '@jridgewell/gen-mapping@0.3.13': + resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} + + '@jridgewell/remapping@2.3.5': + resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==} + + '@jridgewell/resolve-uri@3.1.2': + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + '@jridgewell/sourcemap-codec@1.5.5': + resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} + + '@jridgewell/trace-mapping@0.3.31': + resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} + + '@nodelib/fs.scandir@2.1.5': + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} + + '@nodelib/fs.stat@2.0.5': + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} + + '@nodelib/fs.walk@1.2.8': + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} + + '@radix-ui/number@1.1.1': + resolution: {integrity: sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g==} + + '@radix-ui/primitive@1.1.3': + resolution: {integrity: sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==} + + '@radix-ui/react-accordion@1.2.12': + resolution: {integrity: sha512-T4nygeh9YE9dLRPhAHSeOZi7HBXo+0kYIPJXayZfvWOWA0+n3dESrZbjfDPUABkUNym6Hd+f2IR113To8D2GPA==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-arrow@1.1.7': + resolution: {integrity: sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-checkbox@1.3.3': + resolution: {integrity: sha512-wBbpv+NQftHDdG86Qc0pIyXk5IR3tM8Vd0nWLKDcX8nNn4nXFOFwsKuqw2okA/1D/mpaAkmuyndrPJTYDNZtFw==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-collapsible@1.1.12': + resolution: {integrity: sha512-Uu+mSh4agx2ib1uIGPP4/CKNULyajb3p92LsVXmH2EHVMTfZWpll88XJ0j4W0z3f8NK1eYl1+Mf/szHPmcHzyA==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-collection@1.1.7': + resolution: {integrity: sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-compose-refs@1.1.2': + resolution: {integrity: sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-context-menu@2.2.16': + resolution: {integrity: sha512-O8morBEW+HsVG28gYDZPTrT9UUovQUlJue5YO836tiTJhuIWBm/zQHc7j388sHWtdH/xUZurK9olD2+pcqx5ww==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-context@1.1.2': + resolution: {integrity: sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-context@1.1.3': + resolution: {integrity: sha512-ieIFACdMpYfMEjF0rEf5KLvfVyIkOz6PDGyNnP+u+4xQ6jny3VCgA4OgXOwNx2aUkxn8zx9fiVcM8CfFYv9Lxw==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-dialog@1.1.15': + resolution: {integrity: sha512-TCglVRtzlffRNxRMEyR36DGBLJpeusFcgMVD9PZEzAKnUs1lKCgX5u9BmC2Yg+LL9MgZDugFFs1Vl+Jp4t/PGw==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-direction@1.1.1': + resolution: {integrity: sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-dismissable-layer@1.1.11': + resolution: {integrity: sha512-Nqcp+t5cTB8BinFkZgXiMJniQH0PsUt2k51FUhbdfeKvc4ACcG2uQniY/8+h1Yv6Kza4Q7lD7PQV0z0oicE0Mg==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-focus-guards@1.1.3': + resolution: {integrity: sha512-0rFg/Rj2Q62NCm62jZw0QX7a3sz6QCQU0LpZdNrJX8byRGaGVTqbrW9jAoIAHyMQqsNpeZ81YgSizOt5WXq0Pw==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-focus-scope@1.1.7': + resolution: {integrity: sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-id@1.1.1': + resolution: {integrity: sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-label@2.1.8': + resolution: {integrity: sha512-FmXs37I6hSBVDlO4y764TNz1rLgKwjJMQ0EGte6F3Cb3f4bIuHB/iLa/8I9VKkmOy+gNHq8rql3j686ACVV21A==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-menu@2.1.16': + resolution: {integrity: sha512-72F2T+PLlphrqLcAotYPp0uJMr5SjP5SL01wfEspJbru5Zs5vQaSHb4VB3ZMJPimgHHCHG7gMOeOB9H3Hdmtxg==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-popper@1.2.8': + resolution: {integrity: sha512-0NJQ4LFFUuWkE7Oxf0htBKS6zLkkjBH+hM1uk7Ng705ReR8m/uelduy1DBo0PyBXPKVnBA6YBlU94MBGXrSBCw==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-portal@1.1.9': + resolution: {integrity: sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-presence@1.1.5': + resolution: {integrity: sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-primitive@2.1.3': + resolution: {integrity: sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-primitive@2.1.4': + resolution: {integrity: sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-progress@1.1.8': + resolution: {integrity: sha512-+gISHcSPUJ7ktBy9RnTqbdKW78bcGke3t6taawyZ71pio1JewwGSJizycs7rLhGTvMJYCQB1DBK4KQsxs7U8dA==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-radio-group@1.3.8': + resolution: {integrity: sha512-VBKYIYImA5zsxACdisNQ3BjCBfmbGH3kQlnFVqlWU4tXwjy7cGX8ta80BcrO+WJXIn5iBylEH3K6ZTlee//lgQ==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-roving-focus@1.1.11': + resolution: {integrity: sha512-7A6S9jSgm/S+7MdtNDSb+IU859vQqJ/QAtcYQcfFC6W8RS4IxIZDldLR0xqCFZ6DCyrQLjLPsxtTNch5jVA4lA==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-select@2.2.6': + resolution: {integrity: sha512-I30RydO+bnn2PQztvo25tswPH+wFBjehVGtmagkU78yMdwTwVf12wnAOF+AeP8S2N8xD+5UPbGhkUfPyvT+mwQ==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-slot@1.2.3': + resolution: {integrity: sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-slot@1.2.4': + resolution: {integrity: sha512-Jl+bCv8HxKnlTLVrcDE8zTMJ09R9/ukw4qBs/oZClOfoQk/cOTbDn+NceXfV7j09YPVQUryJPHurafcSg6EVKA==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-switch@1.2.6': + resolution: {integrity: sha512-bByzr1+ep1zk4VubeEVViV592vu2lHE2BZY5OnzehZqOOgogN80+mNtCqPkhn2gklJqOpxWgPoYTSnhBCqpOXQ==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-tabs@1.1.13': + resolution: {integrity: sha512-7xdcatg7/U+7+Udyoj2zodtI9H/IIopqo+YOIcZOq1nJwXWBZ9p8xiu5llXlekDbZkca79a/fozEYQXIA4sW6A==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-tooltip@1.2.8': + resolution: {integrity: sha512-tY7sVt1yL9ozIxvmbtN5qtmH2krXcBCfjEiCgKGLqunJHvgvZG2Pcl2oQ3kbcZARb1BGEHdkLzcYGO8ynVlieg==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-use-callback-ref@1.1.1': + resolution: {integrity: sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-use-controllable-state@1.2.2': + resolution: {integrity: sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-use-effect-event@0.0.2': + resolution: {integrity: sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-use-escape-keydown@1.1.1': + resolution: {integrity: sha512-Il0+boE7w/XebUHyBjroE+DbByORGR9KKmITzbR7MyQ4akpORYP/ZmbhAr0DG7RmmBqoOnZdy2QlvajJ2QA59g==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-use-layout-effect@1.1.1': + resolution: {integrity: sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-use-previous@1.1.1': + resolution: {integrity: sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-use-rect@1.1.1': + resolution: {integrity: sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-use-size@1.1.1': + resolution: {integrity: sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-visually-hidden@1.2.3': + resolution: {integrity: sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/rect@1.1.1': + resolution: {integrity: sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==} + + '@rolldown/pluginutils@1.0.0-beta.47': + resolution: {integrity: sha512-8QagwMH3kNCuzD8EWL8R2YPW5e4OrHNSAHRFDdmFqEwEaD/KcNKjVoumo+gP2vW5eKB2UPbM6vTYiGZX0ixLnw==} + + '@rollup/rollup-android-arm-eabi@4.53.3': + resolution: {integrity: sha512-mRSi+4cBjrRLoaal2PnqH82Wqyb+d3HsPUN/W+WslCXsZsyHa9ZeQQX/pQsZaVIWDkPcpV6jJ+3KLbTbgnwv8w==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.53.3': + resolution: {integrity: sha512-CbDGaMpdE9sh7sCmTrTUyllhrg65t6SwhjlMJsLr+J8YjFuPmCEjbBSx4Z/e4SmDyH3aB5hGaJUP2ltV/vcs4w==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.53.3': + resolution: {integrity: sha512-Nr7SlQeqIBpOV6BHHGZgYBuSdanCXuw09hon14MGOLGmXAFYjx1wNvquVPmpZnl0tLjg25dEdr4IQ6GgyToCUA==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.53.3': + resolution: {integrity: sha512-DZ8N4CSNfl965CmPktJ8oBnfYr3F8dTTNBQkRlffnUarJ2ohudQD17sZBa097J8xhQ26AwhHJ5mvUyQW8ddTsQ==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-freebsd-arm64@4.53.3': + resolution: {integrity: sha512-yMTrCrK92aGyi7GuDNtGn2sNW+Gdb4vErx4t3Gv/Tr+1zRb8ax4z8GWVRfr3Jw8zJWvpGHNpss3vVlbF58DZ4w==} + cpu: [arm64] + os: [freebsd] + + '@rollup/rollup-freebsd-x64@4.53.3': + resolution: {integrity: sha512-lMfF8X7QhdQzseM6XaX0vbno2m3hlyZFhwcndRMw8fbAGUGL3WFMBdK0hbUBIUYcEcMhVLr1SIamDeuLBnXS+Q==} + cpu: [x64] + os: [freebsd] + + '@rollup/rollup-linux-arm-gnueabihf@4.53.3': + resolution: {integrity: sha512-k9oD15soC/Ln6d2Wv/JOFPzZXIAIFLp6B+i14KhxAfnq76ajt0EhYc5YPeX6W1xJkAdItcVT+JhKl1QZh44/qw==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm-musleabihf@4.53.3': + resolution: {integrity: sha512-vTNlKq+N6CK/8UktsrFuc+/7NlEYVxgaEgRXVUVK258Z5ymho29skzW1sutgYjqNnquGwVUObAaxae8rZ6YMhg==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm64-gnu@4.53.3': + resolution: {integrity: sha512-RGrFLWgMhSxRs/EWJMIFM1O5Mzuz3Xy3/mnxJp/5cVhZ2XoCAxJnmNsEyeMJtpK+wu0FJFWz+QF4mjCA7AUQ3w==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-arm64-musl@4.53.3': + resolution: {integrity: sha512-kASyvfBEWYPEwe0Qv4nfu6pNkITLTb32p4yTgzFCocHnJLAHs+9LjUu9ONIhvfT/5lv4YS5muBHyuV84epBo/A==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-loong64-gnu@4.53.3': + resolution: {integrity: sha512-JiuKcp2teLJwQ7vkJ95EwESWkNRFJD7TQgYmCnrPtlu50b4XvT5MOmurWNrCj3IFdyjBQ5p9vnrX4JM6I8OE7g==} + cpu: [loong64] + os: [linux] + + '@rollup/rollup-linux-ppc64-gnu@4.53.3': + resolution: {integrity: sha512-EoGSa8nd6d3T7zLuqdojxC20oBfNT8nexBbB/rkxgKj5T5vhpAQKKnD+h3UkoMuTyXkP5jTjK/ccNRmQrPNDuw==} + cpu: [ppc64] + os: [linux] + + '@rollup/rollup-linux-riscv64-gnu@4.53.3': + resolution: {integrity: sha512-4s+Wped2IHXHPnAEbIB0YWBv7SDohqxobiiPA1FIWZpX+w9o2i4LezzH/NkFUl8LRci/8udci6cLq+jJQlh+0g==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-riscv64-musl@4.53.3': + resolution: {integrity: sha512-68k2g7+0vs2u9CxDt5ktXTngsxOQkSEV/xBbwlqYcUrAVh6P9EgMZvFsnHy4SEiUl46Xf0IObWVbMvPrr2gw8A==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-s390x-gnu@4.53.3': + resolution: {integrity: sha512-VYsFMpULAz87ZW6BVYw3I6sWesGpsP9OPcyKe8ofdg9LHxSbRMd7zrVrr5xi/3kMZtpWL/wC+UIJWJYVX5uTKg==} + cpu: [s390x] + os: [linux] + + '@rollup/rollup-linux-x64-gnu@4.53.3': + resolution: {integrity: sha512-3EhFi1FU6YL8HTUJZ51imGJWEX//ajQPfqWLI3BQq4TlvHy4X0MOr5q3D2Zof/ka0d5FNdPwZXm3Yyib/UEd+w==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-linux-x64-musl@4.53.3': + resolution: {integrity: sha512-eoROhjcc6HbZCJr+tvVT8X4fW3/5g/WkGvvmwz/88sDtSJzO7r/blvoBDgISDiCjDRZmHpwud7h+6Q9JxFwq1Q==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-openharmony-arm64@4.53.3': + resolution: {integrity: sha512-OueLAWgrNSPGAdUdIjSWXw+u/02BRTcnfw9PN41D2vq/JSEPnJnVuBgw18VkN8wcd4fjUs+jFHVM4t9+kBSNLw==} + cpu: [arm64] + os: [openharmony] + + '@rollup/rollup-win32-arm64-msvc@4.53.3': + resolution: {integrity: sha512-GOFuKpsxR/whszbF/bzydebLiXIHSgsEUp6M0JI8dWvi+fFa1TD6YQa4aSZHtpmh2/uAlj/Dy+nmby3TJ3pkTw==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.53.3': + resolution: {integrity: sha512-iah+THLcBJdpfZ1TstDFbKNznlzoxa8fmnFYK4V67HvmuNYkVdAywJSoteUszvBQ9/HqN2+9AZghbajMsFT+oA==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-gnu@4.53.3': + resolution: {integrity: sha512-J9QDiOIZlZLdcot5NXEepDkstocktoVjkaKUtqzgzpt2yWjGlbYiKyp05rWwk4nypbYUNoFAztEgixoLaSETkg==} + cpu: [x64] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.53.3': + resolution: {integrity: sha512-UhTd8u31dXadv0MopwGgNOBpUVROFKWVQgAg5N1ESyCz8AuBcMqm4AuTjrwgQKGDfoFuz02EuMRHQIw/frmYKQ==} + cpu: [x64] + os: [win32] + + '@tailwindcss/node@4.1.17': + resolution: {integrity: sha512-csIkHIgLb3JisEFQ0vxr2Y57GUNYh447C8xzwj89U/8fdW8LhProdxvnVH6U8M2Y73QKiTIH+LWbK3V2BBZsAg==} + + '@tailwindcss/oxide-android-arm64@4.1.17': + resolution: {integrity: sha512-BMqpkJHgOZ5z78qqiGE6ZIRExyaHyuxjgrJ6eBO5+hfrfGkuya0lYfw8fRHG77gdTjWkNWEEm+qeG2cDMxArLQ==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [android] + + '@tailwindcss/oxide-darwin-arm64@4.1.17': + resolution: {integrity: sha512-EquyumkQweUBNk1zGEU/wfZo2qkp/nQKRZM8bUYO0J+Lums5+wl2CcG1f9BgAjn/u9pJzdYddHWBiFXJTcxmOg==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [darwin] + + '@tailwindcss/oxide-darwin-x64@4.1.17': + resolution: {integrity: sha512-gdhEPLzke2Pog8s12oADwYu0IAw04Y2tlmgVzIN0+046ytcgx8uZmCzEg4VcQh+AHKiS7xaL8kGo/QTiNEGRog==} + engines: {node: '>= 10'} + cpu: [x64] + os: [darwin] + + '@tailwindcss/oxide-freebsd-x64@4.1.17': + resolution: {integrity: sha512-hxGS81KskMxML9DXsaXT1H0DyA+ZBIbyG/sSAjWNe2EDl7TkPOBI42GBV3u38itzGUOmFfCzk1iAjDXds8Oh0g==} + engines: {node: '>= 10'} + cpu: [x64] + os: [freebsd] + + '@tailwindcss/oxide-linux-arm-gnueabihf@4.1.17': + resolution: {integrity: sha512-k7jWk5E3ldAdw0cNglhjSgv501u7yrMf8oeZ0cElhxU6Y2o7f8yqelOp3fhf7evjIS6ujTI3U8pKUXV2I4iXHQ==} + engines: {node: '>= 10'} + cpu: [arm] + os: [linux] + + '@tailwindcss/oxide-linux-arm64-gnu@4.1.17': + resolution: {integrity: sha512-HVDOm/mxK6+TbARwdW17WrgDYEGzmoYayrCgmLEw7FxTPLcp/glBisuyWkFz/jb7ZfiAXAXUACfyItn+nTgsdQ==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + + '@tailwindcss/oxide-linux-arm64-musl@4.1.17': + resolution: {integrity: sha512-HvZLfGr42i5anKtIeQzxdkw/wPqIbpeZqe7vd3V9vI3RQxe3xU1fLjss0TjyhxWcBaipk7NYwSrwTwK1hJARMg==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + + '@tailwindcss/oxide-linux-x64-gnu@4.1.17': + resolution: {integrity: sha512-M3XZuORCGB7VPOEDH+nzpJ21XPvK5PyjlkSFkFziNHGLc5d6g3di2McAAblmaSUNl8IOmzYwLx9NsE7bplNkwQ==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + + '@tailwindcss/oxide-linux-x64-musl@4.1.17': + resolution: {integrity: sha512-k7f+pf9eXLEey4pBlw+8dgfJHY4PZ5qOUFDyNf7SI6lHjQ9Zt7+NcscjpwdCEbYi6FI5c2KDTDWyf2iHcCSyyQ==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + + '@tailwindcss/oxide-wasm32-wasi@4.1.17': + resolution: {integrity: sha512-cEytGqSSoy7zK4JRWiTCx43FsKP/zGr0CsuMawhH67ONlH+T79VteQeJQRO/X7L0juEUA8ZyuYikcRBf0vsxhg==} + engines: {node: '>=14.0.0'} + cpu: [wasm32] + bundledDependencies: + - '@napi-rs/wasm-runtime' + - '@emnapi/core' + - '@emnapi/runtime' + - '@tybys/wasm-util' + - '@emnapi/wasi-threads' + - tslib + + '@tailwindcss/oxide-win32-arm64-msvc@4.1.17': + resolution: {integrity: sha512-JU5AHr7gKbZlOGvMdb4722/0aYbU+tN6lv1kONx0JK2cGsh7g148zVWLM0IKR3NeKLv+L90chBVYcJ8uJWbC9A==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [win32] + + '@tailwindcss/oxide-win32-x64-msvc@4.1.17': + resolution: {integrity: sha512-SKWM4waLuqx0IH+FMDUw6R66Hu4OuTALFgnleKbqhgGU30DY20NORZMZUKgLRjQXNN2TLzKvh48QXTig4h4bGw==} + engines: {node: '>= 10'} + cpu: [x64] + os: [win32] + + '@tailwindcss/oxide@4.1.17': + resolution: {integrity: sha512-F0F7d01fmkQhsTjXezGBLdrl1KresJTcI3DB8EkScCldyKp3Msz4hub4uyYaVnk88BAS1g5DQjjF6F5qczheLA==} + engines: {node: '>= 10'} + + '@tailwindcss/vite@4.1.17': + resolution: {integrity: sha512-4+9w8ZHOiGnpcGI6z1TVVfWaX/koK7fKeSYF3qlYg2xpBtbteP2ddBxiarL+HVgfSJGeK5RIxRQmKm4rTJJAwA==} + peerDependencies: + vite: ^5.2.0 || ^6 || ^7 + + '@types/babel__core@7.20.5': + resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} + + '@types/babel__generator@7.27.0': + resolution: {integrity: sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==} + + '@types/babel__template@7.4.4': + resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==} + + '@types/babel__traverse@7.28.0': + resolution: {integrity: sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==} + + '@types/estree@1.0.8': + resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==} + + '@types/json-schema@7.0.15': + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + + '@types/node@24.10.1': + resolution: {integrity: sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==} + + '@types/react-dom@19.2.3': + resolution: {integrity: sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==} + peerDependencies: + '@types/react': ^19.2.0 + + '@types/react@19.2.6': + resolution: {integrity: sha512-p/jUvulfgU7oKtj6Xpk8cA2Y1xKTtICGpJYeJXz2YVO2UcvjQgeRMLDGfDeqeRW2Ta+0QNFwcc8X3GH8SxZz6w==} + + '@typescript-eslint/eslint-plugin@8.47.0': + resolution: {integrity: sha512-fe0rz9WJQ5t2iaLfdbDc9T80GJy0AeO453q8C3YCilnGozvOyCG5t+EZtg7j7D88+c3FipfP/x+wzGnh1xp8ZA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + '@typescript-eslint/parser': ^8.47.0 + eslint: ^8.57.0 || ^9.0.0 + typescript: '>=4.8.4 <6.0.0' + + '@typescript-eslint/parser@8.47.0': + resolution: {integrity: sha512-lJi3PfxVmo0AkEY93ecfN+r8SofEqZNGByvHAI3GBLrvt1Cw6H5k1IM02nSzu0RfUafr2EvFSw0wAsZgubNplQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + typescript: '>=4.8.4 <6.0.0' + + '@typescript-eslint/project-service@8.47.0': + resolution: {integrity: sha512-2X4BX8hUeB5JcA1TQJ7GjcgulXQ+5UkNb0DL8gHsHUHdFoiCTJoYLTpib3LtSDPZsRET5ygN4qqIWrHyYIKERA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + typescript: '>=4.8.4 <6.0.0' + + '@typescript-eslint/scope-manager@8.47.0': + resolution: {integrity: sha512-a0TTJk4HXMkfpFkL9/WaGTNuv7JWfFTQFJd6zS9dVAjKsojmv9HT55xzbEpnZoY+VUb+YXLMp+ihMLz/UlZfDg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@typescript-eslint/tsconfig-utils@8.47.0': + resolution: {integrity: sha512-ybUAvjy4ZCL11uryalkKxuT3w3sXJAuWhOoGS3T/Wu+iUu1tGJmk5ytSY8gbdACNARmcYEB0COksD2j6hfGK2g==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + typescript: '>=4.8.4 <6.0.0' + + '@typescript-eslint/type-utils@8.47.0': + resolution: {integrity: sha512-QC9RiCmZ2HmIdCEvhd1aJELBlD93ErziOXXlHEZyuBo3tBiAZieya0HLIxp+DoDWlsQqDawyKuNEhORyku+P8A==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + typescript: '>=4.8.4 <6.0.0' + + '@typescript-eslint/types@8.47.0': + resolution: {integrity: sha512-nHAE6bMKsizhA2uuYZbEbmp5z2UpffNrPEqiKIeN7VsV6UY/roxanWfoRrf6x/k9+Obf+GQdkm0nPU+vnMXo9A==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@typescript-eslint/typescript-estree@8.47.0': + resolution: {integrity: sha512-k6ti9UepJf5NpzCjH31hQNLHQWupTRPhZ+KFF8WtTuTpy7uHPfeg2NM7cP27aCGajoEplxJDFVCEm9TGPYyiVg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + typescript: '>=4.8.4 <6.0.0' + + '@typescript-eslint/utils@8.47.0': + resolution: {integrity: sha512-g7XrNf25iL4TJOiPqatNuaChyqt49a/onq5YsJ9+hXeugK+41LVg7AxikMfM02PC6jbNtZLCJj6AUcQXJS/jGQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + typescript: '>=4.8.4 <6.0.0' + + '@typescript-eslint/visitor-keys@8.47.0': + resolution: {integrity: sha512-SIV3/6eftCy1bNzCQoPmbWsRLujS8t5iDIZ4spZOBHqrM+yfX2ogg8Tt3PDTAVKw3sSCiUgg30uOAvK2r9zGjQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@vitejs/plugin-react@5.1.1': + resolution: {integrity: sha512-WQfkSw0QbQ5aJ2CHYw23ZGkqnRwqKHD/KYsMeTkZzPT4Jcf0DcBxBtwMJxnu6E7oxw5+JC6ZAiePgh28uJ1HBA==} + engines: {node: ^20.19.0 || >=22.12.0} + peerDependencies: + vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 + + acorn-jsx@5.3.2: + resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} + peerDependencies: + acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 + + acorn@8.15.0: + resolution: {integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==} + engines: {node: '>=0.4.0'} + hasBin: true + + ajv@6.12.6: + resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} + + ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + + argparse@2.0.1: + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + + aria-hidden@1.2.6: + resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==} + engines: {node: '>=10'} + + balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + + baseline-browser-mapping@2.8.31: + resolution: {integrity: sha512-a28v2eWrrRWPpJSzxc+mKwm0ZtVx/G8SepdQZDArnXYU/XS+IF6mp8aB/4E+hH1tyGCoDo3KlUCdlSxGDsRkAw==} + hasBin: true + + brace-expansion@1.1.12: + resolution: {integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==} + + brace-expansion@2.0.2: + resolution: {integrity: sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + browserslist@4.28.0: + resolution: {integrity: sha512-tbydkR/CxfMwelN0vwdP/pLkDwyAASZ+VfWm4EOwlB6SWhx1sYnWLqo8N5j0rAzPfzfRaxt0mM/4wPU/Su84RQ==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + + callsites@3.1.0: + resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} + engines: {node: '>=6'} + + caniuse-lite@1.0.30001756: + resolution: {integrity: sha512-4HnCNKbMLkLdhJz3TToeVWHSnfJvPaq6vu/eRP0Ahub/07n484XHhBF5AJoSGHdVrS8tKFauUQz8Bp9P7LVx7A==} + + chalk@4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} + + class-variance-authority@0.7.1: + resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==} + + clsx@2.1.1: + resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} + engines: {node: '>=6'} + + color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + + color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + + concat-map@0.0.1: + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + + convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + + cross-spawn@7.0.6: + resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} + engines: {node: '>= 8'} + + csstype@3.2.3: + resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} + + debug@4.4.3: + resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + deep-is@0.1.4: + resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} + + detect-libc@2.1.2: + resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} + engines: {node: '>=8'} + + detect-node-es@1.1.0: + resolution: {integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==} + + electron-to-chromium@1.5.259: + resolution: {integrity: sha512-I+oLXgpEJzD6Cwuwt1gYjxsDmu/S/Kd41mmLA3O+/uH2pFRO/DvOjUyGozL8j3KeLV6WyZ7ssPwELMsXCcsJAQ==} + + enhanced-resolve@5.18.3: + resolution: {integrity: sha512-d4lC8xfavMeBjzGr2vECC3fsGXziXZQyJxD868h2M/mBI3PwAuODxAkLkq5HYuvrPYcUtiLzsTo8U3PgX3Ocww==} + engines: {node: '>=10.13.0'} + + esbuild@0.25.12: + resolution: {integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==} + engines: {node: '>=18'} + hasBin: true + + escalade@3.2.0: + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} + engines: {node: '>=6'} + + escape-string-regexp@4.0.0: + resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} + engines: {node: '>=10'} + + eslint-plugin-react-hooks@7.0.1: + resolution: {integrity: sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==} + engines: {node: '>=18'} + peerDependencies: + eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 + + eslint-plugin-react-refresh@0.4.24: + resolution: {integrity: sha512-nLHIW7TEq3aLrEYWpVaJ1dRgFR+wLDPN8e8FpYAql/bMV2oBEfC37K0gLEGgv9fy66juNShSMV8OkTqzltcG/w==} + peerDependencies: + eslint: '>=8.40' + + eslint-scope@8.4.0: + resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + eslint-visitor-keys@3.4.3: + resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + eslint-visitor-keys@4.2.1: + resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + eslint@9.39.1: + resolution: {integrity: sha512-BhHmn2yNOFA9H9JmmIVKJmd288g9hrVRDkdoIgRCRuSySRUHH7r/DI6aAXW9T1WwUuY3DFgrcaqB+deURBLR5g==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + hasBin: true + peerDependencies: + jiti: '*' + peerDependenciesMeta: + jiti: + optional: true + + espree@10.4.0: + resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + esquery@1.6.0: + resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==} + engines: {node: '>=0.10'} + + esrecurse@4.3.0: + resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} + engines: {node: '>=4.0'} + + estraverse@5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} + engines: {node: '>=4.0'} + + esutils@2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-glob@3.3.3: + resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==} + engines: {node: '>=8.6.0'} + + fast-json-stable-stringify@2.1.0: + resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} + + fast-levenshtein@2.0.6: + resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} + + fastq@1.19.1: + resolution: {integrity: sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==} + + fdir@6.5.0: + resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} + engines: {node: '>=12.0.0'} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + file-entry-cache@8.0.0: + resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==} + engines: {node: '>=16.0.0'} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + find-up@5.0.0: + resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} + engines: {node: '>=10'} + + flat-cache@4.0.1: + resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==} + engines: {node: '>=16'} + + flatted@3.3.3: + resolution: {integrity: sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==} + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + gensync@1.0.0-beta.2: + resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} + engines: {node: '>=6.9.0'} + + get-nonce@1.0.1: + resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==} + engines: {node: '>=6'} + + glob-parent@5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} + + glob-parent@6.0.2: + resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} + engines: {node: '>=10.13.0'} + + globals@14.0.0: + resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} + engines: {node: '>=18'} + + globals@16.5.0: + resolution: {integrity: sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==} + engines: {node: '>=18'} + + graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + + graphemer@1.4.0: + resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} + + has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + + hermes-estree@0.25.1: + resolution: {integrity: sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==} + + hermes-parser@0.25.1: + resolution: {integrity: sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==} + + ignore@5.3.2: + resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} + engines: {node: '>= 4'} + + ignore@7.0.5: + resolution: {integrity: sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==} + engines: {node: '>= 4'} + + import-fresh@3.3.1: + resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==} + engines: {node: '>=6'} + + imurmurhash@0.1.4: + resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} + engines: {node: '>=0.8.19'} + + is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} + engines: {node: '>=0.10.0'} + + is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + + jiti@2.6.1: + resolution: {integrity: sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==} + hasBin: true + + js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + + js-yaml@4.1.1: + resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==} + hasBin: true + + jsesc@3.1.0: + resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} + engines: {node: '>=6'} + hasBin: true + + json-buffer@3.0.1: + resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} + + json-schema-traverse@0.4.1: + resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} + + json-stable-stringify-without-jsonify@1.0.1: + resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} + + json5@2.2.3: + resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} + engines: {node: '>=6'} + hasBin: true + + keyv@4.5.4: + resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} + + levn@0.4.1: + resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} + engines: {node: '>= 0.8.0'} + + lightningcss-android-arm64@1.30.2: + resolution: {integrity: sha512-BH9sEdOCahSgmkVhBLeU7Hc9DWeZ1Eb6wNS6Da8igvUwAe0sqROHddIlvU06q3WyXVEOYDZ6ykBZQnjTbmo4+A==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [android] + + lightningcss-darwin-arm64@1.30.2: + resolution: {integrity: sha512-ylTcDJBN3Hp21TdhRT5zBOIi73P6/W0qwvlFEk22fkdXchtNTOU4Qc37SkzV+EKYxLouZ6M4LG9NfZ1qkhhBWA==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [darwin] + + lightningcss-darwin-x64@1.30.2: + resolution: {integrity: sha512-oBZgKchomuDYxr7ilwLcyms6BCyLn0z8J0+ZZmfpjwg9fRVZIR5/GMXd7r9RH94iDhld3UmSjBM6nXWM2TfZTQ==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [darwin] + + lightningcss-freebsd-x64@1.30.2: + resolution: {integrity: sha512-c2bH6xTrf4BDpK8MoGG4Bd6zAMZDAXS569UxCAGcA7IKbHNMlhGQ89eRmvpIUGfKWNVdbhSbkQaWhEoMGmGslA==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [freebsd] + + lightningcss-linux-arm-gnueabihf@1.30.2: + resolution: {integrity: sha512-eVdpxh4wYcm0PofJIZVuYuLiqBIakQ9uFZmipf6LF/HRj5Bgm0eb3qL/mr1smyXIS1twwOxNWndd8z0E374hiA==} + engines: {node: '>= 12.0.0'} + cpu: [arm] + os: [linux] + + lightningcss-linux-arm64-gnu@1.30.2: + resolution: {integrity: sha512-UK65WJAbwIJbiBFXpxrbTNArtfuznvxAJw4Q2ZGlU8kPeDIWEX1dg3rn2veBVUylA2Ezg89ktszWbaQnxD/e3A==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + + lightningcss-linux-arm64-musl@1.30.2: + resolution: {integrity: sha512-5Vh9dGeblpTxWHpOx8iauV02popZDsCYMPIgiuw97OJ5uaDsL86cnqSFs5LZkG3ghHoX5isLgWzMs+eD1YzrnA==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + + lightningcss-linux-x64-gnu@1.30.2: + resolution: {integrity: sha512-Cfd46gdmj1vQ+lR6VRTTadNHu6ALuw2pKR9lYq4FnhvgBc4zWY1EtZcAc6EffShbb1MFrIPfLDXD6Xprbnni4w==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + + lightningcss-linux-x64-musl@1.30.2: + resolution: {integrity: sha512-XJaLUUFXb6/QG2lGIW6aIk6jKdtjtcffUT0NKvIqhSBY3hh9Ch+1LCeH80dR9q9LBjG3ewbDjnumefsLsP6aiA==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + + lightningcss-win32-arm64-msvc@1.30.2: + resolution: {integrity: sha512-FZn+vaj7zLv//D/192WFFVA0RgHawIcHqLX9xuWiQt7P0PtdFEVaxgF9rjM/IRYHQXNnk61/H/gb2Ei+kUQ4xQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [win32] + + lightningcss-win32-x64-msvc@1.30.2: + resolution: {integrity: sha512-5g1yc73p+iAkid5phb4oVFMB45417DkRevRbt/El/gKXJk4jid+vPFF/AXbxn05Aky8PapwzZrdJShv5C0avjw==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [win32] + + lightningcss@1.30.2: + resolution: {integrity: sha512-utfs7Pr5uJyyvDETitgsaqSyjCb2qNRAtuqUeWIAKztsOYdcACf2KtARYXg2pSvhkt+9NfoaNY7fxjl6nuMjIQ==} + engines: {node: '>= 12.0.0'} + + locate-path@6.0.0: + resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} + engines: {node: '>=10'} + + lodash.merge@4.6.2: + resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} + + lru-cache@5.1.1: + resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} + + lucide-react@0.554.0: + resolution: {integrity: sha512-St+z29uthEJVx0Is7ellNkgTEhaeSoA42I7JjOCBCrc5X6LYMGSv0P/2uS5HDLTExP5tpiqRD2PyUEOS6s9UXA==} + peerDependencies: + react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0 + + magic-string@0.30.21: + resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + + merge2@1.4.1: + resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} + engines: {node: '>= 8'} + + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + + minimatch@3.1.2: + resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} + + minimatch@9.0.5: + resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} + engines: {node: '>=16 || 14 >=14.17'} + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + nanoid@3.3.11: + resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + natural-compare@1.4.0: + resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} + + next-themes@0.4.6: + resolution: {integrity: sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==} + peerDependencies: + react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc + react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc + + node-releases@2.0.27: + resolution: {integrity: sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==} + + optionator@0.9.4: + resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} + engines: {node: '>= 0.8.0'} + + p-limit@3.1.0: + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} + engines: {node: '>=10'} + + p-locate@5.0.0: + resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} + engines: {node: '>=10'} + + parent-module@1.0.1: + resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} + engines: {node: '>=6'} + + path-exists@4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} + + path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} + engines: {node: '>=8.6'} + + picomatch@4.0.3: + resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==} + engines: {node: '>=12'} + + postcss@8.5.6: + resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==} + engines: {node: ^10 || ^12 || >=14} + + prelude-ls@1.2.1: + resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} + engines: {node: '>= 0.8.0'} + + punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} + engines: {node: '>=6'} + + queue-microtask@1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + + react-dom@19.2.0: + resolution: {integrity: sha512-UlbRu4cAiGaIewkPyiRGJk0imDN2T3JjieT6spoL2UeSf5od4n5LB/mQ4ejmxhCFT1tYe8IvaFulzynWovsEFQ==} + peerDependencies: + react: ^19.2.0 + + react-refresh@0.18.0: + resolution: {integrity: sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==} + engines: {node: '>=0.10.0'} + + react-remove-scroll-bar@2.3.8: + resolution: {integrity: sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==} + engines: {node: '>=10'} + peerDependencies: + '@types/react': '*' + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + peerDependenciesMeta: + '@types/react': + optional: true + + react-remove-scroll@2.7.1: + resolution: {integrity: sha512-HpMh8+oahmIdOuS5aFKKY6Pyog+FNaZV/XyJOq7b4YFwsFHe5yYfdbIalI4k3vU2nSDql7YskmUseHsRrJqIPA==} + engines: {node: '>=10'} + peerDependencies: + '@types/react': '*' + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + react-style-singleton@2.2.3: + resolution: {integrity: sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==} + engines: {node: '>=10'} + peerDependencies: + '@types/react': '*' + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + react@19.2.0: + resolution: {integrity: sha512-tmbWg6W31tQLeB5cdIBOicJDJRR2KzXsV7uSK9iNfLWQ5bIZfxuPEHp7M8wiHyHnn0DD1i7w3Zmin0FtkrwoCQ==} + engines: {node: '>=0.10.0'} + + resolve-from@4.0.0: + resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} + engines: {node: '>=4'} + + reusify@1.1.0: + resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + + rollup@4.53.3: + resolution: {integrity: sha512-w8GmOxZfBmKknvdXU1sdM9NHcoQejwF/4mNgj2JuEEdRaHwwF12K7e9eXn1nLZ07ad+du76mkVsyeb2rKGllsA==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + run-parallel@1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + + scheduler@0.27.0: + resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==} + + semver@6.3.1: + resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} + hasBin: true + + semver@7.7.3: + resolution: {integrity: sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==} + engines: {node: '>=10'} + hasBin: true + + sharp@0.34.5: + resolution: {integrity: sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + + shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + + shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + + sonner@2.0.7: + resolution: {integrity: sha512-W6ZN4p58k8aDKA4XPcx2hpIQXBRAgyiWVkYhT7CvK6D3iAu7xjvVyhQHg2/iaKJZ1XVJ4r7XuwGL+WGEK37i9w==} + peerDependencies: + react: ^18.0.0 || ^19.0.0 || ^19.0.0-rc + react-dom: ^18.0.0 || ^19.0.0 || ^19.0.0-rc + + source-map-js@1.2.1: + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} + + strip-json-comments@3.1.1: + resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} + engines: {node: '>=8'} + + supports-color@7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + + tailwind-merge@3.4.0: + resolution: {integrity: sha512-uSaO4gnW+b3Y2aWoWfFpX62vn2sR3skfhbjsEnaBI81WD1wBLlHZe5sWf0AqjksNdYTbGBEd0UasQMT3SNV15g==} + + tailwindcss@4.1.17: + resolution: {integrity: sha512-j9Ee2YjuQqYT9bbRTfTZht9W/ytp5H+jJpZKiYdP/bpnXARAuELt9ofP0lPnmHjbga7SNQIxdTAXCmtKVYjN+Q==} + + tapable@2.3.0: + resolution: {integrity: sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==} + engines: {node: '>=6'} + + tinyglobby@0.2.15: + resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==} + engines: {node: '>=12.0.0'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + ts-api-utils@2.1.0: + resolution: {integrity: sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==} + engines: {node: '>=18.12'} + peerDependencies: + typescript: '>=4.8.4' + + tslib@2.8.1: + resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + + tw-animate-css@1.4.0: + resolution: {integrity: sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==} + + type-check@0.4.0: + resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} + engines: {node: '>= 0.8.0'} + + typescript-eslint@8.47.0: + resolution: {integrity: sha512-Lwe8i2XQ3WoMjua/r1PHrCTpkubPYJCAfOurtn+mtTzqB6jNd+14n9UN1bJ4s3F49x9ixAm0FLflB/JzQ57M8Q==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + typescript: '>=4.8.4 <6.0.0' + + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} + hasBin: true + + undici-types@7.16.0: + resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==} + + update-browserslist-db@1.1.4: + resolution: {integrity: sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A==} + hasBin: true + peerDependencies: + browserslist: '>= 4.21.0' + + uri-js@4.4.1: + resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} + + use-callback-ref@1.3.3: + resolution: {integrity: sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==} + engines: {node: '>=10'} + peerDependencies: + '@types/react': '*' + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + use-sidecar@1.1.3: + resolution: {integrity: sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==} + engines: {node: '>=10'} + peerDependencies: + '@types/react': '*' + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + vite@7.2.4: + resolution: {integrity: sha512-NL8jTlbo0Tn4dUEXEsUg8KeyG/Lkmc4Fnzb8JXN/Ykm9G4HNImjtABMJgkQoVjOBN/j2WAwDTRytdqJbZsah7w==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + '@types/node': ^20.19.0 || >=22.12.0 + jiti: '>=1.21.0' + less: ^4.0.0 + lightningcss: ^1.21.0 + sass: ^1.70.0 + sass-embedded: ^1.70.0 + stylus: '>=0.54.8' + sugarss: ^5.0.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + + which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + + word-wrap@1.2.5: + resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} + engines: {node: '>=0.10.0'} + + yallist@3.1.1: + resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} + + yocto-queue@0.1.0: + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} + engines: {node: '>=10'} + + zod-validation-error@4.0.2: + resolution: {integrity: sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==} + engines: {node: '>=18.0.0'} + peerDependencies: + zod: ^3.25.0 || ^4.0.0 + + zod@4.1.13: + resolution: {integrity: sha512-AvvthqfqrAhNH9dnfmrfKzX5upOdjUVJYFqNSlkmGf64gRaTzlPwz99IHYnVs28qYAybvAlBV+H7pn0saFY4Ig==} + +snapshots: + + '@babel/code-frame@7.27.1': + dependencies: + '@babel/helper-validator-identifier': 7.28.5 + js-tokens: 4.0.0 + picocolors: 1.1.1 + + '@babel/compat-data@7.28.5': {} + + '@babel/core@7.28.5': + dependencies: + '@babel/code-frame': 7.27.1 + '@babel/generator': 7.28.5 + '@babel/helper-compilation-targets': 7.27.2 + '@babel/helper-module-transforms': 7.28.3(@babel/core@7.28.5) + '@babel/helpers': 7.28.4 + '@babel/parser': 7.28.5 + '@babel/template': 7.27.2 + '@babel/traverse': 7.28.5 + '@babel/types': 7.28.5 + '@jridgewell/remapping': 2.3.5 + convert-source-map: 2.0.0 + debug: 4.4.3 + gensync: 1.0.0-beta.2 + json5: 2.2.3 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + + '@babel/generator@7.28.5': + dependencies: + '@babel/parser': 7.28.5 + '@babel/types': 7.28.5 + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + jsesc: 3.1.0 + + '@babel/helper-compilation-targets@7.27.2': + dependencies: + '@babel/compat-data': 7.28.5 + '@babel/helper-validator-option': 7.27.1 + browserslist: 4.28.0 + lru-cache: 5.1.1 + semver: 6.3.1 + + '@babel/helper-globals@7.28.0': {} + + '@babel/helper-module-imports@7.27.1': + dependencies: + '@babel/traverse': 7.28.5 + '@babel/types': 7.28.5 + transitivePeerDependencies: + - supports-color + + '@babel/helper-module-transforms@7.28.3(@babel/core@7.28.5)': + dependencies: + '@babel/core': 7.28.5 + '@babel/helper-module-imports': 7.27.1 + '@babel/helper-validator-identifier': 7.28.5 + '@babel/traverse': 7.28.5 + transitivePeerDependencies: + - supports-color + + '@babel/helper-plugin-utils@7.27.1': {} + + '@babel/helper-string-parser@7.27.1': {} + + '@babel/helper-validator-identifier@7.28.5': {} + + '@babel/helper-validator-option@7.27.1': {} + + '@babel/helpers@7.28.4': + dependencies: + '@babel/template': 7.27.2 + '@babel/types': 7.28.5 + + '@babel/parser@7.28.5': + dependencies: + '@babel/types': 7.28.5 + + '@babel/plugin-transform-react-jsx-self@7.27.1(@babel/core@7.28.5)': + dependencies: + '@babel/core': 7.28.5 + '@babel/helper-plugin-utils': 7.27.1 + + '@babel/plugin-transform-react-jsx-source@7.27.1(@babel/core@7.28.5)': + dependencies: + '@babel/core': 7.28.5 + '@babel/helper-plugin-utils': 7.27.1 + + '@babel/template@7.27.2': + dependencies: + '@babel/code-frame': 7.27.1 + '@babel/parser': 7.28.5 + '@babel/types': 7.28.5 + + '@babel/traverse@7.28.5': + dependencies: + '@babel/code-frame': 7.27.1 + '@babel/generator': 7.28.5 + '@babel/helper-globals': 7.28.0 + '@babel/parser': 7.28.5 + '@babel/template': 7.27.2 + '@babel/types': 7.28.5 + debug: 4.4.3 + transitivePeerDependencies: + - supports-color + + '@babel/types@7.28.5': + dependencies: + '@babel/helper-string-parser': 7.27.1 + '@babel/helper-validator-identifier': 7.28.5 + + '@emnapi/runtime@1.7.1': + dependencies: + tslib: 2.8.1 + optional: true + + '@esbuild/aix-ppc64@0.25.12': + optional: true + + '@esbuild/android-arm64@0.25.12': + optional: true + + '@esbuild/android-arm@0.25.12': + optional: true + + '@esbuild/android-x64@0.25.12': + optional: true + + '@esbuild/darwin-arm64@0.25.12': + optional: true + + '@esbuild/darwin-x64@0.25.12': + optional: true + + '@esbuild/freebsd-arm64@0.25.12': + optional: true + + '@esbuild/freebsd-x64@0.25.12': + optional: true + + '@esbuild/linux-arm64@0.25.12': + optional: true + + '@esbuild/linux-arm@0.25.12': + optional: true + + '@esbuild/linux-ia32@0.25.12': + optional: true + + '@esbuild/linux-loong64@0.25.12': + optional: true + + '@esbuild/linux-mips64el@0.25.12': + optional: true + + '@esbuild/linux-ppc64@0.25.12': + optional: true + + '@esbuild/linux-riscv64@0.25.12': + optional: true + + '@esbuild/linux-s390x@0.25.12': + optional: true + + '@esbuild/linux-x64@0.25.12': + optional: true + + '@esbuild/netbsd-arm64@0.25.12': + optional: true + + '@esbuild/netbsd-x64@0.25.12': + optional: true + + '@esbuild/openbsd-arm64@0.25.12': + optional: true + + '@esbuild/openbsd-x64@0.25.12': + optional: true + + '@esbuild/openharmony-arm64@0.25.12': + optional: true + + '@esbuild/sunos-x64@0.25.12': + optional: true + + '@esbuild/win32-arm64@0.25.12': + optional: true + + '@esbuild/win32-ia32@0.25.12': + optional: true + + '@esbuild/win32-x64@0.25.12': + optional: true + + '@eslint-community/eslint-utils@4.9.0(eslint@9.39.1(jiti@2.6.1))': + dependencies: + eslint: 9.39.1(jiti@2.6.1) + eslint-visitor-keys: 3.4.3 + + '@eslint-community/regexpp@4.12.2': {} + + '@eslint/config-array@0.21.1': + dependencies: + '@eslint/object-schema': 2.1.7 + debug: 4.4.3 + minimatch: 3.1.2 + transitivePeerDependencies: + - supports-color + + '@eslint/config-helpers@0.4.2': + dependencies: + '@eslint/core': 0.17.0 + + '@eslint/core@0.17.0': + dependencies: + '@types/json-schema': 7.0.15 + + '@eslint/eslintrc@3.3.1': + dependencies: + ajv: 6.12.6 + debug: 4.4.3 + espree: 10.4.0 + globals: 14.0.0 + ignore: 5.3.2 + import-fresh: 3.3.1 + js-yaml: 4.1.1 + minimatch: 3.1.2 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - supports-color + + '@eslint/js@9.39.1': {} + + '@eslint/object-schema@2.1.7': {} + + '@eslint/plugin-kit@0.4.1': + dependencies: + '@eslint/core': 0.17.0 + levn: 0.4.1 + + '@floating-ui/core@1.7.3': + dependencies: + '@floating-ui/utils': 0.2.10 + + '@floating-ui/dom@1.7.4': + dependencies: + '@floating-ui/core': 1.7.3 + '@floating-ui/utils': 0.2.10 + + '@floating-ui/react-dom@2.1.6(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@floating-ui/dom': 1.7.4 + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + + '@floating-ui/utils@0.2.10': {} + + '@humanfs/core@0.19.1': {} + + '@humanfs/node@0.16.7': + dependencies: + '@humanfs/core': 0.19.1 + '@humanwhocodes/retry': 0.4.3 + + '@humanwhocodes/module-importer@1.0.1': {} + + '@humanwhocodes/retry@0.4.3': {} + + '@img/colour@1.0.0': {} + + '@img/sharp-darwin-arm64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-darwin-arm64': 1.2.4 + optional: true + + '@img/sharp-darwin-x64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-darwin-x64': 1.2.4 + optional: true + + '@img/sharp-libvips-darwin-arm64@1.2.4': + optional: true + + '@img/sharp-libvips-darwin-x64@1.2.4': + optional: true + + '@img/sharp-libvips-linux-arm64@1.2.4': + optional: true + + '@img/sharp-libvips-linux-arm@1.2.4': + optional: true + + '@img/sharp-libvips-linux-ppc64@1.2.4': + optional: true + + '@img/sharp-libvips-linux-riscv64@1.2.4': + optional: true + + '@img/sharp-libvips-linux-s390x@1.2.4': + optional: true + + '@img/sharp-libvips-linux-x64@1.2.4': + optional: true + + '@img/sharp-libvips-linuxmusl-arm64@1.2.4': + optional: true + + '@img/sharp-libvips-linuxmusl-x64@1.2.4': + optional: true + + '@img/sharp-linux-arm64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-arm64': 1.2.4 + optional: true + + '@img/sharp-linux-arm@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-arm': 1.2.4 + optional: true + + '@img/sharp-linux-ppc64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-ppc64': 1.2.4 + optional: true + + '@img/sharp-linux-riscv64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-riscv64': 1.2.4 + optional: true + + '@img/sharp-linux-s390x@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-s390x': 1.2.4 + optional: true + + '@img/sharp-linux-x64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-x64': 1.2.4 + optional: true + + '@img/sharp-linuxmusl-arm64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linuxmusl-arm64': 1.2.4 + optional: true + + '@img/sharp-linuxmusl-x64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linuxmusl-x64': 1.2.4 + optional: true + + '@img/sharp-wasm32@0.34.5': + dependencies: + '@emnapi/runtime': 1.7.1 + optional: true + + '@img/sharp-win32-arm64@0.34.5': + optional: true + + '@img/sharp-win32-ia32@0.34.5': + optional: true + + '@img/sharp-win32-x64@0.34.5': + optional: true + + '@jridgewell/gen-mapping@0.3.13': + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/remapping@2.3.5': + dependencies: + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/resolve-uri@3.1.2': {} + + '@jridgewell/sourcemap-codec@1.5.5': {} + + '@jridgewell/trace-mapping@0.3.31': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.5.5 + + '@nodelib/fs.scandir@2.1.5': + dependencies: + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 + + '@nodelib/fs.stat@2.0.5': {} + + '@nodelib/fs.walk@1.2.8': + dependencies: + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.19.1 + + '@radix-ui/number@1.1.1': {} + + '@radix-ui/primitive@1.1.3': {} + + '@radix-ui/react-accordion@1.2.12(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/primitive': 1.1.3 + '@radix-ui/react-collapsible': 1.1.12(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-collection': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-context': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-direction': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-id': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-arrow@1.1.7(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-checkbox@1.3.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/primitive': 1.1.3 + '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-context': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-presence': 1.1.5(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-previous': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-size': 1.1.1(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-collapsible@1.1.12(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/primitive': 1.1.3 + '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-context': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-id': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-presence': 1.1.5(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-collection@1.1.7(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-context': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-slot': 1.2.3(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-compose-refs@1.1.2(@types/react@19.2.6)(react@19.2.0)': + dependencies: + react: 19.2.0 + optionalDependencies: + '@types/react': 19.2.6 + + '@radix-ui/react-context-menu@2.2.16(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/primitive': 1.1.3 + '@radix-ui/react-context': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-menu': 2.1.16(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-context@1.1.2(@types/react@19.2.6)(react@19.2.0)': + dependencies: + react: 19.2.0 + optionalDependencies: + '@types/react': 19.2.6 + + '@radix-ui/react-context@1.1.3(@types/react@19.2.6)(react@19.2.0)': + dependencies: + react: 19.2.0 + optionalDependencies: + '@types/react': 19.2.6 + + '@radix-ui/react-dialog@1.1.15(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/primitive': 1.1.3 + '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-context': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-dismissable-layer': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-focus-guards': 1.1.3(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-focus-scope': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-id': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-portal': 1.1.9(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-presence': 1.1.5(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-slot': 1.2.3(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.6)(react@19.2.0) + aria-hidden: 1.2.6 + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + react-remove-scroll: 2.7.1(@types/react@19.2.6)(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-direction@1.1.1(@types/react@19.2.6)(react@19.2.0)': + dependencies: + react: 19.2.0 + optionalDependencies: + '@types/react': 19.2.6 + + '@radix-ui/react-dismissable-layer@1.1.11(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/primitive': 1.1.3 + '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-escape-keydown': 1.1.1(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-focus-guards@1.1.3(@types/react@19.2.6)(react@19.2.0)': + dependencies: + react: 19.2.0 + optionalDependencies: + '@types/react': 19.2.6 + + '@radix-ui/react-focus-scope@1.1.7(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-id@1.1.1(@types/react@19.2.6)(react@19.2.0)': + dependencies: + '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + optionalDependencies: + '@types/react': 19.2.6 + + '@radix-ui/react-label@2.1.8(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/react-primitive': 2.1.4(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-menu@2.1.16(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/primitive': 1.1.3 + '@radix-ui/react-collection': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-context': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-direction': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-dismissable-layer': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-focus-guards': 1.1.3(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-focus-scope': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-id': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-popper': 1.2.8(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-portal': 1.1.9(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-presence': 1.1.5(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-roving-focus': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-slot': 1.2.3(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.6)(react@19.2.0) + aria-hidden: 1.2.6 + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + react-remove-scroll: 2.7.1(@types/react@19.2.6)(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-popper@1.2.8(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@floating-ui/react-dom': 2.1.6(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-arrow': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-context': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-rect': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-size': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/rect': 1.1.1 + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-portal@1.1.9(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-presence@1.1.5(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-primitive@2.1.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/react-slot': 1.2.3(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-primitive@2.1.4(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/react-slot': 1.2.4(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-progress@1.1.8(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/react-context': 1.1.3(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-primitive': 2.1.4(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-radio-group@1.3.8(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/primitive': 1.1.3 + '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-context': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-direction': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-presence': 1.1.5(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-roving-focus': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-previous': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-size': 1.1.1(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-roving-focus@1.1.11(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/primitive': 1.1.3 + '@radix-ui/react-collection': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-context': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-direction': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-id': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-select@2.2.6(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/number': 1.1.1 + '@radix-ui/primitive': 1.1.3 + '@radix-ui/react-collection': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-context': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-direction': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-dismissable-layer': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-focus-guards': 1.1.3(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-focus-scope': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-id': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-popper': 1.2.8(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-portal': 1.1.9(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-slot': 1.2.3(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-previous': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-visually-hidden': 1.2.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + aria-hidden: 1.2.6 + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + react-remove-scroll: 2.7.1(@types/react@19.2.6)(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-slot@1.2.3(@types/react@19.2.6)(react@19.2.0)': + dependencies: + '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + optionalDependencies: + '@types/react': 19.2.6 + + '@radix-ui/react-slot@1.2.4(@types/react@19.2.6)(react@19.2.0)': + dependencies: + '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + optionalDependencies: + '@types/react': 19.2.6 + + '@radix-ui/react-switch@1.2.6(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/primitive': 1.1.3 + '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-context': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-previous': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-size': 1.1.1(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-tabs@1.1.13(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/primitive': 1.1.3 + '@radix-ui/react-context': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-direction': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-id': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-presence': 1.1.5(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-roving-focus': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-tooltip@1.2.8(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/primitive': 1.1.3 + '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-context': 1.1.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-dismissable-layer': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-id': 1.1.1(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-popper': 1.2.8(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-portal': 1.1.9(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-presence': 1.1.5(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@radix-ui/react-slot': 1.2.3(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-visually-hidden': 1.2.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/react-use-callback-ref@1.1.1(@types/react@19.2.6)(react@19.2.0)': + dependencies: + react: 19.2.0 + optionalDependencies: + '@types/react': 19.2.6 + + '@radix-ui/react-use-controllable-state@1.2.2(@types/react@19.2.6)(react@19.2.0)': + dependencies: + '@radix-ui/react-use-effect-event': 0.0.2(@types/react@19.2.6)(react@19.2.0) + '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + optionalDependencies: + '@types/react': 19.2.6 + + '@radix-ui/react-use-effect-event@0.0.2(@types/react@19.2.6)(react@19.2.0)': + dependencies: + '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + optionalDependencies: + '@types/react': 19.2.6 + + '@radix-ui/react-use-escape-keydown@1.1.1(@types/react@19.2.6)(react@19.2.0)': + dependencies: + '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + optionalDependencies: + '@types/react': 19.2.6 + + '@radix-ui/react-use-layout-effect@1.1.1(@types/react@19.2.6)(react@19.2.0)': + dependencies: + react: 19.2.0 + optionalDependencies: + '@types/react': 19.2.6 + + '@radix-ui/react-use-previous@1.1.1(@types/react@19.2.6)(react@19.2.0)': + dependencies: + react: 19.2.0 + optionalDependencies: + '@types/react': 19.2.6 + + '@radix-ui/react-use-rect@1.1.1(@types/react@19.2.6)(react@19.2.0)': + dependencies: + '@radix-ui/rect': 1.1.1 + react: 19.2.0 + optionalDependencies: + '@types/react': 19.2.6 + + '@radix-ui/react-use-size@1.1.1(@types/react@19.2.6)(react@19.2.0)': + dependencies: + '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.6)(react@19.2.0) + react: 19.2.0 + optionalDependencies: + '@types/react': 19.2.6 + + '@radix-ui/react-visually-hidden@1.2.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.6))(@types/react@19.2.6)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + '@types/react-dom': 19.2.3(@types/react@19.2.6) + + '@radix-ui/rect@1.1.1': {} + + '@rolldown/pluginutils@1.0.0-beta.47': {} + + '@rollup/rollup-android-arm-eabi@4.53.3': + optional: true + + '@rollup/rollup-android-arm64@4.53.3': + optional: true + + '@rollup/rollup-darwin-arm64@4.53.3': + optional: true + + '@rollup/rollup-darwin-x64@4.53.3': + optional: true + + '@rollup/rollup-freebsd-arm64@4.53.3': + optional: true + + '@rollup/rollup-freebsd-x64@4.53.3': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.53.3': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.53.3': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.53.3': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.53.3': + optional: true + + '@rollup/rollup-linux-loong64-gnu@4.53.3': + optional: true + + '@rollup/rollup-linux-ppc64-gnu@4.53.3': + optional: true + + '@rollup/rollup-linux-riscv64-gnu@4.53.3': + optional: true + + '@rollup/rollup-linux-riscv64-musl@4.53.3': + optional: true + + '@rollup/rollup-linux-s390x-gnu@4.53.3': + optional: true + + '@rollup/rollup-linux-x64-gnu@4.53.3': + optional: true + + '@rollup/rollup-linux-x64-musl@4.53.3': + optional: true + + '@rollup/rollup-openharmony-arm64@4.53.3': + optional: true + + '@rollup/rollup-win32-arm64-msvc@4.53.3': + optional: true + + '@rollup/rollup-win32-ia32-msvc@4.53.3': + optional: true + + '@rollup/rollup-win32-x64-gnu@4.53.3': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.53.3': + optional: true + + '@tailwindcss/node@4.1.17': + dependencies: + '@jridgewell/remapping': 2.3.5 + enhanced-resolve: 5.18.3 + jiti: 2.6.1 + lightningcss: 1.30.2 + magic-string: 0.30.21 + source-map-js: 1.2.1 + tailwindcss: 4.1.17 + + '@tailwindcss/oxide-android-arm64@4.1.17': + optional: true + + '@tailwindcss/oxide-darwin-arm64@4.1.17': + optional: true + + '@tailwindcss/oxide-darwin-x64@4.1.17': + optional: true + + '@tailwindcss/oxide-freebsd-x64@4.1.17': + optional: true + + '@tailwindcss/oxide-linux-arm-gnueabihf@4.1.17': + optional: true + + '@tailwindcss/oxide-linux-arm64-gnu@4.1.17': + optional: true + + '@tailwindcss/oxide-linux-arm64-musl@4.1.17': + optional: true + + '@tailwindcss/oxide-linux-x64-gnu@4.1.17': + optional: true + + '@tailwindcss/oxide-linux-x64-musl@4.1.17': + optional: true + + '@tailwindcss/oxide-wasm32-wasi@4.1.17': + optional: true + + '@tailwindcss/oxide-win32-arm64-msvc@4.1.17': + optional: true + + '@tailwindcss/oxide-win32-x64-msvc@4.1.17': + optional: true + + '@tailwindcss/oxide@4.1.17': + optionalDependencies: + '@tailwindcss/oxide-android-arm64': 4.1.17 + '@tailwindcss/oxide-darwin-arm64': 4.1.17 + '@tailwindcss/oxide-darwin-x64': 4.1.17 + '@tailwindcss/oxide-freebsd-x64': 4.1.17 + '@tailwindcss/oxide-linux-arm-gnueabihf': 4.1.17 + '@tailwindcss/oxide-linux-arm64-gnu': 4.1.17 + '@tailwindcss/oxide-linux-arm64-musl': 4.1.17 + '@tailwindcss/oxide-linux-x64-gnu': 4.1.17 + '@tailwindcss/oxide-linux-x64-musl': 4.1.17 + '@tailwindcss/oxide-wasm32-wasi': 4.1.17 + '@tailwindcss/oxide-win32-arm64-msvc': 4.1.17 + '@tailwindcss/oxide-win32-x64-msvc': 4.1.17 + + '@tailwindcss/vite@4.1.17(vite@7.2.4(@types/node@24.10.1)(jiti@2.6.1)(lightningcss@1.30.2))': + dependencies: + '@tailwindcss/node': 4.1.17 + '@tailwindcss/oxide': 4.1.17 + tailwindcss: 4.1.17 + vite: 7.2.4(@types/node@24.10.1)(jiti@2.6.1)(lightningcss@1.30.2) + + '@types/babel__core@7.20.5': + dependencies: + '@babel/parser': 7.28.5 + '@babel/types': 7.28.5 + '@types/babel__generator': 7.27.0 + '@types/babel__template': 7.4.4 + '@types/babel__traverse': 7.28.0 + + '@types/babel__generator@7.27.0': + dependencies: + '@babel/types': 7.28.5 + + '@types/babel__template@7.4.4': + dependencies: + '@babel/parser': 7.28.5 + '@babel/types': 7.28.5 + + '@types/babel__traverse@7.28.0': + dependencies: + '@babel/types': 7.28.5 + + '@types/estree@1.0.8': {} + + '@types/json-schema@7.0.15': {} + + '@types/node@24.10.1': + dependencies: + undici-types: 7.16.0 + + '@types/react-dom@19.2.3(@types/react@19.2.6)': + dependencies: + '@types/react': 19.2.6 + + '@types/react@19.2.6': + dependencies: + csstype: 3.2.3 + + '@typescript-eslint/eslint-plugin@8.47.0(@typescript-eslint/parser@8.47.0(eslint@9.39.1(jiti@2.6.1))(typescript@5.9.3))(eslint@9.39.1(jiti@2.6.1))(typescript@5.9.3)': + dependencies: + '@eslint-community/regexpp': 4.12.2 + '@typescript-eslint/parser': 8.47.0(eslint@9.39.1(jiti@2.6.1))(typescript@5.9.3) + '@typescript-eslint/scope-manager': 8.47.0 + '@typescript-eslint/type-utils': 8.47.0(eslint@9.39.1(jiti@2.6.1))(typescript@5.9.3) + '@typescript-eslint/utils': 8.47.0(eslint@9.39.1(jiti@2.6.1))(typescript@5.9.3) + '@typescript-eslint/visitor-keys': 8.47.0 + eslint: 9.39.1(jiti@2.6.1) + graphemer: 1.4.0 + ignore: 7.0.5 + natural-compare: 1.4.0 + ts-api-utils: 2.1.0(typescript@5.9.3) + typescript: 5.9.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/parser@8.47.0(eslint@9.39.1(jiti@2.6.1))(typescript@5.9.3)': + dependencies: + '@typescript-eslint/scope-manager': 8.47.0 + '@typescript-eslint/types': 8.47.0 + '@typescript-eslint/typescript-estree': 8.47.0(typescript@5.9.3) + '@typescript-eslint/visitor-keys': 8.47.0 + debug: 4.4.3 + eslint: 9.39.1(jiti@2.6.1) + typescript: 5.9.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/project-service@8.47.0(typescript@5.9.3)': + dependencies: + '@typescript-eslint/tsconfig-utils': 8.47.0(typescript@5.9.3) + '@typescript-eslint/types': 8.47.0 + debug: 4.4.3 + typescript: 5.9.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/scope-manager@8.47.0': + dependencies: + '@typescript-eslint/types': 8.47.0 + '@typescript-eslint/visitor-keys': 8.47.0 + + '@typescript-eslint/tsconfig-utils@8.47.0(typescript@5.9.3)': + dependencies: + typescript: 5.9.3 + + '@typescript-eslint/type-utils@8.47.0(eslint@9.39.1(jiti@2.6.1))(typescript@5.9.3)': + dependencies: + '@typescript-eslint/types': 8.47.0 + '@typescript-eslint/typescript-estree': 8.47.0(typescript@5.9.3) + '@typescript-eslint/utils': 8.47.0(eslint@9.39.1(jiti@2.6.1))(typescript@5.9.3) + debug: 4.4.3 + eslint: 9.39.1(jiti@2.6.1) + ts-api-utils: 2.1.0(typescript@5.9.3) + typescript: 5.9.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/types@8.47.0': {} + + '@typescript-eslint/typescript-estree@8.47.0(typescript@5.9.3)': + dependencies: + '@typescript-eslint/project-service': 8.47.0(typescript@5.9.3) + '@typescript-eslint/tsconfig-utils': 8.47.0(typescript@5.9.3) + '@typescript-eslint/types': 8.47.0 + '@typescript-eslint/visitor-keys': 8.47.0 + debug: 4.4.3 + fast-glob: 3.3.3 + is-glob: 4.0.3 + minimatch: 9.0.5 + semver: 7.7.3 + ts-api-utils: 2.1.0(typescript@5.9.3) + typescript: 5.9.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/utils@8.47.0(eslint@9.39.1(jiti@2.6.1))(typescript@5.9.3)': + dependencies: + '@eslint-community/eslint-utils': 4.9.0(eslint@9.39.1(jiti@2.6.1)) + '@typescript-eslint/scope-manager': 8.47.0 + '@typescript-eslint/types': 8.47.0 + '@typescript-eslint/typescript-estree': 8.47.0(typescript@5.9.3) + eslint: 9.39.1(jiti@2.6.1) + typescript: 5.9.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/visitor-keys@8.47.0': + dependencies: + '@typescript-eslint/types': 8.47.0 + eslint-visitor-keys: 4.2.1 + + '@vitejs/plugin-react@5.1.1(vite@7.2.4(@types/node@24.10.1)(jiti@2.6.1)(lightningcss@1.30.2))': + dependencies: + '@babel/core': 7.28.5 + '@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/core@7.28.5) + '@babel/plugin-transform-react-jsx-source': 7.27.1(@babel/core@7.28.5) + '@rolldown/pluginutils': 1.0.0-beta.47 + '@types/babel__core': 7.20.5 + react-refresh: 0.18.0 + vite: 7.2.4(@types/node@24.10.1)(jiti@2.6.1)(lightningcss@1.30.2) + transitivePeerDependencies: + - supports-color + + acorn-jsx@5.3.2(acorn@8.15.0): + dependencies: + acorn: 8.15.0 + + acorn@8.15.0: {} + + ajv@6.12.6: + dependencies: + fast-deep-equal: 3.1.3 + fast-json-stable-stringify: 2.1.0 + json-schema-traverse: 0.4.1 + uri-js: 4.4.1 + + ansi-styles@4.3.0: + dependencies: + color-convert: 2.0.1 + + argparse@2.0.1: {} + + aria-hidden@1.2.6: + dependencies: + tslib: 2.8.1 + + balanced-match@1.0.2: {} + + baseline-browser-mapping@2.8.31: {} + + brace-expansion@1.1.12: + dependencies: + balanced-match: 1.0.2 + concat-map: 0.0.1 + + brace-expansion@2.0.2: + dependencies: + balanced-match: 1.0.2 + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + browserslist@4.28.0: + dependencies: + baseline-browser-mapping: 2.8.31 + caniuse-lite: 1.0.30001756 + electron-to-chromium: 1.5.259 + node-releases: 2.0.27 + update-browserslist-db: 1.1.4(browserslist@4.28.0) + + callsites@3.1.0: {} + + caniuse-lite@1.0.30001756: {} + + chalk@4.1.2: + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + + class-variance-authority@0.7.1: + dependencies: + clsx: 2.1.1 + + clsx@2.1.1: {} + + color-convert@2.0.1: + dependencies: + color-name: 1.1.4 + + color-name@1.1.4: {} + + concat-map@0.0.1: {} + + convert-source-map@2.0.0: {} + + cross-spawn@7.0.6: + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + + csstype@3.2.3: {} + + debug@4.4.3: + dependencies: + ms: 2.1.3 + + deep-is@0.1.4: {} + + detect-libc@2.1.2: {} + + detect-node-es@1.1.0: {} + + electron-to-chromium@1.5.259: {} + + enhanced-resolve@5.18.3: + dependencies: + graceful-fs: 4.2.11 + tapable: 2.3.0 + + esbuild@0.25.12: + optionalDependencies: + '@esbuild/aix-ppc64': 0.25.12 + '@esbuild/android-arm': 0.25.12 + '@esbuild/android-arm64': 0.25.12 + '@esbuild/android-x64': 0.25.12 + '@esbuild/darwin-arm64': 0.25.12 + '@esbuild/darwin-x64': 0.25.12 + '@esbuild/freebsd-arm64': 0.25.12 + '@esbuild/freebsd-x64': 0.25.12 + '@esbuild/linux-arm': 0.25.12 + '@esbuild/linux-arm64': 0.25.12 + '@esbuild/linux-ia32': 0.25.12 + '@esbuild/linux-loong64': 0.25.12 + '@esbuild/linux-mips64el': 0.25.12 + '@esbuild/linux-ppc64': 0.25.12 + '@esbuild/linux-riscv64': 0.25.12 + '@esbuild/linux-s390x': 0.25.12 + '@esbuild/linux-x64': 0.25.12 + '@esbuild/netbsd-arm64': 0.25.12 + '@esbuild/netbsd-x64': 0.25.12 + '@esbuild/openbsd-arm64': 0.25.12 + '@esbuild/openbsd-x64': 0.25.12 + '@esbuild/openharmony-arm64': 0.25.12 + '@esbuild/sunos-x64': 0.25.12 + '@esbuild/win32-arm64': 0.25.12 + '@esbuild/win32-ia32': 0.25.12 + '@esbuild/win32-x64': 0.25.12 + + escalade@3.2.0: {} + + escape-string-regexp@4.0.0: {} + + eslint-plugin-react-hooks@7.0.1(eslint@9.39.1(jiti@2.6.1)): + dependencies: + '@babel/core': 7.28.5 + '@babel/parser': 7.28.5 + eslint: 9.39.1(jiti@2.6.1) + hermes-parser: 0.25.1 + zod: 4.1.13 + zod-validation-error: 4.0.2(zod@4.1.13) + transitivePeerDependencies: + - supports-color + + eslint-plugin-react-refresh@0.4.24(eslint@9.39.1(jiti@2.6.1)): + dependencies: + eslint: 9.39.1(jiti@2.6.1) + + eslint-scope@8.4.0: + dependencies: + esrecurse: 4.3.0 + estraverse: 5.3.0 + + eslint-visitor-keys@3.4.3: {} + + eslint-visitor-keys@4.2.1: {} + + eslint@9.39.1(jiti@2.6.1): + dependencies: + '@eslint-community/eslint-utils': 4.9.0(eslint@9.39.1(jiti@2.6.1)) + '@eslint-community/regexpp': 4.12.2 + '@eslint/config-array': 0.21.1 + '@eslint/config-helpers': 0.4.2 + '@eslint/core': 0.17.0 + '@eslint/eslintrc': 3.3.1 + '@eslint/js': 9.39.1 + '@eslint/plugin-kit': 0.4.1 + '@humanfs/node': 0.16.7 + '@humanwhocodes/module-importer': 1.0.1 + '@humanwhocodes/retry': 0.4.3 + '@types/estree': 1.0.8 + ajv: 6.12.6 + chalk: 4.1.2 + cross-spawn: 7.0.6 + debug: 4.4.3 + escape-string-regexp: 4.0.0 + eslint-scope: 8.4.0 + eslint-visitor-keys: 4.2.1 + espree: 10.4.0 + esquery: 1.6.0 + esutils: 2.0.3 + fast-deep-equal: 3.1.3 + file-entry-cache: 8.0.0 + find-up: 5.0.0 + glob-parent: 6.0.2 + ignore: 5.3.2 + imurmurhash: 0.1.4 + is-glob: 4.0.3 + json-stable-stringify-without-jsonify: 1.0.1 + lodash.merge: 4.6.2 + minimatch: 3.1.2 + natural-compare: 1.4.0 + optionator: 0.9.4 + optionalDependencies: + jiti: 2.6.1 + transitivePeerDependencies: + - supports-color + + espree@10.4.0: + dependencies: + acorn: 8.15.0 + acorn-jsx: 5.3.2(acorn@8.15.0) + eslint-visitor-keys: 4.2.1 + + esquery@1.6.0: + dependencies: + estraverse: 5.3.0 + + esrecurse@4.3.0: + dependencies: + estraverse: 5.3.0 + + estraverse@5.3.0: {} + + esutils@2.0.3: {} + + fast-deep-equal@3.1.3: {} + + fast-glob@3.3.3: + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.8 + + fast-json-stable-stringify@2.1.0: {} + + fast-levenshtein@2.0.6: {} + + fastq@1.19.1: + dependencies: + reusify: 1.1.0 + + fdir@6.5.0(picomatch@4.0.3): + optionalDependencies: + picomatch: 4.0.3 + + file-entry-cache@8.0.0: + dependencies: + flat-cache: 4.0.1 + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + find-up@5.0.0: + dependencies: + locate-path: 6.0.0 + path-exists: 4.0.0 + + flat-cache@4.0.1: + dependencies: + flatted: 3.3.3 + keyv: 4.5.4 + + flatted@3.3.3: {} + + fsevents@2.3.3: + optional: true + + gensync@1.0.0-beta.2: {} + + get-nonce@1.0.1: {} + + glob-parent@5.1.2: + dependencies: + is-glob: 4.0.3 + + glob-parent@6.0.2: + dependencies: + is-glob: 4.0.3 + + globals@14.0.0: {} + + globals@16.5.0: {} + + graceful-fs@4.2.11: {} + + graphemer@1.4.0: {} + + has-flag@4.0.0: {} + + hermes-estree@0.25.1: {} + + hermes-parser@0.25.1: + dependencies: + hermes-estree: 0.25.1 + + ignore@5.3.2: {} + + ignore@7.0.5: {} + + import-fresh@3.3.1: + dependencies: + parent-module: 1.0.1 + resolve-from: 4.0.0 + + imurmurhash@0.1.4: {} + + is-extglob@2.1.1: {} + + is-glob@4.0.3: + dependencies: + is-extglob: 2.1.1 + + is-number@7.0.0: {} + + isexe@2.0.0: {} + + jiti@2.6.1: {} + + js-tokens@4.0.0: {} + + js-yaml@4.1.1: + dependencies: + argparse: 2.0.1 + + jsesc@3.1.0: {} + + json-buffer@3.0.1: {} + + json-schema-traverse@0.4.1: {} + + json-stable-stringify-without-jsonify@1.0.1: {} + + json5@2.2.3: {} + + keyv@4.5.4: + dependencies: + json-buffer: 3.0.1 + + levn@0.4.1: + dependencies: + prelude-ls: 1.2.1 + type-check: 0.4.0 + + lightningcss-android-arm64@1.30.2: + optional: true + + lightningcss-darwin-arm64@1.30.2: + optional: true + + lightningcss-darwin-x64@1.30.2: + optional: true + + lightningcss-freebsd-x64@1.30.2: + optional: true + + lightningcss-linux-arm-gnueabihf@1.30.2: + optional: true + + lightningcss-linux-arm64-gnu@1.30.2: + optional: true + + lightningcss-linux-arm64-musl@1.30.2: + optional: true + + lightningcss-linux-x64-gnu@1.30.2: + optional: true + + lightningcss-linux-x64-musl@1.30.2: + optional: true + + lightningcss-win32-arm64-msvc@1.30.2: + optional: true + + lightningcss-win32-x64-msvc@1.30.2: + optional: true + + lightningcss@1.30.2: + dependencies: + detect-libc: 2.1.2 + optionalDependencies: + lightningcss-android-arm64: 1.30.2 + lightningcss-darwin-arm64: 1.30.2 + lightningcss-darwin-x64: 1.30.2 + lightningcss-freebsd-x64: 1.30.2 + lightningcss-linux-arm-gnueabihf: 1.30.2 + lightningcss-linux-arm64-gnu: 1.30.2 + lightningcss-linux-arm64-musl: 1.30.2 + lightningcss-linux-x64-gnu: 1.30.2 + lightningcss-linux-x64-musl: 1.30.2 + lightningcss-win32-arm64-msvc: 1.30.2 + lightningcss-win32-x64-msvc: 1.30.2 + + locate-path@6.0.0: + dependencies: + p-locate: 5.0.0 + + lodash.merge@4.6.2: {} + + lru-cache@5.1.1: + dependencies: + yallist: 3.1.1 + + lucide-react@0.554.0(react@19.2.0): + dependencies: + react: 19.2.0 + + magic-string@0.30.21: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + + merge2@1.4.1: {} + + micromatch@4.0.8: + dependencies: + braces: 3.0.3 + picomatch: 2.3.1 + + minimatch@3.1.2: + dependencies: + brace-expansion: 1.1.12 + + minimatch@9.0.5: + dependencies: + brace-expansion: 2.0.2 + + ms@2.1.3: {} + + nanoid@3.3.11: {} + + natural-compare@1.4.0: {} + + next-themes@0.4.6(react-dom@19.2.0(react@19.2.0))(react@19.2.0): + dependencies: + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + + node-releases@2.0.27: {} + + optionator@0.9.4: + dependencies: + deep-is: 0.1.4 + fast-levenshtein: 2.0.6 + levn: 0.4.1 + prelude-ls: 1.2.1 + type-check: 0.4.0 + word-wrap: 1.2.5 + + p-limit@3.1.0: + dependencies: + yocto-queue: 0.1.0 + + p-locate@5.0.0: + dependencies: + p-limit: 3.1.0 + + parent-module@1.0.1: + dependencies: + callsites: 3.1.0 + + path-exists@4.0.0: {} + + path-key@3.1.1: {} + + picocolors@1.1.1: {} + + picomatch@2.3.1: {} + + picomatch@4.0.3: {} + + postcss@8.5.6: + dependencies: + nanoid: 3.3.11 + picocolors: 1.1.1 + source-map-js: 1.2.1 + + prelude-ls@1.2.1: {} + + punycode@2.3.1: {} + + queue-microtask@1.2.3: {} + + react-dom@19.2.0(react@19.2.0): + dependencies: + react: 19.2.0 + scheduler: 0.27.0 + + react-refresh@0.18.0: {} + + react-remove-scroll-bar@2.3.8(@types/react@19.2.6)(react@19.2.0): + dependencies: + react: 19.2.0 + react-style-singleton: 2.2.3(@types/react@19.2.6)(react@19.2.0) + tslib: 2.8.1 + optionalDependencies: + '@types/react': 19.2.6 + + react-remove-scroll@2.7.1(@types/react@19.2.6)(react@19.2.0): + dependencies: + react: 19.2.0 + react-remove-scroll-bar: 2.3.8(@types/react@19.2.6)(react@19.2.0) + react-style-singleton: 2.2.3(@types/react@19.2.6)(react@19.2.0) + tslib: 2.8.1 + use-callback-ref: 1.3.3(@types/react@19.2.6)(react@19.2.0) + use-sidecar: 1.1.3(@types/react@19.2.6)(react@19.2.0) + optionalDependencies: + '@types/react': 19.2.6 + + react-style-singleton@2.2.3(@types/react@19.2.6)(react@19.2.0): + dependencies: + get-nonce: 1.0.1 + react: 19.2.0 + tslib: 2.8.1 + optionalDependencies: + '@types/react': 19.2.6 + + react@19.2.0: {} + + resolve-from@4.0.0: {} + + reusify@1.1.0: {} + + rollup@4.53.3: + dependencies: + '@types/estree': 1.0.8 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.53.3 + '@rollup/rollup-android-arm64': 4.53.3 + '@rollup/rollup-darwin-arm64': 4.53.3 + '@rollup/rollup-darwin-x64': 4.53.3 + '@rollup/rollup-freebsd-arm64': 4.53.3 + '@rollup/rollup-freebsd-x64': 4.53.3 + '@rollup/rollup-linux-arm-gnueabihf': 4.53.3 + '@rollup/rollup-linux-arm-musleabihf': 4.53.3 + '@rollup/rollup-linux-arm64-gnu': 4.53.3 + '@rollup/rollup-linux-arm64-musl': 4.53.3 + '@rollup/rollup-linux-loong64-gnu': 4.53.3 + '@rollup/rollup-linux-ppc64-gnu': 4.53.3 + '@rollup/rollup-linux-riscv64-gnu': 4.53.3 + '@rollup/rollup-linux-riscv64-musl': 4.53.3 + '@rollup/rollup-linux-s390x-gnu': 4.53.3 + '@rollup/rollup-linux-x64-gnu': 4.53.3 + '@rollup/rollup-linux-x64-musl': 4.53.3 + '@rollup/rollup-openharmony-arm64': 4.53.3 + '@rollup/rollup-win32-arm64-msvc': 4.53.3 + '@rollup/rollup-win32-ia32-msvc': 4.53.3 + '@rollup/rollup-win32-x64-gnu': 4.53.3 + '@rollup/rollup-win32-x64-msvc': 4.53.3 + fsevents: 2.3.3 + + run-parallel@1.2.0: + dependencies: + queue-microtask: 1.2.3 + + scheduler@0.27.0: {} + + semver@6.3.1: {} + + semver@7.7.3: {} + + sharp@0.34.5: + dependencies: + '@img/colour': 1.0.0 + detect-libc: 2.1.2 + semver: 7.7.3 + optionalDependencies: + '@img/sharp-darwin-arm64': 0.34.5 + '@img/sharp-darwin-x64': 0.34.5 + '@img/sharp-libvips-darwin-arm64': 1.2.4 + '@img/sharp-libvips-darwin-x64': 1.2.4 + '@img/sharp-libvips-linux-arm': 1.2.4 + '@img/sharp-libvips-linux-arm64': 1.2.4 + '@img/sharp-libvips-linux-ppc64': 1.2.4 + '@img/sharp-libvips-linux-riscv64': 1.2.4 + '@img/sharp-libvips-linux-s390x': 1.2.4 + '@img/sharp-libvips-linux-x64': 1.2.4 + '@img/sharp-libvips-linuxmusl-arm64': 1.2.4 + '@img/sharp-libvips-linuxmusl-x64': 1.2.4 + '@img/sharp-linux-arm': 0.34.5 + '@img/sharp-linux-arm64': 0.34.5 + '@img/sharp-linux-ppc64': 0.34.5 + '@img/sharp-linux-riscv64': 0.34.5 + '@img/sharp-linux-s390x': 0.34.5 + '@img/sharp-linux-x64': 0.34.5 + '@img/sharp-linuxmusl-arm64': 0.34.5 + '@img/sharp-linuxmusl-x64': 0.34.5 + '@img/sharp-wasm32': 0.34.5 + '@img/sharp-win32-arm64': 0.34.5 + '@img/sharp-win32-ia32': 0.34.5 + '@img/sharp-win32-x64': 0.34.5 + + shebang-command@2.0.0: + dependencies: + shebang-regex: 3.0.0 + + shebang-regex@3.0.0: {} + + sonner@2.0.7(react-dom@19.2.0(react@19.2.0))(react@19.2.0): + dependencies: + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) + + source-map-js@1.2.1: {} + + strip-json-comments@3.1.1: {} + + supports-color@7.2.0: + dependencies: + has-flag: 4.0.0 + + tailwind-merge@3.4.0: {} + + tailwindcss@4.1.17: {} + + tapable@2.3.0: {} + + tinyglobby@0.2.15: + dependencies: + fdir: 6.5.0(picomatch@4.0.3) + picomatch: 4.0.3 + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + ts-api-utils@2.1.0(typescript@5.9.3): + dependencies: + typescript: 5.9.3 + + tslib@2.8.1: {} + + tw-animate-css@1.4.0: {} + + type-check@0.4.0: + dependencies: + prelude-ls: 1.2.1 + + typescript-eslint@8.47.0(eslint@9.39.1(jiti@2.6.1))(typescript@5.9.3): + dependencies: + '@typescript-eslint/eslint-plugin': 8.47.0(@typescript-eslint/parser@8.47.0(eslint@9.39.1(jiti@2.6.1))(typescript@5.9.3))(eslint@9.39.1(jiti@2.6.1))(typescript@5.9.3) + '@typescript-eslint/parser': 8.47.0(eslint@9.39.1(jiti@2.6.1))(typescript@5.9.3) + '@typescript-eslint/typescript-estree': 8.47.0(typescript@5.9.3) + '@typescript-eslint/utils': 8.47.0(eslint@9.39.1(jiti@2.6.1))(typescript@5.9.3) + eslint: 9.39.1(jiti@2.6.1) + typescript: 5.9.3 + transitivePeerDependencies: + - supports-color + + typescript@5.9.3: {} + + undici-types@7.16.0: {} + + update-browserslist-db@1.1.4(browserslist@4.28.0): + dependencies: + browserslist: 4.28.0 + escalade: 3.2.0 + picocolors: 1.1.1 + + uri-js@4.4.1: + dependencies: + punycode: 2.3.1 + + use-callback-ref@1.3.3(@types/react@19.2.6)(react@19.2.0): + dependencies: + react: 19.2.0 + tslib: 2.8.1 + optionalDependencies: + '@types/react': 19.2.6 + + use-sidecar@1.1.3(@types/react@19.2.6)(react@19.2.0): + dependencies: + detect-node-es: 1.1.0 + react: 19.2.0 + tslib: 2.8.1 + optionalDependencies: + '@types/react': 19.2.6 + + vite@7.2.4(@types/node@24.10.1)(jiti@2.6.1)(lightningcss@1.30.2): + dependencies: + esbuild: 0.25.12 + fdir: 6.5.0(picomatch@4.0.3) + picomatch: 4.0.3 + postcss: 8.5.6 + rollup: 4.53.3 + tinyglobby: 0.2.15 + optionalDependencies: + '@types/node': 24.10.1 + fsevents: 2.3.3 + jiti: 2.6.1 + lightningcss: 1.30.2 + + which@2.0.2: + dependencies: + isexe: 2.0.0 + + word-wrap@1.2.5: {} + + yallist@3.1.1: {} + + yocto-queue@0.1.0: {} + + zod-validation-error@4.0.2(zod@4.1.13): + dependencies: + zod: 4.1.13 + + zod@4.1.13: {} diff --git a/ui/icons/icon.svg b/frontend/public/icon.svg similarity index 100% rename from ui/icons/icon.svg rename to frontend/public/icon.svg diff --git a/frontend/scripts/generate-icon.js b/frontend/scripts/generate-icon.js new file mode 100644 index 0000000..b975dd8 --- /dev/null +++ b/frontend/scripts/generate-icon.js @@ -0,0 +1,33 @@ +import sharp from 'sharp'; +import { readFileSync, mkdirSync } from 'fs'; +import { dirname, join } from 'path'; +import { fileURLToPath } from 'url'; + +const __dirname = dirname(fileURLToPath(import.meta.url)); +const rootDir = join(__dirname, '..', '..'); + +const svgPath = join(rootDir, 'frontend', 'public', 'icon.svg'); +const outputPath = join(rootDir, 'build', 'appicon.png'); + +async function generateIcon() { + try { + // Ensure build directory exists + mkdirSync(join(rootDir, 'build'), { recursive: true }); + + // Read SVG + const svgBuffer = readFileSync(svgPath); + + // Convert SVG to PNG (1024x1024 for Wails) + await sharp(svgBuffer) + .resize(1024, 1024) + .png() + .toFile(outputPath); + + console.log('✓ Icon generated:', outputPath); + } catch (error) { + console.error('✗ Failed to generate icon:', error.message); + process.exit(1); + } +} + +generateIcon(); diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx new file mode 100644 index 0000000..445abfe --- /dev/null +++ b/frontend/src/App.tsx @@ -0,0 +1,592 @@ +import { useState, useEffect, useRef, useCallback } from "react"; +import { TooltipProvider } from "@/components/ui/tooltip"; +import { getSettings, applyThemeMode, applyFont } from "@/lib/settings"; +import { applyTheme } from "@/lib/themes"; +import { toastWithSound as toast } from "@/lib/toast-with-sound"; +import { logger } from "@/lib/logger"; +import { + saveFetchState, + getFetchState, + clearFetchState, + getResumableInfo, + stateToResponse, + mergeTimelines, + type FetchState, +} from "@/lib/fetch-state"; + +// Components +import { TitleBar } from "@/components/TitleBar"; +import { Sidebar, type PageType } from "@/components/Sidebar"; +import { Header } from "@/components/Header"; +import { SearchBar, type FetchMode, type PrivateType } from "@/components/SearchBar"; +import { MediaList } from "@/components/MediaList"; +import { DatabaseView } from "@/components/DatabaseView"; +import { SettingsPage } from "@/components/SettingsPage"; +import { DebugLoggerPage } from "@/components/DebugLoggerPage"; +import type { HistoryItem } from "@/components/FetchHistory"; +import type { TwitterResponse } from "@/types/api"; + +// Wails bindings +import { ExtractTimeline, ExtractDateRange, SaveAccountToDBWithStatus, CleanupExtractorProcesses } from "../wailsjs/go/main/App"; + +const HISTORY_KEY = "twitter_media_fetch_history"; +const MAX_HISTORY = 10; +const CURRENT_VERSION = "4.0"; +const BATCH_SIZE = 200; // Fetch in batches for progressive display and resume + +function App() { + const [currentPage, setCurrentPage] = useState("main"); + const [username, setUsername] = useState(""); + const [loading, setLoading] = useState(false); + const [result, setResult] = useState(null); + const [fetchedMediaType, setFetchedMediaType] = useState("all"); + const [hasUpdate, setHasUpdate] = useState(false); + const [releaseDate, setReleaseDate] = useState(null); + const [fetchHistory, setFetchHistory] = useState([]); + const [resumeInfo, setResumeInfo] = useState<{ canResume: boolean; mediaCount: number } | null>(null); + const stopFetchRef = useRef(false); + + useEffect(() => { + const settings = getSettings(); + applyThemeMode(settings.themeMode); + applyTheme(settings.theme); + applyFont(settings.fontFamily); + + const mediaQuery = window.matchMedia("(prefers-color-scheme: dark)"); + const handleChange = () => { + const currentSettings = getSettings(); + if (currentSettings.themeMode === "auto") { + applyThemeMode("auto"); + applyTheme(currentSettings.theme); + } + }; + + mediaQuery.addEventListener("change", handleChange); + checkForUpdates(); + loadHistory(); + + return () => { + mediaQuery.removeEventListener("change", handleChange); + }; + }, []); + + const checkForUpdates = async () => { + try { + const response = await fetch( + "https://api.github.com/repos/afkarxyz/Twitter-X-Media-Batch-Downloader/releases/latest" + ); + const data = await response.json(); + const latestVersion = data.tag_name?.replace(/^v/, "") || ""; + + if (data.published_at) { + setReleaseDate(data.published_at); + } + + if (latestVersion && latestVersion > CURRENT_VERSION) { + setHasUpdate(true); + } + } catch (err) { + console.error("Failed to check for updates:", err); + } + }; + + const loadHistory = () => { + try { + const saved = localStorage.getItem(HISTORY_KEY); + if (saved) { + setFetchHistory(JSON.parse(saved)); + } + } catch (err) { + console.error("Failed to load history:", err); + } + }; + + const saveHistory = (history: HistoryItem[]) => { + try { + localStorage.setItem(HISTORY_KEY, JSON.stringify(history)); + } catch (err) { + console.error("Failed to save history:", err); + } + }; + + const addToHistory = (data: TwitterResponse, inputUsername: string) => { + // Clean username (remove @ and extract from URL if needed) + let cleanUsername = inputUsername.trim(); + if (cleanUsername.startsWith("@")) { + cleanUsername = cleanUsername.slice(1); + } + if (cleanUsername.includes("x.com/") || cleanUsername.includes("twitter.com/")) { + const match = cleanUsername.match(/(?:x\.com|twitter\.com)\/([^/?]+)/); + if (match) cleanUsername = match[1]; + } + + setFetchHistory((prev) => { + // Use username from API response (account_info.name) for consistency + const apiUsername = data.account_info.name; + const filtered = prev.filter((h) => h.username.toLowerCase() !== apiUsername.toLowerCase()); + const newItem: HistoryItem = { + id: crypto.randomUUID(), + username: apiUsername, // username/handle from API + name: data.account_info.nick, // display name from API + image: data.account_info.profile_image, + mediaCount: data.total_urls, + timestamp: Date.now(), + }; + const updated = [newItem, ...filtered].slice(0, MAX_HISTORY); + saveHistory(updated); + return updated; + }); + }; + + const removeFromHistory = (id: string) => { + setFetchHistory((prev) => { + const updated = prev.filter((h) => h.id !== id); + saveHistory(updated); + return updated; + }); + }; + + const handleHistorySelect = (item: HistoryItem) => { + setUsername(item.username); + }; + + // Check for resumable fetch when username changes + const checkResumable = useCallback((user: string) => { + if (!user.trim()) { + setResumeInfo(null); + return; + } + const info = getResumableInfo(user.trim()); + setResumeInfo(info.canResume ? { canResume: true, mediaCount: info.mediaCount } : null); + }, []); + + useEffect(() => { + checkResumable(username); + }, [username, checkResumable]); + + const handleStopFetch = async () => { + stopFetchRef.current = true; + logger.info("Stopping fetch..."); + toast.info("Stopping..."); + // Kill any running extractor processes + try { + await CleanupExtractorProcesses(); + } catch { + // Ignore cleanup errors + } + }; + + const handleFetch = async ( + useDateRange: boolean, + startDate?: string, + endDate?: string, + mediaType?: string, + retweets?: boolean, + mode: FetchMode = "public", + privateType?: PrivateType, + authToken?: string, + isResume?: boolean + ) => { + // Prevent multiple concurrent fetches + if (loading) { + logger.warning("Fetch already in progress, please wait or stop first"); + toast.warning("Fetch already in progress"); + return; + } + + // Validate based on mode + const isBookmarks = mode === "private" && privateType === "bookmarks"; + const isLikes = mode === "private" && privateType === "likes"; + + // Username required for public mode and likes mode + if (!isBookmarks && !username.trim()) { + toast.error("Please enter a username"); + return; + } + + // Use auth token from SearchBar + if (!authToken?.trim()) { + toast.error("Please enter your auth token"); + return; + } + + // Reset state for new fetch + setLoading(true); + setFetchedMediaType(mediaType || "all"); + stopFetchRef.current = false; + + // Cleanup any leftover processes from previous fetch + try { + await CleanupExtractorProcesses(); + } catch { + // Ignore cleanup errors + } + + // Determine what we're fetching for logging + const fetchTarget = isBookmarks + ? "your bookmarks" + : isLikes + ? "your likes" + : `@${username}`; + + // Check for resume state + const cleanUsername = isBookmarks ? "bookmarks" : username.trim(); + let existingState: FetchState | null = null; + let cursor: string | undefined; + let allTimeline: TwitterResponse["timeline"] = []; + let accountInfo: TwitterResponse["account_info"] | null = null; + + if (isResume) { + existingState = getFetchState(cleanUsername); + if (existingState && existingState.cursor && !existingState.completed) { + cursor = existingState.cursor; + allTimeline = existingState.timeline; + accountInfo = existingState.accountInfo; + logger.info(`Resuming ${fetchTarget} from ${allTimeline.length} items...`); + + // Show existing data immediately + if (accountInfo) { + setResult({ + account_info: accountInfo, + timeline: allTimeline, + total_urls: allTimeline.length, + metadata: { new_entries: 0, page: 0, batch_size: 0, has_more: true }, + }); + } + } else { + toast.error("No resumable fetch found"); + setLoading(false); + return; + } + } else { + // Fresh fetch - clear any existing state + clearFetchState(cleanUsername); + setResult(null); + logger.info(`Fetching ${fetchTarget}...`); + } + + try { + let finalData: TwitterResponse | null = null; + + if (useDateRange && startDate && endDate && mode === "public") { + // Date range mode - single fetch (only for public mode) + logger.info(`Using date range: ${startDate} to ${endDate}`); + const response = await ExtractDateRange({ + username: username.trim(), + auth_token: authToken.trim(), + start_date: startDate, + end_date: endDate, + media_filter: mediaType || "all", + retweets: retweets || false, + }); + finalData = JSON.parse(response); + } else { + // Timeline mode with batching for progressive display and resume + let timelineType = "timeline"; + if (isBookmarks) { + timelineType = "bookmarks"; + } else if (isLikes) { + timelineType = "likes"; + } + + let hasMore = true; + let page = 0; + + while (hasMore && !stopFetchRef.current) { + const batchNum = page + 1; + logger.info(`Fetching batch ${batchNum}${cursor ? " (resuming)" : ""}...`); + + const response = await ExtractTimeline({ + username: isBookmarks ? "" : username.trim(), + auth_token: authToken.trim(), + timeline_type: timelineType, + batch_size: BATCH_SIZE, + page: page, + media_type: mediaType || "all", + retweets: retweets || false, + cursor: cursor, + }); + + const data: TwitterResponse = JSON.parse(response); + + // Set account info from first response + if (!accountInfo && data.account_info) { + accountInfo = data.account_info; + if (isBookmarks) { + accountInfo.name = "bookmarks"; + accountInfo.nick = "My Bookmarks"; + } + } + + // Merge new entries (deduplicate) + allTimeline = mergeTimelines(allTimeline, data.timeline); + + // Update cursor for next batch + cursor = data.cursor; + hasMore = !!data.cursor && !data.completed; + page++; + + // Update UI progressively - show results immediately + if (accountInfo) { + setResult({ + account_info: accountInfo, + timeline: allTimeline, + total_urls: allTimeline.length, + metadata: { + new_entries: data.timeline.length, + page: page, + batch_size: BATCH_SIZE, + has_more: hasMore, + cursor: cursor, + completed: !hasMore, + }, + cursor: cursor, + completed: !hasMore, + }); + } + + logger.info(`Fetched ${allTimeline.length} items total`); + + // Save state periodically (every 3 batches) or when stopping + // This reduces localStorage writes for better performance + if (page % 3 === 0 || !hasMore || stopFetchRef.current) { + saveFetchState({ + username: cleanUsername, + cursor: cursor || "", + timeline: allTimeline, + accountInfo: accountInfo, + totalFetched: allTimeline.length, + completed: !hasMore, + authToken: authToken.trim(), + mediaType: mediaType || "all", + retweets: retweets || false, + timelineType: timelineType, + }); + + // Also save to database for persistence (can resume even after app restart) + if (accountInfo) { + const currentResponse: TwitterResponse = { + account_info: accountInfo, + timeline: allTimeline, + total_urls: allTimeline.length, + metadata: { + new_entries: data.timeline.length, + page: page, + batch_size: BATCH_SIZE, + has_more: hasMore, + cursor: cursor, + completed: !hasMore, + }, + cursor: cursor, + completed: !hasMore, + }; + try { + await SaveAccountToDBWithStatus( + accountInfo.name, + accountInfo.nick, + accountInfo.profile_image, + allTimeline.length, + JSON.stringify(currentResponse), + mediaType || "all", + cursor || "", + !hasMore + ); + } catch (err) { + console.error("Failed to save progress to database:", err); + } + } + } + } + + // If stopped by user, keep state for resume + if (stopFetchRef.current) { + logger.info(`Stopped at ${allTimeline.length} items - can resume later`); + toast.info(`Stopped at ${allTimeline.length} items`); + setResumeInfo({ canResume: true, mediaCount: allTimeline.length }); + } else { + // Completed - clear state + clearFetchState(cleanUsername); + setResumeInfo(null); + } + + // Build final response + finalData = accountInfo + ? { + account_info: accountInfo, + timeline: allTimeline, + total_urls: allTimeline.length, + metadata: { + new_entries: allTimeline.length, + page: page, + batch_size: BATCH_SIZE, + has_more: false, + cursor: cursor, + completed: !stopFetchRef.current, + }, + cursor: cursor, + completed: !stopFetchRef.current, + } + : null; + } + + if (finalData) { + setResult(finalData); + + // Only add to history for public mode + if (mode === "public") { + addToHistory(finalData, username); + } + + // Save to database with media type and completion status + try { + await SaveAccountToDBWithStatus( + finalData.account_info.name, + finalData.account_info.nick, + finalData.account_info.profile_image, + finalData.total_urls, + JSON.stringify(finalData), + mediaType || "all", + finalData.cursor || "", + finalData.completed ?? true + ); + } catch (err) { + console.error("Failed to save to database:", err); + } + + if (!stopFetchRef.current) { + logger.success(`Found ${finalData.total_urls} media items`); + toast.success(`${finalData.total_urls} media items found`); + } + } + } catch (error) { + const errorMsg = error instanceof Error ? error.message : String(error); + logger.error(`Failed to fetch: ${errorMsg}`); + toast.error("Failed to fetch media"); + + // On error, check if we have partial data saved + const savedState = getFetchState(cleanUsername); + if (savedState && savedState.timeline.length > 0) { + const partialResponse = stateToResponse(savedState); + if (partialResponse) { + setResult(partialResponse); + setResumeInfo({ canResume: true, mediaCount: savedState.timeline.length }); + toast.info(`Saved ${savedState.timeline.length} items - can resume`); + + // Also save partial data to database for persistence + try { + await SaveAccountToDBWithStatus( + partialResponse.account_info.name, + partialResponse.account_info.nick, + partialResponse.account_info.profile_image, + partialResponse.total_urls, + JSON.stringify(partialResponse), + mediaType || "all", + savedState.cursor || "", + false // not completed + ); + } catch (dbErr) { + console.error("Failed to save partial data to database:", dbErr); + } + } + } + } finally { + setLoading(false); + } + }; + + // Handle resume fetch + const handleResume = (authToken: string, mediaType?: string, retweets?: boolean) => { + handleFetch(false, undefined, undefined, mediaType, retweets, "public", undefined, authToken, true); + }; + + // Clear resume state + const handleClearResume = () => { + if (username.trim()) { + clearFetchState(username.trim()); + setResumeInfo(null); + toast.info("Resume data cleared"); + } + }; + + const handleLoadFromDB = (responseJSON: string, loadedUsername: string) => { + try { + const data: TwitterResponse = JSON.parse(responseJSON); + setResult(data); + setUsername(loadedUsername); + setCurrentPage("main"); + toast.success(`Loaded @${loadedUsername} from database`); + } catch (error) { + toast.error("Failed to parse saved data"); + } + }; + + const renderPage = () => { + switch (currentPage) { + case "settings": + return ; + case "debug": + return ; + case "database": + return ( + setCurrentPage("main")} + onLoadAccount={handleLoadFromDB} + /> + ); + default: + return ( + <> +
+ + + + {result && ( +
+ +
+ )} + + ); + } + }; + + return ( + +
+ + + + {/* Main content area with sidebar offset */} +
+
+ {renderPage()} +
+
+
+
+ ); +} + +export default App; diff --git a/frontend/src/components/DatabaseView.tsx b/frontend/src/components/DatabaseView.tsx new file mode 100644 index 0000000..c486bf3 --- /dev/null +++ b/frontend/src/components/DatabaseView.tsx @@ -0,0 +1,1102 @@ +import { useState, useEffect, useRef } from "react"; +import { Button } from "@/components/ui/button"; +import { Badge } from "@/components/ui/badge"; +import { Input } from "@/components/ui/input"; +import { Label } from "@/components/ui/label"; +import { Progress } from "@/components/ui/progress"; +import { cn } from "@/lib/utils"; +import { + Dialog, + DialogContent, + DialogDescription, + DialogFooter, + DialogHeader, + DialogTitle, + DialogTrigger, +} from "@/components/ui/dialog"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; +import { + Tooltip, + TooltipContent, + TooltipTrigger, +} from "@/components/ui/tooltip"; +import { Checkbox } from "@/components/ui/checkbox"; +import { Spinner } from "@/components/ui/spinner"; +import { Trash2, Eye, FileInput, FileOutput, Pencil, Tag, Shuffle, X, Download, StopCircle, Globe, Lock, Bookmark, Heart, Image, Images, Video, Film, FileText, Filter, AlertCircle } from "lucide-react"; +import { toastWithSound as toast } from "@/lib/toast-with-sound"; +import { getSettings } from "@/lib/settings"; +import { + GetAllAccountsFromDB, + GetAccountFromDB, + DeleteAccountFromDB, + ClearAllAccountsFromDB, + SaveAccountToDB, + ExportAccountJSON, + UpdateAccountGroup, + GetAllGroups, + DownloadMediaWithMetadata, + StopDownload, +} from "../../wailsjs/go/main/App"; +import { EventsOn, EventsOff } from "../../wailsjs/runtime/runtime"; +import { main } from "../../wailsjs/go/models"; + +interface DownloadProgress { + current: number; + total: number; + percent: number; +} + + + +function formatNumberWithComma(num: number): string { + return num.toLocaleString(); +} + +function getRelativeTime(dateStr: string): string { + try { + const date = new Date(dateStr); + const now = new Date(); + const diffMs = now.getTime() - date.getTime(); + + const diffMinutes = Math.floor(diffMs / (1000 * 60)); + const diffHours = Math.floor(diffMs / (1000 * 60 * 60)); + const diffDays = Math.floor(diffMs / (1000 * 60 * 60 * 24)); + + if (diffDays > 0) { + const remainingHours = diffHours % 24; + return `(${diffDays}d ${remainingHours}h ago)`; + } else if (diffHours > 0) { + const remainingMinutes = diffMinutes % 60; + return `(${diffHours}h ${remainingMinutes}m ago)`; + } else if (diffMinutes > 0) { + return `(${diffMinutes}m ago)`; + } else { + return "(just now)"; + } + } catch { + return ""; + } +} + +// Using backend.AccountListItem from wailsjs/go/models +import { backend } from "../../wailsjs/go/models"; +type AccountListItem = backend.AccountListItem; + +interface GroupInfo { + name: string; + color: string; +} + +interface DatabaseViewProps { + onBack: () => void; + onLoadAccount: (responseJSON: string, username: string) => void; +} + +const ITEMS_PER_PAGE = 10; + +export function DatabaseView({ onLoadAccount }: DatabaseViewProps) { + const [accounts, setAccounts] = useState([]); + const [loading, setLoading] = useState(true); + const [selectedIds, setSelectedIds] = useState>(new Set()); + const [currentPage, setCurrentPage] = useState(1); + const [groups, setGroups] = useState([]); + const [filterGroup, setFilterGroup] = useState("all"); + const [filterMediaType, setFilterMediaType] = useState("all"); + const [viewMode, setViewMode] = useState<"public" | "private">("public"); + const [editingAccount, setEditingAccount] = useState(null); + const [editGroupName, setEditGroupName] = useState(""); + const [editGroupColor, setEditGroupColor] = useState(""); + const [clearAllDialogOpen, setClearAllDialogOpen] = useState(false); + const [isDownloading, setIsDownloading] = useState(false); + const [downloadingAccountId, setDownloadingAccountId] = useState(null); + const [downloadProgress, setDownloadProgress] = useState(null); + const [isBulkDownloading, setIsBulkDownloading] = useState(false); + const [bulkDownloadCurrent, setBulkDownloadCurrent] = useState(0); + const [bulkDownloadTotal, setBulkDownloadTotal] = useState(0); + const stopBulkDownloadRef = useRef(false); + + const loadAccounts = async () => { + setLoading(true); + try { + const data = await GetAllAccountsFromDB(); + setAccounts(data || []); + const groupsData = await GetAllGroups(); + if (groupsData) { + setGroups(groupsData.map((g) => ({ name: g.name || "", color: g.color || "" }))); + } + } catch (error) { + console.error("Failed to load accounts:", error); + toast.error("Failed to load accounts"); + } finally { + setLoading(false); + } + }; + + useEffect(() => { + loadAccounts(); + }, []); + + // Listen for download progress events + useEffect(() => { + const unsubscribe = EventsOn("download-progress", (progress: DownloadProgress) => { + setDownloadProgress(progress); + }); + return () => { + EventsOff("download-progress"); + unsubscribe(); + }; + }, []); + + // Separate accounts into public and private + const isPrivateAccount = (username: string) => + username === "bookmarks" || username === "likes"; + + const publicAccounts = accounts.filter((acc) => !isPrivateAccount(acc.username)); + const privateAccounts = accounts.filter((acc) => isPrivateAccount(acc.username)); + + const baseAccounts = viewMode === "public" ? publicAccounts : privateAccounts; + + const filteredAccounts = baseAccounts.filter((acc) => { + // Filter by group + if (filterGroup !== "all") { + if (filterGroup === "ungrouped" && acc.group_name) return false; + if (filterGroup !== "ungrouped" && acc.group_name !== filterGroup) return false; + } + // Filter by media type + if (filterMediaType !== "all") { + const accMediaType = acc.media_type || "all"; + // "all-media" in filter matches "all" in database (fetched with All Media option) + if (filterMediaType === "all-media") { + if (accMediaType !== "all") return false; + } else { + if (accMediaType !== filterMediaType) return false; + } + } + return true; + }); + + const handleEditGroup = (account: AccountListItem) => { + setEditingAccount(account); + setEditGroupName(account.group_name || ""); + setEditGroupColor(account.group_color || "#3b82f6"); + }; + + const handleSaveGroup = async () => { + if (!editingAccount) return; + try { + await UpdateAccountGroup(editingAccount.id, editGroupName, editGroupColor); + toast.success(`Updated group for @${editingAccount.username}`); + setEditingAccount(null); + loadAccounts(); + } catch (error) { + toast.error("Failed to update group"); + } + }; + + const handleDelete = async (id: number, username: string) => { + try { + await DeleteAccountFromDB(id); + toast.success(`Deleted @${username}`); + loadAccounts(); + } catch (error) { + toast.error("Failed to delete account"); + } + }; + + const handleView = async (id: number, username: string) => { + try { + const responseJSON = await GetAccountFromDB(id); + onLoadAccount(responseJSON, username); + } catch (error) { + toast.error("Failed to load account data"); + } + }; + + const handleDownload = async (id: number, username: string) => { + try { + const responseJSON = await GetAccountFromDB(id); + const data = JSON.parse(responseJSON); + const timeline = data.timeline || []; + + if (timeline.length === 0) { + toast.error("No media to download"); + return; + } + + const settings = getSettings(); + setIsDownloading(true); + setDownloadingAccountId(id); + setDownloadProgress({ current: 0, total: timeline.length, percent: 0 }); + + const request = new main.DownloadMediaWithMetadataRequest({ + items: timeline.map((item: { url: string; date: string; tweet_id: string; type: string }) => new main.MediaItemRequest({ + url: item.url, + date: item.date, + tweet_id: item.tweet_id, + type: item.type, + })), + output_dir: settings.downloadPath, + username: username, + }); + + const response = await DownloadMediaWithMetadata(request); + + if (response.success) { + toast.success(`Downloaded ${response.downloaded} files for @${username}`); + } else { + toast.error(response.message || "Download failed"); + } + } catch (error) { + const errorMsg = error instanceof Error ? error.message : String(error); + toast.error(`Download failed: ${errorMsg}`); + } finally { + setIsDownloading(false); + setDownloadingAccountId(null); + setDownloadProgress(null); + } + }; + + const handleStopDownload = async () => { + try { + const stopped = await StopDownload(); + if (stopped) { + toast.info("Download stopped"); + } + } catch (error) { + console.error("Failed to stop download:", error); + } + }; + + const handleBulkDownload = async () => { + const idsToDownload = Array.from(selectedIds); + if (idsToDownload.length === 0) { + toast.error("No accounts selected"); + return; + } + + setIsBulkDownloading(true); + setBulkDownloadTotal(idsToDownload.length); + setBulkDownloadCurrent(0); + stopBulkDownloadRef.current = false; + + const settings = getSettings(); + let totalDownloaded = 0; + let downloadedAccounts = 0; + + for (let i = 0; i < idsToDownload.length; i++) { + // Check stop flag using ref (works inside async loop) + if (stopBulkDownloadRef.current) { + toast.info("Bulk download stopped"); + break; + } + + const id = idsToDownload[i]; + const account = accounts.find((a) => a.id === id); + if (!account) continue; + + setBulkDownloadCurrent(i + 1); + setDownloadingAccountId(id); + + try { + const responseJSON = await GetAccountFromDB(id); + const data = JSON.parse(responseJSON); + const timeline = data.timeline || []; + + if (timeline.length === 0) continue; + + // Check again before starting download + if (stopBulkDownloadRef.current) { + toast.info("Bulk download stopped"); + break; + } + + setDownloadProgress({ current: 0, total: timeline.length, percent: 0 }); + + const request = new main.DownloadMediaWithMetadataRequest({ + items: timeline.map((item: { url: string; date: string; tweet_id: string; type: string }) => new main.MediaItemRequest({ + url: item.url, + date: item.date, + tweet_id: item.tweet_id, + type: item.type, + })), + output_dir: settings.downloadPath, + username: account.username, + }); + + const response = await DownloadMediaWithMetadata(request); + if (response.success) { + totalDownloaded += response.downloaded; + downloadedAccounts++; + } + } catch (error) { + console.error(`Failed to download @${account.username}:`, error); + } + } + + setIsBulkDownloading(false); + setDownloadingAccountId(null); + setDownloadProgress(null); + setBulkDownloadCurrent(0); + setBulkDownloadTotal(0); + + if (totalDownloaded > 0 && !stopBulkDownloadRef.current) { + toast.success(`Downloaded ${totalDownloaded} files from ${downloadedAccounts} accounts`); + } + }; + + const handleStopBulkDownload = async () => { + stopBulkDownloadRef.current = true; + await handleStopDownload(); + }; + + const toggleSelect = (id: number) => { + setSelectedIds((prev) => { + const newSet = new Set(prev); + if (newSet.has(id)) { + newSet.delete(id); + } else { + newSet.add(id); + } + return newSet; + }); + }; + + const toggleSelectAll = () => { + if (selectedIds.size === filteredAccounts.length && filteredAccounts.length > 0) { + setSelectedIds(new Set()); + } else { + setSelectedIds(new Set(filteredAccounts.map((a) => a.id))); + } + }; + + const handleExport = async () => { + const idsToExport = selectedIds.size > 0 ? Array.from(selectedIds) : accounts.map((a) => a.id); + + if (idsToExport.length === 0) { + toast.error("No accounts to export"); + return; + } + + const settings = getSettings(); + const outputDir = settings.downloadPath || ""; + + try { + let exported = 0; + for (const id of idsToExport) { + await ExportAccountJSON(id, outputDir); + exported++; + } + toast.success(`Exported ${exported} account(s) to ${outputDir}\\twitterxmediabatchdownloader_backups`); + } catch (error) { + toast.error("Failed to export"); + } + }; + + const handleImport = () => { + const input = document.createElement("input"); + input.type = "file"; + input.accept = ".json"; + input.multiple = true; + input.onchange = async (e) => { + const files = (e.target as HTMLInputElement).files; + if (!files || files.length === 0) return; + + let imported = 0; + for (const file of Array.from(files)) { + try { + const text = await file.text(); + const data = JSON.parse(text); + + // Detect media_type from imported file + let detectedMediaType = "all"; + + // Check if media_type is explicitly set in the file + if (data.media_type) { + detectedMediaType = data.media_type; + } + // If not, try to detect from media_list content + else if (data.media_list && Array.isArray(data.media_list)) { + const types = new Set(data.media_list.map((item: { media_type?: string; type?: string }) => + item.media_type || item.type + ).filter(Boolean)); + + // If all items are same type, use that type + if (types.size === 1) { + const singleType = Array.from(types)[0] as string; + if (singleType === "photo") detectedMediaType = "image"; + else if (singleType === "video") detectedMediaType = "video"; + else if (singleType === "animated_gif") detectedMediaType = "gif"; + else detectedMediaType = singleType; + } + } + // Or detect from timeline content + else if (data.timeline && Array.isArray(data.timeline)) { + const types = new Set(data.timeline.map((item: { type?: string }) => item.type).filter(Boolean)); + + // If all items are same type, use that type + if (types.size === 1) { + const singleType = Array.from(types)[0] as string; + if (singleType === "photo") detectedMediaType = "image"; + else if (singleType === "video") detectedMediaType = "video"; + else if (singleType === "animated_gif") detectedMediaType = "gif"; + else if (singleType === "text") detectedMediaType = "text"; + else detectedMediaType = singleType; + } + } + + // Support new format (account_info + timeline) + if (data.account_info && data.timeline) { + await SaveAccountToDB( + data.account_info.name, // username/handle + data.account_info.nick, // display name + data.account_info.profile_image, + data.total_urls || data.timeline.length, + text, + detectedMediaType + ); + imported++; + } + // Support legacy format (username + media_list) + else if (data.username && data.media_list) { + // Convert legacy format to new format + const convertedData = { + account_info: { + name: data.username, + nick: data.nick || data.username, + date: "", + followers_count: data.followers || 0, + friends_count: data.following || 0, + profile_image: data.profile_image || "", + statuses_count: data.posts || 0, + }, + total_urls: data.media_list.length, + timeline: data.media_list.map((item: { url: string; date: string; tweet_id: string; type: string; media_type?: string }) => ({ + url: item.url, + date: item.date, + tweet_id: item.tweet_id, + type: item.media_type || item.type, + is_retweet: false, + })), + metadata: { + new_entries: data.media_list.length, + page: 0, + batch_size: 0, + has_more: false, + }, + }; + + await SaveAccountToDB( + convertedData.account_info.name, + convertedData.account_info.nick, + convertedData.account_info.profile_image, + convertedData.total_urls, + JSON.stringify(convertedData), + detectedMediaType + ); + imported++; + } + } catch (err) { + console.error(`Failed to import ${file.name}:`, err); + } + } + + if (imported > 0) { + toast.success(`Imported ${imported} account(s)`); + loadAccounts(); + } else { + toast.error("No valid files imported"); + } + }; + input.click(); + }; + + return ( +
+
+
+

Saved Accounts

+ {/* Public/Private Toggle */} +
+ + +
+
+
+ + + + + Import JSON + + + + + + Export Selected + + {isBulkDownloading ? ( + + + + + Stop Bulk Download + + ) : ( + + + + + Download Selected ({selectedIds.size}) + + )} + + + + + + + + Clear All + + +
+ +
+ + Clear All Accounts? + + This will permanently delete all {formatNumberWithComma(accounts.length)} saved accounts. This action cannot be undone. + + + + + +
+
+
+
+ + {loading ? ( +
Loading...
+ ) : accounts.length === 0 ? ( +
+ No saved accounts yet. Fetch a user's media to save it here. +
+ ) : ( +
+ {/* Filter and Select All */} +
+
+ 0} + onCheckedChange={toggleSelectAll} + /> + + Select all {selectedIds.size > 0 && `(${formatNumberWithComma(selectedIds.size)} selected)`} + +
+
+ + {/* Media Type Filter */} + + + {/* Group Filter */} + +
+ + {/* Bulk Download Progress */} + {isBulkDownloading && ( +
+
+ + Downloading account {bulkDownloadCurrent} of {bulkDownloadTotal} + + {Math.round((bulkDownloadCurrent / bulkDownloadTotal) * 100)}% +
+ +
+ )} + + {filteredAccounts + .slice((currentPage - 1) * ITEMS_PER_PAGE, currentPage * ITEMS_PER_PAGE) + .map((account, index) => ( +
+
+ toggleSelect(account.id)} + /> + + {(currentPage - 1) * ITEMS_PER_PAGE + index + 1} + + {isPrivateAccount(account.username) ? ( +
+ {account.username === "bookmarks" ? ( + + ) : ( + + )} +
+ ) : ( + {account.name} + )} +
+
+ {account.name} + ({formatNumberWithComma(account.total_media)}) + {/* Media Type Badge */} + + {account.media_type === "text" ? <> Text Only : + account.media_type === "image" ? <> Images : + account.media_type === "video" ? <> + {!account.completed && ( + + + Incomplete + + )} + {account.group_name && ( + + {account.group_name} + + )} +
+
@{account.username}
+
+ {account.last_fetched} {getRelativeTime(account.last_fetched)} +
+
+
+ + + + + Edit Group + + + + + + View + + + + + + Export JSON + + {downloadingAccountId === account.id ? ( + + + + + Stop Download + + ) : ( + + + + + Download All Media + + )} + + + + + + + + Delete + + +
+ + + +
+ + Delete @{account.username}? + + This will permanently delete the saved data for this account. + + + + + +
+
+
+
+ {/* Progress bar for this account */} + {downloadingAccountId === account.id && downloadProgress && ( +
+
+ + Downloading {downloadProgress.current} of {downloadProgress.total} + + {downloadProgress.percent}% +
+ +
+ )} +
+ ))} + + {/* Pagination */} + {filteredAccounts.length > ITEMS_PER_PAGE && ( +
+ + + Page {currentPage} of {Math.ceil(filteredAccounts.length / ITEMS_PER_PAGE)} + + +
+ )} +
+ )} + + {/* Edit Group Dialog */} + !open && setEditingAccount(null)}> + +
+ +
+ + Edit Group for @{editingAccount?.username} + + Assign this account to a group for better organization. + + +
+
+ +
+ setEditGroupName(e.target.value)} + className="flex-1" + /> + {groups.length > 0 && ( + + )} + {editGroupName && ( + + + + + Remove from Group + + )} +
+
+
+ +
+
+ setEditGroupColor(e.target.value)} + className="absolute inset-0 w-full h-full opacity-0 cursor-pointer" + /> +
+
+ setEditGroupColor(e.target.value)} + placeholder="#3b82f6" + className="w-28 font-mono text-sm" + /> + + + + + Random Color + +
+
+
+ + + + + +
+
+ ); +} diff --git a/frontend/src/components/DebugLogger.tsx b/frontend/src/components/DebugLogger.tsx new file mode 100644 index 0000000..dd3ea32 --- /dev/null +++ b/frontend/src/components/DebugLogger.tsx @@ -0,0 +1,132 @@ +import { useState, useEffect, useRef } from "react"; +import { Bug, Trash2, X, Copy, Check } from "lucide-react"; +import { Button } from "@/components/ui/button"; +import { + Dialog, + DialogContent, + DialogTitle, + DialogTrigger, +} from "@/components/ui/dialog"; +import { logger, type LogEntry } from "@/lib/logger"; + +const levelColors: Record = { + info: "text-blue-500", + success: "text-green-500", + warning: "text-yellow-500", + error: "text-red-500", + debug: "text-gray-500", +}; + +function formatTime(date: Date): string { + return date.toLocaleTimeString("en-US", { + hour12: false, + hour: "2-digit", + minute: "2-digit", + second: "2-digit", + }); +} + +export function DebugLogger() { + const [open, setOpen] = useState(false); + const [logs, setLogs] = useState([]); + const [copied, setCopied] = useState(false); + const scrollRef = useRef(null); + + useEffect(() => { + const unsubscribe = logger.subscribe(() => { + setLogs(logger.getLogs()); + }); + setLogs(logger.getLogs()); + return () => { + unsubscribe(); + }; + }, []); + + useEffect(() => { + if (scrollRef.current) { + scrollRef.current.scrollTop = scrollRef.current.scrollHeight; + } + }, [logs]); + + const handleClear = () => { + logger.clear(); + }; + + const handleCopy = async () => { + const logText = logs + .map((log) => `[${formatTime(log.timestamp)}] [${log.level}] ${log.message}`) + .join("\n"); + + try { + await navigator.clipboard.writeText(logText); + setCopied(true); + setTimeout(() => setCopied(false), 500); + } catch (err) { + console.error("Failed to copy logs:", err); + } + }; + + return ( + + + + + + Debug Logs +
+ + + +
+
+ {logs.length === 0 ? ( +

no logs yet...

+ ) : ( + logs.map((log, i) => ( +
+ + [{formatTime(log.timestamp)}] + + + [{log.level}] + + {log.message} +
+ )) + )} +
+
+
+ ); +} diff --git a/frontend/src/components/DebugLoggerPage.tsx b/frontend/src/components/DebugLoggerPage.tsx new file mode 100644 index 0000000..e33cbcd --- /dev/null +++ b/frontend/src/components/DebugLoggerPage.tsx @@ -0,0 +1,111 @@ +import { useState, useEffect, useRef } from "react"; +import { Trash2, Copy, Check } from "lucide-react"; +import { Button } from "@/components/ui/button"; +import { logger, type LogEntry } from "@/lib/logger"; + +const levelColors: Record = { + info: "text-blue-500", + success: "text-green-500", + warning: "text-yellow-500", + error: "text-red-500", + debug: "text-gray-500", +}; + +function formatTime(date: Date): string { + return date.toLocaleTimeString("en-US", { + hour12: false, + hour: "2-digit", + minute: "2-digit", + second: "2-digit", + }); +} + +export function DebugLoggerPage() { + const [logs, setLogs] = useState([]); + const [copied, setCopied] = useState(false); + const scrollRef = useRef(null); + + useEffect(() => { + const unsubscribe = logger.subscribe(() => { + setLogs(logger.getLogs()); + }); + setLogs(logger.getLogs()); + return () => { + unsubscribe(); + }; + }, []); + + useEffect(() => { + if (scrollRef.current) { + scrollRef.current.scrollTop = scrollRef.current.scrollHeight; + } + }, [logs]); + + const handleClear = () => { + logger.clear(); + }; + + const handleCopy = async () => { + const logText = logs + .map((log) => `[${formatTime(log.timestamp)}] [${log.level}] ${log.message}`) + .join("\n"); + + try { + await navigator.clipboard.writeText(logText); + setCopied(true); + setTimeout(() => setCopied(false), 500); + } catch (err) { + console.error("Failed to copy logs:", err); + } + }; + + return ( +
+
+

Debug Logs

+
+ + +
+
+ +
+ {logs.length === 0 ? ( +

no logs yet...

+ ) : ( + logs.map((log, i) => ( +
+ + [{formatTime(log.timestamp)}] + + + [{log.level}] + + {log.message} +
+ )) + )} +
+
+ ); +} diff --git a/frontend/src/components/FetchHistory.tsx b/frontend/src/components/FetchHistory.tsx new file mode 100644 index 0000000..bed48f2 --- /dev/null +++ b/frontend/src/components/FetchHistory.tsx @@ -0,0 +1,58 @@ +import { Button } from "@/components/ui/button"; +import { X, User } from "lucide-react"; + +export interface HistoryItem { + id: string; + username: string; + name: string; + image: string; + mediaCount: number; + timestamp: number; +} + +interface FetchHistoryProps { + history: HistoryItem[]; + onSelect: (item: HistoryItem) => void; + onRemove: (id: string) => void; +} + +export function FetchHistory({ history, onSelect, onRemove }: FetchHistoryProps) { + if (history.length === 0) return null; + + return ( +
+

Recent Fetches

+
+ {history.map((item) => ( +
onSelect(item)} + > + {item.image ? ( + {item.name} + ) : ( + + )} + @{item.username} + +
+ ))} +
+
+ ); +} diff --git a/frontend/src/components/Header.tsx b/frontend/src/components/Header.tsx new file mode 100644 index 0000000..81f113e --- /dev/null +++ b/frontend/src/components/Header.tsx @@ -0,0 +1,63 @@ +import { Badge } from "@/components/ui/badge"; +import { + Tooltip, + TooltipContent, + TooltipTrigger, +} from "@/components/ui/tooltip"; +import { openExternal } from "@/lib/utils"; +import { formatRelativeTime } from "@/lib/relative-time"; + +interface HeaderProps { + version: string; + hasUpdate: boolean; + releaseDate?: string | null; +} + +export function Header({ version, hasUpdate, releaseDate }: HeaderProps) { + return ( +
+
+
+ Twitter/X Media Batch Downloader window.location.reload()} + /> +

window.location.reload()} + > + Twitter/X Media Batch Downloader +

+
+ + + + + + + {hasUpdate && releaseDate && ( + +

{formatRelativeTime(releaseDate)}

+
+ )} +
+ {hasUpdate && ( + + + + + )} +
+
+
+
+ ); +} diff --git a/frontend/src/components/MediaList.tsx b/frontend/src/components/MediaList.tsx new file mode 100644 index 0000000..603b3f3 --- /dev/null +++ b/frontend/src/components/MediaList.tsx @@ -0,0 +1,1282 @@ +import { useState, useMemo, useEffect, useRef } from "react"; +import { Button } from "@/components/ui/button"; +import { Checkbox } from "@/components/ui/checkbox"; +import { Badge } from "@/components/ui/badge"; +import { Progress } from "@/components/ui/progress"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; +import { + Tooltip, + TooltipContent, + TooltipTrigger, +} from "@/components/ui/tooltip"; + +import { + Image, + Video, + Film, + FileText, + ExternalLink, + Repeat2, + Download, + FolderOpen, + LayoutGrid, + Grid3X3, + List, + StopCircle, + Users, + UserPlus, + MessageSquare, + Calendar, + ArrowUp, + ChevronLeft, + ChevronRight, + Eye, + Heart, + Bookmark, + BadgeCheck, + Maximize2, + CheckCircle, + XCircle, + FileCheck, +} from "lucide-react"; +import { Spinner } from "@/components/ui/spinner"; +import type { TimelineEntry, AccountInfo } from "@/types/api"; +import { logger } from "@/lib/logger"; +import { toastWithSound as toast } from "@/lib/toast-with-sound"; +import { getSettings } from "@/lib/settings"; +import { openExternal } from "@/lib/utils"; +import { DownloadMediaWithMetadata, OpenFolder, IsFFmpegInstalled, ConvertGIFs, StopDownload } from "../../wailsjs/go/main/App"; +import { EventsOn, EventsOff } from "../../wailsjs/runtime/runtime"; +import { main } from "../../wailsjs/go/models"; + +interface DownloadProgress { + current: number; + total: number; + percent: number; +} + +interface DownloadItemStatus { + tweet_id: number; + index: number; + status: "success" | "failed" | "skipped"; +} + +interface MediaListProps { + accountInfo: AccountInfo; + timeline: TimelineEntry[]; + totalUrls: number; + fetchedMediaType?: string; +} + +function getThumbnailUrl(url: string): string { + if (url.includes("pbs.twimg.com/media/")) { + if (url.includes("?format=")) { + if (url.includes("&name=")) { + const parts = url.split("&name="); + return parts[0] + "&name=thumb"; + } + return url + "&name=thumb"; + } + if (url.includes("?")) { + return url + "&name=thumb"; + } + return url + "?format=jpg&name=thumb"; + } + return url; +} + +function getPreviewUrl(url: string): string { + // For images, use large size for preview + if (url.includes("pbs.twimg.com/media/")) { + if (url.includes("?format=")) { + if (url.includes("&name=")) { + const parts = url.split("&name="); + return parts[0] + "&name=large"; + } + return url + "&name=large"; + } + if (url.includes("?")) { + return url + "&name=large"; + } + return url + "?format=jpg&name=large"; + } + return url; +} + +function getMediaIcon(type: string) { + switch (type) { + case "photo": + return ; + case "video": + return