@rasyid2567/urlscanner 0.1.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +92 -36
- package/dist/cli.js +474 -83
- package/dist/web/assets/{index-CqokFvdM.js → index-B-RXOJoS.js} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +11 -1
|
@@ -206,6 +206,6 @@ Error generating stack: `+a.message+`
|
|
|
206
206
|
*
|
|
207
207
|
* This source code is licensed under the ISC license.
|
|
208
208
|
* See the LICENSE file in the root directory of this source tree.
|
|
209
|
-
*/const E1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Sv=Dt("X",E1),C1=[{code:"en",label:"EN · English"},{code:"id",label:"ID · Indonesia"},{code:"es",label:"ES · Español"},{code:"ja",label:"JA · 日本語"}],z1={appTagline:"URL Scanner & Triage",navQueue:"Triage Queue",navIntake:"Pivot & Import",navArchive:"Filtered Archive",navSettings:"Settings",liveStream:"Live stream",reconnecting:"Reconnecting",darkMode:"Dark",lightMode:"Light",closeMenu:"Close menu",openMenu:"Open navigation",languageLabel:"Language",toggleThemeLabel:"Toggle theme",statusNew:"New",statusClaimed:"In Progress",statusSubmitted:"Submitted",statusValid:"Valid",statusDuplicate:"Duplicate",statusRejected:"Rejected",healthPending:"Pending",healthChecking:"Checking",healthAlive:"Alive",healthCfChallenge:"Manual Check (CF)",healthDead:"Dead",healthParked:"Parked",healthBlockedIsp:"ISP Blocked",healthBlockedTp:"TrustPositif",queueTitle:"Triage Queue",queueSubtitle:"Active domains that passed dead, parking, and ISP/Komdigi block filters — ready to verify and submit.",btnShortcut:"Shortcut",btnPivotImport:"Pivot / Import",summaryNew:"Ready (New)",summaryInProgress:"In Progress",summarySubmitted:"Submitted",summaryValid:"Valid",summaryManual:"Manual Check",searchQueuePlaceholder:"Search domain, page title, or seed...",allStatuses:"All Statuses",tabAll:"All",allScores:"All Scores",score40:"Score ≥ 40",score70:"Score ≥ 70",sortHighestScore:"Highest Score",sortNewest:"Newest",sortDomainAsc:"Domain A–Z",retry:"Retry",emptyQueueTitle:"No domains in Triage Queue yet",emptyQueueSubtitle:"Start from Seed Pivoting or paste raw URLs in Bulk Import to populate the queue.",emptyQueueCta:"Start Pivot / Import",colDomainTitle:"Domain & Title",colScore:"Score",colSignals:"Signals",colStatus:"Status",colActions:"Actions",noTitle:"No title",btnCopyMark:"Copy & Mark",btnCopied:"Copied",titleCopyMark:"Copy URL & Mark In Progress (c)",titleOpenTab:"Open in new tab (o)",titlePivotRow:"Pivot this domain",showingOf:"Showing",of:"of",domainsNoun:"domains",scMove:"move row",scCopyMark:"Copy & Mark",scOpenTab:"open tab",scStatus:"submitted / valid / duplicate / rejected",scDetail:"detail inspector",toastPivotStarted:"1-hop pivot started for",toastPivotFailed:"Failed to start pivot",toastRecheckStarted:"Re-check started for",toastRecheckFailed:"Failed to re-check",toastCopiedMarked:"Copied & Marked:",toastMarkedOnly:"Marked In Progress:",toastMarkFailed:"Failed to mark domain",toastStatusFailed:"Failed to update status",toastLinkQueued:"Queued link(s) for validation:",toastLinkSkipped:"Link already exists or is blacklisted",toastLinkFailed:"Failed to queue link",errLoadQueue:"Failed to load queue",drawerSummary:"Page Summary",drawerTitle:"Title",drawerMetaDesc:"Meta Description",drawerHttpIp:"HTTP / IP",drawerSource:"Source",drawerChangeStatus:"Change Triage Status",drawerMatchedKw:"Matched Keywords & Signals",drawerNoKw:"No target keywords detected.",drawerRedirects:"URL & Redirect Chain",drawerOutbound:"Extracted Outbound & AMP Links",drawerNoOutbound:"No relevant outbound links extracted.",drawerOpenTab:"Open Tab",drawerPivot:"Pivot",drawerRecheck:"Re-check",drawerQueueBtn:"Queue",drawerClose:"Close detail",intakeTitle:"Pivot & Bulk Import",intakeSubtitle:"Automatically discover mirror domains from 1 seed or paste bulk URLs to normalize & validate in parallel.",pivotCardTitle:"Seed Pivoting (1-Hop OSINT)",pivotCardDesc:"Enter 1 target URL or brand name (e.g. zeus88.com or zeus88).",pivotInputLabel:"Target URL / Brand Name",pivotInputPlaceholder:"https://example-site.com or brandname",pivotSourcesLabel:"OSINT Sources",srcCrtshTitle:"CRT.sh Scraper",srcCrtshDesc:"Pull domain variations from Certificate Transparency Logs.",srcUrlscanTitle:"URLScan.io API Search",srcUrlscanDesc:"Find domains sharing similar IP, <title>, or patterns (including random names).",srcHtmlTitle:"HTML, Redirect & AMP Extractor",srcHtmlDesc:"Trace 301/302, amphtml, & outbound Login/Register/Alt links (auto-strips CDNs & assets).",btnStarting:"Starting...",btnStartPivot:"Start Seed Pivot",pivotNeedSource:"Select at least 1 OSINT pivot source",bulkCardTitle:"Bulk Import",bulkCardDesc:"Paste multiple raw URLs/text or upload a .txt/.csv file. Automatically normalized & deduplicated.",btnUploadFile:"Upload File",bulkStatNew:"New",bulkStatDup:"Duplicate",bulkStatBlacklist:"Blacklisted",bulkStatInvalid:"Invalid",btnProcessing:"Processing...",btnImportValidate:"Import & Validate",toastImportDone:"Import complete:",toastFileImported:"Imported from file:",jobsTitle:"Job History & Progress (Real-time SSE)",jobsEmpty:"No scanning jobs have been run yet.",jobProgress:"Progress",jobNew:"New",jobDup:"Duplicates",jobLogs:"logs",archiveTitle:"Filtered Archive",archiveSubtitle:"Domains remain stored in local SQLite so they are never re-scanned, separated from the main Triage Queue.",tabManualCf:"Manual Check (CF)",tabBlocked:"Komdigi / ISP Blocked",tabParked:"Parked",tabDead:"Dead",searchArchivePlaceholder:"Search in archive...",loadingText:"Loading...",archiveEmpty:"No domains in this category.",colDomain:"Domain",colReasonNotes:"Reason / Notes",btnMoveQueue:"To Queue",titleMoveQueue:"Move to Triage Queue after manual verification",toastMovedQueue:"Moved to Triage Queue:",settingsTitle:"Settings",settingsSubtitle:"Configure URL copy format, scoring keywords, extractor blacklist, URLScan API key, and local TrustPositif database.",setTabGeneral:"General & API",setTabKeywords:"Scoring Keywords",setTabBlacklist:"Domain Blacklist",setTabTrustPositif:"TrustPositif & DNS",setCopyFormat:"1-Click Copy & Export Format",setCopyHttps:"https://domain.tld (with HTTPS scheme)",setCopyBare:"domain.tld (without https://)",setConcurrency:"Parallel Validation Concurrency",setTimeout:"HTTP Timeout (ms)",setUrlscanKey:"URLScan.io API Key (Optional)",setUrlscanPlaceholder:"Leave empty to use public endpoint without an API key",setLocalMarker:"Local Marker Label",btnSaveSettings:"Save Settings",btnSaving:"Saving...",toastSettingsSaved:"Settings saved",kwNewLabel:"New Keyword",kwNewPlaceholder:"e.g. slot gacor hari ini",kwCatLabel:"Category",kwWeightLabel:"Weight",btnAdd:"Add",colTerm:"Term",colCategory:"Category",colWeight:"Weight",colEnabled:"Active",colDelete:"Delete",blNewLabel:"Blacklist Domain",blNewPlaceholder:"e.g. cdn-example.com",blReasonLabel:"Reason",tpTitle:"Local TrustPositif Database",tpStored:"Stored:",tpLastSync:"Last sync:",tpNeverSynced:"Never synced yet",btnSyncTp:"Sync TrustPositif",tpSourceUrlLabel:"Blocklist Source URL (Plain / Hosts / RPZ)",tpDnsTitle:"Indonesian Filter DNS Check",tpDnsDesc:"Query an ID filtering DNS resolver to detect blocks even when using 1.1.1.1 or a VPN.",tpDnsServerLabel:"Indonesian Filter DNS IP",btnSaveConfig:"Save Configuration",toastTpSyncStarted:"TrustPositif sync started in background"},D1={appTagline:"URL Scanner & Triage",navQueue:"Triage Queue",navIntake:"Pivot & Import",navArchive:"Filtered Archive",navSettings:"Settings",liveStream:"Live stream",reconnecting:"Menghubungkan ulang",darkMode:"Dark",lightMode:"Light",closeMenu:"Tutup menu",openMenu:"Buka navigasi",languageLabel:"Bahasa",toggleThemeLabel:"Ganti tema",statusNew:"New",statusClaimed:"Diproses",statusSubmitted:"Submitted",statusValid:"Valid",statusDuplicate:"Duplicate",statusRejected:"Rejected",healthPending:"Pending",healthChecking:"Checking",healthAlive:"Alive",healthCfChallenge:"Perlu Cek Manual (CF)",healthDead:"Mati",healthParked:"Parkir",healthBlockedIsp:"Blokir ISP",healthBlockedTp:"TrustPositif",queueTitle:"Triage Queue",queueSubtitle:"Domain aktif lolos filter mati, parkir, dan blokir Komdigi — siap diverifikasi dan disubmit.",btnShortcut:"Shortcut",btnPivotImport:"Pivot / Import",summaryNew:"Siap (New)",summaryInProgress:"Diproses",summarySubmitted:"Submitted",summaryValid:"Valid",summaryManual:"Perlu Cek Manual",searchQueuePlaceholder:"Cari domain, title halaman, atau seed...",allStatuses:"Semua Status",tabAll:"Semua",allScores:"Semua Skor",score40:"Skor ≥ 40",score70:"Skor ≥ 70",sortHighestScore:"Skor Tertinggi",sortNewest:"Terbaru",sortDomainAsc:"Domain A–Z",retry:"Coba Lagi",emptyQueueTitle:"Belum ada domain di Triage Queue",emptyQueueSubtitle:"Mulai dari Seed Pivoting atau paste daftar URL di Bulk Import untuk mengisi antrean.",emptyQueueCta:"Mulai Pivot / Import",colDomainTitle:"Domain & Title",colScore:"Skor",colSignals:"Sinyal",colStatus:"Status",colActions:"Aksi",noTitle:"Tanpa judul",btnCopyMark:"Copy & Tandai",btnCopied:"Disalin",titleCopyMark:"Copy URL & Tandai Diproses (c)",titleOpenTab:"Buka di tab baru (o)",titlePivotRow:"Pivot domain ini",showingOf:"Menampilkan",of:"dari",domainsNoun:"domain",scMove:"pindah baris",scCopyMark:"Copy & Tandai",scOpenTab:"buka tab",scStatus:"submitted / valid / duplicate / rejected",scDetail:"detail inspector",toastPivotStarted:"Pivot 1-hop dimulai untuk",toastPivotFailed:"Gagal memulai pivot",toastRecheckStarted:"Re-check dimulai untuk",toastRecheckFailed:"Gagal re-check",toastCopiedMarked:"Disalin & Ditandai Diproses:",toastMarkedOnly:"Ditandai Diproses:",toastMarkFailed:"Gagal menandai domain",toastStatusFailed:"Gagal update status",toastLinkQueued:"Ditambahkan ke antrean validasi:",toastLinkSkipped:"Link sudah ada atau diblacklist",toastLinkFailed:"Gagal menambahkan link",errLoadQueue:"Gagal memuat antrean",drawerSummary:"Ringkasan Halaman",drawerTitle:"Title",drawerMetaDesc:"Meta Description",drawerHttpIp:"HTTP / IP",drawerSource:"Sumber",drawerChangeStatus:"Ubah Status Triage",drawerMatchedKw:"Kata Kunci & Sinyal Cocok",drawerNoKw:"Tidak ada kata kunci target terdeteksi.",drawerRedirects:"URL & Rantai Redirect",drawerOutbound:"Outbound & AMP Links Ditemukan",drawerNoOutbound:"Tidak ada tautan keluar relevan yang terekstrak.",drawerOpenTab:"Buka Tab",drawerPivot:"Pivot",drawerRecheck:"Re-check",drawerQueueBtn:"Antrekan",drawerClose:"Tutup detail",intakeTitle:"Pivot & Bulk Import",intakeSubtitle:"Cari domain mirror secara otomatis dari 1 seed atau paste banyak URL mentah sekaligus untuk dinormalisasi & divalidasi paralel.",pivotCardTitle:"Seed Pivoting (1-Hop OSINT)",pivotCardDesc:"Masukkan 1 URL target atau nama brand (contoh: zeus88.com atau zeus88).",pivotInputLabel:"Target URL / Nama Brand",pivotInputPlaceholder:"https://contoh-situs.com atau namabrand",pivotSourcesLabel:"Sumber OSINT",srcCrtshTitle:"CRT.sh Scraper",srcCrtshDesc:"Tarik variasi domain dari Certificate Transparency Logs.",srcUrlscanTitle:"URLScan.io API Search",srcUrlscanDesc:"Cari domain dengan IP, <title>, atau pola serupa (termasuk domain acak).",srcHtmlTitle:"HTML, Redirect & AMP Extractor",srcHtmlDesc:"Lacak redirect 301/302, amphtml, & link keluar Login/Daftar/Alternatif (auto-buang CDN & aset).",btnStarting:"Memulai...",btnStartPivot:"Mulai Seed Pivot",pivotNeedSource:"Pilih minimal 1 sumber OSINT pivot",bulkCardTitle:"Bulk Import",bulkCardDesc:"Paste banyak URL/teks mentah atau upload file .txt/.csv. Otomatis dinormalisasi & tolak duplikat.",btnUploadFile:"Upload File",bulkStatNew:"Baru",bulkStatDup:"Duplikat",bulkStatBlacklist:"Blacklist",bulkStatInvalid:"Invalid",btnProcessing:"Memproses...",btnImportValidate:"Import & Validasi",toastImportDone:"Import selesai:",toastFileImported:"Import dari file:",jobsTitle:"Riwayat & Progres Job (Real-time SSE)",jobsEmpty:"Belum ada job scanning yang dijalankan.",jobProgress:"Progres",jobNew:"Baru",jobDup:"Duplikat",jobLogs:"log",archiveTitle:"Filtered Archive",archiveSubtitle:"Domain tetap disimpan di SQLite lokal agar tidak ter-scan ulang, terpisah dari Triage Queue utama.",tabManualCf:"Perlu Cek Manual (CF)",tabBlocked:"Blokir Komdigi / ISP",tabParked:"Parkir",tabDead:"Mati",searchArchivePlaceholder:"Cari di archive...",loadingText:"Memuat...",archiveEmpty:"Tidak ada domain pada kategori ini.",colDomain:"Domain",colReasonNotes:"Alasan / Catatan",btnMoveQueue:"Ke Queue",titleMoveQueue:"Masukkan ke Triage Queue setelah cek manual",toastMovedQueue:"Dipindahkan ke Triage Queue:",settingsTitle:"Settings",settingsSubtitle:"Sesuaikan format salin URL, kata kunci skor, blacklist ekstraktor, API Key URLScan, dan database TrustPositif lokal.",setTabGeneral:"Umum & API",setTabKeywords:"Kata Kunci Skor",setTabBlacklist:"Blacklist Domain",setTabTrustPositif:"TrustPositif & DNS",setCopyFormat:"Format Copy & Export 1-Klik",setCopyHttps:"https://domain.tld (dengan skema HTTPS)",setCopyBare:"domain.tld (tanpa https://)",setConcurrency:"Concurrency Validasi Paralel",setTimeout:"HTTP Timeout (ms)",setUrlscanKey:"URLScan.io API Key (Opsional)",setUrlscanPlaceholder:"Kosongkan untuk pakai endpoint publik tanpa key",setLocalMarker:"Nama Penanda Lokal",btnSaveSettings:"Simpan Pengaturan",btnSaving:"Menyimpan...",toastSettingsSaved:"Pengaturan disimpan",kwNewLabel:"Kata Kunci Baru",kwNewPlaceholder:"mis. slot gacor hari ini",kwCatLabel:"Kategori",kwWeightLabel:"Bobot",btnAdd:"Tambah",colTerm:"Term",colCategory:"Kategori",colWeight:"Bobot",colEnabled:"Aktif",colDelete:"Hapus",blNewLabel:"Domain Blacklist",blNewPlaceholder:"mis. cdn-contoh.com",blReasonLabel:"Alasan",tpTitle:"Database TrustPositif Lokal",tpStored:"Tersimpan:",tpLastSync:"Sync terakhir:",tpNeverSynced:"Belum pernah sinkronisasi",btnSyncTp:"Sync TrustPositif",tpSourceUrlLabel:"Sumber Blocklist URL (Plain / Hosts / RPZ)",tpDnsTitle:"Cek DNS Filter Indonesia",tpDnsDesc:"Kueri DNS langsung ke resolver filter ID untuk deteksi blokir walau pakai DNS 1.1.1.1/VPN.",tpDnsServerLabel:"IP DNS Filter Indonesia",btnSaveConfig:"Simpan Konfigurasi",toastTpSyncStarted:"Sinkronisasi TrustPositif dimulai di background"},M1={appTagline:"Escáner y Triaje URL",navQueue:"Cola de Triaje",navIntake:"Pivot e Importar",navArchive:"Archivo Filtrado",navSettings:"Ajustes",liveStream:"En vivo",reconnecting:"Reconectando",darkMode:"Oscuro",lightMode:"Claro",closeMenu:"Cerrar menú",openMenu:"Abrir navegación",languageLabel:"Idioma",toggleThemeLabel:"Cambiar tema",statusNew:"Nuevo",statusClaimed:"En Progreso",statusSubmitted:"Enviado",statusValid:"Válido",statusDuplicate:"Duplicado",statusRejected:"Rechazado",healthPending:"Pendiente",healthChecking:"Verificando",healthAlive:"Activo",healthCfChallenge:"Revisión Manual (CF)",healthDead:"Inactivo",healthParked:"Aparcado",healthBlockedIsp:"Bloqueo ISP",healthBlockedTp:"TrustPositif",queueTitle:"Cola de Triaje",queueSubtitle:"Dominios activos que pasaron los filtros de inactividad, aparcado y bloqueo — listos para verificar y reportar.",btnShortcut:"Atajos",btnPivotImport:"Pivot / Importar",summaryNew:"Listo (Nuevo)",summaryInProgress:"En Progreso",summarySubmitted:"Enviado",summaryValid:"Válido",summaryManual:"Revisión Manual",searchQueuePlaceholder:"Buscar dominio, título o semilla...",allStatuses:"Todos los Estados",tabAll:"Todos",allScores:"Todas las Puntuaciones",score40:"Puntuación ≥ 40",score70:"Puntuación ≥ 70",sortHighestScore:"Mayor Puntuación",sortNewest:"Más Reciente",sortDomainAsc:"Dominio A–Z",retry:"Reintentar",emptyQueueTitle:"Aún no hay dominios en la cola",emptyQueueSubtitle:"Inicia un Seed Pivot o pega URLs en Importación Masiva para llenar la cola.",emptyQueueCta:"Iniciar Pivot / Importar",colDomainTitle:"Dominio y Título",colScore:"Puntos",colSignals:"Señales",colStatus:"Estado",colActions:"Acciones",noTitle:"Sin título",btnCopyMark:"Copiar y Marcar",btnCopied:"Copiado",titleCopyMark:"Copiar URL y marcar en progreso (c)",titleOpenTab:"Abrir en nueva pestaña (o)",titlePivotRow:"Pivotar este dominio",showingOf:"Mostrando",of:"de",domainsNoun:"dominios",scMove:"mover fila",scCopyMark:"Copiar y Marcar",scOpenTab:"abrir pestaña",scStatus:"enviado / válido / duplicado / rechazado",scDetail:"inspector de detalle",toastPivotStarted:"Pivot 1-hop iniciado para",toastPivotFailed:"Error al iniciar pivot",toastRecheckStarted:"Re-verificación iniciada para",toastRecheckFailed:"Error al re-verificar",toastCopiedMarked:"Copiado y Marcado:",toastMarkedOnly:"Marcado En Progreso:",toastMarkFailed:"Error al marcar dominio",toastStatusFailed:"Error al actualizar estado",toastLinkQueued:"Enlace añadido a la cola:",toastLinkSkipped:"El enlace ya existe o está en lista negra",toastLinkFailed:"Error al encolar enlace",errLoadQueue:"Error al cargar la cola",drawerSummary:"Resumen de Página",drawerTitle:"Título",drawerMetaDesc:"Meta Descripción",drawerHttpIp:"HTTP / IP",drawerSource:"Origen",drawerChangeStatus:"Cambiar Estado de Triaje",drawerMatchedKw:"Palabras Clave y Señales",drawerNoKw:"No se detectaron palabras clave.",drawerRedirects:"URL y Cadena de Redirección",drawerOutbound:"Enlaces Salientes y AMP",drawerNoOutbound:"No se extrajeron enlaces salientes relevantes.",drawerOpenTab:"Abrir Pestaña",drawerPivot:"Pivot",drawerRecheck:"Re-verificar",drawerQueueBtn:"Encolar",drawerClose:"Cerrar detalle",intakeTitle:"Pivot e Importación Masiva",intakeSubtitle:"Descubre dominios espejo desde 1 semilla o pega URLs en lote para normalizar y validar en paralelo.",pivotCardTitle:"Seed Pivoting (OSINT 1-Hop)",pivotCardDesc:"Introduce 1 URL objetivo o marca (ej. zeus88.com o zeus88).",pivotInputLabel:"URL Objetivo / Marca",pivotInputPlaceholder:"https://ejemplo.com o marca",pivotSourcesLabel:"Fuentes OSINT",srcCrtshTitle:"CRT.sh Scraper",srcCrtshDesc:"Extrae variaciones desde Certificate Transparency Logs.",srcUrlscanTitle:"Búsqueda URLScan.io API",srcUrlscanDesc:"Encuentra dominios con IP, <title> o patrones similares.",srcHtmlTitle:"Extractor HTML, Redirect y AMP",srcHtmlDesc:"Rastrea 301/302, amphtml y enlaces Login/Registro (filtra CDN y activos).",btnStarting:"Iniciando...",btnStartPivot:"Iniciar Seed Pivot",pivotNeedSource:"Selecciona al menos 1 fuente OSINT",bulkCardTitle:"Importación Masiva",bulkCardDesc:"Pega múltiples URLs/texto o sube un archivo .txt/.csv. Normalización y deduplicación automática.",btnUploadFile:"Subir Archivo",bulkStatNew:"Nuevos",bulkStatDup:"Duplicados",bulkStatBlacklist:"Lista Negra",bulkStatInvalid:"Inválidos",btnProcessing:"Procesando...",btnImportValidate:"Importar y Validar",toastImportDone:"Importación lista:",toastFileImported:"Importado del archivo:",jobsTitle:"Historial y Progreso de Tareas (SSE)",jobsEmpty:"Aún no se han ejecutado tareas.",jobProgress:"Progreso",jobNew:"Nuevos",jobDup:"Duplicados",jobLogs:"registros",archiveTitle:"Archivo Filtrado",archiveSubtitle:"Los dominios se conservan en SQLite local para evitar re-escaneos, separados de la cola principal.",tabManualCf:"Revisión Manual (CF)",tabBlocked:"Bloqueado Komdigi / ISP",tabParked:"Aparcado",tabDead:"Inactivo",searchArchivePlaceholder:"Buscar en archivo...",loadingText:"Cargando...",archiveEmpty:"No hay dominios en esta categoría.",colDomain:"Dominio",colReasonNotes:"Razón / Notas",btnMoveQueue:"A la Cola",titleMoveQueue:"Mover a la Cola tras revisión manual",toastMovedQueue:"Movido a la Cola de Triaje:",settingsTitle:"Ajustes",settingsSubtitle:"Configura formato de copia, palabras clave, lista negra, clave URLScan y base local TrustPositif.",setTabGeneral:"General y API",setTabKeywords:"Palabras Clave",setTabBlacklist:"Lista Negra",setTabTrustPositif:"TrustPositif y DNS",setCopyFormat:"Formato de Copia y Exportación",setCopyHttps:"https://domain.tld (con esquema HTTPS)",setCopyBare:"domain.tld (sin https://)",setConcurrency:"Concurrencia de Validación",setTimeout:"Timeout HTTP (ms)",setUrlscanKey:"URLScan.io API Key (Opcional)",setUrlscanPlaceholder:"Dejar vacío para usar endpoint público sin clave",setLocalMarker:"Etiqueta de Marcador Local",btnSaveSettings:"Guardar Ajustes",btnSaving:"Guardando...",toastSettingsSaved:"Ajustes guardados",kwNewLabel:"Nueva Palabra Clave",kwNewPlaceholder:"ej. slot gacor",kwCatLabel:"Categoría",kwWeightLabel:"Peso",btnAdd:"Añadir",colTerm:"Término",colCategory:"Categoría",colWeight:"Peso",colEnabled:"Activo",colDelete:"Eliminar",blNewLabel:"Dominio en Lista Negra",blNewPlaceholder:"ej. cdn-ejemplo.com",blReasonLabel:"Razón",tpTitle:"Base Local TrustPositif",tpStored:"Guardados:",tpLastSync:"Última sincronización:",tpNeverSynced:"Sin sincronizar",btnSyncTp:"Sincronizar TrustPositif",tpSourceUrlLabel:"URL de Lista de Bloqueo (Plain / Hosts / RPZ)",tpDnsTitle:"Verificación DNS de Filtro Indonesia",tpDnsDesc:"Consulta un DNS filtrador de Indonesia para detectar bloqueos incluso usando 1.1.1.1 o VPN.",tpDnsServerLabel:"IP DNS Filtro Indonesia",btnSaveConfig:"Guardar Configuración",toastTpSyncStarted:"Sincronización de TrustPositif iniciada en segundo plano"},A1={appTagline:"URLスキャナー & トリアージ",navQueue:"トリアージキュー",navIntake:"ピボット & インポート",navArchive:"除外アーカイブ",navSettings:"設定",liveStream:"ライブ接続中",reconnecting:"再接続中",darkMode:"ダーク",lightMode:"ライト",closeMenu:"メニューを閉じる",openMenu:"ナビゲーションを開く",languageLabel:"言語",toggleThemeLabel:"テーマ切替",statusNew:"新規",statusClaimed:"処理中",statusSubmitted:"提出済",statusValid:"有効",statusDuplicate:"重複",statusRejected:"却下",healthPending:"待機中",healthChecking:"確認中",healthAlive:"稼働中",healthCfChallenge:"手動確認 (CF)",healthDead:"応答なし",healthParked:"パーク済",healthBlockedIsp:"ISPブロック",healthBlockedTp:"TrustPositif",queueTitle:"トリアージキュー",queueSubtitle:"無効・パーク・ブロック除外を通過した稼働ドメイン一覧。確認と提出を行えます。",btnShortcut:"ショートカット",btnPivotImport:"ピボット / インポート",summaryNew:"未処理 (新規)",summaryInProgress:"処理中",summarySubmitted:"提出済",summaryValid:"有効",summaryManual:"手動確認",searchQueuePlaceholder:"ドメイン、ページタイトル、シードを検索...",allStatuses:"すべてのステータス",tabAll:"すべて",allScores:"すべてのスコア",score40:"スコア ≥ 40",score70:"スコア ≥ 70",sortHighestScore:"スコア順",sortNewest:"新着順",sortDomainAsc:"ドメイン A–Z",retry:"再試行",emptyQueueTitle:"トリアージキューにドメインがありません",emptyQueueSubtitle:"シードピボットまたは一括インポートからURLを追加してください。",emptyQueueCta:"ピボット / インポート開始",colDomainTitle:"ドメイン & タイトル",colScore:"スコア",colSignals:"シグナル",colStatus:"ステータス",colActions:"操作",noTitle:"タイトルなし",btnCopyMark:"コピー & マーク",btnCopied:"コピー済",titleCopyMark:"URLをコピーして処理中にする (c)",titleOpenTab:"新しいタブで開く (o)",titlePivotRow:"このドメインをピボット",showingOf:"表示中",of:"/",domainsNoun:"件",scMove:"行移動",scCopyMark:"コピー & マーク",scOpenTab:"タブで開く",scStatus:"提出済 / 有効 / 重複 / 却下",scDetail:"詳細インスペクター",toastPivotStarted:"1ホップピボット開始:",toastPivotFailed:"ピボット開始に失敗",toastRecheckStarted:"再チェック開始:",toastRecheckFailed:"再チェック失敗",toastCopiedMarked:"コピー & 処理中に変更:",toastMarkedOnly:"処理中に変更:",toastMarkFailed:"ステータス変更に失敗",toastStatusFailed:"ステータス更新に失敗",toastLinkQueued:"検証キューに追加:",toastLinkSkipped:"既存またはブラックリスト対象です",toastLinkFailed:"キュー追加に失敗",errLoadQueue:"キューの読み込みに失敗",drawerSummary:"ページ概要",drawerTitle:"タイトル",drawerMetaDesc:"メタ説明",drawerHttpIp:"HTTP / IP",drawerSource:"ソース",drawerChangeStatus:"トリアージステータス変更",drawerMatchedKw:"一致キーワード & シグナル",drawerNoKw:"対象キーワードは検出されませんでした。",drawerRedirects:"URL & リダイレクト経路",drawerOutbound:"抽出された外部 & AMPリンク",drawerNoOutbound:"関連する外部リンクは抽出されませんでした。",drawerOpenTab:"タブで開く",drawerPivot:"ピボット",drawerRecheck:"再チェック",drawerQueueBtn:"追加",drawerClose:"詳細を閉じる",intakeTitle:"ピボット & 一括インポート",intakeSubtitle:"1つのシードから関連ドメインを自動探索、または複数URLを一括で正規化・並列検証します。",pivotCardTitle:"シードピボット (1-Hop OSINT)",pivotCardDesc:"ターゲットURLまたはブランド名を1つ入力(例: zeus88.com または zeus88)。",pivotInputLabel:"ターゲットURL / ブランド名",pivotInputPlaceholder:"https://example-site.com またはブランド名",pivotSourcesLabel:"OSINTソース",srcCrtshTitle:"CRT.sh スクレイパー",srcCrtshDesc:"Certificate Transparencyログから関連ドメインを取得。",srcUrlscanTitle:"URLScan.io API検索",srcUrlscanDesc:"同じIP・タイトル・パターンを持つドメインを検索。",srcHtmlTitle:"HTML・リダイレクト・AMP抽出",srcHtmlDesc:"301/302・amphtml・外部リンクを追跡抽出(CDNやアセットは自動除外)。",btnStarting:"開始中...",btnStartPivot:"シードピボット開始",pivotNeedSource:"OSINTソースを1つ以上選択してください",bulkCardTitle:"一括インポート",bulkCardDesc:"複数URLやテキストを貼り付け、または .txt/.csv ファイルをアップロード。自動正規化&重複排除。",btnUploadFile:"ファイル選択",bulkStatNew:"新規",bulkStatDup:"重複",bulkStatBlacklist:"除外",bulkStatInvalid:"無効",btnProcessing:"処理中...",btnImportValidate:"インポート & 検証",toastImportDone:"インポート完了:",toastFileImported:"ファイルからインポート:",jobsTitle:"ジョブ履歴 & 進捗 (リアルタイム SSE)",jobsEmpty:"実行されたスキャンジョブはまだありません。",jobProgress:"進捗",jobNew:"新規",jobDup:"重複",jobLogs:"件ログ",archiveTitle:"除外アーカイブ",archiveSubtitle:"再スキャン防止のためローカルSQLiteに保存し、メインキューから分離しています。",tabManualCf:"手動確認 (CF)",tabBlocked:"Komdigi / ISP ブロック",tabParked:"パーク済",tabDead:"応答なし",searchArchivePlaceholder:"アーカイブ内を検索...",loadingText:"読み込み中...",archiveEmpty:"このカテゴリにドメインはありません。",colDomain:"ドメイン",colReasonNotes:"理由 / メモ",btnMoveQueue:"キューへ移動",titleMoveQueue:"手動確認後にトリアージキューへ移動",toastMovedQueue:"トリアージキューへ移動:",settingsTitle:"設定",settingsSubtitle:"コピー形式、スコアキーワード、ブラックリスト、URLScan APIキー、ローカルTrustPositif DBを設定します。",setTabGeneral:"全般 & API",setTabKeywords:"スコアキーワード",setTabBlacklist:"ブラックリスト",setTabTrustPositif:"TrustPositif & DNS",setCopyFormat:"1クリックコピー & エクスポート形式",setCopyHttps:"https://domain.tld (HTTPSスキーム付き)",setCopyBare:"domain.tld (https://なし)",setConcurrency:"並列検証数",setTimeout:"HTTP タイムアウト (ms)",setUrlscanKey:"URLScan.io APIキー(任意)",setUrlscanPlaceholder:"空欄の場合は公開エンドポイントを使用",setLocalMarker:"ローカルマーカー名",btnSaveSettings:"設定を保存",btnSaving:"保存中...",toastSettingsSaved:"設定を保存しました",kwNewLabel:"新規キーワード",kwNewPlaceholder:"例: slot gacor",kwCatLabel:"カテゴリ",kwWeightLabel:"重み",btnAdd:"追加",colTerm:"キーワード",colCategory:"カテゴリ",colWeight:"重み",colEnabled:"有効",colDelete:"削除",blNewLabel:"ブラックリストドメイン",blNewPlaceholder:"例: cdn-example.com",blReasonLabel:"理由",tpTitle:"ローカル TrustPositif データベース",tpStored:"登録数:",tpLastSync:"最終同期:",tpNeverSynced:"未同期",btnSyncTp:"TrustPositif 同期",tpSourceUrlLabel:"ブロックリストURL (Plain / Hosts / RPZ)",tpDnsTitle:"インドネシアDNSフィルタチェック",tpDnsDesc:"1.1.1.1やVPN利用時でもIDフィルタDNSへ照会しブロックを検知します。",tpDnsServerLabel:"フィルタDNS IP",btnSaveConfig:"設定を保存",toastTpSyncStarted:"バックグラウンドでTrustPositif同期を開始しました"},gv={en:z1,id:D1,es:M1,ja:A1},Tv=q.createContext(null);function O1({children:r}){const[p,N]=q.useState(()=>{const z=localStorage.getItem("urlscanner_lang");return z==="en"||z==="id"||z==="es"||z==="ja"?z:"en"});q.useEffect(()=>{localStorage.setItem("urlscanner_lang",p),document.documentElement.lang=p},[p]);const f=z=>gv[p][z]??gv.en[z];return c.jsx(Tv.Provider,{value:{lang:p,setLang:N,t:f},children:r})}function Nl(){const r=q.useContext(Tv);if(!r)throw new Error("useI18n must be used inside I18nProvider");return r}function R1({size:r=34}){return c.jsx("div",{style:{width:r,height:r},className:"flex shrink-0 items-center justify-center rounded-[9px] border border-[var(--brand-500)]/25 bg-[var(--active)]","aria-hidden":"true",children:c.jsxs("svg",{width:Math.round(r*.64),height:Math.round(r*.64),viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M4 8.5V6a2 2 0 0 1 2-2h2.5M15.5 4H18a2 2 0 0 1 2 2v2.5M20 15.5V18a2 2 0 0 1-2 2h-2.5M8.5 20H6a2 2 0 0 1-2-2v-2.5",stroke:"var(--brand-500)",strokeWidth:"2",strokeLinecap:"round"}),c.jsx("circle",{cx:"12",cy:"12",r:"4.25",stroke:"var(--text)",strokeOpacity:"0.85",strokeWidth:"1.6"}),c.jsx("ellipse",{cx:"12",cy:"12",rx:"2.1",ry:"4.25",stroke:"var(--text)",strokeOpacity:"0.55",strokeWidth:"1.3"}),c.jsx("line",{x1:"5.5",y1:"12",x2:"18.5",y2:"12",stroke:"var(--brand-500)",strokeWidth:"1.9",strokeLinecap:"round"}),c.jsx("circle",{cx:"12",cy:"12",r:"1.5",fill:"var(--brand-500)"})]})})}function U1({activeTab:r,onTabChange:p,counts:N,activeJob:f,theme:z,onToggleTheme:w,children:Z}){const[B,C]=q.useState(!1),{lang:X,setLang:D,t:x}=Nl(),L=N?N.manual_count+N.blocked_count+N.parked_count+N.dead_count:0,st=[{id:"queue",label:x("navQueue"),subtitle:x("queueSubtitle"),icon:i1,badge:N==null?void 0:N.new_count},{id:"intake",label:x("navIntake"),subtitle:x("intakeSubtitle"),icon:vn,badge:(N==null?void 0:N.pending_count)||void 0},{id:"archive",label:x("navArchive"),subtitle:x("archiveSubtitle"),icon:By,badge:L||void 0}],ht=[{id:"settings",label:x("navSettings"),subtitle:x("settingsSubtitle"),icon:p1}],_t=[...st,...ht].find(P=>P.id===r),at=P=>{p(P),C(!1)},bt=P=>{const wt=P.icon,Et=r===P.id;return c.jsxs("button",{type:"button",onClick:()=>at(P.id),className:`flex h-9 w-full items-center justify-between rounded-[10px] px-3 text-[13px] transition-all ${Et?"bg-[var(--active)] font-medium text-[var(--accent-ink)]":"font-medium text-[var(--muted)] hover:bg-[var(--surface-2)] hover:text-[var(--text)]"}`,children:[c.jsxs("span",{className:"flex items-center gap-2.5",children:[c.jsx(wt,{size:17,strokeWidth:1.8}),c.jsx("span",{children:P.label})]}),P.badge!==void 0&&P.badge>0&&c.jsx("span",{className:`num rounded-md px-1.5 py-0.5 text-[11px] font-medium ${Et?"bg-[var(--primary)] text-white":"bg-[var(--surface-2)] text-[var(--muted)]"}`,children:P.badge})]},P.id)},ct=c.jsxs("aside",{className:"bg-vibrancy flex h-full w-64 flex-col justify-between border-r border-[var(--rule)] lg:w-[264px]",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between border-b border-[var(--rule)] px-5 py-4",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(R1,{size:34}),c.jsxs("div",{className:"flex flex-col",children:[c.jsx("span",{className:"text-[16px] font-semibold leading-tight tracking-tight text-[var(--text)]",children:"URLScanner"}),c.jsx("span",{className:"mono mt-0.5 text-[11px] text-[var(--muted)]",children:"v0.1.0"})]})]}),c.jsx("button",{type:"button",onClick:()=>C(!1),className:"rounded-lg p-1.5 text-[var(--muted)] hover:bg-[var(--surface-2)] lg:hidden","aria-label":x("closeMenu"),children:c.jsx(Sv,{size:18})})]}),c.jsxs("nav",{className:"mt-3 space-y-0.5 px-3","aria-label":"Main navigation",children:[st.map(bt),c.jsxs("div",{className:"pt-4",children:[c.jsx("p",{className:"mb-1.5 px-3 text-[11px] font-semibold uppercase tracking-wider text-[var(--faint)]",children:"System"}),ht.map(bt)]})]})]}),f&&c.jsx("div",{className:"border-t border-[var(--rule)] p-4",children:c.jsxs("div",{className:"panel-section p-3",children:[c.jsxs("div",{className:"flex items-center justify-between text-[12px]",children:[c.jsxs("span",{className:"max-w-[140px] truncate font-medium text-[var(--text)]",children:[f.job_type,": ",f.target]}),c.jsxs("span",{className:"num text-[11px] font-semibold text-[var(--brand-500)]",children:[f.processed_items,"/",f.total_items||"?"]})]}),c.jsx("div",{className:"mt-2 h-1.5 w-full overflow-hidden rounded-full bg-[var(--surface-3)]",children:c.jsx("div",{className:"h-full rounded-full bg-[var(--brand-500)] transition-all duration-200",style:{width:f.total_items>0?`${Math.min(100,Math.round(f.processed_items/f.total_items*100))}%`:"35%"}})})]})})]});return c.jsxs("div",{className:"flex h-screen w-full overflow-hidden bg-[var(--ground)] text-[var(--text)]",children:[B&&c.jsxs("div",{className:"fixed inset-0 z-40 flex lg:hidden",children:[c.jsx("div",{className:"fixed inset-0 bg-black/25",onClick:()=>C(!1)}),c.jsx("div",{className:"relative z-50 h-full",children:ct})]}),c.jsx("div",{className:"hidden h-full shrink-0 lg:flex",children:ct}),c.jsxs("div",{className:"relative isolate flex h-full min-w-0 flex-1 flex-col",children:[c.jsx("header",{className:"z-20 shrink-0 border-b border-[var(--rule)] bg-[var(--surface)]/70 px-4 py-3 backdrop-blur-xl lg:bg-transparent lg:px-8 lg:pt-5 lg:pb-4 lg:backdrop-blur-none",children:c.jsxs("div",{className:"mx-auto flex w-full max-w-[1360px] items-center justify-between gap-3",children:[c.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[c.jsx("button",{type:"button",onClick:()=>C(!0),className:"btn-secondary h-9 w-9 shrink-0 px-0 lg:hidden","aria-label":x("openMenu"),children:c.jsx(s1,{size:17})}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("h1",{className:"truncate text-[18px] font-semibold tracking-tight text-[var(--text)] lg:text-[22px]",children:_t.label}),c.jsx("p",{className:"hidden truncate text-[12.5px] text-[var(--muted)] sm:block",children:_t.subtitle})]})]}),c.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[c.jsxs("div",{className:"relative flex items-center",children:[c.jsx(t1,{size:14,className:"pointer-events-none absolute left-2.5 text-[var(--muted)]"}),c.jsx("select",{value:X,onChange:P=>D(P.target.value),"aria-label":x("languageLabel"),className:"control-select h-9 max-w-[116px] pl-8 pr-6 text-[12.5px] sm:max-w-none sm:pr-7",children:C1.map(P=>c.jsx("option",{value:P.code,children:P.label},P.code))})]}),c.jsxs("button",{type:"button",onClick:w,className:"btn-secondary h-9 px-3 text-[12.5px]","aria-label":x("toggleThemeLabel"),children:[z==="light"?c.jsx(o1,{size:15}):c.jsx(T1,{size:15}),c.jsx("span",{className:"hidden sm:inline",children:x(z==="light"?"darkMode":"lightMode")})]})]})]})}),c.jsx("main",{className:"flex-1 overflow-y-auto p-4 lg:p-8",children:c.jsx("div",{className:"mx-auto w-full max-w-[1360px]",children:Z})})]})]})}function w1({toasts:r}){return r.length===0?null:c.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2",children:r.map(p=>c.jsx("div",{className:"floating-surface rounded-md px-3.5 py-2 text-[13px] font-medium text-[var(--text)]",style:{borderColor:p.tone==="error"?"var(--negative)":p.tone==="success"?"var(--positive)":"var(--border)"},children:p.text},p.id))})}function H1(r){const[p,N]=q.useState([]),[f,z]=q.useState(null),[w,Z]=q.useState(!1);return q.useEffect(()=>{const B=new EventSource("/api/jobs/stream");return B.onopen=()=>Z(!0),B.onerror=()=>Z(!1),B.addEventListener("snapshot",C=>{try{const X=JSON.parse(C.data);N(X.jobs),z(X.counts)}catch{}}),B.addEventListener("job_update",C=>{try{const X=JSON.parse(C.data);N(D=>{const x=D.findIndex(st=>st.id===X.job.id);if(x===-1)return[X.job,...D].slice(0,25);const L=[...D];return L[x]=X.job,L})}catch{}}),B.addEventListener("stats_update",C=>{try{const X=JSON.parse(C.data);z(X.counts)}catch{}}),B.addEventListener("domain_update",C=>{try{const X=JSON.parse(C.data);r==null||r(X.domain)}catch{}}),()=>{B.close()}},[r]),{jobs:p,counts:f,setCounts:z,connected:w}}function L1(){const[r,p]=q.useState(()=>localStorage.getItem("urlscanner_theme")==="dark"?"dark":"light");return q.useEffect(()=>{r==="dark"?document.documentElement.setAttribute("data-theme","dark"):document.documentElement.removeAttribute("data-theme"),localStorage.setItem("urlscanner_theme",r)},[r]),[r,()=>p(f=>f==="light"?"dark":"light")]}function Nv({score:r}){let p="var(--pill-info-bg)",N="var(--pill-info-ink)";return r>=70?(p="var(--pill-negative-bg)",N="var(--pill-negative-ink)"):r>=40&&(p="var(--pill-warning-bg)",N="var(--pill-warning-ink)"),c.jsx("span",{className:"num inline-flex min-w-[38px] items-center justify-center rounded-md px-2 py-0.5 text-[12px] font-semibold",style:{backgroundColor:p,color:N},title:`Score: ${r}/100`,children:r})}const B1={new:"statusNew",claimed:"statusClaimed",submitted:"statusSubmitted",valid:"statusValid",duplicate:"statusDuplicate",rejected:"statusRejected"},k1={pending:"healthPending",checking:"healthChecking",alive:"healthAlive",cf_challenge:"healthCfChallenge",dead:"healthDead",parked:"healthParked",blocked_isp:"healthBlockedIsp",blocked_trustpositif:"healthBlockedTp"};function Q1({status:r}){const{t:p}=Nl();let N="var(--pill-info-bg)",f="var(--pill-info-ink)";return r==="valid"?(N="var(--pill-positive-bg)",f="var(--pill-positive-ink)"):r==="claimed"||r==="submitted"?(N="var(--accent-soft)",f="var(--accent-ink)"):r==="duplicate"?(N="var(--pill-warning-bg)",f="var(--pill-warning-ink)"):r==="rejected"&&(N="var(--pill-negative-bg)",f="var(--pill-negative-ink)"),c.jsx("span",{className:"inline-flex h-5 items-center rounded-md px-2 text-[11px] font-medium",style:{backgroundColor:N,color:f},children:p(B1[r])})}function jv({status:r}){const{t:p}=Nl();let N="var(--pill-info-bg)",f="var(--pill-info-ink)";return r==="alive"?(N="var(--pill-positive-bg)",f="var(--pill-positive-ink)"):r==="cf_challenge"?(N="var(--pill-warning-bg)",f="var(--pill-warning-ink)"):(r==="blocked_isp"||r==="blocked_trustpositif")&&(N="var(--pill-negative-bg)",f="var(--pill-negative-ink)"),c.jsx("span",{className:"inline-flex h-5 items-center rounded-md px-2 text-[11px] font-medium",style:{backgroundColor:N,color:f},children:p(k1[r])})}function _v({domain:r,onClose:p,onCopyClaim:N,onStatusChange:f,onPivot:z,onRecheck:w,onQueueOutbound:Z}){const{t:B}=Nl();if(!r)return null;const C=r.final_url||`https://${r.normalized_domain}`,X=D=>({new:B("statusNew"),claimed:B("statusClaimed"),submitted:B("statusSubmitted"),valid:B("statusValid"),duplicate:B("statusDuplicate"),rejected:B("statusRejected")})[D];return c.jsxs("div",{className:"fixed inset-0 z-40 flex justify-end",children:[c.jsx("div",{className:"fixed inset-0 bg-black/30",onClick:p}),c.jsxs("aside",{className:"floating-surface relative z-50 flex h-full w-full max-w-[520px] flex-col border-l border-[var(--border)] bg-[var(--surface)]",children:[c.jsxs("div",{className:"flex items-start justify-between border-b border-[var(--border)] px-5 py-4",children:[c.jsxs("div",{className:"min-w-0 pr-3",children:[c.jsx("div",{className:"truncate text-[17px] font-semibold tracking-[-0.02em] text-[var(--text)]",children:r.normalized_domain}),c.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-2",children:[c.jsx(jv,{status:r.health_status}),c.jsx(Q1,{status:r.triage_status}),c.jsx(Nv,{score:r.confidence_score})]})]}),c.jsx("button",{type:"button",onClick:p,className:"rounded p-1.5 text-[var(--muted)] hover:bg-[var(--raised)]","aria-label":B("drawerClose"),children:c.jsx(Sv,{size:18})})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-[var(--border)] bg-[var(--ground)] px-5 py-3",children:[c.jsx("button",{type:"button",onClick:()=>N(r),className:"btn-primary h-8 px-3 text-[12px]",children:B("btnCopyMark")}),c.jsxs("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:"btn-secondary h-8 px-2.5 text-[12px]",children:[c.jsx(Mr,{size:13}),B("drawerOpenTab")]}),c.jsxs("button",{type:"button",onClick:()=>z(r),className:"btn-secondary h-8 px-2.5 text-[12px]",children:[c.jsx(vn,{size:13}),B("drawerPivot")]}),c.jsxs("button",{type:"button",onClick:()=>w(r),className:"btn-secondary h-8 px-2.5 text-[12px]",children:[c.jsx(Ar,{size:13}),B("drawerRecheck")]})]}),c.jsxs("div",{className:"flex-1 space-y-5 overflow-y-auto px-5 py-4 text-[13px]",children:[c.jsxs("section",{className:"space-y-2",children:[c.jsx("div",{className:"text-[12px] font-medium text-[var(--muted)]",children:B("drawerSummary")}),c.jsxs("div",{className:"panel-section space-y-2 p-3.5",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-[11px] text-[var(--muted)]",children:B("drawerTitle")}),c.jsx("div",{className:"font-medium text-[var(--text)]",children:r.page_title||"—"})]}),r.meta_description&&c.jsxs("div",{children:[c.jsx("div",{className:"text-[11px] text-[var(--muted)]",children:B("drawerMetaDesc")}),c.jsx("div",{className:"text-[var(--muted)]",children:r.meta_description})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-3 border-t border-[var(--rule)] pt-1",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-[11px] text-[var(--muted)]",children:B("drawerHttpIp")}),c.jsxs("div",{className:"mono num text-[12px]",children:[r.http_status??"—"," · ",r.ip_address||"—"]})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-[11px] text-[var(--muted)]",children:B("drawerSource")}),c.jsxs("div",{className:"mono truncate text-[12px]",children:[r.source_type,r.source_seed?` (${r.source_seed})`:""]})]})]}),r.detection_notes&&c.jsx("div",{className:"border-t border-[var(--rule)] pt-1 text-[12px] text-[var(--muted)]",children:r.detection_notes})]})]}),c.jsxs("section",{className:"space-y-2",children:[c.jsx("div",{className:"text-[12px] font-medium text-[var(--muted)]",children:B("drawerChangeStatus")}),c.jsx("div",{className:"flex flex-wrap gap-1.5",children:["new","claimed","submitted","valid","duplicate","rejected"].map(D=>c.jsx("button",{type:"button",onClick:()=>f(r.id,D),className:`h-7 rounded border px-2.5 text-[12px] transition-colors ${r.triage_status===D?"border-[var(--accent)] bg-[var(--accent-soft)] font-medium text-[var(--accent-ink)]":"border-[var(--border)] bg-[var(--surface)] text-[var(--muted)] hover:text-[var(--text)]"}`,children:X(D)},D))})]}),c.jsxs("section",{className:"space-y-2",children:[c.jsxs("div",{className:"text-[12px] font-medium text-[var(--muted)]",children:[B("drawerMatchedKw")," (",r.matched_keywords.length,")"]}),r.matched_keywords.length===0?c.jsx("div",{className:"rounded-md border border-dashed border-[var(--border)] p-3 text-[12px] text-[var(--muted)]",children:B("drawerNoKw")}):c.jsx("div",{className:"flex flex-wrap gap-1.5",children:r.matched_keywords.map((D,x)=>c.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded border border-[var(--border)] bg-[var(--ground)] px-2 py-1 text-[12px]",children:[c.jsx("span",{className:"font-medium text-[var(--text)]",children:D.keyword}),c.jsxs("span",{className:"mono num text-[11px] text-[var(--muted)]",children:["+",D.weight," (",D.location,")"]})]},`${D.keyword}-${x}`))})]}),c.jsxs("section",{className:"space-y-2",children:[c.jsxs("div",{className:"text-[12px] font-medium text-[var(--muted)]",children:[B("drawerRedirects")," (",r.redirect_chain.length,")"]}),c.jsxs("div",{className:"panel-section space-y-1.5 p-3.5",children:[c.jsxs("div",{className:"mono break-all text-[11px] text-[var(--muted)]",children:["Original: ",r.original_url]}),r.redirect_chain.map((D,x)=>c.jsxs("div",{className:"mono flex items-start gap-2 text-[11px] text-[var(--text)]",children:[c.jsx("span",{className:"num shrink-0 rounded bg-[var(--raised)] px-1.5 py-0.5 text-[10px]",children:D.status_code}),c.jsx("span",{className:"break-all",children:D.url})]},`${D.url}-${x}`))]})]}),c.jsxs("section",{className:"space-y-2",children:[c.jsxs("div",{className:"text-[12px] font-medium text-[var(--muted)]",children:[B("drawerOutbound")," (",r.outbound_links.length,")"]}),r.outbound_links.length===0?c.jsx("div",{className:"rounded-md border border-dashed border-[var(--border)] p-3 text-[12px] text-[var(--muted)]",children:B("drawerNoOutbound")}):c.jsx("div",{className:"divide-y divide-[var(--rule)] rounded-md border border-[var(--border)]",children:r.outbound_links.slice(0,25).map(D=>c.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-2",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx("div",{className:"truncate text-[13px] font-medium text-[var(--text)]",children:D.normalized_domain}),c.jsx("div",{className:"truncate text-[11px] text-[var(--muted)]",children:D.label})]}),c.jsxs("button",{type:"button",onClick:()=>Z(D.url,r.normalized_domain),className:"btn-secondary h-7 shrink-0 px-2 text-[11px]",children:[c.jsx(fu,{size:12}),B("drawerQueueBtn")]})]},D.normalized_domain))})]})]})]})]})}function q1({counts:r,onCountsUpdate:p,refreshTick:N,onPivot:f,onRecheck:z,notify:w}){const{t:Z}=Nl(),[B,C]=q.useState("cf_challenge"),[X,D]=q.useState(""),[x,L]=q.useState([]),[st,ht]=q.useState(!0),[_t,at]=q.useState(null),bt=q.useCallback(async()=>{ht(!0);try{const Y=await Ut.listDomains({view:"archive",health_status:B,search:X,sort:"newest",limit:200});L(Y.items),p(Y.counts)}catch(Y){w(Y instanceof Error?Y.message:"Failed to load archive","error")}finally{ht(!1)}},[B,X,w,p]);q.useEffect(()=>{bt()},[bt,N]);const ct=async Y=>{try{await Ut.updateDomain(Y.id,{health_status:"alive"}),w(`${Z("toastMovedQueue")} ${Y.normalized_domain}`,"success"),bt()}catch(G){w(G instanceof Error?G.message:"Failed to promote domain","error")}},P=async Y=>{try{const G=await Ut.claimDomain(Y.id);try{await navigator.clipboard.writeText(G.copy_text)}catch{}w(`${Z("toastCopiedMarked")} ${G.copy_text}`,"success")}catch(G){w(G instanceof Error?G.message:Z("toastMarkFailed"),"error")}},wt=async(Y,G)=>{try{const lt=await Ut.updateDomain(Y,{triage_status:G});at(lt.domain),bt()}catch(lt){w(lt instanceof Error?lt.message:Z("toastStatusFailed"),"error")}},Et=[{id:"cf_challenge",label:Z("tabManualCf"),count:r==null?void 0:r.manual_count},{id:"blocked_any",label:Z("tabBlocked"),count:r==null?void 0:r.blocked_count},{id:"parked",label:Z("tabParked"),count:r==null?void 0:r.parked_count},{id:"dead",label:Z("tabDead"),count:r==null?void 0:r.dead_count}];return c.jsxs("div",{className:"space-y-5",children:[c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 border-b border-[var(--border)]",children:[c.jsx("div",{className:"flex flex-wrap gap-1",children:Et.map(Y=>{const G=B===Y.id;return c.jsxs("button",{type:"button",onClick:()=>C(Y.id),className:`relative px-3 py-2 text-[13px] transition-colors ${G?"font-medium text-[var(--text)]":"text-[var(--muted)] hover:text-[var(--text)]"}`,children:[c.jsx("span",{children:Y.label}),Y.count!==void 0&&c.jsxs("span",{className:"num mono ml-1.5 text-[11px] text-[var(--muted)]",children:["(",Y.count,")"]}),G&&c.jsx("span",{className:"absolute bottom-0 left-0 right-0 h-[2px] rounded-full bg-[var(--brand-500)]"})]},Y.id)})}),c.jsxs("div",{className:"relative mb-2 w-full sm:w-64",children:[c.jsx(xv,{size:14,className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-[var(--faint)]"}),c.jsx("input",{type:"text",value:X,onChange:Y=>D(Y.target.value),placeholder:Z("searchArchivePlaceholder"),className:"control-input h-8 w-full pl-8 text-[12px]"})]})]}),c.jsx("div",{className:"panel overflow-hidden",children:st?c.jsx("div",{className:"px-4 py-8 text-center text-[13px] text-[var(--muted)]",children:Z("loadingText")}):x.length===0?c.jsx("div",{className:"px-4 py-10 text-center text-[13px] text-[var(--muted)]",children:Z("archiveEmpty")}):c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"w-full border-collapse text-left",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"border-b border-[var(--border)] text-[12px] font-medium text-[var(--muted)]",children:[c.jsx("th",{className:"px-4 py-2.5 font-medium",children:Z("colDomain")}),c.jsx("th",{className:"px-3 py-2.5 font-medium",children:Z("colStatus")}),c.jsx("th",{className:"px-3 py-2.5 font-medium",children:Z("colReasonNotes")}),c.jsx("th",{className:"px-4 py-2.5 text-right font-medium",children:Z("colActions")})]})}),c.jsx("tbody",{className:"divide-y divide-[var(--rule)]",children:x.map(Y=>c.jsxs("tr",{className:"hover:bg-[var(--raised)]",children:[c.jsxs("td",{className:"px-4 py-3",children:[c.jsx("button",{type:"button",onClick:()=>at(Y),className:"text-[13.5px] font-medium tracking-[-0.01em] text-[var(--text)] hover:underline",children:Y.normalized_domain}),c.jsxs("div",{className:"mt-0.5 text-[11.5px] text-[var(--muted)]",children:["HTTP ",Y.http_status??"—"," · ",Y.ip_address||"—"]})]}),c.jsx("td",{className:"px-3 py-3",children:c.jsx(jv,{status:Y.health_status})}),c.jsx("td",{className:"max-w-[340px] px-3 py-3 text-[12px] text-[var(--muted)]",children:Y.detection_notes||Y.page_title||"—"}),c.jsx("td",{className:"px-4 py-3 text-right",children:c.jsxs("div",{className:"inline-flex items-center gap-1.5",children:[Y.health_status==="cf_challenge"&&c.jsxs("button",{type:"button",onClick:()=>void ct(Y),className:"btn-secondary h-7 px-2 text-[11px]",title:Z("titleMoveQueue"),children:[c.jsx(Qy,{size:12}),Z("btnMoveQueue")]}),c.jsx("a",{href:Y.final_url||`https://${Y.normalized_domain}`,target:"_blank",rel:"noopener noreferrer",className:"btn-ghost w-7 px-0",title:Z("drawerOpenTab"),children:c.jsx(Mr,{size:13})}),c.jsx("button",{type:"button",onClick:()=>z(Y),className:"btn-ghost w-7 px-0",title:Z("drawerRecheck"),children:c.jsx(Ar,{size:13})}),c.jsx("button",{type:"button",onClick:()=>f(Y),className:"btn-ghost w-7 px-0",title:Z("drawerPivot"),children:c.jsx(vn,{size:13})})]})})]},Y.id))})]})})}),c.jsx(_v,{domain:_t,onClose:()=>at(null),onCopyClaim:Y=>void P(Y),onStatusChange:(Y,G)=>void wt(Y,G),onPivot:f,onRecheck:z,onQueueOutbound:async(Y,G)=>{await Ut.ingestBulkText(Y,G),w(Z("toastLinkQueued"))}})]})}function Y1({jobs:r,onJobStarted:p,notify:N}){const{t:f}=Nl(),[z,w]=q.useState(""),[Z,B]=q.useState(["crtsh","urlscan","html"]),[C,X]=q.useState(!1),[D,x]=q.useState(""),[L,st]=q.useState(!1),[ht,_t]=q.useState(null),[at,bt]=q.useState({}),ct=k=>{B(W=>W.includes(k)?W.filter(xt=>xt!==k):[...W,k])},P=k=>at[k.id]!==void 0?at[k.id]:k.status==="running",wt=(k,W)=>{bt(xt=>({...xt,[k]:!W}))},Et=async k=>{if(k.preventDefault(),!!z.trim()){if(Z.length===0){N(f("pivotNeedSource"),"error");return}X(!0);try{const W=await Ut.startPivot({seed:z.trim(),sources:Z});N(`${f("toastPivotStarted")} "${W.job.target}"`,"success"),w(""),p()}catch(W){N(W instanceof Error?W.message:f("toastPivotFailed"),"error")}finally{X(!1)}}},Y=async k=>{if(k.preventDefault(),!!D.trim()){st(!0);try{const W=await Ut.ingestBulkText(D);_t(W),N(`${f("toastImportDone")} ${W.inserted} ${f("bulkStatNew")}, ${W.duplicates} ${f("bulkStatDup")}`,"success"),W.inserted>0&&x(""),p()}catch(W){N(W instanceof Error?W.message:"Import failed","error")}finally{st(!1)}}},G=async k=>{var xt;const W=(xt=k.target.files)==null?void 0:xt[0];if(W){st(!0);try{const Ct=await Ut.ingestBulkFile(W);_t(Ct),N(`${f("toastFileImported")} ${W.name} (${Ct.inserted} ${f("bulkStatNew")})`,"success"),p()}catch(Ct){N(Ct instanceof Error?Ct.message:"Failed to read file","error")}finally{st(!1),k.target.value=""}}},lt=[{id:"crtsh",title:f("srcCrtshTitle"),desc:f("srcCrtshDesc")},{id:"urlscan",title:f("srcUrlscanTitle"),desc:f("srcUrlscanDesc")},{id:"html",title:f("srcHtmlTitle"),desc:f("srcHtmlDesc")}];return c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"grid grid-cols-1 items-stretch gap-5 lg:grid-cols-2",children:[c.jsxs("form",{onSubmit:k=>void Et(k),className:"panel flex flex-col justify-between p-6",children:[c.jsxs("div",{className:"space-y-5",children:[c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-[10px] border border-[var(--rule)] bg-[var(--ground)] text-[var(--brand-500)]",children:c.jsx(vn,{size:17})}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("h2",{className:"text-[15px] font-semibold text-[var(--text)]",children:f("pivotCardTitle")}),c.jsx("p",{className:"mt-0.5 text-[12.5px] leading-relaxed text-[var(--muted)]",children:f("pivotCardDesc")})]})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"seed-input",className:"mb-1.5 block text-[12.5px] font-medium text-[var(--muted)]",children:f("pivotInputLabel")}),c.jsx("input",{id:"seed-input",type:"text",value:z,onChange:k=>w(k.target.value),placeholder:f("pivotInputPlaceholder"),className:"control-input h-10 w-full text-[13.5px]"})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("div",{className:"text-[12.5px] font-medium text-[var(--muted)]",children:f("pivotSourcesLabel")}),c.jsx("div",{className:"space-y-2",children:lt.map(k=>{const W=Z.includes(k.id);return c.jsxs("button",{type:"button",onClick:()=>ct(k.id),"aria-pressed":W,className:`flex w-full items-start gap-3 rounded-[10px] border px-3.5 py-2.5 text-left transition-colors ${W?"border-[var(--brand-500)]/45 bg-[var(--active)]":"border-[var(--rule)] bg-[var(--ground)] hover:border-[var(--border)]"}`,children:[c.jsx("span",{className:`mt-0.5 flex size-[18px] shrink-0 items-center justify-center rounded-[6px] transition-colors ${W?"bg-[var(--primary)] text-white":"border border-[var(--input-border)] bg-[var(--input-bg)] text-transparent"}`,children:c.jsx(bv,{size:12,strokeWidth:2.5})}),c.jsxs("span",{className:"min-w-0",children:[c.jsx("span",{className:"block text-[13px] font-medium text-[var(--text)]",children:k.title}),c.jsx("span",{className:"mt-0.5 block text-[12px] leading-snug text-[var(--muted)]",children:k.desc})]})]},k.id)})})]})]}),c.jsx("div",{className:"mt-5 flex items-center justify-end border-t border-[var(--rule)] pt-4",children:c.jsxs("button",{type:"submit",disabled:C||!z.trim(),className:"btn-primary",children:[c.jsx(vn,{size:15}),f(C?"btnStarting":"btnStartPivot")]})})]}),c.jsxs("form",{onSubmit:k=>void Y(k),className:"panel flex flex-col justify-between p-6",children:[c.jsxs("div",{className:"flex flex-1 flex-col space-y-4",children:[c.jsxs("div",{className:"flex items-start justify-between gap-3",children:[c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-[10px] border border-[var(--rule)] bg-[var(--ground)] text-[var(--brand-500)]",children:c.jsx(n1,{size:17})}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("h2",{className:"text-[15px] font-semibold text-[var(--text)]",children:f("bulkCardTitle")}),c.jsx("p",{className:"mt-0.5 text-[12.5px] leading-relaxed text-[var(--muted)]",children:f("bulkCardDesc")})]})]}),c.jsxs("label",{className:"btn-secondary h-9 shrink-0 cursor-pointer",children:[c.jsx(Py,{size:14}),f("btnUploadFile"),c.jsx("input",{type:"file",accept:".txt,.csv,.log",onChange:k=>void G(k),className:"hidden"})]})]}),c.jsx("textarea",{value:D,onChange:k=>x(k.target.value),rows:8,placeholder:`https://www.example88.com/register?ref=1
|
|
209
|
+
*/const E1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Sv=Dt("X",E1),C1=[{code:"en",label:"EN · English"},{code:"id",label:"ID · Indonesia"},{code:"es",label:"ES · Español"},{code:"ja",label:"JA · 日本語"}],z1={appTagline:"URL Scanner & Triage",navQueue:"Triage Queue",navIntake:"Pivot & Import",navArchive:"Filtered Archive",navSettings:"Settings",liveStream:"Live stream",reconnecting:"Reconnecting",darkMode:"Dark",lightMode:"Light",closeMenu:"Close menu",openMenu:"Open navigation",languageLabel:"Language",toggleThemeLabel:"Toggle theme",statusNew:"New",statusClaimed:"In Progress",statusSubmitted:"Submitted",statusValid:"Valid",statusDuplicate:"Duplicate",statusRejected:"Rejected",healthPending:"Pending",healthChecking:"Checking",healthAlive:"Alive",healthCfChallenge:"Manual Check (CF)",healthDead:"Dead",healthParked:"Parked",healthBlockedIsp:"ISP Blocked",healthBlockedTp:"TrustPositif",queueTitle:"Triage Queue",queueSubtitle:"Active domains that passed dead, parking, and ISP/Komdigi block filters — ready to verify and submit.",btnShortcut:"Shortcut",btnPivotImport:"Pivot / Import",summaryNew:"Ready (New)",summaryInProgress:"In Progress",summarySubmitted:"Submitted",summaryValid:"Valid",summaryManual:"Manual Check",searchQueuePlaceholder:"Search domain, page title, or seed...",allStatuses:"All Statuses",tabAll:"All",allScores:"All Scores",score40:"Score ≥ 40",score70:"Score ≥ 70",sortHighestScore:"Highest Score",sortNewest:"Newest",sortDomainAsc:"Domain A–Z",retry:"Retry",emptyQueueTitle:"No domains in Triage Queue yet",emptyQueueSubtitle:"Start from Seed Pivoting or paste raw URLs in Bulk Import to populate the queue.",emptyQueueCta:"Start Pivot / Import",colDomainTitle:"Domain & Title",colScore:"Score",colSignals:"Signals",colStatus:"Status",colActions:"Actions",noTitle:"No title",btnCopyMark:"Copy & Mark",btnCopied:"Copied",titleCopyMark:"Copy URL & Mark In Progress (c)",titleOpenTab:"Open in new tab (o)",titlePivotRow:"Pivot this domain",showingOf:"Showing",of:"of",domainsNoun:"domains",scMove:"move row",scCopyMark:"Copy & Mark",scOpenTab:"open tab",scStatus:"submitted / valid / duplicate / rejected",scDetail:"detail inspector",toastPivotStarted:"1-hop pivot started for",toastPivotFailed:"Failed to start pivot",toastRecheckStarted:"Re-check started for",toastRecheckFailed:"Failed to re-check",toastCopiedMarked:"Copied & Marked:",toastMarkedOnly:"Marked In Progress:",toastMarkFailed:"Failed to mark domain",toastStatusFailed:"Failed to update status",toastLinkQueued:"Queued link(s) for validation:",toastLinkSkipped:"Link already exists or is blacklisted",toastLinkFailed:"Failed to queue link",errLoadQueue:"Failed to load queue",drawerSummary:"Page Summary",drawerTitle:"Title",drawerMetaDesc:"Meta Description",drawerHttpIp:"HTTP / IP",drawerSource:"Source",drawerChangeStatus:"Change Triage Status",drawerMatchedKw:"Matched Keywords & Signals",drawerNoKw:"No target keywords detected.",drawerRedirects:"URL & Redirect Chain",drawerOutbound:"Extracted Outbound & AMP Links",drawerNoOutbound:"No relevant outbound links extracted.",drawerOpenTab:"Open Tab",drawerPivot:"Pivot",drawerRecheck:"Re-check",drawerQueueBtn:"Queue",drawerClose:"Close detail",intakeTitle:"Pivot & Bulk Import",intakeSubtitle:"Automatically discover mirror domains from 1 seed or paste bulk URLs to normalize & validate in parallel.",pivotCardTitle:"Seed Pivoting (1-Hop OSINT)",pivotCardDesc:"Enter 1 target URL or brand name (e.g. zeus88.com or zeus88).",pivotInputLabel:"Target URL / Brand Name",pivotInputPlaceholder:"https://example-site.com or brandname",pivotSourcesLabel:"OSINT Sources",srcCrtshTitle:"CRT.sh Scraper",srcCrtshDesc:"Pull domain variations from Certificate Transparency Logs.",srcUrlscanTitle:"URLScan.io API Search",srcUrlscanDesc:"Find domains sharing similar IP, <title>, or patterns (including random names).",srcHtmlTitle:"HTML, Redirect & AMP Extractor",srcHtmlDesc:"Trace 301/302, amphtml, & outbound Login/Register/Alt links (auto-strips CDNs & assets).",btnStarting:"Starting...",btnStartPivot:"Start Seed Pivot",pivotNeedSource:"Select at least 1 OSINT pivot source",bulkCardTitle:"Bulk Import",bulkCardDesc:"Paste multiple raw URLs/text or upload a .txt/.csv file. Automatically normalized & deduplicated.",btnUploadFile:"Upload File",bulkStatNew:"New",bulkStatDup:"Duplicate",bulkStatBlacklist:"Blacklisted",bulkStatInvalid:"Invalid",btnProcessing:"Processing...",btnImportValidate:"Import & Validate",toastImportDone:"Import complete:",toastFileImported:"Imported from file:",jobsTitle:"Job History & Progress (Real-time SSE)",jobsEmpty:"No scanning jobs have been run yet.",jobProgress:"Progress",jobNew:"New",jobDup:"Duplicates",jobLogs:"logs",archiveTitle:"Filtered Archive",archiveSubtitle:"Domains remain stored in local SQLite so they are never re-scanned, separated from the main Triage Queue.",tabManualCf:"Manual Check (CF)",tabBlocked:"Komdigi / ISP Blocked",tabParked:"Parked",tabDead:"Dead",searchArchivePlaceholder:"Search in archive...",loadingText:"Loading...",archiveEmpty:"No domains in this category.",colDomain:"Domain",colReasonNotes:"Reason / Notes",btnMoveQueue:"To Queue",titleMoveQueue:"Move to Triage Queue after manual verification",toastMovedQueue:"Moved to Triage Queue:",settingsTitle:"Settings",settingsSubtitle:"Configure URL copy format, scoring keywords, extractor blacklist, URLScan API key, and local TrustPositif database.",setTabGeneral:"General & API",setTabKeywords:"Scoring Keywords",setTabBlacklist:"Domain Blacklist",setTabTrustPositif:"TrustPositif & DNS",setCopyFormat:"1-Click Copy & Export Format",setCopyHttps:"https://domain.tld (with HTTPS scheme)",setCopyBare:"domain.tld (without https://)",setConcurrency:"Parallel Validation Concurrency",setTimeout:"HTTP Timeout (ms)",setUrlscanKey:"URLScan.io API Key (Optional)",setUrlscanPlaceholder:"Leave empty to use public endpoint without an API key",setLocalMarker:"Local Marker Label",btnSaveSettings:"Save Settings",btnSaving:"Saving...",toastSettingsSaved:"Settings saved",kwNewLabel:"New Keyword",kwNewPlaceholder:"e.g. slot gacor hari ini",kwCatLabel:"Category",kwWeightLabel:"Weight",btnAdd:"Add",colTerm:"Term",colCategory:"Category",colWeight:"Weight",colEnabled:"Active",colDelete:"Delete",blNewLabel:"Blacklist Domain",blNewPlaceholder:"e.g. cdn-example.com",blReasonLabel:"Reason",tpTitle:"Local TrustPositif Database",tpStored:"Stored:",tpLastSync:"Last sync:",tpNeverSynced:"Never synced yet",btnSyncTp:"Sync TrustPositif",tpSourceUrlLabel:"Blocklist Source URL (Plain / Hosts / RPZ)",tpDnsTitle:"Indonesian Filter DNS Check",tpDnsDesc:"Query an ID filtering DNS resolver to detect blocks even when using 1.1.1.1 or a VPN.",tpDnsServerLabel:"Indonesian Filter DNS IP",btnSaveConfig:"Save Configuration",toastTpSyncStarted:"TrustPositif sync started in background"},D1={appTagline:"URL Scanner & Triage",navQueue:"Triage Queue",navIntake:"Pivot & Import",navArchive:"Filtered Archive",navSettings:"Settings",liveStream:"Live stream",reconnecting:"Menghubungkan ulang",darkMode:"Dark",lightMode:"Light",closeMenu:"Tutup menu",openMenu:"Buka navigasi",languageLabel:"Bahasa",toggleThemeLabel:"Ganti tema",statusNew:"New",statusClaimed:"Diproses",statusSubmitted:"Submitted",statusValid:"Valid",statusDuplicate:"Duplicate",statusRejected:"Rejected",healthPending:"Pending",healthChecking:"Checking",healthAlive:"Alive",healthCfChallenge:"Perlu Cek Manual (CF)",healthDead:"Mati",healthParked:"Parkir",healthBlockedIsp:"Blokir ISP",healthBlockedTp:"TrustPositif",queueTitle:"Triage Queue",queueSubtitle:"Domain aktif lolos filter mati, parkir, dan blokir Komdigi — siap diverifikasi dan disubmit.",btnShortcut:"Shortcut",btnPivotImport:"Pivot / Import",summaryNew:"Siap (New)",summaryInProgress:"Diproses",summarySubmitted:"Submitted",summaryValid:"Valid",summaryManual:"Perlu Cek Manual",searchQueuePlaceholder:"Cari domain, title halaman, atau seed...",allStatuses:"Semua Status",tabAll:"Semua",allScores:"Semua Skor",score40:"Skor ≥ 40",score70:"Skor ≥ 70",sortHighestScore:"Skor Tertinggi",sortNewest:"Terbaru",sortDomainAsc:"Domain A–Z",retry:"Coba Lagi",emptyQueueTitle:"Belum ada domain di Triage Queue",emptyQueueSubtitle:"Mulai dari Seed Pivoting atau paste daftar URL di Bulk Import untuk mengisi antrean.",emptyQueueCta:"Mulai Pivot / Import",colDomainTitle:"Domain & Title",colScore:"Skor",colSignals:"Sinyal",colStatus:"Status",colActions:"Aksi",noTitle:"Tanpa judul",btnCopyMark:"Copy & Tandai",btnCopied:"Disalin",titleCopyMark:"Copy URL & Tandai Diproses (c)",titleOpenTab:"Buka di tab baru (o)",titlePivotRow:"Pivot domain ini",showingOf:"Menampilkan",of:"dari",domainsNoun:"domain",scMove:"pindah baris",scCopyMark:"Copy & Tandai",scOpenTab:"buka tab",scStatus:"submitted / valid / duplicate / rejected",scDetail:"detail inspector",toastPivotStarted:"Pivot 1-hop dimulai untuk",toastPivotFailed:"Gagal memulai pivot",toastRecheckStarted:"Re-check dimulai untuk",toastRecheckFailed:"Gagal re-check",toastCopiedMarked:"Disalin & Ditandai Diproses:",toastMarkedOnly:"Ditandai Diproses:",toastMarkFailed:"Gagal menandai domain",toastStatusFailed:"Gagal update status",toastLinkQueued:"Ditambahkan ke antrean validasi:",toastLinkSkipped:"Link sudah ada atau diblacklist",toastLinkFailed:"Gagal menambahkan link",errLoadQueue:"Gagal memuat antrean",drawerSummary:"Ringkasan Halaman",drawerTitle:"Title",drawerMetaDesc:"Meta Description",drawerHttpIp:"HTTP / IP",drawerSource:"Sumber",drawerChangeStatus:"Ubah Status Triage",drawerMatchedKw:"Kata Kunci & Sinyal Cocok",drawerNoKw:"Tidak ada kata kunci target terdeteksi.",drawerRedirects:"URL & Rantai Redirect",drawerOutbound:"Outbound & AMP Links Ditemukan",drawerNoOutbound:"Tidak ada tautan keluar relevan yang terekstrak.",drawerOpenTab:"Buka Tab",drawerPivot:"Pivot",drawerRecheck:"Re-check",drawerQueueBtn:"Antrekan",drawerClose:"Tutup detail",intakeTitle:"Pivot & Bulk Import",intakeSubtitle:"Cari domain mirror secara otomatis dari 1 seed atau paste banyak URL mentah sekaligus untuk dinormalisasi & divalidasi paralel.",pivotCardTitle:"Seed Pivoting (1-Hop OSINT)",pivotCardDesc:"Masukkan 1 URL target atau nama brand (contoh: zeus88.com atau zeus88).",pivotInputLabel:"Target URL / Nama Brand",pivotInputPlaceholder:"https://contoh-situs.com atau namabrand",pivotSourcesLabel:"Sumber OSINT",srcCrtshTitle:"CRT.sh Scraper",srcCrtshDesc:"Tarik variasi domain dari Certificate Transparency Logs.",srcUrlscanTitle:"URLScan.io API Search",srcUrlscanDesc:"Cari domain dengan IP, <title>, atau pola serupa (termasuk domain acak).",srcHtmlTitle:"HTML, Redirect & AMP Extractor",srcHtmlDesc:"Lacak redirect 301/302, amphtml, & link keluar Login/Daftar/Alternatif (auto-buang CDN & aset).",btnStarting:"Memulai...",btnStartPivot:"Mulai Seed Pivot",pivotNeedSource:"Pilih minimal 1 sumber OSINT pivot",bulkCardTitle:"Bulk Import",bulkCardDesc:"Paste banyak URL/teks mentah atau upload file .txt/.csv. Otomatis dinormalisasi & tolak duplikat.",btnUploadFile:"Upload File",bulkStatNew:"Baru",bulkStatDup:"Duplikat",bulkStatBlacklist:"Blacklist",bulkStatInvalid:"Invalid",btnProcessing:"Memproses...",btnImportValidate:"Import & Validasi",toastImportDone:"Import selesai:",toastFileImported:"Import dari file:",jobsTitle:"Riwayat & Progres Job (Real-time SSE)",jobsEmpty:"Belum ada job scanning yang dijalankan.",jobProgress:"Progres",jobNew:"Baru",jobDup:"Duplikat",jobLogs:"log",archiveTitle:"Filtered Archive",archiveSubtitle:"Domain tetap disimpan di SQLite lokal agar tidak ter-scan ulang, terpisah dari Triage Queue utama.",tabManualCf:"Perlu Cek Manual (CF)",tabBlocked:"Blokir Komdigi / ISP",tabParked:"Parkir",tabDead:"Mati",searchArchivePlaceholder:"Cari di archive...",loadingText:"Memuat...",archiveEmpty:"Tidak ada domain pada kategori ini.",colDomain:"Domain",colReasonNotes:"Alasan / Catatan",btnMoveQueue:"Ke Queue",titleMoveQueue:"Masukkan ke Triage Queue setelah cek manual",toastMovedQueue:"Dipindahkan ke Triage Queue:",settingsTitle:"Settings",settingsSubtitle:"Sesuaikan format salin URL, kata kunci skor, blacklist ekstraktor, API Key URLScan, dan database TrustPositif lokal.",setTabGeneral:"Umum & API",setTabKeywords:"Kata Kunci Skor",setTabBlacklist:"Blacklist Domain",setTabTrustPositif:"TrustPositif & DNS",setCopyFormat:"Format Copy & Export 1-Klik",setCopyHttps:"https://domain.tld (dengan skema HTTPS)",setCopyBare:"domain.tld (tanpa https://)",setConcurrency:"Concurrency Validasi Paralel",setTimeout:"HTTP Timeout (ms)",setUrlscanKey:"URLScan.io API Key (Opsional)",setUrlscanPlaceholder:"Kosongkan untuk pakai endpoint publik tanpa key",setLocalMarker:"Nama Penanda Lokal",btnSaveSettings:"Simpan Pengaturan",btnSaving:"Menyimpan...",toastSettingsSaved:"Pengaturan disimpan",kwNewLabel:"Kata Kunci Baru",kwNewPlaceholder:"mis. slot gacor hari ini",kwCatLabel:"Kategori",kwWeightLabel:"Bobot",btnAdd:"Tambah",colTerm:"Term",colCategory:"Kategori",colWeight:"Bobot",colEnabled:"Aktif",colDelete:"Hapus",blNewLabel:"Domain Blacklist",blNewPlaceholder:"mis. cdn-contoh.com",blReasonLabel:"Alasan",tpTitle:"Database TrustPositif Lokal",tpStored:"Tersimpan:",tpLastSync:"Sync terakhir:",tpNeverSynced:"Belum pernah sinkronisasi",btnSyncTp:"Sync TrustPositif",tpSourceUrlLabel:"Sumber Blocklist URL (Plain / Hosts / RPZ)",tpDnsTitle:"Cek DNS Filter Indonesia",tpDnsDesc:"Kueri DNS langsung ke resolver filter ID untuk deteksi blokir walau pakai DNS 1.1.1.1/VPN.",tpDnsServerLabel:"IP DNS Filter Indonesia",btnSaveConfig:"Simpan Konfigurasi",toastTpSyncStarted:"Sinkronisasi TrustPositif dimulai di background"},M1={appTagline:"Escáner y Triaje URL",navQueue:"Cola de Triaje",navIntake:"Pivot e Importar",navArchive:"Archivo Filtrado",navSettings:"Ajustes",liveStream:"En vivo",reconnecting:"Reconectando",darkMode:"Oscuro",lightMode:"Claro",closeMenu:"Cerrar menú",openMenu:"Abrir navegación",languageLabel:"Idioma",toggleThemeLabel:"Cambiar tema",statusNew:"Nuevo",statusClaimed:"En Progreso",statusSubmitted:"Enviado",statusValid:"Válido",statusDuplicate:"Duplicado",statusRejected:"Rechazado",healthPending:"Pendiente",healthChecking:"Verificando",healthAlive:"Activo",healthCfChallenge:"Revisión Manual (CF)",healthDead:"Inactivo",healthParked:"Aparcado",healthBlockedIsp:"Bloqueo ISP",healthBlockedTp:"TrustPositif",queueTitle:"Cola de Triaje",queueSubtitle:"Dominios activos que pasaron los filtros de inactividad, aparcado y bloqueo — listos para verificar y reportar.",btnShortcut:"Atajos",btnPivotImport:"Pivot / Importar",summaryNew:"Listo (Nuevo)",summaryInProgress:"En Progreso",summarySubmitted:"Enviado",summaryValid:"Válido",summaryManual:"Revisión Manual",searchQueuePlaceholder:"Buscar dominio, título o semilla...",allStatuses:"Todos los Estados",tabAll:"Todos",allScores:"Todas las Puntuaciones",score40:"Puntuación ≥ 40",score70:"Puntuación ≥ 70",sortHighestScore:"Mayor Puntuación",sortNewest:"Más Reciente",sortDomainAsc:"Dominio A–Z",retry:"Reintentar",emptyQueueTitle:"Aún no hay dominios en la cola",emptyQueueSubtitle:"Inicia un Seed Pivot o pega URLs en Importación Masiva para llenar la cola.",emptyQueueCta:"Iniciar Pivot / Importar",colDomainTitle:"Dominio y Título",colScore:"Puntos",colSignals:"Señales",colStatus:"Estado",colActions:"Acciones",noTitle:"Sin título",btnCopyMark:"Copiar y Marcar",btnCopied:"Copiado",titleCopyMark:"Copiar URL y marcar en progreso (c)",titleOpenTab:"Abrir en nueva pestaña (o)",titlePivotRow:"Pivotar este dominio",showingOf:"Mostrando",of:"de",domainsNoun:"dominios",scMove:"mover fila",scCopyMark:"Copiar y Marcar",scOpenTab:"abrir pestaña",scStatus:"enviado / válido / duplicado / rechazado",scDetail:"inspector de detalle",toastPivotStarted:"Pivot 1-hop iniciado para",toastPivotFailed:"Error al iniciar pivot",toastRecheckStarted:"Re-verificación iniciada para",toastRecheckFailed:"Error al re-verificar",toastCopiedMarked:"Copiado y Marcado:",toastMarkedOnly:"Marcado En Progreso:",toastMarkFailed:"Error al marcar dominio",toastStatusFailed:"Error al actualizar estado",toastLinkQueued:"Enlace añadido a la cola:",toastLinkSkipped:"El enlace ya existe o está en lista negra",toastLinkFailed:"Error al encolar enlace",errLoadQueue:"Error al cargar la cola",drawerSummary:"Resumen de Página",drawerTitle:"Título",drawerMetaDesc:"Meta Descripción",drawerHttpIp:"HTTP / IP",drawerSource:"Origen",drawerChangeStatus:"Cambiar Estado de Triaje",drawerMatchedKw:"Palabras Clave y Señales",drawerNoKw:"No se detectaron palabras clave.",drawerRedirects:"URL y Cadena de Redirección",drawerOutbound:"Enlaces Salientes y AMP",drawerNoOutbound:"No se extrajeron enlaces salientes relevantes.",drawerOpenTab:"Abrir Pestaña",drawerPivot:"Pivot",drawerRecheck:"Re-verificar",drawerQueueBtn:"Encolar",drawerClose:"Cerrar detalle",intakeTitle:"Pivot e Importación Masiva",intakeSubtitle:"Descubre dominios espejo desde 1 semilla o pega URLs en lote para normalizar y validar en paralelo.",pivotCardTitle:"Seed Pivoting (OSINT 1-Hop)",pivotCardDesc:"Introduce 1 URL objetivo o marca (ej. zeus88.com o zeus88).",pivotInputLabel:"URL Objetivo / Marca",pivotInputPlaceholder:"https://ejemplo.com o marca",pivotSourcesLabel:"Fuentes OSINT",srcCrtshTitle:"CRT.sh Scraper",srcCrtshDesc:"Extrae variaciones desde Certificate Transparency Logs.",srcUrlscanTitle:"Búsqueda URLScan.io API",srcUrlscanDesc:"Encuentra dominios con IP, <title> o patrones similares.",srcHtmlTitle:"Extractor HTML, Redirect y AMP",srcHtmlDesc:"Rastrea 301/302, amphtml y enlaces Login/Registro (filtra CDN y activos).",btnStarting:"Iniciando...",btnStartPivot:"Iniciar Seed Pivot",pivotNeedSource:"Selecciona al menos 1 fuente OSINT",bulkCardTitle:"Importación Masiva",bulkCardDesc:"Pega múltiples URLs/texto o sube un archivo .txt/.csv. Normalización y deduplicación automática.",btnUploadFile:"Subir Archivo",bulkStatNew:"Nuevos",bulkStatDup:"Duplicados",bulkStatBlacklist:"Lista Negra",bulkStatInvalid:"Inválidos",btnProcessing:"Procesando...",btnImportValidate:"Importar y Validar",toastImportDone:"Importación lista:",toastFileImported:"Importado del archivo:",jobsTitle:"Historial y Progreso de Tareas (SSE)",jobsEmpty:"Aún no se han ejecutado tareas.",jobProgress:"Progreso",jobNew:"Nuevos",jobDup:"Duplicados",jobLogs:"registros",archiveTitle:"Archivo Filtrado",archiveSubtitle:"Los dominios se conservan en SQLite local para evitar re-escaneos, separados de la cola principal.",tabManualCf:"Revisión Manual (CF)",tabBlocked:"Bloqueado Komdigi / ISP",tabParked:"Aparcado",tabDead:"Inactivo",searchArchivePlaceholder:"Buscar en archivo...",loadingText:"Cargando...",archiveEmpty:"No hay dominios en esta categoría.",colDomain:"Dominio",colReasonNotes:"Razón / Notas",btnMoveQueue:"A la Cola",titleMoveQueue:"Mover a la Cola tras revisión manual",toastMovedQueue:"Movido a la Cola de Triaje:",settingsTitle:"Ajustes",settingsSubtitle:"Configura formato de copia, palabras clave, lista negra, clave URLScan y base local TrustPositif.",setTabGeneral:"General y API",setTabKeywords:"Palabras Clave",setTabBlacklist:"Lista Negra",setTabTrustPositif:"TrustPositif y DNS",setCopyFormat:"Formato de Copia y Exportación",setCopyHttps:"https://domain.tld (con esquema HTTPS)",setCopyBare:"domain.tld (sin https://)",setConcurrency:"Concurrencia de Validación",setTimeout:"Timeout HTTP (ms)",setUrlscanKey:"URLScan.io API Key (Opcional)",setUrlscanPlaceholder:"Dejar vacío para usar endpoint público sin clave",setLocalMarker:"Etiqueta de Marcador Local",btnSaveSettings:"Guardar Ajustes",btnSaving:"Guardando...",toastSettingsSaved:"Ajustes guardados",kwNewLabel:"Nueva Palabra Clave",kwNewPlaceholder:"ej. slot gacor",kwCatLabel:"Categoría",kwWeightLabel:"Peso",btnAdd:"Añadir",colTerm:"Término",colCategory:"Categoría",colWeight:"Peso",colEnabled:"Activo",colDelete:"Eliminar",blNewLabel:"Dominio en Lista Negra",blNewPlaceholder:"ej. cdn-ejemplo.com",blReasonLabel:"Razón",tpTitle:"Base Local TrustPositif",tpStored:"Guardados:",tpLastSync:"Última sincronización:",tpNeverSynced:"Sin sincronizar",btnSyncTp:"Sincronizar TrustPositif",tpSourceUrlLabel:"URL de Lista de Bloqueo (Plain / Hosts / RPZ)",tpDnsTitle:"Verificación DNS de Filtro Indonesia",tpDnsDesc:"Consulta un DNS filtrador de Indonesia para detectar bloqueos incluso usando 1.1.1.1 o VPN.",tpDnsServerLabel:"IP DNS Filtro Indonesia",btnSaveConfig:"Guardar Configuración",toastTpSyncStarted:"Sincronización de TrustPositif iniciada en segundo plano"},A1={appTagline:"URLスキャナー & トリアージ",navQueue:"トリアージキュー",navIntake:"ピボット & インポート",navArchive:"除外アーカイブ",navSettings:"設定",liveStream:"ライブ接続中",reconnecting:"再接続中",darkMode:"ダーク",lightMode:"ライト",closeMenu:"メニューを閉じる",openMenu:"ナビゲーションを開く",languageLabel:"言語",toggleThemeLabel:"テーマ切替",statusNew:"新規",statusClaimed:"処理中",statusSubmitted:"提出済",statusValid:"有効",statusDuplicate:"重複",statusRejected:"却下",healthPending:"待機中",healthChecking:"確認中",healthAlive:"稼働中",healthCfChallenge:"手動確認 (CF)",healthDead:"応答なし",healthParked:"パーク済",healthBlockedIsp:"ISPブロック",healthBlockedTp:"TrustPositif",queueTitle:"トリアージキュー",queueSubtitle:"無効・パーク・ブロック除外を通過した稼働ドメイン一覧。確認と提出を行えます。",btnShortcut:"ショートカット",btnPivotImport:"ピボット / インポート",summaryNew:"未処理 (新規)",summaryInProgress:"処理中",summarySubmitted:"提出済",summaryValid:"有効",summaryManual:"手動確認",searchQueuePlaceholder:"ドメイン、ページタイトル、シードを検索...",allStatuses:"すべてのステータス",tabAll:"すべて",allScores:"すべてのスコア",score40:"スコア ≥ 40",score70:"スコア ≥ 70",sortHighestScore:"スコア順",sortNewest:"新着順",sortDomainAsc:"ドメイン A–Z",retry:"再試行",emptyQueueTitle:"トリアージキューにドメインがありません",emptyQueueSubtitle:"シードピボットまたは一括インポートからURLを追加してください。",emptyQueueCta:"ピボット / インポート開始",colDomainTitle:"ドメイン & タイトル",colScore:"スコア",colSignals:"シグナル",colStatus:"ステータス",colActions:"操作",noTitle:"タイトルなし",btnCopyMark:"コピー & マーク",btnCopied:"コピー済",titleCopyMark:"URLをコピーして処理中にする (c)",titleOpenTab:"新しいタブで開く (o)",titlePivotRow:"このドメインをピボット",showingOf:"表示中",of:"/",domainsNoun:"件",scMove:"行移動",scCopyMark:"コピー & マーク",scOpenTab:"タブで開く",scStatus:"提出済 / 有効 / 重複 / 却下",scDetail:"詳細インスペクター",toastPivotStarted:"1ホップピボット開始:",toastPivotFailed:"ピボット開始に失敗",toastRecheckStarted:"再チェック開始:",toastRecheckFailed:"再チェック失敗",toastCopiedMarked:"コピー & 処理中に変更:",toastMarkedOnly:"処理中に変更:",toastMarkFailed:"ステータス変更に失敗",toastStatusFailed:"ステータス更新に失敗",toastLinkQueued:"検証キューに追加:",toastLinkSkipped:"既存またはブラックリスト対象です",toastLinkFailed:"キュー追加に失敗",errLoadQueue:"キューの読み込みに失敗",drawerSummary:"ページ概要",drawerTitle:"タイトル",drawerMetaDesc:"メタ説明",drawerHttpIp:"HTTP / IP",drawerSource:"ソース",drawerChangeStatus:"トリアージステータス変更",drawerMatchedKw:"一致キーワード & シグナル",drawerNoKw:"対象キーワードは検出されませんでした。",drawerRedirects:"URL & リダイレクト経路",drawerOutbound:"抽出された外部 & AMPリンク",drawerNoOutbound:"関連する外部リンクは抽出されませんでした。",drawerOpenTab:"タブで開く",drawerPivot:"ピボット",drawerRecheck:"再チェック",drawerQueueBtn:"追加",drawerClose:"詳細を閉じる",intakeTitle:"ピボット & 一括インポート",intakeSubtitle:"1つのシードから関連ドメインを自動探索、または複数URLを一括で正規化・並列検証します。",pivotCardTitle:"シードピボット (1-Hop OSINT)",pivotCardDesc:"ターゲットURLまたはブランド名を1つ入力(例: zeus88.com または zeus88)。",pivotInputLabel:"ターゲットURL / ブランド名",pivotInputPlaceholder:"https://example-site.com またはブランド名",pivotSourcesLabel:"OSINTソース",srcCrtshTitle:"CRT.sh スクレイパー",srcCrtshDesc:"Certificate Transparencyログから関連ドメインを取得。",srcUrlscanTitle:"URLScan.io API検索",srcUrlscanDesc:"同じIP・タイトル・パターンを持つドメインを検索。",srcHtmlTitle:"HTML・リダイレクト・AMP抽出",srcHtmlDesc:"301/302・amphtml・外部リンクを追跡抽出(CDNやアセットは自動除外)。",btnStarting:"開始中...",btnStartPivot:"シードピボット開始",pivotNeedSource:"OSINTソースを1つ以上選択してください",bulkCardTitle:"一括インポート",bulkCardDesc:"複数URLやテキストを貼り付け、または .txt/.csv ファイルをアップロード。自動正規化&重複排除。",btnUploadFile:"ファイル選択",bulkStatNew:"新規",bulkStatDup:"重複",bulkStatBlacklist:"除外",bulkStatInvalid:"無効",btnProcessing:"処理中...",btnImportValidate:"インポート & 検証",toastImportDone:"インポート完了:",toastFileImported:"ファイルからインポート:",jobsTitle:"ジョブ履歴 & 進捗 (リアルタイム SSE)",jobsEmpty:"実行されたスキャンジョブはまだありません。",jobProgress:"進捗",jobNew:"新規",jobDup:"重複",jobLogs:"件ログ",archiveTitle:"除外アーカイブ",archiveSubtitle:"再スキャン防止のためローカルSQLiteに保存し、メインキューから分離しています。",tabManualCf:"手動確認 (CF)",tabBlocked:"Komdigi / ISP ブロック",tabParked:"パーク済",tabDead:"応答なし",searchArchivePlaceholder:"アーカイブ内を検索...",loadingText:"読み込み中...",archiveEmpty:"このカテゴリにドメインはありません。",colDomain:"ドメイン",colReasonNotes:"理由 / メモ",btnMoveQueue:"キューへ移動",titleMoveQueue:"手動確認後にトリアージキューへ移動",toastMovedQueue:"トリアージキューへ移動:",settingsTitle:"設定",settingsSubtitle:"コピー形式、スコアキーワード、ブラックリスト、URLScan APIキー、ローカルTrustPositif DBを設定します。",setTabGeneral:"全般 & API",setTabKeywords:"スコアキーワード",setTabBlacklist:"ブラックリスト",setTabTrustPositif:"TrustPositif & DNS",setCopyFormat:"1クリックコピー & エクスポート形式",setCopyHttps:"https://domain.tld (HTTPSスキーム付き)",setCopyBare:"domain.tld (https://なし)",setConcurrency:"並列検証数",setTimeout:"HTTP タイムアウト (ms)",setUrlscanKey:"URLScan.io APIキー(任意)",setUrlscanPlaceholder:"空欄の場合は公開エンドポイントを使用",setLocalMarker:"ローカルマーカー名",btnSaveSettings:"設定を保存",btnSaving:"保存中...",toastSettingsSaved:"設定を保存しました",kwNewLabel:"新規キーワード",kwNewPlaceholder:"例: slot gacor",kwCatLabel:"カテゴリ",kwWeightLabel:"重み",btnAdd:"追加",colTerm:"キーワード",colCategory:"カテゴリ",colWeight:"重み",colEnabled:"有効",colDelete:"削除",blNewLabel:"ブラックリストドメイン",blNewPlaceholder:"例: cdn-example.com",blReasonLabel:"理由",tpTitle:"ローカル TrustPositif データベース",tpStored:"登録数:",tpLastSync:"最終同期:",tpNeverSynced:"未同期",btnSyncTp:"TrustPositif 同期",tpSourceUrlLabel:"ブロックリストURL (Plain / Hosts / RPZ)",tpDnsTitle:"インドネシアDNSフィルタチェック",tpDnsDesc:"1.1.1.1やVPN利用時でもIDフィルタDNSへ照会しブロックを検知します。",tpDnsServerLabel:"フィルタDNS IP",btnSaveConfig:"設定を保存",toastTpSyncStarted:"バックグラウンドでTrustPositif同期を開始しました"},gv={en:z1,id:D1,es:M1,ja:A1},Tv=q.createContext(null);function O1({children:r}){const[p,N]=q.useState(()=>{const z=localStorage.getItem("urlscanner_lang");return z==="en"||z==="id"||z==="es"||z==="ja"?z:"en"});q.useEffect(()=>{localStorage.setItem("urlscanner_lang",p),document.documentElement.lang=p},[p]);const f=z=>gv[p][z]??gv.en[z];return c.jsx(Tv.Provider,{value:{lang:p,setLang:N,t:f},children:r})}function Nl(){const r=q.useContext(Tv);if(!r)throw new Error("useI18n must be used inside I18nProvider");return r}function R1({size:r=34}){return c.jsx("div",{style:{width:r,height:r},className:"flex shrink-0 items-center justify-center rounded-[9px] border border-[var(--brand-500)]/25 bg-[var(--active)]","aria-hidden":"true",children:c.jsxs("svg",{width:Math.round(r*.64),height:Math.round(r*.64),viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M4 8.5V6a2 2 0 0 1 2-2h2.5M15.5 4H18a2 2 0 0 1 2 2v2.5M20 15.5V18a2 2 0 0 1-2 2h-2.5M8.5 20H6a2 2 0 0 1-2-2v-2.5",stroke:"var(--brand-500)",strokeWidth:"2",strokeLinecap:"round"}),c.jsx("circle",{cx:"12",cy:"12",r:"4.25",stroke:"var(--text)",strokeOpacity:"0.85",strokeWidth:"1.6"}),c.jsx("ellipse",{cx:"12",cy:"12",rx:"2.1",ry:"4.25",stroke:"var(--text)",strokeOpacity:"0.55",strokeWidth:"1.3"}),c.jsx("line",{x1:"5.5",y1:"12",x2:"18.5",y2:"12",stroke:"var(--brand-500)",strokeWidth:"1.9",strokeLinecap:"round"}),c.jsx("circle",{cx:"12",cy:"12",r:"1.5",fill:"var(--brand-500)"})]})})}function U1({activeTab:r,onTabChange:p,counts:N,activeJob:f,theme:z,onToggleTheme:w,children:Z}){const[B,C]=q.useState(!1),{lang:X,setLang:D,t:x}=Nl(),L=N?N.manual_count+N.blocked_count+N.parked_count+N.dead_count:0,st=[{id:"queue",label:x("navQueue"),subtitle:x("queueSubtitle"),icon:i1,badge:N==null?void 0:N.new_count},{id:"intake",label:x("navIntake"),subtitle:x("intakeSubtitle"),icon:vn,badge:(N==null?void 0:N.pending_count)||void 0},{id:"archive",label:x("navArchive"),subtitle:x("archiveSubtitle"),icon:By,badge:L||void 0}],ht=[{id:"settings",label:x("navSettings"),subtitle:x("settingsSubtitle"),icon:p1}],_t=[...st,...ht].find(P=>P.id===r),at=P=>{p(P),C(!1)},bt=P=>{const wt=P.icon,Et=r===P.id;return c.jsxs("button",{type:"button",onClick:()=>at(P.id),className:`flex h-9 w-full items-center justify-between rounded-[10px] px-3 text-[13px] transition-all ${Et?"bg-[var(--active)] font-medium text-[var(--accent-ink)]":"font-medium text-[var(--muted)] hover:bg-[var(--surface-2)] hover:text-[var(--text)]"}`,children:[c.jsxs("span",{className:"flex items-center gap-2.5",children:[c.jsx(wt,{size:17,strokeWidth:1.8}),c.jsx("span",{children:P.label})]}),P.badge!==void 0&&P.badge>0&&c.jsx("span",{className:`num rounded-md px-1.5 py-0.5 text-[11px] font-medium ${Et?"bg-[var(--primary)] text-white":"bg-[var(--surface-2)] text-[var(--muted)]"}`,children:P.badge})]},P.id)},ct=c.jsxs("aside",{className:"bg-vibrancy flex h-full w-64 flex-col justify-between border-r border-[var(--rule)] lg:w-[264px]",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between border-b border-[var(--rule)] px-5 py-4",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(R1,{size:34}),c.jsxs("div",{className:"flex flex-col",children:[c.jsx("span",{className:"text-[16px] font-semibold leading-tight tracking-tight text-[var(--text)]",children:"URLScanner"}),c.jsxs("span",{className:"mono mt-0.5 text-[11px] text-[var(--muted)]",children:["v","1.0.0"]})]})]}),c.jsx("button",{type:"button",onClick:()=>C(!1),className:"rounded-lg p-1.5 text-[var(--muted)] hover:bg-[var(--surface-2)] lg:hidden","aria-label":x("closeMenu"),children:c.jsx(Sv,{size:18})})]}),c.jsxs("nav",{className:"mt-3 space-y-0.5 px-3","aria-label":"Main navigation",children:[st.map(bt),c.jsxs("div",{className:"pt-4",children:[c.jsx("p",{className:"mb-1.5 px-3 text-[11px] font-semibold uppercase tracking-wider text-[var(--faint)]",children:"System"}),ht.map(bt)]})]})]}),f&&c.jsx("div",{className:"border-t border-[var(--rule)] p-4",children:c.jsxs("div",{className:"panel-section p-3",children:[c.jsxs("div",{className:"flex items-center justify-between text-[12px]",children:[c.jsxs("span",{className:"max-w-[140px] truncate font-medium text-[var(--text)]",children:[f.job_type,": ",f.target]}),c.jsxs("span",{className:"num text-[11px] font-semibold text-[var(--brand-500)]",children:[f.processed_items,"/",f.total_items||"?"]})]}),c.jsx("div",{className:"mt-2 h-1.5 w-full overflow-hidden rounded-full bg-[var(--surface-3)]",children:c.jsx("div",{className:"h-full rounded-full bg-[var(--brand-500)] transition-all duration-200",style:{width:f.total_items>0?`${Math.min(100,Math.round(f.processed_items/f.total_items*100))}%`:"35%"}})})]})})]});return c.jsxs("div",{className:"flex h-screen w-full overflow-hidden bg-[var(--ground)] text-[var(--text)]",children:[B&&c.jsxs("div",{className:"fixed inset-0 z-40 flex lg:hidden",children:[c.jsx("div",{className:"fixed inset-0 bg-black/25",onClick:()=>C(!1)}),c.jsx("div",{className:"relative z-50 h-full",children:ct})]}),c.jsx("div",{className:"hidden h-full shrink-0 lg:flex",children:ct}),c.jsxs("div",{className:"relative isolate flex h-full min-w-0 flex-1 flex-col",children:[c.jsx("header",{className:"z-20 shrink-0 border-b border-[var(--rule)] bg-[var(--surface)]/70 px-4 py-3 backdrop-blur-xl lg:bg-transparent lg:px-8 lg:pt-5 lg:pb-4 lg:backdrop-blur-none",children:c.jsxs("div",{className:"mx-auto flex w-full max-w-[1360px] items-center justify-between gap-3",children:[c.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[c.jsx("button",{type:"button",onClick:()=>C(!0),className:"btn-secondary h-9 w-9 shrink-0 px-0 lg:hidden","aria-label":x("openMenu"),children:c.jsx(s1,{size:17})}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("h1",{className:"truncate text-[18px] font-semibold tracking-tight text-[var(--text)] lg:text-[22px]",children:_t.label}),c.jsx("p",{className:"hidden truncate text-[12.5px] text-[var(--muted)] sm:block",children:_t.subtitle})]})]}),c.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[c.jsxs("div",{className:"relative flex items-center",children:[c.jsx(t1,{size:14,className:"pointer-events-none absolute left-2.5 text-[var(--muted)]"}),c.jsx("select",{value:X,onChange:P=>D(P.target.value),"aria-label":x("languageLabel"),className:"control-select h-9 max-w-[116px] pl-8 pr-6 text-[12.5px] sm:max-w-none sm:pr-7",children:C1.map(P=>c.jsx("option",{value:P.code,children:P.label},P.code))})]}),c.jsxs("button",{type:"button",onClick:w,className:"btn-secondary h-9 px-3 text-[12.5px]","aria-label":x("toggleThemeLabel"),children:[z==="light"?c.jsx(o1,{size:15}):c.jsx(T1,{size:15}),c.jsx("span",{className:"hidden sm:inline",children:x(z==="light"?"darkMode":"lightMode")})]})]})]})}),c.jsx("main",{className:"flex-1 overflow-y-auto p-4 lg:p-8",children:c.jsx("div",{className:"mx-auto w-full max-w-[1360px]",children:Z})})]})]})}function w1({toasts:r}){return r.length===0?null:c.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2",children:r.map(p=>c.jsx("div",{className:"floating-surface rounded-md px-3.5 py-2 text-[13px] font-medium text-[var(--text)]",style:{borderColor:p.tone==="error"?"var(--negative)":p.tone==="success"?"var(--positive)":"var(--border)"},children:p.text},p.id))})}function H1(r){const[p,N]=q.useState([]),[f,z]=q.useState(null),[w,Z]=q.useState(!1);return q.useEffect(()=>{const B=new EventSource("/api/jobs/stream");return B.onopen=()=>Z(!0),B.onerror=()=>Z(!1),B.addEventListener("snapshot",C=>{try{const X=JSON.parse(C.data);N(X.jobs),z(X.counts)}catch{}}),B.addEventListener("job_update",C=>{try{const X=JSON.parse(C.data);N(D=>{const x=D.findIndex(st=>st.id===X.job.id);if(x===-1)return[X.job,...D].slice(0,25);const L=[...D];return L[x]=X.job,L})}catch{}}),B.addEventListener("stats_update",C=>{try{const X=JSON.parse(C.data);z(X.counts)}catch{}}),B.addEventListener("domain_update",C=>{try{const X=JSON.parse(C.data);r==null||r(X.domain)}catch{}}),()=>{B.close()}},[r]),{jobs:p,counts:f,setCounts:z,connected:w}}function L1(){const[r,p]=q.useState(()=>localStorage.getItem("urlscanner_theme")==="dark"?"dark":"light");return q.useEffect(()=>{r==="dark"?document.documentElement.setAttribute("data-theme","dark"):document.documentElement.removeAttribute("data-theme"),localStorage.setItem("urlscanner_theme",r)},[r]),[r,()=>p(f=>f==="light"?"dark":"light")]}function Nv({score:r}){let p="var(--pill-info-bg)",N="var(--pill-info-ink)";return r>=70?(p="var(--pill-negative-bg)",N="var(--pill-negative-ink)"):r>=40&&(p="var(--pill-warning-bg)",N="var(--pill-warning-ink)"),c.jsx("span",{className:"num inline-flex min-w-[38px] items-center justify-center rounded-md px-2 py-0.5 text-[12px] font-semibold",style:{backgroundColor:p,color:N},title:`Score: ${r}/100`,children:r})}const B1={new:"statusNew",claimed:"statusClaimed",submitted:"statusSubmitted",valid:"statusValid",duplicate:"statusDuplicate",rejected:"statusRejected"},k1={pending:"healthPending",checking:"healthChecking",alive:"healthAlive",cf_challenge:"healthCfChallenge",dead:"healthDead",parked:"healthParked",blocked_isp:"healthBlockedIsp",blocked_trustpositif:"healthBlockedTp"};function Q1({status:r}){const{t:p}=Nl();let N="var(--pill-info-bg)",f="var(--pill-info-ink)";return r==="valid"?(N="var(--pill-positive-bg)",f="var(--pill-positive-ink)"):r==="claimed"||r==="submitted"?(N="var(--accent-soft)",f="var(--accent-ink)"):r==="duplicate"?(N="var(--pill-warning-bg)",f="var(--pill-warning-ink)"):r==="rejected"&&(N="var(--pill-negative-bg)",f="var(--pill-negative-ink)"),c.jsx("span",{className:"inline-flex h-5 items-center rounded-md px-2 text-[11px] font-medium",style:{backgroundColor:N,color:f},children:p(B1[r])})}function jv({status:r}){const{t:p}=Nl();let N="var(--pill-info-bg)",f="var(--pill-info-ink)";return r==="alive"?(N="var(--pill-positive-bg)",f="var(--pill-positive-ink)"):r==="cf_challenge"?(N="var(--pill-warning-bg)",f="var(--pill-warning-ink)"):(r==="blocked_isp"||r==="blocked_trustpositif")&&(N="var(--pill-negative-bg)",f="var(--pill-negative-ink)"),c.jsx("span",{className:"inline-flex h-5 items-center rounded-md px-2 text-[11px] font-medium",style:{backgroundColor:N,color:f},children:p(k1[r])})}function _v({domain:r,onClose:p,onCopyClaim:N,onStatusChange:f,onPivot:z,onRecheck:w,onQueueOutbound:Z}){const{t:B}=Nl();if(!r)return null;const C=r.final_url||`https://${r.normalized_domain}`,X=D=>({new:B("statusNew"),claimed:B("statusClaimed"),submitted:B("statusSubmitted"),valid:B("statusValid"),duplicate:B("statusDuplicate"),rejected:B("statusRejected")})[D];return c.jsxs("div",{className:"fixed inset-0 z-40 flex justify-end",children:[c.jsx("div",{className:"fixed inset-0 bg-black/30",onClick:p}),c.jsxs("aside",{className:"floating-surface relative z-50 flex h-full w-full max-w-[520px] flex-col border-l border-[var(--border)] bg-[var(--surface)]",children:[c.jsxs("div",{className:"flex items-start justify-between border-b border-[var(--border)] px-5 py-4",children:[c.jsxs("div",{className:"min-w-0 pr-3",children:[c.jsx("div",{className:"truncate text-[17px] font-semibold tracking-[-0.02em] text-[var(--text)]",children:r.normalized_domain}),c.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-2",children:[c.jsx(jv,{status:r.health_status}),c.jsx(Q1,{status:r.triage_status}),c.jsx(Nv,{score:r.confidence_score})]})]}),c.jsx("button",{type:"button",onClick:p,className:"rounded p-1.5 text-[var(--muted)] hover:bg-[var(--raised)]","aria-label":B("drawerClose"),children:c.jsx(Sv,{size:18})})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-[var(--border)] bg-[var(--ground)] px-5 py-3",children:[c.jsx("button",{type:"button",onClick:()=>N(r),className:"btn-primary h-8 px-3 text-[12px]",children:B("btnCopyMark")}),c.jsxs("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:"btn-secondary h-8 px-2.5 text-[12px]",children:[c.jsx(Mr,{size:13}),B("drawerOpenTab")]}),c.jsxs("button",{type:"button",onClick:()=>z(r),className:"btn-secondary h-8 px-2.5 text-[12px]",children:[c.jsx(vn,{size:13}),B("drawerPivot")]}),c.jsxs("button",{type:"button",onClick:()=>w(r),className:"btn-secondary h-8 px-2.5 text-[12px]",children:[c.jsx(Ar,{size:13}),B("drawerRecheck")]})]}),c.jsxs("div",{className:"flex-1 space-y-5 overflow-y-auto px-5 py-4 text-[13px]",children:[c.jsxs("section",{className:"space-y-2",children:[c.jsx("div",{className:"text-[12px] font-medium text-[var(--muted)]",children:B("drawerSummary")}),c.jsxs("div",{className:"panel-section space-y-2 p-3.5",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-[11px] text-[var(--muted)]",children:B("drawerTitle")}),c.jsx("div",{className:"font-medium text-[var(--text)]",children:r.page_title||"—"})]}),r.meta_description&&c.jsxs("div",{children:[c.jsx("div",{className:"text-[11px] text-[var(--muted)]",children:B("drawerMetaDesc")}),c.jsx("div",{className:"text-[var(--muted)]",children:r.meta_description})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-3 border-t border-[var(--rule)] pt-1",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-[11px] text-[var(--muted)]",children:B("drawerHttpIp")}),c.jsxs("div",{className:"mono num text-[12px]",children:[r.http_status??"—"," · ",r.ip_address||"—"]})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-[11px] text-[var(--muted)]",children:B("drawerSource")}),c.jsxs("div",{className:"mono truncate text-[12px]",children:[r.source_type,r.source_seed?` (${r.source_seed})`:""]})]})]}),r.detection_notes&&c.jsx("div",{className:"border-t border-[var(--rule)] pt-1 text-[12px] text-[var(--muted)]",children:r.detection_notes})]})]}),c.jsxs("section",{className:"space-y-2",children:[c.jsx("div",{className:"text-[12px] font-medium text-[var(--muted)]",children:B("drawerChangeStatus")}),c.jsx("div",{className:"flex flex-wrap gap-1.5",children:["new","claimed","submitted","valid","duplicate","rejected"].map(D=>c.jsx("button",{type:"button",onClick:()=>f(r.id,D),className:`h-7 rounded border px-2.5 text-[12px] transition-colors ${r.triage_status===D?"border-[var(--accent)] bg-[var(--accent-soft)] font-medium text-[var(--accent-ink)]":"border-[var(--border)] bg-[var(--surface)] text-[var(--muted)] hover:text-[var(--text)]"}`,children:X(D)},D))})]}),c.jsxs("section",{className:"space-y-2",children:[c.jsxs("div",{className:"text-[12px] font-medium text-[var(--muted)]",children:[B("drawerMatchedKw")," (",r.matched_keywords.length,")"]}),r.matched_keywords.length===0?c.jsx("div",{className:"rounded-md border border-dashed border-[var(--border)] p-3 text-[12px] text-[var(--muted)]",children:B("drawerNoKw")}):c.jsx("div",{className:"flex flex-wrap gap-1.5",children:r.matched_keywords.map((D,x)=>c.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded border border-[var(--border)] bg-[var(--ground)] px-2 py-1 text-[12px]",children:[c.jsx("span",{className:"font-medium text-[var(--text)]",children:D.keyword}),c.jsxs("span",{className:"mono num text-[11px] text-[var(--muted)]",children:["+",D.weight," (",D.location,")"]})]},`${D.keyword}-${x}`))})]}),c.jsxs("section",{className:"space-y-2",children:[c.jsxs("div",{className:"text-[12px] font-medium text-[var(--muted)]",children:[B("drawerRedirects")," (",r.redirect_chain.length,")"]}),c.jsxs("div",{className:"panel-section space-y-1.5 p-3.5",children:[c.jsxs("div",{className:"mono break-all text-[11px] text-[var(--muted)]",children:["Original: ",r.original_url]}),r.redirect_chain.map((D,x)=>c.jsxs("div",{className:"mono flex items-start gap-2 text-[11px] text-[var(--text)]",children:[c.jsx("span",{className:"num shrink-0 rounded bg-[var(--raised)] px-1.5 py-0.5 text-[10px]",children:D.status_code}),c.jsx("span",{className:"break-all",children:D.url})]},`${D.url}-${x}`))]})]}),c.jsxs("section",{className:"space-y-2",children:[c.jsxs("div",{className:"text-[12px] font-medium text-[var(--muted)]",children:[B("drawerOutbound")," (",r.outbound_links.length,")"]}),r.outbound_links.length===0?c.jsx("div",{className:"rounded-md border border-dashed border-[var(--border)] p-3 text-[12px] text-[var(--muted)]",children:B("drawerNoOutbound")}):c.jsx("div",{className:"divide-y divide-[var(--rule)] rounded-md border border-[var(--border)]",children:r.outbound_links.slice(0,25).map(D=>c.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-2",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx("div",{className:"truncate text-[13px] font-medium text-[var(--text)]",children:D.normalized_domain}),c.jsx("div",{className:"truncate text-[11px] text-[var(--muted)]",children:D.label})]}),c.jsxs("button",{type:"button",onClick:()=>Z(D.url,r.normalized_domain),className:"btn-secondary h-7 shrink-0 px-2 text-[11px]",children:[c.jsx(fu,{size:12}),B("drawerQueueBtn")]})]},D.normalized_domain))})]})]})]})]})}function q1({counts:r,onCountsUpdate:p,refreshTick:N,onPivot:f,onRecheck:z,notify:w}){const{t:Z}=Nl(),[B,C]=q.useState("cf_challenge"),[X,D]=q.useState(""),[x,L]=q.useState([]),[st,ht]=q.useState(!0),[_t,at]=q.useState(null),bt=q.useCallback(async()=>{ht(!0);try{const Y=await Ut.listDomains({view:"archive",health_status:B,search:X,sort:"newest",limit:200});L(Y.items),p(Y.counts)}catch(Y){w(Y instanceof Error?Y.message:"Failed to load archive","error")}finally{ht(!1)}},[B,X,w,p]);q.useEffect(()=>{bt()},[bt,N]);const ct=async Y=>{try{await Ut.updateDomain(Y.id,{health_status:"alive"}),w(`${Z("toastMovedQueue")} ${Y.normalized_domain}`,"success"),bt()}catch(G){w(G instanceof Error?G.message:"Failed to promote domain","error")}},P=async Y=>{try{const G=await Ut.claimDomain(Y.id);try{await navigator.clipboard.writeText(G.copy_text)}catch{}w(`${Z("toastCopiedMarked")} ${G.copy_text}`,"success")}catch(G){w(G instanceof Error?G.message:Z("toastMarkFailed"),"error")}},wt=async(Y,G)=>{try{const lt=await Ut.updateDomain(Y,{triage_status:G});at(lt.domain),bt()}catch(lt){w(lt instanceof Error?lt.message:Z("toastStatusFailed"),"error")}},Et=[{id:"cf_challenge",label:Z("tabManualCf"),count:r==null?void 0:r.manual_count},{id:"blocked_any",label:Z("tabBlocked"),count:r==null?void 0:r.blocked_count},{id:"parked",label:Z("tabParked"),count:r==null?void 0:r.parked_count},{id:"dead",label:Z("tabDead"),count:r==null?void 0:r.dead_count}];return c.jsxs("div",{className:"space-y-5",children:[c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 border-b border-[var(--border)]",children:[c.jsx("div",{className:"flex flex-wrap gap-1",children:Et.map(Y=>{const G=B===Y.id;return c.jsxs("button",{type:"button",onClick:()=>C(Y.id),className:`relative px-3 py-2 text-[13px] transition-colors ${G?"font-medium text-[var(--text)]":"text-[var(--muted)] hover:text-[var(--text)]"}`,children:[c.jsx("span",{children:Y.label}),Y.count!==void 0&&c.jsxs("span",{className:"num mono ml-1.5 text-[11px] text-[var(--muted)]",children:["(",Y.count,")"]}),G&&c.jsx("span",{className:"absolute bottom-0 left-0 right-0 h-[2px] rounded-full bg-[var(--brand-500)]"})]},Y.id)})}),c.jsxs("div",{className:"relative mb-2 w-full sm:w-64",children:[c.jsx(xv,{size:14,className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-[var(--faint)]"}),c.jsx("input",{type:"text",value:X,onChange:Y=>D(Y.target.value),placeholder:Z("searchArchivePlaceholder"),className:"control-input h-8 w-full pl-8 text-[12px]"})]})]}),c.jsx("div",{className:"panel overflow-hidden",children:st?c.jsx("div",{className:"px-4 py-8 text-center text-[13px] text-[var(--muted)]",children:Z("loadingText")}):x.length===0?c.jsx("div",{className:"px-4 py-10 text-center text-[13px] text-[var(--muted)]",children:Z("archiveEmpty")}):c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"w-full border-collapse text-left",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"border-b border-[var(--border)] text-[12px] font-medium text-[var(--muted)]",children:[c.jsx("th",{className:"px-4 py-2.5 font-medium",children:Z("colDomain")}),c.jsx("th",{className:"px-3 py-2.5 font-medium",children:Z("colStatus")}),c.jsx("th",{className:"px-3 py-2.5 font-medium",children:Z("colReasonNotes")}),c.jsx("th",{className:"px-4 py-2.5 text-right font-medium",children:Z("colActions")})]})}),c.jsx("tbody",{className:"divide-y divide-[var(--rule)]",children:x.map(Y=>c.jsxs("tr",{className:"hover:bg-[var(--raised)]",children:[c.jsxs("td",{className:"px-4 py-3",children:[c.jsx("button",{type:"button",onClick:()=>at(Y),className:"text-[13.5px] font-medium tracking-[-0.01em] text-[var(--text)] hover:underline",children:Y.normalized_domain}),c.jsxs("div",{className:"mt-0.5 text-[11.5px] text-[var(--muted)]",children:["HTTP ",Y.http_status??"—"," · ",Y.ip_address||"—"]})]}),c.jsx("td",{className:"px-3 py-3",children:c.jsx(jv,{status:Y.health_status})}),c.jsx("td",{className:"max-w-[340px] px-3 py-3 text-[12px] text-[var(--muted)]",children:Y.detection_notes||Y.page_title||"—"}),c.jsx("td",{className:"px-4 py-3 text-right",children:c.jsxs("div",{className:"inline-flex items-center gap-1.5",children:[Y.health_status==="cf_challenge"&&c.jsxs("button",{type:"button",onClick:()=>void ct(Y),className:"btn-secondary h-7 px-2 text-[11px]",title:Z("titleMoveQueue"),children:[c.jsx(Qy,{size:12}),Z("btnMoveQueue")]}),c.jsx("a",{href:Y.final_url||`https://${Y.normalized_domain}`,target:"_blank",rel:"noopener noreferrer",className:"btn-ghost w-7 px-0",title:Z("drawerOpenTab"),children:c.jsx(Mr,{size:13})}),c.jsx("button",{type:"button",onClick:()=>z(Y),className:"btn-ghost w-7 px-0",title:Z("drawerRecheck"),children:c.jsx(Ar,{size:13})}),c.jsx("button",{type:"button",onClick:()=>f(Y),className:"btn-ghost w-7 px-0",title:Z("drawerPivot"),children:c.jsx(vn,{size:13})})]})})]},Y.id))})]})})}),c.jsx(_v,{domain:_t,onClose:()=>at(null),onCopyClaim:Y=>void P(Y),onStatusChange:(Y,G)=>void wt(Y,G),onPivot:f,onRecheck:z,onQueueOutbound:async(Y,G)=>{await Ut.ingestBulkText(Y,G),w(Z("toastLinkQueued"))}})]})}function Y1({jobs:r,onJobStarted:p,notify:N}){const{t:f}=Nl(),[z,w]=q.useState(""),[Z,B]=q.useState(["crtsh","urlscan","html"]),[C,X]=q.useState(!1),[D,x]=q.useState(""),[L,st]=q.useState(!1),[ht,_t]=q.useState(null),[at,bt]=q.useState({}),ct=k=>{B(W=>W.includes(k)?W.filter(xt=>xt!==k):[...W,k])},P=k=>at[k.id]!==void 0?at[k.id]:k.status==="running",wt=(k,W)=>{bt(xt=>({...xt,[k]:!W}))},Et=async k=>{if(k.preventDefault(),!!z.trim()){if(Z.length===0){N(f("pivotNeedSource"),"error");return}X(!0);try{const W=await Ut.startPivot({seed:z.trim(),sources:Z});N(`${f("toastPivotStarted")} "${W.job.target}"`,"success"),w(""),p()}catch(W){N(W instanceof Error?W.message:f("toastPivotFailed"),"error")}finally{X(!1)}}},Y=async k=>{if(k.preventDefault(),!!D.trim()){st(!0);try{const W=await Ut.ingestBulkText(D);_t(W),N(`${f("toastImportDone")} ${W.inserted} ${f("bulkStatNew")}, ${W.duplicates} ${f("bulkStatDup")}`,"success"),W.inserted>0&&x(""),p()}catch(W){N(W instanceof Error?W.message:"Import failed","error")}finally{st(!1)}}},G=async k=>{var xt;const W=(xt=k.target.files)==null?void 0:xt[0];if(W){st(!0);try{const Ct=await Ut.ingestBulkFile(W);_t(Ct),N(`${f("toastFileImported")} ${W.name} (${Ct.inserted} ${f("bulkStatNew")})`,"success"),p()}catch(Ct){N(Ct instanceof Error?Ct.message:"Failed to read file","error")}finally{st(!1),k.target.value=""}}},lt=[{id:"crtsh",title:f("srcCrtshTitle"),desc:f("srcCrtshDesc")},{id:"urlscan",title:f("srcUrlscanTitle"),desc:f("srcUrlscanDesc")},{id:"html",title:f("srcHtmlTitle"),desc:f("srcHtmlDesc")}];return c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"grid grid-cols-1 items-stretch gap-5 lg:grid-cols-2",children:[c.jsxs("form",{onSubmit:k=>void Et(k),className:"panel flex flex-col justify-between p-6",children:[c.jsxs("div",{className:"space-y-5",children:[c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-[10px] border border-[var(--rule)] bg-[var(--ground)] text-[var(--brand-500)]",children:c.jsx(vn,{size:17})}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("h2",{className:"text-[15px] font-semibold text-[var(--text)]",children:f("pivotCardTitle")}),c.jsx("p",{className:"mt-0.5 text-[12.5px] leading-relaxed text-[var(--muted)]",children:f("pivotCardDesc")})]})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"seed-input",className:"mb-1.5 block text-[12.5px] font-medium text-[var(--muted)]",children:f("pivotInputLabel")}),c.jsx("input",{id:"seed-input",type:"text",value:z,onChange:k=>w(k.target.value),placeholder:f("pivotInputPlaceholder"),className:"control-input h-10 w-full text-[13.5px]"})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("div",{className:"text-[12.5px] font-medium text-[var(--muted)]",children:f("pivotSourcesLabel")}),c.jsx("div",{className:"space-y-2",children:lt.map(k=>{const W=Z.includes(k.id);return c.jsxs("button",{type:"button",onClick:()=>ct(k.id),"aria-pressed":W,className:`flex w-full items-start gap-3 rounded-[10px] border px-3.5 py-2.5 text-left transition-colors ${W?"border-[var(--brand-500)]/45 bg-[var(--active)]":"border-[var(--rule)] bg-[var(--ground)] hover:border-[var(--border)]"}`,children:[c.jsx("span",{className:`mt-0.5 flex size-[18px] shrink-0 items-center justify-center rounded-[6px] transition-colors ${W?"bg-[var(--primary)] text-white":"border border-[var(--input-border)] bg-[var(--input-bg)] text-transparent"}`,children:c.jsx(bv,{size:12,strokeWidth:2.5})}),c.jsxs("span",{className:"min-w-0",children:[c.jsx("span",{className:"block text-[13px] font-medium text-[var(--text)]",children:k.title}),c.jsx("span",{className:"mt-0.5 block text-[12px] leading-snug text-[var(--muted)]",children:k.desc})]})]},k.id)})})]})]}),c.jsx("div",{className:"mt-5 flex items-center justify-end border-t border-[var(--rule)] pt-4",children:c.jsxs("button",{type:"submit",disabled:C||!z.trim(),className:"btn-primary",children:[c.jsx(vn,{size:15}),f(C?"btnStarting":"btnStartPivot")]})})]}),c.jsxs("form",{onSubmit:k=>void Y(k),className:"panel flex flex-col justify-between p-6",children:[c.jsxs("div",{className:"flex flex-1 flex-col space-y-4",children:[c.jsxs("div",{className:"flex items-start justify-between gap-3",children:[c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-[10px] border border-[var(--rule)] bg-[var(--ground)] text-[var(--brand-500)]",children:c.jsx(n1,{size:17})}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("h2",{className:"text-[15px] font-semibold text-[var(--text)]",children:f("bulkCardTitle")}),c.jsx("p",{className:"mt-0.5 text-[12.5px] leading-relaxed text-[var(--muted)]",children:f("bulkCardDesc")})]})]}),c.jsxs("label",{className:"btn-secondary h-9 shrink-0 cursor-pointer",children:[c.jsx(Py,{size:14}),f("btnUploadFile"),c.jsx("input",{type:"file",accept:".txt,.csv,.log",onChange:k=>void G(k),className:"hidden"})]})]}),c.jsx("textarea",{value:D,onChange:k=>x(k.target.value),rows:8,placeholder:`https://www.example88.com/register?ref=1
|
|
210
210
|
https://amp-site.pages.dev/amp/
|
|
211
211
|
http://m.mirror777.net/login`,className:"control-textarea mono min-h-[218px] w-full flex-1 resize-y"}),ht&&c.jsxs("div",{className:"panel-section grid grid-cols-4 divide-x divide-[var(--rule)] py-2.5 text-center",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-[11px] text-[var(--muted)]",children:f("bulkStatNew")}),c.jsx("div",{className:"num mono text-[14px] font-semibold",style:{color:"var(--positive)"},children:ht.inserted})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-[11px] text-[var(--muted)]",children:f("bulkStatDup")}),c.jsx("div",{className:"num mono text-[14px] font-semibold text-[var(--text)]",children:ht.duplicates})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-[11px] text-[var(--muted)]",children:f("bulkStatBlacklist")}),c.jsx("div",{className:"num mono text-[14px] font-semibold text-[var(--muted)]",children:ht.blacklisted})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-[11px] text-[var(--muted)]",children:f("bulkStatInvalid")}),c.jsx("div",{className:"num mono text-[14px] font-semibold text-[var(--muted)]",children:ht.invalid})]})]})]}),c.jsx("div",{className:"mt-5 flex items-center justify-end border-t border-[var(--rule)] pt-4",children:c.jsxs("button",{type:"submit",disabled:L||!D.trim(),className:"btn-primary",children:[L?c.jsx(_1,{size:15}):c.jsx(d1,{size:15}),f(L?"btnProcessing":"btnImportValidate")]})})]})]}),c.jsxs("section",{className:"panel overflow-hidden",children:[c.jsxs("div",{className:"flex items-center justify-between border-b border-[var(--rule)] px-5 py-3.5",children:[c.jsxs("div",{className:"flex items-center gap-2.5",children:[c.jsx(Hy,{size:15,className:"text-[var(--brand-500)]"}),c.jsx("h2",{className:"text-[14.5px] font-semibold text-[var(--text)]",children:f("jobsTitle")})]}),r.length>0&&c.jsx("span",{className:"num rounded-md bg-[var(--surface-2)] px-2 py-0.5 text-[11.5px] font-medium text-[var(--muted)]",children:r.slice(0,12).length})]}),r.length===0?c.jsx("div",{className:"px-5 py-8 text-center text-[13px] text-[var(--muted)]",children:f("jobsEmpty")}):c.jsx("div",{className:"divide-y divide-[var(--rule)]",children:r.slice(0,12).map(k=>{const W=P(k);return c.jsxs("div",{children:[c.jsxs("button",{type:"button",onClick:()=>wt(k.id,W),"aria-expanded":W,className:"flex w-full items-center justify-between gap-4 px-5 py-3.5 text-left transition-colors hover:bg-[var(--surface-2)]/40",children:[c.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[W?c.jsx(Gy,{size:15,className:"shrink-0 text-[var(--faint)]"}):c.jsx(Xy,{size:15,className:"shrink-0 text-[var(--faint)]"}),c.jsx("span",{className:`inline-block size-2 shrink-0 rounded-full ${k.status==="running"?"animate-pulse":""}`,style:{backgroundColor:k.status==="running"?"var(--accent)":k.status==="completed"?"var(--positive)":"var(--negative)"}}),c.jsx("span",{className:"shrink-0 rounded-md bg-[var(--surface-2)] px-2 py-0.5 text-[11px] font-semibold tracking-wide text-[var(--text)]",children:k.job_type.toUpperCase()}),c.jsx("span",{className:"mono truncate text-[13px] font-medium text-[var(--text)]",children:k.target||"—"})]}),c.jsxs("div",{className:"flex shrink-0 items-center gap-2 text-[12px]",children:[c.jsxs("span",{className:"mono num hidden items-center rounded-md border border-[var(--rule)] bg-[var(--ground)] px-2 py-0.5 text-[11.5px] text-[var(--muted)] sm:inline-flex",children:[k.processed_items,"/",k.total_items]}),c.jsxs("span",{className:"mono num hidden items-center rounded-md border border-[var(--rule)] bg-[var(--ground)] px-2 py-0.5 text-[11.5px] sm:inline-flex",style:{color:k.found_new>0?"var(--positive)":"var(--muted)"},children:["+",k.found_new," ",f("jobNew")]}),c.jsxs("span",{className:"mono num hidden items-center rounded-md border border-[var(--rule)] bg-[var(--ground)] px-2 py-0.5 text-[11.5px] text-[var(--muted)] sm:inline-flex",children:[k.skipped_duplicate," ",f("jobDup")]}),k.logs.length>0&&c.jsxs("span",{className:"num text-[11.5px] text-[var(--faint)]",children:[k.logs.length," ",f("jobLogs")]})]})]}),W&&k.logs.length>0&&c.jsx("div",{className:"px-5 pt-0.5 pb-4",children:c.jsx("div",{className:"mono max-h-44 space-y-1 overflow-y-auto rounded-[10px] border border-[var(--rule)] bg-[var(--input-bg)] px-3.5 py-2.5 text-[11.5px] leading-relaxed text-[var(--muted)]",children:k.logs.map((xt,Ct)=>c.jsx("div",{className:"break-words",children:xt},Ct))})})]},k.id)})})]})]})}function G1({notify:r}){const{t:p}=Nl(),[N,f]=q.useState("general"),[z,w]=q.useState(null),[Z,B]=q.useState(0),[C,X]=q.useState([]),[D,x]=q.useState([]),[L,st]=q.useState(""),[ht,_t]=q.useState("slot"),[at,bt]=q.useState(25),[ct,P]=q.useState(""),[wt,Et]=q.useState("custom"),[Y,G]=q.useState(!1),lt=q.useCallback(async()=>{try{const[j,O,K]=await Promise.all([Ut.getSettings(),Ut.listKeywords(),Ut.listBlacklist()]);w(j.settings),B(j.trustpositif_count),X(O.keywords),x(K.blacklist)}catch(j){r(j instanceof Error?j.message:"Failed to load settings","error")}},[r]);q.useEffect(()=>{lt()},[lt]);const k=async j=>{if(j.preventDefault(),!!z){G(!0);try{const O=await Ut.updateSettings(z);w(O.settings),r(p("toastSettingsSaved"),"success")}catch(O){r(O instanceof Error?O.message:"Failed to save settings","error")}finally{G(!1)}}},W=async j=>{if(j.preventDefault(),!!L.trim())try{const O=await Ut.addKeyword(L,ht,at);X(K=>[O.keyword,...K]),st(""),r(`${O.keyword.term}`,"success")}catch(O){r(O instanceof Error?O.message:"Failed to add keyword","error")}},xt=async j=>{try{const O=await Ut.updateKeyword(j.id,{enabled:j.enabled!==1});X(K=>K.map(rt=>rt.id===j.id?O.keyword:rt))}catch(O){r(O instanceof Error?O.message:"Failed to update keyword","error")}},Ct=async j=>{try{await Ut.deleteKeyword(j),X(O=>O.filter(K=>K.id!==j))}catch(O){r(O instanceof Error?O.message:"Failed to delete keyword","error")}},be=async j=>{if(j.preventDefault(),!!ct.trim())try{const O=await Ut.addBlacklist(ct,wt);x(K=>[...K,O.item].sort((rt,Pt)=>rt.domain.localeCompare(Pt.domain))),P(""),r(`${O.item.domain}`,"success")}catch(O){r(O instanceof Error?O.message:"Failed to add blacklist","error")}},ce=async j=>{try{await Ut.deleteBlacklist(j),x(O=>O.filter(K=>K.id!==j))}catch(O){r(O instanceof Error?O.message:"Failed to delete blacklist","error")}},Bt=async()=>{if(z)try{await Ut.syncTrustPositif(z.trustpositif_source_url),r(p("toastTpSyncStarted"),"success"),setTimeout(()=>void lt(),2500)}catch(j){r(j instanceof Error?j.message:"Sync failed","error")}},U=[{id:"general",label:p("setTabGeneral")},{id:"keywords",label:`${p("setTabKeywords")} (${C.length})`},{id:"blacklist",label:`${p("setTabBlacklist")} (${D.length})`},{id:"trustpositif",label:p("setTabTrustPositif")}];return c.jsxs("div",{className:"space-y-5",children:[c.jsx("div",{className:"flex flex-wrap gap-1 border-b border-[var(--border)]",children:U.map(j=>{const O=N===j.id;return c.jsxs("button",{type:"button",onClick:()=>f(j.id),className:`relative px-3 py-2 text-[13px] transition-colors ${O?"font-medium text-[var(--text)]":"text-[var(--muted)] hover:text-[var(--text)]"}`,children:[j.label,O&&c.jsx("span",{className:"absolute bottom-0 left-0 right-0 h-[2px] rounded-full bg-[var(--brand-500)]"})]},j.id)})}),N==="general"&&z&&c.jsxs("form",{onSubmit:j=>void k(j),className:"panel max-w-2xl space-y-4 p-6",children:[c.jsxs("div",{children:[c.jsx("label",{className:"mb-1.5 block text-[13px] font-medium",children:p("setCopyFormat")}),c.jsxs("select",{value:z.copy_format,onChange:j=>w({...z,copy_format:j.target.value}),className:"control-select w-full",children:[c.jsx("option",{value:"https",children:p("setCopyHttps")}),c.jsx("option",{value:"bare",children:p("setCopyBare")})]})]}),c.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[c.jsxs("div",{children:[c.jsx("label",{className:"mb-1.5 block text-[13px] font-medium",children:p("setConcurrency")}),c.jsx("input",{type:"number",min:1,max:60,value:z.concurrency,onChange:j=>w({...z,concurrency:Number(j.target.value)||20}),className:"control-input mono num w-full"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"mb-1.5 block text-[13px] font-medium",children:p("setTimeout")}),c.jsx("input",{type:"number",min:2e3,max:3e4,step:500,value:z.timeout_ms,onChange:j=>w({...z,timeout_ms:Number(j.target.value)||1e4}),className:"control-input mono num w-full"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"mb-1.5 block text-[13px] font-medium",children:p("setUrlscanKey")}),c.jsx("input",{type:"password",value:z.urlscan_api_key,onChange:j=>w({...z,urlscan_api_key:j.target.value}),placeholder:p("setUrlscanPlaceholder"),className:"control-input mono w-full"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"mb-1.5 block text-[13px] font-medium",children:p("setLocalMarker")}),c.jsx("input",{type:"text",value:z.claimer_name,onChange:j=>w({...z,claimer_name:j.target.value}),className:"control-input w-full"})]}),c.jsx("div",{className:"flex justify-end border-t border-[var(--rule)] pt-4",children:c.jsxs("button",{type:"submit",disabled:Y,className:"btn-primary",children:[c.jsx(hv,{size:14}),p(Y?"btnSaving":"btnSaveSettings")]})})]}),N==="keywords"&&c.jsxs("div",{className:"space-y-4",children:[c.jsxs("form",{onSubmit:j=>void W(j),className:"panel flex flex-wrap items-end gap-3 p-4",children:[c.jsxs("div",{className:"min-w-[200px] flex-1",children:[c.jsx("label",{className:"mb-1 block text-[12px] font-medium",children:p("kwNewLabel")}),c.jsx("input",{type:"text",value:L,onChange:j=>st(j.target.value),placeholder:p("kwNewPlaceholder"),className:"control-input w-full"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"mb-1 block text-[12px] font-medium",children:p("kwCatLabel")}),c.jsxs("select",{value:ht,onChange:j=>_t(j.target.value),className:"control-select",children:[c.jsx("option",{value:"slot",children:"slot"}),c.jsx("option",{value:"togel",children:"togel"}),c.jsx("option",{value:"casino",children:"casino"}),c.jsx("option",{value:"bola",children:"bola"}),c.jsx("option",{value:"amp",children:"amp"}),c.jsx("option",{value:"generic",children:"generic"})]})]}),c.jsxs("div",{className:"w-24",children:[c.jsx("label",{className:"mb-1 block text-[12px] font-medium",children:p("kwWeightLabel")}),c.jsx("input",{type:"number",min:1,max:100,value:at,onChange:j=>bt(Number(j.target.value)||15),className:"control-input mono num w-full"})]}),c.jsxs("button",{type:"submit",className:"btn-primary",children:[c.jsx(fu,{size:14}),p("btnAdd")]})]}),c.jsx("div",{className:"panel overflow-hidden",children:c.jsxs("table",{className:"w-full border-collapse text-left",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"border-b border-[var(--border)] text-[12px] font-medium text-[var(--muted)]",children:[c.jsx("th",{className:"px-4 py-2.5 font-medium",children:p("colTerm")}),c.jsx("th",{className:"px-3 py-2.5 font-medium",children:p("colCategory")}),c.jsx("th",{className:"px-3 py-2.5 text-right font-medium",children:p("colWeight")}),c.jsx("th",{className:"px-3 py-2.5 font-medium",children:p("colEnabled")}),c.jsx("th",{className:"px-4 py-2.5 text-right font-medium",children:p("colDelete")})]})}),c.jsx("tbody",{className:"divide-y divide-[var(--rule)]",children:C.map(j=>c.jsxs("tr",{className:"hover:bg-[var(--raised)]",children:[c.jsx("td",{className:"px-4 py-2.5 font-medium text-[var(--text)]",children:j.term}),c.jsx("td",{className:"px-3 py-2.5 text-[12px] text-[var(--muted)]",children:j.category}),c.jsx("td",{className:"mono num px-3 py-2.5 text-right text-[13px]",children:j.weight}),c.jsx("td",{className:"px-3 py-2.5",children:c.jsx("input",{type:"checkbox",checked:j.enabled===1,onChange:()=>void xt(j),className:"accent-[var(--accent)]"})}),c.jsx("td",{className:"px-4 py-2.5 text-right",children:c.jsx("button",{type:"button",onClick:()=>void Ct(j.id),className:"rounded p-1 text-[var(--muted)] hover:text-[var(--negative)]","aria-label":`${p("colDelete")} ${j.term}`,children:c.jsx(yv,{size:14})})})]},j.id))})]})})]}),N==="blacklist"&&c.jsxs("div",{className:"space-y-4",children:[c.jsxs("form",{onSubmit:j=>void be(j),className:"panel flex flex-wrap items-end gap-3 p-4",children:[c.jsxs("div",{className:"min-w-[220px] flex-1",children:[c.jsx("label",{className:"mb-1 block text-[12px] font-medium",children:p("blNewLabel")}),c.jsx("input",{type:"text",value:ct,onChange:j=>P(j.target.value),placeholder:p("blNewPlaceholder"),className:"control-input mono w-full"})]}),c.jsxs("div",{className:"w-36",children:[c.jsx("label",{className:"mb-1 block text-[12px] font-medium",children:p("blReasonLabel")}),c.jsx("input",{type:"text",value:wt,onChange:j=>Et(j.target.value),className:"control-input w-full"})]}),c.jsxs("button",{type:"submit",className:"btn-primary",children:[c.jsx(fu,{size:14}),p("btnAdd")]})]}),c.jsx("div",{className:"panel overflow-hidden",children:c.jsxs("table",{className:"w-full border-collapse text-left",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"border-b border-[var(--border)] text-[12px] font-medium text-[var(--muted)]",children:[c.jsx("th",{className:"px-4 py-2.5 font-medium",children:p("colDomain")}),c.jsx("th",{className:"px-3 py-2.5 font-medium",children:p("blReasonLabel")}),c.jsx("th",{className:"px-4 py-2.5 text-right font-medium",children:p("colDelete")})]})}),c.jsx("tbody",{className:"divide-y divide-[var(--rule)]",children:D.map(j=>c.jsxs("tr",{className:"hover:bg-[var(--raised)]",children:[c.jsx("td",{className:"mono px-4 py-2.5 text-[13px] text-[var(--text)]",children:j.domain}),c.jsx("td",{className:"px-3 py-2.5 text-[12px] text-[var(--muted)]",children:j.reason}),c.jsx("td",{className:"px-4 py-2.5 text-right",children:c.jsx("button",{type:"button",onClick:()=>void ce(j.id),className:"rounded p-1 text-[var(--muted)] hover:text-[var(--negative)]","aria-label":`${p("colDelete")} ${j.domain}`,children:c.jsx(yv,{size:14})})})]},j.id))})]})})]}),N==="trustpositif"&&z&&c.jsxs("div",{className:"panel max-w-2xl space-y-5 p-6",children:[c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 border-b border-[var(--rule)] pb-4",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-[14px] font-semibold text-[var(--text)]",children:p("tpTitle")}),c.jsxs("div",{className:"mt-1 text-[12px] text-[var(--muted)]",children:[p("tpStored")," ",c.jsx("span",{className:"mono num font-semibold text-[var(--text)]",children:Z})," ",p("domainsNoun"),z.trustpositif_last_sync?` · ${p("tpLastSync")} ${z.trustpositif_last_sync.slice(0,19).replace("T"," ")}`:` · ${p("tpNeverSynced")}`]})]}),c.jsxs("button",{type:"button",onClick:()=>void Bt(),className:"btn-primary",children:[c.jsx(Ar,{size:14}),p("btnSyncTp")]})]}),c.jsxs("form",{onSubmit:j=>void k(j),className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"mb-1.5 block text-[13px] font-medium",children:p("tpSourceUrlLabel")}),c.jsx("input",{type:"url",value:z.trustpositif_source_url,onChange:j=>w({...z,trustpositif_source_url:j.target.value}),className:"control-input mono w-full text-[12px]"})]}),c.jsxs("div",{className:"flex items-center justify-between rounded-md border border-[var(--border)] bg-[var(--ground)] p-3",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-[13px] font-medium text-[var(--text)]",children:p("tpDnsTitle")}),c.jsx("div",{className:"text-[12px] text-[var(--muted)]",children:p("tpDnsDesc")})]}),c.jsx("input",{type:"checkbox",checked:z.dns_check_enabled,onChange:j=>w({...z,dns_check_enabled:j.target.checked}),className:"h-4 w-4 accent-[var(--accent)]"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"mb-1.5 block text-[13px] font-medium",children:p("tpDnsServerLabel")}),c.jsx("input",{type:"text",value:z.dns_filter_server,onChange:j=>w({...z,dns_filter_server:j.target.value}),placeholder:"180.131.144.144",className:"control-input mono w-full"})]}),c.jsx("div",{className:"flex justify-end border-t border-[var(--rule)] pt-4",children:c.jsxs("button",{type:"submit",disabled:Y,className:"btn-primary",children:[c.jsx(hv,{size:14}),p("btnSaveConfig")]})})]})]})]})}function V1(r){q.useEffect(()=>{if(!r.enabled)return;const p=N=>{const f=N.target;if(f&&(f.tagName==="INPUT"||f.tagName==="TEXTAREA"||f.tagName==="SELECT"||f.isContentEditable)||N.metaKey||N.ctrlKey||N.altKey)return;const z=N.key.toLowerCase();z==="j"||N.key==="ArrowDown"?(N.preventDefault(),r.itemCount>0&&r.onSelectIndex(Math.min(r.itemCount-1,r.selectedIndex+1))):z==="k"||N.key==="ArrowUp"?(N.preventDefault(),r.itemCount>0&&r.onSelectIndex(Math.max(0,r.selectedIndex-1))):z==="c"?(N.preventDefault(),r.onCopyClaim()):z==="o"?(N.preventDefault(),r.onOpenTab()):z==="s"?(N.preventDefault(),r.onSetStatus("submitted")):z==="v"?(N.preventDefault(),r.onSetStatus("valid")):z==="d"?(N.preventDefault(),r.onSetStatus("duplicate")):z==="r"?(N.preventDefault(),r.onSetStatus("rejected")):N.key==="Enter"?(N.preventDefault(),r.onOpenDetail()):N.key==="?"&&(N.preventDefault(),r.onToggleHelp())};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[r])}function X1({counts:r,onCountsUpdate:p,refreshTick:N,onGoIntake:f,onGoArchiveManual:z,onPivot:w,onRecheck:Z,notify:B}){const{t:C}=Nl(),[X,D]=q.useState([]),[x,L]=q.useState(0),[st,ht]=q.useState(null),[_t,at]=q.useState(!0),[bt,ct]=q.useState(null),[P,wt]=q.useState(""),[Et,Y]=q.useState(""),[G,lt]=q.useState(0),[k,W]=q.useState("confidence_desc"),[xt,Ct]=q.useState(0),[be,ce]=q.useState(null),[Bt,U]=q.useState(null),[j,O]=q.useState(!1),K=r??st,rt=q.useCallback(async()=>{try{ct(null);const T=await Ut.listDomains({view:"queue",triage_status:Et,min_score:G,search:P,sort:k,limit:200});D(T.items),L(T.total),ht(T.counts),p(T.counts),Ct(A=>T.items.length===0?0:Math.min(A,T.items.length-1)),ce(A=>A?T.items.find(J=>J.id===A.id)??A:null)}catch(T){ct(T instanceof Error?T.message:C("errLoadQueue"))}finally{at(!1)}},[Et,G,P,k,p,C]);q.useEffect(()=>{rt()},[rt,N]);const Pt=q.useCallback(async T=>{try{const A=await Ut.claimDomain(T.id);let J=!1;try{await navigator.clipboard.writeText(A.copy_text),J=!0}catch{J=!1}D(F=>F.map(it=>it.id===T.id?A.domain:it)),ht(A.counts),p(A.counts),ce(F=>(F==null?void 0:F.id)===T.id?A.domain:F),U(T.id),setTimeout(()=>U(F=>F===T.id?null:F),1500),B(J?`${C("toastCopiedMarked")} ${A.copy_text}`:`${C("toastMarkedOnly")} ${A.copy_text}`,"success")}catch(A){B(A instanceof Error?A.message:C("toastMarkFailed"),"error")}},[B,p,C]),xe=q.useCallback(async(T,A)=>{try{const J=await Ut.updateDomain(T,{triage_status:A});D(F=>F.map(it=>it.id===T?J.domain:it)),ht(J.counts),p(J.counts),ce(F=>(F==null?void 0:F.id)===T?J.domain:F),B(`${J.domain.normalized_domain} → ${A}`)}catch(J){B(J instanceof Error?J.message:C("toastStatusFailed"),"error")}},[B,p,C]),il=async(T,A)=>{try{const J=await Ut.ingestBulkText(T,A);B(J.inserted>0?`${C("toastLinkQueued")} ${J.inserted}`:C("toastLinkSkipped"))}catch(J){B(J instanceof Error?J.message:C("toastLinkFailed"),"error")}};V1({enabled:be===null,itemCount:X.length,selectedIndex:xt,onSelectIndex:Ct,onCopyClaim:()=>{const T=X[xt];T&&Pt(T)},onOpenTab:()=>{const T=X[xt];T&&window.open(T.final_url||`https://${T.normalized_domain}`,"_blank","noopener,noreferrer")},onSetStatus:T=>{const A=X[xt];A&&xe(A.id,T)},onOpenDetail:()=>{const T=X[xt];T&&ce(T)},onToggleHelp:()=>O(T=>!T)});const m=[{value:"",label:C("tabAll"),count:(K==null?void 0:K.queue_total)??0},{value:"new",label:C("summaryNew"),count:(K==null?void 0:K.new_count)??0},{value:"claimed",label:C("summaryInProgress"),count:(K==null?void 0:K.claimed_count)??0},{value:"submitted",label:C("summarySubmitted"),count:(K==null?void 0:K.submitted_count)??0},{value:"valid",label:C("summaryValid"),count:(K==null?void 0:K.valid_count)??0}],M={view:"queue",triage_status:Et,min_score:G,search:P};return c.jsxs("div",{className:"space-y-5",children:[c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsxs("button",{type:"button",onClick:()=>O(T=>!T),className:"btn-secondary",title:`${C("btnShortcut")} (?)`,children:[c.jsx(l1,{size:15}),c.jsx("span",{className:"hidden sm:inline",children:C("btnShortcut")})]}),c.jsxs("a",{href:Ut.exportUrl("txt",M),className:"btn-secondary",download:!0,children:[c.jsx(vv,{size:14}),"TXT"]}),c.jsxs("a",{href:Ut.exportUrl("csv",M),className:"btn-secondary",download:!0,children:[c.jsx(vv,{size:14}),"CSV"]})]}),c.jsxs("button",{type:"button",onClick:f,className:"btn-primary",children:[c.jsx(fu,{size:15}),C("btnPivotImport")]})]}),j&&c.jsxs("div",{className:"panel flex flex-wrap items-center gap-x-5 gap-y-2 px-4 py-2.5 text-[12.5px] text-[var(--muted)]",children:[c.jsxs("span",{children:[c.jsx("kbd",{className:"mono rounded border border-[var(--border)] bg-[var(--ground)] px-1.5 py-0.5 text-[11px] text-[var(--text)]",children:"j / k"})," ",C("scMove")]}),c.jsxs("span",{children:[c.jsx("kbd",{className:"mono rounded border border-[var(--border)] bg-[var(--ground)] px-1.5 py-0.5 text-[11px] text-[var(--text)]",children:"c"})," ",C("scCopyMark")]}),c.jsxs("span",{children:[c.jsx("kbd",{className:"mono rounded border border-[var(--border)] bg-[var(--ground)] px-1.5 py-0.5 text-[11px] text-[var(--text)]",children:"o"})," ",C("scOpenTab")]}),c.jsxs("span",{children:[c.jsx("kbd",{className:"mono rounded border border-[var(--border)] bg-[var(--ground)] px-1.5 py-0.5 text-[11px] text-[var(--text)]",children:"s / v / d / r"})," ",C("scStatus")]}),c.jsxs("span",{children:[c.jsx("kbd",{className:"mono rounded border border-[var(--border)] bg-[var(--ground)] px-1.5 py-0.5 text-[11px] text-[var(--text)]",children:"Enter"})," ",C("scDetail")]})]}),bt&&c.jsxs("div",{className:"panel flex items-center justify-between px-4 py-3 text-[13px]",children:[c.jsx("span",{style:{color:"var(--negative)"},children:bt}),c.jsx("button",{type:"button",onClick:()=>void rt(),className:"btn-secondary h-7 text-[12px]",children:C("retry")})]}),c.jsxs("div",{className:"panel overflow-hidden",children:[c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 border-b border-[var(--border)] px-4 pt-2",children:[c.jsx("div",{className:"flex max-w-full min-w-0 items-center gap-1 overflow-x-auto",children:m.map(T=>{const A=Et===T.value;return c.jsxs("button",{type:"button",onClick:()=>Y(T.value),className:`relative flex shrink-0 items-center gap-1.5 px-3 py-2.5 text-[13px] transition-colors ${A?"font-medium text-[var(--text)]":"text-[var(--muted)] hover:text-[var(--text)]"}`,children:[c.jsx("span",{children:T.label}),c.jsx("span",{className:"num rounded bg-[var(--raised)] px-1.5 py-0.5 text-[11px] text-[var(--muted)]",children:T.count}),A&&c.jsx("span",{className:"absolute bottom-0 left-2 right-2 h-[2px] rounded-full bg-[var(--accent)]"})]},T.value||"all")})}),c.jsxs("button",{type:"button",onClick:z,className:"mb-1.5 inline-flex items-center gap-1.5 rounded-md px-2.5 py-1 text-[12px] text-[var(--muted)] transition-colors hover:bg-[var(--raised)] hover:text-[var(--text)]",children:[c.jsx(x1,{size:13}),c.jsx("span",{children:C("summaryManual")}),c.jsx("span",{className:"num font-medium text-[var(--text)]",children:(K==null?void 0:K.manual_count)??0})]})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2.5 border-b border-[var(--rule)] px-4 py-3",children:[c.jsxs("div",{className:"relative min-w-[220px] flex-1",children:[c.jsx(xv,{size:14,className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-[var(--faint)]"}),c.jsx("input",{type:"text",value:P,onChange:T=>wt(T.target.value),placeholder:C("searchQueuePlaceholder"),className:"control-input w-full pl-8"})]}),c.jsxs("select",{value:String(G),onChange:T=>lt(Number(T.target.value)),className:"control-select","aria-label":C("colScore"),children:[c.jsx("option",{value:"0",children:C("allScores")}),c.jsx("option",{value:"40",children:C("score40")}),c.jsx("option",{value:"70",children:C("score70")})]}),c.jsxs("select",{value:k,onChange:T=>W(T.target.value),className:"control-select","aria-label":C("sortHighestScore"),children:[c.jsx("option",{value:"confidence_desc",children:C("sortHighestScore")}),c.jsx("option",{value:"newest",children:C("sortNewest")}),c.jsx("option",{value:"domain_asc",children:C("sortDomainAsc")})]})]}),_t?c.jsx("div",{className:"divide-y divide-[var(--rule)]",children:[1,2,3,4].map(T=>c.jsxs("div",{className:"flex items-center justify-between px-4 py-4",children:[c.jsx("div",{className:"h-4 w-60 rounded bg-[var(--raised)]"}),c.jsx("div",{className:"h-4 w-28 rounded bg-[var(--raised)]"})]},T))}):X.length===0?c.jsxs("div",{className:"px-6 py-12 text-center",children:[c.jsx("p",{className:"text-[14px] font-medium text-[var(--text)]",children:C("emptyQueueTitle")}),c.jsx("p",{className:"mt-1 text-[13px] text-[var(--muted)]",children:C("emptyQueueSubtitle")}),c.jsxs("button",{type:"button",onClick:f,className:"btn-primary mt-4",children:[c.jsx(fu,{size:15}),C("emptyQueueCta")]})]}):c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"w-full border-collapse text-left",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"border-b border-[var(--rule)] text-[12px] font-medium text-[var(--muted)]",children:[c.jsx("th",{className:"px-4 py-2.5 font-medium",children:C("colDomainTitle")}),c.jsx("th",{className:"px-3 py-2.5 text-right font-medium",children:C("colScore")}),c.jsx("th",{className:"hidden px-3 py-2.5 font-medium lg:table-cell",children:C("colSignals")}),c.jsx("th",{className:"px-3 py-2.5 font-medium",children:C("colStatus")}),c.jsx("th",{className:"px-4 py-2.5 text-right font-medium",children:C("colActions")})]})}),c.jsx("tbody",{className:"divide-y divide-[var(--rule)]",children:X.map((T,A)=>{const J=A===xt,F=T.final_url||`https://${T.normalized_domain}`,it=Bt===T.id;return c.jsxs("tr",{onClick:()=>Ct(A),className:`transition-colors hover:bg-[var(--raised)]/70 ${J?"bg-[var(--raised)]/70":""}`,style:J?{boxShadow:"inset 3px 0 0 var(--accent)"}:void 0,children:[c.jsx("td",{className:"max-w-[360px] px-4 py-3.5 align-middle",children:c.jsxs("button",{type:"button",onClick:H=>{H.stopPropagation(),Ct(A),ce(T)},className:"block w-full text-left",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"truncate text-[13.5px] font-medium tracking-[-0.01em] text-[var(--text)]",children:T.normalized_domain}),T.http_status&&c.jsx("span",{className:"num text-[11.5px] text-[var(--faint)]",children:T.http_status})]}),c.jsx("div",{className:"mt-0.5 truncate text-[12.5px] text-[var(--muted)]",children:T.page_title||T.detection_notes||C("noTitle")})]})}),c.jsx("td",{className:"px-3 py-3.5 text-right align-middle",children:c.jsx(Nv,{score:T.confidence_score})}),c.jsx("td",{className:"hidden px-3 py-3.5 align-middle lg:table-cell",children:c.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[T.matched_keywords.slice(0,3).map((H,tt)=>c.jsx("span",{className:"rounded-md bg-[var(--raised)] px-2 py-0.5 text-[11.5px] text-[var(--muted)]",children:H.keyword},`${H.keyword}-${tt}`)),T.matched_keywords.length===0&&c.jsx("span",{className:"text-[12px] text-[var(--faint)]",children:"—"})]})}),c.jsx("td",{className:"px-3 py-3.5 align-middle",onClick:H=>H.stopPropagation(),children:c.jsxs("select",{value:T.triage_status,onChange:H=>void xe(T.id,H.target.value),"aria-label":`Status ${T.normalized_domain}`,className:"control-select h-[30px] pl-2.5 pr-7 text-[12px]",children:[c.jsx("option",{value:"new",children:C("statusNew")}),c.jsx("option",{value:"claimed",children:C("statusClaimed")}),c.jsx("option",{value:"submitted",children:C("statusSubmitted")}),c.jsx("option",{value:"valid",children:C("statusValid")}),c.jsx("option",{value:"duplicate",children:C("statusDuplicate")}),c.jsx("option",{value:"rejected",children:C("statusRejected")})]})}),c.jsx("td",{className:"px-4 py-3.5 text-right align-middle",onClick:H=>H.stopPropagation(),children:c.jsxs("div",{className:"inline-flex items-center justify-end gap-1",children:[c.jsxs("button",{type:"button",onClick:()=>void Pt(T),className:`btn-row-action ${it?"is-copied":""}`,title:C("titleCopyMark"),children:[it?c.jsx(bv,{size:13}):c.jsx(Ky,{size:13}),c.jsx("span",{children:C(it?"btnCopied":"btnCopyMark")})]}),c.jsx("a",{href:F,target:"_blank",rel:"noopener noreferrer",className:"btn-ghost w-[30px] px-0",title:C("titleOpenTab"),"aria-label":`${C("drawerOpenTab")} ${T.normalized_domain}`,children:c.jsx(Mr,{size:14})}),c.jsx("button",{type:"button",onClick:()=>w(T),className:"btn-ghost w-[30px] px-0",title:C("titlePivotRow"),"aria-label":`${C("drawerPivot")} ${T.normalized_domain}`,children:c.jsx(vn,{size:14})})]})})]},T.id)})})]})})]}),x>X.length&&c.jsxs("div",{className:"text-right text-[12px] text-[var(--muted)]",children:[C("showingOf")," ",X.length," ",C("of")," ",x," ",C("domainsNoun")]}),c.jsx(_v,{domain:be,onClose:()=>ce(null),onCopyClaim:T=>void Pt(T),onStatusChange:(T,A)=>void xe(T,A),onPivot:w,onRecheck:Z,onQueueOutbound:(T,A)=>void il(T,A)})]})}function Z1(){const[r,p]=q.useState("queue"),[N,f]=L1(),[z,w]=q.useState([]),[Z,B]=q.useState(0),C=q.useRef(1),{t:X}=Nl(),D=q.useCallback((ct,P="neutral")=>{const wt=C.current++;w(Et=>[...Et,{id:wt,text:ct,tone:P}]),setTimeout(()=>{w(Et=>Et.filter(Y=>Y.id!==wt))},2800)},[]),x=q.useCallback(ct=>{B(P=>P+1)},[]),{jobs:L,counts:st,setCounts:ht}=H1(x),_t=L.find(ct=>ct.status==="running")??null,at=async ct=>{try{await Ut.startPivot({domain_id:ct.id,sources:["crtsh","urlscan","html"]}),D(`${X("toastPivotStarted")} ${ct.normalized_domain}`,"success")}catch(P){D(P instanceof Error?P.message:X("toastPivotFailed"),"error")}},bt=async ct=>{try{await Ut.recheckDomain(ct.id),D(`${X("toastRecheckStarted")} ${ct.normalized_domain}`)}catch(P){D(P instanceof Error?P.message:X("toastRecheckFailed"),"error")}};return c.jsxs(U1,{activeTab:r,onTabChange:p,counts:st,activeJob:_t,theme:N,onToggleTheme:f,children:[r==="queue"&&c.jsx(X1,{counts:st,onCountsUpdate:ht,refreshTick:Z,onGoIntake:()=>p("intake"),onGoArchiveManual:()=>p("archive"),onPivot:at,onRecheck:bt,notify:D}),r==="intake"&&c.jsx(Y1,{jobs:L,onJobStarted:()=>B(ct=>ct+1),notify:D}),r==="archive"&&c.jsx(q1,{counts:st,onCountsUpdate:ht,refreshTick:Z,onPivot:at,onRecheck:bt,notify:D}),r==="settings"&&c.jsx(G1,{notify:D}),c.jsx(w1,{toasts:z})]})}Ay.createRoot(document.getElementById("root")).render(c.jsx(q.StrictMode,{children:c.jsx(O1,{children:c.jsx(Z1,{})})}));
|
package/dist/web/index.html
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"
|
|
16
16
|
rel="stylesheet"
|
|
17
17
|
/>
|
|
18
|
-
<script type="module" crossorigin src="/assets/index-
|
|
18
|
+
<script type="module" crossorigin src="/assets/index-B-RXOJoS.js"></script>
|
|
19
19
|
<link rel="stylesheet" crossorigin href="/assets/index-DtDzeyWK.css">
|
|
20
20
|
</head>
|
|
21
21
|
<body>
|
package/package.json
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rasyid2567/urlscanner",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Local zero-setup URL scanner, OSINT seed pivoter, layered Komdigi/ISP block validator, and triage workbench",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"author": "Rasyid2567",
|
|
8
|
+
"homepage": "https://github.com/Rasyid2567/urlscanner#readme",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/Rasyid2567/urlscanner.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/Rasyid2567/urlscanner/issues"
|
|
15
|
+
},
|
|
7
16
|
"bin": {
|
|
8
17
|
"urlscanner": "dist/cli.js"
|
|
9
18
|
},
|
|
@@ -40,6 +49,7 @@
|
|
|
40
49
|
"@hono/node-server": "^1.13.7",
|
|
41
50
|
"cheerio": "^1.0.0",
|
|
42
51
|
"hono": "^4.7.4",
|
|
52
|
+
"systray2": "^2.1.4",
|
|
43
53
|
"tldts": "^7.0.3",
|
|
44
54
|
"undici": "^7.4.0"
|
|
45
55
|
},
|