From 720eade8b518698329aa3cb37cc6b99d2d5fe092 Mon Sep 17 00:00:00 2001 From: Jerrit Fritzsche Date: Tue, 10 Nov 2026 23:48:30 +0100 Subject: [PATCH] Improve stack UI, session security, updates, scans and config editor --- backend/agent-manager.ts | 4 + .../docker-socket-handler.ts | 127 +- backend/auth-session.ts | 87 + backend/dockge-server.ts | 67 +- backend/image-vulnerability-scan.ts | 436 +++ .../2026-11-10-0000-revoked-token-table.ts | 12 + backend/models/user.ts | 17 +- backend/settings.ts | 15 +- .../agent-proxy-socket-handler.ts | 6 +- .../socket-handlers/main-socket-handler.ts | 151 +- backend/stack-auto-update.ts | 337 +++ backend/stack-files.ts | 109 + backend/stack.ts | 105 +- backend/util-server.ts | 8 +- common/env-file.ts | 71 + docker/Dockerfile | 18 + frontend/components.d.ts | 2 + .../src/components/ImageVulnerabilities.vue | 370 +++ frontend/src/components/NetworkInput.vue | 34 +- frontend/src/components/StackConfigEditor.vue | 495 ++++ frontend/src/components/StackList.vue | 612 ++--- frontend/src/components/StackListItem.vue | 183 +- frontend/src/components/settings/Security.vue | 16 +- frontend/src/lang/en.json | 109 + frontend/src/mixins/socket.ts | 62 +- frontend/src/pages/Compose.vue | 312 ++- frontend/src/pages/Dashboard.vue | 67 +- frontend/src/pages/Settings.vue | 12 +- frontend/src/styles/main.scss | 52 - frontend/src/styles/stack-navigation.css | 318 +++ frontend/vite.config.ts | 6 + package-lock.json | 2389 ++++++++++++++++- package.json | 7 + panda.config.ts | 38 + 34 files changed, 5679 insertions(+), 975 deletions(-) create mode 100644 backend/auth-session.ts create mode 100644 backend/image-vulnerability-scan.ts create mode 100644 backend/migrations/2026-11-10-0000-revoked-token-table.ts create mode 100644 backend/stack-auto-update.ts create mode 100644 backend/stack-files.ts create mode 100644 common/env-file.ts create mode 100644 frontend/src/components/ImageVulnerabilities.vue create mode 100644 frontend/src/components/StackConfigEditor.vue create mode 100644 frontend/src/styles/stack-navigation.css create mode 100644 panda.config.ts diff --git a/backend/agent-manager.ts b/backend/agent-manager.ts index 50bc1ef..da2d38e 100644 --- a/backend/agent-manager.ts +++ b/backend/agent-manager.ts @@ -126,6 +126,10 @@ export class AgentManager { } connect(url : string, username : string, password : string) { + if (!this.socket.connected) { + return; + } + let obj = new URL(url); let endpoint = obj.host; diff --git a/backend/agent-socket-handlers/docker-socket-handler.ts b/backend/agent-socket-handlers/docker-socket-handler.ts index 28f0c31..c464dad 100644 --- a/backend/agent-socket-handlers/docker-socket-handler.ts +++ b/backend/agent-socket-handlers/docker-socket-handler.ts @@ -8,10 +8,27 @@ export class DockerSocketHandler extends AgentSocketHandler { create(socket : DockgeSocket, server : DockgeServer, agentSocket : AgentSocket) { // Do not call super.create() - agentSocket.on("deployStack", async (name : unknown, composeYAML : unknown, composeENV : unknown, isAdd : unknown, callback) => { + const onStackMutation = (event: string, handler: (...args: unknown[]) => Promise) => { + agentSocket.on(event, async (...args: unknown[]) => { + try { + checkLogin(socket); + const name = args[0]; + if (typeof name === "string") { + await Stack.withOperation(server, name, () => handler(...args)); + } else { + await handler(...args); + } + } catch (error) { + callbackError(error, args.at(-1)); + } + }); + }; + + onStackMutation("deployStack", async (name : unknown, composeYAML : unknown, composeENV : unknown, isAdd : unknown, revisionOrCallback, acknowledgement) => { + const callback = typeof revisionOrCallback === "function" ? revisionOrCallback : acknowledgement; + const revision = typeof revisionOrCallback === "function" ? undefined : revisionOrCallback; try { - checkLogin(socket); - const stack = await this.saveStack(server, name, composeYAML, composeENV, isAdd); + const stack = await this.saveStack(server, name, composeYAML, composeENV, isAdd, revision); await stack.deploy(socket); server.sendStackList(); callbackResult({ @@ -25,14 +42,16 @@ export class DockerSocketHandler extends AgentSocketHandler { } }); - agentSocket.on("saveStack", async (name : unknown, composeYAML : unknown, composeENV : unknown, isAdd : unknown, callback) => { + onStackMutation("saveStack", async (name : unknown, composeYAML : unknown, composeENV : unknown, isAdd : unknown, revisionOrCallback, acknowledgement) => { + const callback = typeof revisionOrCallback === "function" ? revisionOrCallback : acknowledgement; + const revision = typeof revisionOrCallback === "function" ? undefined : revisionOrCallback; try { - checkLogin(socket); - await this.saveStack(server, name, composeYAML, composeENV, isAdd); + const stack = await this.saveStack(server, name, composeYAML, composeENV, isAdd, revision); callbackResult({ ok: true, msg: "Saved", msgi18n: true, + revision: stack.revision, }, callback); server.sendStackList(); } catch (e) { @@ -40,9 +59,8 @@ export class DockerSocketHandler extends AgentSocketHandler { } }); - agentSocket.on("deleteStack", async (name : unknown, callback) => { + onStackMutation("deleteStack", async (name : unknown, callback) => { try { - checkLogin(socket); if (typeof(name) !== "string") { throw new ValidationError("Name must be a string"); } @@ -55,6 +73,7 @@ export class DockerSocketHandler extends AgentSocketHandler { throw e; } + server.imageVulnerabilityScan.forget(name); server.sendStackList(); callbackResult({ ok: true, @@ -84,12 +103,61 @@ export class DockerSocketHandler extends AgentSocketHandler { callbackResult({ ok: true, stack: await stack.toJSON(socket.endpoint), + autoUpdate: await server.stackAutoUpdate.getPolicy(stack), + imageScanSupported: stack.isManagedByDockge, }, callback); } catch (e) { callbackError(e, callback); } }); + agentSocket.on("startStackImageScan", async (name, callback) => { + try { + checkLogin(socket); + if (typeof name !== "string" || !/^[a-z0-9_-]+$/.test(name) + || !await Stack.composeFileExists(server.stacksDir, name)) { + throw new ValidationError("imageScanDiscoveryFailed"); + } + const stack = await Stack.getStack(server, name); + callbackResult({ + ok: true, + report: server.imageVulnerabilityScan.start(stack), + }, callback); + } catch (error) { + callbackError(error, callback); + } + }); + + agentSocket.on("getStackImageScan", async (name, callback) => { + try { + checkLogin(socket); + if (typeof name !== "string" || !/^[a-z0-9_-]+$/.test(name)) { + throw new ValidationError("imageScanInvalidRequest"); + } + callbackResult({ + ok: true, + report: server.imageVulnerabilityScan.summary(name), + }, callback); + } catch (error) { + callbackError(error, callback); + } + }); + + agentSocket.on("getStackImageFindings", async (name, reportId, imageId, severity, offset, callback) => { + try { + checkLogin(socket); + if (typeof name !== "string" || !/^[a-z0-9_-]+$/.test(name)) { + throw new ValidationError("imageScanInvalidRequest"); + } + callbackResult({ + ok: true, + ...server.imageVulnerabilityScan.page(name, reportId, imageId, severity, offset), + }, callback); + } catch (error) { + callbackError(error, callback); + } + }); + // requestStackList agentSocket.on("requestStackList", async (callback) => { try { @@ -106,9 +174,8 @@ export class DockerSocketHandler extends AgentSocketHandler { }); // startStack - agentSocket.on("startStack", async (stackName : unknown, callback) => { + onStackMutation("startStack", async (stackName : unknown, callback) => { try { - checkLogin(socket); if (typeof(stackName) !== "string") { throw new ValidationError("Stack name must be a string"); @@ -131,9 +198,8 @@ export class DockerSocketHandler extends AgentSocketHandler { }); // stopStack - agentSocket.on("stopStack", async (stackName : unknown, callback) => { + onStackMutation("stopStack", async (stackName : unknown, callback) => { try { - checkLogin(socket); if (typeof(stackName) !== "string") { throw new ValidationError("Stack name must be a string"); @@ -155,9 +221,8 @@ export class DockerSocketHandler extends AgentSocketHandler { }); // restartStack - agentSocket.on("restartStack", async (stackName : unknown, callback) => { + onStackMutation("restartStack", async (stackName : unknown, callback) => { try { - checkLogin(socket); if (typeof(stackName) !== "string") { throw new ValidationError("Stack name must be a string"); @@ -177,9 +242,8 @@ export class DockerSocketHandler extends AgentSocketHandler { }); // updateStack - agentSocket.on("updateStack", async (stackName : unknown, callback) => { + onStackMutation("updateStack", async (stackName : unknown, callback) => { try { - checkLogin(socket); if (typeof(stackName) !== "string") { throw new ValidationError("Stack name must be a string"); @@ -199,9 +263,20 @@ export class DockerSocketHandler extends AgentSocketHandler { }); // down stack - agentSocket.on("downStack", async (stackName : unknown, callback) => { + onStackMutation("setStackAutoUpdate", async (name, enabled, callback) => { + if (typeof name !== "string" || !/^[a-z0-9_-]+$/.test(name) || typeof enabled !== "boolean") { + throw new ValidationError("Invalid automatic update settings."); + } + const stack = await Stack.getStack(server, name); + const autoUpdate = await server.stackAutoUpdate.setEnabled(stack, enabled); + callbackResult({ + ok: true, + autoUpdate, + }, callback); + }); + + onStackMutation("downStack", async (stackName : unknown, callback) => { try { - checkLogin(socket); if (typeof(stackName) !== "string") { throw new ValidationError("Stack name must be a string"); @@ -257,9 +332,8 @@ export class DockerSocketHandler extends AgentSocketHandler { }); // Start a service - agentSocket.on("startService", async (stackName: unknown, serviceName: unknown, callback) => { + onStackMutation("startService", async (stackName: unknown, serviceName: unknown, callback) => { try { - checkLogin(socket); if (typeof (stackName) !== "string" || typeof (serviceName) !== "string") { throw new ValidationError("Stack name and service name must be strings"); @@ -279,9 +353,8 @@ export class DockerSocketHandler extends AgentSocketHandler { }); // Stop a service - agentSocket.on("stopService", async (stackName: unknown, serviceName: unknown, callback) => { + onStackMutation("stopService", async (stackName: unknown, serviceName: unknown, callback) => { try { - checkLogin(socket); if (typeof (stackName) !== "string" || typeof (serviceName) !== "string") { throw new ValidationError("Stack name and service name must be strings"); @@ -299,9 +372,8 @@ export class DockerSocketHandler extends AgentSocketHandler { } }); - agentSocket.on("restartService", async (stackName: unknown, serviceName: unknown, callback) => { + onStackMutation("restartService", async (stackName: unknown, serviceName: unknown, callback) => { try { - checkLogin(socket); if (typeof stackName !== "string" || typeof serviceName !== "string") { throw new Error("Invalid stackName or serviceName"); @@ -333,7 +405,7 @@ export class DockerSocketHandler extends AgentSocketHandler { }); } - async saveStack(server : DockgeServer, name : unknown, composeYAML : unknown, composeENV : unknown, isAdd : unknown) : Promise { + async saveStack(server : DockgeServer, name : unknown, composeYAML : unknown, composeENV : unknown, isAdd : unknown, revision?: unknown) : Promise { // Check types if (typeof(name) !== "string") { throw new ValidationError("Name must be a string"); @@ -347,9 +419,12 @@ export class DockerSocketHandler extends AgentSocketHandler { if (typeof(isAdd) !== "boolean") { throw new ValidationError("isAdd must be a boolean"); } + if (revision !== undefined && (typeof revision !== "string" || !/^[a-f0-9]{64}$/.test(revision))) { + throw new ValidationError("editorConflict"); + } const stack = new Stack(server, name, composeYAML, composeENV, false); - await stack.save(isAdd); + await stack.save(isAdd, revision as string | undefined); return stack; } diff --git a/backend/auth-session.ts b/backend/auth-session.ts new file mode 100644 index 0000000..11fc40e --- /dev/null +++ b/backend/auth-session.ts @@ -0,0 +1,87 @@ +import { createHash, randomUUID } from "node:crypto"; +import jwt from "jsonwebtoken"; +import type { Knex } from "knex"; +import { R } from "redbean-node"; +import { shake256, SHAKE256_LENGTH } from "./password-hash"; + +const maxTokenAge = 30 * 24 * 60 * 60; +const pending = new Map>(); + +export interface AuthSession { + fingerprint: string; + expiresAt: number; +} + +function sessionFor(token: string, expiresAt: number): AuthSession { + const signedContent = token.slice(0, token.lastIndexOf(".")); + return { + fingerprint: createHash("sha256").update(signedContent).digest("hex"), + expiresAt, + }; +} + +/** Issue a distinct token for each credential login. */ +export function issueSession(username: string, passwordHash: string, secret: string) { + const iat = Math.floor(Date.now() / 1000); + const token = jwt.sign({ + username, + h: shake256(passwordHash, SHAKE256_LENGTH), + iat, + }, secret, { + algorithm: "HS256", + expiresIn: maxTokenAge, + jwtid: randomUUID(), + }); + return { + token, + session: sessionFor(token, iat + maxTokenAge), + }; +} + +/** Verify signed claims before deriving the identity of a new or legacy token. */ +export function verifySession(token: string, secret: string) { + const decoded = jwt.verify(token, secret, { + algorithms: [ "HS256" ], + maxAge: maxTokenAge, + }); + if (typeof decoded === "string" || typeof decoded.username !== "string" || typeof decoded.h !== "string" + || typeof decoded.iat !== "number") { + throw new Error("Invalid session claims"); + } + const expiresAt = Math.min(decoded.exp ?? Infinity, decoded.iat + maxTokenAge); + return { + username: decoded.username, + passwordFingerprint: decoded.h, + session: sessionFor(token, expiresAt), + }; +} + +/** Serialize token login and revocation so that a concurrent login cannot survive logout. */ +export async function withSession(session: AuthSession, action: () => Promise): Promise { + const operation = (pending.get(session.fingerprint) ?? Promise.resolve()).then(action); + const tail = operation.then(() => {}, () => {}); + pending.set(session.fingerprint, tail); + try { + return await operation; + } finally { + if (pending.get(session.fingerprint) === tail) { + pending.delete(session.fingerprint); + } + } +} + +/** Check the persisted revocation before accepting a token. */ +export async function isSessionRevoked(session: AuthSession): Promise { + return Boolean(await R.knex("revoked_token").where("fingerprint", session.fingerprint).first()); +} + +/** Persist a revocation and remove records for tokens past their acceptance window. */ +export async function revokeSession(session: AuthSession): Promise { + await R.knex.transaction(async (trx: Knex.Transaction) => { + await trx("revoked_token").insert({ + fingerprint: session.fingerprint, + expires_at: session.expiresAt, + }).onConflict("fingerprint").ignore(); + await trx("revoked_token").where("expires_at", "<=", Math.floor(Date.now() / 1000)).delete(); + }); +} diff --git a/backend/dockge-server.ts b/backend/dockge-server.ts index 206a14a..160a690 100644 --- a/backend/dockge-server.ts +++ b/backend/dockge-server.ts @@ -37,6 +37,8 @@ import { AgentSocketHandler } from "./agent-socket-handler"; import { AgentSocket } from "../common/agent-socket"; import { ManageAgentSocketHandler } from "./socket-handlers/manage-agent-socket-handler"; import { Terminal } from "./terminal"; +import { StackAutoUpdate } from "./stack-auto-update"; +import { ImageVulnerabilityScan } from "./image-vulnerability-scan"; export class DockgeServer { app : Express; @@ -78,7 +80,11 @@ export class DockgeServer { jwtSecret : string = ""; + private authModeRevision = 0; + stacksDir : string = ""; + stackAutoUpdate = new StackAutoUpdate(this); + imageVulnerabilityScan = new ImageVulnerabilityScan(this); /** * @@ -299,21 +305,22 @@ export class DockgeServer { // Better do anything after added all socket handlers here // *************************** - log.debug("auth", "check auto login"); - if (await Settings.get("disableAuth")) { - log.info("auth", "Disabled Auth: auto login to admin"); - this.afterLogin(dockgeSocket, await R.findOne("user") as User); - dockgeSocket.emit("autoLogin"); - } else { - log.debug("auth", "need auth"); - } - // Socket disconnect dockgeSocket.on("disconnect", () => { log.info("server", "Socket disconnected!"); dockgeSocket.instanceManager.disconnectAll(); }); + const authModeRevision = this.authModeRevision; + if (await Settings.get("disableAuth", false)) { + const user = await R.findOne("user", "active = 1") as User | null; + if (user && dockgeSocket.connected && !dockgeSocket.userID && authModeRevision === this.authModeRevision) { + log.info("auth", "Disabled Auth: auto login to admin"); + this.afterLogin(dockgeSocket, user, true); + dockgeSocket.emit("autoLogin"); + } + } + }); this.io.on("disconnect", () => { @@ -327,8 +334,12 @@ export class DockgeServer { } } - async afterLogin(socket : DockgeSocket, user : User) { + async afterLogin(socket : DockgeSocket, user : User, authBypassed = false) { + if (!socket.connected) { + return; + } socket.userID = user.id; + socket.authBypassed = authBypassed; socket.join(user.id.toString()); this.sendInfo(socket); @@ -404,6 +415,7 @@ export class DockgeServer { }); checkVersion.startInterval(); + this.stackAutoUpdate.start(); }); gracefulShutdown(this.httpServer, { @@ -411,7 +423,7 @@ export class DockgeServer { timeout: 30000, // timeout: 30 secs development: false, // not in dev mode forceExit: true, // triggers process.exit() at the end of shutdown process - onShutdown: this.shutdownFunction, // shutdown function (async) - e.g. for cleanup DB, ... + onShutdown: this.shutdownFunction.bind(this), // shutdown function (async) - e.g. for cleanup DB, ... finally: this.finalFunction, // finally function (sync) - e.g. for logging }); @@ -681,6 +693,8 @@ export class DockgeServer { // TODO: Close all terminals? + this.stackAutoUpdate.stop(); + await this.imageVulnerabilityScan.stop(); await Database.close(); Settings.stopCacheCleaner(); } @@ -712,6 +726,37 @@ export class DockgeServer { } } + /** + * End sessions admitted while authentication was disabled. + * @returns {void} + */ + revokeBypassedSessions() { + this.authModeRevision++; + for (const rawSocket of this.io.sockets.sockets.values()) { + const socket = rawSocket as DockgeSocket; + if (socket.authBypassed) { + socket.emit("refresh"); + socket.disconnect(); + } + } + } + + /** + * Disconnect other clients that authenticated with the revoked token. + * @param fingerprint Identifier of the revoked token + * @param currentSocketID Socket awaiting its logout acknowledgement + * @returns {void} + */ + disconnectTokenSockets(fingerprint: string, currentSocketID: string) { + for (const rawSocket of this.io.sockets.sockets.values()) { + const socket = rawSocket as DockgeSocket; + if (socket.id !== currentSocketID && socket.authSession?.fingerprint === fingerprint) { + socket.emit("sessionRevoked"); + socket.disconnect(); + } + } + } + isSSL() { return this.config.sslKey && this.config.sslCert; } diff --git a/backend/image-vulnerability-scan.ts b/backend/image-vulnerability-scan.ts new file mode 100644 index 0000000..afc3bc1 --- /dev/null +++ b/backend/image-vulnerability-scan.ts @@ -0,0 +1,436 @@ +import { execFile, spawn } from "node:child_process"; +import { randomUUID } from "node:crypto"; +import { createWriteStream, promises as fs } from "node:fs"; +import os from "node:os"; +import path from "node:path"; +import { Transform } from "node:stream"; +import { pipeline } from "node:stream/promises"; +import { promisify } from "node:util"; +import type { DockgeServer } from "./dockge-server"; +import { log } from "./log"; +import type { Stack } from "./stack"; +import { ValidationError } from "./util-server"; + +const exec = promisify(execFile); +const severities = [ "critical", "high", "medium", "low", "negligible", "unknown" ] as const; +type Severity = typeof severities[number]; + +const maxImageBytes = 1024 * 1024 * 1024; +const maxImages = 20; +const maxReports = 8; +const maxFindings = 500; +const pageSize = 25; +const imageIdPattern = /^sha256:[a-f0-9]{64}$/; +const inspectFields = [ + "\"id\":{{json .Image}}", + "\"reference\":{{json .Config.Image}}", + "\"service\":{{json (index .Config.Labels \"com.docker.compose.service\")}}", + "\"directory\":{{json (index .Config.Labels \"com.docker.compose.project.working_dir\")}}", + "\"oneOff\":{{json (index .Config.Labels \"com.docker.compose.oneoff\")}}", +]; +const inspectFormat = `{${inspectFields.join(",")}}`; + +interface Finding { + id: string; + namespace: string; + severity: Severity; + packageName: string; + packageType: string; + installedVersion: string; + fixedVersions: string[]; +} + +interface ImageScan { + id: string; + references: string[]; + services: string[]; + status: "pending" | "scanned" | "failed"; + counts?: Record; + error?: string; + truncated?: boolean; + scannerVersion?: string; + databaseBuiltAt?: string; + findings: Finding[]; +} + +interface ScanReport { + id: string; + stackName: string; + status: "running" | "complete" | "failed"; + startedAt: string; + finishedAt?: string; + error?: string; + images: ImageScan[]; +} + +interface GrypeMatch { + vulnerability?: { + id?: string; + namespace?: string; + severity?: string; + fix?: { versions?: string[] }; + }; + artifact?: { name?: string; type?: string; version?: string }; +} + +interface ContainerImage { + id: string; + reference: string; + service: string; + directory: string; + oneOff: string; +} + +/** Limit strings forwarded from third-party reports to the browser. */ +function label(value: unknown, length = 160): string { + if (typeof value !== "string") { + return ""; + } + return value.length > length ? value.slice(0, length - 1) + "…" : value; +} + +/** Normalize scanner output while keeping the original severity and package identity. */ +function normalizeFindings(output: string) { + const report = JSON.parse(output) as { + matches?: GrypeMatch[]; + descriptor?: { + version?: string; + db?: { status?: { built?: string; valid?: boolean } }; + }; + }; + if (!Array.isArray(report?.matches)) { + throw new ValidationError("imageScanInvalidReport"); + } + if (report.descriptor?.db?.status?.valid === false) { + throw new ValidationError("imageScanInvalidReport"); + } + + const counts: Record = { + critical: 0, + high: 0, + medium: 0, + low: 0, + negligible: 0, + unknown: 0, + }; + const unique = new Map(); + for (const match of report.matches) { + const id = label(match?.vulnerability?.id, 80); + const packageName = label(match?.artifact?.name); + if (!id || !packageName) { + continue; + } + + const reportedSeverity = label(match.vulnerability?.severity).toLowerCase(); + const severity = severities.find(value => value === reportedSeverity) ?? "unknown"; + const versions = match.vulnerability?.fix?.versions; + const finding: Finding = { + id, + packageName, + namespace: label(match.vulnerability?.namespace), + severity, + packageType: label(match.artifact?.type, 40), + installedVersion: label(match.artifact?.version), + fixedVersions: Array.isArray(versions) ? versions.slice(0, 10).map(version => label(version)).filter(Boolean) : [], + }; + const key = JSON.stringify([ + match.vulnerability?.id, + match.vulnerability?.namespace, + match.artifact?.name, + match.artifact?.type, + match.artifact?.version, + ]); + if (!unique.has(key)) { + unique.set(key, finding); + counts[severity]++; + } + } + const findings = Array.from(unique.values()).sort((a, b) => severities.indexOf(a.severity) - severities.indexOf(b.severity) + || a.id.localeCompare(b.id) || a.packageName.localeCompare(b.packageName)); + const databaseBuiltAt = report.descriptor?.db?.status?.built; + return { + counts, + truncated: findings.length > maxFindings, + findings: findings.slice(0, maxFindings), + scannerVersion: label(report.descriptor?.version, 40), + databaseBuiltAt: typeof databaseBuiltAt === "string" && Number.isFinite(Date.parse(databaseBuiltAt)) ? databaseBuiltAt : undefined, + }; +} + +export class ImageVulnerabilityScan { + private readonly scanner = process.env.DOCKGE_GRYPE_PATH || "grype"; + private readonly reports = new Map(); + private readonly shutdown = new AbortController(); + private active?: ScanReport; + private activeRun?: Promise; + + constructor(private readonly server: DockgeServer) {} + + /** Start one bounded scan per host without waiting for Docker or Grype to finish. */ + start(stack: Stack) { + if (this.active) { + if (this.active.stackName === stack.name && this.reports.has(stack.name)) { + return this.summary(stack.name); + } + throw new ValidationError("imageScanHostBusy"); + } + const report: ScanReport = { + id: randomUUID(), + stackName: stack.name, + status: "running", + startedAt: new Date().toISOString(), + images: [], + }; + this.reports.delete(stack.name); + this.reports.set(stack.name, report); + const oldest = this.reports.keys().next().value; + if (this.reports.size > maxReports && oldest !== undefined) { + this.reports.delete(oldest); + } + this.active = report; + this.activeRun = this.run(stack, report); + return this.summary(stack.name); + } + + /** Return progress and counts without sending package details over the socket. */ + summary(stackName: string) { + const report = this.reports.get(stackName); + if (!report) { + return null; + } + return { + ...report, + images: report.images.map(({ findings, ...image }) => image), + }; + } + + /** Page through retained findings for the requested immutable image and report. */ + page(stackName: string, reportId: unknown, imageId: unknown, severity: unknown, offset: unknown) { + if (typeof offset !== "number" || !Number.isSafeInteger(offset) || offset < 0 || offset > maxFindings + || (severity !== "" && !severities.some(value => value === severity))) { + throw new ValidationError("imageScanInvalidRequest"); + } + const report = this.reports.get(stackName); + if (!report || report.id !== reportId) { + throw new ValidationError("imageScanReportChanged"); + } + const image = report.images.find(item => item.id === imageId && item.status === "scanned"); + if (!image) { + throw new ValidationError("imageScanReportChanged"); + } + const findings = severity ? image.findings.filter(item => item.severity === severity) : image.findings; + return { + rows: findings.slice(offset, offset + pageSize), + total: findings.length, + pageSize, + }; + } + + /** Forget reports for a deleted stack, including one still being scanned. */ + forget(stackName: string) { + this.reports.delete(stackName); + } + + /** Abort outstanding commands as Dockge shuts down. */ + async stop() { + this.shutdown.abort(); + await this.activeRun; + } + + /** Scan each immutable image once and keep the successful partial results. */ + private async run(stack: Stack, report: ScanReport) { + try { + report.images = await this.discoverImages(stack); + if (report.images.length) { + await this.runGrype([ "version" ], path.resolve(this.server.config.dataDir), 5000); + } + + for (const image of report.images) { + if (this.shutdown.signal.aborted) { + break; + } + try { + Object.assign(image, await this.scanImage(stack, image.id)); + image.status = "scanned"; + } catch (error) { + image.status = "failed"; + image.error = this.reportError(error, "imageScanImageFailed"); + } + } + report.status = "complete"; + } catch (error) { + report.status = "failed"; + report.error = this.reportError(error, "imageScanFailed"); + } finally { + report.finishedAt = new Date().toISOString(); + this.active = undefined; + } + } + + /** Discover the images actually attached to this stack's running or stopped containers. */ + private async discoverImages(stack: Stack): Promise { + const cwd = path.resolve(stack.path); + const output = await this.docker(stack, stack.getComposeOptions("ps", "--all", "--orphans=false", "--quiet")); + const ids = output ? output.split(/\r?\n/) : []; + if (!ids.length) { + return []; + } + if (ids.length > 500 || !ids.every(id => /^[a-f0-9]{12,64}$/.test(id))) { + throw new ValidationError("imageScanDiscoveryFailed"); + } + const inspected = await this.docker(stack, [ "container", "inspect", "--format", inspectFormat, "--", ...ids ]); + const images = new Map(); + const containers = inspected.split(/\r?\n/).map(line => JSON.parse(line) as ContainerImage); + if (containers.length !== ids.length) { + throw new ValidationError("imageScanDiscoveryFailed"); + } + for (const container of containers) { + if (container.oneOff?.toLowerCase() !== "false" || !container.directory || path.resolve(container.directory) !== cwd) { + continue; + } + if (!imageIdPattern.test(container.id)) { + throw new ValidationError("imageScanDiscoveryFailed"); + } + let image = images.get(container.id); + if (!image) { + image = { + id: container.id, + references: [], + services: [], + status: "pending", + findings: [], + }; + images.set(container.id, image); + } + const reference = label(container.reference); + const service = label(container.service); + if (reference && image.references.length < 20 && !image.references.includes(reference)) { + image.references.push(reference); + } + if (service && image.services.length < 20 && !image.services.includes(service)) { + image.services.push(service); + } + } + if (images.size > maxImages) { + throw new ValidationError("imageScanTooManyImages"); + } + return Array.from(images.values()); + } + + /** Export only the immutable local image and remove the archive on every exit path. */ + private async scanImage(stack: Stack, id: string) { + const size = Number(await this.docker(stack, [ "image", "inspect", "--format", "{{.Size}}", "--", id ])); + if (!Number.isSafeInteger(size) || size < 0 || size > maxImageBytes) { + throw new ValidationError("imageScanImageTooLarge"); + } + const directory = await fs.mkdtemp(path.join(os.tmpdir(), "dockge-image-scan-")); + try { + const archive = path.join(directory, "image.tar"); + await this.saveImage(stack, id, archive); + const stdout = await this.runGrype([ `docker-archive:${archive}`, "-o", "json" ], directory, 5 * 60 * 1000); + try { + return normalizeFindings(stdout); + } catch { + throw new ValidationError("imageScanInvalidReport"); + } + } finally { + await fs.rm(directory, { + recursive: true, + force: true, + }); + } + } + + /** Stream Docker's export to disk with a hard archive limit and a timeout. */ + private async saveImage(stack: Stack, id: string, archive: string) { + let bytes = 0; + const limit = new Transform({ + transform(chunk, encoding, callback) { + bytes += chunk.length; + if (bytes > maxImageBytes) { + callback(new ValidationError("imageScanImageTooLarge")); + } else { + callback(null, chunk); + } + }, + }); + const child = spawn("docker", [ "image", "save", "--", id ], { + cwd: stack.path, + stdio: [ "ignore", "pipe", "ignore" ], + timeout: 120000, + signal: this.shutdown.signal, + windowsHide: true, + }); + const exited = new Promise((resolve, reject) => { + child.once("error", reject); + child.once("close", code => { + if (code === 0) { + resolve(); + } else { + reject(new ValidationError("imageScanExportFailed")); + } + }); + }); + try { + await Promise.all([ pipeline(child.stdout, limit, createWriteStream(archive, { flags: "wx", + mode: 0o600 })), exited ]); + } finally { + if (child.exitCode === null && child.signalCode === null) { + child.kill(); + } + await exited.catch(() => {}); + } + } + + /** Run Docker without exposing raw CLI errors to the browser. */ + private async docker(stack: Stack, args: string[]): Promise { + const { stdout } = await exec("docker", args, { + cwd: stack.path, + timeout: 30000, + maxBuffer: 2 * 1024 * 1024, + signal: this.shutdown.signal, + windowsHide: true, + }); + return stdout.trim(); + } + + /** Invoke a local Grype binary against an archive, with a persistent DB cache. */ + private async runGrype(args: string[], cwd: string, timeout: number): Promise { + try { + const { stdout } = await exec(this.scanner, args, { + cwd, + timeout, + maxBuffer: 32 * 1024 * 1024, + signal: this.shutdown.signal, + windowsHide: true, + env: { + ...process.env, + GRYPE_DB_CACHE_DIR: path.resolve(this.server.config.dataDir, "grype-db"), + GRYPE_CHECK_FOR_APP_UPDATE: "false", + TMPDIR: cwd, + TMP: cwd, + TEMP: cwd, + }, + }); + return stdout; + } catch (error) { + if ((error as NodeJS.ErrnoException).code === "ENOENT") { + throw new ValidationError("imageScanScannerUnavailable"); + } + throw error; + } + } + + /** Keep CLI output and filesystem paths out of the UI and diagnostic logs. */ + private reportError(error: unknown, fallback: string): string { + if (this.shutdown.signal.aborted) { + return fallback; + } + if (error instanceof ValidationError) { + return error.message; + } + const code = (error as NodeJS.ErrnoException)?.code ?? "unknown"; + log.warn("image-scan", `${fallback} (${code})`); + return fallback; + } +} diff --git a/backend/migrations/2026-11-10-0000-revoked-token-table.ts b/backend/migrations/2026-11-10-0000-revoked-token-table.ts new file mode 100644 index 0000000..e7cd367 --- /dev/null +++ b/backend/migrations/2026-11-10-0000-revoked-token-table.ts @@ -0,0 +1,12 @@ +import { Knex } from "knex"; + +export async function up(knex: Knex): Promise { + await knex.schema.createTable("revoked_token", (table) => { + table.string("fingerprint", 64).primary(); + table.bigInteger("expires_at").notNullable().index(); + }); +} + +export async function down(knex: Knex): Promise { + await knex.schema.dropTable("revoked_token"); +} diff --git a/backend/models/user.ts b/backend/models/user.ts index 1a91c34..6ea759d 100644 --- a/backend/models/user.ts +++ b/backend/models/user.ts @@ -1,7 +1,6 @@ -import jwt from "jsonwebtoken"; import { R } from "redbean-node"; import { BeanModel } from "redbean-node/dist/bean-model"; -import { generatePasswordHash, shake256, SHAKE256_LENGTH } from "../password-hash"; +import { generatePasswordHash } from "../password-hash"; export class User extends BeanModel { /** @@ -27,20 +26,6 @@ export class User extends BeanModel { await User.resetPassword(this.id, newPassword); this.password = newPassword; } - - /** - * Create a new JWT for a user - * @param {User} user The User to create a JsonWebToken for - * @param {string} jwtSecret The key used to sign the JsonWebToken - * @returns {string} the JsonWebToken as a string - */ - static createJWT(user : User, jwtSecret : string) { - return jwt.sign({ - username: user.username, - h: shake256(user.password, SHAKE256_LENGTH), - }, jwtSecret); - } - } export default User; diff --git a/backend/settings.ts b/backend/settings.ts index bbc00a0..dd95aff 100644 --- a/backend/settings.ts +++ b/backend/settings.ts @@ -26,9 +26,10 @@ export class Settings { /** * Retrieve value of setting based on key * @param key Key of setting to retrieve + * @param useCache Whether to read and populate the settings cache * @returns Value */ - static async get(key : string) { + static async get(key : string, useCache = true) { // Start cache clear if not started yet if (!Settings.cacheCleaner) { @@ -45,7 +46,7 @@ export class Settings { } // Query from cache - if (key in Settings.cacheList) { + if (useCache && key in Settings.cacheList) { const v = Settings.cacheList[key].value; log.debug("settings", `Get Setting (cache): ${key}: ${v}`); return v; @@ -59,10 +60,12 @@ export class Settings { const v = JSON.parse(value); log.debug("settings", `Get Setting: ${key}: ${v}`); - Settings.cacheList[key] = { - value: v, - timestamp: Date.now() - }; + if (useCache) { + Settings.cacheList[key] = { + value: v, + timestamp: Date.now() + }; + } return v; } catch (e) { diff --git a/backend/socket-handlers/agent-proxy-socket-handler.ts b/backend/socket-handlers/agent-proxy-socket-handler.ts index b4ce32e..c39a06a 100644 --- a/backend/socket-handlers/agent-proxy-socket-handler.ts +++ b/backend/socket-handlers/agent-proxy-socket-handler.ts @@ -1,7 +1,7 @@ import { SocketHandler } from "../socket-handler.js"; import { DockgeServer } from "../dockge-server"; import { log } from "../log"; -import { checkLogin, DockgeSocket } from "../util-server"; +import { callbackError, checkLogin, DockgeSocket } from "../util-server"; import { AgentSocket } from "../../common/agent-socket"; import { ALL_ENDPOINTS } from "../../common/util-common"; @@ -37,6 +37,10 @@ export class AgentProxySocketHandler extends SocketHandler { if (e instanceof Error) { log.warn("agent", e.message); } + const callback = args.at(-1); + if (typeof callback === "function") { + callbackError(e, callback); + } } }); } diff --git a/backend/socket-handlers/main-socket-handler.ts b/backend/socket-handlers/main-socket-handler.ts index 9e8886c..933b972 100644 --- a/backend/socket-handlers/main-socket-handler.ts +++ b/backend/socket-handlers/main-socket-handler.ts @@ -12,11 +12,10 @@ import { checkLogin, DockgeSocket, doubleCheckPassword, - JWTDecoded, ValidationError } from "../util-server"; import { passwordStrength } from "check-password-strength"; -import jwt from "jsonwebtoken"; +import { isSessionRevoked, issueSession, revokeSession, verifySession, withSession } from "../auth-session"; import { Settings } from "../settings"; import fs, { promises as fsAsync } from "fs"; import path from "path"; @@ -64,44 +63,47 @@ export class MainSocketHandler extends SocketHandler { // Login by token socket.on("loginByToken", async (token, callback) => { + if (typeof callback !== "function") { + return; + } const clientIP = await server.getClientIP(socket); log.info("auth", `Login by token. IP=${clientIP}`); try { - const decoded = jwt.verify(token, server.jwtSecret) as JWTDecoded; + const { username, passwordFingerprint, session } = verifySession(token, server.jwtSecret); - log.info("auth", "Username from JWT: " + decoded.username); + log.info("auth", "Username from JWT: " + username); - const user = await R.findOne("user", " username = ? AND active = 1 ", [ - decoded.username, - ]) as User; - - if (user) { + await withSession(session, async () => { + if (await isSessionRevoked(session)) { + throw new Error("Session token has been revoked"); + } + const user = await R.findOne("user", " username = ? AND active = 1 ", [ username ]) as User | null; + if (!user) { + log.info("auth", `Inactive or deleted user ${username}. IP=${clientIP}`); + callback({ + ok: false, + msg: "authUserInactiveOrDeleted", + msgi18n: true, + }); + return; + } // Check if the password changed - if (decoded.h !== shake256(user.password, SHAKE256_LENGTH)) { + if (passwordFingerprint !== shake256(user.password, SHAKE256_LENGTH)) { throw new Error("The token is invalid due to password change or old token"); } - - log.debug("auth", "afterLogin"); + if (session.expiresAt <= Math.floor(Date.now() / 1000)) { + throw new Error("Session token has expired"); + } + if (!socket.connected) { + return; + } + socket.authSession = session; await server.afterLogin(socket, user); - log.debug("auth", "afterLogin ok"); - - log.info("auth", `Successfully logged in user ${decoded.username}. IP=${clientIP}`); - - callback({ - ok: true, - }); - } else { - - log.info("auth", `Inactive or deleted user ${decoded.username}. IP=${clientIP}`); - - callback({ - ok: false, - msg: "authUserInactiveOrDeleted", - msgi18n: true, - }); - } + log.info("auth", `Successfully logged in user ${username}. IP=${clientIP}`); + callback({ ok: true }); + }); } catch (error) { if (!(error instanceof Error)) { console.error("Unknown error:", error); @@ -145,14 +147,13 @@ export class MainSocketHandler extends SocketHandler { if (user) { if (user.twofa_status === 0) { - server.afterLogin(socket, user); - log.info("auth", `Successfully logged in user ${data.username}. IP=${clientIP}`); callback({ ok: true, - token: User.createJWT(user, server.jwtSecret), + token: this.startSession(socket, server, user), }); + return; } if (user.twofa_status === 1 && !data.token) { @@ -169,18 +170,16 @@ export class MainSocketHandler extends SocketHandler { const verify = notp.totp.verify(data.token, user.twofa_secret, twoFAVerifyOptions); if (user.twofa_last_token !== data.token && verify) { - server.afterLogin(socket, user); - await R.exec("UPDATE `user` SET twofa_last_token = ? WHERE id = ? ", [ data.token, - socket.userID, + user.id, ]); log.info("auth", `Successfully logged in user ${data.username}. IP=${clientIP}`); callback({ ok: true, - token: User.createJWT(user, server.jwtSecret), + token: this.startSession(socket, server, user), }); } else { @@ -206,6 +205,32 @@ export class MainSocketHandler extends SocketHandler { }); + socket.on("logout", async (callback) => { + try { + checkLogin(socket); + const session = socket.authSession; + if (session) { + await withSession(session, async () => { + await revokeSession(session); + server.disconnectTokenSockets(session.fingerprint, socket.id); + }); + } + if (typeof callback === "function") { + callback({ ok: true }); + } + socket.disconnect(); + } catch (error) { + log.error("auth", error); + if (typeof callback === "function") { + callback({ + ok: false, + msg: "authLogoutFailed", + msgi18n: true, + }); + } + } + }); + // Change Password socket.on("changePassword", async (password, callback) => { try { @@ -266,17 +291,27 @@ export class MainSocketHandler extends SocketHandler { }); socket.on("setSettings", async (data, currentPassword, callback) => { + if (typeof callback !== "function") { + return; + } try { checkLogin(socket); - // If currently is disabled auth, don't need to check - // Disabled Auth + Want to Disable Auth => No Check - // Disabled Auth + Want to Enable Auth => No Check - // Enabled Auth + Want to Disable Auth => Check!! - // Enabled Auth + Want to Enable Auth => No Check - const currentDisabledAuth = await Settings.get("disableAuth"); - if (!currentDisabledAuth && data.disableAuth) { - await doubleCheckPassword(socket, currentPassword); + let disableAuth = data.disableAuth; + if (Object.hasOwn(data, "disableAuth") && typeof disableAuth !== "boolean") { + throw new ValidationError("Invalid authentication setting."); + } + delete data.disableAuth; + if (disableAuth === true) { + if (await Settings.get("disableAuth", false)) { + // Older clients include the current flag when saving unrelated settings. + disableAuth = undefined; + } else { + await doubleCheckPassword(socket, currentPassword); + } + } + if (!socket.connected) { + throw new Error("You are not logged in."); } // Handle global.env if (data.globalENV && data.globalENV != "# VARIABLE=value #comment") { @@ -291,12 +326,24 @@ export class MainSocketHandler extends SocketHandler { await Settings.setSettings("general", data); + if (typeof disableAuth === "boolean") { + if (!socket.connected) { + throw new Error("You are not logged in."); + } + await Settings.set("disableAuth", disableAuth, "general"); + } + callback({ ok: true, msg: "Saved" }); - server.sendInfo(socket); + if (disableAuth === false) { + server.revokeBypassedSessions(); + } + if (socket.connected) { + server.sendInfo(socket); + } } catch (e) { if (e instanceof Error) { @@ -345,6 +392,20 @@ export class MainSocketHandler extends SocketHandler { }); } + /** + * Attach the new token identity to the connection before returning the token. + * @param socket Connection being authenticated + * @param server Dockge instance issuing the token + * @param user Authenticated user + * @returns The signed JWT + */ + private startSession(socket: DockgeSocket, server: DockgeServer, user: User): string { + const { token, session } = issueSession(user.username, user.password, server.jwtSecret); + socket.authSession = session; + server.afterLogin(socket, user); + return token; + } + async login(username : string, password : string) : Promise { if (typeof username !== "string" || typeof password !== "string") { return null; diff --git a/backend/stack-auto-update.ts b/backend/stack-auto-update.ts new file mode 100644 index 0000000..01a7b86 --- /dev/null +++ b/backend/stack-auto-update.ts @@ -0,0 +1,337 @@ +import { execFile } from "node:child_process"; +import { randomUUID } from "node:crypto"; +import { promises as fs } from "node:fs"; +import { hostname } from "node:os"; +import path from "node:path"; +import { promisify } from "node:util"; +import { Cron } from "croner"; +import type { DockgeServer } from "./dockge-server"; +import { log } from "./log"; +import { Stack } from "./stack"; +import { ValidationError } from "./util-server"; + +const exec = promisify(execFile); +const policyFile = ".dockge-auto-update.json"; +const dockgeImage = /(?:^|\/)louislam\/dockge(?:[:@]|$)/i; +const stackName = /^[a-z0-9_-]+$/; + +type Outcome = "updated" | "unchanged" | "skipped" | "failed"; +const outcomes: Outcome[] = [ "updated", "unchanged", "skipped", "failed" ]; + +interface Policy { + enabled: boolean; + lastRun?: { + at: string; + result: Outcome; + }; +} + +interface ContainerSummary { + ID: string; + Service: string; + State: string; +} + +interface ContainerDetails { + image: string; + hash: string; + directory: string; + oneOff: string; +} + +interface Candidate { + image: string; + hash: string; + containers: string[]; + imageIds: string[]; +} + +interface ComposeConfig { + name: string; + services: Record; +} + +const inspectFields = [ + "\"image\":{{json .Image}}", + "\"hash\":{{json (index .Config.Labels \"com.docker.compose.config-hash\")}}", + "\"directory\":{{json (index .Config.Labels \"com.docker.compose.project.working_dir\")}}", + "\"oneOff\":{{json (index .Config.Labels \"com.docker.compose.oneoff\")}}", +]; +const inspectFormat = `{${inspectFields.join(",")}}`; + +export class StackAutoUpdate { + private schedule?: Cron; + private runInProgress = false; + private readonly shutdown = new AbortController(); + + constructor(private readonly server: DockgeServer) {} + + /** Run daily on this host, including when no browser is connected. */ + start() { + this.schedule = new Cron("0 4 * * *", { + timezone: "UTC", + protect: true, + }, () => this.run()); + } + + /** Stop scheduling and terminate commands during application shutdown. */ + stop() { + this.schedule?.stop(); + this.shutdown.abort(); + } + + /** Return an absent policy for stacks that cannot be scheduled. */ + async getPolicy(stack: Stack): Promise { + if (!stackName.test(stack.name) || stack.name === "dockge") { + return; + } + + const dir = await fs.lstat(stack.path).catch(() => undefined); + if (!dir?.isDirectory() || !await Stack.composeFileExists(this.server.stacksDir, stack.name)) { + return; + } + + try { + const file = path.join(stack.path, policyFile); + if (!(await fs.lstat(file)).isFile()) { + throw new Error("The policy is not a regular file"); + } + const policy = JSON.parse(await fs.readFile(file, "utf8")); + const lastRun = policy?.lastRun; + const validPolicy: Policy = { enabled: policy?.enabled === true }; + if (typeof lastRun?.at === "string" && Number.isFinite(Date.parse(lastRun.at)) && outcomes.includes(lastRun.result)) { + validPolicy.lastRun = { + at: lastRun.at, + result: lastRun.result, + }; + } + return validPolicy; + } catch (error) { + if ((error as NodeJS.ErrnoException).code !== "ENOENT") { + log.warn("auto-update", `Could not read policy for ${stack.name}`); + } + return { enabled: false }; + } + } + + /** Persist the administrator's explicit choice for this stack. */ + async setEnabled(stack: Stack, enabled: boolean): Promise { + const current = await this.getPolicy(stack); + if (!current) { + throw new ValidationError("Automatic updates are unavailable for this stack."); + } + const policy = { + ...current, + enabled, + }; + await this.writePolicy(stack, policy); + return policy; + } + + /** Check each opted-in stack once per scheduled run. */ + async run(): Promise { + if (this.runInProgress || this.shutdown.signal.aborted) { + return; + } + this.runInProgress = true; + try { + const dirs = await fs.readdir(this.server.stacksDir, { withFileTypes: true }); + for (const dir of dirs) { + if (this.shutdown.signal.aborted) { + break; + } + if (!dir.isDirectory() || !stackName.test(dir.name) || dir.name === "dockge") { + continue; + } + + const stack = new Stack(this.server, dir.name); + if (!(await this.getPolicy(stack))?.enabled) { + continue; + } + try { + await Stack.withOperation(this.server, dir.name, async () => { + const policy = await this.getPolicy(stack); + if (!policy?.enabled) { + return; + } + let result: Outcome; + try { + result = await this.update(stack); + } catch (error) { + result = "failed"; + log.warn("auto-update", `${stack.name}: ${String(error)}`); + } + const current = await this.getPolicy(stack); + if (!current?.enabled) { + return; + } + await this.writePolicy(stack, { + ...current, + lastRun: { + at: new Date().toISOString(), + result, + }, + }); + log.info("auto-update", `${stack.name}: ${result}`); + }); + } catch (error) { + log.warn("auto-update", `${stack.name}: ${String(error)}`); + } + } + } catch (error) { + log.warn("auto-update", String(error)); + } finally { + this.runInProgress = false; + } + } + + /** Replace the policy atomically without exposing a partially written file. */ + private async writePolicy(stack: Stack, policy: Policy): Promise { + const file = path.join(stack.path, policyFile); + const temp = `${file}.${randomUUID()}.tmp`; + try { + await fs.writeFile(temp, JSON.stringify(policy) + "\n", { + flag: "wx", + mode: 0o600, + }); + await fs.rename(temp, file); + } finally { + await fs.rm(temp, { force: true }); + } + } + + /** Pull and recreate only running services whose image actually changed. */ + private async update(stack: Stack): Promise { + const before = await this.getCandidates(stack); + if (before.size === 0) { + return "skipped"; + } + + await this.docker(stack, stack.getComposeOptions("pull", "--policy", "always", "--ignore-buildable", "--", ...before.keys())); + + const after = await this.getCandidates(stack); + const changed = new Map(); + let skipped = false; + for (const [ name, original ] of before) { + const current = after.get(name); + if (!current || original.hash !== current.hash || original.image !== current.image + || original.containers.join() !== current.containers.join()) { + skipped = true; + continue; + } + const imageId = await this.docker(stack, [ "image", "inspect", "--format", "{{.Id}}", "--", current.image ]); + if (!/^sha256:[a-f0-9]{64}$/.test(imageId)) { + throw new Error("Docker image inspect returned an invalid image ID"); + } + if (current.imageIds.some(id => id !== imageId)) { + changed.set(name, current); + } + } + + if (!changed.size) { + return skipped ? "skipped" : "unchanged"; + } + if (!(await this.getPolicy(stack))?.enabled) { + return "skipped"; + } + + const scale = Array.from(changed, ([ name, service ]) => [ "--scale", `${name}=${service.containers.length}` ]).flat(); + await this.docker(stack, stack.getComposeOptions("up", "-d", "--no-deps", "--no-build", "--pull", "never", + "--wait", "--wait-timeout", "120", ...scale, "--", ...changed.keys())); + return "updated"; + } + + /** Restrict candidates to unchanged, running services owned by this stack directory. */ + private async getCandidates(stack: Stack): Promise> { + const result = new Map(); + const ps = await this.docker(stack, stack.getComposeOptions("ps", "--all", "--orphans=false", "--format", "json")); + if (!ps) { + return result; + } + const containers: ContainerSummary[] = ps.startsWith("[") ? JSON.parse(ps) : ps.split(/\r?\n/).map(line => JSON.parse(line)); + if (!containers.length || !containers.every(container => /^[a-f0-9]{12,64}$/.test(container.ID))) { + return result; + } + + const localHostname = hostname(); + if (/^[a-f0-9]{12,64}$/.test(localHostname) && containers.some(container => container.ID.startsWith(localHostname))) { + return result; + } + + const configJson = await this.docker(stack, stack.getComposeOptions("config", "--format", "json")); + let config: ComposeConfig; + try { + config = JSON.parse(configJson); + } catch { + throw new Error("Docker Compose did not return valid configuration JSON"); + } + if (config.name === "dockge" || Object.values(config.services).some(service => dockgeImage.test(service.image || ""))) { + return result; + } + const configHashes = await this.docker(stack, stack.getComposeOptions("config", "--hash", "*")); + const hashes = new Map(configHashes.split(/\r?\n/).map(line => { + const [ name, hash ] = line.trim().split(/\s+/); + return [ name, hash ]; + })); + const info = await this.docker(stack, [ "container", "inspect", "--format", inspectFormat, "--", ...containers.map(container => container.ID) ]); + const details: ContainerDetails[] = info.split(/\r?\n/).map(line => JSON.parse(line)); + if (details.length !== containers.length) { + throw new Error("Docker container inspect did not return all requested containers"); + } + const services = new Map>(); + containers.forEach((container, index) => { + if (details[index].oneOff?.toLowerCase() !== "false") { + return; + } + const entries = services.get(container.Service) ?? []; + entries.push({ + ...container, + ...details[index], + }); + services.set(container.Service, entries); + }); + + for (const [ name, entries ] of services) { + const service = config.services[name]; + const hash = hashes.get(name); + if (!service?.image || service.build || service.platform || service.pull_policy === "never" + || !hash || !/^[a-f0-9]{64}$/.test(hash)) { + continue; + } + const directory = path.resolve(stack.path); + if (!entries.every(container => container.State === "running" && container.hash === hash + && container.directory && path.resolve(container.directory) === directory)) { + continue; + } + result.set(name, { + image: service.image, + hash, + containers: entries.map(container => container.ID).sort(), + imageIds: entries.map(container => container.image), + }); + } + return result; + } + + /** Run Docker without a shell and keep raw Compose configuration out of logs. */ + private async docker(stack: Stack, args: string[]): Promise { + try { + const { stdout } = await exec("docker", args, { + cwd: stack.path, + env: { + ...process.env, + COMPOSE_REMOVE_ORPHANS: "false", + }, + encoding: "utf8", + timeout: 15 * 60 * 1000, + maxBuffer: 16 * 1024 * 1024, + signal: this.shutdown.signal, + windowsHide: true, + }); + return stdout.trim(); + } catch (error) { + const code = (error as NodeJS.ErrnoException).code ?? "interrupted"; + throw new Error(`Docker ${args[0]} command failed (${code})`); + } + } +} diff --git a/backend/stack-files.ts b/backend/stack-files.ts new file mode 100644 index 0000000..faee2f6 --- /dev/null +++ b/backend/stack-files.ts @@ -0,0 +1,109 @@ +import { randomUUID } from "node:crypto"; +import { promises as fs } from "node:fs"; +import path from "node:path"; + +const writesInProgress = new Set(); + +interface StackFile { + path: string; + content: string; + mode: number; +} + +interface PreparedFile { + target: string; + next: string; + backup?: string; + preserveBackup: boolean; +} + +/** Replace the pair only after staging both files, and restore committed files on failure. */ +export async function saveStackFiles(files: StackFile[], owner?: { uid: number; gid: number }, beforeCommit?: () => void): Promise { + const prepared: PreparedFile[] = []; + const committed: PreparedFile[] = []; + const lockedPaths: string[] = []; + try { + for (const file of files) { + const link = await fs.lstat(file.path).catch((error: NodeJS.ErrnoException) => { + if (error.code !== "ENOENT") { + throw error; + } + return undefined; + }); + const target = link?.isSymbolicLink() ? await fs.realpath(file.path) : file.path; + if (prepared.some(item => path.resolve(item.target) === path.resolve(target))) { + throw new Error("editorFileConflict"); + } + const resolved = path.resolve(target); + const key = process.platform === "win32" ? resolved.toLowerCase() : resolved; + if (writesInProgress.has(key)) { + throw new Error("Another operation is already running, please try again later."); + } + writesInProgress.add(key); + lockedPaths.push(key); + const stat = link ? await fs.stat(target) : undefined; + if (stat && !stat.isFile()) { + throw new Error("editorFileNotRegular"); + } + const item: PreparedFile = { + target, + next: target + ".dockge-" + randomUUID() + ".tmp", + preserveBackup: false, + }; + prepared.push(item); + const mode = stat ? stat.mode & 0o777 : file.mode; + await fs.writeFile(item.next, file.content, { + flag: "wx", + mode, + }); + if (stat) { + item.backup = target + ".dockge-" + randomUUID() + ".bak"; + await fs.copyFile(target, item.backup); + await fs.chmod(item.backup, mode); + } + const fileOwner = owner ?? stat; + if (process.platform !== "win32" && fileOwner) { + await fs.chown(item.next, fileOwner.uid, fileOwner.gid); + if (item.backup && stat) { + await fs.chown(item.backup, stat.uid, stat.gid); + } + } + } + + beforeCommit?.(); + try { + for (const item of prepared) { + await fs.rename(item.next, item.target); + committed.push(item); + } + } catch (error) { + let recoveryFailed = false; + for (const item of committed.reverse()) { + try { + if (item.backup) { + await fs.rename(item.backup, item.target); + } else { + await fs.unlink(item.target); + } + } catch { + item.preserveBackup = true; + recoveryFailed = true; + } + } + if (recoveryFailed) { + throw new Error("editorSaveRecoveryFailed"); + } + throw error; + } + } finally { + for (const item of prepared) { + await fs.rm(item.next, { force: true }).catch(() => {}); + if (item.backup && !item.preserveBackup) { + await fs.rm(item.backup, { force: true }).catch(() => {}); + } + } + for (const key of lockedPaths) { + writesInProgress.delete(key); + } + } +} diff --git a/backend/stack.ts b/backend/stack.ts index 5fe8b99..e2fa626 100644 --- a/backend/stack.ts +++ b/backend/stack.ts @@ -1,5 +1,6 @@ import { DockgeServer } from "./dockge-server"; import fs, { promises as fsAsync } from "fs"; +import { createHash } from "node:crypto"; import { log } from "./log"; import yaml from "yaml"; import { DockgeSocket, fileExists, ValidationError } from "./util-server"; @@ -19,6 +20,8 @@ import { import { InteractiveTerminal, Terminal } from "./terminal"; import childProcessAsync from "promisify-child-process"; import { Settings } from "./settings"; +import { analyzeEnv } from "../common/env-file"; +import { saveStackFiles } from "./stack-files"; export class Stack { @@ -33,6 +36,27 @@ export class Stack { protected combinedTerminal? : Terminal; protected static managedStackList: Map = new Map(); + private static operations = new Set(); + + /** + * Hold the stack lock across filesystem changes and all Compose steps. + * @param server Dockge instance that owns the stack + * @param name Stack directory name + * @param action Operation to run + * @returns The operation result + */ + static async withOperation(server: DockgeServer, name: string, action: () => Promise): Promise { + const directory = path.resolve(server.stacksDir, name); + if (this.operations.has(directory)) { + throw new ValidationError("Another operation is already running, please try again later."); + } + this.operations.add(directory); + try { + return await action(); + } finally { + this.operations.delete(directory); + } + } constructor(server : DockgeServer, name : string, composeYAML? : string, composeENV? : string, skipFSOperations = false) { this.name = name; @@ -75,6 +99,7 @@ export class Stack { composeYAML: this.composeYAML, composeENV: this.composeENV, primaryHostname, + revision: this.revision, }; } @@ -111,6 +136,10 @@ export class Stack { return this._status; } + get revision(): string { + return createHash("sha256").update(JSON.stringify([ this._composeFileName, this.composeYAML, this.composeENV ])).digest("hex"); + } + validate() { // Check name, allows [a-z][0-9] _ - only if (!this.name.match(/^[a-z0-9_-]+$/)) { @@ -118,15 +147,15 @@ export class Stack { } // Check YAML format - yaml.parse(this.composeYAML); - - let lines = this.composeENV.split("\n"); - - // Check if the .env is able to pass docker-compose - // Prevent "setenv: The parameter is incorrect" - // It only happens when there is one line and it doesn't contain "=" - if (lines.length === 1 && !lines[0].includes("=") && lines[0].length > 0) { - throw new ValidationError("Invalid .env format"); + const config = yaml.parse(this.composeYAML); + if (config !== null && (typeof config !== "object" || Array.isArray(config))) { + throw new ValidationError("editorYamlMapping"); + } + if (config?.services && (typeof config.services !== "object" || Array.isArray(config.services))) { + throw new ValidationError("editorServicesMapping"); + } + if (analyzeEnv(this.composeENV).some(issue => issue.severity === "error")) { + throw new ValidationError("editorInvalidEnv"); } } @@ -174,11 +203,32 @@ export class Stack { /** * Save the stack to the disk * @param isAdd + * @param expectedRevision Version loaded by the editor, omitted by legacy clients */ - async save(isAdd : boolean) { + async save(isAdd : boolean, expectedRevision?: string) { this.validate(); let dir = this.path; + let owner; + if (process.env.PUID && process.env.PGID) { + const uid = Number(process.env.PUID); + const gid = Number(process.env.PGID); + if (!Number.isSafeInteger(uid) || uid < 0 || !Number.isSafeInteger(gid) || gid < 0) { + throw new ValidationError("Invalid PUID or PGID"); + } + owner = { + uid, + gid, + }; + } + const checkRevision = () => { + if (!isAdd && expectedRevision !== undefined) { + const current = new Stack(this.server, this.name); + if (current.revision !== expectedRevision && current.revision !== this.revision) { + throw new ValidationError("editorConflict"); + } + } + }; // Check if the name is used if isAdd if (isAdd) { @@ -192,21 +242,40 @@ export class Stack { if (!await fileExists(dir)) { throw new ValidationError("Stack not found"); } + checkRevision(); } - // Write or overwrite the compose.yaml - fs.writeFileSync(path.join(dir, this._composeFileName), this.composeYAML); - if (process.env.PUID && process.env.PGID) { - const uid = Number(process.env.PUID); - const gid = Number(process.env.PGID); - fs.lchownSync(dir, uid, gid); - fs.chownSync(path.join(dir, this._composeFileName), uid, gid); + try { + if (owner) { + await fsAsync.lchown(dir, owner.uid, owner.gid); + } + await saveStackFiles([ + { + path: path.join(dir, this._composeFileName), + content: this.composeYAML, + mode: 0o644, + }, + { + path: path.join(dir, ".env"), + content: this.composeENV, + mode: 0o600, + }, + ], owner, checkRevision); + } catch (error) { + if (isAdd) { + await fsAsync.rmdir(dir).catch(() => {}); + } + throw error; } } async deploy(socket : DockgeSocket) : Promise { const terminalName = getComposeTerminalName(socket.endpoint, this.name); - let exitCode = await Terminal.exec(this.server, socket, terminalName, "docker", this.getComposeOptions("up", "-d", "--remove-orphans"), this.path); + let exitCode = await Terminal.exec(this.server, socket, terminalName, "docker", this.getComposeOptions("config", "--quiet"), this.path); + if (exitCode !== 0) { + throw new ValidationError("editorComposeInvalid"); + } + exitCode = await Terminal.exec(this.server, socket, terminalName, "docker", this.getComposeOptions("up", "-d", "--remove-orphans"), this.path); if (exitCode !== 0) { throw new Error("Failed to deploy, please check the terminal output for more information."); } diff --git a/backend/util-server.ts b/backend/util-server.ts index de4aecd..834a4e6 100644 --- a/backend/util-server.ts +++ b/backend/util-server.ts @@ -7,14 +7,12 @@ import { R } from "redbean-node"; import { verifyPassword } from "./password-hash"; import fs from "fs"; import { AgentManager } from "./agent-manager"; - -export interface JWTDecoded { - username : string; - h? : string; -} +import type { AuthSession } from "./auth-session"; export interface DockgeSocket extends Socket { userID: number; + authBypassed?: boolean; + authSession?: AuthSession; consoleTerminal? : Terminal; instanceManager : AgentManager; endpoint : string; diff --git a/common/env-file.ts b/common/env-file.ts new file mode 100644 index 0000000..af6f8f0 --- /dev/null +++ b/common/env-file.ts @@ -0,0 +1,71 @@ +export interface EnvIssue { + from: number; + to: number; + severity: "error" | "warning"; + message: string; +} + +/** Find malformed quoted values and repeated keys without reporting secret values. */ +export function analyzeEnv(source: string): EnvIssue[] { + const issues: EnvIssue[] = []; + const keys = new Set(); + let quote = ""; + let quoteStart = 0; + let offset = 0; + + for (const line of source.split("\n")) { + let index = 0; + if (!quote) { + const assignment = /^(?:\uFEFF)?\s*(?:export\s+)?([^\s=:#]+)\s*(?:=|:\s+)/.exec(line); + if (assignment && !line.trimStart().startsWith("#")) { + if (keys.has(assignment[1])) { + issues.push({ + from: offset, + to: offset + line.length, + severity: "warning", + message: "editorEnvDuplicate", + }); + } + keys.add(assignment[1]); + index = assignment[0].length; + while (/\s/.test(line[index] || "") && index < line.length) { + index++; + } + if (line[index] === "'" || line[index] === "\"") { + quote = line[index]; + quoteStart = offset + index; + index++; + } + } + } + if (quote) { + for (; index < line.length; index++) { + if (line[index] === "\\") { + index++; + } else if (line[index] === quote) { + quote = ""; + break; + } + } + } + offset += line.length + 1; + } + if (quote) { + issues.push({ + from: quoteStart, + to: Math.min(source.length, quoteStart + 1), + severity: "error", + message: "editorEnvUnclosedQuote", + }); + } + const nul = source.indexOf("\0"); + if (nul >= 0) { + issues.push({ + from: nul, + to: nul + 1, + severity: "error", + message: "editorEnvNull", + }); + } + return issues; +} diff --git a/docker/Dockerfile b/docker/Dockerfile index 796fef1..0a5be9b 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -16,12 +16,30 @@ RUN npm ci --omit=dev # ⭐ Main Image ############################################ FROM louislam/dockge:base AS release +ARG TARGETARCH WORKDIR /app COPY --chown=node:node --from=build_healthcheck /app/extra/healthcheck /app/extra/healthcheck COPY --from=build /app/node_modules /app/node_modules COPY --chown=node:node . . RUN mkdir ./data +# Grype is available upstream for the amd64 and arm64 images. +RUN set -eu; \ + case "$TARGETARCH" in \ + amd64) checksum=e9da18cc1429e786722e32161288103600efffd8e483c90761f90485bd1bec85 ;; \ + arm64) checksum=b7815598d48da78bfd16f5b98ef28e1bb09c03d34fc8c3e350f99b6ccb3c7cba ;; \ + *) echo "Install Grype separately to enable image scans on $TARGETARCH"; exit 0 ;; \ + esac; \ + temp_dir="$(mktemp -d)"; \ + trap 'rm -rf "$temp_dir"' EXIT; \ + curl --fail --location --retry 3 \ + "https://github.com/anchore/grype/releases/download/v0.121.3/grype_0.121.3_linux_${TARGETARCH}.tar.gz" \ + --output "$temp_dir/grype.tar.gz"; \ + echo "$checksum $temp_dir/grype.tar.gz" | sha256sum --check --status; \ + tar -xzf "$temp_dir/grype.tar.gz" -C "$temp_dir" grype LICENSE; \ + install -m 0755 "$temp_dir/grype" /usr/local/bin/grype; \ + install -D -m 0644 "$temp_dir/LICENSE" /usr/share/doc/grype/LICENSE + # It is just for safe, as by default, it is disabled in the latest Node.js now. # Read more: diff --git a/frontend/components.d.ts b/frontend/components.d.ts index e1dea73..c3ca03d 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -23,11 +23,13 @@ declare module 'vue' { General: typeof import('./src/components/settings/General.vue')['default'] GlobalEnv: typeof import('./src/components/settings/GlobalEnv.vue')['default'] HiddenInput: typeof import('./src/components/HiddenInput.vue')['default'] + ImageVulnerabilities: typeof import('./src/components/ImageVulnerabilities.vue')['default'] Login: typeof import('./src/components/Login.vue')['default'] NetworkInput: typeof import('./src/components/NetworkInput.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] Security: typeof import('./src/components/settings/Security.vue')['default'] + StackConfigEditor: typeof import('./src/components/StackConfigEditor.vue')['default'] StackList: typeof import('./src/components/StackList.vue')['default'] StackListItem: typeof import('./src/components/StackListItem.vue')['default'] Terminal: typeof import('./src/components/Terminal.vue')['default'] diff --git a/frontend/src/components/ImageVulnerabilities.vue b/frontend/src/components/ImageVulnerabilities.vue new file mode 100644 index 0000000..0797404 --- /dev/null +++ b/frontend/src/components/ImageVulnerabilities.vue @@ -0,0 +1,370 @@ + + + + + diff --git a/frontend/src/components/NetworkInput.vue b/frontend/src/components/NetworkInput.vue index f1992a9..e9dd27e 100644 --- a/frontend/src/components/NetworkInput.vue +++ b/frontend/src/components/NetworkInput.vue @@ -51,6 +51,8 @@ export default { externalList: {}, selectedExternalList: {}, externalNetworkList: [], + loadingNetworkList: false, + applyingNetworks: false, }; }, computed: { @@ -62,10 +64,6 @@ export default { return this.$parent.$parent.stack; }, - editorFocus() { - return this.$parent.$parent.editorFocus; - }, - endpoint() { return this.$parent.$parent.endpoint; }, @@ -73,16 +71,19 @@ export default { watch: { "jsonConfig.networks": { handler() { - if (this.editorFocus) { - console.debug("jsonConfig.networks changed"); + if (!this.applyingNetworks) { this.loadNetworkList(); } }, deep: true, + flush: "sync", }, "selectedExternalList": { handler() { + if (this.loadingNetworkList) { + return; + } for (const networkName in this.selectedExternalList) { const enable = this.selectedExternalList[networkName]; @@ -98,13 +99,17 @@ export default { this.applyToYAML(); }, deep: true, + flush: "sync", }, "networkList": { handler() { - this.applyToYAML(); + if (!this.loadingNetworkList) { + this.applyToYAML(); + } }, deep: true, + flush: "sync", } }, @@ -114,6 +119,7 @@ export default { }, methods: { loadNetworkList() { + this.loadingNetworkList = true; this.networkList = []; this.externalList = {}; @@ -135,6 +141,7 @@ export default { for (const networkName in this.externalList) { this.selectedExternalList[networkName] = true; } + this.loadingNetworkList = false; }, loadExternalNetworkList() { @@ -167,27 +174,28 @@ export default { remove(index) { this.networkList.splice(index, 1); - this.applyToYAML(); }, applyToYAML() { - if (this.editorFocus) { + if (this.loadingNetworkList) { return; } - this.jsonConfig.networks = {}; + const networks = {}; // Internal networks for (const networkRow of this.networkList) { - this.jsonConfig.networks[networkRow.key] = networkRow.value; + networks[networkRow.key] = networkRow.value; } // External networks for (const networkName in this.externalList) { - this.jsonConfig.networks[networkName] = this.externalList[networkName]; + networks[networkName] = this.externalList[networkName]; } - console.debug("applyToYAML", this.jsonConfig.networks); + this.applyingNetworks = true; + this.jsonConfig.networks = networks; + this.applyingNetworks = false; } }, diff --git a/frontend/src/components/StackConfigEditor.vue b/frontend/src/components/StackConfigEditor.vue new file mode 100644 index 0000000..e452da2 --- /dev/null +++ b/frontend/src/components/StackConfigEditor.vue @@ -0,0 +1,495 @@ + + + + + + diff --git a/frontend/src/components/StackList.vue b/frontend/src/components/StackList.vue index 62ab672..44ad5bd 100644 --- a/frontend/src/components/StackList.vue +++ b/frontend/src/components/StackList.vue @@ -1,495 +1,217 @@ - - diff --git a/frontend/src/components/StackListItem.vue b/frontend/src/components/StackListItem.vue index d1e48cd..f055796 100644 --- a/frontend/src/components/StackListItem.vue +++ b/frontend/src/components/StackListItem.vue @@ -1,180 +1,43 @@ - - diff --git a/frontend/src/components/settings/Security.vue b/frontend/src/components/settings/Security.vue index 7c5ce2f..73ca706 100644 --- a/frontend/src/components/settings/Security.vue +++ b/frontend/src/components/settings/Security.vue @@ -184,23 +184,23 @@ export default { /** Disable authentication for web app access */ disableAuth() { - this.settings.disableAuth = true; - // Need current password to disable auth // Set it to empty if done this.saveSettings(() => { this.password.currentPassword = ""; this.$root.username = null; - this.$root.socketIO.token = "autoLogin"; - }, this.password.currentPassword); + }, this.password.currentPassword, true); }, /** Enable authentication for web app access */ enableAuth() { - this.settings.disableAuth = false; - this.saveSettings(); - this.$root.storage().removeItem("token"); - location.reload(); + this.saveSettings(() => { + if (this.$root.socketIO.token === "autoLogin") { + this.$root.finishLogout(); + } else { + this.$root.logout(); + } + }, undefined, false); }, /** Show confirmation dialog for disable auth */ diff --git a/frontend/src/lang/en.json b/frontend/src/lang/en.json index 2a731a4..5e5256f 100644 --- a/frontend/src/lang/en.json +++ b/frontend/src/lang/en.json @@ -12,17 +12,125 @@ "registry": "Registry", "compose": "Compose", "addFirstStackMsg": "Compose your first stack!", + "stackListTitle": "Stacks", + "stackListNew": "New stack", + "stackListSearch": "Search stacks", + "stackListSearchPlaceholder": "Name or tag", + "stackListHost": "Host", + "stackListAllHosts": "All hosts", + "stackListStatus": "Status", + "stackListAllStatuses": "All statuses", + "stackListUnknown": "Unknown", + "stackListLocal": "Local host", + "stackListUnmanaged": "Unmanaged", + "stackListEmpty": "No stacks yet.", + "stackListHostEmpty": "No stacks on this host.", + "stackListNoMatches": "No matching stacks.", + "stackListLoading": "Loading stacks…", + "stackListStale": "Connection lost. Status may be out of date.", + "stackListResetFilters": "Clear filters", + "stackListClose": "Close stack list", + "stackListCount": "No stacks | 1 stack | {count} stacks", "stackName": "Stack Name", "deployStack": "Deploy", "deleteStack": "Delete", "stopStack": "Stop", "restartStack": "Restart", "updateStack": "Update", + "autoUpdateTitle": "Automatic image updates", + "imageScanTitle": "Image vulnerabilities", + "imageScanDescription": "On-demand Grype scan of the images used by this stack's containers. The scan may download vulnerability database updates.", + "imageScanStart": "Scan images", + "imageScanRefresh": "Refresh scan", + "imageScanProgress": "Scanning images · {completed} / {total} finished", + "imageScanNotRun": "No scan results available.", + "imageScanNoImages": "No images found for this stack's containers.", + "imageScanImage": "Image", + "imageScanSeverityLabel": "Severity", + "imageScanCounts": "Findings by severity", + "imageScanAllSeverities": "All severities", + "imageScanFindings": "Reported vulnerabilities for the selected image", + "imageScanAdvisory": "Advisory", + "imageScanPackage": "Package", + "imageScanInstalled": "Installed", + "imageScanFixed": "Fixed in", + "imageScanFixUnknown": "No fix version reported", + "imageScanNoFindings": "No findings reported for this filter.", + "imageScanLoading": "Loading findings…", + "imageScanPrevious": "Previous", + "imageScanNext": "Next", + "imageScanPage": "{first}–{last} of {total}", + "imageScanTimestamp": "Snapshot from {time}", + "imageScanDatabase": "Vulnerability database built {time}", + "imageScanTruncated": "The 500 highest-severity findings are retained for this image. Counts include all reported findings.", + "imageScanRetention": "Results describe the scanned image IDs. Dockge keeps the latest scan for up to eight stacks until it restarts.", + "imageScanHostBusy": "Another image scan is running on this host. Try again when it finishes.", + "imageScanInvalidRequest": "Invalid image scan request.", + "imageScanReportChanged": "This scan result has changed or expired. Refresh the scan view.", + "imageScanRequestFailed": "Dockge could not load the scan state. Check the connection and refresh the scan view.", + "imageScanFailed": "The image scan failed. Check the Docker connection and scanner configuration.", + "imageScanDiscoveryFailed": "Dockge could not identify this stack's local container images.", + "imageScanTooManyImages": "A scan supports up to 20 distinct images per stack.", + "imageScanImageTooLarge": "This image exceeds the 1 GiB scan size limit.", + "imageScanExportFailed": "Docker could not export this image.", + "imageScanImageFailed": "The image scan failed or timed out. Check the Grype installation, database access, and available disk space.", + "imageScanInvalidReport": "Grype returned an invalid or unsupported report.", + "imageScanScannerUnavailable": "Install Grype on this host to enable scanning. New Dockge images include Grype on amd64 and arm64. Native installations can set DOCKGE_GRYPE_PATH to the executable.", + "imageScanStatus": { + "pending": "Pending", + "scanned": "Scanned", + "failed": "Failed" + }, + "imageScanSeverity": { + "critical": "Critical", + "high": "High", + "medium": "Medium", + "low": "Low", + "negligible": "Negligible", + "unknown": "Unknown" + }, + "autoUpdateEnable": "Enable automatic updates for this stack", + "autoUpdateDescription": "Daily at 04:00 UTC. Dockge can restart running services when their images change. Services with undeployed configuration changes are skipped.", + "autoUpdateLastRun": "Last run: {time} · {result}", + "autoUpdateSaveFailed": "Dockge could not confirm the automatic update setting. Reopen this stack to check it.", + "autoUpdateResult": { + "updated": "Image updates applied", + "unchanged": "Eligible images up to date", + "skipped": "No eligible services", + "failed": "Update failed. See the Dockge server logs." + }, "startStack": "Start", "downStack": "Stop & Inactive", "editStack": "Edit", "discardStack": "Discard", "saveStackDraft": "Save", + "editorTitle": "Stack configuration editor", + "editorFiles": "Configuration files", + "editorFind": "Find", + "editorFormat": "Format YAML", + "editorWrap": "Line wrap", + "editorFullscreen": "Fullscreen", + "editorExitFullscreen": "Exit fullscreen", + "editorUnsaved": "Unsaved changes", + "editorSaved": "Saved", + "editorReadOnly": "Read only", + "editorCursor": "Ln {line}, Col {column}", + "editorLine": "Line {line}", + "editorSaveShortcut": "Ctrl/Cmd+S to save", + "editorDiagnostics": "Configuration diagnostics", + "editorYamlMapping": "The Compose document must be a YAML mapping.", + "editorServicesMapping": "Services must be a mapping of service names to settings.", + "editorEnvDuplicate": "This variable is defined more than once. Later definitions take precedence.", + "editorEnvUnclosedQuote": "This quoted value is not closed.", + "editorEnvNull": "An environment file cannot contain a NUL character.", + "editorInvalidEnv": "Fix the environment file errors before saving.", + "editorConflict": "The configuration changed on the host. Your edits are still here. Discard them to load the saved version, or copy them before reloading.", + "editorSaveFailed": "Dockge could not save this configuration.", + "editorSaveUnconfirmed": "The host did not confirm the save. Your edits are still here. Retry saving or reload the stack to check the saved version.", + "editorComposeInvalid": "Docker Compose validation failed. Check the progress output for details.", + "editorFileConflict": "Compose and .env resolve to the same file. Save them to separate files.", + "editorFileNotRegular": "The configuration path must point to a regular file.", + "editorSaveRecoveryFailed": "Saving failed and automatic recovery was incomplete. Check the .dockge-*.bak files alongside the affected configuration files before retrying.", "notAvailableShort": "N/A", "deleteStackMsg": "Are you sure you want to delete this stack?", "cancel": "Cancel", @@ -82,6 +190,7 @@ "Password": "Password", "Settings": "Settings", "Logout": "Logout", + "authLogoutFailed": "Dockge could not confirm that this session ended. Please try again while connected.", "Lowercase only": "Lowercase only", "Convert to Compose": "Convert to Compose", "Docker Run": "Docker Run", diff --git a/frontend/src/mixins/socket.ts b/frontend/src/mixins/socket.ts index 3e7eed8..a695742 100644 --- a/frontend/src/mixins/socket.ts +++ b/frontend/src/mixins/socket.ts @@ -13,7 +13,8 @@ export default defineComponent({ data() { return { socketIO: { - token: null, + token: null as string | null, + logoutPending: false, firstConnect: true, connected: false, connectCount: 0, @@ -32,6 +33,7 @@ export default defineComponent({ composeTemplate: "", stackList: {}, + stackListLoaded: false, // All stack list from all agents allAgentStackList: {} as Record, @@ -184,7 +186,7 @@ export default defineComponent({ this.socketIO.connectCount++; this.socketIO.connected = true; this.socketIO.showReverseProxyGuide = false; - const token = this.storage().token; + const token = this.socketIO.token ?? this.storage().token; if (token) { if (token !== "autoLogin") { @@ -253,6 +255,7 @@ export default defineComponent({ if (res.ok) { if (!res.endpoint) { this.stackList = res.stackList; + this.stackListLoaded = true; } else { if (!this.allAgentStackList[res.endpoint]) { this.allAgentStackList[res.endpoint] = { @@ -292,6 +295,10 @@ export default defineComponent({ socket.on("refresh", () => { location.reload(); }); + + socket.on("sessionRevoked", () => { + this.finishLogout(); + }); }, /** @@ -311,11 +318,11 @@ export default defineComponent({ }, /** - * Get payload of JWT cookie + * Get the payload of the active session token * @returns {(object | undefined)} JWT payload */ getJWTPayload() { - const jwtToken = this.storage().token; + const jwtToken = this.socketIO.token; if (jwtToken && jwtToken !== "autoLogin") { return jwtDecode(jwtToken); @@ -367,8 +374,9 @@ export default defineComponent({ this.allowLoginDialog = true; if (! res.ok) { - this.logout(); + this.finishLogout(token); } else { + this.socketIO.token = token; this.loggedIn = true; this.username = this.getJWTPayload()?.username; this.afterLogin(); @@ -377,23 +385,57 @@ export default defineComponent({ }, /** - * Log out of the web application + * Ask the server to revoke this session before removing its credentials. + * @returns {Promise} + */ + async logout() { + if (this.socketIO.logoutPending) { + return; + } + if (!socket.connected) { + this.toastError("authLogoutFailed"); + return; + } + + this.socketIO.logoutPending = true; + try { + const res = await socket.timeout(5000).emitWithAck("logout"); + if (res.ok) { + this.finishLogout(); + } else { + this.toastRes(res); + } + } catch { + this.toastError("authLogoutFailed"); + } finally { + this.socketIO.logoutPending = false; + } + }, + + /** + * Remove the current session from the browser after rejection or revocation. + * @param {string | null} token Token associated with the session being cleared * @returns {void} */ - logout() { - socket.emit("logout", () => { }); - this.storage().removeItem("token"); + finishLogout(token = this.socketIO.token) { + socket.disconnect(); + for (const storage of [ localStorage, sessionStorage ]) { + if (storage.getItem("token") === token) { + storage.removeItem("token"); + } + } this.socketIO.token = null; this.loggedIn = false; this.username = null; this.clearData(); + location.reload(); }, /** * @returns {void} */ clearData() { - + this.stackListLoaded = false; }, afterLogin() { diff --git a/frontend/src/pages/Compose.vue b/frontend/src/pages/Compose.vue index 20cf9ec..d456e0d 100644 --- a/frontend/src/pages/Compose.vue +++ b/frontend/src/pages/Compose.vue @@ -11,12 +11,12 @@
- - @@ -61,6 +61,29 @@
+ + +
+

{{ $t("autoUpdateTitle") }}

+
+ + +
+

{{ $t("autoUpdateDescription") }}

+

+ {{ $t("autoUpdateLastRun", { + time: new Date(autoUpdate.lastRun.at).toLocaleString($i18n.locale), + result: $t("autoUpdateResult." + autoUpdate.lastRun.result), + }) }} +

+
+ + +
@@ -81,7 +104,7 @@ > -
+
@@ -167,45 +190,13 @@
-

{{ stack.composeFileName }}

- - -
- -
-
- {{ yamlError }} -
- - -
-

.env

-
- -
-
+
@@ -231,7 +222,7 @@
-->
-
+
{{ $t("stackNotManagedByDockgeMsg") }} @@ -246,11 +237,8 @@ diff --git a/frontend/src/pages/Settings.vue b/frontend/src/pages/Settings.vue index 47b9330..5e8ad9a 100644 --- a/frontend/src/pages/Settings.vue +++ b/frontend/src/pages/Settings.vue @@ -137,15 +137,21 @@ export default { * Save Settings * @param {saveSettingsCB} [callback] * @param {string} [currentPassword] Only need for disableAuth to true + * @param {boolean} [disableAuth] New value when explicitly changing authentication */ - saveSettings(callback, currentPassword) { + saveSettings(callback, currentPassword, disableAuth) { let valid = this.validateSettings(); if (valid.success) { - this.$root.getSocket().emit("setSettings", this.settings, currentPassword, (res) => { + const data = { ...this.settings }; + delete data.disableAuth; + if (disableAuth !== undefined) { + data.disableAuth = disableAuth; + } + this.$root.getSocket().emit("setSettings", data, currentPassword, (res) => { this.$root.toastRes(res); this.loadSettings(); - if (callback) { + if (res.ok && callback) { callback(); } }); diff --git a/frontend/src/styles/main.scss b/frontend/src/styles/main.scss index e8fecab..76b179c 100644 --- a/frontend/src/styles/main.scss +++ b/frontend/src/styles/main.scss @@ -382,18 +382,6 @@ optgroup { color: $dark-font-color; } - .stack-list { - .item { - &:hover { - background-color: $dark-bg2; - } - - &.active { - background-color: $dark-bg2; - } - } - } - @media (max-width: 550px) { .table-shadow-box { tbody { @@ -478,46 +466,6 @@ optgroup { opacity: 0; } -.stack-list { - &.scrollbar { - overflow-y: auto; - } - - @media (max-width: 770px) { - &.scrollbar { - height: calc(100% - 97px); - } - } - - .item { - display: flex; - align-items: center; - height: 52px; - text-decoration: none; - border-radius: 10px; - transition: all ease-in-out 0.15s; - width: 100%; - padding: 0 8px; - - &.disabled { - opacity: 0.3; - } - - &:hover { - background-color: $highlight-white; - } - - &.active { - background-color: #cdf8f4; - } - - .title { - display: inline-block; - margin-top: -4px; - } - } -} - .alert-success { color: #122f21; background-color: $primary; diff --git a/frontend/src/styles/stack-navigation.css b/frontend/src/styles/stack-navigation.css new file mode 100644 index 0000000..e6d34d1 --- /dev/null +++ b/frontend/src/styles/stack-navigation.css @@ -0,0 +1,318 @@ +@layer reset, base, tokens, recipes, utilities; + +.stack-nav-panel { + display: flex; + flex-direction: column; + min-height: 0; + color: var(--stack-nav-colors-text); + background: var(--stack-nav-colors-surface); +} + +.stack-nav-sidebar { + position: sticky; + top: 1rem; + max-height: calc(100dvh - 2rem); + border: 1px solid var(--stack-nav-colors-border); + border-radius: 0.875rem; + overflow: hidden; +} + +.stack-nav-header, +.stack-nav-summary { + display: flex; + align-items: center; + gap: 0.5rem; + padding: 0.75rem 1rem; +} + +.stack-nav-title { + flex: 1; + margin: 0; + font-size: 1.125rem; + font-weight: 650; +} + +.stack-nav-button, +.stack-nav-field input, +.stack-nav-field select { + min-height: 2.5rem; + border: 1px solid var(--stack-nav-colors-border); + border-radius: 0.5rem; + color: var(--stack-nav-colors-text); + background: var(--stack-nav-colors-surface); + font-size: 0.875rem; +} + +.stack-nav-button { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 0.375rem; + padding: 0.375rem 0.625rem; + text-decoration: none; + font-weight: 600; +} + +.stack-nav-button:hover { + color: var(--stack-nav-colors-text); + background: var(--stack-nav-colors-subtle); +} + +.stack-nav-primary, +.stack-nav-primary:hover { + border-color: transparent; + color: var(--stack-nav-colors-accent-text); + background: var(--stack-nav-colors-accent); +} + +.stack-nav-primary:hover { + opacity: 0.9; +} + +.stack-navigation :is(a, button, input, select):focus-visible { + outline: 2px solid var(--stack-nav-colors-accent); + outline-offset: 2px; +} + +.stack-nav-controls { + display: grid; + gap: 0.75rem; + padding: 0 1rem; +} + +.stack-nav-filters { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 0.5rem; +} + +.stack-nav-field { + display: grid; + gap: 0.25rem; + min-width: 0; + color: var(--stack-nav-colors-muted); + font-size: 0.75rem; + font-weight: 600; +} + +.stack-nav-field :is(input, select) { + width: 100%; + padding: 0.375rem 0.5rem; + font-weight: 400; +} + +.stack-nav-field input::placeholder { + color: var(--stack-nav-colors-muted); +} + +.dark .stack-nav-field :is(input, select) { + color-scheme: dark; +} + +.stack-nav-search { + position: relative; +} + +.stack-nav-search svg { + position: absolute; + inset-inline-start: 0.625rem; + top: 50%; + transform: translateY(-50%); + pointer-events: none; +} + +.stack-nav-search input { + padding-inline-start: 1.875rem; +} + +.stack-nav-summary { + justify-content: space-between; + min-height: 2.75rem; + padding-block: 0.25rem; + color: var(--stack-nav-colors-muted); + font-size: 0.75rem; +} + +.stack-nav-reset { + min-height: 2rem; + padding: 0; + border: 0; + border-radius: 0.25rem; + color: var(--stack-nav-colors-accent); + background: transparent; + text-decoration: underline; +} + +.stack-nav-results { + min-height: 0; + overflow-y: auto; + overscroll-behavior: contain; + border-top: 1px solid var(--stack-nav-colors-border); + padding: 0.5rem; +} + +.stack-nav-group + .stack-nav-group { + margin-top: 0.5rem; +} + +.stack-nav-group-heading { + display: flex; + align-items: center; + gap: 0.375rem; + width: 100%; + min-height: 2.5rem; + padding: 0.375rem 0.5rem; + border: 0; + border-radius: 0.5rem; + color: var(--stack-nav-colors-muted); + background: var(--stack-nav-colors-subtle); + text-align: start; + font-size: 0.8125rem; + font-weight: 650; +} + +.stack-nav-agent { + flex: 1; + overflow-wrap: anywhere; +} + +.stack-nav-group-heading[data-state="closed"] .stack-nav-chevron { + transform: rotate(-90deg); +} + +.stack-nav-items { + margin: 0.25rem 0 0; + padding: 0; + list-style: none; +} + +.stack-nav-item { + display: flex; + align-items: center; + justify-content: space-between; + gap: 0.5rem; + min-height: 3.25rem; + padding: 0.375rem 0.5rem; + border-radius: 0.5rem; + color: var(--stack-nav-colors-text); + text-decoration: none; +} + +.stack-nav-item:hover { + color: var(--stack-nav-colors-text); + background: var(--stack-nav-colors-subtle); +} + +.stack-nav-item[aria-current="page"] { + color: var(--stack-nav-colors-accent); + background: var(--stack-nav-colors-accent-subtle); +} + +.stack-nav-item-copy { + display: grid; + min-width: 0; + overflow-wrap: anywhere; +} + +.stack-nav-name { + font-size: 0.875rem; + font-weight: 600; +} + +.stack-nav-item-meta { + color: var(--stack-nav-colors-muted); + font-size: 0.75rem; +} + +.stack-nav-badge, +.stack-nav-connection { + display: inline-flex; + align-items: center; + gap: 0.25rem; + flex-shrink: 0; + padding: 0.125rem 0.375rem; + border-radius: 1rem; + color: var(--stack-nav-colors-muted); + background: var(--stack-nav-colors-subtle); + font-size: 0.75rem; + font-weight: 600; +} + +.stack-nav-badge::before, +.stack-nav-connection::before { + width: 0.375rem; + height: 0.375rem; + border-radius: 50%; + background: currentColor; + content: ""; +} + +.stack-nav-badge[data-state="active"] { + color: var(--stack-nav-colors-accent); + background: var(--stack-nav-colors-accent-subtle); +} + +.stack-nav-badge[data-state="exited"], +.stack-nav-connection[data-state="offline"] { + color: var(--stack-nav-colors-danger); + background: var(--stack-nav-colors-danger-subtle); +} + +.stack-nav-message { + margin: 0.5rem; + color: var(--stack-nav-colors-muted); + font-size: 0.875rem; +} + +.stack-nav-message p { + margin-bottom: 0.25rem; +} + +.stack-nav-message a { + color: var(--stack-nav-colors-accent); +} + +.stack-nav-backdrop, +.stack-nav-positioner { + position: fixed; + inset: 0; +} + +.stack-nav-backdrop { + z-index: 1055; + background: rgb(10 17 24 / 62%); +} + +.stack-nav-positioner { + z-index: 1056; + display: flex; + align-items: flex-end; + justify-content: center; + pointer-events: none; +} + +.stack-nav-drawer { + display: flex; + width: min(100%, 36rem); + max-height: 88dvh; + padding-bottom: env(safe-area-inset-bottom); + overflow: hidden; + border: 1px solid var(--stack-nav-colors-border); + border-radius: 1rem 1rem 0 0; + outline: none; + background: var(--stack-nav-colors-surface); + pointer-events: auto; +} + +.stack-nav-drawer .stack-nav-panel { + width: 100%; +} + +.stack-nav-positioner[hidden], +.stack-nav-drawer[hidden] { + display: none; +} + +.stack-nav-close { + min-width: 2.5rem; +} diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index a640d82..d5a35ed 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -3,6 +3,7 @@ import vue from "@vitejs/plugin-vue"; import Components from "unplugin-vue-components/vite"; import { BootstrapVueNextResolver } from "unplugin-vue-components/resolvers"; import viteCompression from "vite-plugin-compression"; +import panda from "@pandacss/dev/postcss"; import "vue"; const viteCompressionFilter = /\.(js|mjs|json|css|html|svg)$/i; @@ -16,6 +17,11 @@ export default defineConfig({ "FRONTEND_VERSION": JSON.stringify(process.env.npm_package_version), }, root: "./frontend", + css: { + postcss: { + plugins: [ panda({ codegen: false }) ], + }, + }, build: { outDir: "../frontend-dist", }, diff --git a/package-lock.json b/package-lock.json index 72cdb65..da27598 100644 --- a/package-lock.json +++ b/package-lock.json @@ -40,13 +40,20 @@ }, "devDependencies": { "@actions/github": "^6.0.0", + "@ark-ui/vue": "~5.40.0", + "@codemirror/commands": "6.10.1", "@codemirror/lang-python": "^6.1.7", "@codemirror/lang-yaml": "^6.1.2", + "@codemirror/language": "6.12.1", + "@codemirror/lint": "6.9.2", + "@codemirror/search": "6.5.11", + "@codemirror/view": "6.39.6", "@fontsource/jetbrains-mono": "^5.2.5", "@fortawesome/fontawesome-svg-core": "6.4.2", "@fortawesome/free-regular-svg-icons": "6.4.2", "@fortawesome/free-solid-svg-icons": "6.4.2", "@fortawesome/vue-fontawesome": "3.0.3", + "@pandacss/dev": "~2.5.0", "@types/bcryptjs": "^2.4.6", "@types/bootstrap": "~5.2.10", "@types/command-exists": "~1.2.3", @@ -122,6 +129,87 @@ "url": "https://github.com/sponsors/antfu" } }, + "node_modules/@ark-ui/vue": { + "version": "5.40.0", + "resolved": "https://registry.npmjs.org/@ark-ui/vue/-/vue-5.40.0.tgz", + "integrity": "sha512-qmPNMOG8vZ59zkHIPZESguV/ojbpa8++sBgR9J46BzDuZuYB08YNl+MWQ1aotSsO0YWBWdECgSph5QCpI5sSFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@internationalized/date": "3.12.4", + "@zag-js/accordion": "1.47.0", + "@zag-js/anatomy": "1.47.0", + "@zag-js/angle-slider": "1.47.0", + "@zag-js/async-list": "1.47.0", + "@zag-js/auto-resize": "1.47.0", + "@zag-js/avatar": "1.47.0", + "@zag-js/carousel": "1.47.0", + "@zag-js/cascade-select": "1.47.0", + "@zag-js/checkbox": "1.47.0", + "@zag-js/clipboard": "1.47.0", + "@zag-js/collapsible": "1.47.0", + "@zag-js/collection": "1.47.0", + "@zag-js/color-picker": "1.47.0", + "@zag-js/color-utils": "1.47.0", + "@zag-js/combobox": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/date-input": "1.47.0", + "@zag-js/date-picker": "1.47.0", + "@zag-js/date-utils": "1.47.0", + "@zag-js/dialog": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/drawer": "1.47.0", + "@zag-js/editable": "1.47.0", + "@zag-js/file-upload": "1.47.0", + "@zag-js/file-utils": "1.47.0", + "@zag-js/floating-panel": "1.47.0", + "@zag-js/focus-trap": "1.47.0", + "@zag-js/focus-visible": "1.47.0", + "@zag-js/highlight-word": "1.47.0", + "@zag-js/hotkeys": "1.47.0", + "@zag-js/hover-card": "1.47.0", + "@zag-js/i18n-utils": "1.47.0", + "@zag-js/image-cropper": "1.47.0", + "@zag-js/json-tree-utils": "1.47.0", + "@zag-js/listbox": "1.47.0", + "@zag-js/marquee": "1.47.0", + "@zag-js/menu": "1.47.0", + "@zag-js/navigation-menu": "1.47.0", + "@zag-js/number-input": "1.47.0", + "@zag-js/pagination": "1.47.0", + "@zag-js/password-input": "1.47.0", + "@zag-js/pin-input": "1.47.0", + "@zag-js/popover": "1.47.0", + "@zag-js/presence": "1.47.0", + "@zag-js/progress": "1.47.0", + "@zag-js/qr-code": "1.47.0", + "@zag-js/radio-group": "1.47.0", + "@zag-js/rating-group": "1.47.0", + "@zag-js/scroll-area": "1.47.0", + "@zag-js/select": "1.47.0", + "@zag-js/signature-pad": "1.47.0", + "@zag-js/slider": "1.47.0", + "@zag-js/splitter": "1.47.0", + "@zag-js/steps": "1.47.0", + "@zag-js/switch": "1.47.0", + "@zag-js/tabs": "1.47.0", + "@zag-js/tags-input": "1.47.0", + "@zag-js/timer": "1.47.0", + "@zag-js/toast": "1.47.0", + "@zag-js/toc": "1.47.0", + "@zag-js/toggle": "1.47.0", + "@zag-js/toggle-group": "1.47.0", + "@zag-js/tooltip": "1.47.0", + "@zag-js/tour": "1.47.0", + "@zag-js/tree-view": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0", + "@zag-js/vue": "1.47.0" + }, + "peerDependencies": { + "vue": ">=3.5.0" + } + }, "node_modules/@babel/helper-string-parser": { "version": "7.25.9", "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", @@ -185,6 +273,36 @@ "node": ">=6.9.0" } }, + "node_modules/@clack/core": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/@clack/core/-/core-1.4.3.tgz", + "integrity": "sha512-/kr3UWNtdJfxZtPgDqUOmG2pvwlmcLGheex5yiZKdwbzZJxhV+HMNR9QNmyY5cGwTNV6LrR7Jtp+KjhUAP1qBQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-wrap-ansi": "^0.2.0", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 20.12.0" + } + }, + "node_modules/@clack/prompts": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@clack/prompts/-/prompts-1.7.0.tgz", + "integrity": "sha512-y7/yvZ2TPAnR9+jnc00klvNNLkJiXFFrQA/hlLCcxA9a2A4zQIOimyFQ9XfwYKiGD1fb5GY8vbKIIgO8d5Tb2A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@clack/core": "1.4.3", + "fast-string-width": "^3.0.2", + "fast-wrap-ansi": "^0.2.0", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 20.12.0" + } + }, "node_modules/@codemirror/autocomplete": { "version": "6.20.0", "resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.20.0.tgz", @@ -281,9 +399,9 @@ } }, "node_modules/@codemirror/state": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.5.3.tgz", - "integrity": "sha512-MerMzJzlXogk2fxWFU1nKp36bY5orBG59HnPiz0G9nLRebWa0zXuv2siH6PLIHBvv5TH8CkQRqjBs0MlxCZu+A==", + "version": "6.7.6", + "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.7.6.tgz", + "integrity": "sha512-kAz+AncRtKuIknedxT1bq4XwXv4UowhbkHU1myPrtVb/jZtImWuV5BXzv5vK6i3kYACsdiZiQKFQQ5Mq7elW8w==", "dev": true, "license": "MIT", "dependencies": { @@ -313,6 +431,40 @@ "node": ">=0.1.90" } }, + "node_modules/@emnapi/core": { + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.3.tgz", + "integrity": "sha512-zLpS5asjEb7lq8jYLq37N6XKaE41DIexlY1rF/z4/tIl3wo13Sqm28fRyfIsKZD+NZ8mM5RoKkpW/rBcuoSZSg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@emnapi/wasi-threads": "1.2.3", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz", + "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.3.tgz", + "integrity": "sha512-ELEBe8PsLvvJ6QMr0zLt8ffvOHW/dc1m3CEzNMg7aJUv3bMaoDtw2TXyDAwkYBuroxxuHEwhRTLJSe5sya547g==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, "node_modules/@es-joy/jsdoccomment": { "version": "0.40.1", "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.40.1.tgz", @@ -825,30 +977,30 @@ } }, "node_modules/@floating-ui/core": { - "version": "1.6.9", - "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.9.tgz", - "integrity": "sha512-uMXCuQ3BItDUbAMhIXw7UPXRfAlOAvZzdK9BWpE60MCn+Svt3aLn9jsPTi/WNGlRUu2uI0v5S7JiIUsbsvh3fw==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.8.0.tgz", + "integrity": "sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==", "dev": true, "license": "MIT", "dependencies": { - "@floating-ui/utils": "^0.2.9" + "@floating-ui/utils": "^0.2.12" } }, "node_modules/@floating-ui/dom": { - "version": "1.6.13", - "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.13.tgz", - "integrity": "sha512-umqzocjDgNRGTuO7Q8CU32dkHkECqI8ZdMZ5Swb6QAM0t5rnlrN3lGo1hdpscRd3WS8T6DKYK4ephgIH9iRh3w==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.8.0.tgz", + "integrity": "sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==", "dev": true, "license": "MIT", "dependencies": { - "@floating-ui/core": "^1.6.0", - "@floating-ui/utils": "^0.2.9" + "@floating-ui/core": "^1.8.0", + "@floating-ui/utils": "^0.2.12" } }, "node_modules/@floating-ui/utils": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.9.tgz", - "integrity": "sha512-MDWhGtE+eHw5JW7lq4qhc5yRLS11ERl1c7Z6Xd0a58DozHES6EnNNwUWbMiG4J9Cgj053Bhk8zvlhFYKVhULwg==", + "version": "0.2.12", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.12.tgz", + "integrity": "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==", "dev": true, "license": "MIT" }, @@ -1011,6 +1163,26 @@ "dev": true, "license": "BSD-3-Clause" }, + "node_modules/@internationalized/date": { + "version": "3.12.4", + "resolved": "https://registry.npmjs.org/@internationalized/date/-/date-3.12.4.tgz", + "integrity": "sha512-M1dEn4c1U1HsSlaVR8upZtSqvXrTkHDfv18H01uCSJyjVLDxnBR38v/fMxecmlwXKR4i9HeZcmgQAPE6A+aGJQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@swc/helpers": "^0.5.0" + } + }, + "node_modules/@internationalized/number": { + "version": "3.6.9", + "resolved": "https://registry.npmjs.org/@internationalized/number/-/number-3.6.9.tgz", + "integrity": "sha512-GgWy2caO/+hV9sT/oCTWGHvbjmJMPT9kkXzoKRLnkEq7adghhR7UprhvY9sXrKfrp3NcDfhF6QQHXR1KfQbB8g==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@swc/helpers": "^0.5.0" + } + }, "node_modules/@intlify/core-base": { "version": "10.0.8", "resolved": "https://registry.npmjs.org/@intlify/core-base/-/core-base-10.0.8.tgz", @@ -1171,9 +1343,9 @@ } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", - "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", "dev": true, "license": "MIT" }, @@ -1278,6 +1450,27 @@ "dev": true, "license": "MIT" }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.7.tgz", + "integrity": "sha512-zJccwplOAbgfZju95IUHazLnx9RAPtPN2YGJXI6UbrgeaR9QfPjGrQL6ERkSAtnVCA4Q+83ApGyaX5zdpCaKkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@tybys/wasm-util": "^0.10.3" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3", + "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3" + } + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -1511,6 +1704,676 @@ "@octokit/openapi-types": "^24.2.0" } }, + "node_modules/@oxc-project/types": { + "version": "0.148.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.148.0.tgz", + "integrity": "sha512-Nm4s/jB+4FpFsPhWGEC4h7rzksesmtnMXomo6rCMcg/b8zLQuOziRgkCS1fxDCXOlJB/6Q8oABOZ/OP6RIPj9A==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/oxc-project" + } + }, + "node_modules/@pandacss/cli": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@pandacss/cli/-/cli-2.5.0.tgz", + "integrity": "sha512-DQTWnn0yPENnIN0K2wSvlgdYBE+RSr9R27BfFZX0VE3jhM8A+ZhSo0Vh7mgMsu84EuG+xRMalr8e3UkTZfURDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@clack/prompts": "1.7.0", + "@pandacss/compiler": "2.5.0", + "@pandacss/compiler-shared": "2.5.0", + "@pandacss/config": "2.5.0", + "@pandacss/types": "2.5.0", + "@parcel/watcher": "2.5.6", + "citty": "0.2.2", + "fflate": "0.8.3", + "picocolors": "1.1.1", + "string-width": "7.2.0" + }, + "bin": { + "panda": "bin.js", + "pandacss": "bin.js" + }, + "engines": { + "node": ">=22" + } + }, + "node_modules/@pandacss/cli/node_modules/ansi-regex": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.6.0.tgz", + "integrity": "sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@pandacss/cli/node_modules/emoji-regex": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz", + "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==", + "dev": true, + "license": "MIT" + }, + "node_modules/@pandacss/cli/node_modules/string-width": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", + "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@pandacss/cli/node_modules/strip-ansi": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", + "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.2.2" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@pandacss/compiler": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@pandacss/compiler/-/compiler-2.5.0.tgz", + "integrity": "sha512-ws0gsefN9xVcPtOEJajjE1ggpCroLZo2o990hn7IEb+Z6j75q/6lfaMcvoGU0WiU8wETT1z8TQQ23PBSe7LvDw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@napi-rs/wasm-runtime": "^1.1.6", + "@pandacss/compiler-shared": "2.5.0", + "@pandacss/config": "2.5.0", + "@pandacss/types": "2.5.0" + }, + "engines": { + "node": ">=22" + }, + "optionalDependencies": { + "@pandacss/compiler-darwin-arm64": "2.5.0", + "@pandacss/compiler-darwin-x64": "2.5.0", + "@pandacss/compiler-linux-arm64-gnu": "2.5.0", + "@pandacss/compiler-linux-arm64-musl": "2.5.0", + "@pandacss/compiler-linux-x64-gnu": "2.5.0", + "@pandacss/compiler-linux-x64-musl": "2.5.0", + "@pandacss/compiler-win32-arm64-msvc": "2.5.0", + "@pandacss/compiler-win32-x64-msvc": "2.5.0" + } + }, + "node_modules/@pandacss/compiler-darwin-arm64": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@pandacss/compiler-darwin-arm64/-/compiler-darwin-arm64-2.5.0.tgz", + "integrity": "sha512-SHCu3ScXzO+Xfmptjquxnwl9hyVUam8p2iqEsQjgghnYcpsGL/ynss7obYZyk7dHAYryZ91DEoodEv9GBKx+lg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=22" + } + }, + "node_modules/@pandacss/compiler-darwin-x64": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@pandacss/compiler-darwin-x64/-/compiler-darwin-x64-2.5.0.tgz", + "integrity": "sha512-F/IuttDopjOkSPHRhlYfks8VXfb/lbERJQCMlh3cn/jiEeiaR0HlatSucj3S3SzH4OS0KgQ0aLYCqrY28vuyHw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=22" + } + }, + "node_modules/@pandacss/compiler-linux-arm64-gnu": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@pandacss/compiler-linux-arm64-gnu/-/compiler-linux-arm64-gnu-2.5.0.tgz", + "integrity": "sha512-EO+ozFA+gW1bEenl/JCRrfjZ2af4pUl+8sHM5ja2YYzbbAqYl95MJyKl9rYgHNwT+Xu/THANUyCJuDsj5cvDaw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=22" + } + }, + "node_modules/@pandacss/compiler-linux-arm64-musl": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@pandacss/compiler-linux-arm64-musl/-/compiler-linux-arm64-musl-2.5.0.tgz", + "integrity": "sha512-vjo+B3H+kQMEd53y1z/emfgZtpiCS2Jox06nutau60hyllhU2WKlKJ10KvJ4IhXLSu4RtICRPOkRhXgJm3KE7Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=22" + } + }, + "node_modules/@pandacss/compiler-linux-x64-gnu": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@pandacss/compiler-linux-x64-gnu/-/compiler-linux-x64-gnu-2.5.0.tgz", + "integrity": "sha512-8PqSTqDR2yQTjfV1dmoqenEWDigaDfQWekCM2c4sECSm9i03n8QAHiW+DWfft4+B6RhjbLqeDteQ8LKzs9WDOg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=22" + } + }, + "node_modules/@pandacss/compiler-linux-x64-musl": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@pandacss/compiler-linux-x64-musl/-/compiler-linux-x64-musl-2.5.0.tgz", + "integrity": "sha512-wEvK2X7yiAOGWdYTY/UzkO9IZUwTd2raIiJLdJP8vKCGuGnfCowQ0ExnjSp36hM0Tktb3DeNXEwbvnISEkK+gQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=22" + } + }, + "node_modules/@pandacss/compiler-shared": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@pandacss/compiler-shared/-/compiler-shared-2.5.0.tgz", + "integrity": "sha512-9u3pr9Wk4ay6+6jeSTD52ZAnyBpuQAVkBStd+ll1vro1ILgsIOmbMND5XApUW04DRY9oAjS6bkln7uk0qBGFLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@pandacss/types": "2.5.0" + }, + "engines": { + "node": ">=22" + } + }, + "node_modules/@pandacss/compiler-win32-arm64-msvc": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@pandacss/compiler-win32-arm64-msvc/-/compiler-win32-arm64-msvc-2.5.0.tgz", + "integrity": "sha512-cCSWGugoPNqpnvqbasg6QsIiiNcBZ2u25KPqQE/kJ3AGuPMcKXavZv1pQkKzw/QKtyzh/ATLtFCIOt0ZZ9LYbA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=22" + } + }, + "node_modules/@pandacss/compiler-win32-x64-msvc": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@pandacss/compiler-win32-x64-msvc/-/compiler-win32-x64-msvc-2.5.0.tgz", + "integrity": "sha512-XoJZBTFWBieafwl1T5oDO/gE196r/RDo/Ud9z7K8N4EjAAGanF/qILPwY5ODRTaPKG2Ouokt7Awu5KRBCMZZng==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=22" + } + }, + "node_modules/@pandacss/config": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@pandacss/config/-/config-2.5.0.tgz", + "integrity": "sha512-bpbwvY+YpmPbt7W89cXM/HCHQTisrkT+RXzNY76NjWLCyvDPYgznB/3aea8gytF3zPXsYhnsWglmwCCtXjVcdA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@pandacss/compiler-shared": "2.5.0", + "@pandacss/types": "2.5.0", + "acorn": "^8.17.0", + "acorn-walk": "^8.3.5", + "javascript-stringify": "2.1.0", + "magic-string": "^0.30.21", + "microdiff": "1.5.0", + "rolldown": "1.2.7" + }, + "engines": { + "node": ">=22" + } + }, + "node_modules/@pandacss/dev": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@pandacss/dev/-/dev-2.5.0.tgz", + "integrity": "sha512-4uGoeefnFMjrM+I0vkN0/1oMB9xeP9cIjT+FjEdJcvij64HQcMqDlbeY1XdIZo47z9ZwWrV0bN6jOWRok3w0kw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@pandacss/cli": "2.5.0", + "@pandacss/compiler": "2.5.0", + "@pandacss/config": "2.5.0", + "@pandacss/postcss": "2.5.0", + "@pandacss/types": "2.5.0" + }, + "bin": { + "panda": "bin.js", + "pandacss": "bin.js" + }, + "engines": { + "node": ">=22" + }, + "peerDependencies": { + "postcss": ">=8" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + } + } + }, + "node_modules/@pandacss/postcss": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@pandacss/postcss/-/postcss-2.5.0.tgz", + "integrity": "sha512-ruN4sZbsTXlxgxHXAiLu9TL2aIIEDitWTUFLQrv82OxqTQTGSgxrsd4ZpDbonQjnduJhhsYEKdYQrZqTZidIXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@pandacss/compiler": "2.5.0", + "@pandacss/compiler-shared": "2.5.0" + }, + "engines": { + "node": ">=22" + }, + "peerDependencies": { + "postcss": ">=8" + } + }, + "node_modules/@pandacss/types": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@pandacss/types/-/types-2.5.0.tgz", + "integrity": "sha512-p0iRlGE6+zNK34HGL4qOqIAz1wyu6He6dsGfGawj2ddU8pk6J2HmoymOELmto1KJxP79F26VvQIyOZOGv4639g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=22" + } + }, + "node_modules/@parcel/watcher": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.6.tgz", + "integrity": "sha512-tmmZ3lQxAe/k/+rNnXQRawJ4NjxO2hqiOLTHvWchtGZULp4RyFeh6aU4XdOYBFe2KE1oShQTv4AblOs2iOrNnQ==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "detect-libc": "^2.0.3", + "is-glob": "^4.0.3", + "node-addon-api": "^7.0.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "@parcel/watcher-android-arm64": "2.5.6", + "@parcel/watcher-darwin-arm64": "2.5.6", + "@parcel/watcher-darwin-x64": "2.5.6", + "@parcel/watcher-freebsd-x64": "2.5.6", + "@parcel/watcher-linux-arm-glibc": "2.5.6", + "@parcel/watcher-linux-arm-musl": "2.5.6", + "@parcel/watcher-linux-arm64-glibc": "2.5.6", + "@parcel/watcher-linux-arm64-musl": "2.5.6", + "@parcel/watcher-linux-x64-glibc": "2.5.6", + "@parcel/watcher-linux-x64-musl": "2.5.6", + "@parcel/watcher-win32-arm64": "2.5.6", + "@parcel/watcher-win32-ia32": "2.5.6", + "@parcel/watcher-win32-x64": "2.5.6" + } + }, + "node_modules/@parcel/watcher-android-arm64": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.5.6.tgz", + "integrity": "sha512-YQxSS34tPF/6ZG7r/Ih9xy+kP/WwediEUsqmtf0cuCV5TPPKw/PQHRhueUo6JdeFJaqV3pyjm0GdYjZotbRt/A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-arm64": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.5.6.tgz", + "integrity": "sha512-Z2ZdrnwyXvvvdtRHLmM4knydIdU9adO3D4n/0cVipF3rRiwP+3/sfzpAwA/qKFL6i1ModaabkU7IbpeMBgiVEA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-x64": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.5.6.tgz", + "integrity": "sha512-HgvOf3W9dhithcwOWX9uDZyn1lW9R+7tPZ4sug+NGrGIo4Rk1hAXLEbcH1TQSqxts0NYXXlOWqVpvS1SFS4fRg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-freebsd-x64": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.5.6.tgz", + "integrity": "sha512-vJVi8yd/qzJxEKHkeemh7w3YAn6RJCtYlE4HPMoVnCpIXEzSrxErBW5SJBgKLbXU3WdIpkjBTeUNtyBVn8TRng==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-glibc": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.5.6.tgz", + "integrity": "sha512-9JiYfB6h6BgV50CCfasfLf/uvOcJskMSwcdH1PHH9rvS1IrNy8zad6IUVPVUfmXr+u+Km9IxcfMLzgdOudz9EQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-musl": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.5.6.tgz", + "integrity": "sha512-Ve3gUCG57nuUUSyjBq/MAM0CzArtuIOxsBdQ+ftz6ho8n7s1i9E1Nmk/xmP323r2YL0SONs1EuwqBp2u1k5fxg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-glibc": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.5.6.tgz", + "integrity": "sha512-f2g/DT3NhGPdBmMWYoxixqYr3v/UXcmLOYy16Bx0TM20Tchduwr4EaCbmxh1321TABqPGDpS8D/ggOTaljijOA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-musl": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.5.6.tgz", + "integrity": "sha512-qb6naMDGlbCwdhLj6hgoVKJl2odL34z2sqkC7Z6kzir8b5W65WYDpLB6R06KabvZdgoHI/zxke4b3zR0wAbDTA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-glibc": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.6.tgz", + "integrity": "sha512-kbT5wvNQlx7NaGjzPFu8nVIW1rWqV780O7ZtkjuWaPUgpv2NMFpjYERVi0UYj1msZNyCzGlaCWEtzc+exjMGbQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-musl": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.5.6.tgz", + "integrity": "sha512-1JRFeC+h7RdXwldHzTsmdtYR/Ku8SylLgTU/reMuqdVD7CtLwf0VR1FqeprZ0eHQkO0vqsbvFLXUmYm/uNKJBg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-arm64": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.5.6.tgz", + "integrity": "sha512-3ukyebjc6eGlw9yRt678DxVF7rjXatWiHvTXqphZLvo7aC5NdEgFufVwjFfY51ijYEWpXbqF5jtrK275z52D4Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-ia32": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.5.6.tgz", + "integrity": "sha512-k35yLp1ZMwwee3Ez/pxBi5cf4AoBKYXj00CZ80jUz5h8prpiaQsiRPKQMxoLstNuqe2vR4RNPEAEcjEFzhEz/g==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-x64": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.5.6.tgz", + "integrity": "sha512-hbQlYcCq5dlAX9Qx+kFb0FHue6vbjlf0FrNzSKdYK2APUf7tGfGxQCk2ihEREmbR6ZMc0MVAD5RIX/41gpUzTw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher/node_modules/node-addon-api": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@parcel/watcher/node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/@pkgjs/parseargs": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", @@ -1532,6 +2395,268 @@ "url": "https://opencollective.com/popperjs" } }, + "node_modules/@rolldown/binding-android-arm-eabi": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.7.tgz", + "integrity": "sha512-EypzgnYCwyVY4NDHKzGmNJT5b+XaQEBniHxsMdeIQLB/tcCzZnhqrzHpZFbX9iaxx+5RiB8caATBtfvZP7zVxQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.7.tgz", + "integrity": "sha512-l17HE9EweWaqJZhuUuNBN/FzM62xw+DECVnJyvMsxn8vJFAGLy5QfLDoYAcronkAN8VxKZHezDpulHDPx95vFw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.7.tgz", + "integrity": "sha512-8ED8ELFvHXc6OCETIn4gXObPiaR6bckM/ipXtbzlPVDRMBfEGjCKgO90F9YtfdpDatVx/ZQw7aZ1vUMf/+T3Mw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.7.tgz", + "integrity": "sha512-/WPripjtiAIZ2tWY7ddijORT0Ujg87wxWW/qcoFVCKAWVDPhtY0xr7Dj0M3GyNGz60jGwTElhro/mkF9dT7dDQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.7.tgz", + "integrity": "sha512-14DI4NcqpvbICxSnGLx3PmtDaWqRP/KGSGb6C+JLLVPeZRl6dKdHba3pGsqT3vpdTqhEYIPG0MMQ8c0xYqoJxA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.7.tgz", + "integrity": "sha512-bxrWIRvHWQvbJwi+VIie/kDJmQxcNE6xxWwZdqF/ExVAigtHkv54WTLQPb+QsZdnFy18fg7JPfWGL0RH6vwIlQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.7.tgz", + "integrity": "sha512-toOY2BChBZyuxU7OYX6Tn389di4IzAqPTycVcci0O7FSfBqzRB3RZn+K5Is6ANf4tmgRd/K1yZTsNTXbkXsnLg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.7.tgz", + "integrity": "sha512-lAIXTH/aiLRLxsTgQvfhjo4K1ydWIp00+V0voOr9beb/9ZmkUFrSIb03dXNFRgMNvkE6oGsF10ioQ6UsI+vS5Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.7.tgz", + "integrity": "sha512-kdnwS28Pkenp/mZMRwjXXXwxQ7pIsm+bF919LUK93BOyhcLsrVKdP2p9fxpiPNPAbNuch8ypQt0pm2P2LYCAGg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.7.tgz", + "integrity": "sha512-516OdsyLdr5E65paF3yBF55t8mfm9+gmtCsK3xI7XKXIT7EfRlHhxL8K/NR6Hu8BWSgF5+1w74lTL0+nxcc8Qw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.7.tgz", + "integrity": "sha512-r8/z8n7GFaYRln3xmP1Cxy0HH/HLM0uBUPkEuSVEfKGDA89M0FsZRZJRSwe/tJjRx+fpH/gjorfhB8tmEbSFLA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.7.tgz", + "integrity": "sha512-pAsE8iiDxUg1xBqdhrTfg45AVDVpirjz00sblEYClGNNcMnDb+e8beQgqIAw6LvauX/APvgxUnwrgun/YYGBhw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.7.tgz", + "integrity": "sha512-lTcIYmmnQQA8Or/2DatS6oSqcdLHvendjS+zLu+FwgToynWMRSmQdpM65fTANJgIS4mjbMOo5KT2lnT9SAb96w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.7.tgz", + "integrity": "sha512-e3Gu3WxbNk/UqQhxqU7YIYO+9ZBvWNz3U+h/qRFosscMFzdRPbXYSaSWgSnklv2fz1TgzBTcti2z35c/7irsHw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.7.tgz", + "integrity": "sha512-W/jg5qoRSqjsEv0+dZi4e687mcHqmVuU0P4fK6qS/xjetW2Gmc1W8j//z5nAeNcC8Ttm0hV46IjcYeuVwYhuiw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.1.0.tgz", + "integrity": "sha512-K+NU2HDCEem4sClgHH4ZZXwdJeNFkJo+hRk479DIwdIviAPN2hFJH1KHHwg8CxHQXvi0M5XY4deTXINfIiSG6w==", + "dev": true, + "license": "MIT" + }, "node_modules/@rollup/pluginutils": { "version": "5.1.4", "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.1.4.tgz", @@ -1922,6 +3047,13 @@ "integrity": "sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==", "license": "MIT" }, + "node_modules/@swc/helpers": { + "version": "0.5.24", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.24.tgz", + "integrity": "sha512-6tcXo4kA8HgGO7AVmawB57RYi/piBPYVHVcO6dXjX+SZw8GoHmi262sp4v2Ha2kNP9Cx84qei27yT+fjS1lxgg==", + "dev": true, + "license": "Apache-2.0" + }, "node_modules/@tootallnate/once": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", @@ -1932,6 +3064,16 @@ "node": ">= 6" } }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.4.tgz", + "integrity": "sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^2.4.0" + } + }, "node_modules/@types/bcryptjs": { "version": "2.4.6", "resolved": "https://registry.npmjs.org/@types/bcryptjs/-/bcryptjs-2.4.6.tgz", @@ -2531,6 +3673,1044 @@ "dev": true, "license": "MIT" }, + "node_modules/@zag-js/accordion": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/accordion/-/accordion-1.47.0.tgz", + "integrity": "sha512-rXij62gBLdmhMYsTiygavOL83xP2MfmD8HpArtZxW30icQeXn1mgWq9xKL/DWqNEnYj/J9W2RpZk/7Q16ckN+Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/anatomy": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/anatomy/-/anatomy-1.47.0.tgz", + "integrity": "sha512-3mQSujwBiEmF0SkYvQf5LBYSDKcV5CBu3Ncraxl6TqElimLzvHMGrrHmCLkVUB1Pi1uBqc6N08XuacGth3C2cQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@zag-js/angle-slider": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/angle-slider/-/angle-slider-1.47.0.tgz", + "integrity": "sha512-xLPvGZRzmZ1RZHq1tUEErecLSMGa3G05LmKSiLdPupLjZR5qBFzDQbKJgHy/6yR5JltVell7aAzrhOI3mZf+wQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/rect-utils": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/aria-hidden": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/aria-hidden/-/aria-hidden-1.47.0.tgz", + "integrity": "sha512-UVnk+Ge7YvS873dSBzLE6lihHz8jcnaAS6aRxg4O5Gj3NaazW5jWb3dCiSgSGQaG0lxJCdIZysafHy/mIeSbhw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/dom-query": "1.47.0" + } + }, + "node_modules/@zag-js/async-list": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/async-list/-/async-list-1.47.0.tgz", + "integrity": "sha512-rEgkMH9lk4ijak3nD5ws7+W3gHpVQqWvT0n7PZVyoiQWEZIhoZF7vHm5NOu147ERQUIe5mg9a1slh9m/e4FTqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/core": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/auto-resize": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/auto-resize/-/auto-resize-1.47.0.tgz", + "integrity": "sha512-+9Mt1Ka7FCQ0kYB93JkzZ+cgv3yR3e4wjIHs8UIqop+wagA77rcgylsm4yyjSYfELBhTNTuUcKOKxHaZELDwTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/dom-query": "1.47.0" + } + }, + "node_modules/@zag-js/avatar": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/avatar/-/avatar-1.47.0.tgz", + "integrity": "sha512-ihJTcYpSVfyPkWzASBO5tShUyfCG4t1uOAj+JtcMIn+GNJAMB6lmjkNZEI0pO27+sxJK7E2bDVdPRwwmjID0OQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/carousel": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/carousel/-/carousel-1.47.0.tgz", + "integrity": "sha512-LZPTtXOKa3/+pJ3XZSJkr+jssjzj3e4GgbfFoaICJCF+xtWMJZI3WRzVwbpJNOWvK/vZX3gYMIqB3gJPDWhaAQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/scroll-snap": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/cascade-select": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/cascade-select/-/cascade-select-1.47.0.tgz", + "integrity": "sha512-qWshb8cEd/R55iJ8vnhSpLMuaij6BUSCkEUrLt6j5gmEOnDRCIzOLto+F4JaEGbFujZhtRj7h6ct+VFDelaqnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/collection": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dismissable": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/focus-visible": "1.47.0", + "@zag-js/popper": "1.47.0", + "@zag-js/rect-utils": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/checkbox": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/checkbox/-/checkbox-1.47.0.tgz", + "integrity": "sha512-8fHGi5bNfnKc5vFKVRppT2DEh2lgba3/eWMkzE3b158cUUuFjbOYaNQrOh41qicUT7taAsj+T2iTFte+VEQtUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/focus-visible": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/clipboard": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/clipboard/-/clipboard-1.47.0.tgz", + "integrity": "sha512-bOoZQ2Me/k3iiFIUjhMhjs5bnAAoDB1GQB+lliZHOgVQTGM9QaTD0ZFeMEduJXir7OBPdBiqFKoz/vqCiZOfRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/collapsible": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/collapsible/-/collapsible-1.47.0.tgz", + "integrity": "sha512-is/xEUzKLSlKoPD95Ym6K60BkmDnTcU9Kc326aK+qJioHa2Ffj5gqaDP7PTkscpe8rWDETLmGu/RdksBO/LMxQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/collection": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/collection/-/collection-1.47.0.tgz", + "integrity": "sha512-GMnmLfuf/fmUQKKkRaEPn7yIBye5S++GbNZSNJd9WtBZMHf5iu9+bsWSIQOt38O7lNUAmieoBD+k6w70bam2Vw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/color-picker": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/color-picker/-/color-picker-1.47.0.tgz", + "integrity": "sha512-HpRTEGqc8SSQuqzWwlTJIbHZkWAyUmV3XJRz7j2Cp/pXPvTIuelItbcyH1Ee7aOQFw16PJhBfGcL8qOvK8OIrw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/color-utils": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dismissable": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/popper": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/color-utils": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/color-utils/-/color-utils-1.47.0.tgz", + "integrity": "sha512-0p/y0BU8hbX+Gea/FUl7T+Z1kAEjIyYodH3ZnO8zcmUAdylJmlfW0gv6Rq/IZqUri3uo56BuiBo4pr1isQkyeQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/combobox": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/combobox/-/combobox-1.47.0.tgz", + "integrity": "sha512-3bPm37vRNcA0KuYmN3n+s35tVaTo0WB1zQ8fWRBAPAutW0D3H4Qp4yt/Fd1rTBFgRREPSO07dFEPNc2JMdJyZw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/collection": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dismissable": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/focus-visible": "1.47.0", + "@zag-js/live-region": "1.47.0", + "@zag-js/popper": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/core": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/core/-/core-1.47.0.tgz", + "integrity": "sha512-VOlDoXvB43DoHsSJHrBTXBP0gQRPA8nTZY2dIG328iL+U70vu2cYNUDMTBBxHlexJPE3JDAt9kFIoEmfZCNPew==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/dom-query": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/date-input": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/date-input/-/date-input-1.47.0.tgz", + "integrity": "sha512-k/ZgJ2C8wmNHYw8YS1KsDMxrPTjUKv/Vi6/YpZU8eQpibBh6XaLrNPXx1kzdOAAOtcyg2oSXRYEcRaXdUYxigQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/date-utils": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/live-region": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + }, + "peerDependencies": { + "@internationalized/date": ">=3.0.0" + } + }, + "node_modules/@zag-js/date-picker": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/date-picker/-/date-picker-1.47.0.tgz", + "integrity": "sha512-drFN3qobFJW/poZkNLN/gmEEz8875ZYSjb0exXvoAaQK84nzPVwreO2+lhcQSZ4Al5CA0zyW1k10t5+aN8bY2w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/date-utils": "1.47.0", + "@zag-js/dismissable": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/live-region": "1.47.0", + "@zag-js/popper": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + }, + "peerDependencies": { + "@internationalized/date": ">=3.0.0" + } + }, + "node_modules/@zag-js/date-utils": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/date-utils/-/date-utils-1.47.0.tgz", + "integrity": "sha512-zZi2qDDX04vBcRFGUr9MZqcHaRYIFa7PEB7x32JGP1oryPVRJ5EbIZ1O6nm1IszAIJ95TVgnuHV340n90YAYnA==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@internationalized/date": ">=3.0.0" + } + }, + "node_modules/@zag-js/dialog": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/dialog/-/dialog-1.47.0.tgz", + "integrity": "sha512-7Lmm6CWaGy1nd+X8ZRRSkoiyVj38pgXWFgnIb1q+snjbD/cM/bo8A+9Qoogl9CkAoWsLkFYV3cI5RY9fQXfRsw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/aria-hidden": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dismissable": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/focus-trap": "1.47.0", + "@zag-js/remove-scroll": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/dismissable": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/dismissable/-/dismissable-1.47.0.tgz", + "integrity": "sha512-Swv9suaCNZZNw7sUs7nrDSHWhNxFmMvHaGvhblrTl+UZU3lhJmj4HgjEAMoU+Yfu5VmJvmoN5MkT2OsHStkw/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/dom-query": "1.47.0", + "@zag-js/interact-outside": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/dom-query": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/dom-query/-/dom-query-1.47.0.tgz", + "integrity": "sha512-wbwzQDYikjRa6IQ+it0Qu6ndpvWiCRoPlaDGiFiZxnzX3IDOR5Bfio+BdQ319+incovMfaYEeuW7sbal91lu4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/types": "1.47.0" + } + }, + "node_modules/@zag-js/drawer": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/drawer/-/drawer-1.47.0.tgz", + "integrity": "sha512-/VKlo+JV2KqhrU1GFDEAY/HOcrKVHUCsvo9eB534UAmPqNjXjZ/umfG/w2SNYxCk2xrr7quHXGcSMGXDA07lLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/aria-hidden": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dismissable": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/focus-trap": "1.47.0", + "@zag-js/remove-scroll": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/editable": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/editable/-/editable-1.47.0.tgz", + "integrity": "sha512-2zn80XU1S5SNsBy3Hg34M86dy9Kc/7O2W8obmKMjSoYOtiZAMszgPvskydbnldiQCjVo30raxskyDyqBxlBRAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/interact-outside": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/file-upload": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/file-upload/-/file-upload-1.47.0.tgz", + "integrity": "sha512-UKL0Q8a1kONnmyic9D4draWfXbvLPSwwk58znKDyMplS5qGBkOVxMxX18TPU+utx/58MOo0bwoRkWr4Rp1jEUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/file-utils": "1.47.0", + "@zag-js/i18n-utils": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/file-utils": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/file-utils/-/file-utils-1.47.0.tgz", + "integrity": "sha512-UoaCX6midsdF9lewKKLSEO8goaiygJfG+2S3DcQczy3agH+HzGu6Zc+uj74zxbqJ7u8zuI/SF4fdz5KKhLuFHg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/i18n-utils": "1.47.0" + } + }, + "node_modules/@zag-js/floating-panel": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/floating-panel/-/floating-panel-1.47.0.tgz", + "integrity": "sha512-UCCorJSdUFa/Klyck/JE6vrlwj8yZXPu71Is7qbQ2J4msjyFGWodSUbw3uj5JzJx7IwKWM8tU9KMuRWdbl7Ocw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/rect-utils": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/focus-trap": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/focus-trap/-/focus-trap-1.47.0.tgz", + "integrity": "sha512-A1eeCgOMCUCQf3JMWR+xX0mKzuGltj8ohPtTDvFzWMU4Tf8vsqIJfFsr/yMQqYRBjKAMCDzFWWmdN09NsmAFXQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/dom-query": "1.47.0" + } + }, + "node_modules/@zag-js/focus-visible": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/focus-visible/-/focus-visible-1.47.0.tgz", + "integrity": "sha512-Cr77Mb8lzp9KeSeBJUhl6p+1W/ZixryRJC8AnLie7c51WwkWUeq2Is7VMJHyZmawSWTv473HziIJPothc1FPqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/dom-query": "1.47.0" + } + }, + "node_modules/@zag-js/highlight-word": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/highlight-word/-/highlight-word-1.47.0.tgz", + "integrity": "sha512-v+Kk16bib9VwdtatPhwhxVvJ6tm9BvfOqd0TbvqnOPxCOdKMV8y69et4YptLdSgquX3b6/LHInG051r7z3JjWQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@zag-js/hotkeys": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/hotkeys/-/hotkeys-1.47.0.tgz", + "integrity": "sha512-WL3Z20W36tg+BF4VYGcngfDt3/Sd9UBtTWATI9fMVzOEKi5LIP2DqXVIJcSEvVLPYA4/Ti5RQRVlJCIFa0O5nw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/dom-query": "1.47.0" + } + }, + "node_modules/@zag-js/hover-card": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/hover-card/-/hover-card-1.47.0.tgz", + "integrity": "sha512-EpLOAjlcwrZmWHh+sFXElUmgaTk0K9Jre9P1g7hCvAOkG2q/qLiFfqcaQAg3kQjqiUmv+I2ohQqQfLiWD/mByQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dismissable": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/popper": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/i18n-utils": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/i18n-utils/-/i18n-utils-1.47.0.tgz", + "integrity": "sha512-oOByITQQhBeUAcWiVzYoKpwFZRfJ2dbl8R+VLc5MU8h6K32fUGzGDmHsHkRaibHDcrdahmWvSn6ttBQoWtbB3w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/dom-query": "1.47.0" + } + }, + "node_modules/@zag-js/image-cropper": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/image-cropper/-/image-cropper-1.47.0.tgz", + "integrity": "sha512-+Di58G2MGJbMOEQgKjgU7Tu8+FN9OxyW0H8+1x5oC3NI6032H6YKa5jxs3gLB/okxBN8En0YU6T0rx4PyLMXFA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/interact-outside": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/interact-outside/-/interact-outside-1.47.0.tgz", + "integrity": "sha512-Vy2JKw9o4VZ7mYy654V/611kst5p0/vHfqMvXI2tVdiqhI/TSs7iCkV9z2DjOObeSr6c+aLxU+sJ6Fc+sBJVeg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/dom-query": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/json-tree-utils": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/json-tree-utils/-/json-tree-utils-1.47.0.tgz", + "integrity": "sha512-IO4TRv3aMd27GiZQIKeod3GIiMWhnataBbITrP4+HLoXC0MmBItwgWOQ4hLGFhuHyAHnxJ2tpzPQjlQc4cJc9w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@zag-js/listbox": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/listbox/-/listbox-1.47.0.tgz", + "integrity": "sha512-JaVB9k6TT8ObOjgCziq5E+hcWHJ3auUMX/XuMXzKxbZwYC0+tUMI3yG9T/yhPxlxvVSgsR2xvGrseTSCjSk5Tw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/collection": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/focus-visible": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/live-region": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/live-region/-/live-region-1.47.0.tgz", + "integrity": "sha512-IFmmnkiwtzAc/qtHDLK77SHPJ/d4oI8yLdIty/8KtgHncJ47LBpjJQIeu0A4gC7akkHQNYPJwlErvqErVX8hsA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@zag-js/marquee": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/marquee/-/marquee-1.47.0.tgz", + "integrity": "sha512-QblbqrJdh64WLmmZcHBj+l5mRwwdEYworNmxB65SasYw8wWGjOqW7cXwAy6GSxRZ8pNRIX1d0wVqHUNFWTupxQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/menu": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/menu/-/menu-1.47.0.tgz", + "integrity": "sha512-eTFuBunFqUdcWnm5k+pSYuBRbomhoga0l11q0hLOBlTYY2Sfm2hm/6U0aOOJuvcZXXS31Iv8P04KhspFHKD+kA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dismissable": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/focus-visible": "1.47.0", + "@zag-js/popper": "1.47.0", + "@zag-js/rect-utils": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/navigation-menu": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/navigation-menu/-/navigation-menu-1.47.0.tgz", + "integrity": "sha512-u0nYQ040WGDz7Pd1ZjUm/I+yRZWjhkd6Rb3AkyslhBWjqGAg4Ht+ja1aks3pQIv8sD3bJZStlFI7YQTV9yOGaQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dismissable": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/number-input": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/number-input/-/number-input-1.47.0.tgz", + "integrity": "sha512-+lNNZ4l12ZLXQN5UJPEF1yZykLsE3NPHkFmYybbdlPO5vlS2w6NptEDJW+k6vYEevUw4KqGJYYmwOw9th5Qvhg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@internationalized/number": "3.6.9", + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/pagination": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/pagination/-/pagination-1.47.0.tgz", + "integrity": "sha512-mV7sOLm/Elczas7IUYrjDfEv2xviZ+WZqwTlP6jSQhVQI2mghB6MjpYI1KjgS71PDNtEP5e1JUEQwVBoIsqDfA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/password-input": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/password-input/-/password-input-1.47.0.tgz", + "integrity": "sha512-z/Z8BhSEpdjSDT4VxfSCVXr/QATm6oWGq+TpJE5y+/bmMSToOJZrsvFw9EMabmSFTktfAY0+7UA8quPWjIB21A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/pin-input": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/pin-input/-/pin-input-1.47.0.tgz", + "integrity": "sha512-Je10nCIDQXdLO5qTKBTDrdtFbZ3J44oPzKH2HZiWjPng924GBdhnR+pw5d6JyFpv3Jlq0cc5NJd9cEN0dwR+PA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/popover": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/popover/-/popover-1.47.0.tgz", + "integrity": "sha512-NHLuKLKf1FkDuAmyNAizFsg5Yv21bY85Mq4S+fWHygSBW3e7Perf2GeJD7ot3fltzC8TkWxgeZ1vW0e+TDMxdw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/aria-hidden": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dismissable": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/focus-trap": "1.47.0", + "@zag-js/popper": "1.47.0", + "@zag-js/remove-scroll": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/popper": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/popper/-/popper-1.47.0.tgz", + "integrity": "sha512-WghqqpfO/gMVMkvgxg4fWmKpvEXnZkKckQL3orW2e2FZDt/YfcOwLvxnM/mFLXNzWshLFtydZGw6Rz3iaAL40A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@floating-ui/dom": "^1.7.6", + "@zag-js/dom-query": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/presence": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/presence/-/presence-1.47.0.tgz", + "integrity": "sha512-9X7GDs+1ZeIyBBDXxaAQa+JYr/opq8Fz2d8uecZjiIlIA4bHwckPs2X67z18dBlfpENxdBIE+B681jagTQtqLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0" + } + }, + "node_modules/@zag-js/progress": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/progress/-/progress-1.47.0.tgz", + "integrity": "sha512-SppO687UAP4nsb7KejYjIuz1BqVbNCdCwEtP0Q5sZna5VRh6iOfFD1yincAZFljE5ODIyV3AogYv5SqCTGqCcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/qr-code": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/qr-code/-/qr-code-1.47.0.tgz", + "integrity": "sha512-EqVIdpWPaW+vwrL8rohNSdipyBEWBRv0sLbNJ8norKWFnTacFVKIJeAXbpHq0KZ1YHjO4x8d5SaMIHjBISpBBQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0", + "proxy-memoize": "3.0.1", + "uqr": "0.1.3" + } + }, + "node_modules/@zag-js/radio-group": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/radio-group/-/radio-group-1.47.0.tgz", + "integrity": "sha512-pnXsQP9U4Y7gVSAPGP7O1en8Rvh5GCp0kuemTUCcr6q1PEUeFn0oTcu1rxbHTjAr68R9h8kmmpV3Za1lZ+EM/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/focus-visible": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/rating-group": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/rating-group/-/rating-group-1.47.0.tgz", + "integrity": "sha512-+UvIJRP5T877LI9NWVELXEwBy2OnldESth5K+jNWTPBnEHzA78sbBH403MrIiGagC9jQEosM8W5wsg0/gRFeeA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/rect-utils": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/rect-utils/-/rect-utils-1.47.0.tgz", + "integrity": "sha512-7F3E6bPURhDzd9Ziq9FVjzZRIuksLmGNCiN4cCwLsKefLsgRcQNsW1SSIh2XLsm86adIWe8d0d5AYLLl3SYafQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@zag-js/remove-scroll": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/remove-scroll/-/remove-scroll-1.47.0.tgz", + "integrity": "sha512-HmK8RGxNkdBx7M2+RaLor05C/5dxHB6rye2uhi7GtvhDJ1vLGYEolkkD37tKQBOWasbkfsV/PZab0rCZsxDtQg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/dom-query": "1.47.0" + } + }, + "node_modules/@zag-js/scroll-area": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/scroll-area/-/scroll-area-1.47.0.tgz", + "integrity": "sha512-uaHlnkiVQYZzr5KDCsQZ39XPUMaYwIEwDvASbcKM+5cAEa+Sh4ZHlltngcnyNLfQS/SLwWw2kN4wYc76kGsLVQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/scroll-snap": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/scroll-snap/-/scroll-snap-1.47.0.tgz", + "integrity": "sha512-PJ+X074X/ru63n0htmNoCa1PY1g3a8nwEJdLyB7yTlFwf9gmpo3C2PeDQ7d0MCKqPIR6jz2DQ5Gx9pTMOhMLXA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/dom-query": "1.47.0" + } + }, + "node_modules/@zag-js/select": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/select/-/select-1.47.0.tgz", + "integrity": "sha512-lH5J0o+ejtXmqGErM1t/Qe7rBcX4skINwn87/8kjwdQaCYo6cgvYyt+8TyalA9WPvmvgWipH7B+wxawyIqi8zA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/collection": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dismissable": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/focus-visible": "1.47.0", + "@zag-js/popper": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/signature-pad": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/signature-pad/-/signature-pad-1.47.0.tgz", + "integrity": "sha512-swAVgLeKUREjh8MUzM2YX9JqRipHdkLUsAgdklrO0Evf69QGxEcYOJIQ+T1Xez3V6oqL3K0C50tbneUh0xkpDw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0", + "perfect-freehand": "^1.2.3" + } + }, + "node_modules/@zag-js/slider": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/slider/-/slider-1.47.0.tgz", + "integrity": "sha512-rQRiQnOQeeuWe7Gy1jtRO7h+ELhspFcBt9NR2+JpxOGN3sSNQcTmRXvmC6SDnI8NGdwLywYQTEdUAic9aDSnZg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/splitter": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/splitter/-/splitter-1.47.0.tgz", + "integrity": "sha512-RFIaZ3Ac+7uH0dBLqsXOoe9ARF4N+lMENAuDxoCTZajsXZW3yeNmKu77UuWrvhGFDHPoCiRryufZWyajhDcuaQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/steps": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/steps/-/steps-1.47.0.tgz", + "integrity": "sha512-hTwE2rWEsdaNbNfS9PXMsOME7ZzxASlnVL8LvIiyIcjoM5FrJjCCvn9Pl+HXjn7fe+Dlev3kHef8s+vM8Mww+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/store": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/store/-/store-1.47.0.tgz", + "integrity": "sha512-uHkrNEJhtRf5xbBBreTX5vXBGT6RfOfKDcRs02u9yhatk9DJRTgk5DQGLKcqH/X+SIeRU5smzUKH4OPT8wR42A==", + "dev": true, + "license": "MIT", + "dependencies": { + "proxy-compare": "3.0.1" + } + }, + "node_modules/@zag-js/switch": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/switch/-/switch-1.47.0.tgz", + "integrity": "sha512-61jm3G+QnwMTzpLyOC0eZU9yXRNKnEnd63iruAmOxTmaQWCCdRdxPVn0qnwm2Ve6W/9VdNvwPyt4U9KoC+Y9uw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/focus-visible": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/tabs": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/tabs/-/tabs-1.47.0.tgz", + "integrity": "sha512-ozwN9K5DUbO99S2M4+E18VhrGwWpTo8q97cigOByySpZp6vBJI2A1HNQEVTqwgH9ltrRPfAYUatWXrkO/Dxamw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/tags-input": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/tags-input/-/tags-input-1.47.0.tgz", + "integrity": "sha512-w9FSMyqyjvt9HUkj4UEIUSKrtNOozoenyKfL344hmeZScY/vpl8ZFCk+CrtAgFvu2o1a8IxlJDlcb6CC5SYrpg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/auto-resize": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/interact-outside": "1.47.0", + "@zag-js/live-region": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/timer": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/timer/-/timer-1.47.0.tgz", + "integrity": "sha512-Mc3Jo17Ztw5phKncyguVSeo5juHFDhjhmK7c9xj8LT6u4UC+A8pIiKsLxdHe0Khop489fYBsqwk+ODDD72sywQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/toast": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/toast/-/toast-1.47.0.tgz", + "integrity": "sha512-p0vRTxrW5ezThP+bhSj6AkOY3X/497revba6LSHeHEbVDQKwTdePRl/6pRMjJOt3x1jWnuG6ZMGNgvrBo9g/Sw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dismissable": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/toc": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/toc/-/toc-1.47.0.tgz", + "integrity": "sha512-IgJZvsPD3tbt7UlCojHTSl3wWkqSRdueFAaIjNwfed0c1aXzJoe7JhWd5e6Ectlc0kHu/Tw+sZbdo7PtPfwtVw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/toggle": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/toggle/-/toggle-1.47.0.tgz", + "integrity": "sha512-aM1Y/vVQpYTkNmNvgRjZH/O70PCUJCOySqIJCwanfz6dB3ZkQCv7yQabM5R1hBGNEpcpDWZaBSgna4pQmFoSlQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/toggle-group": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/toggle-group/-/toggle-group-1.47.0.tgz", + "integrity": "sha512-OcvDrvOGX3cvPFqLAfnQ5936WN5kyCrXH8oimnry8xdkc8Q4i0IR4yqNWZ2ybBgfI1bKmm6xNhEXRUrIv3pYNA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/tooltip": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/tooltip/-/tooltip-1.47.0.tgz", + "integrity": "sha512-5KE8VDS5C175AvYmypk43KXK7NfW3EMSx+V2PbM10zJFHqC0BKeRpWtvWY7Q9fTY2iEoJ9FPuN5H2CXahcmL7A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/focus-visible": "1.47.0", + "@zag-js/popper": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/tour": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/tour/-/tour-1.47.0.tgz", + "integrity": "sha512-AQdldEwlSWTBPOUTuLXN/bVwLf6lqww0WUMiYcfEjd+DnhZuwfESGWCNadI5hSYjUo9fjbEyt9k7eWl/gRyvhw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dismissable": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/focus-trap": "1.47.0", + "@zag-js/interact-outside": "1.47.0", + "@zag-js/popper": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/tree-view": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/tree-view/-/tree-view-1.47.0.tgz", + "integrity": "sha512-jx3ckPnIBQNC3vwC1q7b+0LaBr0iv8bsSHxiOGHUdSq41c5iqhDVtVMFpjpZSDV+IMv0Hn245tB46HOo4rlNww==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/anatomy": "1.47.0", + "@zag-js/collection": "1.47.0", + "@zag-js/core": "1.47.0", + "@zag-js/dom-query": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + } + }, + "node_modules/@zag-js/types": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/types/-/types-1.47.0.tgz", + "integrity": "sha512-3TTiZR+PnODKSLl5PgpzS7QjBTQfB5K+M6q6NHXpr80Z9Rn2UxNoMFK3TA68lec5mryOvvum1P3EIS8Ho9NCGA==", + "dev": true, + "license": "MIT", + "dependencies": { + "csstype": "3.2.3" + } + }, + "node_modules/@zag-js/utils": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/utils/-/utils-1.47.0.tgz", + "integrity": "sha512-vD4JoPJkFBGA2C5/HcfKrhkxqjFlJrfQj0wSoypvYghP1nJYaa6PNJs0zo3EeI4/NJ0EuJSnUg0zsCo+Dhm4iQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@zag-js/vue": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@zag-js/vue/-/vue-1.47.0.tgz", + "integrity": "sha512-9CojMnu4+0enNFg0PvpzxbdBczCVnM3POTs4XmpS1IN5e5sa7Vrm/vMBFrvHkw6YQ22IYC7gy/NyOHbt+WYWKg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@zag-js/core": "1.47.0", + "@zag-js/store": "1.47.0", + "@zag-js/types": "1.47.0", + "@zag-js/utils": "1.47.0" + }, + "peerDependencies": { + "vue": ">=3.0.0" + } + }, "node_modules/abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", @@ -2551,9 +4731,9 @@ } }, "node_modules/acorn": { - "version": "8.14.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", - "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.19.0.tgz", + "integrity": "sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==", "dev": true, "license": "MIT", "bin": { @@ -2573,6 +4753,19 @@ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, + "node_modules/acorn-walk": { + "version": "8.3.5", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.5.tgz", + "integrity": "sha512-HEHNfbars9v4pgpW6SO1KSPkfoS0xVOM/9UzkJltjlsHZmJasxg8aXkuZa7SMf8vKGIBhpUsPluQSqhJFCqebw==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.11.0" + }, + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/agent-base": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", @@ -3248,6 +5441,13 @@ "node": ">=10" } }, + "node_modules/citty": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/citty/-/citty-0.2.2.tgz", + "integrity": "sha512-+6vJA3L98yv+IdfKGZHBNiGW5KHn22e/JwID0Strsz8h4S/csAu/OuICwxrg44k5MRiZHWIo8XXuJgQTriRP4w==", + "dev": true, + "license": "MIT" + }, "node_modules/clean-stack": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", @@ -3688,9 +5888,9 @@ } }, "node_modules/csstype": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", - "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", "dev": true, "license": "MIT" }, @@ -4785,6 +6985,23 @@ "dev": true, "license": "MIT" }, + "node_modules/fast-string-truncated-width": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/fast-string-truncated-width/-/fast-string-truncated-width-3.0.3.tgz", + "integrity": "sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-string-width": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/fast-string-width/-/fast-string-width-3.0.2.tgz", + "integrity": "sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-string-truncated-width": "^3.0.2" + } + }, "node_modules/fast-uri": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.6.tgz", @@ -4801,6 +7018,16 @@ ], "license": "BSD-3-Clause" }, + "node_modules/fast-wrap-ansi": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/fast-wrap-ansi/-/fast-wrap-ansi-0.2.2.tgz", + "integrity": "sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-string-width": "^3.0.2" + } + }, "node_modules/fastq": { "version": "1.19.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", @@ -4810,6 +7037,13 @@ "reusify": "^1.0.4" } }, + "node_modules/fflate": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.3.tgz", + "integrity": "sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==", + "dev": true, + "license": "MIT" + }, "node_modules/file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", @@ -5146,6 +7380,19 @@ "node": "6.* || 8.* || >= 10.*" } }, + "node_modules/get-east-asian-width": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.7.0.tgz", + "integrity": "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/get-intrinsic": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", @@ -6134,6 +8381,13 @@ "@pkgjs/parseargs": "^0.11.0" } }, + "node_modules/javascript-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/javascript-stringify/-/javascript-stringify-2.1.0.tgz", + "integrity": "sha512-JVAfqNPTvNq3sB/VHQJAFxN/sPgKnsKrCwyRt15zwNCdrMMJDdcEOdubuy+DuJYYdm0ox1J4uzEuYKkN+9yhVg==", + "dev": true, + "license": "MIT" + }, "node_modules/joi": { "version": "17.13.3", "resolved": "https://registry.npmjs.org/joi/-/joi-17.13.3.tgz", @@ -6517,13 +8771,13 @@ } }, "node_modules/magic-string": { - "version": "0.30.17", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz", - "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==", + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", "dev": true, "license": "MIT", "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0" + "@jridgewell/sourcemap-codec": "^1.5.5" } }, "node_modules/make-dir": { @@ -6648,6 +8902,13 @@ "node": ">= 0.6" } }, + "node_modules/microdiff": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/microdiff/-/microdiff-1.5.0.tgz", + "integrity": "sha512-Drq+/THMvDdzRYrK0oxJmOKiC24ayUV8ahrt8l3oRK51PWt6gdtrIGrlIH3pT/lFh1z93FbAcidtsHcWbnRz8Q==", + "dev": true, + "license": "MIT" + }, "node_modules/micromatch": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", @@ -7370,6 +9631,13 @@ "node": ">=8" } }, + "node_modules/perfect-freehand": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/perfect-freehand/-/perfect-freehand-1.2.3.tgz", + "integrity": "sha512-bHZSfqDHGNlPpgH2yxXgPHlQSPpEbo+qg7li0M78J9vNAi2yjwLeA4x79BEQhX44lEWpCLSFCeRZwpw0niiXPA==", + "dev": true, + "license": "MIT" + }, "node_modules/pg-connection-string": { "version": "2.6.1", "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.6.1.tgz", @@ -7536,6 +9804,13 @@ "node": ">= 0.10" } }, + "node_modules/proxy-compare": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/proxy-compare/-/proxy-compare-3.0.1.tgz", + "integrity": "sha512-V9plBAt3qjMlS1+nC8771KNf6oJ12gExvaxnNzN/9yVRLdTv/lc+oJlnSzrdYDAvBfTStPCoiaCOTmTs0adv7Q==", + "dev": true, + "license": "MIT" + }, "node_modules/proxy-from-env": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz", @@ -7545,6 +9820,16 @@ "node": ">=10" } }, + "node_modules/proxy-memoize": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/proxy-memoize/-/proxy-memoize-3.0.1.tgz", + "integrity": "sha512-VDdG/VYtOgdGkWJx7y0o7p+zArSf2383Isci8C+BP3YXgMYDoPd3cCBjw0JdWb6YBb9sFiOPbAADDVTPJnh+9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "proxy-compare": "^3.0.0" + } + }, "node_modules/pump": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", @@ -8178,6 +10463,40 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/rolldown": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.7.tgz", + "integrity": "sha512-g0EtLvBjTUB7jhyV0S/TCup3v/XSVl45vUIGbOGU4QPiyjTenCe4mKuFvW9fEgYmS2Fo42AUssRmNuMziXdrig==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.148.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm-eabi": "1.2.7", + "@rolldown/binding-android-arm64": "1.2.7", + "@rolldown/binding-darwin-arm64": "1.2.7", + "@rolldown/binding-darwin-x64": "1.2.7", + "@rolldown/binding-freebsd-x64": "1.2.7", + "@rolldown/binding-linux-arm-gnueabihf": "1.2.7", + "@rolldown/binding-linux-arm64-gnu": "1.2.7", + "@rolldown/binding-linux-arm64-musl": "1.2.7", + "@rolldown/binding-linux-ppc64-gnu": "1.2.7", + "@rolldown/binding-linux-s390x-gnu": "1.2.7", + "@rolldown/binding-linux-x64-gnu": "1.2.7", + "@rolldown/binding-linux-x64-musl": "1.2.7", + "@rolldown/binding-openharmony-arm64": "1.2.7", + "@rolldown/binding-win32-arm64-msvc": "1.2.7", + "@rolldown/binding-win32-x64-msvc": "1.2.7" + } + }, "node_modules/rollup": { "version": "4.60.2", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.2.tgz", @@ -8646,6 +10965,13 @@ "simple-concat": "^1.0.0" } }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true, + "license": "MIT" + }, "node_modules/slash": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", @@ -9626,6 +11952,13 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/uqr": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/uqr/-/uqr-0.1.3.tgz", + "integrity": "sha512-0rjE8iEJe4YmT9TOhwsZtqCMRLc5DXZUI2UEYUUg63ikBkqqE5EYWaI0etFe/5KUcmcYwLih2RND1kq+hrUJXA==", + "dev": true, + "license": "MIT" + }, "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", diff --git a/package.json b/package.json index 8e26353..b161be9 100644 --- a/package.json +++ b/package.json @@ -59,13 +59,20 @@ }, "devDependencies": { "@actions/github": "^6.0.0", + "@ark-ui/vue": "~5.40.0", + "@codemirror/commands": "6.10.1", "@codemirror/lang-python": "^6.1.7", "@codemirror/lang-yaml": "^6.1.2", + "@codemirror/language": "6.12.1", + "@codemirror/lint": "6.9.2", + "@codemirror/search": "6.5.11", + "@codemirror/view": "6.39.6", "@fontsource/jetbrains-mono": "^5.2.5", "@fortawesome/fontawesome-svg-core": "6.4.2", "@fortawesome/free-regular-svg-icons": "6.4.2", "@fortawesome/free-solid-svg-icons": "6.4.2", "@fortawesome/vue-fontawesome": "3.0.3", + "@pandacss/dev": "~2.5.0", "@types/bcryptjs": "^2.4.6", "@types/bootstrap": "~5.2.10", "@types/command-exists": "~1.2.3", diff --git a/panda.config.ts b/panda.config.ts new file mode 100644 index 0000000..939a9c7 --- /dev/null +++ b/panda.config.ts @@ -0,0 +1,38 @@ +import { defineConfig } from "@pandacss/dev"; + +export default defineConfig({ + presets: [], + preflight: false, + include: [], + cssVarRoot: ":where(.stack-navigation, .stack-config-editor)", + conditions: { + dark: ".dark :where(.stack-navigation, .stack-config-editor) &", + }, + theme: { + semanticTokens: { + colors: { + surface: { value: { base: "#ffffff", + _dark: "#161b22" } }, + subtle: { value: { base: "#f5f7f8", + _dark: "#1f2730" } }, + border: { value: { base: "#d7dee4", + _dark: "#3a4756" } }, + text: { value: { base: "#1d2730", + _dark: "#eef3f7" } }, + muted: { value: { base: "#536270", + _dark: "#a7b5c3" } }, + accent: { value: { base: "#14623b", + _dark: "#8be7af" } }, + accentText: { value: { base: "#ffffff", + _dark: "#102b1c" } }, + accentSubtle: { value: { base: "#e8f6ed", + _dark: "#213b30" } }, + danger: { value: { base: "#9f2929", + _dark: "#ffaeae" } }, + dangerSubtle: { value: { base: "#fff0f0", + _dark: "#422a30" } }, + }, + }, + }, + prefix: "stack-nav", +});