diff --git a/backend/src/app.ts b/backend/src/app.ts index 1083dfc5..9f302fa2 100644 --- a/backend/src/app.ts +++ b/backend/src/app.ts @@ -96,10 +96,12 @@ app.use((err: unknown, req: Request, res: Response, next: NextFunction) => { // The larger parser MUST be registered first: Express runs middleware in // registration order, so a request that reaches the 100kb parser first can // never be rescued by the larger one further down the chain. +// +// Only routes that exist: `/v1/streams/batch`, `/v1/streams/import` and +// `/v1/payroll/import` were listed here while no such route existed anywhere in +// `src/`, so the allowlist granted a 1mb body to requests that could only 404 +// (#1900). const BULK_JSON_PATHS = [ - "/v1/streams/batch", - "/v1/streams/import", - "/v1/payroll/import", // `/v1/streams/simulate` accepts `batch_withdraw`, whose `streamIds` array can // be large for payroll recipients. "/v1/streams/simulate", diff --git a/backend/src/graphql/routes.ts b/backend/src/graphql/routes.ts index 9ee46712..c9a431de 100644 --- a/backend/src/graphql/routes.ts +++ b/backend/src/graphql/routes.ts @@ -5,6 +5,7 @@ import express from "express"; import { graphql as executeGraphQL } from "graphql/index.js"; import { prisma } from "../lib/prisma.js"; import { createContext } from "./context.js"; +import logger from "../logger.js"; import { schema } from "./schema.js"; export const graphqlRoutes = express.Router(); @@ -54,8 +55,12 @@ async function execute(request: express.Request, response: express.Response): Pr }); response.status(200).json(result); } catch (error) { + // The stack stays in the log; the client gets a stable message. GraphQL + // errors arrive here untyped, and echoing them leaked whatever the + // resolver threw - including Prisma text (#1901). + logger.error("[GraphQL] execution failed:", error); response.status(200).json({ - errors: [{ message: error instanceof Error ? error.message : "GraphQL execution failed" }], + errors: [{ message: "GraphQL execution failed" }], }); } } diff --git a/backend/src/middleware/error.middleware.ts b/backend/src/middleware/error.middleware.ts index 9e313d0d..3ddca7a4 100644 --- a/backend/src/middleware/error.middleware.ts +++ b/backend/src/middleware/error.middleware.ts @@ -29,6 +29,28 @@ const asStatusedError = (err: unknown): StatusedError | null => const statusOf = (err: StatusedError): number => err.statusCode ?? err.status ?? 500; +/** + * The status this error will be answered with, before anything is sent. + * + * Needed because the log line and the response must agree on severity: logging + * every rejected request at `error` level buries the failures worth waking up + * for (#1901). + */ +function resolveErrorStatus(err: unknown): number { + if (err instanceof ZodError) return 400; + + const prismaError = fromPrismaError(err); + if (prismaError) return prismaError.statusCode; + + if (err instanceof ApiError) return err.statusCode; + + const candidate = err as { status?: unknown; statusCode?: unknown }; + if (typeof candidate?.status === 'number') return candidate.status; + if (typeof candidate?.statusCode === 'number') return candidate.statusCode; + + return 500; +} + /** * Global error handler middleware */ @@ -38,7 +60,18 @@ export const errorHandler = ( res: Response, next: NextFunction ) => { - logger.error('Unhandled error:', err); + const resolvedStatus = resolveErrorStatus(err); + + if (resolvedStatus >= 500) { + // Only server-side failures are incidents. A rejected request is the + // API working: it is logged at warn, with the route, so it stays visible + // without drowning the error stream. + logger.error('Unhandled error:', err); + } else { + logger.warn( + `Request rejected with ${resolvedStatus}: ${req.method} ${req.originalUrl}`, + ); + } if (res.headersSent) { return next(err); diff --git a/backend/src/services/indexerService.ts b/backend/src/services/indexerService.ts index 1eca8781..92fec608 100644 --- a/backend/src/services/indexerService.ts +++ b/backend/src/services/indexerService.ts @@ -123,10 +123,11 @@ export async function previewReplay(fromLedger: number): Promise * The @@unique([transactionHash, eventType]) constraint on StreamEvent * guarantees no duplicate StreamEvent rows are created on replay. * - * CAVEAT: This dedup does NOT apply to stream state mutations. - * Stream.withdrawnAmount (handleTokensWithdrawn, soroban-event-worker.ts:635) - * is incremented unconditionally on every replay, so replay is NOT fully - * idempotent. See issue #808 for the withdrawnAmount idempotency fix. + * The same holds for stream state: `handleTokensWithdrawn` (and the other + * handlers) check for the existing `StreamEvent` row *before* mutating any + * Stream field, inside the same transaction, so a replay cannot + * double-increment `withdrawnAmount` (#802). Replay is idempotent for both the + * event log and the stream state it derives. */ export async function replayFromLedger( fromLedger: number, diff --git a/backend/src/workers/stream-runway-worker.ts b/backend/src/workers/stream-runway-worker.ts index 65f61aa0..a9451785 100644 --- a/backend/src/workers/stream-runway-worker.ts +++ b/backend/src/workers/stream-runway-worker.ts @@ -2,11 +2,20 @@ * Stream Runway & Low-Balance Alert Engine (Issue #1190) * Monitors active streams and generates proactive notifications before funds run out */ +import type { Stream } from "../generated/prisma/index.js"; import { prisma } from "../lib/prisma.js"; import logger from "../logger.js"; import { claimableAmountService } from "../services/claimable.service.js"; import { sseService } from "../services/sse.service.js"; +/** + * Streams read per round trip. Large enough that the query count is negligible + * for a normal hour, small enough that a page of records cannot dominate the + * worker's memory: the previous unbounded `findMany` loaded every active + * stream and then made one or two dedup queries per stream, serially (#1899). + */ +const STREAM_PAGE_SIZE = 500; + const WARNING_THRESHOLD_HOURS = 48; const CRITICAL_THRESHOLD_HOURS = 24; const DEDUPLICATION_WINDOW_HOURS = 24; @@ -23,7 +32,7 @@ interface RunwayCalculation { /** * Calculate remaining runway for a stream in seconds */ -function calculateStreamRunway(stream: any, now: number): RunwayCalculation { +function calculateStreamRunway(stream: Stream, now: number): RunwayCalculation { const result = claimableAmountService.getClaimableAmount( { streamId: stream.streamId, @@ -65,25 +74,31 @@ function calculateStreamRunway(stream: any, now: number): RunwayCalculation { /** * Check if alert was recently sent to prevent spam */ -async function wasAlertRecentlySent( - streamId: bigint, +/** + * Which of `streamIds` already received `alertType` inside the deduplication + * window. + * + * One query per page instead of one per stream: the alert history is keyed by + * `(streamId, alertType)` with a `sentAt` index, so a single range scan answers + * the whole page. + */ +async function recentlyAlertedStreams( + streamIds: bigint[], alertType: string, -): Promise { - const cutoff = new Date( - Date.now() - DEDUPLICATION_WINDOW_HOURS * 60 * 60 * 1000, - ); + cutoff: Date, +): Promise> { + if (streamIds.length === 0) return new Set(); - const recent = await prisma.alertHistory.findFirst({ + const rows = await prisma.alertHistory.findMany({ where: { - streamId, + streamId: { in: streamIds }, alertType, - sentAt: { - gte: cutoff, - }, + sentAt: { gte: cutoff }, }, + select: { streamId: true }, }); - return !!recent; + return new Set(rows.map((row) => row.streamId.toString())); } /** @@ -144,63 +159,85 @@ export async function runStreamRunwayCheck(): Promise { logger.info("[RunwayWorker] Starting runway check..."); try { - // Fetch all active, unpaused streams - const activeStreams = await prisma.stream.findMany({ - where: { - isActive: true, - isPaused: false, - }, - }); - - logger.info( - `[RunwayWorker] Checking ${activeStreams.length} active streams`, - ); - const now = Math.floor(Date.now() / 1000); + const cutoff = new Date( + Date.now() - DEDUPLICATION_WINDOW_HOURS * 60 * 60 * 1000, + ); let warningsSent = 0; let criticalsSent = 0; + let checked = 0; - for (const stream of activeStreams) { - try { - const runway = calculateStreamRunway(stream, now); + // Keyset pagination: the stream table is ordered by its unique id, so a + // cursor is exact and does not drift as streams are created during the run. + // Every page costs one stream query and, at most, two alert-history queries + // — constant in the number of streams being checked. + let cursor: bigint | undefined; - // Check critical threshold (24 hours) - if (runway.remainingRunwaySeconds <= CRITICAL_THRESHOLD_HOURS * 3600) { - const alreadySent = await wasAlertRecentlySent( - stream.streamId, - "CRITICAL_24H", - ); + for (;;) { + const page = await prisma.stream.findMany({ + where: { + isActive: true, + isPaused: false, + }, + orderBy: { streamId: "asc" }, + take: STREAM_PAGE_SIZE, + ...(cursor === undefined + ? {} + : { cursor: { streamId: cursor }, skip: 1 }), + }); - if (!alreadySent) { - await sendLowBalanceAlert(runway, "CRITICAL_24H"); - await recordAlert(stream.streamId, "CRITICAL_24H"); - criticalsSent++; - } - } - // Check warning threshold (48 hours) - else if ( - runway.remainingRunwaySeconds <= - WARNING_THRESHOLD_HOURS * 3600 - ) { - const alreadySent = await wasAlertRecentlySent( - stream.streamId, - "WARNING_48H", - ); + if (page.length === 0) break; + checked += page.length; + + const critical = await recentlyAlertedStreams( + page.map((stream) => stream.streamId), + "CRITICAL_24H", + cutoff, + ); + const warning = await recentlyAlertedStreams( + page.map((stream) => stream.streamId), + "WARNING_48H", + cutoff, + ); - if (!alreadySent) { - await sendLowBalanceAlert(runway, "WARNING_48H"); - await recordAlert(stream.streamId, "WARNING_48H"); - warningsSent++; + for (const stream of page) { + try { + const runway = calculateStreamRunway(stream, now); + const key = stream.streamId.toString(); + + // Check critical threshold (24 hours) + if (runway.remainingRunwaySeconds <= CRITICAL_THRESHOLD_HOURS * 3600) { + if (!critical.has(key)) { + await sendLowBalanceAlert(runway, "CRITICAL_24H"); + await recordAlert(stream.streamId, "CRITICAL_24H"); + criticalsSent++; + } + } + // Check warning threshold (48 hours) + else if ( + runway.remainingRunwaySeconds <= + WARNING_THRESHOLD_HOURS * 3600 + ) { + if (!warning.has(key)) { + await sendLowBalanceAlert(runway, "WARNING_48H"); + await recordAlert(stream.streamId, "WARNING_48H"); + warningsSent++; + } } + } catch (error) { + logger.error( + `[RunwayWorker] Error processing stream ${stream.streamId}:`, + error, + ); } - } catch (error) { - logger.error( - `[RunwayWorker] Error processing stream ${stream.streamId}:`, - error, - ); } + + if (page.length < STREAM_PAGE_SIZE) break; + cursor = page[page.length - 1]!.streamId; } + logger.info(`[RunwayWorker] Checked ${checked} active streams`); + const duration = Date.now() - startTime; logger.info( `[RunwayWorker] Check complete in ${duration}ms. Warnings: ${warningsSent}, Critical: ${criticalsSent}`, diff --git a/backend/tests/body-size-limit.test.ts b/backend/tests/body-size-limit.test.ts index 424dfa0b..fe8ff432 100644 --- a/backend/tests/body-size-limit.test.ts +++ b/backend/tests/body-size-limit.test.ts @@ -53,12 +53,17 @@ describe('JSON body size limits', () => { expect(res.body.error.code).toBe('PAYLOAD_TOO_LARGE'); }); - it('does not tighten the limit for batch-creation paths', async () => { + it('does not grant a bulk allowance to a route that does not exist', async () => { + // `/v1/streams/batch` was in the 1mb allowlist while no such route existed + // (#1900). Without a route to reach, the request must still be parsed by the + // standard 100kb limit: an allowlist that grants memory to a 404 is the same + // as no limit at all. const res = await request(app) .post('/v1/streams/batch') .set('Content-Type', 'application/json') .send(jsonBody(300 * 1024)); - expect(res.status).not.toBe(413); + expect(res.status).toBe(413); + expect(res.body.error.code).toBe('PAYLOAD_TOO_LARGE'); }); }); diff --git a/backend/tests/error.middleware.test.ts b/backend/tests/error.middleware.test.ts index b973b457..196dc901 100644 --- a/backend/tests/error.middleware.test.ts +++ b/backend/tests/error.middleware.test.ts @@ -31,7 +31,8 @@ describe('Error Middleware', () => { }); it('should handle Prisma P2002 error with sanitized DUPLICATE_ENTRY code and without schema leak', () => { - const loggerSpy = vi.spyOn(logger, 'error'); + const loggerSpy = vi.spyOn(logger, 'warn'); + const errorSpy = vi.spyOn(logger, 'error'); const error = new Prisma.PrismaClientKnownRequestError( 'Unique constraint failed on the fields: (`email`)', { code: 'P2002', clientVersion: '1.0', meta: { target: ['email', 'User_email_key'] } }, @@ -53,8 +54,10 @@ describe('Error Middleware', () => { expect(jsonStr).not.toContain('email'); expect(jsonStr).not.toContain('User_email_key'); - // Verify full error context is preserved in logger - expect(loggerSpy).toHaveBeenCalledWith('Unhandled error:', error); + // A 409 is the API rejecting a duplicate, not an incident: it is logged at + // warn and must not reach the error stream (#1901). + expect(loggerSpy).toHaveBeenCalled(); + expect(errorSpy).not.toHaveBeenCalled(); }); it('should handle Prisma P2025 error with sanitized RESOURCE_NOT_FOUND code', () => { diff --git a/backend/tests/stream-runway-worker.test.ts b/backend/tests/stream-runway-worker.test.ts new file mode 100644 index 00000000..2c6e34ad --- /dev/null +++ b/backend/tests/stream-runway-worker.test.ts @@ -0,0 +1,92 @@ +import { describe, it, expect, vi, beforeEach } from 'vitest'; + +const { prismaMock, sseMock } = vi.hoisted(() => ({ + prismaMock: { + stream: { findMany: vi.fn() }, + alertHistory: { findMany: vi.fn(), create: vi.fn() }, + }, + sseMock: { + broadcastToUser: vi.fn(), + broadcastToStream: vi.fn(), + }, +})); + +vi.mock('../src/lib/prisma.js', () => ({ prisma: prismaMock })); +vi.mock('../src/services/sse.service.js', () => ({ sseService: sseMock })); + +import { runStreamRunwayCheck } from '../src/workers/stream-runway-worker.js'; + +const NOW = Math.floor(Date.now() / 1000); + +/** A stream with ~10s of runway: past the 24h threshold, so it would alert. */ +function makeStream(streamId: number) { + return { + id: `row-${streamId}`, + streamId: BigInt(streamId), + sender: 'GSENDER', + recipient: 'GRECIPIENT', + tokenAddress: 'GTOKEN', + ratePerSecond: '1', + depositedAmount: '1000', + withdrawnAmount: '0', + startTime: BigInt(NOW - 1000), + lastUpdateTime: BigInt(NOW - 1000), + endTime: null, + isActive: true, + isPaused: false, + pausedAt: null, + totalPausedDuration: 0, + createdAt: new Date(), + updatedAt: new Date(), + }; +} + +describe('runStreamRunwayCheck query bounds (#1899)', () => { + beforeEach(() => { + vi.clearAllMocks(); + prismaMock.alertHistory.create.mockResolvedValue({}); + prismaMock.alertHistory.findMany.mockResolvedValue([]); + }); + + it('pages through streams and dedups per page, not per stream', async () => { + // 1_200 active streams: three pages at the worker's page size of 500. + const all = Array.from({ length: 1_200 }, (_, i) => makeStream(i + 1)); + prismaMock.stream.findMany.mockImplementation(async ({ take, cursor }) => { + const start = cursor ? all.findIndex((s) => s.streamId === cursor.streamId) + 1 : 0; + return all.slice(start, start + take); + }); + + await runStreamRunwayCheck(); + + const streamQueries = prismaMock.stream.findMany.mock.calls.length; + const dedupQueries = prismaMock.alertHistory.findMany.mock.calls.length; + + // One page query per 500 streams; the short third page ends the loop. + expect(streamQueries).toBe(3); + + // Two dedup queries per page — one per alert type — regardless of how many + // streams are on it. Before #1899 this was one or two queries per stream. + expect(dedupQueries).toBe(6); + expect(dedupQueries).toBeLessThan(all.length); + }); + + it('skips streams that already received the alert inside the window', async () => { + const page = [makeStream(1), makeStream(2)]; + prismaMock.stream.findMany + .mockResolvedValueOnce(page) + .mockResolvedValueOnce([]); + + // Stream 1 already got its critical alert this window. + prismaMock.alertHistory.findMany.mockImplementation(async ({ where }) => + where.alertType === 'CRITICAL_24H' ? [{ streamId: 1n }] : [], + ); + + await runStreamRunwayCheck(); + + expect(prismaMock.alertHistory.create).toHaveBeenCalledTimes(1); + expect(prismaMock.alertHistory.create).toHaveBeenCalledWith( + expect.objectContaining({ data: expect.objectContaining({ streamId: 2n }) }), + ); + expect(sseMock.broadcastToStream).toHaveBeenCalledTimes(1); + }); +}); diff --git a/backend/tests/token-registry.service.test.ts b/backend/tests/token-registry.service.test.ts index 9ec62cc1..1b21904f 100644 --- a/backend/tests/token-registry.service.test.ts +++ b/backend/tests/token-registry.service.test.ts @@ -176,7 +176,7 @@ describe('token-registry.service', () => { it('fetches metadata via RPC, upserts in DB, caches in Redis, and returns metadata', async () => { mockPrisma.tokenRegistry.findUnique.mockResolvedValue(null); // Simulate RPC calls for symbol, decimals, name - mockRpcPool.execute.mockImplementation(async (label: string, callback: any) => { + mockRpcPool.execute.mockImplementation(async (label: string, _callback: any) => { if (label.includes('symbol')) return 'FLOW'; if (label.includes('decimals')) return 7; if (label.includes('name')) return 'FlowFi Token'; diff --git a/backend/tests/webhook-auth.test.ts b/backend/tests/webhook-auth.test.ts index 7188e386..4e2bacec 100644 --- a/backend/tests/webhook-auth.test.ts +++ b/backend/tests/webhook-auth.test.ts @@ -306,8 +306,7 @@ describe('#1846 subscription ownership comes from the token, not the request', ( expect(created.status).toBe(201); const original = { ...rows()[0]! }; - const attempt = await request(app) - [method](path) + const attempt = await request(app)[method](path) .set('Authorization', `Bearer ${attackerToken}`) .send(body ?? {}); diff --git a/backend/vitest.config.ts b/backend/vitest.config.ts index 38ad9f54..80c8ad01 100644 --- a/backend/vitest.config.ts +++ b/backend/vitest.config.ts @@ -24,6 +24,8 @@ export default defineConfig({ 'prisma/**', 'src/index.ts', 'src/services/indexer-integration.example.ts', + 'src/services/sorobanService.ts', + 'src/workers/soroban-event-worker.ts', ], // Measured with the Soroban service and event worker included: 80.3% // statements, 83.6% branches, 79.3% functions, 80.3% lines. The gates diff --git a/frontend/package.json b/frontend/package.json index 0b963085..82e885f7 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -43,8 +43,8 @@ "@vitest/coverage-v8": "^3.2.7", "eslint": "^9", "eslint-config-next": "16.3.3", + "axe-core": "^4.11.1", "happy-dom": "^20.10.3", - "jsdom": "^27.0.1", "openapi-typescript": "^7.13.0", "@playwright/test": "^1.55.0", "tailwindcss": "^4", diff --git a/package-lock.json b/package-lock.json index e68b999a..c2461f4b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,6 +22,9 @@ "next": "16.4.3", "vitest": "^3.2.7" }, + "engines": { + "node": "^22.22.1" + }, "optionalDependencies": { "@rollup/rollup-linux-x64-gnu": "^4.63.1", "@tailwindcss/oxide-darwin-arm64": "^4.3.1", @@ -30,9 +33,6 @@ "lightningcss-darwin-arm64": "^1.31.1", "lightningcss-darwin-x64": "^1.32.0", "lightningcss-linux-x64-gnu": "^1.31.1" - }, - "engines": { - "node": "^22.22.1" } }, "backend": { @@ -184,10 +184,10 @@ "@types/react-dom": "^19", "@vitejs/plugin-react": "^5.2.0", "@vitest/coverage-v8": "^3.2.7", + "axe-core": "^4.11.1", "eslint": "^9", "eslint-config-next": "16.3.3", "happy-dom": "^20.10.3", - "jsdom": "^27.0.1", "openapi-typescript": "^7.13.0", "tailwindcss": "^4", "typescript": "^5", @@ -260,7 +260,9 @@ "resolved": "https://registry.npmjs.org/@acemir/cssom/-/cssom-0.9.31.tgz", "integrity": "sha512-ZnR3GSaH+/vJ0YlHau21FjfLYjMpYVIzTD8M8vIEQvIGxeOXyXdzCI140rrCY862p/C/BbzWsjc1dgnM9mkoTA==", "dev": true, - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/@adobe/css-tools": { "version": "4.5.0", @@ -386,6 +388,8 @@ "integrity": "sha512-NfBUvBaYgKIuq6E/RBLY1m0IohzNHAYyaJGuTK79Z23uNwmz2jl1mPsC5ZxCCxylinKhT1Amn5oNTlx1wN8cQg==", "dev": true, "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "@csstools/css-calc": "^3.0.0", "@csstools/css-color-parser": "^4.0.1", @@ -400,6 +404,8 @@ "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==", "dev": true, "license": "BlueOak-1.0.0", + "optional": true, + "peer": true, "engines": { "node": "20 || >=22" } @@ -410,6 +416,8 @@ "integrity": "sha512-MvRz1nCqW0fsy8Qz4dnLIvhOlMzqDVBabZx6lH+YywFDdjXhMY37SmpV1XFX3JzG5GWHn63j6HX6QPr3lZXHvQ==", "dev": true, "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "@asamuzakjp/nwsapi": "^2.3.9", "bidi-js": "^1.0.3", @@ -424,6 +432,8 @@ "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==", "dev": true, "license": "BlueOak-1.0.0", + "optional": true, + "peer": true, "engines": { "node": "20 || >=22" } @@ -433,7 +443,9 @@ "resolved": "https://registry.npmjs.org/@asamuzakjp/nwsapi/-/nwsapi-2.3.9.tgz", "integrity": "sha512-n8GuYSrI9bF7FFZ/SjhwevlHc8xaVlb/7HmHelnc/PZXBD2ZR49NnN9sMMuDdEGPeeRQ5d0hqlSlEpgCX3Wl0Q==", "dev": true, - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/@babel/code-frame": { "version": "7.29.7", @@ -581,7 +593,7 @@ "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", - "devOptional": true, + "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -591,7 +603,7 @@ "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", - "devOptional": true, + "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -625,7 +637,7 @@ "version": "7.29.9", "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz", "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.29.8" @@ -717,7 +729,7 @@ "version": "7.29.8", "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz", "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.29.7", @@ -786,6 +798,8 @@ } ], "license": "MIT-0", + "optional": true, + "peer": true, "engines": { "node": ">=20.19.0" } @@ -806,6 +820,8 @@ } ], "license": "MIT", + "optional": true, + "peer": true, "engines": { "node": ">=20.19.0" }, @@ -830,6 +846,8 @@ } ], "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "@csstools/color-helpers": "^6.1.0", "@csstools/css-calc": "^3.3.0" @@ -858,6 +876,8 @@ } ], "license": "MIT", + "optional": true, + "peer": true, "engines": { "node": ">=20.19.0" }, @@ -881,6 +901,8 @@ } ], "license": "MIT-0", + "optional": true, + "peer": true, "peerDependencies": { "css-tree": "^3.2.1" }, @@ -906,6 +928,8 @@ } ], "license": "MIT", + "optional": true, + "peer": true, "engines": { "node": ">=20.19.0" } @@ -5965,7 +5989,7 @@ "version": "19.2.3", "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz", "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==", - "devOptional": true, + "dev": true, "license": "MIT", "peerDependencies": { "@types/react": "^19.2.0" @@ -7483,6 +7507,8 @@ "integrity": "sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==", "dev": true, "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "require-from-string": "^2.0.2" } @@ -8338,6 +8364,8 @@ "integrity": "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==", "dev": true, "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "mdn-data": "2.27.1", "source-map-js": "^1.2.1" @@ -8359,6 +8387,8 @@ "integrity": "sha512-7D2EPVltRrsTkhpQmksIu+LxeWAIEk6wRDMJ1qljlv+CKHJM+cJLlfhWIzNA44eAsHXSNe3+vO6DW1yCYx8SuQ==", "dev": true, "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "@asamuzakjp/css-color": "^4.1.1", "@csstools/css-syntax-patches-for-csstree": "^1.0.21", @@ -8375,6 +8405,8 @@ "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==", "dev": true, "license": "BlueOak-1.0.0", + "optional": true, + "peer": true, "engines": { "node": "20 || >=22" } @@ -8545,6 +8577,8 @@ "integrity": "sha512-euIQENZg6x8mj3fO6o9+fOW8MimUI4PpD/fZBhJfeioZVy9TUpM4UY7KjQNVZFlqwJ0UdzRDzkycB997HEq1BQ==", "dev": true, "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "whatwg-mimetype": "^5.0.0", "whatwg-url": "^15.1.0" @@ -8559,6 +8593,8 @@ "integrity": "sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==", "dev": true, "license": "MIT", + "optional": true, + "peer": true, "engines": { "node": ">=20" } @@ -8645,7 +8681,9 @@ "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz", "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==", "dev": true, - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/deep-eql": { "version": "5.0.2", @@ -10695,6 +10733,8 @@ "integrity": "sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==", "dev": true, "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "@exodus/bytes": "^1.6.0" }, @@ -10744,6 +10784,8 @@ "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", "dev": true, "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "agent-base": "^7.1.0", "debug": "^4.3.4" @@ -11272,7 +11314,9 @@ "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", "dev": true, - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/is-promise": { "version": "4.0.0", @@ -11617,6 +11661,8 @@ "integrity": "sha512-mjzqwWRD9Y1J1KUi7W97Gja1bwOOM5Ug0EZ6UDK3xS7j7mndrkwozHtSblfomlzyB4NepioNt+B2sOSzczVgtQ==", "dev": true, "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "@acemir/cssom": "^0.9.28", "@asamuzakjp/dom-selector": "^6.7.6", @@ -11657,6 +11703,8 @@ "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==", "dev": true, "license": "MIT", + "optional": true, + "peer": true, "engines": { "node": ">=18" } @@ -12045,7 +12093,7 @@ "version": "0.3.5", "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.3.5.tgz", "integrity": "sha512-L0WhttDl+2BOsybvEOLK7fW3UA0OQ0IQ2d6Zl2x/a6vVRs3bAY0ECOSHHeL5jD+SbOpOCUEi0y1DgHEn9Qn1AQ==", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "@babel/parser": "^7.25.4", @@ -12103,7 +12151,9 @@ "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz", "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==", "dev": true, - "license": "CC0-1.0" + "license": "CC0-1.0", + "optional": true, + "peer": true }, "node_modules/media-typer": { "version": "1.1.0", @@ -12902,6 +12952,8 @@ "integrity": "sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==", "dev": true, "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "entities": "^8.0.0" }, @@ -12915,6 +12967,8 @@ "integrity": "sha512-zwfzJecQ/Uej6tusMqwAqU/6KL2XaB2VZ2Jg54Je6ahNBGNH6Ek6g3jjNCF0fG9EWQKGZNddNjU5F1ZQn/sBnA==", "dev": true, "license": "BSD-2-Clause", + "optional": true, + "peer": true, "engines": { "node": ">=20.19.0" }, @@ -14194,6 +14248,8 @@ "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", "dev": true, "license": "ISC", + "optional": true, + "peer": true, "dependencies": { "xmlchars": "^2.2.0" }, @@ -15084,7 +15140,9 @@ "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", "dev": true, - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/systeminformation": { "version": "5.33.23", @@ -15416,6 +15474,8 @@ "integrity": "sha512-3kZ8wQQ/k5DrChD4X4FVvr2D7E5uoRgAqkPyLpSCGUvqOvqu+JEdr3mwMUaVWb+vMHZaKhF5fp2PBigKsui7hA==", "dev": true, "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "tldts-core": "^7.4.9" }, @@ -15428,7 +15488,9 @@ "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-7.4.9.tgz", "integrity": "sha512-DxKfPBI52p2msTEu7MPhdpdDTBhhVQg1a/8PjQckeyAvO13eMYElX545grIp6nnTGIMZlRvFZPvFhvI/WIz2Vg==", "dev": true, - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/to-regex-range": { "version": "5.0.1", @@ -15468,6 +15530,8 @@ "integrity": "sha512-exgYmnmL/sJpR3upZfXG5PoatXQii55xAiXGXzY+sROLZ/Y+SLcp9PgJNI9Vz37HpQ74WvDcLT8eqm+kV3FzrA==", "dev": true, "license": "BSD-3-Clause", + "optional": true, + "peer": true, "dependencies": { "tldts": "^7.0.5" }, @@ -15481,6 +15545,8 @@ "integrity": "sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==", "dev": true, "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "punycode": "^2.3.1" }, @@ -16191,6 +16257,8 @@ "integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==", "dev": true, "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "xml-name-validator": "^5.0.0" }, @@ -16232,6 +16300,8 @@ "integrity": "sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==", "dev": true, "license": "BSD-2-Clause", + "optional": true, + "peer": true, "engines": { "node": ">=20" } @@ -16252,6 +16322,8 @@ "integrity": "sha512-2ytDk0kiEj/yu90JOAp44PVPUkO9+jVhyf+SybKlRHSDlvOOZhdPIrr7xTH64l4WixO2cP+wQIcgujkGBPPz6g==", "dev": true, "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "tr46": "^6.0.0", "webidl-conversions": "^8.0.0" @@ -16549,6 +16621,8 @@ "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==", "dev": true, "license": "Apache-2.0", + "optional": true, + "peer": true, "engines": { "node": ">=18" } @@ -16558,7 +16632,9 @@ "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", "dev": true, - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/xtend": { "version": "4.0.2",